PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.14
ShopBuilder – WooCommerce Builder For Elementor v2.1.14
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / assets / js / backend / admin-settings.js

admin-settings.js in ShopBuilder – WooCommerce Builder For Elementor 2.1.14, at assets/js/backend/admin-settings.js

82 lines 1.5 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(){var e,t,n={7526:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],c=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),u=0,d=c>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,s=r-o;l<s;l+=a)i.push(c(e,l,l+a>s?s:l+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8287:function(e,t,n){"use strict";var r=n(7526),o=n(251),i=n(4634);
2 /*!
3 * The buffer module from node.js, for the browser.
4 *
5 * @author Feross Aboukhadijeh <http://feross.org>
6 * @license MIT
7 */function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=l(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?l(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=l(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return $(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<l;i++)if(s(e,i)===s(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var d=!0,f=0;f<c;f++)if(s(e,i+f)!==s(t,f)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function w(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return x(e,t,n,r)}function C(e,t,n,r){return H(F(t),e,n,r)}function S(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,l,c,s=e[o],u=null,d=s>239?4:s>223?3:s>191?2:1;if(o+d<=n)switch(d){case 1:s<128&&(u=s);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}(r)}t.hp=c,t.IS=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return s(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?l(e,t):void 0!==n?"string"==typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),s=this.slice(r,o),u=e.slice(t,n),d=0;d<l;++d)if(s[d]!==u[d]){i=s[d],a=u[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function $(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z(e[i]);return o}function I(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function T(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,i){return i||T(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||T(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:B(new c(e,r).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},7965:function(e,t,n){"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),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{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},9578:function(e,t,n){"use strict";var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:"";display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{-webkit-box-sizing:border-box;box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;-webkit-transform:translateY(10px);transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{margin-bottom:5px;margin-top:5px;padding:5px 10px;white-space:pre-wrap}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;padding:2px 4px;width:24px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{margin-top:-9px;position:absolute;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.2);box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #ccc;display:none;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""]),t.A=o},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},4353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=g;var x="$isDayjsObject",k=function(e){return e instanceof O||!(!e||!e[x])},C=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},S=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},E=b;E.l=C,E.i=k,E.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return E},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,g=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,w=(v<y?v+7:v)-y;return p(r?m-w:m+(6-w),g);case l:case f:return h(b+"Hours",0);case a:return h(b+"Minutes",1);case i:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,c=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[E.p(e)]()},m.add=function(r,u){var f,p=this;r=Number(r);var h=E.p(u),v=function(e){var t=S(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return v(1);if(h===c)return v(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,m=this.$d.getTime()+r*g;return E.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,f,p){var h,v=this,g=E.p(f),m=S(r),b=(m.utcOffset()-this.utcOffset())*t,y=this-m,w=function(){return E.m(v,m)};switch(g){case d:h=w()/12;break;case s:h=w();break;case u:h=w()/3;break;case c:h=(y-b)/6048e5;break;case l:h=(y-b)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:E.a(h)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return w[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return E.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),_=O.prototype;return S.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach((function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,O,S),e.$i=!0),S},S.locale=C,S.isDayjs=k,S.unix=function(e){return S(1e3*e)},S.en=w[y],S.Ls=w,S.p={},S}()},7375:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=d[s],f=u&&u[0],p=u&&u[1];a[c]=p?{regex:f,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,d=a[2];s&&(d=a[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),v=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var m=l||0,b=c||0,y=s||0,w=u||0;return d?new Date(Date.UTC(v,g,h,m,b,y,w+60*d.offset*1e3)):n?new Date(Date.UTC(v,g,h,m,b,y,w)):new Date(v,g,h,m,b,y,w)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){a[1]=l[h-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8623:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6986:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},251:function(e,t){
8 /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9 t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,c=(1<<l)-1,s=c>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,c,s=8*i-o-1,u=(1<<s)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(l=0,a=u):a+d>=1?(l=(t*c-1)*Math.pow(2,o),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,s+=o;s>0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*v}},311:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},4634:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},5580:function(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549:function(e,t,n){var r=n(2032),o=n(3862),i=n(6721),a=n(2749),l=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},79:function(e,t,n){var r=n(3702),o=n(80),i=n(4739),a=n(8655),l=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},8223:function(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661:function(e,t,n){var r=n(3040),o=n(7670),i=n(289),a=n(4509),l=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},2804:function(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545:function(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859:function(e,t,n){var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217:function(e,t,n){var r=n(79),o=n(1420),i=n(938),a=n(3605),l=n(9817),c=n(945);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=c,e.exports=s},1873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},7828:function(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303:function(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},9770:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},695:function(e,t,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),l=n(361),c=n(7167),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&c(e),p=n||u||d||f,h=p?r(e.length,String):[],v=h.length;for(var g in e)!t&&!s.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,v))||h.push(g);return h}},4528:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4248:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6025:function(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2199:function(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552:function(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},7534:function(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270:function(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},7068:function(e,t,n){var r=n(7217),o=n(5911),i=n(1986),a=n(689),l=n(5861),c=n(6449),s=n(3656),u=n(7167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,m){var b=c(e),y=c(t),w=b?f:l(e),x=y?f:l(t),k=(w=w==d?p:w)==p,C=(x=x==d?p:x)==p,S=w==x;if(S&&s(e)){if(!s(t))return!1;b=!0,k=!1}if(S&&!k)return m||(m=new r),b||u(e)?o(e,t,n,v,g,m):i(e,t,w,n,v,g,m);if(!(1&n)){var E=k&&h.call(e,"__wrapped__"),O=C&&h.call(t,"__wrapped__");if(E||O){var _=E?e.value():e,$=O?t.value():t;return m||(m=new r),g(_,$,n,v,m)}}return!!S&&(m||(m=new r),a(e,t,n,v,g,m))}},5083:function(e,t,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),l=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,u=c.toString,d=s.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:l).test(a(e))}},4901:function(e,t,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},8984:function(e,t,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8096:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7301:function(e){e.exports=function(e){return function(t){return e(t)}}},9219:function(e){e.exports=function(e,t){return e.has(t)}},5481:function(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},5911:function(e,t,n){var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,l,c){var s=1&n,u=e.length,d=t.length;if(u!=d&&!(s&&d>u))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,v=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var m=e[h],b=t[h];if(a)var y=s?a(b,m,h,t,e,c):a(m,b,h,e,t,c);if(void 0!==y){if(y)continue;v=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(m===e||l(m,e,n,a,c)))return g.push(t)}))){v=!1;break}}else if(m!==b&&!l(m,b,n,a,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},1986:function(e,t,n){var r=n(1873),o=n(7828),i=n(5288),a=n(5911),l=n(317),c=n(4247),s=r?r.prototype:void 0,u=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,s,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:function(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var c=1&n,s=r(e),u=s.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var f=s[d];if(!(c?f in t:o.call(t,f)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var v=!0;l.set(e,t),l.set(t,e);for(var g=c;++d<u;){var m=e[f=s[d]],b=t[f];if(i)var y=c?i(b,m,f,t,e,l):i(m,b,f,e,t,l);if(!(void 0===y?m===b||a(m,b,n,i,l):y)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return l.delete(e),l.delete(t),v}},4840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:function(e,t,n){var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},2651:function(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:function(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:function(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},4664:function(e,t,n){var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},5861:function(e,t,n){var r=n(5580),o=n(8223),i=n(2804),a=n(6545),l=n(8303),c=n(2552),s=n(7473),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",v=s(r),g=s(o),m=s(i),b=s(a),y=s(l),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||l&&w(new l)!=p)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case v:return h;case g:return u;case m:return d;case b:return f;case y:return p}return t}),e.exports=w},392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032:function(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:function(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4218:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:function(e,t,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3702:function(e){e.exports=function(){this.__data__=[],this.size=0}},80:function(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4739:function(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:function(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:function(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:function(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},1042:function(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1380:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:function(e){e.exports=function(e){return this.__data__.has(e)}},4247:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1420:function(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:function(e){e.exports=function(e){return this.__data__.get(e)}},9817:function(e){e.exports=function(e){return this.__data__.has(e)}},945:function(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},4480:function(e,t,n){var r=n(9761).runInContext();e.exports=n(3424)(r,r)},3424:function(e,t,n){var r=n(6962),o=n(2874),i=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function l(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,s,u){var d="function"==typeof n,f=n===Object(n);if(f&&(u=s,s=n,n=void 0),null==s)throw new TypeError;u||(u={});var p={cap:!("cap"in u)||u.cap,curry:!("curry"in u)||u.curry,fixed:!("fixed"in u)||u.fixed,immutable:!("immutable"in u)||u.immutable,rearg:!("rearg"in u)||u.rearg},h=d?s:o,v="curry"in u&&u.curry,g="fixed"in u&&u.fixed,m="rearg"in u&&u.rearg,b=d?s.runInContext():void 0,y=d?s:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},w=y.ary,x=y.assign,k=y.clone,C=y.curry,S=y.forEach,E=y.isArray,O=y.isError,_=y.isFunction,$=y.isWeakMap,j=y.keys,N=y.rearg,I=y.toInteger,P=y.toPath,R=j(r.aryMethod),M={castArray:function(e){return function(){var t=arguments[0];return E(t)?e(l(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),r=n.length;return p.cap&&"number"==typeof t?(t=t>2?t-2:1,r&&r<=t?n:a(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!_(n))return e(n,Object(t));var r=[];return S(j(t),(function(e){_(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),S(r,(function(e){var t=e[1];_(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:I(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),u)}}};function A(e,t){if(p.cap){var n=r.iterateeRearg[e];if(n)return function(e,t){return z(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(a(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return z(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function T(e,t,n){if(p.fixed&&(g||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?w(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],l=o.slice(0,t);return a&&i.apply(l,a),t!=r&&i.apply(l,o.slice(t+1)),e.apply(this,l)}}(t,a)}return t}function q(e,t,n){return p.rearg&&n>1&&(m||!r.skipRearg[e])?N(t,r.methodRearg[e]||r.aryRearg[n]):t}function L(e,t){for(var n=-1,r=(t=P(t)).length,o=r-1,i=k(Object(e)),a=i;null!=a&&++n<r;){var l=t[n],c=a[l];null==c||_(c)||O(c)||$(c)||(a[l]=k(n==o?c:Object(c))),a=a[l]}return i}function D(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,a=u;return function(t){var r=d?b:y,l=d?b[i]:n,c=x(x({},a),t);return e(r,o,l,c)}}function z(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=p.rearg?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function B(e,t,n){var o,i=r.aliasToReal[e]||e,a=t,s=M[i];return s?a=s(t):p.immutable&&(r.mutate.array[i]?a=c(t,l):r.mutate.object[i]?a=c(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(a=c(t,L))),S(R,(function(e){return S(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],l=n&&n.afterRearg;return o=l?T(i,q(i,a,e),e):q(i,T(i,a,e),e),o=function(e,t,n){return v||p.curry&&n>1?C(t,n):t}(0,o=A(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?C(o,1):function(){return t.apply(this,arguments)}),o.convert=D(i,t),o.placeholder=t.placeholder=n,o}if(!f)return B(n,s,h);var F=s,H=[];return S(R,(function(e){S(r.aryMethod[e],(function(e){var t=F[r.remap[e]||e];t&&H.push([e,B(e,t,F)])}))})),S(j(F),(function(e){var t=F[e];if("function"==typeof t){for(var n=H.length;n--;)if(H[n][0]==e)return;t.convert=D(e,t),H.push([e,t])}})),S(H,(function(e){F[e[0]]=e[1]})),F.convert=function(e){return F.runInContext.convert(e)(void 0)},F.placeholder=F,S(j(F),(function(e){S(r.realToAlias[e]||[],(function(t){F[t]=F[e]}))})),F}},6962:function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},2874:function(e){e.exports={}},2428:function(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;e.exports=c},2404:function(e,t,n){var r=n(270);e.exports=function(e,t){return r(e,t)}},1882:function(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},7167:function(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},5950:function(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},2543:function(e,t,n){var r;
10 /**
11 * @license
12 * Lodash <https://lodash.com/>
13 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
14 * Released under MIT license <https://lodash.com/license>
15 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
16 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
17 */e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",c=16,s=32,u=64,d=128,f=256,p=1/0,h=9007199254740991,v=NaN,g=4294967295,m=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",u],["rearg",f]],b="[object Arguments]",y="[object Array]",w="[object Boolean]",x="[object Date]",k="[object Error]",C="[object Function]",S="[object GeneratorFunction]",E="[object Map]",O="[object Number]",_="[object Object]",$="[object Promise]",j="[object RegExp]",N="[object Set]",I="[object String]",P="[object Symbol]",R="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",T="[object Float32Array]",q="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,X=RegExp(K.source),Q=RegExp(G.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="['’]",Pe="["+Se+"]",Re="["+Ne+"]",Me="["+Ee+"]",Ae="\\d+",Te="["+Oe+"]",qe="["+_e+"]",Le="[^"+Se+Ne+Ae+Oe+_e+$e+"]",De="\\ud83c[\\udffb-\\udfff]",ze="[^"+Se+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+$e+"]",We="\\u200d",Ve="(?:"+qe+"|"+Le+")",Ue="(?:"+He+"|"+Le+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Me+"|"+De+")"+"?",Xe="["+je+"]?",Qe=Xe+Ge+("(?:"+We+"(?:"+[ze,Be,Fe].join("|")+")"+Xe+Ge+")*"),Ze="(?:"+[Te,Be,Fe].join("|")+")"+Qe,Je="(?:"+[ze+Me+"?",Me,Be,Fe,Pe].join("|")+")",et=RegExp(Ie,"g"),tt=RegExp(Me,"g"),nt=RegExp(De+"(?="+De+")|"+Je+Qe,"g"),rt=RegExp([He+"?"+qe+"+"+Ye+"(?="+[Re,He,"$"].join("|")+")",Ue+"+"+Ke+"(?="+[Re,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+Ye,He+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ze].join("|"),"g"),ot=RegExp("["+We+Se+Ee+je+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,ct={};ct[T]=ct[q]=ct[L]=ct[D]=ct[z]=ct[B]=ct[F]=ct[H]=ct[W]=!0,ct[b]=ct[y]=ct[M]=ct[w]=ct[A]=ct[x]=ct[k]=ct[C]=ct[E]=ct[O]=ct[_]=ct[j]=ct[N]=ct[I]=ct[R]=!1;var st={};st[b]=st[y]=st[M]=st[A]=st[w]=st[x]=st[T]=st[q]=st[L]=st[D]=st[z]=st[E]=st[O]=st[_]=st[j]=st[N]=st[I]=st[P]=st[B]=st[F]=st[H]=st[W]=!0,st[k]=st[C]=st[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=pt||ht||Function("return this")(),gt=t&&!t.nodeType&&t,mt=gt&&e&&!e.nodeType&&e,bt=mt&&mt.exports===gt,yt=bt&&pt.process,wt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=wt&&wt.isArrayBuffer,kt=wt&&wt.isDate,Ct=wt&&wt.isMap,St=wt&&wt.isRegExp,Et=wt&&wt.isSet,Ot=wt&&wt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Rt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function qt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Yt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Vt,n)}function Wt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:v}function Yt(e){return function(t){return null==t?o:t[e]}}function Kt(e){return function(t){return null==e?o:e[t]}}function Gt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return At(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ln(e){return"\\"+ut[e]}function cn(e){return ot.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function vn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var mn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bn=function e(t){var n,r=(t=null==t?vt:bn.defaults(vt.Object(),t,bn.pick(vt,at))).Array,le=t.Date,Se=t.Error,Ee=t.Function,Oe=t.Math,_e=t.Object,$e=t.RegExp,je=t.String,Ne=t.TypeError,Ie=r.prototype,Pe=Ee.prototype,Re=_e.prototype,Me=t["__core-js_shared__"],Ae=Pe.toString,Te=Re.hasOwnProperty,qe=0,Le=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Re.toString,ze=Ae.call(_e),Be=vt._,Fe=$e("^"+Ae.call(Te).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=bt?t.Buffer:o,We=t.Symbol,Ve=t.Uint8Array,Ue=He?He.allocUnsafe:o,Ye=un(_e.getPrototypeOf,_e),Ke=_e.create,Ge=Re.propertyIsEnumerable,Xe=Ie.splice,Qe=We?We.isConcatSpreadable:o,Ze=We?We.iterator:o,Je=We?We.toStringTag:o,nt=function(){try{var e=pi(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ut=le&&le.now!==vt.Date.now&&le.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Oe.ceil,gt=Oe.floor,mt=_e.getOwnPropertySymbols,yt=He?He.isBuffer:o,wt=t.isFinite,zt=Ie.join,Kt=un(_e.keys,_e),yn=Oe.max,wn=Oe.min,xn=le.now,kn=t.parseInt,Cn=Oe.random,Sn=Ie.reverse,En=pi(t,"DataView"),On=pi(t,"Map"),_n=pi(t,"Promise"),$n=pi(t,"Set"),jn=pi(t,"WeakMap"),Nn=pi(_e,"create"),In=jn&&new jn,Pn={},Rn=Di(En),Mn=Di(On),An=Di(_n),Tn=Di($n),qn=Di(jn),Ln=We?We.prototype:o,Dn=Ln?Ln.valueOf:o,zn=Ln?Ln.toString:o;function Bn(e){if(nl(e)&&!Va(e)&&!(e instanceof Vn)){if(e instanceof Wn)return e;if(Te.call(e,"__wrapped__"))return zi(e)}return new Wn(e)}var Fn=function(){function e(){}return function(t){if(!tl(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=Va(e),r=!n&&Wa(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&ul(e),a=n||r||o||i,l=a?Qt(e.length,je):[],c=l.length;for(var s in e)!t&&!Te.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||wi(s,c))||l.push(s);return l}function Zn(e){var t=e.length;return t?e[Gr(0,t-1)]:o}function Jn(e,t){return Ti(Io(e),cr(t,0,e.length))}function er(e){return Ti(Io(e))}function tr(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Te.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Po(t,Pl(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:_l(e,t[n]);return a}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!tl(e))return e;var d=Va(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Io(e,l)}else{var f=gi(e),p=f==C||f==S;if(Ga(e))return Eo(e,c);if(f==_||f==b||p&&!i){if(l=s||p?{}:bi(e),!c)return s?function(e,t){return Po(e,vi(e),t)}(e,function(e,t){return e&&Po(t,Rl(t),e)}(l,e)):function(e,t){return Po(e,hi(e),t)}(e,ir(l,e))}else{if(!st[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case M:return Oo(e);case w:case x:return new r(+e);case A:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case q:case L:case D:case z:case B:case F:case H:case W:return _o(e,n);case E:return new r;case O:case I:return new r(e);case j:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case P:return o=e,Dn?_e(Dn.call(o)):{}}var o}(e,f,c)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(r){l.add(sr(r,t,n,r,e,a))})):rl(e)&&e.forEach((function(r,o){l.set(o,sr(r,t,n,o,e,a))}));var v=d?o:(u?s?ai:ii:s?Rl:Pl)(e);return jt(v||e,(function(r,o){v&&(r=e[o=r]),nr(l,o,sr(r,t,n,o,e,a))})),l}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ne(i);return Pi((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=Rt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=At(t,Jt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Gn(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=s;f--;)if(t[f]===d)continue e;c.push(u)}else i(t,d,r)||c.push(u)}return c}Bn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Hn.prototype,Bn.prototype.constructor=Bn,Wn.prototype=Fn(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype=Fn(Hn.prototype),Vn.prototype.constructor=Vn,Un.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(Nn){var n=t[e];return n===a?o:n}return Te.call(t,e)?t[e]:o},Un.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==o:Te.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===o?a:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Yn.prototype.has=function(e){return rr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(On||Yn),string:new Un}},Kn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return di(this,e).get(e)},Kn.prototype.has=function(e){return di(this,e).has(e)},Kn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,a),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var pr=Ao(xr),hr=Ao(kr,!0);function vr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(c===o?l==l&&!sl(l):n(l,c)))var c=l,s=a}return s}function mr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?br(l,t-1,n,r,o):Tt(o,l):r||(o[o.length]=l)}return o}var yr=To(),wr=To(!0);function xr(e,t){return e&&yr(e,t,Pl)}function kr(e,t){return e&&wr(e,t,Pl)}function Cr(e,t){return Pt(t,(function(t){return Za(e[t])}))}function Sr(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Va(e)?r:Tt(r,n(e))}function Or(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in _e(e)?function(e){var t=Te.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=De.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return De.call(e)}(e)}function _r(e,t){return e>t}function $r(e,t){return null!=e&&Te.call(e,t)}function jr(e,t){return null!=e&&t in _e(e)}function Nr(e,t,n){for(var i=n?Mt:Rt,a=e[0].length,l=e.length,c=l,s=r(l),u=1/0,d=[];c--;){var f=e[c];c&&t&&(f=At(f,Jt(t))),u=wn(f.length,u),s[c]=!n&&(t||a>=120&&f.length>=120)?new Gn(c&&f):o}f=e[0];var p=-1,h=s[0];e:for(;++p<a&&d.length<u;){var v=f[p],g=t?t(v):v;if(v=n||0!==v?v:0,!(h?tn(h,g):i(d,g,n))){for(c=l;--c;){var m=s[c];if(!(m?tn(m,g):i(e[c],g,n)))continue e}h&&h.push(g),d.push(v)}}return d}function Ir(e,t,n){var r=null==(e=ji(e,t=xo(t,e)))?e:e[Li(Qi(t))];return null==r?o:_t(r,e,n)}function Pr(e){return nl(e)&&Or(e)==b}function Rr(e,t,n,r,i){return e===t||(null==e||null==t||!nl(e)&&!nl(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Va(e),c=Va(t),s=l?y:gi(e),u=c?y:gi(t),d=(s=s==b?_:s)==_,f=(u=u==b?_:u)==_,p=s==u;if(p&&Ga(e)){if(!Ga(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Xn),l||ul(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case w:case x:case O:return Ba(+e,+t);case k:return e.name==t.name&&e.message==t.message;case j:case I:return e==t+"";case E:var l=sn;case N:var c=1&r;if(l||(l=fn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=ri(l(e),l(t),r,o,i,a);return a.delete(e),u;case P:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=d&&Te.call(e,"__wrapped__"),v=f&&Te.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,m=v?t.value():t;return a||(a=new Xn),i(g,m,n,r,a)}}if(!p)return!1;return a||(a=new Xn),function(e,t,n,r,i,a){var l=1&n,c=ii(e),s=c.length,u=ii(t),d=u.length;if(s!=d&&!l)return!1;var f=s;for(;f--;){var p=c[f];if(!(l?p in t:Te.call(t,p)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var g=!0;a.set(e,t),a.set(t,e);var m=l;for(;++f<s;){var b=e[p=c[f]],y=t[p];if(r)var w=l?r(y,b,p,t,e,a):r(b,y,p,e,t,a);if(!(w===o?b===y||i(b,y,n,r,a):w)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var x=e.constructor,k=t.constructor;x==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof k&&k instanceof k||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Rr,i))}function Mr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=_e(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],u=e[s],d=c[1];if(l&&c[2]){if(u===o&&!(s in e))return!1}else{var f=new Xn;if(r)var p=r(u,d,s,e,t,f);if(!(p===o?Rr(d,u,3,r,f):p))return!1}}return!0}function Ar(e){return!(!tl(e)||(t=e,Le&&Le in t))&&(Za(e)?Fe:be).test(Di(e));var t}function Tr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?Va(e)?Fr(e[0],e[1]):Br(e):pc(e)}function qr(e){if(!Ei(e))return Kt(e);var t=[];for(var n in _e(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in _e(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}function Dr(e,t){return e<t}function zr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Br(e){var t=fi(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Fr(e,t){return ki(e)&&Oi(t)?_i(Li(e),t):function(n){var r=_l(n,e);return r===o&&r===t?$l(n,e):Rr(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&yr(t,(function(a,l){if(i||(i=new Xn),tl(a))!function(e,t,n,r,i,a,l){var c=Ni(e,n),s=Ni(t,n),u=l.get(s);if(u)return void tr(e,n,u);var d=a?a(c,s,n+"",e,t,l):o,f=d===o;if(f){var p=Va(s),h=!p&&Ga(s),v=!p&&!h&&ul(s);d=s,p||h||v?Va(c)?d=c:Ka(c)?d=Io(c):h?(f=!1,d=Eo(s,!0)):v?(f=!1,d=_o(s,!0)):d=[]:il(s)||Wa(s)?(d=c,Wa(c)?d=bl(c):tl(c)&&!Za(c)||(d=bi(s))):f=!1}f&&(l.set(s,d),i(d,s,r,a,l),l.delete(s));tr(e,n,d)}(e,t,l,n,Hr,r,i);else{var c=r?r(Ni(e,l),a,l+"",e,t,i):o;c===o&&(c=a),tr(e,l,c)}}),Rl)}function Wr(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?At(t,(function(e){return Va(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=At(t,Jt(ui()));var o=zr(e,(function(e,n,o){var i=At(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var c=$o(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Sr(e,a);n(l,a)&&eo(i,xo(a,e),l)}return i}function Yr(e,t,n,r){var o=r?Wt:Ht,i=-1,a=t.length,l=e;for(e===t&&(t=Io(t)),n&&(l=At(e,Jt(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Xe.call(l,c,1),Xe.call(e,c,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Xe.call(e,o,1):po(e,o)}}return e}function Gr(e,t){return e+gt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Ri($i(e,t,oc),e+"")}function Zr(e){return Zn(Bl(e))}function Jr(e,t){var n=Bl(e);return Ti(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!tl(e))return e;for(var i=-1,a=(t=xo(t,e)).length,l=a-1,c=e;null!=c&&++i<a;){var s=Li(t[i]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=c[s];(u=r?r(d,s,c):o)===o&&(u=tl(d)?d:wi(t[i+1])?[]:{})}nr(c,s,u),c=c[s]}return e}var to=In?function(e,t){return In.set(e,t),e}:oc,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function ro(e){return Ti(Bl(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!sl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,oc,n)}function lo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,c=null===t,s=sl(t),u=t===o;i<a;){var d=gt((i+a)/2),f=n(e[d]),p=f!==o,h=null===f,v=f==f,g=sl(f);if(l)var m=r||v;else m=u?v&&(r||p):c?v&&p&&(r||!h):s?v&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);m?i=d+1:a=d}return wn(a,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ba(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function so(e){return"number"==typeof e?e:sl(e)?v:+e}function uo(e){if("string"==typeof e)return e;if(Va(e))return At(e,uo)+"";if(sl(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Rt,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=Mt;else if(i>=200){var s=t?null:Qo(e);if(s)return fn(s);a=!1,o=tn,c=new Gn}else c=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(u)}else o(c,d,n)||(c!==l&&c.push(d),l.push(u))}return l}function po(e,t){return null==(e=ji(e,t=xo(t,e)))||delete e[Li(Qi(t))]}function ho(e,t,n,r){return eo(e,t,n(Sr(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Vn&&(n=n.value()),qt(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function mo(e,t,n){var o=e.length;if(o<2)return o?fo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(a[i]=fr(a[i]||l,e[c],t,n));return fo(br(a,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var c=r<a?t[r]:o;n(l,e[r],c)}return l}function yo(e){return Ka(e)?e:[]}function wo(e){return"function"==typeof e?e:oc}function xo(e,t){return Va(e)?e:ki(e,t)?[e]:qi(yl(e))}var ko=Qr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var So=ot||function(e){return vt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function _o(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=sl(e),l=t!==o,c=null===t,s=t==t,u=sl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||c&&n&&i||!l&&i||!s)return-1}return 0}function jo(e,t,n,o){for(var i=-1,a=e.length,l=n.length,c=-1,s=t.length,u=yn(a-l,0),d=r(s+u),f=!o;++c<s;)d[c]=t[c];for(;++i<l;)(f||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[c++]=e[i++];return d}function No(e,t,n,o){for(var i=-1,a=e.length,l=-1,c=n.length,s=-1,u=t.length,d=yn(a-c,0),f=r(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++s<u;)f[h+s]=t[s];for(;++l<c;)(p||i<a)&&(f[h+n[l]]=e[i++]);return f}function Io(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Po(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],s=r?r(n[c],e[c],c,n,e):o;s===o&&(s=e[c]),i?ar(n,c,s):nr(n,c,s)}return n}function Ro(e,t){return function(n,r){var o=Va(n)?$t:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Mo(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&xi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=_e(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Ao(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=_e(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=_e(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function qo(e){return function(t){var n=cn(t=yl(t))?vn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return qt(Zl(Wl(t).replace(et,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return tl(r)?r:n}}function zo(e){return function(t,n,r){var i=_e(t);if(!Ya(t)){var a=ui(n,3);t=Pl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Bo(e){return oi((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ne(i);if(a&&!c&&"wrapper"==ci(l))var c=new Wn([],!0)}for(r=c?r:n;++r<n;){var s=ci(l=t[r]),u="wrapper"==s?li(l):o;c=u&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ci(u[0])].apply(c,u[3]):1==l.length&&Ci(l)?c[s]():c.thru(l)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Va(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,l,c,s,u,f){var p=t&d,h=1&t,v=2&t,g=24&t,m=512&t,b=v?o:Do(e);return function d(){for(var y=arguments.length,w=r(y),x=y;x--;)w[x]=arguments[x];if(g)var k=si(d),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,k);if(i&&(w=jo(w,i,a,g)),l&&(w=No(w,l,c,g)),y-=C,g&&y<f){var S=dn(w,k);return Go(e,t,Fo,d.placeholder,n,w,S,s,u,f-y)}var E=h?n:this,O=v?E[e]:e;return y=w.length,s?w=function(e,t){var n=e.length,r=wn(t.length,n),i=Io(e);for(;r--;){var a=t[r];e[r]=wi(a,n)?i[a]:o}return e}(w,s):m&&y>1&&w.reverse(),p&&u<y&&(w.length=u),this&&this!==vt&&this instanceof d&&(O=b||Do(O)),O.apply(E,w)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=so(n),r=so(r)),i=e(n,r)}return i}}function Vo(e){return oi((function(t){return t=At(t,Jt(ui())),Qr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function Uo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ht(e/hn(t)));return cn(t)?Co(vn(r),0,e).join(""):r.slice(0,e)}function Yo(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n,o){for(var i=-1,a=yn(ht((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:hl(i),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ml(t),n=ml(n)),e(t,n)}}function Go(e,t,n,r,i,a,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,i,p?a:o,p?l:o,p?o:a,p?o:l,c,d,f],v=n.apply(o,h);return Ci(e)&&Ii(v,h),v.placeholder=r,Mi(v,e,t)}function Xo(e){var t=Oe[e];return function(e,n){if(e=ml(e),(n=null==n?0:wn(vl(n),292))&&wt(e)){var r=(yl(e)+"e").split("e");return+((r=(yl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=$n&&1/fn(new $n([,-0]))[1]==p?function(e){return new $n(e)}:sc;function Zo(e){return function(t){var n=gi(t);return n==E?sn(t):n==N?pn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,p,h,v,g){var m=2&t;if(!m&&"function"!=typeof e)throw new Ne(i);var b=a?a.length:0;if(b||(t&=-97,a=p=o),v=v===o?v:yn(vl(v),0),g=g===o?g:vl(g),b-=p?p.length:0,t&u){var y=a,w=p;a=p=o}var x=m?o:li(e),k=[e,t,n,a,p,y,w,h,v,g];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?jo(s,c,t[4]):c,e[4]=s?dn(e[3],l):t[4]}(c=t[5])&&(s=e[5],e[5]=s?No(s,c,t[6]):c,e[6]=s?dn(e[5],l):t[6]);(c=t[7])&&(e[7]=c);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(k,x),e=k[0],t=k[1],n=k[2],a=k[3],p=k[4],!(g=k[9]=k[9]===o?m?0:e.length:yn(k[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==c?function(e,t,n){var i=Do(e);return function a(){for(var l=arguments.length,c=r(l),s=l,u=si(a);s--;)c[s]=arguments[s];var d=l<3&&c[0]!==u&&c[l-1]!==u?[]:dn(c,u);return(l-=d.length)<n?Go(e,t,Fo,a.placeholder,o,c,d,o,o,n-l):_t(this&&this!==vt&&this instanceof a?i:e,this,c)}}(e,t,g):t!=s&&33!=t||p.length?Fo.apply(o,k):function(e,t,n,o){var i=1&t,a=Do(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,d=r(u+c),f=this&&this!==vt&&this instanceof t?a:e;++s<u;)d[s]=o[s];for(;c--;)d[s++]=arguments[++l];return _t(f,i?n:this,d)}}(e,t,n,a);else var C=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==vt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((x?to:Ii)(C,k),e,t)}function ei(e,t,n,r){return e===o||Ba(e,Re[n])&&!Te.call(r,n)?t:e}function ti(e,t,n,r,i,a){return tl(e)&&tl(t)&&(a.set(t,e),Hr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return il(e)?o:e}function ri(e,t,n,r,i,a){var l=1&n,c=e.length,s=t.length;if(c!=s&&!(l&&s>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new Gn:o;for(a.set(e,t),a.set(t,e);++f<c;){var v=e[f],g=t[f];if(r)var m=l?r(g,v,f,t,e,a):r(v,g,f,e,t,a);if(m!==o){if(m)continue;p=!1;break}if(h){if(!Dt(t,(function(e,t){if(!tn(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(v!==g&&!i(v,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function oi(e){return Ri($i(e,o,Ui),e+"")}function ii(e){return Er(e,Pl,hi)}function ai(e){return Er(e,Rl,vi)}var li=In?function(e){return In.get(e)}:sc;function ci(e){for(var t=e.name+"",n=Pn[t],r=Te.call(Pn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function si(e){return(Te.call(Bn,"placeholder")?Bn:e).placeholder}function ui(){var e=Bn.iteratee||ic;return e=e===ic?Tr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fi(e){for(var t=Pl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function pi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ar(n)?n:o}var hi=mt?function(e){return null==e?[]:(e=_e(e),Pt(mt(e),(function(t){return Ge.call(e,t)})))}:gc,vi=mt?function(e){for(var t=[];e;)Tt(t,hi(e)),e=Ye(e);return t}:gc,gi=Or;function mi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&el(o)&&wi(a,o)&&(Va(e)||Wa(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Fn(Ye(e))}function yi(e){return Va(e)||Wa(e)||!!(Qe&&e&&e[Qe])}function wi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!tl(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&wi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function ki(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sl(e))||(ne.test(e)||!te.test(e)||null!=t&&e in _e(t))}function Ci(e){var t=ci(e),n=Bn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(En&&gi(new En(new ArrayBuffer(1)))!=A||On&&gi(new On)!=E||_n&&gi(_n.resolve())!=$||$n&&gi(new $n)!=N||jn&&gi(new jn)!=R)&&(gi=function(e){var t=Or(e),n=t==_?e.constructor:o,r=n?Di(n):"";if(r)switch(r){case Rn:return A;case Mn:return E;case An:return $;case Tn:return N;case qn:return R}return t});var Si=Me?Za:mc;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Oi(e){return e==e&&!tl(e)}function _i(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in _e(n)))}}function $i(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),_t(e,this,c)}}function ji(e,t){return t.length<2?e:Sr(e,oo(t,0,-1))}function Ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Ai(to),Pi=pt||function(e,t){return vt.setTimeout(e,t)},Ri=Ai(no);function Mi(e,t,n){var r=t+"";return Ri(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(m,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Ai(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Gr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var qi=function(e){var t=Aa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Li(e){if("string"==typeof e||sl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zi(e){if(e instanceof Vn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Qr((function(e,t){return Ka(e)?fr(e,br(t,1,Ka,!0)):[]})),Fi=Qr((function(e,t){var n=Qi(t);return Ka(n)&&(n=o),Ka(e)?fr(e,br(t,1,Ka,!0),ui(n,2)):[]})),Hi=Qr((function(e,t){var n=Qi(t);return Ka(n)&&(n=o),Ka(e)?fr(e,br(t,1,Ka,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=yn(r+o,0)),Ft(e,ui(t,3),o)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vl(n),i=n<0?yn(r+i,0):wn(i,r-1)),Ft(e,ui(t,3),i,!0)}function Ui(e){return(null==e?0:e.length)?br(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Qr((function(e){var t=At(e,yo);return t.length&&t[0]===e[0]?Nr(t):[]})),Gi=Qr((function(e){var t=Qi(e),n=At(e,yo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Nr(n,ui(t,2)):[]})),Xi=Qr((function(e){var t=Qi(e),n=At(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Nr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Qr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Kr(e,At(t,(function(e){return wi(e,n)?+e:e})).sort($o)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Qr((function(e){return fo(br(e,1,Ka,!0))})),ra=Qr((function(e){var t=Qi(e);return Ka(t)&&(t=o),fo(br(e,1,Ka,!0),ui(t,2))})),oa=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,fo(br(e,1,Ka,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ka(e))return t=yn(e.length,t),!0})),Qt(t,(function(t){return At(e,Yt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:At(n,(function(e){return _t(t,o,e)}))}var la=Qr((function(e,t){return Ka(e)?fr(e,t):[]})),ca=Qr((function(e){return mo(Pt(e,Ka))})),sa=Qr((function(e){var t=Qi(e);return Ka(t)&&(t=o),mo(Pt(e,Ka),ui(t,2))})),ua=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,mo(Pt(e,Ka),o,t)})),da=Qr(ia);var fa=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ga=Ro((function(e,t,n){Te.call(e,n)?++e[n]:ar(e,n,1)}));var ma=zo(Wi),ba=zo(Vi);function ya(e,t){return(Va(e)?jt:pr)(e,ui(t,3))}function wa(e,t){return(Va(e)?Nt:hr)(e,ui(t,3))}var xa=Ro((function(e,t,n){Te.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ka=Qr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?_t(t,e,n):Ir(e,t,n)})),a})),Ca=Ro((function(e,t,n){ar(e,n,t)}));function Sa(e,t){return(Va(e)?At:zr)(e,ui(t,3))}var Ea=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oa=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,br(t,1),[])})),_a=ut||function(){return vt.Date.now()};function $a(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,d,o,o,o,o,t)}function ja(e,t){var n;if("function"!=typeof t)throw new Ne(i);return e=vl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Na=Qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,si(Na));r|=s}return Jo(e,r,t,n,o)})),Ia=Qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,si(Ia));r|=s}return Jo(t,r,e,n,o)}));function Pa(e,t,n){var r,a,l,c,s,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ne(i);function v(t){var n=r,i=a;return r=a=o,d=t,c=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||p&&e-d>=l}function m(){var e=_a();if(g(e))return b(e);s=Pi(m,function(e){var n=t-(e-u);return p?wn(n,l-(e-d)):n}(e))}function b(e){return s=o,h&&r?v(e):(r=a=o,c)}function y(){var e=_a(),n=g(e);if(r=arguments,a=this,u=e,n){if(s===o)return function(e){return d=e,s=Pi(m,t),f?v(e):c}(u);if(p)return So(s),s=Pi(m,t),v(u)}return s===o&&(s=Pi(m,t)),c}return t=ml(t)||0,tl(n)&&(f=!!n.leading,l=(p="maxWait"in n)?yn(ml(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){s!==o&&So(s),d=0,r=u=a=s=o},y.flush=function(){return s===o?c:b(_a())},y}var Ra=Qr((function(e,t){return dr(e,1,t)})),Ma=Qr((function(e,t,n){return dr(e,ml(t)||0,n)}));function Aa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Aa.Cache||Kn),n}function Ta(e){if("function"!=typeof e)throw new Ne(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Aa.Cache=Kn;var qa=ko((function(e,t){var n=(t=1==t.length&&Va(t[0])?At(t[0],Jt(ui())):At(br(t,1),Jt(ui()))).length;return Qr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return _t(e,this,r)}))})),La=Qr((function(e,t){var n=dn(t,si(La));return Jo(e,s,o,t,n)})),Da=Qr((function(e,t){var n=dn(t,si(Da));return Jo(e,u,o,t,n)})),za=oi((function(e,t){return Jo(e,f,o,o,o,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Fa=Ko(_r),Ha=Ko((function(e,t){return e>=t})),Wa=Pr(function(){return arguments}())?Pr:function(e){return nl(e)&&Te.call(e,"callee")&&!Ge.call(e,"callee")},Va=r.isArray,Ua=xt?Jt(xt):function(e){return nl(e)&&Or(e)==M};function Ya(e){return null!=e&&el(e.length)&&!Za(e)}function Ka(e){return nl(e)&&Ya(e)}var Ga=yt||mc,Xa=kt?Jt(kt):function(e){return nl(e)&&Or(e)==x};function Qa(e){if(!nl(e))return!1;var t=Or(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Za(e){if(!tl(e))return!1;var t=Or(e);return t==C||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==vl(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=Ct?Jt(Ct):function(e){return nl(e)&&gi(e)==E};function ol(e){return"number"==typeof e||nl(e)&&Or(e)==O}function il(e){if(!nl(e)||Or(e)!=_)return!1;var t=Ye(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==ze}var al=St?Jt(St):function(e){return nl(e)&&Or(e)==j};var ll=Et?Jt(Et):function(e){return nl(e)&&gi(e)==N};function cl(e){return"string"==typeof e||!Va(e)&&nl(e)&&Or(e)==I}function sl(e){return"symbol"==typeof e||nl(e)&&Or(e)==P}var ul=Ot?Jt(Ot):function(e){return nl(e)&&el(e.length)&&!!ct[Or(e)]};var dl=Ko(Dr),fl=Ko((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ya(e))return cl(e)?vn(e):Io(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=gi(e);return(t==E?sn:t==N?fn:Bl)(e)}function hl(e){return e?(e=ml(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vl(e){var t=hl(e),n=t%1;return t==t?n?t-n:t:0}function gl(e){return e?cr(vl(e),0,g):0}function ml(e){if("number"==typeof e)return e;if(sl(e))return v;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=me.test(e);return n||ye.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?v:+e}function bl(e){return Po(e,Rl(e))}function yl(e){return null==e?"":uo(e)}var wl=Mo((function(e,t){if(Ei(t)||Ya(t))Po(t,Pl(t),e);else for(var n in t)Te.call(t,n)&&nr(e,n,t[n])})),xl=Mo((function(e,t){Po(t,Rl(t),e)})),kl=Mo((function(e,t,n,r){Po(t,Rl(t),e,r)})),Cl=Mo((function(e,t,n,r){Po(t,Pl(t),e,r)})),Sl=oi(lr);var El=Qr((function(e,t){e=_e(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Rl(a),c=-1,s=l.length;++c<s;){var u=l[c],d=e[u];(d===o||Ba(d,Re[u])&&!Te.call(e,u))&&(e[u]=a[u])}return e})),Ol=Qr((function(e){return e.push(o,ti),_t(Al,o,e)}));function _l(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function $l(e,t){return null!=e&&mi(e,t,jr)}var jl=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tc(oc)),Nl=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Il=Qr(Ir);function Pl(e){return Ya(e)?Qn(e):qr(e)}function Rl(e){return Ya(e)?Qn(e,!0):Lr(e)}var Ml=Mo((function(e,t,n){Hr(e,t,n)})),Al=Mo((function(e,t,n,r){Hr(e,t,n,r)})),Tl=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Po(e,ai(e),n),r&&(n=sr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var ql=oi((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return $l(e,n)}))}(e,t)}));function Ll(e,t){if(null==e)return{};var n=At(ai(e),(function(e){return[e]}));return t=ui(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Dl=Zo(Pl),zl=Zo(Rl);function Bl(e){return null==e?[]:en(e,Pl(e))}var Fl=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Ql(yl(e).toLowerCase())}function Wl(e){return(e=yl(e))&&e.replace(xe,on).replace(tt,"")}var Vl=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ul=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yl=qo("toLowerCase");var Kl=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gl=Lo((function(e,t,n){return e+(n?" ":"")+Ql(t)}));var Xl=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ql=qo("toUpperCase");function Zl(e,t,n){return e=yl(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Jl=Qr((function(e,t){try{return _t(e,o,t)}catch(e){return Qa(e)?e:new Se(e)}})),ec=oi((function(e,t){return jt(t,(function(t){t=Li(t),ar(e,t,Na(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Bo(),rc=Bo(!0);function oc(e){return e}function ic(e){return Tr("function"==typeof e?e:sr(e,1))}var ac=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),lc=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function cc(e,t,n){var r=Pl(t),o=Cr(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Pl(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Za(e);return jt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function sc(){}var uc=Vo(At),dc=Vo(It),fc=Vo(Dt);function pc(e){return ki(e)?Yt(Li(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hc=Yo(),vc=Yo(!0);function gc(){return[]}function mc(){return!1}var bc=Wo((function(e,t){return e+t}),0),yc=Xo("ceil"),wc=Wo((function(e,t){return e/t}),1),xc=Xo("floor");var kc,Cc=Wo((function(e,t){return e*t}),1),Sc=Xo("round"),Ec=Wo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ne(i);return e=vl(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=$a,Bn.assign=wl,Bn.assignIn=xl,Bn.assignInWith=kl,Bn.assignWith=Cl,Bn.at=Sl,Bn.before=ja,Bn.bind=Na,Bn.bindAll=ec,Bn.bindKey=Ia,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:yn(vl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,c=r(ht(i/t));a<i;)c[l++]=oo(e,a,a+=t);return c},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(Va(n)?Io(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Ne(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(_t(o[0],this,n))return _t(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Pl(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Bn.constant=tc,Bn.countBy=ga,Bn.create=function(e,t){var n=Fn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Jo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Pa,Bn.defaults=El,Bn.defaultsDeep=Ol,Bn.defer=Ra,Bn.delay=Ma,Bn.difference=Bi,Bn.differenceBy=Fi,Bn.differenceWith=Hi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:vl(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:vl(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vl(r))<0&&(r+=i),r=n>r?0:gl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Va(e)?Pt:mr)(e,ui(t,3))},Bn.flatMap=function(e,t){return br(Sa(e,t),1)},Bn.flatMapDeep=function(e,t){return br(Sa(e,t),p)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:vl(n),br(Sa(e,t),n)},Bn.flatten=Ui,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,p):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:vl(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=nc,Bn.flowRight=rc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Cr(e,Pl(e))},Bn.functionsIn=function(e){return null==e?[]:Cr(e,Rl(e))},Bn.groupBy=xa,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Ki,Bn.intersectionBy=Gi,Bn.intersectionWith=Xi,Bn.invert=jl,Bn.invertBy=Nl,Bn.invokeMap=ka,Bn.iteratee=ic,Bn.keyBy=Ca,Bn.keys=Pl,Bn.keysIn=Rl,Bn.map=Sa,Bn.mapKeys=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(sr(e,1))},Bn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Bn.memoize=Aa,Bn.merge=Ml,Bn.mergeWith=Al,Bn.method=ac,Bn.methodOf=lc,Bn.mixin=cc,Bn.negate=Ta,Bn.nthArg=function(e){return e=vl(e),Qr((function(t){return Wr(t,e)}))},Bn.omit=Tl,Bn.omitBy=function(e,t){return Ll(e,Ta(ui(t)))},Bn.once=function(e){return ja(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Bn.over=uc,Bn.overArgs=qa,Bn.overEvery=dc,Bn.overSome=fc,Bn.partial=La,Bn.partialRight=Da,Bn.partition=Ea,Bn.pick=ql,Bn.pickBy=Ll,Bn.property=pc,Bn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Bn.pull=Zi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ui(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=hc,Bn.rangeRight=vc,Bn.rearg=za,Bn.reject=function(e,t){return(Va(e)?Pt:mr)(e,Ta(ui(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Kr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Ne(i);return Qr(e,t=t===o?t:vl(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:vl(t),(Va(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Va(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xi(e,t,n)?(t=0,n=r):(t=null==t?0:vl(t),n=n===o?r:vl(n)),oo(e,t,n)):[]},Bn.sortBy=Oa,Bn.sortedUniq=function(e){return e&&e.length?co(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?co(e,ui(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&xi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=yl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=uo(t))&&cn(e)?Co(vn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ne(i);return t=null==t?0:yn(vl(t),0),Qr((function(n){var r=n[t],o=Co(n,0,t);return r&&Tt(o,r),_t(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:vl(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:vl(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?vo(e,ui(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ne(i);return tl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ha,Bn.toArray=pl,Bn.toPairs=Dl,Bn.toPairsIn=zl,Bn.toPath=function(e){return Va(e)?At(e,Li):sl(e)?[e]:Io(qi(yl(e)))},Bn.toPlainObject=bl,Bn.transform=function(e,t,n){var r=Va(e),o=r||Ga(e)||ul(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Za(i)?Fn(Ye(e)):{}}return(o?jt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return $a(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,ui(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fo(e,o,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,wo(n),r)},Bn.values=Bl,Bn.valuesIn=function(e){return null==e?[]:en(e,Rl(e))},Bn.without=la,Bn.words=Zl,Bn.wrap=function(e,t){return La(wo(t),e)},Bn.xor=ca,Bn.xorBy=sa,Bn.xorWith=ua,Bn.zip=da,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=fa,Bn.entries=Dl,Bn.entriesIn=zl,Bn.extend=xl,Bn.extendWith=kl,cc(Bn,Bn),Bn.add=bc,Bn.attempt=Jl,Bn.camelCase=Fl,Bn.capitalize=Hl,Bn.ceil=yc,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ml(n))==n?n:0),t!==o&&(t=(t=ml(t))==t?t:0),cr(ml(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Pl(t))},Bn.deburr=Wl,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wc,Bn.endsWith=function(e,t,n){e=yl(e),t=uo(t);var r=e.length,i=n=n===o?r:cr(vl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=yl(e))&&Q.test(e)?e.replace(G,an):e},Bn.escapeRegExp=function(e){return(e=yl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Va(e)?It:vr;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.find=ma,Bn.findIndex=Wi,Bn.findKey=function(e,t){return Bt(e,ui(t,3),xr)},Bn.findLast=ba,Bn.findLastIndex=Vi,Bn.findLastKey=function(e,t){return Bt(e,ui(t,3),kr)},Bn.floor=xc,Bn.forEach=ya,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),Rl)},Bn.forInRight=function(e,t){return null==e?e:wr(e,ui(t,3),Rl)},Bn.forOwn=function(e,t){return e&&xr(e,ui(t,3))},Bn.forOwnRight=function(e,t){return e&&kr(e,ui(t,3))},Bn.get=_l,Bn.gt=Fa,Bn.gte=Ha,Bn.has=function(e,t){return null!=e&&mi(e,t,$r)},Bn.hasIn=$l,Bn.head=Yi,Bn.identity=oc,Bn.includes=function(e,t,n,r){e=Ya(e)?e:Bl(e),n=n&&!r?vl(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),cl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=yn(r+o,0)),Ht(e,t,o)},Bn.inRange=function(e,t,n){return t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n){return e>=wn(t,n)&&e<yn(t,n)}(e=ml(e),t,n)},Bn.invoke=Il,Bn.isArguments=Wa,Bn.isArray=Va,Bn.isArrayBuffer=Ua,Bn.isArrayLike=Ya,Bn.isArrayLikeObject=Ka,Bn.isBoolean=function(e){return!0===e||!1===e||nl(e)&&Or(e)==w},Bn.isBuffer=Ga,Bn.isDate=Xa,Bn.isElement=function(e){return nl(e)&&1===e.nodeType&&!il(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||ul(e)||Wa(e)))return!e.length;var t=gi(e);if(t==E||t==N)return!e.size;if(Ei(e))return!qr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Rr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Rr(e,t,o,n):!!r},Bn.isError=Qa,Bn.isFinite=function(e){return"number"==typeof e&&wt(e)},Bn.isFunction=Za,Bn.isInteger=Ja,Bn.isLength=el,Bn.isMap=rl,Bn.isMatch=function(e,t){return e===t||Mr(e,t,fi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,fi(t),n)},Bn.isNaN=function(e){return ol(e)&&e!=+e},Bn.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=ol,Bn.isObject=tl,Bn.isObjectLike=nl,Bn.isPlainObject=il,Bn.isRegExp=al,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=ll,Bn.isString=cl,Bn.isSymbol=sl,Bn.isTypedArray=ul,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return nl(e)&&gi(e)==R},Bn.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==Or(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Vl,Bn.last=Qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vl(n))<0?yn(r+i,0):wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Vt,i,!0)},Bn.lowerCase=Ul,Bn.lowerFirst=Yl,Bn.lt=dl,Bn.lte=fl,Bn.max=function(e){return e&&e.length?gr(e,oc,_r):o},Bn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),_r):o},Bn.mean=function(e){return Ut(e,oc)},Bn.meanBy=function(e,t){return Ut(e,ui(t,2))},Bn.min=function(e){return e&&e.length?gr(e,oc,Dr):o},Bn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Dr):o},Bn.stubArray=gc,Bn.stubFalse=mc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Cc,Bn.nth=function(e,t){return e&&e.length?Wr(e,vl(t)):o},Bn.noConflict=function(){return vt._===this&&(vt._=Be),this},Bn.noop=sc,Bn.now=_a,Bn.pad=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(gt(o),n)+e+Uo(ht(o),n)},Bn.padEnd=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;return t&&r<t?e+Uo(t-r,n):e},Bn.padStart=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;return t&&r<t?Uo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),kn(yl(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hl(e),t===o?(t=e,e=0):t=hl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return wn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Gr(e,t)},Bn.reduce=function(e,t,n){var r=Va(e)?qt:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Va(e)?Lt:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},Bn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:vl(t),Xr(yl(e),t)},Bn.replace=function(){var e=arguments,t=yl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Bn.round=Sc,Bn.runInContext=e,Bn.sample=function(e){return(Va(e)?Zn:Zr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ya(e))return cl(e)?hn(e):e.length;var t=gi(e);return t==E||t==N?e.size:qr(e).length},Bn.snakeCase=Kl,Bn.some=function(e,t,n){var r=Va(e)?Dt:io;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return lo(e,t,ui(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return lo(e,t,ui(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Gl,Bn.startsWith=function(e,t,n){return e=yl(e),n=null==n?0:cr(vl(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=Ec,Bn.sum=function(e){return e&&e.length?Xt(e,oc):0},Bn.sumBy=function(e,t){return e&&e.length?Xt(e,ui(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&xi(e,t,n)&&(t=o),e=yl(e),t=kl({},t,r,ei);var i,a,l=kl({},t.imports,r.imports,ei),c=Pl(l),s=en(l,c),u=0,d=t.interpolate||ke,f="__p += '",p=$e((t.escape||ke).source+"|"+d.source+"|"+(d===ee?he:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),h="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(Ce,ln),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var v=Te.call(t,"variable")&&t.variable;if(v){if(fe.test(v))throw new Se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(V,""):f).replace(U,"$1").replace(Y,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Jl((function(){return Ee(c,h+"return "+f).apply(o,s)}));if(g.source=f,Qa(g))throw g;return g},Bn.times=function(e,t){if((e=vl(e))<1||e>h)return[];var n=g,r=wn(e,g);t=ui(t),e-=g;for(var o=Qt(r,t);++n<e;)t(n);return o},Bn.toFinite=hl,Bn.toInteger=vl,Bn.toLength=gl,Bn.toLower=function(e){return yl(e).toLowerCase()},Bn.toNumber=ml,Bn.toSafeInteger=function(e){return e?cr(vl(e),-9007199254740991,h):0===e?e:0},Bn.toString=yl,Bn.toUpper=function(e){return yl(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=yl(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=vn(e),i=vn(t);return Co(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=uo(t)))return e;var r=vn(e);return Co(r,0,rn(r,vn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=vn(e);return Co(r,nn(r,vn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(tl(t)){var i="separator"in t?t.separator:i;n="length"in t?vl(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=yl(e)).length;if(cn(e)){var l=vn(e);a=l.length}if(n>=a)return e;var c=n-hn(r);if(c<1)return r;var s=l?Co(l,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(l&&(c+=s.length-c),al(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=$e(i.source,yl(ve.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;s=s.slice(0,f===o?c:f)}}else if(e.indexOf(uo(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},Bn.unescape=function(e){return(e=yl(e))&&X.test(e)?e.replace(K,mn):e},Bn.uniqueId=function(e){var t=++qe;return yl(e)+t},Bn.upperCase=Xl,Bn.upperFirst=Ql,Bn.each=ya,Bn.eachRight=wa,Bn.first=Yi,cc(Bn,(kc={},xr(Bn,(function(e,t){Te.call(Bn.prototype,t)||(kc[t]=e)})),kc),{chain:!1}),Bn.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),jt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:yn(vl(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(oc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ir(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ta(ui(e)))},Vn.prototype.slice=function(e,t){e=vl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(g)},xr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,c=t instanceof Vn,s=l[0],u=c||Va(t),d=function(e){var t=i.apply(Bn,Tt([e],l));return r&&f?t[0]:t};u&&n&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,v=c&&!p;if(!a&&u){t=v?t:new Vn(this);var g=e.apply(t,l);return g.__actions__.push({func:ha,args:[d],thisArg:o}),new Wn(g,f)}return h&&v?e.apply(this,l):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),xr(Vn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Te.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Fo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=wn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return go(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var v=-1,g=e[s+=t];++v<d;){var m=u[v],b=m.iteratee,y=m.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}h[f++]=g}return h},Bn.prototype.at=va,Bn.prototype.chain=function(){return pa(this)},Bn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();vt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},9761:function(e,t,n){var r;
18 /**
19 * @license
20 * Lodash <https://lodash.com/>
21 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
22 * Released under MIT license <https://lodash.com/license>
23 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
25 */e=n.nmd(e),function(){function o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function l(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function c(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function u(e,t){return!(null==e||!e.length)&&w(e,t,0)>-1}function d(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function f(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function p(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function h(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function v(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function g(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e){return e.match(tt)||[]}function b(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function y(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function w(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):y(e,k,n)}function x(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function k(e){return e!=e}function C(e,t){var n=null==e?0:e.length;return n?_(e,t)/n:re}function S(e){return function(t){return null==t?U:t[e]}}function E(e){return function(t){return null==e?U:e[t]}}function O(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function _(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==U&&(n=n===U?i:n+i)}return n}function $(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function j(e){return e?e.slice(0,W(e)+1).replace(Xe,""):e}function N(e){return function(t){return e(t)}}function I(e,t){return f(t,(function(t){return e[t]}))}function P(e,t){return e.has(t)}function R(e,t){for(var n=-1,r=e.length;++n<r&&w(t,e[n],0)>-1;);return n}function M(e,t){for(var n=e.length;n--&&w(t,e[n],0)>-1;);return n}function A(e){return"\\"+en[e]}function T(e){return Kt.test(e)}function q(e){return Gt.test(e)}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e,t){return function(n){return e(t(n))}}function z(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==G||(e[n]=G,i[o++]=n)}return i}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function F(e){return T(e)?function(e){for(var t=Ut.lastIndex=0;Ut.test(e);)++t;return t}(e):bn(e)}function H(e){return T(e)?function(e){return e.match(Ut)||[]}(e):function(e){return e.split("")}(e)}function W(e){for(var t=e.length;t--&&Qe.test(e.charAt(t)););return t}function V(e){return e.match(Yt)||[]}var U,Y="Expected a function",K="__lodash_hash_undefined__",G="__lodash_placeholder__",X=16,Q=32,Z=64,J=128,ee=256,te=1/0,ne=9007199254740991,re=NaN,oe=4294967295,ie=oe-1,ae=oe>>>1,le=[["ary",J],["bind",1],["bindKey",2],["curry",8],["curryRight",X],["flip",512],["partial",Q],["partialRight",Z],["rearg",ee]],ce="[object Arguments]",se="[object Array]",ue="[object Boolean]",de="[object Date]",fe="[object Error]",pe="[object Function]",he="[object GeneratorFunction]",ve="[object Map]",ge="[object Number]",me="[object Object]",be="[object Promise]",ye="[object RegExp]",we="[object Set]",xe="[object String]",ke="[object Symbol]",Ce="[object WeakMap]",Se="[object ArrayBuffer]",Ee="[object DataView]",Oe="[object Float32Array]",_e="[object Float64Array]",$e="[object Int8Array]",je="[object Int16Array]",Ne="[object Int32Array]",Ie="[object Uint8Array]",Pe="[object Uint8ClampedArray]",Re="[object Uint16Array]",Me="[object Uint32Array]",Ae=/\b__p \+= '';/g,Te=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Le=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,ze=RegExp(Le.source),Be=RegExp(De.source),Fe=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,We=/<%=([\s\S]+?)%>/g,Ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ke=/[\\^$.*+?()[\]{}|]/g,Ge=RegExp(Ke.source),Xe=/^\s+/,Qe=/\s/,Ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Je=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,rt=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,at=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,ct=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,pt=/['\n\r\u2028\u2029\\]/g,ht="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",gt="\\u2700-\\u27bf",mt="a-z\\xdf-\\xf6\\xf8-\\xff",bt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\ufe0e\\ufe0f",wt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xt="['’]",kt="["+ht+"]",Ct="["+wt+"]",St="["+vt+"]",Et="\\d+",Ot="["+gt+"]",_t="["+mt+"]",$t="[^"+ht+wt+Et+gt+mt+bt+"]",jt="\\ud83c[\\udffb-\\udfff]",Nt="[^"+ht+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+bt+"]",Mt="\\u200d",At="(?:"+_t+"|"+$t+")",Tt="(?:"+Rt+"|"+$t+")",qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Lt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Dt="(?:"+St+"|"+jt+")"+"?",zt="["+yt+"]?",Bt=zt+Dt+("(?:"+Mt+"(?:"+[Nt,It,Pt].join("|")+")"+zt+Dt+")*"),Ft="(?:"+[Ot,It,Pt].join("|")+")"+Bt,Ht="(?:"+[Nt+St+"?",St,It,Pt,kt].join("|")+")",Wt=RegExp(xt,"g"),Vt=RegExp(St,"g"),Ut=RegExp(jt+"(?="+jt+")|"+Ht+Bt,"g"),Yt=RegExp([Rt+"?"+_t+"+"+qt+"(?="+[Ct,Rt,"$"].join("|")+")",Tt+"+"+Lt+"(?="+[Ct,Rt+At,"$"].join("|")+")",Rt+"?"+At+"+"+qt,Rt+"+"+Lt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Et,Ft].join("|"),"g"),Kt=RegExp("["+Mt+ht+vt+yt+"]"),Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qt=-1,Zt={};Zt[Oe]=Zt[_e]=Zt[$e]=Zt[je]=Zt[Ne]=Zt[Ie]=Zt[Pe]=Zt[Re]=Zt[Me]=!0,Zt[ce]=Zt[se]=Zt[Se]=Zt[ue]=Zt[Ee]=Zt[de]=Zt[fe]=Zt[pe]=Zt[ve]=Zt[ge]=Zt[me]=Zt[ye]=Zt[we]=Zt[xe]=Zt[Ce]=!1;var Jt={};Jt[ce]=Jt[se]=Jt[Se]=Jt[Ee]=Jt[ue]=Jt[de]=Jt[Oe]=Jt[_e]=Jt[$e]=Jt[je]=Jt[Ne]=Jt[ve]=Jt[ge]=Jt[me]=Jt[ye]=Jt[we]=Jt[xe]=Jt[ke]=Jt[Ie]=Jt[Pe]=Jt[Re]=Jt[Me]=!0,Jt[fe]=Jt[pe]=Jt[Ce]=!1;var en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=parseFloat,nn=parseInt,rn="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,on="object"==typeof self&&self&&self.Object===Object&&self,an=rn||on||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,sn=cn&&cn.exports===ln,un=sn&&rn.process,dn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||un&&un.binding&&un.binding("util")}catch(e){}}(),fn=dn&&dn.isArrayBuffer,pn=dn&&dn.isDate,hn=dn&&dn.isMap,vn=dn&&dn.isRegExp,gn=dn&&dn.isSet,mn=dn&&dn.isTypedArray,bn=S("length"),yn=E({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wn=E({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),xn=E({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),kn=function e(t){function n(e){if(Bo(e)&&!Nl(e)&&!(e instanceof Qe)){if(e instanceof E)return e;if(Ni.call(e,"__wrapped__"))return po(e)}return new E(e)}function r(){}function E(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=U}function Qe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function vt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function gt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vt;++t<n;)this.add(e[t])}function mt(e){this.size=(this.__data__=new ht(e)).size}function bt(e,t){var n=Nl(e),r=!n&&jl(e),o=!n&&!r&&Pl(e),i=!n&&!r&&!o&&ql(e),a=n||r||o||i,l=a?$(e.length,Ci):[],c=l.length;for(var s in e)!t&&!Ni.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Xr(s,c))||l.push(s);return l}function yt(e){var t=e.length;return t?e[Rn(0,t-1)]:U}function wt(e,t){return co(ur(e),jt(t,0,e.length))}function xt(e){return co(ur(e))}function kt(e,t,n){(n===U||Ro(e[t],n))&&(n!==U||t in e)||_t(e,t,n)}function Ct(e,t,n){var r=e[t];Ni.call(e,t)&&Ro(r,n)&&(n!==U||t in e)||_t(e,t,n)}function St(e,t){for(var n=e.length;n--;)if(Ro(e[n][0],t))return n;return-1}function Et(e,t,n,r){return $a(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Ot(e,t){return e&&dr(t,ti(t),e)}function _t(e,t,n){"__proto__"==t&&Ki?Ki(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $t(e,t){for(var n=-1,r=t.length,o=gi(r),i=null==e;++n<r;)o[n]=i?U:Jo(e,t[n]);return o}function jt(e,t,n){return e==e&&(n!==U&&(e=e<=n?e:n),t!==U&&(e=e>=t?e:t)),e}function Nt(e,t,n,r,o,i){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=o?n(e,r,o,i):n(e)),l!==U)return l;if(!zo(e))return e;var d=Nl(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ni.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ur(e,l)}else{var f=za(e),p=f==pe||f==he;if(Pl(e))return or(e,c);if(f==me||f==ce||p&&!o){if(l=s||p?{}:Kr(e),!c)return s?function(e,t){return dr(e,Da(e),t)}(e,function(e,t){return e&&dr(t,ni(t),e)}(l,e)):function(e,t){return dr(e,La(e),t)}(e,Ot(l,e))}else{if(!Jt[f])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case Se:return ir(e);case ue:case de:return new r(+e);case Ee:return function(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case Oe:case _e:case $e:case je:case Ne:case Ie:case Pe:case Re:case Me:return ar(e,n);case ve:return new r;case ge:case xe:return new r(e);case ye:return function(e){var t=new e.constructor(e.source,it.exec(e));return t.lastIndex=e.lastIndex,t}(e);case we:return new r;case ke:return function(e){return Ea?xi(Ea.call(e)):{}}(e)}}(e,f,c)}}i||(i=new mt);var h=i.get(e);if(h)return h;i.set(e,l),Tl(e)?e.forEach((function(r){l.add(Nt(r,t,n,r,e,i))})):Ml(e)&&e.forEach((function(r,o){l.set(o,Nt(r,t,n,o,e,i))}));var v=d?U:(u?s?zr:Dr:s?ni:ti)(e);return a(v||e,(function(r,o){v&&(r=e[o=r]),Ct(l,o,Nt(r,t,n,o,e,i))})),l}function It(e,t,n){var r=n.length;if(null==e)return!r;for(e=xi(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===U&&!(o in e)||!i(a))return!1}return!0}function Pt(e,t,n){if("function"!=typeof e)throw new Si(Y);return Ha((function(){e.apply(U,n)}),t)}function Rt(e,t,n,r){var o=-1,i=u,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=f(t,N(n))),r?(i=d,a=!1):t.length>=200&&(i=P,a=!1,t=new gt(t));e:for(;++o<l;){var p=e[o],h=null==n?p:n(p);if(p=r||0!==p?p:0,a&&h==h){for(var v=s;v--;)if(t[v]===h)continue e;c.push(p)}else i(t,h,r)||c.push(p)}return c}function Mt(e,t){var n=!0;return $a(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function At(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(l===U?a==a&&!Vo(a):n(a,l)))var l=a,c=i}return c}function Tt(e,t){var n=[];return $a(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function qt(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Gr),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?qt(l,t-1,n,r,o):p(o,l):r||(o[o.length]=l)}return o}function Lt(e,t){return e&&Na(e,t,ti)}function Dt(e,t){return e&&Ia(e,t,ti)}function zt(e,t){return s(t,(function(t){return qo(e[t])}))}function Bt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[so(t[n++])];return n&&n==r?e:U}function Ft(e,t,n){var r=t(e);return Nl(e)?r:p(r,n(e))}function Ht(e){return null==e?e===U?"[object Undefined]":"[object Null]":Yi&&Yi in xi(e)?function(e){var t=Ni.call(e,Yi),n=e[Yi];try{e[Yi]=U;var r=!0}catch(e){}var o=Ri.call(e);return r&&(t?e[Yi]=n:delete e[Yi]),o}(e):function(e){return Ri.call(e)}(e)}function Ut(e,t){return e>t}function Yt(e,t){return null!=e&&Ni.call(e,t)}function Kt(e,t){return null!=e&&t in xi(e)}function Gt(e,t,n){for(var r=n?d:u,o=e[0].length,i=e.length,a=i,l=gi(i),c=1/0,s=[];a--;){var p=e[a];a&&t&&(p=f(p,N(t))),c=aa(p.length,c),l[a]=!n&&(t||o>=120&&p.length>=120)?new gt(a&&p):U}p=e[0];var h=-1,v=l[0];e:for(;++h<o&&s.length<c;){var g=p[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(v?P(v,m):r(s,m,n))){for(a=i;--a;){var b=l[a];if(!(b?P(b,m):r(e[a],m,n)))continue e}v&&v.push(m),s.push(g)}}return s}function en(e,t,n){var r=null==(e=oo(e,t=nr(t,e)))?e:e[so(bo(t))];return null==r?U:o(r,e,n)}function rn(e){return Bo(e)&&Ht(e)==ce}function on(e,t,n,r,o){return e===t||(null==e||null==t||!Bo(e)&&!Bo(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Nl(e),l=Nl(t),c=a?se:za(e),s=l?se:za(t);c=c==ce?me:c,s=s==ce?me:s;var u=c==me,d=s==me,f=c==s;if(f&&Pl(e)){if(!Pl(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new mt),a||ql(e)?qr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case Ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!i(new Di(e),new Di(t)));case ue:case de:case ge:return Ro(+e,+t);case fe:return e.name==t.name&&e.message==t.message;case ye:case xe:return e==t+"";case ve:var l=L;case we:var c=1&r;if(l||(l=B),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=qr(l(e),l(t),r,o,i,a);return a.delete(e),u;case ke:if(Ea)return Ea.call(e)==Ea.call(t)}return!1}(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&Ni.call(e,"__wrapped__"),h=d&&Ni.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,g=h?t.value():t;return i||(i=new mt),o(v,g,n,r,i)}}return!!f&&(i||(i=new mt),function(e,t,n,r,o,i){var a=1&n,l=Dr(e),c=l.length;if(c!=Dr(t).length&&!a)return!1;for(var s=c;s--;){var u=l[s];if(!(a?u in t:Ni.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<c;){var v=e[u=l[s]],g=t[u];if(r)var m=a?r(g,v,u,t,e,i):r(v,g,u,e,t,i);if(!(m===U?v===g||o(v,g,n,r,i):m)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,on,o))}function ln(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=xi(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var c=(l=n[o])[0],s=e[c],u=l[1];if(a&&l[2]){if(s===U&&!(c in e))return!1}else{var d=new mt;if(r)var f=r(s,u,c,e,t,d);if(!(f===U?on(u,s,3,r,d):f))return!1}}return!0}function cn(e){return!(!zo(e)||function(e){return!!Pi&&Pi in e}(e))&&(qo(e)?Ti:ct).test(uo(e))}function un(e){return"function"==typeof e?e:null==e?si:"object"==typeof e?Nl(e)?On(e[0],e[1]):En(e):pi(e)}function dn(e){if(!eo(e))return oa(e);var t=[];for(var n in xi(e))Ni.call(e,n)&&"constructor"!=n&&t.push(n);return t}function bn(e){if(!zo(e))return function(e){var t=[];if(null!=e)for(var n in xi(e))t.push(n);return t}(e);var t=eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ni.call(e,r))&&n.push(r);return n}function Cn(e,t){return e<t}function Sn(e,t){var n=-1,r=Mo(e)?gi(e.length):[];return $a(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function En(e){var t=Vr(e);return 1==t.length&&t[0][2]?no(t[0][0],t[0][1]):function(n){return n===e||ln(n,e,t)}}function On(e,t){return Zr(e)&&to(t)?no(so(e),t):function(n){var r=Jo(n,e);return r===U&&r===t?ei(n,e):on(t,r,3)}}function _n(e,t,n,r,o){e!==t&&Na(t,(function(i,a){if(o||(o=new mt),zo(i))!function(e,t,n,r,o,i,a){var l=io(e,n),c=io(t,n),s=a.get(c);if(s)return kt(e,n,s),U;var u=i?i(l,c,n+"",e,t,a):U,d=u===U;if(d){var f=Nl(c),p=!f&&Pl(c),h=!f&&!p&&ql(c);u=c,f||p||h?Nl(l)?u=l:Ao(l)?u=ur(l):p?(d=!1,u=or(c,!0)):h?(d=!1,u=ar(c,!0)):u=[]:Ho(c)||jl(c)?(u=l,jl(l)?u=Qo(l):zo(l)&&!qo(l)||(u=Kr(c))):d=!1}d&&(a.set(c,u),o(u,c,r,i,a),a.delete(c)),kt(e,n,u)}(e,t,a,n,_n,r,o);else{var l=r?r(io(e,a),i,a+"",e,t,o):U;l===U&&(l=i),kt(e,a,l)}}),ni)}function $n(e,t){var n=e.length;if(n)return Xr(t+=t<0?n:0,n)?e[t]:U}function jn(e,t,n){t=t.length?f(t,(function(e){return Nl(e)?function(t){return Bt(t,1===e.length?e[0]:e)}:e})):[si];var r=-1;return t=f(t,N(Hr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Sn(e,(function(e,n,o){return{criteria:f(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var c=lr(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Nn(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Bt(e,a);n(l,a)&&Ln(i,nr(a,e),l)}return i}function In(e,t,n,r){var o=r?x:w,i=-1,a=t.length,l=e;for(e===t&&(t=ur(t)),n&&(l=f(e,N(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Wi.call(l,c,1),Wi.call(e,c,1);return e}function Pn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Xr(o)?Wi.call(e,o,1):Kn(e,o)}}return e}function Rn(e,t){return e+Ji(sa()*(t-e+1))}function Mn(e,t){var n="";if(!e||t<1||t>ne)return n;do{t%2&&(n+=e),(t=Ji(t/2))&&(e+=e)}while(t);return n}function An(e,t){return Wa(ro(e,t,si),e+"")}function Tn(e){return yt(oi(e))}function qn(e,t){var n=oi(e);return co(n,jt(t,0,n.length))}function Ln(e,t,n,r){if(!zo(e))return e;for(var o=-1,i=(t=nr(t,e)).length,a=i-1,l=e;null!=l&&++o<i;){var c=so(t[o]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var u=l[c];(s=r?r(u,c,l):U)===U&&(s=zo(u)?u:Xr(t[o+1])?[]:{})}Ct(l,c,s),l=l[c]}return e}function Dn(e){return co(oi(e))}function zn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=gi(o);++r<o;)i[r]=e[r+t];return i}function Bn(e,t){var n;return $a(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Fn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=ae){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Vo(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Hn(e,t,si,n)}function Hn(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,l=null===t,c=Vo(t),s=t===U;o<i;){var u=Ji((o+i)/2),d=n(e[u]),f=d!==U,p=null===d,h=d==d,v=Vo(d);if(a)var g=r||h;else g=s?h&&(r||f):l?h&&f&&(r||!p):c?h&&f&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);g?o=u+1:i=u}return aa(i,ie)}function Wn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ro(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function Vn(e){return"number"==typeof e?e:Vo(e)?re:+e}function Un(e){if("string"==typeof e)return e;if(Nl(e))return f(e,Un)+"";if(Vo(e))return Oa?Oa.call(e):"";var t=e+"";return"0"==t&&1/e==-te?"-0":t}function Yn(e,t,n){var r=-1,o=u,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=d;else if(i>=200){var s=t?null:Ta(e);if(s)return B(s);a=!1,o=P,c=new gt}else c=t?[]:l;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(f)}else o(c,p,n)||(c!==l&&c.push(p),l.push(f))}return l}function Kn(e,t){return null==(e=oo(e,t=nr(t,e)))||delete e[so(bo(t))]}function Gn(e,t,n,r){return Ln(e,t,n(Bt(e,t)),r)}function Xn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?zn(e,r?0:i,r?i+1:o):zn(e,r?i+1:0,r?o:i)}function Qn(e,t){var n=e;return n instanceof Qe&&(n=n.value()),h(t,(function(e,t){return t.func.apply(t.thisArg,p([e],t.args))}),n)}function Zn(e,t,n){var r=e.length;if(r<2)return r?Yn(e[0]):[];for(var o=-1,i=gi(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(i[o]=Rt(i[o]||a,e[l],t,n));return Yn(qt(i,1),t,n)}function Jn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;)n(a,e[r],r<i?t[r]:U);return a}function er(e){return Ao(e)?e:[]}function tr(e){return"function"==typeof e?e:si}function nr(e,t){return Nl(e)?e:Zr(e,t)?[e]:Va(Zo(e))}function rr(e,t,n){var r=e.length;return n=n===U?r:n,!t&&n>=r?e:zn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=zi?zi(n):new e.constructor(n);return e.copy(r),r}function ir(e){var t=new e.constructor(e.byteLength);return new Di(t).set(new Di(e)),t}function ar(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.length)}function lr(e,t){if(e!==t){var n=e!==U,r=null===e,o=e==e,i=Vo(e),a=t!==U,l=null===t,c=t==t,s=Vo(t);if(!l&&!s&&!i&&e>t||i&&a&&c&&!l&&!s||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!c)return-1}return 0}function cr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,c=t.length,s=ia(i-a,0),u=gi(c+s),d=!r;++l<c;)u[l]=t[l];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;s--;)u[l++]=e[o++];return u}function sr(e,t,n,r){for(var o=-1,i=e.length,a=-1,l=n.length,c=-1,s=t.length,u=ia(i-l,0),d=gi(u+s),f=!r;++o<u;)d[o]=e[o];for(var p=o;++c<s;)d[p+c]=t[c];for(;++a<l;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function ur(e,t){var n=-1,r=e.length;for(t||(t=gi(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=r?r(n[l],e[l],l,n,e):U;c===U&&(c=e[l]),o?_t(n,l,c):Ct(n,l,c)}return n}function fr(e,t){return function(n,r){var o=Nl(n)?i:Et,a=t?t():{};return o(n,e,Hr(r,2),a)}}function pr(e){return An((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:U,a=o>2?n[2]:U;for(i=e.length>3&&"function"==typeof i?(o--,i):U,a&&Qr(n[0],n[1],a)&&(i=o<3?U:i,o=1),t=xi(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Mo(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=xi(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function vr(e){return function(t,n,r){for(var o=-1,i=xi(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function gr(e){return function(t){var n=T(t=Zo(t))?H(t):U,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function mr(e){return function(t){return h(li(ai(t).replace(Wt,"")),e,"")}}function br(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_a(e.prototype),r=e.apply(n,t);return zo(r)?r:n}}function yr(e,t,n){var r=br(e);return function i(){for(var a=arguments.length,l=gi(a),c=a,s=Fr(i);c--;)l[c]=arguments[c];var u=a<3&&l[0]!==s&&l[a-1]!==s?[]:z(l,s);return(a-=u.length)<n?Nr(e,t,kr,i.placeholder,U,l,u,U,U,n-a):o(this&&this!==an&&this instanceof i?r:e,this,l)}}function wr(e){return function(t,n,r){var o=xi(t);if(!Mo(t)){var i=Hr(n,3);t=ti(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:U}}function xr(e){return Lr((function(t){var n=t.length,r=n,o=E.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new Si(Y);if(o&&!a&&"wrapper"==Br(i))var a=new E([],!0)}for(r=a?r:n;++r<n;){var l=Br(i=t[r]),c="wrapper"==l?qa(i):U;a=c&&Jr(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[Br(c[0])].apply(a,c[3]):1==i.length&&Jr(i)?a[l]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Nl(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function kr(e,t,n,r,o,i,a,l,c,s){var u=t&J,d=1&t,f=2&t,p=24&t,h=512&t,v=f?U:br(e);return function g(){for(var m=arguments.length,b=gi(m),y=m;y--;)b[y]=arguments[y];if(p)var w=Fr(g),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(r&&(b=cr(b,r,o,p)),i&&(b=sr(b,i,a,p)),m-=x,p&&m<s)return Nr(e,t,kr,g.placeholder,n,b,z(b,w),l,c,s-m);var k=d?n:this,C=f?k[e]:e;return m=b.length,l?b=function(e,t){for(var n=e.length,r=aa(t.length,n),o=ur(e);r--;){var i=t[r];e[r]=Xr(i,n)?o[i]:U}return e}(b,l):h&&m>1&&b.reverse(),u&&c<m&&(b.length=c),this&&this!==an&&this instanceof g&&(C=v||br(C)),C.apply(k,b)}}function Cr(e,t){return function(n,r){return function(e,t,n,r){return Lt(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Sr(e,t){return function(n,r){var o;if(n===U&&r===U)return t;if(n!==U&&(o=n),r!==U){if(o===U)return r;"string"==typeof n||"string"==typeof r?(n=Un(n),r=Un(r)):(n=Vn(n),r=Vn(r)),o=e(n,r)}return o}}function Er(e){return Lr((function(t){return t=f(t,N(Hr())),An((function(n){var r=this;return e(t,(function(e){return o(e,r,n)}))}))}))}function Or(e,t){var n=(t=t===U?" ":Un(t)).length;if(n<2)return n?Mn(t,e):t;var r=Mn(t,Zi(e/F(t)));return T(t)?rr(H(r),0,e).join(""):r.slice(0,e)}function _r(e,t,n,r){var i=1&t,a=br(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=r.length,d=gi(u+c),f=this&&this!==an&&this instanceof t?a:e;++s<u;)d[s]=r[s];for(;c--;)d[s++]=arguments[++l];return o(f,i?n:this,d)}}function $r(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=U),t=Yo(t),n===U?(n=t,t=0):n=Yo(n),function(e,t,n,r){for(var o=-1,i=ia(Zi((t-e)/(n||1)),0),a=gi(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===U?t<n?1:-1:Yo(r),e)}}function jr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Xo(t),n=Xo(n)),e(t,n)}}function Nr(e,t,n,r,o,i,a,l,c,s){var u=8&t;t|=u?Q:Z,4&(t&=~(u?Z:Q))||(t&=-4);var d=[e,t,o,u?i:U,u?a:U,u?U:i,u?U:a,l,c,s],f=n.apply(U,d);return Jr(e)&&Fa(f,d),f.placeholder=r,ao(f,e,t)}function Ir(e){var t=wi[e];return function(e,n){if(e=Xo(e),(n=null==n?0:aa(Ko(n),292))&&na(e)){var r=(Zo(e)+"e").split("e");return+((r=(Zo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Pr(e){return function(t){var n=za(t);return n==ve?L(t):n==we?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return f(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Rr(e,t,n,r,o,i,a,l){var c=2&t;if(!c&&"function"!=typeof e)throw new Si(Y);var s=r?r.length:0;if(s||(t&=-97,r=o=U),a=a===U?a:ia(Ko(a),0),l=l===U?l:Ko(l),s-=o?o.length:0,t&Z){var u=r,d=o;r=o=U}var f=c?U:qa(e),p=[e,t,n,r,o,u,d,i,a,l];if(f&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==J&&8==n||r==J&&n==ee&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?cr(c,l,t[4]):l,e[4]=c?z(e[3],G):t[4]}l=t[5],l&&(c=e[5],e[5]=c?sr(c,l,t[6]):l,e[6]=c?z(e[5],G):t[6]),l=t[7],l&&(e[7]=l),r&J&&(e[8]=null==e[8]?t[8]:aa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(p,f),e=p[0],t=p[1],n=p[2],r=p[3],o=p[4],!(l=p[9]=p[9]===U?c?0:e.length:ia(p[9]-s,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||t==X?yr(e,t,l):t!=Q&&33!=t||o.length?kr.apply(U,p):_r(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=br(e);return function t(){return(this&&this!==an&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ao((f?Pa:Fa)(h,p),e,t)}function Mr(e,t,n,r){return e===U||Ro(e,_i[n])&&!Ni.call(r,n)?t:e}function Ar(e,t,n,r,o,i){return zo(e)&&zo(t)&&(i.set(t,e),_n(e,t,U,Ar,i),i.delete(t)),e}function Tr(e){return Ho(e)?U:e}function qr(e,t,n,r,o,i){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var d=-1,f=!0,p=2&n?new gt:U;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],v=t[d];if(r)var m=a?r(v,h,d,t,e,i):r(h,v,d,e,t,i);if(m!==U){if(m)continue;f=!1;break}if(p){if(!g(t,(function(e,t){if(!P(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Lr(e){return Wa(ro(e,U,go),e+"")}function Dr(e){return Ft(e,ti,La)}function zr(e){return Ft(e,ni,Da)}function Br(e){for(var t=e.name+"",n=ba[t],r=Ni.call(ba,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Fr(e){return(Ni.call(n,"placeholder")?n:e).placeholder}function Hr(){var e=n.iteratee||ui;return e=e===ui?un:e,arguments.length?e(arguments[0],arguments[1]):e}function Wr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Vr(e){for(var t=ti(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,to(o)]}return t}function Ur(e,t){var n=function(e,t){return null==e?U:e[t]}(e,t);return cn(n)?n:U}function Yr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,i=!1;++r<o;){var a=so(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Do(o)&&Xr(a,o)&&(Nl(e)||jl(e))}function Kr(e){return"function"!=typeof e.constructor||eo(e)?{}:_a(Bi(e))}function Gr(e){return Nl(e)||jl(e)||!!(Vi&&e&&e[Vi])}function Xr(e,t){var n=typeof e;return!!(t=null==t?ne:t)&&("number"==n||"symbol"!=n&&ut.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!zo(n))return!1;var r=typeof t;return!!("number"==r?Mo(n)&&Xr(t,n.length):"string"==r&&t in n)&&Ro(n[t],e)}function Zr(e,t){if(Nl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Vo(e))||Ue.test(e)||!Ve.test(e)||null!=t&&e in xi(t)}function Jr(e){var t=Br(e),r=n[t];if("function"!=typeof r||!(t in Qe.prototype))return!1;if(e===r)return!0;var o=qa(r);return!!o&&e===o[0]}function eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_i)}function to(e){return e==e&&!zo(e)}function no(e,t){return function(n){return null!=n&&n[e]===t&&(t!==U||e in xi(n))}}function ro(e,t,n){return t=ia(t===U?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ia(r.length-t,0),l=gi(a);++i<a;)l[i]=r[t+i];i=-1;for(var c=gi(t+1);++i<t;)c[i]=r[i];return c[t]=n(l),o(e,this,c)}}function oo(e,t){return t.length<2?e:Bt(e,zn(t,0,-1))}function io(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ao(e,t,n){var r=t+"";return Wa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ze,"{\n/* [wrapped with "+t+"] */\n")}(r,fo(function(e){var t=e.match(Je);return t?t[1].split(et):[]}(r),n)))}function lo(e){var t=0,n=0;return function(){var r=la(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(U,arguments)}}function co(e,t){var n=-1,r=e.length,o=r-1;for(t=t===U?r:t;++n<t;){var i=Rn(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function so(e){if("string"==typeof e||Vo(e))return e;var t=e+"";return"0"==t&&1/e==-te?"-0":t}function uo(e){if(null!=e){try{return ji.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fo(e,t){return a(le,(function(n){var r="_."+n[0];t&n[1]&&!u(e,r)&&e.push(r)})),e.sort()}function po(e){if(e instanceof Qe)return e.clone();var t=new E(e.__wrapped__,e.__chain__);return t.__actions__=ur(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ko(n);return o<0&&(o=ia(r+o,0)),y(e,Hr(t,3),o)}function vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==U&&(o=Ko(n),o=n<0?ia(r+o,0):aa(o,r-1)),y(e,Hr(t,3),o,!0)}function go(e){return null!=e&&e.length?qt(e,1):[]}function mo(e){return e&&e.length?e[0]:U}function bo(e){var t=null==e?0:e.length;return t?e[t-1]:U}function yo(e,t){return e&&e.length&&t&&t.length?In(e,t):e}function wo(e){return null==e?e:ua.call(e)}function xo(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Ao(e))return t=ia(e.length,t),!0})),$(t,(function(t){return f(e,S(t))}))}function ko(e,t){if(!e||!e.length)return[];var n=xo(e);return null==t?n:f(n,(function(e){return o(t,U,e)}))}function Co(e){var t=n(e);return t.__chain__=!0,t}function So(e,t){return t(e)}function Eo(e,t){return(Nl(e)?a:$a)(e,Hr(t,3))}function Oo(e,t){return(Nl(e)?l:ja)(e,Hr(t,3))}function _o(e,t){return(Nl(e)?f:Sn)(e,Hr(t,3))}function $o(e,t,n){return t=n?U:t,t=e&&null==t?e.length:t,Rr(e,J,U,U,U,U,t)}function jo(e,t){var n;if("function"!=typeof t)throw new Si(Y);return e=Ko(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=U),n}}function No(e,t,n){function r(t){var n=c,r=s;return c=s=U,h=t,d=e.apply(r,n)}function o(e){var n=e-p;return p===U||n>=t||n<0||g&&e-h>=u}function i(){var e=bl();return o(e)?a(e):(f=Ha(i,function(e){var n=t-(e-p);return g?aa(n,u-(e-h)):n}(e)),U)}function a(e){return f=U,m&&c?r(e):(c=s=U,d)}function l(){var e=bl(),n=o(e);if(c=arguments,s=this,p=e,n){if(f===U)return function(e){return h=e,f=Ha(i,t),v?r(e):d}(p);if(g)return Aa(f),f=Ha(i,t),r(p)}return f===U&&(f=Ha(i,t)),d}var c,s,u,d,f,p,h=0,v=!1,g=!1,m=!0;if("function"!=typeof e)throw new Si(Y);return t=Xo(t)||0,zo(n)&&(v=!!n.leading,u=(g="maxWait"in n)?ia(Xo(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),l.cancel=function(){f!==U&&Aa(f),h=0,c=p=s=f=U},l.flush=function(){return f===U?d:a(bl())},l}function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Si(Y);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Io.Cache||vt),n}function Po(e){if("function"!=typeof e)throw new Si(Y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ro(e,t){return e===t||e!=e&&t!=t}function Mo(e){return null!=e&&Do(e.length)&&!qo(e)}function Ao(e){return Bo(e)&&Mo(e)}function To(e){if(!Bo(e))return!1;var t=Ht(e);return t==fe||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ho(e)}function qo(e){if(!zo(e))return!1;var t=Ht(e);return t==pe||t==he||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Lo(e){return"number"==typeof e&&e==Ko(e)}function Do(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ne}function zo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Bo(e){return null!=e&&"object"==typeof e}function Fo(e){return"number"==typeof e||Bo(e)&&Ht(e)==ge}function Ho(e){if(!Bo(e)||Ht(e)!=me)return!1;var t=Bi(e);if(null===t)return!0;var n=Ni.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ji.call(n)==Mi}function Wo(e){return"string"==typeof e||!Nl(e)&&Bo(e)&&Ht(e)==xe}function Vo(e){return"symbol"==typeof e||Bo(e)&&Ht(e)==ke}function Uo(e){if(!e)return[];if(Mo(e))return Wo(e)?H(e):ur(e);if(Ui&&e[Ui])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ui]());var t=za(e);return(t==ve?L:t==we?B:oi)(e)}function Yo(e){return e?(e=Xo(e))===te||e===-te?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ko(e){var t=Yo(e),n=t%1;return t==t?n?t-n:t:0}function Go(e){return e?jt(Ko(e),0,oe):0}function Xo(e){if("number"==typeof e)return e;if(Vo(e))return re;if(zo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=j(e);var n=lt.test(e);return n||st.test(e)?nn(e.slice(2),n?2:8):at.test(e)?re:+e}function Qo(e){return dr(e,ni(e))}function Zo(e){return null==e?"":Un(e)}function Jo(e,t,n){var r=null==e?U:Bt(e,t);return r===U?n:r}function ei(e,t){return null!=e&&Yr(e,t,Kt)}function ti(e){return Mo(e)?bt(e):dn(e)}function ni(e){return Mo(e)?bt(e,!0):bn(e)}function ri(e,t){if(null==e)return{};var n=f(zr(e),(function(e){return[e]}));return t=Hr(t),Nn(e,n,(function(e,n){return t(e,n[0])}))}function oi(e){return null==e?[]:I(e,ti(e))}function ii(e){return sc(Zo(e).toLowerCase())}function ai(e){return(e=Zo(e))&&e.replace(dt,yn).replace(Vt,"")}function li(e,t,n){return e=Zo(e),(t=n?U:t)===U?q(e)?V(e):m(e):e.match(t)||[]}function ci(e){return function(){return e}}function si(e){return e}function ui(e){return un("function"==typeof e?e:Nt(e,1))}function di(e,t,n){var r=ti(t),o=zt(t,r);null!=n||zo(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=zt(t,ti(t)));var i=!(zo(n)&&"chain"in n&&!n.chain),l=qo(e);return a(o,(function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ur(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,p([this.value()],arguments))})})),e}function fi(){}function pi(e){return Zr(e)?S(so(e)):function(e){return function(t){return Bt(t,e)}}(e)}function hi(){return[]}function vi(){return!1}var gi=(t=null==t?an:kn.defaults(an.Object(),t,kn.pick(an,Xt))).Array,mi=t.Date,bi=t.Error,yi=t.Function,wi=t.Math,xi=t.Object,ki=t.RegExp,Ci=t.String,Si=t.TypeError,Ei=gi.prototype,Oi=yi.prototype,_i=xi.prototype,$i=t["__core-js_shared__"],ji=Oi.toString,Ni=_i.hasOwnProperty,Ii=0,Pi=function(){var e=/[^.]+$/.exec($i&&$i.keys&&$i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ri=_i.toString,Mi=ji.call(xi),Ai=an._,Ti=ki("^"+ji.call(Ni).replace(Ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qi=sn?t.Buffer:U,Li=t.Symbol,Di=t.Uint8Array,zi=qi?qi.allocUnsafe:U,Bi=D(xi.getPrototypeOf,xi),Fi=xi.create,Hi=_i.propertyIsEnumerable,Wi=Ei.splice,Vi=Li?Li.isConcatSpreadable:U,Ui=Li?Li.iterator:U,Yi=Li?Li.toStringTag:U,Ki=function(){try{var e=Ur(xi,"defineProperty");return e({},"",{}),e}catch(e){}}(),Gi=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Xi=mi&&mi.now!==an.Date.now&&mi.now,Qi=t.setTimeout!==an.setTimeout&&t.setTimeout,Zi=wi.ceil,Ji=wi.floor,ea=xi.getOwnPropertySymbols,ta=qi?qi.isBuffer:U,na=t.isFinite,ra=Ei.join,oa=D(xi.keys,xi),ia=wi.max,aa=wi.min,la=mi.now,ca=t.parseInt,sa=wi.random,ua=Ei.reverse,da=Ur(t,"DataView"),fa=Ur(t,"Map"),pa=Ur(t,"Promise"),ha=Ur(t,"Set"),va=Ur(t,"WeakMap"),ga=Ur(xi,"create"),ma=va&&new va,ba={},ya=uo(da),wa=uo(fa),xa=uo(pa),ka=uo(ha),Ca=uo(va),Sa=Li?Li.prototype:U,Ea=Sa?Sa.valueOf:U,Oa=Sa?Sa.toString:U,_a=function(){function e(){}return function(t){if(!zo(t))return{};if(Fi)return Fi(t);e.prototype=t;var n=new e;return e.prototype=U,n}}();n.templateSettings={escape:Fe,evaluate:He,interpolate:We,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,E.prototype=_a(r.prototype),E.prototype.constructor=E,Qe.prototype=_a(r.prototype),Qe.prototype.constructor=Qe,tt.prototype.clear=function(){this.__data__=ga?ga(null):{},this.size=0},tt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},tt.prototype.get=function(e){var t=this.__data__;if(ga){var n=t[e];return n===K?U:n}return Ni.call(t,e)?t[e]:U},tt.prototype.has=function(e){var t=this.__data__;return ga?t[e]!==U:Ni.call(t,e)},tt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ga&&t===U?K:t,this},ht.prototype.clear=function(){this.__data__=[],this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=St(t,e);return!(n<0||(n==t.length-1?t.pop():Wi.call(t,n,1),--this.size,0))},ht.prototype.get=function(e){var t=this.__data__,n=St(t,e);return n<0?U:t[n][1]},ht.prototype.has=function(e){return St(this.__data__,e)>-1},ht.prototype.set=function(e,t){var n=this.__data__,r=St(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},vt.prototype.clear=function(){this.size=0,this.__data__={hash:new tt,map:new(fa||ht),string:new tt}},vt.prototype.delete=function(e){var t=Wr(this,e).delete(e);return this.size-=t?1:0,t},vt.prototype.get=function(e){return Wr(this,e).get(e)},vt.prototype.has=function(e){return Wr(this,e).has(e)},vt.prototype.set=function(e,t){var n=Wr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},gt.prototype.add=gt.prototype.push=function(e){return this.__data__.set(e,K),this},gt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new ht,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ht){var r=n.__data__;if(!fa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new vt(r)}return n.set(e,t),this.size=n.size,this};var $a=hr(Lt),ja=hr(Dt,!0),Na=vr(),Ia=vr(!0),Pa=ma?function(e,t){return ma.set(e,t),e}:si,Ra=Ki?function(e,t){return Ki(e,"toString",{configurable:!0,enumerable:!1,value:ci(t),writable:!0})}:si,Ma=An,Aa=Gi||function(e){return an.clearTimeout(e)},Ta=ha&&1/B(new ha([,-0]))[1]==te?function(e){return new ha(e)}:fi,qa=ma?function(e){return ma.get(e)}:fi,La=ea?function(e){return null==e?[]:(e=xi(e),s(ea(e),(function(t){return Hi.call(e,t)})))}:hi,Da=ea?function(e){for(var t=[];e;)p(t,La(e)),e=Bi(e);return t}:hi,za=Ht;(da&&za(new da(new ArrayBuffer(1)))!=Ee||fa&&za(new fa)!=ve||pa&&za(pa.resolve())!=be||ha&&za(new ha)!=we||va&&za(new va)!=Ce)&&(za=function(e){var t=Ht(e),n=t==me?e.constructor:U,r=n?uo(n):"";if(r)switch(r){case ya:return Ee;case wa:return ve;case xa:return be;case ka:return we;case Ca:return Ce}return t});var Ba=$i?qo:vi,Fa=lo(Pa),Ha=Qi||function(e,t){return an.setTimeout(e,t)},Wa=lo(Ra),Va=function(e){var t=Io(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ye,(function(e,n,r,o){t.push(r?o.replace(rt,"$1"):n||e)})),t})),Ua=An((function(e,t){return Ao(e)?Rt(e,qt(t,1,Ao,!0)):[]})),Ya=An((function(e,t){var n=bo(t);return Ao(n)&&(n=U),Ao(e)?Rt(e,qt(t,1,Ao,!0),Hr(n,2)):[]})),Ka=An((function(e,t){var n=bo(t);return Ao(n)&&(n=U),Ao(e)?Rt(e,qt(t,1,Ao,!0),U,n):[]})),Ga=An((function(e){var t=f(e,er);return t.length&&t[0]===e[0]?Gt(t):[]})),Xa=An((function(e){var t=bo(e),n=f(e,er);return t===bo(n)?t=U:n.pop(),n.length&&n[0]===e[0]?Gt(n,Hr(t,2)):[]})),Qa=An((function(e){var t=bo(e),n=f(e,er);return(t="function"==typeof t?t:U)&&n.pop(),n.length&&n[0]===e[0]?Gt(n,U,t):[]})),Za=An(yo),Ja=Lr((function(e,t){var n=null==e?0:e.length,r=$t(e,t);return Pn(e,f(t,(function(e){return Xr(e,n)?+e:e})).sort(lr)),r})),el=An((function(e){return Yn(qt(e,1,Ao,!0))})),tl=An((function(e){var t=bo(e);return Ao(t)&&(t=U),Yn(qt(e,1,Ao,!0),Hr(t,2))})),nl=An((function(e){var t=bo(e);return t="function"==typeof t?t:U,Yn(qt(e,1,Ao,!0),U,t)})),rl=An((function(e,t){return Ao(e)?Rt(e,t):[]})),ol=An((function(e){return Zn(s(e,Ao))})),il=An((function(e){var t=bo(e);return Ao(t)&&(t=U),Zn(s(e,Ao),Hr(t,2))})),al=An((function(e){var t=bo(e);return t="function"==typeof t?t:U,Zn(s(e,Ao),U,t)})),ll=An(xo),cl=An((function(e){var t=e.length,n=t>1?e[t-1]:U;return n="function"==typeof n?(e.pop(),n):U,ko(e,n)})),sl=Lr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $t(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Qe&&Xr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:So,args:[o],thisArg:U}),new E(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(U),e}))):this.thru(o)})),ul=fr((function(e,t,n){Ni.call(e,n)?++e[n]:_t(e,n,1)})),dl=wr(ho),fl=wr(vo),pl=fr((function(e,t,n){Ni.call(e,n)?e[n].push(t):_t(e,n,[t])})),hl=An((function(e,t,n){var r=-1,i="function"==typeof t,a=Mo(e)?gi(e.length):[];return $a(e,(function(e){a[++r]=i?o(t,e,n):en(e,t,n)})),a})),vl=fr((function(e,t,n){_t(e,n,t)})),gl=fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ml=An((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),jn(e,qt(t,1),[])})),bl=Xi||function(){return an.Date.now()},yl=An((function(e,t,n){var r=1;if(n.length){var o=z(n,Fr(yl));r|=Q}return Rr(e,r,t,n,o)})),wl=An((function(e,t,n){var r=3;if(n.length){var o=z(n,Fr(wl));r|=Q}return Rr(t,r,e,n,o)})),xl=An((function(e,t){return Pt(e,1,t)})),kl=An((function(e,t,n){return Pt(e,Xo(t)||0,n)}));Io.Cache=vt;var Cl=Ma((function(e,t){var n=(t=1==t.length&&Nl(t[0])?f(t[0],N(Hr())):f(qt(t,1),N(Hr()))).length;return An((function(r){for(var i=-1,a=aa(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return o(e,this,r)}))})),Sl=An((function(e,t){return Rr(e,Q,U,t,z(t,Fr(Sl)))})),El=An((function(e,t){return Rr(e,Z,U,t,z(t,Fr(El)))})),Ol=Lr((function(e,t){return Rr(e,ee,U,U,U,t)})),_l=jr(Ut),$l=jr((function(e,t){return e>=t})),jl=rn(function(){return arguments}())?rn:function(e){return Bo(e)&&Ni.call(e,"callee")&&!Hi.call(e,"callee")},Nl=gi.isArray,Il=fn?N(fn):function(e){return Bo(e)&&Ht(e)==Se},Pl=ta||vi,Rl=pn?N(pn):function(e){return Bo(e)&&Ht(e)==de},Ml=hn?N(hn):function(e){return Bo(e)&&za(e)==ve},Al=vn?N(vn):function(e){return Bo(e)&&Ht(e)==ye},Tl=gn?N(gn):function(e){return Bo(e)&&za(e)==we},ql=mn?N(mn):function(e){return Bo(e)&&Do(e.length)&&!!Zt[Ht(e)]},Ll=jr(Cn),Dl=jr((function(e,t){return e<=t})),zl=pr((function(e,t){if(eo(t)||Mo(t))return dr(t,ti(t),e),U;for(var n in t)Ni.call(t,n)&&Ct(e,n,t[n])})),Bl=pr((function(e,t){dr(t,ni(t),e)})),Fl=pr((function(e,t,n,r){dr(t,ni(t),e,r)})),Hl=pr((function(e,t,n,r){dr(t,ti(t),e,r)})),Wl=Lr($t),Vl=An((function(e,t){e=xi(e);var n=-1,r=t.length,o=r>2?t[2]:U;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ni(i),l=-1,c=a.length;++l<c;){var s=a[l],u=e[s];(u===U||Ro(u,_i[s])&&!Ni.call(e,s))&&(e[s]=i[s])}return e})),Ul=An((function(e){return e.push(U,Ar),o(Ql,U,e)})),Yl=Cr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ri.call(t)),e[t]=n}),ci(si)),Kl=Cr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ri.call(t)),Ni.call(e,t)?e[t].push(n):e[t]=[n]}),Hr),Gl=An(en),Xl=pr((function(e,t,n){_n(e,t,n)})),Ql=pr((function(e,t,n,r){_n(e,t,n,r)})),Zl=Lr((function(e,t){var n={};if(null==e)return n;var r=!1;t=f(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,zr(e),n),r&&(n=Nt(n,7,Tr));for(var o=t.length;o--;)Kn(n,t[o]);return n})),Jl=Lr((function(e,t){return null==e?{}:function(e,t){return Nn(e,t,(function(t,n){return ei(e,n)}))}(e,t)})),ec=Pr(ti),tc=Pr(ni),nc=mr((function(e,t,n){return t=t.toLowerCase(),e+(n?ii(t):t)})),rc=mr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),oc=mr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ic=gr("toLowerCase"),ac=mr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),lc=mr((function(e,t,n){return e+(n?" ":"")+sc(t)})),cc=mr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=gr("toUpperCase"),uc=An((function(e,t){try{return o(e,U,t)}catch(e){return To(e)?e:new bi(e)}})),dc=Lr((function(e,t){return a(t,(function(t){t=so(t),_t(e,t,yl(e[t],e))})),e})),fc=xr(),pc=xr(!0),hc=An((function(e,t){return function(n){return en(n,e,t)}})),vc=An((function(e,t){return function(n){return en(e,n,t)}})),gc=Er(f),mc=Er(c),bc=Er(g),yc=$r(),wc=$r(!0),xc=Sr((function(e,t){return e+t}),0),kc=Ir("ceil"),Cc=Sr((function(e,t){return e/t}),1),Sc=Ir("floor"),Ec=Sr((function(e,t){return e*t}),1),Oc=Ir("round"),_c=Sr((function(e,t){return e-t}),0);return n.after=function(e,t){if("function"!=typeof t)throw new Si(Y);return e=Ko(e),function(){if(--e<1)return t.apply(this,arguments)}},n.ary=$o,n.assign=zl,n.assignIn=Bl,n.assignInWith=Fl,n.assignWith=Hl,n.at=Wl,n.before=jo,n.bind=yl,n.bindAll=dc,n.bindKey=wl,n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Nl(e)?e:[e]},n.chain=Co,n.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===U)?1:ia(Ko(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=gi(Zi(r/t));o<r;)a[i++]=zn(e,o,o+=t);return a},n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=gi(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return p(Nl(n)?ur(n):[n],qt(t,1))},n.cond=function(e){var t=null==e?0:e.length,n=Hr();return e=t?f(e,(function(e){if("function"!=typeof e[1])throw new Si(Y);return[n(e[0]),e[1]]})):[],An((function(n){for(var r=-1;++r<t;){var i=e[r];if(o(i[0],this,n))return o(i[1],this,n)}}))},n.conforms=function(e){return function(e){var t=ti(e);return function(n){return It(n,e,t)}}(Nt(e,1))},n.constant=ci,n.countBy=ul,n.create=function(e,t){var n=_a(e);return null==t?n:Ot(n,t)},n.curry=function e(t,n,r){var o=Rr(t,8,U,U,U,U,U,n=r?U:n);return o.placeholder=e.placeholder,o},n.curryRight=function e(t,n,r){var o=Rr(t,X,U,U,U,U,U,n=r?U:n);return o.placeholder=e.placeholder,o},n.debounce=No,n.defaults=Vl,n.defaultsDeep=Ul,n.defer=xl,n.delay=kl,n.difference=Ua,n.differenceBy=Ya,n.differenceWith=Ka,n.drop=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=n||t===U?1:Ko(t))<0?0:t,r):[]},n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,0,(t=r-(t=n||t===U?1:Ko(t)))<0?0:t):[]},n.dropRightWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!0,!0):[]},n.dropWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!0):[]},n.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Ko(n))<0&&(n=-n>o?0:o+n),(r=r===U||r>o?o:Ko(r))<0&&(r+=o),r=n>r?0:Go(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},n.filter=function(e,t){return(Nl(e)?s:Tt)(e,Hr(t,3))},n.flatMap=function(e,t){return qt(_o(e,t),1)},n.flatMapDeep=function(e,t){return qt(_o(e,t),te)},n.flatMapDepth=function(e,t,n){return n=n===U?1:Ko(n),qt(_o(e,t),n)},n.flatten=go,n.flattenDeep=function(e){return null!=e&&e.length?qt(e,te):[]},n.flattenDepth=function(e,t){return null!=e&&e.length?qt(e,t=t===U?1:Ko(t)):[]},n.flip=function(e){return Rr(e,512)},n.flow=fc,n.flowRight=pc,n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},n.functions=function(e){return null==e?[]:zt(e,ti(e))},n.functionsIn=function(e){return null==e?[]:zt(e,ni(e))},n.groupBy=pl,n.initial=function(e){return null!=e&&e.length?zn(e,0,-1):[]},n.intersection=Ga,n.intersectionBy=Xa,n.intersectionWith=Qa,n.invert=Yl,n.invertBy=Kl,n.invokeMap=hl,n.iteratee=ui,n.keyBy=vl,n.keys=ti,n.keysIn=ni,n.map=_o,n.mapKeys=function(e,t){var n={};return t=Hr(t,3),Lt(e,(function(e,r,o){_t(n,t(e,r,o),e)})),n},n.mapValues=function(e,t){var n={};return t=Hr(t,3),Lt(e,(function(e,r,o){_t(n,r,t(e,r,o))})),n},n.matches=function(e){return En(Nt(e,1))},n.matchesProperty=function(e,t){return On(e,Nt(t,1))},n.memoize=Io,n.merge=Xl,n.mergeWith=Ql,n.method=hc,n.methodOf=vc,n.mixin=di,n.negate=Po,n.nthArg=function(e){return e=Ko(e),An((function(t){return $n(t,e)}))},n.omit=Zl,n.omitBy=function(e,t){return ri(e,Po(Hr(t)))},n.once=function(e){return jo(2,e)},n.orderBy=function(e,t,n,r){return null==e?[]:(Nl(t)||(t=null==t?[]:[t]),Nl(n=r?U:n)||(n=null==n?[]:[n]),jn(e,t,n))},n.over=gc,n.overArgs=Cl,n.overEvery=mc,n.overSome=bc,n.partial=Sl,n.partialRight=El,n.partition=gl,n.pick=Jl,n.pickBy=ri,n.property=pi,n.propertyOf=function(e){return function(t){return null==e?U:Bt(e,t)}},n.pull=Za,n.pullAll=yo,n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?In(e,t,Hr(n,2)):e},n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?In(e,t,U,n):e},n.pullAt=Ja,n.range=yc,n.rangeRight=wc,n.rearg=Ol,n.reject=function(e,t){return(Nl(e)?s:Tt)(e,Po(Hr(t,3)))},n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Hr(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Pn(e,o),n},n.rest=function(e,t){if("function"!=typeof e)throw new Si(Y);return An(e,t=t===U?t:Ko(t))},n.reverse=wo,n.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===U)?1:Ko(t),(Nl(e)?wt:qn)(e,t)},n.set=function(e,t,n){return null==e?e:Ln(e,t,n)},n.setWith=function(e,t,n,r){return r="function"==typeof r?r:U,null==e?e:Ln(e,t,n,r)},n.shuffle=function(e){return(Nl(e)?xt:Dn)(e)},n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Ko(t),n=n===U?r:Ko(n)),zn(e,t,n)):[]},n.sortBy=ml,n.sortedUniq=function(e){return e&&e.length?Wn(e):[]},n.sortedUniqBy=function(e,t){return e&&e.length?Wn(e,Hr(t,2)):[]},n.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=U),(n=n===U?oe:n>>>0)?(e=Zo(e))&&("string"==typeof t||null!=t&&!Al(t))&&(!(t=Un(t))&&T(e))?rr(H(e),0,n):e.split(t,n):[]},n.spread=function(e,t){if("function"!=typeof e)throw new Si(Y);return t=null==t?0:ia(Ko(t),0),An((function(n){var r=n[t],i=rr(n,0,t);return r&&p(i,r),o(e,this,i)}))},n.tail=function(e){var t=null==e?0:e.length;return t?zn(e,1,t):[]},n.take=function(e,t,n){return e&&e.length?zn(e,0,(t=n||t===U?1:Ko(t))<0?0:t):[]},n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=r-(t=n||t===U?1:Ko(t)))<0?0:t,r):[]},n.takeRightWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!1,!0):[]},n.takeWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3)):[]},n.tap=function(e,t){return t(e),e},n.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Si(Y);return zo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),No(e,t,{leading:r,maxWait:t,trailing:o})},n.thru=So,n.toArray=Uo,n.toPairs=ec,n.toPairsIn=tc,n.toPath=function(e){return Nl(e)?f(e,so):Vo(e)?[e]:ur(Va(Zo(e)))},n.toPlainObject=Qo,n.transform=function(e,t,n){var r=Nl(e),o=r||Pl(e)||ql(e);if(t=Hr(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:zo(e)&&qo(i)?_a(Bi(e)):{}}return(o?a:Lt)(e,(function(e,r,o){return t(n,e,r,o)})),n},n.unary=function(e){return $o(e,1)},n.union=el,n.unionBy=tl,n.unionWith=nl,n.uniq=function(e){return e&&e.length?Yn(e):[]},n.uniqBy=function(e,t){return e&&e.length?Yn(e,Hr(t,2)):[]},n.uniqWith=function(e,t){return t="function"==typeof t?t:U,e&&e.length?Yn(e,U,t):[]},n.unset=function(e,t){return null==e||Kn(e,t)},n.unzip=xo,n.unzipWith=ko,n.update=function(e,t,n){return null==e?e:Gn(e,t,tr(n))},n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:U,null==e?e:Gn(e,t,tr(n),r)},n.values=oi,n.valuesIn=function(e){return null==e?[]:I(e,ni(e))},n.without=rl,n.words=li,n.wrap=function(e,t){return Sl(tr(t),e)},n.xor=ol,n.xorBy=il,n.xorWith=al,n.zip=ll,n.zipObject=function(e,t){return Jn(e||[],t||[],Ct)},n.zipObjectDeep=function(e,t){return Jn(e||[],t||[],Ln)},n.zipWith=cl,n.entries=ec,n.entriesIn=tc,n.extend=Bl,n.extendWith=Fl,di(n,n),n.add=xc,n.attempt=uc,n.camelCase=nc,n.capitalize=ii,n.ceil=kc,n.clamp=function(e,t,n){return n===U&&(n=t,t=U),n!==U&&(n=(n=Xo(n))==n?n:0),t!==U&&(t=(t=Xo(t))==t?t:0),jt(Xo(e),t,n)},n.clone=function(e){return Nt(e,4)},n.cloneDeep=function(e){return Nt(e,5)},n.cloneDeepWith=function(e,t){return Nt(e,5,t="function"==typeof t?t:U)},n.cloneWith=function(e,t){return Nt(e,4,t="function"==typeof t?t:U)},n.conformsTo=function(e,t){return null==t||It(e,t,ti(t))},n.deburr=ai,n.defaultTo=function(e,t){return null==e||e!=e?t:e},n.divide=Cc,n.endsWith=function(e,t,n){e=Zo(e),t=Un(t);var r=e.length,o=n=n===U?r:jt(Ko(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},n.eq=Ro,n.escape=function(e){return(e=Zo(e))&&Be.test(e)?e.replace(De,wn):e},n.escapeRegExp=function(e){return(e=Zo(e))&&Ge.test(e)?e.replace(Ke,"\\$&"):e},n.every=function(e,t,n){var r=Nl(e)?c:Mt;return n&&Qr(e,t,n)&&(t=U),r(e,Hr(t,3))},n.find=dl,n.findIndex=ho,n.findKey=function(e,t){return b(e,Hr(t,3),Lt)},n.findLast=fl,n.findLastIndex=vo,n.findLastKey=function(e,t){return b(e,Hr(t,3),Dt)},n.floor=Sc,n.forEach=Eo,n.forEachRight=Oo,n.forIn=function(e,t){return null==e?e:Na(e,Hr(t,3),ni)},n.forInRight=function(e,t){return null==e?e:Ia(e,Hr(t,3),ni)},n.forOwn=function(e,t){return e&&Lt(e,Hr(t,3))},n.forOwnRight=function(e,t){return e&&Dt(e,Hr(t,3))},n.get=Jo,n.gt=_l,n.gte=$l,n.has=function(e,t){return null!=e&&Yr(e,t,Yt)},n.hasIn=ei,n.head=mo,n.identity=si,n.includes=function(e,t,n,r){e=Mo(e)?e:oi(e),n=n&&!r?Ko(n):0;var o=e.length;return n<0&&(n=ia(o+n,0)),Wo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&w(e,t,n)>-1},n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ko(n);return o<0&&(o=ia(r+o,0)),w(e,t,o)},n.inRange=function(e,t,n){return t=Yo(t),n===U?(n=t,t=0):n=Yo(n),function(e,t,n){return e>=aa(t,n)&&e<ia(t,n)}(e=Xo(e),t,n)},n.invoke=Gl,n.isArguments=jl,n.isArray=Nl,n.isArrayBuffer=Il,n.isArrayLike=Mo,n.isArrayLikeObject=Ao,n.isBoolean=function(e){return!0===e||!1===e||Bo(e)&&Ht(e)==ue},n.isBuffer=Pl,n.isDate=Rl,n.isElement=function(e){return Bo(e)&&1===e.nodeType&&!Ho(e)},n.isEmpty=function(e){if(null==e)return!0;if(Mo(e)&&(Nl(e)||"string"==typeof e||"function"==typeof e.splice||Pl(e)||ql(e)||jl(e)))return!e.length;var t=za(e);if(t==ve||t==we)return!e.size;if(eo(e))return!dn(e).length;for(var n in e)if(Ni.call(e,n))return!1;return!0},n.isEqual=function(e,t){return on(e,t)},n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:U)?n(e,t):U;return r===U?on(e,t,U,n):!!r},n.isError=To,n.isFinite=function(e){return"number"==typeof e&&na(e)},n.isFunction=qo,n.isInteger=Lo,n.isLength=Do,n.isMap=Ml,n.isMatch=function(e,t){return e===t||ln(e,t,Vr(t))},n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:U,ln(e,t,Vr(t),n)},n.isNaN=function(e){return Fo(e)&&e!=+e},n.isNative=function(e){if(Ba(e))throw new bi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return cn(e)},n.isNil=function(e){return null==e},n.isNull=function(e){return null===e},n.isNumber=Fo,n.isObject=zo,n.isObjectLike=Bo,n.isPlainObject=Ho,n.isRegExp=Al,n.isSafeInteger=function(e){return Lo(e)&&e>=-ne&&e<=ne},n.isSet=Tl,n.isString=Wo,n.isSymbol=Vo,n.isTypedArray=ql,n.isUndefined=function(e){return e===U},n.isWeakMap=function(e){return Bo(e)&&za(e)==Ce},n.isWeakSet=function(e){return Bo(e)&&"[object WeakSet]"==Ht(e)},n.join=function(e,t){return null==e?"":ra.call(e,t)},n.kebabCase=rc,n.last=bo,n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==U&&(o=(o=Ko(n))<0?ia(r+o,0):aa(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):y(e,k,o,!0)},n.lowerCase=oc,n.lowerFirst=ic,n.lt=Ll,n.lte=Dl,n.max=function(e){return e&&e.length?At(e,si,Ut):U},n.maxBy=function(e,t){return e&&e.length?At(e,Hr(t,2),Ut):U},n.mean=function(e){return C(e,si)},n.meanBy=function(e,t){return C(e,Hr(t,2))},n.min=function(e){return e&&e.length?At(e,si,Cn):U},n.minBy=function(e,t){return e&&e.length?At(e,Hr(t,2),Cn):U},n.stubArray=hi,n.stubFalse=vi,n.stubObject=function(){return{}},n.stubString=function(){return""},n.stubTrue=function(){return!0},n.multiply=Ec,n.nth=function(e,t){return e&&e.length?$n(e,Ko(t)):U},n.noConflict=function(){return an._===this&&(an._=Ai),this},n.noop=fi,n.now=bl,n.pad=function(e,t,n){e=Zo(e);var r=(t=Ko(t))?F(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Or(Ji(o),n)+e+Or(Zi(o),n)},n.padEnd=function(e,t,n){e=Zo(e);var r=(t=Ko(t))?F(e):0;return t&&r<t?e+Or(t-r,n):e},n.padStart=function(e,t,n){e=Zo(e);var r=(t=Ko(t))?F(e):0;return t&&r<t?Or(t-r,n)+e:e},n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ca(Zo(e).replace(Xe,""),t||0)},n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=U),n===U&&("boolean"==typeof t?(n=t,t=U):"boolean"==typeof e&&(n=e,e=U)),e===U&&t===U?(e=0,t=1):(e=Yo(e),t===U?(t=e,e=0):t=Yo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=sa();return aa(e+o*(t-e+tn("1e-"+((o+"").length-1))),t)}return Rn(e,t)},n.reduce=function(e,t,n){var r=Nl(e)?h:O,o=arguments.length<3;return r(e,Hr(t,4),n,o,$a)},n.reduceRight=function(e,t,n){var r=Nl(e)?v:O,o=arguments.length<3;return r(e,Hr(t,4),n,o,ja)},n.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===U)?1:Ko(t),Mn(Zo(e),t)},n.replace=function(){var e=arguments,t=Zo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},n.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=U);++r<o;){var i=null==e?U:e[so(t[r])];i===U&&(r=o,i=n),e=qo(i)?i.call(e):i}return e},n.round=Oc,n.runInContext=e,n.sample=function(e){return(Nl(e)?yt:Tn)(e)},n.size=function(e){if(null==e)return 0;if(Mo(e))return Wo(e)?F(e):e.length;var t=za(e);return t==ve||t==we?e.size:dn(e).length},n.snakeCase=ac,n.some=function(e,t,n){var r=Nl(e)?g:Bn;return n&&Qr(e,t,n)&&(t=U),r(e,Hr(t,3))},n.sortedIndex=function(e,t){return Fn(e,t)},n.sortedIndexBy=function(e,t,n){return Hn(e,t,Hr(n,2))},n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Ro(e[r],t))return r}return-1},n.sortedLastIndex=function(e,t){return Fn(e,t,!0)},n.sortedLastIndexBy=function(e,t,n){return Hn(e,t,Hr(n,2),!0)},n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Ro(e[n],t))return n}return-1},n.startCase=lc,n.startsWith=function(e,t,n){return e=Zo(e),n=null==n?0:jt(Ko(n),0,e.length),t=Un(t),e.slice(n,n+t.length)==t},n.subtract=_c,n.sum=function(e){return e&&e.length?_(e,si):0},n.sumBy=function(e,t){return e&&e.length?_(e,Hr(t,2)):0},n.template=function(e,t,r){var o=n.templateSettings;r&&Qr(e,t,r)&&(t=U),e=Zo(e),t=Fl({},t,o,Mr);var i,a,l=Fl({},t.imports,o.imports,Mr),c=ti(l),s=I(l,c),u=0,d=t.interpolate||ft,f="__p += '",p=ki((t.escape||ft).source+"|"+d.source+"|"+(d===We?ot:ft).source+"|"+(t.evaluate||ft).source+"|$","g"),h="//# sourceURL="+(Ni.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(pt,A),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var v=Ni.call(t,"variable")&&t.variable;if(v){if(nt.test(v))throw new bi("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(Ae,""):f).replace(Te,"$1").replace(qe,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=uc((function(){return yi(c,h+"return "+f).apply(U,s)}));if(g.source=f,To(g))throw g;return g},n.times=function(e,t){if((e=Ko(e))<1||e>ne)return[];var n=oe,r=aa(e,oe);t=Hr(t),e-=oe;for(var o=$(r,t);++n<e;)t(n);return o},n.toFinite=Yo,n.toInteger=Ko,n.toLength=Go,n.toLower=function(e){return Zo(e).toLowerCase()},n.toNumber=Xo,n.toSafeInteger=function(e){return e?jt(Ko(e),-ne,ne):0===e?e:0},n.toString=Zo,n.toUpper=function(e){return Zo(e).toUpperCase()},n.trim=function(e,t,n){if((e=Zo(e))&&(n||t===U))return j(e);if(!e||!(t=Un(t)))return e;var r=H(e),o=H(t);return rr(r,R(r,o),M(r,o)+1).join("")},n.trimEnd=function(e,t,n){if((e=Zo(e))&&(n||t===U))return e.slice(0,W(e)+1);if(!e||!(t=Un(t)))return e;var r=H(e);return rr(r,0,M(r,H(t))+1).join("")},n.trimStart=function(e,t,n){if((e=Zo(e))&&(n||t===U))return e.replace(Xe,"");if(!e||!(t=Un(t)))return e;var r=H(e);return rr(r,R(r,H(t))).join("")},n.truncate=function(e,t){var n=30,r="...";if(zo(t)){var o="separator"in t?t.separator:o;n="length"in t?Ko(t.length):n,r="omission"in t?Un(t.omission):r}var i=(e=Zo(e)).length;if(T(e)){var a=H(e);i=a.length}if(n>=i)return e;var l=n-F(r);if(l<1)return r;var c=a?rr(a,0,l).join(""):e.slice(0,l);if(o===U)return c+r;if(a&&(l+=c.length-l),Al(o)){if(e.slice(l).search(o)){var s,u=c;for(o.global||(o=ki(o.source,Zo(it.exec(o))+"g")),o.lastIndex=0;s=o.exec(u);)var d=s.index;c=c.slice(0,d===U?l:d)}}else if(e.indexOf(Un(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},n.unescape=function(e){return(e=Zo(e))&&ze.test(e)?e.replace(Le,xn):e},n.uniqueId=function(e){var t=++Ii;return Zo(e)+t},n.upperCase=cc,n.upperFirst=sc,n.each=Eo,n.eachRight=Oo,n.first=mo,di(n,function(){var e={};return Lt(n,(function(t,r){Ni.call(n.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),n.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){n[e].placeholder=n})),a(["drop","take"],(function(e,t){Qe.prototype[e]=function(n){n=n===U?1:ia(Ko(n),0);var r=this.__filtered__&&!t?new Qe(this):this.clone();return r.__filtered__?r.__takeCount__=aa(n,r.__takeCount__):r.__views__.push({size:aa(n,oe),type:e+(r.__dir__<0?"Right":"")}),r},Qe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),a(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Qe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Hr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),a(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Qe.prototype[e]=function(){return this[n](1).value()[0]}})),a(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Qe.prototype[e]=function(){return this.__filtered__?new Qe(this):this[n](1)}})),Qe.prototype.compact=function(){return this.filter(si)},Qe.prototype.find=function(e){return this.filter(e).head()},Qe.prototype.findLast=function(e){return this.reverse().find(e)},Qe.prototype.invokeMap=An((function(e,t){return"function"==typeof e?new Qe(this):this.map((function(n){return en(n,e,t)}))})),Qe.prototype.reject=function(e){return this.filter(Po(Hr(e)))},Qe.prototype.slice=function(e,t){e=Ko(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Qe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==U&&(n=(t=Ko(t))<0?n.dropRight(-t):n.take(t-e)),n)},Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qe.prototype.toArray=function(){return this.take(oe)},Lt(Qe.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=n[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(n.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,c=t instanceof Qe,s=l[0],u=c||Nl(t),d=function(e){var t=i.apply(n,p([e],l));return o&&f?t[0]:t};u&&r&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,h=!!this.__actions__.length,v=a&&!f,g=c&&!h;if(!a&&u){t=g?t:new Qe(this);var m=e.apply(t,l);return m.__actions__.push({func:So,args:[d],thisArg:U}),new E(m,f)}return v&&g?e.apply(this,l):(m=this.thru(d),v?o?m.value()[0]:m.value():m)})})),a(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ei[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var n=this.value();return t.apply(Nl(n)?n:[],e)}return this[r]((function(n){return t.apply(Nl(n)?n:[],e)}))}})),Lt(Qe.prototype,(function(e,t){var r=n[t];if(r){var o=r.name+"";Ni.call(ba,o)||(ba[o]=[]),ba[o].push({name:t,func:r})}})),ba[kr(U,2).name]=[{name:"wrapper",func:U}],Qe.prototype.clone=function(){var e=new Qe(this.__wrapped__);return e.__actions__=ur(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ur(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ur(this.__views__),e},Qe.prototype.reverse=function(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Qe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Nl(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=aa(t,e+a);break;case"takeRight":e=ia(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=aa(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return Qn(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var v=-1,g=e[s+=t];++v<d;){var m=u[v],b=m.iteratee,y=m.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}h[f++]=g}return h},n.prototype.at=sl,n.prototype.chain=function(){return Co(this)},n.prototype.commit=function(){return new E(this.value(),this.__chain__)},n.prototype.next=function(){this.__values__===U&&(this.__values__=Uo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?U:this.__values__[this.__index__++]}},n.prototype.plant=function(e){for(var t,n=this;n instanceof r;){var o=po(n);o.__index__=0,o.__values__=U,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Qe){var t=e;return this.__actions__.length&&(t=new Qe(this)),(t=t.reverse()).__actions__.push({func:So,args:[wo],thisArg:U}),new E(t,this.__chain__)}return this.thru(wo)},n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=function(){return Qn(this.__wrapped__,this.__actions__)},n.prototype.first=n.prototype.head,Ui&&(n.prototype[Ui]=function(){return this}),n}();an._=kn,void 0===(r=function(){return kn}.call(t,n,t,e))||(e.exports=r)}.call(this)},3345:function(e){e.exports=function(){return[]}},9935:function(e){e.exports=function(){return!1}},5606:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,c=[],s=!1,u=-1;function d(){s&&l&&(s=!1,l.length?c=l.concat(c):u=-1,c.length&&f())}function f(){if(!s){var e=a(d);s=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||s||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2694:function(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:function(e,t,n){e.exports=n(2694)()},6925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1574:function(e,t,n){var r,o=n(8287).hp;
26 /*!
27 * Quill Editor v1.3.7
28 * https://quilljs.com/
29 * Copyright (c) 2014, Jason Chen
30 * Copyright (c) 2013, salesforce.com
31 */"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),c=n(47),s=n(48),u=n(49),d=n(12),f=n(32),p=n(33),h=n(31),v=n(1),g={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:a.default,Block:c.default,Inline:l.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=g},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,l={},c={},s={},u={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=u.block:e&a.LEVEL&a.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||s[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(c[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=s[e]&&null!=r.className||(s[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),c=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};c.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},c.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},c.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},c.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},c.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},c.prototype.filter=function(e){return this.ops.filter(e)},c.prototype.forEach=function(e){this.ops.forEach(e)},c.prototype.map=function(e){return this.ops.map(e)},c.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},c.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},c.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},c.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},c.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new c(n)},c.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var s=new c(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),f=n.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var v=new c(t.rest());return s.concat(v).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&s.push(f)}return s.chop()},c.prototype.concat=function(e){var t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},c.prototype.diff=function(e,t){if(this.ops===e.ops)return new c;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new c,s=r(n[0],n[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return s.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var l=u.next(n),c=d.next(n);o(l.insert,c.insert)?i.retain(n,a.attributes.diff(l.attributes,c.attributes)):i.push(c).delete(n)}t-=n}})),i.chop()},c.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new c,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new c}}r.length()>0&&e(r,{},o)},c.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new c;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l.delete)continue;s.delete?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},c.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=c},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&l(r)?r:{},c(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&c(d,{name:n,newValue:o}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=d(n(3)),a=d(n(2)),l=d(n(0)),c=d(n(16)),s=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(g.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l.default.Embed);v.scope=l.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),m(t))}),new a.default).insert("\n",m(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof c.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[s.default,l.default.Embed,u.default],t.bubbleFormats=m,t.BlockEmbed=v,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=g(n(2)),l=g(n(14)),c=g(n(8)),s=g(n(9)),u=g(n(0)),d=n(15),f=g(d),p=g(n(3)),h=g(n(10)),v=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,h.default)("quill"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e){e===c.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(c.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,m({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,m({},e,t))}return n.setSelection(r,c.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,c=k(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,c=k(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,c=k(e,0,n,r,i),s=o(c,4);return e=s[0],a=s[2],i=s[3],x.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new d.Range(t,n),r),r!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=y.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},y.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=C(o,l,t):0!==r&&(o=C(o,n,r,t)),this.setSelection(o,c.default.sources.SILENT)),l.length()>0){var s,u,d=[c.default.events.TEXT_CHANGE,l,i,t];(s=this.emitter).emit.apply(s,[c.default.events.EDITOR_CHANGE].concat(d)),t!==c.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return l}function k(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||c.default.sources.API]}function C(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var s=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==c.default.sources.USER)})),u=o(s,2);i=u[0],l=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===c.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=o(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=c.default.events,y.sources=c.default.sources,y.version="1.3.7",y.imports={delta:a.default,parchment:u.default,"core/module":s.default,"core/theme":v.default},t.expandConfig=w,t.overload=k,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);c.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},c.sources={API:"api",SILENT:"silent",USER:"user"},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var s,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var d=o(e),f=o(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),s=d.length-1;s>=0;s--)if(d[s]!=f[s])return!1;for(s=d.length-1;s>=0;s--)if(u=d[s],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=d(n(2)),l=d(n(0)),c=d(n(4)),s=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(s.default);v.blotName="code",v.tagName="CODE";var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(u.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,c=i-a+1,s=this.isolate(a,c),u=s.next;s.format(r,o),u instanceof t&&u.formatAt(0,e-a+n-c,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(u.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(c.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=v,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=m(n(2)),l=m(n(20)),c=m(n(0)),s=m(n(13)),u=m(n(24)),d=n(4),f=m(d),p=m(n(16)),h=m(n(21)),v=m(n(11)),g=m(n(3));function m(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),v=o(h,2),m=v[0],b=v[1],y=(0,g.default)({},(0,d.bubbleFormats)(m));if(m instanceof f.default){var w=m.descendant(c.default.Leaf,b),x=o(w,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(x))}u=l.default.attributes.diff(y,u)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,a.insert[k])}i+=s}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,s,n,u[n])})),e+s}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof s.default){var l=e-t.offset(n.scroll),c=t.newlineIndex(l+a)-l+1;t.formatAt(l,c,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof f.default?n.push(t):t instanceof c.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(c.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],c=i[1],u=0,d=new a.default;null!=l&&(u=l instanceof s.default?l.newlineIndex(c)-c+1:l.length()-c,d=l.delta().slice(c,c+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&c.default.find(t[0].target)){var o=c.default.find(t[0].target),i=(0,d.bubbleFormats)(o),l=o.offset(this.scroll),s=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new a.default).insert(s),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(21)),l=s(n(11)),c=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,s(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,c.default.sources.USER),1)})),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.TEXT_CHANGE&&t.length()>0&&r.update(c.default.sources.SILENT)})),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(c.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(c.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(c.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],c=a[1];if(null==l)return null;var s=l.position(c,!0),u=r(s,2);o=u[0],c=u[1];var d=document.createRange();if(t>0){d.setStart(o,c);var f=this.scroll.leaf(e+t),p=r(f,2);if(l=p[0],c=p[1],null==l)return null;var h=l.position(c,!0),v=r(h,2);return o=v[0],c=v[1],d.setEnd(o,c),d.getBoundingClientRect()}var g="left",m=void 0;return o instanceof Text?(c<o.data.length?(d.setStart(o,c),d.setEnd(o,c+1)):(d.setStart(o,c-1),d.setEnd(o,c),g="right"),m=d.getBoundingClientRect()):(m=l.domNode.getBoundingClientRect(),c>0&&(g="right")),{bottom:m.top+m.height,height:m.height,left:m[g],right:m[g],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),c=l.offset(t.scroll);return 0===a?c:l instanceof i.default.Container?c+l.length():c+l.index(o,a)})),a=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),c=r(l,2),s=c[0],u=c[1],d=s.position(u,0!==n),f=r(d,2);a=f[0],u=f[1],o.push(a,u)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,o));l=r(c,1)[0]}if(null!=a&&null!=l){var s=e.getBoundingClientRect();n.top<s.top?e.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(e.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[c.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(f)),e!==c.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function v(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=s(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(a.default);function s(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),c=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=c.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(a,c,s,u,d){"object"==typeof c&&(s=c.depth,u=c.prototype,d=c.includeNonEnumerable,c=c.circular);var f=[],p=[],h=void 0!==o;return void 0===c&&(c=!0),void 0===s&&(s=1/0),function a(s,v){if(null===s)return null;if(0===v)return s;var g,m;if("object"!=typeof s)return s;if(e(s,t))g=new t;else if(e(s,n))g=new n;else if(e(s,r))g=new r((function(e,t){s.then((function(t){e(a(t,v-1))}),(function(e){t(a(e,v-1))}))}));else if(i.__isArray(s))g=[];else if(i.__isRegExp(s))g=new RegExp(s.source,l(s)),s.lastIndex&&(g.lastIndex=s.lastIndex);else if(i.__isDate(s))g=new Date(s.getTime());else{if(h&&o.isBuffer(s))return g=o.allocUnsafe?o.allocUnsafe(s.length):new o(s.length),s.copy(g),g;e(s,Error)?g=Object.create(s):void 0===u?(m=Object.getPrototypeOf(s),g=Object.create(m)):(g=Object.create(u),m=u)}if(c){var b=f.indexOf(s);if(-1!=b)return p[b];f.push(s),p.push(g)}for(var y in e(s,t)&&s.forEach((function(e,t){var n=a(t,v-1),r=a(e,v-1);g.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=a(e,v-1);g.add(t)})),s){var w;m&&(w=Object.getOwnPropertyDescriptor(m,y)),w&&null==w.set||(g[y]=a(s[y],v-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(s);for(y=0;y<x.length;y++){var k=x[y];(!(S=Object.getOwnPropertyDescriptor(s,k))||S.enumerable||d)&&(g[k]=a(s[k],v-1),S.enumerable||Object.defineProperty(g,k,{enumerable:!1}))}}if(d){var C=Object.getOwnPropertyNames(s);for(y=0;y<C.length;y++){var S,E=C[y];(S=Object.getOwnPropertyDescriptor(s,E))&&S.enumerable||(g[E]=a(s[E],v-1),Object.defineProperty(g,E,{enumerable:!1}))}}return g}(a,s)}function a(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=a,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},i.__getRegExpFlags=l,i}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),l=p(n(8)),c=n(4),s=p(c),u=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof s.default||e instanceof c.BlockEmbed}var v=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],s=a[1],f=this.line(e+n),p=r(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&s>0){if(l instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var g=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,g),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[s.default,c.BlockEmbed,f.default],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n(21)),l=v(n(11)),c=v(n(3)),s=v(n(2)),u=v(n(20)),d=v(n(0)),f=v(n(5)),p=v(n(10)),h=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(0,p.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},S),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0},k)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),r.addBinding({key:t.keys.DELETE},{collapsed:!1},C),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=_(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_(e);if(null==r||null==r.key)return m.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,c.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var c=e.quill.getSelection();if(null!=c&&e.quill.hasFocus()){var s=e.quill.getLine(c.index),u=o(s,2),f=u[0],p=u[1],h=e.quill.getLeaf(c.index),v=o(h,2),g=v[0],m=v[1],b=0===c.length?[g,m]:e.quill.getLeaf(c.index+c.length),y=o(b,2),w=y[0],x=y[1],k=g instanceof d.default.Text?g.value().slice(0,m):"",C=w instanceof d.default.Text?w.value().slice(x):"",S={collapsed:0===c.length,empty:0===c.length&&f.length()<=1,format:e.quill.getFormat(c),offset:p,prefix:k,suffix:C};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==S.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,l.default)(t.format[e],S.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix)||null!=t.suffix&&!t.suffix.test(S.suffix)||!0===t.handler.call(e,c,S))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===y.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},r,/^$/),g(n,"handler",(function(n){var r=n.index;e===y.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var c=r.formats(),s=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(c,s)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function k(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),s=o(c,1)[0];if(s){var d=l.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(d,p)||{},i=s.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,f.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=u.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function S(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function E(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),c=l[0],s=l[1];if(null!=c){var u=this.quill.getIndex(c),p=c.newlineIndex(s,!0)+1,h=c.newlineIndex(u+s+i),v=c.domNode.textContent.slice(p,h).split("\n");s=0,v.forEach((function(t,o){e?(c.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(c.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,i,f.default.sources.SILENT)}}}}function O(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function _(e){if("string"==typeof e||"number"==typeof e)return _({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:O("bold"),italic:O("italic"),underline:O("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new s.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,c.default)({},r.formats(),{list:"checked"}),l=(new s.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new s.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var c=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new s.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:c});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new s.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":w(y.keys.LEFT,!1),"embed left shift":w(y.keys.LEFT,!0),"embed right":w(y.keys.RIGHT,!1),"embed right shift":w(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(0)),l=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,c=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];o=s[0],i=s[1],c=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,c].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),f=r(d,2);return i=f[0],c=f[1],{startNode:o,startOffset:i,endNode:o,endOffset:c}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[i.default,o.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(l.default.Attributor.Style),s=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),u=new c("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=s,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var c=0;function s(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),o=m(n(5)),i=n(4),a=m(i),l=m(n(16)),c=m(n(25)),s=m(n(24)),u=m(n(35)),d=m(n(6)),f=m(n(22)),p=m(n(7)),h=m(n(55)),v=m(n(42)),g=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":c.default,"blots/cursor":s.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":g.default}),r.default.register(a.default,l.default,s.default,d.default,f.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(c),n.rightGuard=document.createTextNode(c),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(c).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=c,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),c=new i.default.Attributor.Class("align","ql-align",a),s=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=c,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),c=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),c=new i.default.Attributor.Class("direction","ql-direction",a),s=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=c,t.DirectionStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new l.default.Attributor.Class("font","ql-font",c),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l.default.Attributor.Style),d=new u("font","font-family",c);t.FontStyle=d,t.FontClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=c(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function c(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),l=h(n(8)),c=h(n(23)),s=h(n(34)),u=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],k=["small",!1,"large","huge"],C=function(e){function t(e,n){v(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return m(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,b),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,y,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,x):e.classList.contains("ql-size")&&E(e,k)),new f.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(s.default);C.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var S=function(e){function t(e,n){v(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return m(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){c.default.match(t,"enter")?(e.save(),t.preventDefault()):c.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=S,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var c=r.length();e>a?n(r,e-a,Math.min(t,a+c-e)):n(r,0,Math.min(c,e+t-a)),a+=c}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},s=t,u=0;s.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,o=0;function i(e,t,u){if(e==t)return e?[[o,e]]:[];(u<0||e.length<u)&&(u=null);var f=l(e,t),p=e.substring(0,f);f=c(e=e.substring(f),t=t.substring(f));var h=e.substring(e.length-f),v=function(e,t){var s;if(!e)return[[r,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,d=e.length>t.length?t:e,f=u.indexOf(d);if(-1!=f)return s=[[r,u.substring(0,f)],[o,d],[r,u.substring(f+d.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==d.length)return[[n,e],[r,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,a,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(s,u+1));){var f=l(e.substring(n),t.substring(u)),p=c(e.substring(0,n),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),r=e.substring(0,n-p),o=e.substring(n+f),i=t.substring(0,u-p),a=t.substring(u+f))}return 2*d.length>=e.length?[r,o,i,a,d]:null}var i,a,s,u,d,f=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!f&&!p)return null;i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],s=i[1],u=i[2],d=i[3]):(u=i[0],d=i[1],a=i[2],s=i[3]);var h=i[4];return[a,s,u,d,h]}(e,t);if(p){var h=p[0],v=p[1],g=p[2],m=p[3],b=p[4],y=i(h,g),w=i(v,m);return y.concat([[o,b]],w)}return function(e,t){for(var o=e.length,i=t.length,l=Math.ceil((o+i)/2),c=l,s=2*l,u=new Array(s),d=new Array(s),f=0;f<s;f++)u[f]=-1,d[f]=-1;u[c+1]=0,d[c+1]=0;for(var p=o-i,h=p%2!=0,v=0,g=0,m=0,b=0,y=0;y<l;y++){for(var w=-y+v;w<=y-g;w+=2){for(var x=c+w,k=(_=w==-y||w!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-w;_<o&&k<i&&e.charAt(_)==t.charAt(k);)_++,k++;if(u[x]=_,_>o)g+=2;else if(k>i)v+=2;else if(h&&(E=c+p-w)>=0&&E<s&&-1!=d[E]&&_>=(S=o-d[E]))return a(e,t,_,k)}for(var C=-y+m;C<=y-b;C+=2){for(var S,E=c+C,O=(S=C==-y||C!=y&&d[E-1]<d[E+1]?d[E+1]:d[E-1]+1)-C;S<o&&O<i&&e.charAt(o-S-1)==t.charAt(i-O-1);)S++,O++;if(d[E]=S,S>o)b+=2;else if(O>i)m+=2;else if(!h){var _;if((x=c+p-C)>=0&&x<s&&-1!=u[x])if(k=c+(_=u[x])-x,_>=(S=o-S))return a(e,t,_,k)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-f),t=t.substring(0,t.length-f));return p&&v.unshift([o,p]),h&&v.push([o,h]),s(v),null!=u&&(v=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===o){var l=r+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var c=t-r,s=[a[0],a[1].slice(0,c)],u=[a[0],a[1].slice(c)];return e.splice(i,1,s,u),[i+1,e]}r=l}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],a=r[0],l=i[a],c=i[a+1];if(null==l)return e;if(l[0]!==o)return e;if(null!=c&&l[1]+c[1]===c[1]+l[1])return i.splice(a,2,c,l),d(i,a,2);if(null!=c&&0===c[1].indexOf(l[1])){i.splice(a,2,[c[0],l[1]],[0,l[1]]);var s=c[1].slice(l[1].length);return s.length>0&&i.splice(a+2,0,[c[0],s]),d(i,a,3)}return e}(v,u)),v=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===o&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===r&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var c=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&c.push(e[l]);return c}(v)}function a(e,t,n,r){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),c=t.substring(r),s=i(o,a),u=i(l,c);return s.concat(u)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e){e.push([o,""]);for(var t,i=0,a=0,u=0,d="",f="";i<e.length;)switch(e[i][0]){case r:u++,f+=e[i][1],i++;break;case n:a++,d+=e[i][1],i++;break;case o:a+u>1?(0!==a&&0!==u&&(0!==(t=l(f,d))&&(i-a-u>0&&e[i-a-u-1][0]==o?e[i-a-u-1][1]+=f.substring(0,t):(e.splice(0,0,[o,f.substring(0,t)]),i++),f=f.substring(t),d=d.substring(t)),0!==(t=c(f,d))&&(e[i][1]=f.substring(f.length-t)+e[i][1],f=f.substring(0,f.length-t),d=d.substring(0,d.length-t))),0===a?e.splice(i-u,a+u,[r,f]):0===u?e.splice(i-a,a+u,[n,d]):e.splice(i-a-u,a+u,[n,d],[r,f]),i=i-a-u+(a?1:0)+(u?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,u=0,a=0,d="",f=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==o&&e[i+1][0]==o&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&s(e)}var u=i;function d(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}u.INSERT=r,u.DELETE=n,u.EQUAL=o,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(s=1,c=new Array(d-1);s<d;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var f,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),d){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,n);break;case 4:u[s].fn.call(u[s].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];u[s].fn.apply(u[s].context,c)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var c=0,s=[],u=l.length;c<u;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&s.push(l[c]);s.length?this._events[a]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=y(n(3)),l=y(n(2)),c=y(n(0)),s=y(n(5)),u=y(n(10)),d=y(n(9)),f=n(36),p=n(37),h=y(n(13)),v=n(26),g=n(38),m=n(39),b=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,u.default)("quill:clipboard"),k="__ql-matcher",C=[[Node.TEXT_NODE,q],[Node.TEXT_NODE,A],["br",function(e,t){return j(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===$(e).fontStyle&&(n.italic=!0),r.fontWeight&&($(e).fontWeight.startsWith("bold")||parseInt($(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=_(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=c.default.query(e);if(null==n||"list-item"!==n.blotName||!j(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(c.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new l.default}]],S=[f.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),E=[f.AlignStyle,p.BackgroundStyle,v.ColorStyle,g.DirectionStyle,m.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],C.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==T)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],c=i[1],s=I(this.container,a,c);return j(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new l.default).retain(s.length()-1).delete(1))),x.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,s.default.sources.USER),t.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[k]=e[k]||[],e[k].push(l)}))}})),[t,n]}}]),t}(d.default);function _(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return _(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new l.default)}function $(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=$(e);return["block","list-item"].indexOf(t.display)>-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=I(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[k]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function P(e,t,n){return _(n,e,!0)}function R(e,t){var n=c.default.Attributor.Attribute.keys(e),r=c.default.Attributor.Class.keys(e),o=c.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=c.default.query(t,c.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(n=E[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=_(t,i)),t}function M(e,t){var n=c.default.query(e);if(null==n)return t;if(n.prototype instanceof c.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=_(t,n.blotName,n.formats(e)));return t}function A(e,t){return j(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function T(e,t){if(N(e)&&null!=e.nextElementSibling&&!j(t,"\n\n")){var n=e.offsetHeight+parseFloat($(e).marginTop)+parseFloat($(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function q(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!$(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}O.DEFAULTS={matchers:[],matchVisual:!0},t.default=O,t.matchAttributor=R,t.matchBlot=M,t.matchNewline=A,t.matchSpacing=T,t.matchText=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),a=u(n(0)),l=u(n(5)),c=u(n(10)),s=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,c.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");v(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=f.error("Container required for toolbar",i.options),d(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var c=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];c=!s.hasAttribute("selected")&&(s.value||!1)}else c=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,c);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(c=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,c)),l.default.sources.USER)}else t.quill.format(n,c,l.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var c=t[i];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+c+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var s=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(s.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),l=p(n(8)),c=n(43),s=p(c),u=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return g(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(s.default);b.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===l.default.sources.USER){var i=e.quill.scroll.descendant(u.default,t.index),a=r(i,2),c=a[0],s=a[1];if(null!=c){e.linkRange=new d.Range(t.index-s,c.length());var f=u.default.formats(c.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(29)),o=n(36),i=n(38),a=n(64),l=A(n(65)),c=A(n(66)),s=n(67),u=A(s),d=n(37),f=n(26),p=n(39),h=n(40),v=A(n(56)),g=A(n(68)),m=A(n(27)),b=A(n(69)),y=A(n(70)),w=A(n(71)),x=A(n(72)),k=A(n(73)),C=n(13),S=A(C),E=A(n(74)),O=A(n(75)),_=A(n(57)),$=A(n(41)),j=A(n(28)),N=A(n(59)),I=A(n(60)),P=A(n(61)),R=A(n(108)),M=A(n(62));function A(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":S.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":v.default,"formats/code":C.Code,"formats/italic":g.default,"formats/link":m.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":k.default,"formats/list/item":s.ListItem,"modules/formula":E.default,"modules/syntax":O.default,"modules/toolbar":_.default,"themes/bubble":R.default,"themes/snow":M.default,"ui/icons":$.default,"ui/picker":j.default,"ui/icon-picker":I.default,"ui/color-picker":N.default,"ui/tooltip":P.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),s=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(4)),l=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return d(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=n(27),s=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,c.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),l=n(27),c=(r=l)&&r.__esModule?r:{default:r},s=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return c.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(35)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){s(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(c(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){s(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return d(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),c=d(l),s=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(c.default);g.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(e){function t(e,n){f(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],c=r.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-c),d=r.quill.getBounds(new s.Range(c,u));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);m.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=m,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=r()},7787:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");
32 /**
33 * @license React
34 * react-is.production.min.js
35 *
36 * Copyright (c) Facebook, Inc. and its affiliates.
37 *
38 * This source code is licensed under the MIT license found in the
39 * LICENSE file in the root directory of this source tree.
40 */function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case v:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return m(e)===i},t.isMemo=function(e){return m(e)===h}},6351:function(e,t,n){"use strict";e.exports=n(7787)},2551:function(e,t,n){"use strict";
41 /**
42 * @license React
43 * react-dom.production.min.js
44 *
45 * Copyright (c) Facebook, Inc. and its affiliates.
46 *
47 * This source code is licensed under the MIT license found in the
48 * LICENSE file in the root directory of this source tree.
49 */var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var T,q=Object.assign;function L(e){if(void 0===T)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return"\n"+T+e}var D=!1;function z(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function B(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case k:return"Portal";case E:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case $:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ce=null,Se=null;function Ee(e){if(e=wo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Oe(e){Ce?Se?Se.push(e):Se=[e]:Ce=e}function _e(){if(Ce){var e=Ce,t=Se;if(Se=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function $e(e,t){return e(t)}function je(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return $e(e,t,n)}finally{Ne=!1,(null!==Ce||null!==Se)&&(je(),_e())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Re=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Re=!1}function Ae(e,t,n,r,o,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Te=!1,qe=null,Le=!1,De=null,ze={onError:function(e){Te=!0,qe=e}};function Be(e,t,n,r,o,i,a,l,c){Te=!1,qe=null,Ae.apply(ze,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Fe(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var st=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,kt,Ct,St,Et,Ot=!1,_t=[],$t=null,jt=null,Nt=null,It=new Map,Pt=new Map,Rt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Tt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function qt(e){var t=yo(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Et(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Dt(e,t,n){Lt(e)&&n.delete(t)}function zt(){Ot=!1,null!==$t&&Lt($t)&&($t=null),null!==jt&&Lt(jt)&&(jt=null),null!==Nt&&Lt(Nt)&&(Nt=null),It.forEach(Dt),Pt.forEach(Dt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ft(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==$t&&Bt($t,e),null!==jt&&Bt(jt,e),null!==Nt&&Bt(Nt,e),It.forEach(t),Pt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)qt(n),null===n.blockedOn&&Rt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=yt,i=Ht.transition;Ht.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Ht.transition=i}}function Ut(e,t,n,r){var o=yt,i=Ht.transition;Ht.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Ht.transition=i}}function Yt(e,t,n,r){if(Wt){var o=Gt(e,t,n,r);if(null===o)Wr(e,t,r,Kt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return $t=Tt($t,e,t,n,r,o),!0;case"dragenter":return jt=Tt(jt,e,t,n,r,o),!0;case"mouseover":return Nt=Tt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Tt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Tt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Gt(e,t,n,r))&&Wr(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Kt=null;function Gt(e,t,n,r){if(Kt=null,null!==(e=yo(e=xe(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,cn,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(sn),dn=q({},sn,{view:0,detail:0}),fn=on(dn),pn=q({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),vn=on(q({},pn,{dataTransfer:0})),gn=on(q({},dn,{relatedTarget:0})),mn=on(q({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=q({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(q({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return Sn}var On=q({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(On),$n=on(q({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=on(q({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Nn=on(q({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=q({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Rn=[9,13,27,32],Mn=u&&"CompositionEvent"in window,An=null;u&&"documentMode"in document&&(An=document.documentMode);var Tn=u&&"TextEvent"in window&&!An,qn=u&&(!Mn||An&&8<An&&11>=An),Ln=String.fromCharCode(32),Dn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Vn(e,t,n,r){Oe(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Yn=null;function Kn(e){Lr(e,0)}function Gn(e){if(Y(xo(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Yn=Un=null)}function nr(e){if("value"===e.propertyName&&Gn(Yn)){var t=[];Vn(t,Yn,e,xe(e)),Ie(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Yn)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Ur(mr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Cr={},Sr={};function Er(e){if(Cr[e])return Cr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Cr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Or=Er("animationend"),_r=Er("animationiteration"),$r=Er("animationstart"),jr=Er("transitionend"),Nr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Nr.set(e,t),c(t,[e])}for(var Rr=0;Rr<Ir.length;Rr++){var Mr=Ir[Rr];Pr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Pr(Or,"onAnimationEnd"),Pr(_r,"onAnimationIteration"),Pr($r,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(jr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function qr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,c,s){if(Be.apply(this,arguments),Te){if(!Te)throw Error(i(198));var u=qe;Te=!1,qe=null,Le||(Le=!0,De=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;qr(o,l,s),i=c}else for(a=0;a<r.length;a++){if(c=(l=r[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;qr(o,l,s),i=c}}}if(Le)throw e=De,Le=!1,De=null,e}function Dr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Tr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var o=Vt;break;case 4:o=Ut;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}l=l.parentNode}}r=r.return}Ie((function(){var r=i,o=xe(n),a=[];e:{var l=Nr.get(e);if(void 0!==l){var c=un,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=_n;break;case"focusin":s="focus",c=gn;break;case"focusout":s="blur",c=gn;break;case"beforeblur":case"afterblur":c=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=jn;break;case Or:case _r:case $r:c=mn;break;case jr:c=Nn;break;case"scroll":c=fn;break;case"wheel":c=Pn;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=$n}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&(null!=(v=Pe(h,f))&&u.push(Vr(h,v,p)))),d)break;h=h.return}0<u.length&&(l=new c(l,s,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[vo])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=Fe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(u=hn,v="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=$n,v="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==c?l:xo(c),p=null==s?l:xo(s),(l=new u(v,h+"leave",c,n,o)).target=d,l.relatedTarget=p,v=null,yo(o)===r&&((u=new u(f,h+"enter",s,n,o)).target=p,u.relatedTarget=d,v=u),d=v,c&&s)e:{for(f=s,h=0,p=u=c;p;p=Yr(p))h++;for(p=0,v=f;v;v=Yr(v))p++;for(;0<h-p;)u=Yr(u),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Yr(u),f=Yr(f)}u=null}else u=null;null!==c&&Kr(a,l,c,u,!1),null!==s&&null!==d&&Kr(a,d,s,u,!0)}if("select"===(c=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var g=Xn;else if(Wn(l))if(Qn)g=ar;else{g=or;var m=rr}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?Vn(a,g,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&ee(l,"number",l.value)),m=r?xo(r):window,e){case"focusin":(Wn(m)||"true"===m.contentEditable)&&(gr=m,mr=r,br=null);break;case"focusout":br=mr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(Mn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Fn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(qn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Fn&&(b=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Fn=!0)),0<(m=Ur(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:m}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Tn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Dn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Mn&&zn(e,t)?(e=en(),Jt=Zt=Qt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Lr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(c=Pe(n,i))&&a.unshift(Vr(n,c,l)):o||null!=(c=Pe(n,i))&&a.push(Vr(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ft(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,go="__reactEvents$"+fo,mo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ko(e){return e[ho]||null}var Co=[],So=-1;function Eo(e){return{current:e}}function Oo(e){0>So||(e.current=Co[So],Co[So]=null,So--)}function _o(e,t){So++,Co[So]=e.current,e.current=t}var $o={},jo=Eo($o),No=Eo(!1),Io=$o;function Po(e,t){var n=e.type.contextTypes;if(!n)return $o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ro(e){return null!=(e=e.childContextTypes)}function Mo(){Oo(No),Oo(jo)}function Ao(e,t,n){if(jo.current!==$o)throw Error(i(168));_o(jo,t),_o(No,n)}function To(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return q({},n,r)}function qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$o,Io=jo.current,_o(jo,e),_o(No,No.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=To(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(No),Oo(jo),_o(jo,e)):Oo(No),_o(No,n)}var Do=null,zo=!1,Bo=!1;function Fo(e){null===Do?Do=[e]:Do.push(e)}function Ho(){if(!Bo&&null!==Do){Bo=!0;var e=0,t=yt;try{var n=Do;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,zo=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Ye(Je,Ho),t}finally{yt=t,Bo=!1}}return null}var Wo=[],Vo=0,Uo=null,Yo=0,Ko=[],Go=0,Xo=null,Qo=1,Zo="";function Jo(e,t){Wo[Vo++]=Yo,Wo[Vo++]=Uo,Uo=e,Yo=t}function ei(e,t,n){Ko[Go++]=Qo,Ko[Go++]=Zo,Ko[Go++]=Xo,Xo=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Wo[--Vo],Wo[Vo]=null,Yo=Wo[--Vo],Wo[Vo]=null;for(;e===Xo;)Xo=Ko[--Go],Ko[Go]=null,Zo=Ko[--Go],Ko[Go]=null,Qo=Ko[--Go],Ko[Go]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Is(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Is(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!ci(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ci(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function mi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Rs(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===P&&yi(i)===t.type)?((r=o(t,n.props)).ref=mi(e,t,n),r.return=e,r):((r=Ms(n.type,n.key,n.props,null,e.mode,r)).ref=mi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ls(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=As(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ms(t.type,t.key,t.props,null,e.mode,n)).ref=mi(e,null,t),n.return=e,n;case k:return(t=Ls(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=As(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case k:return n.key===o?u(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function v(o,i,l,c){for(var s=null,u=null,d=i,v=i=0,g=null;null!==d&&v<l.length;v++){d.index>v?(g=d,d=null):g=d.sibling;var m=p(o,d,l[v],c);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(o,d),i=a(m,i,v),null===u?s=m:u.sibling=m,u=m,d=g}if(v===l.length)return n(o,d),ii&&Jo(o,v),s;if(null===d){for(;v<l.length;v++)null!==(d=f(o,l[v],c))&&(i=a(d,i,v),null===u?s=d:u.sibling=d,u=d);return ii&&Jo(o,v),s}for(d=r(o,d);v<l.length;v++)null!==(g=h(d,o,v,l[v],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),i=a(g,i,v),null===u?s=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),s}function g(o,l,c,s){var u=A(c);if("function"!=typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var d=u=null,v=l,g=l=0,m=null,b=c.next();null!==v&&!b.done;g++,b=c.next()){v.index>g?(m=v,v=null):m=v.sibling;var y=p(o,v,b.value,s);if(null===y){null===v&&(v=m);break}e&&v&&null===y.alternate&&t(o,v),l=a(y,l,g),null===d?u=y:d.sibling=y,d=y,v=m}if(b.done)return n(o,v),ii&&Jo(o,g),u;if(null===v){for(;!b.done;g++,b=c.next())null!==(b=f(o,b.value,s))&&(l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return ii&&Jo(o,g),u}for(v=r(o,v);!b.done;g++,b=c.next())null!==(b=h(v,o,g,b.value,s))&&(e&&null!==b.alternate&&v.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),u}return function e(r,i,a,c){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,u=i;null!==u;){if(u.key===s){if((s=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===P&&yi(s)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=mi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=As(a.props.children,r.mode,c,a.key)).return=r,r=i):((c=Ms(a.type,a.key,a.props,null,r.mode,c)).ref=mi(r,i,a),c.return=r,r=c)}return l(r);case k:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ls(a,r.mode,c)).return=r,r=i}return l(r);case P:return e(r,i,(u=a._init)(a._payload),c)}if(te(a))return v(r,i,a,c);if(A(a))return g(r,i,a,c);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=qs(a,r.mode,c)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),ki=wi(!1),Ci=Eo(null),Si=null,Ei=null,Oi=null;function _i(){Oi=Ei=Si=null}function $i(e){var t=Ci.current;Oo(Ci),e._currentValue=t}function ji(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){Si=e,Oi=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Si)throw Error(i(308));Ei=e,Si.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Pi=null;function Ri(e){null===Pi?Pi=[e]:Pi.push(e)}function Mi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ri(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ti=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&$c){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Ri(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Ti=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c))}if(null!==i){var d=o.baseState;for(a=0,u=s=c=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(f=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=v.payload)?h.call(p,d,f):h))break e;d=q({},d,f);break e;case 2:Ti=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=s,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Tc|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ui=Eo(Vi),Yi=Eo(Vi),Ki=Eo(Vi);function Gi(e){if(e===Vi)throw Error(i(174));return e}function Xi(e,t){switch(_o(Ki,t),_o(Yi,e),_o(Ui,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Ui),_o(Ui,t)}function Qi(){Oo(Ui),Oo(Yi),Oo(Ki)}function Zi(e){Gi(Ki.current);var t=Gi(Ui.current),n=ce(t,e.type);t!==n&&(_o(Yi,e),_o(Ui,n))}function Ji(e){Yi.current===e&&(Oo(Ui),Oo(Yi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,ca=null,sa=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,sa=ca=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==ca&&null!==ca.next,aa=0,sa=ca=la=null,ua=!1,t)throw Error(i(300));return e}function ma(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ya(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ca=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function wa(e,t){return"function"==typeof t?t(e):t}function xa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ca,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var c=l=null,s=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(c=s=f,l=r):s=s.next=f,la.lanes|=d,Tc|=d}u=u.next}while(null!==u&&u!==a);null===s?l=r:s.next=c,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Tc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Sa(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!0),r=r.queue,Ta(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,Ia(9,Oa.bind(null,n,r,o,t),void 0,null),null===jc)throw Error(i(349));30&aa||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,$a(t)&&ja(e)}function _a(e,t,n){return n((function(){$a(t)&&ja(e)}))}function $a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function ja(e){var t=Ai(e,1);null!==t&&ns(t,e,1,-1)}function Na(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ya().memoizedState}function Ra(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Ma(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&va(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}la.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function Aa(e,t){return Ra(8390656,8,e,t)}function Ta(e,t){return Ma(2048,8,e,t)}function qa(e,t){return Ma(4,2,e,t)}function La(e,t){return Ma(4,4,e,t)}function Da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4,4,Da.bind(null,t,e),n)}function Ba(){}function Fa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(lr(n,t)||(n=vt(),la.lanes|=n,Tc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Va(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ua(){return ya().memoizedState}function Ya(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e))Xa(t,n);else if(null!==(n=Mi(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function Ka(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var c=t.interleaved;return null===c?(o.next=o,Ri(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Mi(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Ga(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ii,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Na,useDebugValue:Ba,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Va.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===jc)throw Error(i(349));30&aa||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Aa(_a.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=jc.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ii,useCallback:Fa,useContext:Ii,useEffect:Ta,useImperativeHandle:za,useInsertionEffect:qa,useLayoutEffect:La,useMemo:Ha,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ya(),ca.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:Ii,useCallback:Fa,useContext:Ii,useEffect:Ta,useImperativeHandle:za,useInsertionEffect:qa,useLayoutEffect:La,useMemo:Ha,useReducer:ka,useRef:Pa,useState:function(){return ka(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ya();return null===ca?t.memoizedState=e:Wa(t,ca.memoizedState,e)},useTransition:function(){return[ka(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Di(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Di(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(ns(t,e,r,n),Bi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function al(e,t,n){var r=!1,o=$o,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Ro(t)?Io:jo.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):$o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},qi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Ro(t)?Io:jo.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wc||(Wc=!0,Vc=r),dl(0,t)},n}function hl(e,t,n){(n=Di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Uc?Uc=new Set([this]):Uc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ml(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Di(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,yl=!1;function wl(e,t,n,r){t.child=null===e?ki(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=ga(e,t,n,r,i,o),n=ma(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ps(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ms(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Rs(i,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);131072&e.flags&&(yl=!0)}}return Ol(e,t,n,r,o)}function Sl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Rc,Pc),Pc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Rc,Pc),Pc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Rc,Pc),Pc|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Rc,Pc),Pc|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,n,r,o){var i=Ro(n)?Io:jo.current;return i=Po(t,i),Ni(t,o),n=ga(e,t,n,r,i,o),r=ma(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function _l(e,t,n,r,o){if(Ro(n)){var i=!0;qo(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Hl(e,t),al(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ii(s):s=Po(t,s=Ro(n)?Io:jo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||c!==s)&&ll(t,a,r,s),Ti=!1;var f=t.memoizedState;a.state=f,Hi(t,r,a,o),c=t.memoizedState,l!==r||f!==c||No.current||Ti?("function"==typeof u&&(rl(t,n,u,r),c=t.memoizedState),(l=Ti||il(t,n,l,r,f,c,s))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Li(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=Ii(c):c=Po(t,c=Ro(n)?Io:jo.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==c)&&ll(t,a,r,c),Ti=!1,f=t.memoizedState,a.state=f,Hi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||No.current||Ti?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Ti||il(t,n,s,r,f,h,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $l(e,t,n,r,i,o)}function $l(e,t,n,r,o,i){El(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Lo(t,n,!1),Wl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function jl(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),Xi(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var Il,Pl,Rl,Ml,Al={dehydrated:null,treeContext:null,retryLane:0};function Tl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ql(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,c=!!(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,l?(o=t.mode,l=t.child,c={mode:"hidden",children:c},1&o||null===l?l=Ts(c,o,0,null):(l.childLanes=0,l.pendingProps=c),e=As(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Tl(n),t.memoizedState=Al,e):Ll(t,c));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Dl(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ts({mode:"visible",children:r.children},o,0,null),(a=As(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&xi(t,e.child,null,l),t.child.memoizedState=Tl(l),t.memoizedState=Al,a);if(!(1&t.mode))return Dl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var c=r.dgst;return r=c,Dl(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(c=!!(l&e.childLanes),yl||c){if(null!==(r=jc)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),ns(r,e,o,-1))}return vs(),Dl(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_s.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Go++]=Qo,Ko[Go++]=Zo,Ko[Go++]=Xo,Qo=e.id,Zo=e.overflow,Xo=t),t=Ll(t,r.children),t.flags|=4096,t)}(e,t,c,o,r,a,n);if(l){l=o.fallback,c=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&c||t.child===a?(o=Rs(a,s)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?l=Rs(r,l):(l=As(l,c,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,c=null===(c=e.child.memoizedState)?Tl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},l.memoizedState=c,l.childLanes=e.childLanes&~n,t.memoizedState=Al,o}return e=(l=e.child).sibling,o=Rs(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ll(e,t){return(t=Ts({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){return null!==r&&vi(r),xi(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ji(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Fl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Tc|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Rs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return Ro(t.type)&&Mo(),Ul(t),null;case 3:return r=t.stateNode,Qi(),Oo(No),Oo(jo),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Pl(e,t),Ul(t),null;case 5:Ji(t);var o=Gi(Ki.current);if(n=t.type,null!==e&&null!=t.stateNode)Rl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ul(t),null}if(e=Gi(Ui.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)Dr(Ar[o],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":X(r,a),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Dr("invalid",r);break;case"textarea":oe(r,a),Dr("invalid",r)}for(var c in be(n,a),o=null,a)if(a.hasOwnProperty(c)){var s=a[c];"children"===c?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(c)&&null!=s&&"onScroll"===c&&Dr("scroll",r)}switch(n){case"input":U(r),J(r,a,!0);break;case"textarea":U(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[po]=t,e[ho]=r,Il(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),o=r;break;case"iframe":case"object":case"embed":Dr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)Dr(Ar[o],e);o=r;break;case"source":Dr("error",e),o=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=r;break;case"details":Dr("toggle",e),o=r;break;case"input":X(e,r),o=G(e,r),Dr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=q({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Dr("invalid",e)}for(a in be(n,o),s=o)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Dr("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Ml(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Gi(Ki.current),Gi(Ui.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ul(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Mc&&(Mc=3):vs())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Qi(),Pl(e,t),null===e&&Fr(t.stateNode.containerInfo),Ul(t),null;case 10:return $i(t.type._context),Ul(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return Ul(t),null;if(r=!!(128&t.flags),null===(c=a.rendering))if(r)Vl(a,!1);else{if(0!==Mc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=ta(e))){for(t.flags|=128,Vl(a,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Fc&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ii)return Ul(t),null}else 2*Qe()-a.renderingStartTime>Fc&&1073741824!==n&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,_o(ea,r?1&n|2:1&n),t):(Ul(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Pc)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Kl(e,t){switch(ni(t),t.tag){case 1:return Ro(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Oo(No),Oo(jo),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Qi(),null;case 10:return $i(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Il=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pl=function(){},Rl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(Ui.current);var i,a=null;switch(n){case"input":o=G(e,o),r=G(e,r),a=[];break;case"select":o=q({},o,{value:void 0}),r=q({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==c&&(null!=s||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Dr("scroll",e),a||c===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ml=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Xl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ss(e,t,n)}else n.current=null}function ec(e,t,n){try{n()}catch(n){Ss(e,t,n)}}var tc=!1;function nc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ec(t,n,i)}o=o.next}while(o!==r)}}function rc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[mo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return 5===e.tag||3===e.tag||4===e.tag}function lc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}var uc=null,dc=!1;function fc(e,t,n){for(n=n.child;null!==n;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=uc,o=dc;uc=null,fc(e,t,n),dc=o,null!==(uc=r)&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uc.removeChild(n.stateNode));break;case 18:null!==uc&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Ft(e)):co(uc,n.stateNode));break;case 4:r=uc,o=dc,uc=n.stateNode.containerInfo,dc=!0,fc(e,t,n),uc=r,dc=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ec(n,t,a),o=o.next}while(o!==r)}fc(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ss(n,t,e)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,fc(e,t,n),Xl=r):fc(e,t,n);break;default:fc(e,t,n)}}function hc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=$s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,c=l;e:for(;null!==c;){switch(c.tag){case 5:uc=c.stateNode,dc=!1;break e;case 3:case 4:uc=c.stateNode.containerInfo,dc=!0;break e}c=c.return}if(null===uc)throw Error(i(160));pc(a,l,o),uc=null,dc=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Ss(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gc(t,e),t=t.sibling}function gc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vc(t,e),mc(e),4&r){try{nc(3,e,e.return),rc(3,e)}catch(t){Ss(e,e.return,t)}try{nc(5,e,e.return)}catch(t){Ss(e,e.return,t)}}break;case 1:vc(t,e),mc(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(vc(t,e),mc(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Ss(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,c=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(c,l);var u=ye(c,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,u)}switch(c){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Ss(e,e.return,t)}}break;case 6:if(vc(t,e),mc(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Ss(e,e.return,t)}}break;case 3:if(vc(t,e),mc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(t){Ss(e,e.return,t)}break;case 4:default:vc(t,e),mc(e);break;case 13:vc(t,e),mc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bc=Qe())),4&r&&hc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,vc(t,e),Xl=u):vc(t,e),mc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nc(4,p,p.return);break;case 1:Jl(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Ss(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xc(f);continue}}null!==h?(h.return=p,Zl=h):xc(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,c.style.display=ve("display",l))}catch(t){Ss(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Ss(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vc(t,e),mc(e),4&r&&hc(e);case 21:}}function mc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ac(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),sc(e,lc(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cc(e,lc(e),a);break;default:throw Error(i(161))}}catch(t){Ss(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bc(e,t,n){Zl=e,yc(e,t,n)}function yc(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gl;if(!a){var l=o.alternate,c=null!==l&&null!==l.memoizedState||Xl;l=Gl;var s=Xl;if(Gl=a,(Xl=c)&&!s)for(Zl=o;null!==Zl;)c=(a=Zl).child,22===a.tag&&null!==a.memoizedState?kc(o):null!==c?(c.return=a,Zl=c):kc(o);for(;null!==i;)Zl=i,yc(i,t,n),i=i.sibling;Zl=o,Gl=l,Xl=s}wc(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):wc(e)}}function wc(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,l,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ft(f)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&oc(t)}catch(e){Ss(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function kc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rc(4,t)}catch(e){Ss(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ss(t,o,e)}}var i=t.return;try{oc(t)}catch(e){Ss(t,i,e)}break;case 5:var a=t.return;try{oc(t)}catch(e){Ss(t,a,e)}}}catch(e){Ss(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Cc,Sc=Math.ceil,Ec=w.ReactCurrentDispatcher,Oc=w.ReactCurrentOwner,_c=w.ReactCurrentBatchConfig,$c=0,jc=null,Nc=null,Ic=0,Pc=0,Rc=Eo(0),Mc=0,Ac=null,Tc=0,qc=0,Lc=0,Dc=null,zc=null,Bc=0,Fc=1/0,Hc=null,Wc=!1,Vc=null,Uc=null,Yc=!1,Kc=null,Gc=0,Xc=0,Qc=null,Zc=-1,Jc=0;function es(){return 6&$c?Qe():-1!==Zc?Zc:Zc=Qe()}function ts(e){return 1&e.mode?2&$c&&0!==Ic?Ic&-Ic:null!==gi.transition?(0===Jc&&(Jc=vt()),Jc):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function ns(e,t,n,r){if(50<Xc)throw Xc=0,Qc=null,Error(i(185));mt(e,n,r),2&$c&&e===jc||(e===jc&&(!(2&$c)&&(qc|=n),4===Mc&&ls(e,Ic)),rs(e,r),1===n&&0===$c&&!(1&t.mode)&&(Fc=Qe()+500,zo&&Ho()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,c=o[a];-1===c?l&n&&!(l&r)||(o[a]=pt(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===jc?Ic:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){zo=!0,Fo(e)}(cs.bind(null,e)):Fo(cs.bind(null,e)),ao((function(){!(6&$c)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=js(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zc=-1,Jc=0,6&$c)throw Error(i(327));var n=e.callbackNode;if(ks()&&e.callbackNode!==n)return null;var r=ft(e,e===jc?Ic:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=gs(e,r);else{t=r;var o=$c;$c|=2;var a=hs();for(jc===e&&Ic===t||(Hc=null,Fc=Qe()+500,fs(e,t));;)try{bs();break}catch(t){ps(e,t)}_i(),Ec.current=a,$c=o,null!==Nc?t=0:(jc=null,Ic=0,t=Mc)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Ac,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gs(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=is(e,a))),1!==t)))throw n=Ac,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xs(e,zc,Hc);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Bc+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xs.bind(null,e,zc,Hc),t);break}xs(e,zc,Hc);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sc(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,zc,Hc),r);break}xs(e,zc,Hc);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Dc;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=gs(e,t))&&(t=zc,zc=n,null!==t&&as(t)),e}function as(e){null===zc?zc=e:zc.push.apply(zc,e)}function ls(e,t){for(t&=~Lc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cs(e){if(6&$c)throw Error(i(327));ks();var t=ft(e,0);if(!(1&t))return rs(e,Qe()),null;var n=gs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Ac,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,zc,Hc),rs(e,Qe()),null}function ss(e,t){var n=$c;$c|=1;try{return e(t)}finally{0===($c=n)&&(Fc=Qe()+500,zo&&Ho())}}function us(e){null!==Kc&&0===Kc.tag&&!(6&$c)&&ks();var t=$c;$c|=1;var n=_c.transition,r=yt;try{if(_c.transition=null,yt=1,e)return e()}finally{yt=r,_c.transition=n,!(6&($c=t))&&Ho()}}function ds(){Pc=Rc.current,Oo(Rc)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Nc)for(n=Nc.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:Qi(),Oo(No),Oo(jo),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Oo(ea);break;case 10:$i(r.type._context);break;case 22:case 23:ds()}n=n.return}if(jc=e,Nc=e=Rs(e.current,null),Ic=Pc=t,Mc=0,Ac=null,Lc=qc=Tc=0,zc=Dc=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function ps(e,t){for(;;){var n=Nc;try{if(_i(),oa.current=Za,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,sa=ca=la=null,da=!1,fa=0,Oc.current=null,null===n||null===n.return){Mc=1,Ac=t,Nc=null;break}e:{var a=e,l=n.return,c=n,s=t;if(t=Ic,c.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,d=c,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,ml(h,l,c,0,t),1&h.mode&&vl(a,u,t),s=u;var v=(t=h).updateQueue;if(null===v){var g=new Set;g.add(s),t.updateQueue=g}else v.add(s);break e}if(!(1&t)){vl(a,u,t),vs();break e}s=Error(i(426))}else if(ii&&1&c.mode){var m=gl(l);if(null!==m){!(65536&m.flags)&&(m.flags|=256),ml(m,l,c,0,t),vi(sl(s,c));break e}}a=s=sl(s,c),4!==Mc&&(Mc=2),null===Dc?Dc=[a]:Dc.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,pl(0,s,t));break e;case 1:c=s;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Uc&&Uc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,hl(a,c,t));break e}}a=a.return}while(null!==a)}ws(n)}catch(e){t=e,Nc===n&&null!==n&&(Nc=n=n.return);continue}break}}function hs(){var e=Ec.current;return Ec.current=Za,null===e?Za:e}function vs(){0!==Mc&&3!==Mc&&2!==Mc||(Mc=4),null===jc||!(268435455&Tc)&&!(268435455&qc)||ls(jc,Ic)}function gs(e,t){var n=$c;$c|=2;var r=hs();for(jc===e&&Ic===t||(Hc=null,fs(e,t));;)try{ms();break}catch(t){ps(e,t)}if(_i(),$c=n,Ec.current=r,null!==Nc)throw Error(i(261));return jc=null,Ic=0,Mc}function ms(){for(;null!==Nc;)ys(Nc)}function bs(){for(;null!==Nc&&!Ge();)ys(Nc)}function ys(e){var t=Cc(e.alternate,e,Pc);e.memoizedProps=e.pendingProps,null===t?ws(e):Nc=t,Oc.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Nc=n);if(null===e)return Mc=6,void(Nc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yl(n,t,Pc)))return void(Nc=n);if(null!==(t=t.sibling))return void(Nc=t);Nc=t=e}while(null!==t);0===Mc&&(Mc=5)}function xs(e,t,n){var r=yt,o=_c.transition;try{_c.transition=null,yt=1,function(e,t,n,r){do{ks()}while(null!==Kc);if(6&$c)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===jc&&(Nc=jc=null,Ic=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yc||(Yc=!0,js(tt,(function(){return ks(),null}))),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=_c.transition,_c.transition=null;var l=yt;yt=1;var c=$c;$c|=4,Oc.current=null,function(e,t){if(eo=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(c=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(c=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===c||-1===s?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var v=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),m);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Ss(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}v=tc,tc=!1}(e,n),gc(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bc(n,e,o),Xe(),$c=c,yt=l,_c.transition=a}else e.current=n;if(Yc&&(Yc=!1,Kc=e,Gc=o),a=e.pendingLanes,0===a&&(Uc=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wc)throw Wc=!1,e=Vc,Vc=null,e;!!(1&Gc)&&0!==e.tag&&ks(),a=e.pendingLanes,1&a?e===Qc?Xc++:(Xc=0,Qc=e):Xc=0,Ho()}(e,t,n,r)}finally{_c.transition=o,yt=r}return null}function ks(){if(null!==Kc){var e=wt(Gc),t=_c.transition,n=yt;try{if(_c.transition=null,yt=16>e?16:e,null===Kc)var r=!1;else{if(e=Kc,Kc=null,Gc=0,6&$c)throw Error(i(331));var o=$c;for($c|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var c=a.deletions;if(null!==c){for(var s=0;s<c.length;s++){var u=c[s];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(ic(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:nc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(2048&(c=Zl).flags)try{switch(c.tag){case 0:case 11:case 15:rc(9,c)}}catch(e){Ss(c,c.return,e)}if(c===l){Zl=null;break e}var x=c.sibling;if(null!==x){x.return=c.return,Zl=x;break e}Zl=c.return}}if($c=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,_c.transition=t}}return!1}function Cs(e,t,n){e=zi(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(mt(e,1,t),rs(e,t))}function Ss(e,t,n){if(3===e.tag)Cs(e,e,n);else for(;null!==t;){if(3===t.tag){Cs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uc||!Uc.has(r))){t=zi(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(mt(t,1,e),rs(t,e));break}}t=t.return}}function Es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,jc===e&&(Ic&n)===n&&(4===Mc||3===Mc&&(130023424&Ic)===Ic&&500>Qe()-Bc?fs(e,0):Lc|=n),rs(e,t)}function Os(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=es();null!==(e=Ai(e,t))&&(mt(e,t,n),rs(e,n))}function _s(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Os(e,n)}function $s(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Os(e,n)}function js(e,t){return Ye(e,t)}function Ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Is(e,t,n,r){return new Ns(e,t,n,r)}function Ps(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rs(e,t){var n=e.alternate;return null===n?((n=Is(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ms(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Ps(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case C:return As(n.children,o,a,t);case S:l=8,o|=8;break;case E:return(e=Is(12,n,t,2|o)).elementType=E,e.lanes=a,e;case j:return(e=Is(13,n,t,o)).elementType=j,e.lanes=a,e;case N:return(e=Is(19,n,t,o)).elementType=N,e.lanes=a,e;case R:return Ts(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case _:l=9;break e;case $:l=11;break e;case I:l=14;break e;case P:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Is(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function As(e,t,n,r){return(e=Is(7,e,r,t)).lanes=n,e}function Ts(e,t,n,r){return(e=Is(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function qs(e,t,n){return(e=Is(6,e,null,t)).lanes=n,e}function Ls(e,t,n){return(t=Is(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zs(e,t,n,r,o,i,a,l,c){return e=new Ds(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Is(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(i),e}function Bs(e){if(!e)return $o;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ro(n))return To(e,n,t)}return t}function Fs(e,t,n,r,o,i,a,l,c){return(e=zs(n,r,!0,e,0,i,0,l,c)).context=Bs(null),n=e.current,(i=Di(r=es(),o=ts(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,mt(e,o,r),rs(e,r),e}function Hs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Bs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Di(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(ns(e,o,a,i),Bi(e,o,a)),a}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Us(e,t){Vs(e,t),(e=e.alternate)&&Vs(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)yl=!0;else{if(!(e.lanes&n||128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:jl(t),hi();break;case 5:Zi(t);break;case 1:Ro(t.type)&&qo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?ql(e,t,n):(_o(ea,1&ea.current),null!==(e=Wl(e,t,n))?e.sibling:null);_o(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Fl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Sl(e,t,n)}return Wl(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Po(t,jo.current);Ni(t,n),o=ga(null,t,r,e,o,n);var a=ma();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(r)?(a=!0,qo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,qi(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,cl(t,r,e,n),t=$l(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ps(e)?1:0;if(null!=e){if((e=e.$$typeof)===$)return 11;if(e===I)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Ol(null,t,r,e,n);break e;case 1:t=_l(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(jl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Li(e,t),Hi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Nl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Nl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=ki(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Wl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),El(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return ql(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,_o(Ci,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!No.current){t=Wl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){l=a.child;for(var s=c.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Di(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ji(a.return,n,t),c.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ji(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ni(t,n),r=r(o=Ii(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),kl(e,t,r,o=nl(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Hl(e,t),t.tag=1,Ro(r)?(e=!0,qo(t)):e=!1,Ni(t,n),al(t,r,o),cl(t,r,o,n),$l(null,t,r,!0,e,n);case 19:return Fl(e,t,n);case 22:return Sl(e,t,n)}throw Error(i(156,t.tag))};var Ys="function"==typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function Gs(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Ws(a);l.call(e)}}Hs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ws(a);i.call(e)}}var a=Fs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[vo]=a.current,Fr(8===e.nodeType?e.parentNode:e),us(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Ws(c);l.call(e)}}var c=zs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=c,e[vo]=c.current,Fr(8===e.nodeType?e.parentNode:e),us((function(){Hs(t,c,n,r)})),c}(n,t,e,o,r);return Ws(a)}Gs.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hs(e,t,null,null)},Gs.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us((function(){Hs(null,e,null,null)})),t[vo]=null}},Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&qt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Qe()),!(6&$c)&&(Fc=Qe()+500,Ho()))}break;case 13:us((function(){var t=Ai(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Us(e,1)}},kt=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)ns(t,e,134217728,es());Us(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ts(e),n=Ai(e,t);if(null!==n)ns(n,e,t,es());Us(e,t)}},St=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ko(r);if(!o)throw Error(i(90));Y(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},$e=ss,je=us;var eu={usingClientEntryPoint:!1,Events:[wo,xo,ko,Oe,_e,ss]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var n=!1,r="",o=Ys;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zs(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return us(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Ys;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Fs(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Fr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gs(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(us((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:function(e,t,n){"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},5708:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c=l(n(6540)),s=l(n(961)),u=l(n(2404)),d=l(n(1574)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,c;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(c=(l=n).onEditorChangeSelection)||void 0===c||c.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:"",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(c.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(c.default.Children.count(e.children)&&"textarea"===(null===(t=c.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(n=e.value)?n:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!u.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!u.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),p((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return c.default.Children.count(n)?c.default.cloneElement(c.default.Children.only(n),o):r?c.default.createElement("pre",i({},o)):c.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return c.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,c;if(this.editor){var s=this.getEditorSelection(),d=!s&&e,f=s&&!e;u.default(e,s)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),d?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):f&&(null===(c=(l=this.props).onBlur)||void 0===c||c.call(l,s,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=d.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(c.default.Component);function p(e){Promise.resolve().then(e)}e.exports=f},1020:function(e,t,n){"use strict";
50 /**
51 * @license React
52 * react-jsx-runtime.production.min.js
53 *
54 * Copyright (c) Facebook, Inc. and its affiliates.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE file in the root directory of this source tree.
58 */var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},5287:function(e,t){"use strict";
59 /**
60 * @license React
61 * react.production.min.js
62 *
63 * Copyright (c) Facebook, Inc. and its affiliates.
64 *
65 * This source code is licensed under the MIT license found in the
66 * LICENSE file in the root directory of this source tree.
67 */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var w=y.prototype=new b;w.constructor=y,v(w,m.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,C={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function $(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+$(c,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),j(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var u=i+$(l=e[s],s);c+=j(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=j(l=l.value,t,o,u=i+$(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},R={transition:null},M={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:R,ReactCurrentOwner:C};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.act=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)k.call(t,s)&&!S.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){c=Array(s);for(var u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},6540:function(e,t,n){"use strict";e.exports=n(5287)},4848:function(e,t,n){"use strict";e.exports=n(1020)},7463:function(e,t){"use strict";
68 /**
69 * @license React
70 * scheduler.production.min.js
71 *
72 * Copyright (c) Facebook, Inc. and its affiliates.
73 *
74 * This source code is licensed under the MIT license found in the
75 * LICENSE file in the root directory of this source tree.
76 */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,c=e[l],s=l+1,u=e[s];if(0>i(c,n))s<o&&0>i(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[l]=n,r=l);else{if(!(s<o&&0>i(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,p=3,h=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(s,t)}t=r(u)}}function x(e){if(g=!1,w(e),!v)if(null!==r(s))v=!0,R(k);else{var t=r(u);null!==t&&M(x,t.startTime-e)}}function k(e,n){v=!1,g&&(g=!1,b(O),O=-1),h=!0;var i=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!j());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var c=!0;else{var d=r(u);null!==d&&M(x,d.startTime-n),c=!1}return c}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,S=!1,E=null,O=-1,_=5,$=-1;function j(){return!(t.unstable_now()-$<_)}function N(){if(null!==E){var e=t.unstable_now();$=e;var n=!0;try{n=E(!0,e)}finally{n?C():(S=!1,E=null)}}else S=!1}if("function"==typeof y)C=function(){y(N)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=N,C=function(){P.postMessage(null)}}else C=function(){m(N,0)};function R(e){E=e,S||(S=!0,C())}function M(e,n){O=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,R(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(s)&&e===r(u)&&(g?(b(O),O=-1):g=!0,M(x,i-a))):(e.sortIndex=l,n(s,e),v||h||(v=!0,R(k))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:function(e,t,n){"use strict";e.exports=n(7463)},5072:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=n[c]||0,u="".concat(c," ").concat(s);n[c]=s+1;var d=l(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:g(f,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function g(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=s(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=c(e,t),s=0;s<n.length;s++){var u=l(n[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},6426:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},6942:function(e,t){var n;
77 /*!
78 Copyright (c) 2018 Jed Watson.
79 Licensed under the MIT License (MIT), see
80 http://jedwatson.github.io/classnames
81 */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o.nc=void 0,function(){"use strict";var e=o(5338),t=o(6540),n=o.t(t,2),r=o(4848),i=(0,t.createContext)(),a=function(e){var n=e.reducer,o=e.initialState,a=e.children;return(0,r.jsx)(i.Provider,{value:(0,t.useReducer)(n,o),children:a})},l=function(){return(0,t.useContext)(i)},c="UPDATE_STATE_ITEM",s="UPDATE_SECTIONS",u="UPDATE_DATA_ITEM",d="UPDATE_DATA_OPTIONS",f="UPDATE_DATA_BLOCK_ID_ACTION",p=o(2543),h=o.n(p);function v(e){return v="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},v(e)}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
82 g=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:$(e,n,l)}),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",b={};function y(){}function w(){}function x(){}var k={};s(k,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(R([])));S&&S!==n&&r.call(S,a)&&(k=S);var E=x.prototype=y.prototype=Object.create(k);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==v(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function $(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=j(l,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?m:p,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=m,r.method="throw",r.arg=s.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;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,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function N(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(v(t)+" is not iterable")}return w.prototype=x,o(E,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,s(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},O(_.prototype),s(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new _(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,P.prototype={constructor:P,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(I),!t)for(var n in this)"t"===n.charAt(0)&&r.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 o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,b):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),b},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),I(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}function m(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){m(i,r,o,a,l,"next",e)}function l(e){m(i,r,o,a,l,"throw",e)}a(void 0)}))}}function y(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}function w(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C,S=o(961),E=k({},o.t(S,2)),O=E.version,_=E.render,$=E.unmountComponentAtNode;try{Number((O||"").split(".")[0])>=18&&(C=E.createRoot)}catch(e){}function j(e){var t=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===v(t)&&(t.usingClientEntryPoint=e)}var N="__rc_react_root__";function I(e,t){C?function(e,t){j(!0);var n=t[N]||C(t);j(!1),n.render(e),t[N]=n}(e,t):function(e,t){_(e,t)}(e,t)}function P(e){return R.apply(this,arguments)}function R(){return R=b(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[N])||void 0===e||e.unmount(),delete t[N]})));case 1:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function M(e){$(e)}function A(e){return T.apply(this,arguments)}function T(){return T=b(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===C){e.next=2;break}return e.abrupt("return",P(t));case 2:M(t);case 3:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}const q=t.createContext({});const L="anticon",D=t.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:L}),{Consumer:z}=D;function B(e){if(Array.isArray(e))return e}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}function W(){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 V(e,t){return B(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||H(e,t)||W()}function U(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Y(e){return function(e){if(Array.isArray(e))return F(e)}(e)||U(e)||H(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.")}()}var K=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function G(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function X(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 Q="data-rc-order",Z="data-rc-priority",J="rc-util-key",ee=new Map;function te(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):J}function ne(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function re(e){return Array.from((ee.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!G())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Q,a),l&&i&&c.setAttribute(Z,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=ne(t),u=s.firstChild;if(r){if(l){var d=(t.styles||re(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Q)))return!1;var t=Number(e.getAttribute(Z)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ne(t);return(t.styles||re(n)).find((function(n){return n.getAttribute(te(t))===e}))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ie(e,t);n&&ne(t).removeChild(n)}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ne(n),o=re(r),i=k(k({},n),{},{styles:o});!function(e,t){var n=ee.get(e);if(!n||!X(document,n)){var r=oe("",t),o=r.parentNode;ee.set(e,o),e.removeChild(r)}}(r,i);var a=ie(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=oe(e,i);return u.setAttribute(te(i),t),u}function ce(e,n,r){var o=t.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=e(),o.current.condition=n),o.current.value}var se={},ue=[];function de(e,t){}function fe(e,t){}function pe(e,t,n){t||se[n]||(e(!1,n),se[n]=!0)}function he(e,t){pe(de,e,t)}function ve(e,t){pe(fe,e,t)}he.preMessage=function(e){ue.push(e)},he.resetWarned=function(){se={}},he.noteOnce=ve;var ge=he;var me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(ge(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===v(t)&&"object"===v(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};function be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function we(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var xe="%";function ke(e){return e.join(xe)}var Ce=function(){function e(t){be(this,e),w(this,"instanceId",void 0),w(this,"cache",new Map),this.instanceId=t}return we(e,[{key:"get",value:function(e){return this.opGet(ke(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(ke(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}(),Se=Ce,Ee="data-token-hash",Oe="data-css-hash",_e="__cssinjs_instance__";function $e(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Oe,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[_e]=t[_e]||e,t[_e]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Oe,"]"))).forEach((function(t){var n,o=t.getAttribute(Oe);r[o]?t[_e]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Se(e)}var je=t.createContext({hashPriority:"low",cache:$e(),defaultCache:!0}),Ne=je;var Ie=function(){function e(){be(this,e),w(this,"cache",void 0),w(this,"keys",void 0),w(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return we(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||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 r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=V(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=V(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.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,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{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}();w(Ie,"MAX_CACHE_SIZE",20),w(Ie,"MAX_CACHE_OFFSET",5);var Pe=0,Re=function(){function e(t){be(this,e),w(this,"derivatives",void 0),w(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Pe,0===t.length&&t.length,Pe+=1}return we(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Me=new Ie;function Ae(e){var t=Array.isArray(e)?e:[e];return Me.has(t)||Me.set(t,new Re(t)),Me.get(t)}var Te=new WeakMap,qe={};var Le=new WeakMap;function De(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Le.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof Re?n+=o.id:o&&"object"===v(o)?n+=De(o,t):n+=o})),t&&(n=K(n)),Le.set(e,n)),n}function ze(e,t){return K("".concat(t,"_").concat(De(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Be=G();function Fe(e){return"number"==typeof e?"".concat(e,"px"):e}function He(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=k(k({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(w(r={},Ee,t),w(r,Oe,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var We=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()},Ve=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=V(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ue=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=V(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=We(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,Ve(r,t,{scope:null==n?void 0:n.scope})]},Ye=G()?t.useLayoutEffect:t.useEffect,Ke=function(e,n){var r=t.useRef(!0);Ye((function(){return e(r.current)}),n),Ye((function(){return r.current=!1,function(){r.current=!0}}),[])},Ge=function(e,t){Ke((function(t){if(!t)return e()}),t)},Xe=Ke,Qe=k({},n).useInsertionEffect,Ze=Qe?function(e,t,n){return Qe((function(){return e(),t()}),n)}:function(e,n,r){t.useMemo(e,r),Xe((function(){return n(!0)}),r)},Je=void 0!==k({},n).useInsertionEffect?function(e){var n=[],r=!1;return t.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),e),function(e){r||n.push(e)}}:function(){return function(e){e()}};var et=function(){return!1};function tt(e,n,r,o,i){var a=t.useContext(Ne).cache,l=ke([e].concat(Y(n))),c=Je([l]),s=(et(),function(e){a.opUpdate(l,(function(t){var n=V(t||[void 0,void 0],2),o=n[0];var i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))});t.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return Ze((function(){null==i||i(u)}),(function(e){return s((function(t){var n=V(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=V(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),u}var nt={},rt="css",ot=new Map;var it=0;function at(e,t){ot.set(e,(ot.get(e)||0)-1);var n=Array.from(ot.keys()),r=n.filter((function(e){return(ot.get(e)||0)<=0}));n.length-r.length>it&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ee,'="').concat(e,'"]')).forEach((function(e){var n;e[_e]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ot.delete(e)}))}var lt=function(e,t,n,r){var o=k(k({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},ct="token";function st(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,t.useContext)(Ne),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?nt:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var n=Te,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(qe)||n.set(qe,e()),n.get(qe)}((function(){return Object.assign.apply(Object,[{}].concat(Y(n)))}),n),v=De(h),g=De(u),m=p?De(p):"",b=tt(ct,[c,e.id,v,g,m],(function(){var t,n=f?f(h,u,e):lt(h,u,e,d),r=k({},n),o="";if(p){var i=V(Ue(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=ze(n,c);n._tokenKey=a,r._tokenKey=ze(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){ot.set(e,(ot.get(e)||0)+1)}(l);var s="".concat(rt,"-").concat(K(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){at(e[0]._themeKey,i)}),(function(e){var t=V(e,4),n=t[0],r=t[3];if(p&&r){var o=le(r,K("css-variables-".concat(n._themeKey)),{mark:Oe,prepend:"queue",attachTo:a,priority:-999});o[_e]=i,o.setAttribute(Ee,n._themeKey)}}));return b}function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ut.apply(this,arguments)}var dt={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},ft="comm",pt="rule",ht="decl",vt="@import",gt="@keyframes",mt="@layer",bt=Math.abs,yt=String.fromCharCode;Object.assign;function wt(e){return e.trim()}function xt(e,t,n){return e.replace(t,n)}function kt(e,t,n){return e.indexOf(t,n)}function Ct(e,t){return 0|e.charCodeAt(t)}function St(e,t,n){return e.slice(t,n)}function Et(e){return e.length}function Ot(e,t){return t.push(e),e}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $t(e,t,n,r){switch(e.type){case mt:if(e.children.length)break;case vt:case ht:return e.return=e.return||e.value;case ft:return"";case gt:return e.return=e.value+"{"+_t(e.children,r)+"}";case pt:if(!Et(e.value=e.props.join(",")))return""}return Et(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}var jt=1,Nt=1,It=0,Pt=0,Rt=0,Mt="";function At(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jt,column:Nt,length:a,return:"",siblings:l}}function Tt(){return Rt=Pt>0?Ct(Mt,--Pt):0,Nt--,10===Rt&&(Nt=1,jt--),Rt}function qt(){return Rt=Pt<It?Ct(Mt,Pt++):0,Nt++,10===Rt&&(Nt=1,jt++),Rt}function Lt(){return Ct(Mt,Pt)}function Dt(){return Pt}function zt(e,t){return St(Mt,e,t)}function Bt(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 Ft(e){return jt=Nt=1,It=Et(Mt=e),Pt=0,[]}function Ht(e){return Mt="",e}function Wt(e){return wt(zt(Pt-1,Yt(91===e?e+2:40===e?e+1:e)))}function Vt(e){for(;(Rt=Lt())&&Rt<33;)qt();return Bt(e)>2||Bt(Rt)>3?"":" "}function Ut(e,t){for(;--t&&qt()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return zt(e,Dt()+(t<6&&32==Lt()&&32==qt()))}function Yt(e){for(;qt();)switch(Rt){case e:return Pt;case 34:case 39:34!==e&&39!==e&&Yt(Rt);break;case 40:41===e&&Yt(e);break;case 92:qt()}return Pt}function Kt(e,t){for(;qt()&&e+Rt!==57&&(e+Rt!==84||47!==Lt()););return"/*"+zt(t,Pt-1)+"*"+yt(47===e?e:qt())}function Gt(e){for(;!Bt(Lt());)qt();return zt(e,Pt)}function Xt(e){return Ht(Qt("",null,null,null,[""],e=Ft(e),0,[0],e))}function Qt(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,h=0,v=1,g=1,m=1,b=0,y="",w=o,x=i,k=r,C=y;g;)switch(h=b,b=qt()){case 40:if(108!=h&&58==Ct(C,d-1)){-1!=kt(C+=xt(Wt(b),"&","&\f"),"&\f",bt(s?l[s-1]:0))&&(m=-1);break}case 34:case 39:case 91:C+=Wt(b);break;case 9:case 10:case 13:case 32:C+=Vt(h);break;case 92:C+=Ut(Dt()-1,7);continue;case 47:switch(Lt()){case 42:case 47:Ot(Jt(Kt(qt(),Dt()),t,n,c),c);break;default:C+="/"}break;case 123*v:l[s++]=Et(C)*m;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==m&&(C=xt(C,/\f/g,"")),p>0&&Et(C)-d&&Ot(p>32?en(C+";",r,n,d-1,c):en(xt(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(Ot(k=Zt(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)Qt(C,t,k,k,w,i,d,l,x);else switch(99===f&&110===Ct(C,3)?100:f){case 100:case 108:case 109:case 115:Qt(e,k,k,r&&Ot(Zt(e,k,k,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Qt(C,k,k,k,[""],x,0,l,x)}}s=u=p=0,v=m=1,y=C="",d=a;break;case 58:d=1+Et(C),p=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==Tt())continue;switch(C+=yt(b),b*v){case 38:m=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(Et(C)-1)*m,m=1;break;case 64:45===Lt()&&(C+=Wt(qt())),f=Lt(),u=d=Et(y=C+=Gt(Dt())),b++;break;case 45:45===h&&2==Et(C)&&(v=0)}}return i}function Zt(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),v=0,g=0,m=0;v<r;++v)for(var b=0,y=St(e,f+1,f=bt(g=a[v])),w=e;b<h;++b)(w=wt(g>0?p[b]+" "+y:xt(y,/&\f/g,p[b])))&&(c[m++]=w);return At(e,t,n,0===o?pt:l,c,s,u,d)}function Jt(e,t,n,r){return At(e,t,n,ft,yt(Rt),St(e,2,-2),0,r)}function en(e,t,n,r,o){return At(e,t,n,ht,St(e,0,r),St(e,r+1,-1),r,o)}var tn,nn="data-ant-cssinjs-cache-path",rn="_FILE_STYLE__";var on=!0;function an(e){return function(){if(!tn&&(tn={},G())){var e=document.createElement("div");e.className=nn,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=V(e.split(":"),2),n=t[0],r=t[1];tn[n]=r}));var n,r=document.querySelector("style[".concat(nn,"]"));r&&(on=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!tn[e]}var ln="_multi_value_";function cn(e){return _t(Xt(e),$t).replace(/\{%%%\:[^;];}/g,";")}var sn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var r=t.getName(l);if(!p[r]){var o=V(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=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]);return g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==v(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===v(e)&&e&&("_skip_check_"in e||ln in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;dt[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===v(r)&&null!=r&&r[ln]&&Array.isArray(d)?d.forEach((function(e){C(t,e)})):C(t,d)}else{var g=!1,m=t.trim(),b=!1;(o||i)&&l?m.startsWith("@")?g=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Y(n.slice(1))).join(" ")})).join(",")}(t,l,s):!o||l||"&"!==m&&""!==m||(m="",b=!0);var y=V(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Y(a),[m])}),2),w=y[0],x=y[1];p=k(k({},p),x),f+="".concat(m).concat(w)}}))}})),o?c&&(f="@layer ".concat(c.name," {").concat(f,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function un(e,t){return K("".concat(e.join("%")).concat(t))}function dn(){return null}var fn="style";function pn(e,n){var r=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=t.useContext(Ne),f=d.autoClear,p=(d.mock,d.defaultCache),h=d.hashPriority,v=d.container,g=d.ssrInline,m=d.transformers,b=d.linters,y=d.cache,x=d.layer,C=r._tokenKey,S=[C];x&&S.push("layer"),S.push.apply(S,Y(o));var E=Be;var O=tt(fn,S,(function(){var e=S.join("|");if(an(e)){var t=function(e){var t=tn[e],n=null;if(t&&G())if(on)n=rn;else{var r=document.querySelector("style[".concat(Oe,'="').concat(tn[e],'"]'));r?n=r.innerHTML:delete tn[e]}return[n,t]}(e),r=V(t,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=n(),f=V(sn(d,{hashId:i,hashPriority:h,layer:x?a:void 0,path:o.join("-"),transformers:m,linters:b}),2),p=f[0],v=f[1],g=cn(p),y=un(S,g);return[g,C,y,v,c,u]}),(function(e,t){var n=V(e,3)[2];(t||f)&&Be&&ae(n,{mark:Oe})}),(function(e){var t=V(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==rn){var i={mark:Oe,prepend:!x&&"queue",attachTo:v,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){le(cn(o[e]),"_layer-".concat(e),k(k({},i),{},{prepend:!0}))}));var d=le(n,r,i);d[_e]=y.instanceId,d.setAttribute(Ee,C),s.forEach((function(e){le(cn(o[e]),"_effect-".concat(e),i)}))}})),_=V(O,3),$=_[0],j=_[1],N=_[2];return function(e){var n,r;g&&!E&&p?n=t.createElement("style",ut({},(w(r={},Ee,j),w(r,Oe,N),r),{dangerouslySetInnerHTML:{__html:$}})):n=t.createElement(dn,null);return t.createElement(t.Fragment,null,n,e)}}var hn,vn="cssVar",gn=function(e,n){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,t.useContext)(Ne),d=u.cache.instanceId,f=u.container,p=l._tokenKey,h=[].concat(Y(e.path),[r,s,p]),v=tt(vn,h,(function(){var e=n(),t=V(Ue(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,un(h,c),r]}),(function(e){var t=V(e,3)[2];Be&&ae(t,{mark:Oe})}),(function(e){var t=V(e,3),n=t[1],o=t[2];if(n){var i=le(n,o,{mark:Oe,prepend:"queue",attachTo:f,priority:-999});i[_e]=d,i.setAttribute(Ee,r)}}));return v};w(hn={},fn,(function(e,t,n){var r=V(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=He(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=He(cn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),w(hn,ct,(function(e,t,n){var r=V(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,He(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),w(hn,vn,(function(e,t,n){var r=V(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,He(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var mn=function(){function e(t,n){be(this,e),w(this,"name",void 0),w(this,"style",void 0),w(this,"_keyframe",!0),this.name=t,this.style=n}return we(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}(),bn=mn;function yn(e){return e.notSplit=!0,e}yn(["borderTop","borderBottom"]),yn(["borderTop"]),yn(["borderBottom"]),yn(["borderLeft","borderRight"]),yn(["borderLeft"]),yn(["borderRight"]);var wn=(0,t.createContext)({});function xn(e){return B(e)||U(e)||H(e)||W()}function kn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Cn(e,t,n,r){if(!t.length)return n;var o,i=xn(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Y(e):k({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=Cn(o[a],l,n,r),o}function Sn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!kn(e,t.slice(0,-1))?e:Cn(e,t,n,r)}function En(e){return Array.isArray(e)?[]:{}}var On="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function _n(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=En(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=kn(e,n),c=Array.isArray(l);if(c||"object"===v(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=kn(r,n);c?r=Sn(r,n,[]):s&&"object"===v(s)||(r=Sn(r,n,En(l))),On(l).forEach((function(e){t([].concat(Y(n),[e]),a)}))}}else r=Sn(r,n,l)}([])})),r}function $n(){}const jn=t.createContext({}),Nn=()=>{const e=()=>{};return e.deprecated=$n,e};var In=(0,t.createContext)(void 0),Pn={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"},Rn={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"};var Mn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var An={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"]},Rn),timePickerLocale:Object.assign({},Mn)};const Tn="${label} is not a valid ${type}";var qn={locale:"en",Pagination:Pn,DatePicker:An,TimePicker:Mn,Calendar:An,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Tn,method:Tn,array:Tn,object:Tn,number:Tn,date:Tn,boolean:Tn,integer:Tn,float:Tn,regexp:Tn,email:Tn,url:Tn,hex:Tn},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 Ln=Object.assign({},qn.Modal),Dn=[];const zn=()=>Dn.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),qn.Modal);function Bn(){return Ln}var Fn=(0,t.createContext)(void 0);var Hn=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;t.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Dn.push(t),Ln=zn(),()=>{Dn=Dn.filter((e=>e!==t)),Ln=zn()}}Ln=Object.assign({},qn.Modal)}(n&&n.Modal);return e}),[n]);const i=t.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return t.createElement(Fn.Provider,{value:i},r)};function Wn(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 Vn(e){return Math.min(1,Math.max(0,e))}function Un(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Yn(e){return e<=1?"".concat(100*Number(e),"%"):e}function Kn(e){return 1===e.length?"0"+e:String(e)}function Gn(e,t,n){e=Wn(e,255),t=Wn(t,255),n=Wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Xn(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 Qn(e,t,n){e=Wn(e,255),t=Wn(t,255),n=Wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){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:c,v:a}}function Zn(e,t,n,r){var o=[Kn(Math.round(e).toString(16)),Kn(Math.round(t).toString(16)),Kn(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Jn(e){return Math.round(255*parseFloat(e)).toString(16)}function er(e){return tr(e)/255}function tr(e){return parseInt(e,16)}var nr={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 rr(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(nr[e])e=nr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=lr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=lr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=lr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=lr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=lr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=lr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=lr.hex8.exec(e),n)return{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),a:er(n[4]),format:t?"name":"hex8"};if(n=lr.hex6.exec(e),n)return{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),format:t?"name":"hex"};if(n=lr.hex4.exec(e),n)return{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),a:er(n[4]+n[4]),format:t?"name":"hex8"};if(n=lr.hex3.exec(e),n)return{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(cr(e.r)&&cr(e.g)&&cr(e.b)?(t=function(e,t,n){return{r:255*Wn(e,255),g:255*Wn(t,255),b:255*Wn(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):cr(e.h)&&cr(e.s)&&cr(e.v)?(r=Yn(e.s),o=Yn(e.v),t=function(e,t,n){e=6*Wn(e,360),t=Wn(t,100),n=Wn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,r,o),a=!0,l="hsv"):cr(e.h)&&cr(e.s)&&cr(e.l)&&(r=Yn(e.s),i=Yn(e.l),t=function(e,t,n){var r,o,i;if(e=Wn(e,360),t=Wn(t,100),n=Wn(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Xn(l,a,e+1/3),o=Xn(l,a,e),i=Xn(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Un(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var or="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ir="[\\s|\\(]+(".concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")\\s*\\)?"),ar="[\\s|\\(]+(".concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")\\s*\\)?"),lr={CSS_UNIT:new RegExp(or),rgb:new RegExp("rgb"+ir),rgba:new RegExp("rgba"+ar),hsl:new RegExp("hsl"+ir),hsla:new RegExp("hsla"+ar),hsv:new RegExp("hsv"+ir),hsva:new RegExp("hsva"+ar),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 cr(e){return Boolean(lr.CSS_UNIT.exec(String(e)))}var sr=2,ur=.16,dr=.05,fr=.05,pr=.15,hr=5,vr=4,gr=[{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 mr(e){var t=Qn(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function br(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Zn(t,n,r,!1))}function yr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-sr*t:Math.round(e.h)+sr*t:n?Math.round(e.h)+sr*t:Math.round(e.h)-sr*t)<0?r+=360:r>=360&&(r-=360),r}function wr(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-ur*t:t===vr?e.s+ur:e.s+dr*t)>1&&(r=1),n&&t===hr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function xr(e,t,n){var r;return(r=n?e.v+fr*t:e.v-pr*t)>1&&(r=1),Number(r.toFixed(2))}function kr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=rr(e),o=hr;o>0;o-=1){var i=mr(r),a=br(rr({h:yr(i,o,!0),s:wr(i,o,!0),v:xr(i,o,!0)}));n.push(a)}n.push(br(r));for(var l=1;l<=vr;l+=1){var c=mr(r),s=br(rr({h:yr(c,l),s:wr(c,l),v:xr(c,l)}));n.push(s)}return"dark"===t.theme?gr.map((function(e){var r=e.index,o=e.opacity,i=br(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(rr(t.backgroundColor||"#141414"),rr(n[r]),100*o));return i})):n}var Cr={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"},Sr={},Er={};Object.keys(Cr).forEach((function(e){Sr[e]=kr(Cr[e]),Sr[e].primary=Sr[e][5],Er[e]=kr(Cr[e],{theme:"dark",backgroundColor:"#141414"}),Er[e].primary=Er[e][5]}));Sr.red,Sr.volcano;var Or=Sr.gold,_r=(Sr.orange,Sr.yellow,Sr.lime,Sr.green,Sr.cyan,Sr.blue);Sr.geekblue,Sr.purple,Sr.magenta,Sr.grey,Sr.grey;const $r={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"};var jr=Object.assign(Object.assign({},$r),{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}),Nr=function(){function e(t,n){var r;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 o=rr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.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=o.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,r=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*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Un(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=Qn(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=Qn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Gn(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=Gn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Zn(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,r,o){var i=[Kn(Math.round(e).toString(16)),Kn(Math.round(t).toString(16)),Kn(Math.round(n).toString(16)),Kn(Jn(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.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*Wn(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*Wn(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="#"+Zn(this.r,this.g,this.b,!1),t=0,n=Object.entries(nr);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!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=Vn(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=Vn(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=Vn(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=Vn(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));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(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%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(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var Ir=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var Pr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function Rr(e){return(e+8)/e}var Mr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Rr(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Ar=(e,t)=>new Nr(e).setAlpha(t).toRgbString(),Tr=(e,t)=>new Nr(e).darken(t).toHexString(),qr=e=>{const t=kr(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]}},Lr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ar(r,.88),colorTextSecondary:Ar(r,.65),colorTextTertiary:Ar(r,.45),colorTextQuaternary:Ar(r,.25),colorFill:Ar(r,.15),colorFillSecondary:Ar(r,.06),colorFillTertiary:Ar(r,.04),colorFillQuaternary:Ar(r,.02),colorBgLayout:Tr(n,4),colorBgContainer:Tr(n,0),colorBgElevated:Tr(n,0),colorBgSpotlight:Ar(r,.85),colorBgBlur:"transparent",colorBorder:Tr(n,15),colorBorderSecondary:Tr(n,6)}};const Dr=Ae((function(e){const t=Object.keys($r).map((t=>{const n=kr(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=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:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),h=n(a),v=n(l),g=r(s,u),m=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],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg: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:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new Nr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:qr,generateNeutralColorPalettes:Lr})),Mr(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)),Pr(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},Ir(r))}(e))})),zr={token:jr,override:{override:jr},hashed:!0},Br=t.createContext(zr),Fr=`-ant-${Date.now()}-${Math.random()}`;function Hr(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Nr(e),i=kr(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Nr(t.primaryColor),i=kr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Nr(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const i=Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`));return`\n :root {\n ${i.join("\n")}\n }\n `.trim()}(e,t);G()&&le(n,`${Fr}-dynamic-theme`)}const Wr=t.createContext(!1),Vr=e=>{let{children:n,disabled:r}=e;const o=t.useContext(Wr);return t.createElement(Wr.Provider,{value:null!=r?r:o},n)};var Ur=Wr;const Yr=t.createContext(void 0),Kr=e=>{let{children:n,size:r}=e;const o=t.useContext(Yr);return t.createElement(Yr.Provider,{value:r||o},n)};var Gr=Yr;var Xr=function(){return{componentDisabled:(0,t.useContext)(Ur),componentSize:(0,t.useContext)(Gr)}};const Qr=Object.assign({},n),{useId:Zr}=Qr;var Jr=void 0===Zr?()=>"":Zr;var eo=o(6942),to=o.n(eo);function no(e){return e instanceof HTMLElement||e instanceof SVGElement}function ro(e){var n,r=function(e){return e&&"object"===v(e)&&no(e.nativeElement)?e.nativeElement:no(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=S.findDOMNode)||void 0===n?void 0:n.call(S,e):null)}var oo=o(6351),io=function(e,t){"function"==typeof e?e(t):"object"===v(e)&&e&&"current"in e&&(e.current=t)},ao=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){io(t,e)}))}},lo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ce((function(){return ao.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},co=function(e){var t,n,r=(0,oo.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===oo.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===oo.ForwardRef)};function so(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uo=["children"],fo=t.createContext({});function po(e){var n=e.children,r=so(e,uo);return t.createElement(fo.Provider,{value:r},n)}function ho(e,t){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ho(e,t)}function vo(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&&ho(e,t)}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(e)}function mo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mo=function(){return!!e})()}function bo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yo(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bo(e)}function wo(e){var t=mo();return function(){var n,r=go(e);if(t){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}var xo=function(e){vo(n,e);var t=wo(n);function n(){return be(this,n),t.apply(this,arguments)}return we(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),ko=xo;function Co(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function So(e){var n=t.useRef(!1),r=V(t.useState(e),2),o=r[0],i=r[1];return t.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function Eo(e){return void 0!==e}function Oo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=V(So((function(){return Eo(o)?o:Eo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Co(i),p=V(So([u]),2),h=p[0],v=p[1];return Ge((function(){var e=h[0];c!==e&&f(c,e)}),[h]),Ge((function(){Eo(o)||s(o)}),[o]),[d,Co((function(e,t){s(e,t),v([u],t)}))]}var _o="none",$o="appear",jo="enter",No="leave",Io="none",Po="prepare",Ro="start",Mo="active",Ao="end",To="prepared";function qo(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 Lo=function(e,t){var n={animationend:qo("Animation","AnimationEnd"),transitionend:qo("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(G(),"undefined"!=typeof window?window:{}),Do={};if(G()){var zo=document.createElement("div");Do=zo.style}var Bo={};function Fo(e){if(Bo[e])return Bo[e];var t=Lo[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Do)return Bo[e]=t[i],Bo[e]}return""}var Ho=Fo("animationend"),Wo=Fo("transitionend"),Vo=!(!Ho||!Wo),Uo=Ho||"animationend",Yo=Wo||"transitionend";function Ko(e,t){if(!e)return null;if("object"===v(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Go=function(e){var n=(0,t.useRef)();function r(t){t&&(t.removeEventListener(Yo,e),t.removeEventListener(Uo,e))}return t.useEffect((function(){return function(){r(n.current)}}),[]),[function(t){n.current&&n.current!==t&&r(n.current),t&&t!==n.current&&(t.addEventListener(Yo,e),t.addEventListener(Uo,e),n.current=t)},r]},Xo=G()?t.useLayoutEffect:t.useEffect,Qo=function(e){return+setTimeout(e,16)},Zo=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Qo=function(e){return window.requestAnimationFrame(e)},Zo=function(e){return window.cancelAnimationFrame(e)});var Jo=0,ei=new Map;function ti(e){ei.delete(e)}var ni=function(e){var t=Jo+=1;return function n(r){if(0===r)ti(t),e();else{var o=Qo((function(){n(r-1)}));ei.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};ni.cancel=function(e){var t=ei.get(e);return ti(e),Zo(t)};var ri=ni,oi=[Po,Ro,Mo,Ao],ii=[Po,To],ai=!1,li=!0;function ci(e){return e===Mo||e===Ao}var si=function(e,n,r){var o=V(So(Io),2),i=o[0],a=o[1],l=function(){var e=t.useRef(null);function n(){ri.cancel(e.current)}return t.useEffect((function(){return function(){n()}}),[]),[function t(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=ri((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):t(r,o-1)}));e.current=i},n]}(),c=V(l,2),s=c[0],u=c[1];var d=n?ii:oi;return Xo((function(){if(i!==Io&&i!==Ao){var e=d.indexOf(i),t=d[e+1],n=r(i);n===ai?a(t,!0):t&&s((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[e,i]),t.useEffect((function(){return function(){u()}}),[]),[function(){a(Po,!0)},i]};var ui=function(e){var n=e;"object"===v(e)&&(n=e.transitionSupport);var r=t.forwardRef((function(e,r){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,s=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(e,t.useContext(fo).motion),h=(0,t.useRef)(),v=(0,t.useRef)();var g=function(e,n,r,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,v=o.onLeavePrepare,g=o.onAppearStart,m=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,x=o.onEnterActive,C=o.onLeaveActive,S=o.onAppearEnd,E=o.onEnterEnd,O=o.onLeaveEnd,_=o.onVisibleChanged,$=V(So(),2),j=$[0],N=$[1],I=V(So(_o),2),P=I[0],R=I[1],M=V(So(null),2),A=M[0],T=M[1],q=(0,t.useRef)(!1),L=(0,t.useRef)(null);function D(){return r()}var z=(0,t.useRef)(!1);function B(){R(_o,!0),T(null,!0)}var F=Co((function(e){if(P!==_o){var t=D();if(!e||e.deadline||e.target===t){var n,r=z.current;P===$o&&r?n=null==S?void 0:S(t,e):P===jo&&r?n=null==E?void 0:E(t,e):P===No&&r&&(n=null==O?void 0:O(t,e)),r&&!1!==n&&B()}}})),H=V(Go(F),1)[0],W=function(e){switch(e){case $o:return w(w(w({},Po,p),Ro,g),Mo,y);case jo:return w(w(w({},Po,h),Ro,m),Mo,x);case No:return w(w(w({},Po,v),Ro,b),Mo,C);default:return{}}},U=t.useMemo((function(){return W(P)}),[P]),Y=V(si(P,!e,(function(e){if(e===Po){var t=U[Po];return t?t(D()):ai}var n;return G in U&&T((null===(n=U[G])||void 0===n?void 0:n.call(U,D(),null))||null),G===Mo&&P!==_o&&(H(D()),d>0&&(clearTimeout(L.current),L.current=setTimeout((function(){F({deadline:!0})}),d))),G===To&&B(),li})),2),K=Y[0],G=Y[1],X=ci(G);z.current=X,Xo((function(){N(n);var t,r=q.current;q.current=!0,!r&&n&&c&&(t=$o),r&&n&&a&&(t=jo),(r&&!n&&u||!r&&f&&!n&&u)&&(t=No);var o=W(t);t&&(e||o[Po])?(R(t),K()):R(_o)}),[n]),(0,t.useEffect)((function(){(P===$o&&!c||P===jo&&!a||P===No&&!u)&&R(_o)}),[c,a,u]),(0,t.useEffect)((function(){return function(){q.current=!1,clearTimeout(L.current)}}),[]);var Q=t.useRef(!1);(0,t.useEffect)((function(){j&&(Q.current=!0),void 0!==j&&P===_o&&((Q.current||j)&&(null==_||_(j)),Q.current=!0)}),[j,P]);var Z=A;return U[Po]&&G===Ro&&(Z=k({transition:"none"},Z)),[P,G,Z,null!=j?j:n]}(p,i,(function(){try{return h.current instanceof HTMLElement?h.current:ro(v.current)}catch(e){return null}}),e),m=V(g,4),b=m[0],y=m[1],x=m[2],C=m[3],S=t.useRef(C);C&&(S.current=!0);var E,O=t.useCallback((function(e){h.current=e,io(r,e)}),[r]),_=k(k({},f),{},{visible:i});if(s)if(b===_o)E=C?s(k({},_),O):!l&&S.current&&d?s(k(k({},_),{},{className:d}),O):c||!l&&!d?s(k(k({},_),{},{style:{display:"none"}}),O):null;else{var $;y===Po?$="prepare":ci(y)?$="active":y===Ro&&($="start");var j=Ko(u,"".concat(b,"-").concat($));E=s(k(k({},_),{},{className:to()(Ko(u,b),w(w({},j,j&&$),u,"string"==typeof u)),style:x}),O)}else E=null;t.isValidElement(E)&&co(E)&&(E.ref||(E=t.cloneElement(E,{ref:O})));return t.createElement(ko,{ref:v},E)}));return r.displayName="CSSMotion",r}(Vo),di="add",fi="keep",pi="remove",hi="removed";function vi(e){var t;return k(k({},t=e&&"object"===v(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function gi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(vi)}var mi=["component","children","onVisibleChanged","onAllRemoved"],bi=["status"],yi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var wi=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ui,r=function(e){vo(o,e);var r=wo(o);function o(){var e;be(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return w(bo(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),w(bo(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:k(k({},e),{},{status:hi})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==hi})).length})),e}return we(o,[{key:"render",value:function(){var e=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=so(o,mi),u=i||t.Fragment,d={};return yi.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,t.createElement(u,s,r.map((function(r,o){var i=r.status,s=so(r,bi),u=i===di||i===fi;return t.createElement(n,ut({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(t){(null==l||l(t,{key:s.key}),t)||0===e.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(k(k({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=gi(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=[],r=0,o=t.length,i=gi(e),a=gi(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return k(k({},e),{},{status:di})}))),r=i),n.push(k(k({},l),{},{status:fi})),r+=1,t=!0;break}}t||n.push(k(k({},e),{},{status:pi}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return k(k({},e),{},{status:di})}))));var l={};n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1}));var c=Object.keys(l).filter((function(e){return l[e]>1}));return c.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==pi})),n.forEach((function(t){t.key===e&&(t.status=fi)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==hi||e.status!==pi}))}}}]),o}(t.Component);return w(r,"defaultProps",{component:"div"}),r}(Vo),xi=ui,ki="5.17.3";function Ci(e){return e>=0&&e<=255}var Si=function(e,t){const{r:n,g:r,b:o,a:i}=new Nr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Nr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(Ci(t)&&Ci(i)&&Ci(s))return new Nr({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Nr({r:n,g:r,b:o,a:1}).toRgbString()},Ei=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Oi(e){const{override:t}=e,n=Ei(e,["override"]),r=Object.assign({},t);Object.keys(jr).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Si(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Si(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Si(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Si(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Nr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Nr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Nr("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)"}),r)}var _i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $i={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},ji={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},Ni={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},Ii=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=_i(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Oi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=_i(n,["theme"]);let i=o;r&&(i=Ii(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Pi(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(Br),a=`${ki}-${n||""}`,l=r||Dr,[c,s,u]=st(l,[jr,e],{salt:a,override:o,getComputedToken:Ii,formatToken:Oi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:$i,ignore:ji,preserve:Ni}});return[l,u,n?s:"",c,i]}function Ri(e){const{children:n}=e,[,r]=Pi(),{motion:o}=r,i=t.useRef(!1);return i.current=i.current||!1===o,i.current?t.createElement(po,{motion:o},n):n}var Mi=()=>null;const Ai={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ti=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}},qi=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"}}}),Li=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},Di=e=>({outline:`${Fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zi=e=>({"&:focus-visible":Object.assign({},Di(e))});var Bi=(e,t)=>{const[n,r]=Pi();return pn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${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"}})}]))},Fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hi=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Wi,Vi,Ui,Yi;function Ki(){return Wi||"ant"}function Gi(){return Vi||L}const Xi=()=>({getPrefixCls:(e,t)=>t||(e?`${Ki()}-${e}`:Ki()),getIconPrefixCls:Gi,getRootPrefixCls:()=>Wi||Ki(),getTheme:()=>Ui,holderRender:Yi}),Qi=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:k,spin:C,calendar:S,carousel:E,cascader:O,collapse:_,typography:$,checkbox:j,descriptions:N,divider:I,drawer:P,skeleton:R,steps:M,image:A,layout:T,list:q,mentions:z,modal:B,progress:F,result:H,slider:W,breadcrumb:V,menu:U,pagination:Y,input:K,textArea:G,empty:X,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:se,timePicker:ue,upload:de,notification:fe,tree:pe,colorPicker:he,datePicker:ve,rangePicker:ge,flex:be,wave:ye,dropdown:we,warning:xe,tour:ke,floatButtonGroup:Ce}=e,Se=t.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||m.getPrefixCls("");return t?`${o}-${t}`:o}),[m.getPrefixCls,e.prefixCls]),Ee=b||m.iconPrefixCls||L,Oe=r||m.csp;Bi(Ee,Oe);const _e=function(e,t,n){var r;Nn("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},zr),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:zr.hashed,cssVar:null==t?void 0:t.cssVar}),a=Jr();return ce((()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!me(e,r,!0)}))))}(y,m.theme,{prefixCls:Se("")});const $e={csp:Oe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=h?h:p,popupOverflow:v,getPrefixCls:Se,iconPrefixCls:Ee,theme:_e,segmented:x,statistic:k,spin:C,calendar:S,carousel:E,cascader:O,collapse:_,typography:$,checkbox:j,descriptions:N,divider:I,drawer:P,skeleton:R,steps:M,image:A,input:K,textArea:G,layout:T,list:q,mentions:z,modal:B,progress:F,result:H,slider:W,breadcrumb:V,menu:U,pagination:Y,empty:X,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:se,timePicker:ue,upload:de,notification:fe,tree:pe,colorPicker:he,datePicker:ve,rangePicker:ge,flex:be,wave:ye,dropdown:we,warning:xe,tour:ke,floatButtonGroup:Ce};const je=Object.assign({},m);Object.keys($e).forEach((e=>{void 0!==$e[e]&&(je[e]=$e[e])})),Hi.forEach((t=>{const n=e[t];n&&(je[t]=n)})),void 0!==o&&(je.button=Object.assign({autoInsertSpace:o},je.button));const Ne=ce((()=>je),je,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ie=t.useMemo((()=>({prefixCls:Ee,csp:Oe})),[Ee,Oe]);let Pe=t.createElement(t.Fragment,null,t.createElement(Mi,{dropdownMatchSelectWidth:p}),n);const Re=t.useMemo((()=>{var e,t,n,r;return _n((null===(e=qn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ne.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ne.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ne,null==l?void 0:l.validateMessages]);Object.keys(Re).length>0&&(Pe=t.createElement(In.Provider,{value:Re},Pe)),c&&(Pe=t.createElement(Hn,{locale:c,_ANT_MARK__:"internalMark"},Pe)),(Ee||Oe)&&(Pe=t.createElement(wn.Provider,{value:Ie},Pe)),s&&(Pe=t.createElement(Kr,{size:s},Pe)),Pe=t.createElement(Ri,null,Pe);const Me=t.useMemo((()=>{const e=_e||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Fi(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Ae(t):Dr,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Ae(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},jr),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[_e]);return y&&(Pe=t.createElement(Br.Provider,{value:Me},Pe)),Ne.warning&&(Pe=t.createElement(jn.Provider,{value:Ne.warning},Pe)),void 0!==w&&(Pe=t.createElement(Vr,{disabled:w},Pe)),t.createElement(D.Provider,{value:Ne},Pe)},Zi=e=>{const n=t.useContext(D),r=t.useContext(Fn);return t.createElement(Qi,Object.assign({parentContext:n,legacyLocale:r},e))};Zi.ConfigContext=D,Zi.SizeContext=Gr,Zi.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Wi=t),void 0!==n&&(Vi=n),"holderRender"in e&&(Yi=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?Ui=r:Hr(Ki(),r))},Zi.useConfig=Xr,Object.defineProperty(Zi,"SizeContext",{get:()=>Gr});var Ji=Zi,ea={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 ta(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function na(e){return function(e){return ta(e)instanceof ShadowRoot}(e)?ta(e):null}function ra(e){return"object"===v(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===v(e.icon)||"function"==typeof e.icon)}function oa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=r;return t}),{})}function ia(e,n,r){return r?t.createElement(e.tag,k(k({key:n},oa(e.attrs)),r),(e.children||[]).map((function(t,r){return ia(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,k({key:n},oa(e.attrs)),(e.children||[]).map((function(t,r){return ia(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function aa(e){return kr(e)[0]}function la(e){return e?Array.isArray(e)?e:[e]:[]}var ca=["icon","className","onClick","style","primaryColor","secondaryColor"],sa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var ua=function(e){var n,r,o,i,a,l=e.icon,c=e.className,s=e.onClick,u=e.style,d=e.primaryColor,f=e.secondaryColor,p=so(e,ca),h=t.useRef(),v=sa;if(d&&(v={primaryColor:d,secondaryColor:f||aa(d)}),n=h,r=(0,t.useContext)(wn),o=r.csp,i=r.prefixCls,a="\n.anticon {\n display: inline-flex;\n align-items: center;\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",i&&(a=a.replace(/anticon/g,i)),(0,t.useEffect)((function(){var e=na(n.current);le(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),function(e,t){ge(e,"[@ant-design/icons] ".concat(t))}(ra(l),"icon should be icon definiton, but got ".concat(l)),!ra(l))return null;var g=l;return g&&"function"==typeof g.icon&&(g=k(k({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),ia(g.icon,"svg-".concat(g.name),k(k({className:c,onClick:s,style:u,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{},{ref:h}))};ua.displayName="IconReact",ua.getTwoToneColors=function(){return k({},sa)},ua.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;sa.primaryColor=t,sa.secondaryColor=n||aa(t),sa.calculated=!!n};var da=ua;function fa(e){var t=V(la(e),2),n=t[0],r=t[1];return da.setTwoToneColors({primaryColor:n,secondaryColor:r})}var pa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];fa(_r.primary);var ha=t.forwardRef((function(e,n){var r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=so(e,pa),d=t.useContext(wn),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,v=to()(h,p,w(w({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),g=l;void 0===g&&c&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=V(la(s),2),y=b[0],x=b[1];return t.createElement("span",ut({role:"img","aria-label":o.name},u,{ref:n,tabIndex:g,onClick:c,className:v}),t.createElement(da,{icon:o,primaryColor:y,secondaryColor:x,style:m}))}));ha.displayName="AntdIcon",ha.getTwoToneColor=function(){var e=da.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ha.setTwoToneColor=fa;var va=ha,ga=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:ea}))};var ma=t.forwardRef(ga),ba={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"},ya=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:ba}))};var wa=t.forwardRef(ya),xa={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"},ka=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:xa}))};var Ca=t.forwardRef(ka),Sa={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"},Ea=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:Sa}))};var Oa=t.forwardRef(Ea),_a={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"},$a=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:_a}))};var ja=t.forwardRef($a),Na={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"},Ia=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:Na}))};var Pa=t.forwardRef(Ia),Ra={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>=Ra.F1&&t<=Ra.F12)return!1;switch(t){case Ra.ALT:case Ra.CAPS_LOCK:case Ra.CONTEXT_MENU:case Ra.CTRL:case Ra.DOWN:case Ra.END:case Ra.ESC:case Ra.HOME:case Ra.INSERT:case Ra.LEFT:case Ra.MAC_FF_META:case Ra.META:case Ra.NUMLOCK:case Ra.NUM_CENTER:case Ra.PAGE_DOWN:case Ra.PAGE_UP:case Ra.PAUSE:case Ra.PRINT_SCREEN:case Ra.RIGHT:case Ra.SHIFT:case Ra.UP:case Ra.WIN_KEY:case Ra.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ra.ZERO&&e<=Ra.NINE)return!0;if(e>=Ra.NUM_ZERO&&e<=Ra.NUM_MULTIPLY)return!0;if(e>=Ra.A&&e<=Ra.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ra.SPACE:case Ra.QUESTION_MARK:case Ra.NUM_PLUS:case Ra.NUM_MINUS:case Ra.NUM_PERIOD:case Ra.NUM_DIVISION:case Ra.SEMICOLON:case Ra.DASH:case Ra.EQUALS:case Ra.COMMA:case Ra.PERIOD:case Ra.SLASH:case Ra.APOSTROPHE:case Ra.SINGLE_QUOTE:case Ra.OPEN_SQUARE_BRACKET:case Ra.BACKSLASH:case Ra.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ma=Ra,Aa="".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]+/),Ta="aria-",qa="data-";function La(e,t){return 0===e.indexOf(t)}function Da(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}:k({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||La(n,Ta))||t.data&&La(n,qa)||t.attr&&Aa.includes(n))&&(r[n]=e[n])})),r}var za=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.style,i=e.className,a=e.duration,l=void 0===a?4.5:a,c=e.eventKey,s=e.content,u=e.closable,d=e.closeIcon,f=void 0===d?"x":d,p=e.props,h=e.onClick,g=e.onNoticeClose,m=e.times,b=e.hovering,y=V(t.useState(!1),2),x=y[0],k=y[1],C=b||x,S=function(){g(c)};t.useEffect((function(){if(!C&&l>0){var e=setTimeout((function(){S()}),1e3*l);return function(){clearTimeout(e)}}}),[l,C,m]);var E=t.useMemo((function(){return"object"===v(u)&&null!==u?u:u?{closeIcon:f}:{}}),[u,f]),O=Da(E,!0),_="".concat(r,"-notice");return t.createElement("div",ut({},p,{ref:n,className:to()(_,i,w({},"".concat(_,"-closable"),u)),style:o,onMouseEnter:function(e){var t;k(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;k(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:h}),t.createElement("div",{className:"".concat(_,"-content")},s),u&&t.createElement("a",ut({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Ma.ENTER||S()},"aria-label":"Close"},O,{onClick:function(e){e.preventDefault(),e.stopPropagation(),S()}}),E.closeIcon))})),Ba=za,Fa=t.createContext({}),Ha=function(e){var n=e.children,r=e.classNames;return t.createElement(Fa.Provider,{value:{classNames:r}},n)},Wa=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===v(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]},Va=["className","style","classNames","styles"];var Ua=function(e){var n=e.configList,r=e.placement,o=e.prefixCls,i=e.className,a=e.style,l=e.motion,c=e.onAllNoticeRemoved,s=e.onNoticeClose,u=e.stack,d=(0,t.useContext)(Fa).classNames,f=(0,t.useRef)({}),p=V((0,t.useState)(null),2),h=p[0],v=p[1],g=V((0,t.useState)([]),2),m=g[0],b=g[1],y=n.map((function(e){return{config:e,key:String(e.key)}})),x=V(Wa(u),2),C=x[0],S=x[1],E=S.offset,O=S.threshold,_=S.gap,$=C&&(m.length>0||y.length<=O),j="function"==typeof l?l(r):l;return(0,t.useEffect)((function(){C&&m.length>1&&b((function(e){return e.filter((function(e){return y.some((function(t){var n=t.key;return e===n}))}))}))}),[m,y,C]),(0,t.useEffect)((function(){var e,t;C&&f.current[null===(e=y[y.length-1])||void 0===e?void 0:e.key]&&v(f.current[null===(t=y[y.length-1])||void 0===t?void 0:t.key])}),[y,C]),t.createElement(wi,ut({key:r,className:to()(o,"".concat(o,"-").concat(r),null==d?void 0:d.list,i,w(w({},"".concat(o,"-stack"),!!C),"".concat(o,"-stack-expanded"),$)),style:a,keys:y,motionAppear:!0},j,{onAllRemoved:function(){c(r)}}),(function(e,n){var i=e.config,a=e.className,l=e.style,c=e.index,u=i,p=u.key,v=u.times,g=String(p),w=i,x=w.className,S=w.style,O=w.classNames,j=w.styles,N=so(w,Va),I=y.findIndex((function(e){return e.key===g})),P={};if(C){var R=y.length-1-(I>-1?I:c-1),M="top"===r||"bottom"===r?"-50%":"0";if(R>0){var A,T,q;P.height=$?null===(A=f.current[g])||void 0===A?void 0:A.offsetHeight:null==h?void 0:h.offsetHeight;for(var L=0,D=0;D<R;D++){var z;L+=(null===(z=f.current[y[y.length-1-D].key])||void 0===z?void 0:z.offsetHeight)+_}var B=($?L:R*E)*(r.startsWith("top")?1:-1),F=!$&&null!=h&&h.offsetWidth&&null!==(T=f.current[g])&&void 0!==T&&T.offsetWidth?((null==h?void 0:h.offsetWidth)-2*E*(R<3?R:3))/(null===(q=f.current[g])||void 0===q?void 0:q.offsetWidth):1;P.transform="translate3d(".concat(M,", ").concat(B,"px, 0) scaleX(").concat(F,")")}else P.transform="translate3d(".concat(M,", 0, 0)")}return t.createElement("div",{ref:n,className:to()("".concat(o,"-notice-wrapper"),a,null==O?void 0:O.wrapper),style:k(k(k({},l),P),null==j?void 0:j.wrapper),onMouseEnter:function(){return b((function(e){return e.includes(g)?e:[].concat(Y(e),[g])}))},onMouseLeave:function(){return b((function(e){return e.filter((function(e){return e!==g}))}))}},t.createElement(Ba,ut({},N,{ref:function(e){I>-1?f.current[g]=e:delete f.current[g]},prefixCls:o,classNames:O,styles:j,className:to()(x,null==d?void 0:d.notice),style:S,times:v,key:p,eventKey:p,onNoticeClose:s,hovering:C&&m.length>0})))}))},Ya=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-notification":r,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=V(t.useState([]),2),h=p[0],v=p[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),v((function(t){return t.filter((function(t){return t.key!==e}))}))};t.useImperativeHandle(n,(function(){return{open:function(e){v((function(t){var n,r=Y(t),o=r.findIndex((function(t){return t.key===e.key})),i=k({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){g(e)},destroy:function(){v([])}}}));var m=V(t.useState({}),2),b=m[0],y=m[1];t.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[h]);var w=function(e){y((function(t){var n=k({},t);return(n[e]||[]).length||delete n[e],n}))},x=t.useRef(!1);if(t.useEffect((function(){Object.keys(b).length>0?x.current=!0:x.current&&(null==u||u(),x.current=!1)}),[b]),!i)return null;var C=Object.keys(b);return(0,S.createPortal)(t.createElement(t.Fragment,null,C.map((function(e){var n=b[e],r=t.createElement(Ua,{key:e,configList:n,placement:e,prefixCls:o,className:null==c?void 0:c(e),style:null==s?void 0:s(e),motion:a,onNoticeClose:g,onAllNoticeRemoved:w,stack:d});return f?f(r,{prefixCls:o,key:e}):r}))),i)}));var Ka=Ya,Ga=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Xa=function(){return document.body},Qa=0;function Za(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getContainer,r=void 0===n?Xa:n,o=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=so(e,Ga),p=V(t.useState(),2),h=p[0],v=p[1],g=t.useRef(),m=t.createElement(Ka,{container:h,ref:g,prefixCls:i,motion:o,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=V(t.useState([]),2),y=b[0],w=b[1],x=t.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Qa),Qa+=1),w((function(e){return[].concat(Y(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(Y(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(Y(e),[{type:"destroy"}])}))}}}),[]);return t.useEffect((function(){v(r())})),t.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()}})),w((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[x,m]}var Ja=e=>{const[,,,,t]=Pi();return t?`${e}-css-var`:""};var el=t.createContext(void 0);const tl=100,nl=1e3,rl={Modal:tl,Drawer:tl,Popover:tl,Popconfirm:tl,Tooltip:tl,Tour:tl},ol={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function il(e,n){const[,r]=Pi(),o=t.useContext(el),i=function(e){return e in rl}(e);if(void 0!==n)return[n,n];let a=null!=o?o:0;return i?(a+=(o?0:r.zIndexPopupBase)+rl[e],a=Math.min(a,r.zIndexPopupBase+nl)):a+=ol[e],[void 0===o?n:a,a]}const al="undefined"!=typeof CSSINJS_STATISTIC;let ll=!0;function cl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!al)return Object.assign.apply(Object,[{}].concat(t));ll=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ll=!0,r}const sl={};function ul(){}var dl=e=>{let t,n=e,r=ul;return al&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get(e,n){return ll&&t.add(n),e[n]}}),r=(e,n)=>{var r;sl[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=sl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};function fl(e,t,n){return t=go(t),yo(e,mo()?Reflect.construct(t,n||[],go(e).constructor):t.apply(e,n))}var pl=we((function e(){be(this,e)}));const hl="CALC_UNIT",vl=new RegExp(hl,"g");function gl(e){return"number"==typeof e?`${e}${hl}`:e}let ml=function(e){function t(e){var n;return be(this,t),(n=fl(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=gl(e):"string"==typeof e&&(n.result=e),n}return vo(t,e),we(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} + ${gl(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} - ${gl(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||{};return this.result=this.result.replace(vl,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(pl),bl=function(e){function t(e){var n;return be(this,t),(n=fl(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return vo(t,e),we(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}}])}(pl);var yl=e=>{const t="css"===e?ml:bl;return e=>new t(e)};const wl=(e,t,n)=>{var r;return"function"==typeof n?n(cl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},xl=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function kl(e,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[a]=i,l=i.join("-");return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[c,s,u,d,f]=Pi(),{getPrefixCls:p,iconPrefixCls:h,csp:v}=(0,t.useContext)(D),g=p(),m=f?"css":"js",b=yl(m),{max:y,min:w}=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=>Fe(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=>Fe(e))).join(",")})`}}}(m),x={theme:c,token:d,hashId:u,nonce:()=>null==v?void 0:v.nonce,clientOnly:o.clientOnly,layer:{name:"antd"},order:o.order||-999};pn(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":qi(d)}])),Bi(h,v);const k=pn(Object.assign(Object.assign({},x),{path:[l,e,h]}),(()=>{if(!1===o.injectStyle)return[];const{token:t,flush:l}=dl(d),c=wl(a,s,r),p=`.${e}`,v=xl(a,s,c,{deprecatedTokens:o.deprecatedTokens});f&&Object.keys(c).forEach((e=>{c[e]=`var(${We(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("-")}`)(a,f.prefix))})`}));const m=cl(t,{componentCls:p,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:b,max:y,min:w},f?c:v),x=n(m,{hashId:u,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return l(a,v),[!1===o.resetStyle?null:Li(m,e,i,o.resetFont),x]}));return[k,u]}}const Cl=(e,t,n,r)=>{const o=kl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},Sl=(e,n,r,o)=>{const i=kl(e,n,r,o),a=((e,n,r)=>{function o(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:i={},injectStyle:a=!0}=null!=r?r:{},l={[o("zIndexPopup")]:!0};Object.keys(i).forEach((e=>{l[o(e)]=i[e]}));const c=t=>{let{rootCls:i,cssVar:a}=t;const[,c]=Pi();return gn({path:[e],prefix:a.prefix,key:null==a?void 0:a.key,unitless:Object.assign(Object.assign({},$i),l),ignore:ji,token:c,scope:i},(()=>{const t=wl(e,c,n),i=xl(e,c,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((e=>{i[o(e)]=i[e],delete i[e]})),i})),null};return n=>{const[,,,,r]=Pi();return[o=>a&&r?t.createElement(t.Fragment,null,t.createElement(c,{rootCls:n,cssVar:r,component:e}),o):o,null==r?void 0:r.key]}})(Array.isArray(e)?e[0]:e,r,o);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=i(e,t),[r,o]=a(t);return[r,n,o]}};var El=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new bn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new bn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new bn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new bn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${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},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}};const Ol=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_l={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},$l=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)},jl=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)};var Nl=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},$l(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},jl(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"}}}},Ol.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[_l[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const Il=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:v,lineHeight:g,width:m,notificationIconSize:b,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[w]:{padding:p,width:m,maxWidth:`calc(100vw - ${Fe(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:g,wordWrap:"break-word"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v,color:y},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${w}-close`]:Object.assign({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.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},zi(e)),[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},Pl=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new bn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ti(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_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:o,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:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Il(e))}}]},Rl=e=>({zIndexPopup:e.zIndexPopupBase+nl+50,width:384}),Ml=e=>{const t=e.paddingMD,n=e.paddingLG;return cl(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:`${Fe(e.paddingMD)} ${Fe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})};var Al=Sl("Notification",(e=>{const t=Ml(e);return[Pl(t),El(t),Nl(t)]}),Rl),Tl=Cl(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=Ml(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Il(n)),{width:n.width,maxWidth:`calc(100vw - ${Fe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Rl),ql=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ll(e,n){return null===n||!1===n?null:n||t.createElement(Ca,{className:`${e}-close-icon`})}const Dl={success:ma,info:ja,error:wa,warning:Oa},zl=e=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,btn:l,role:c="alert"}=e;let s=null;return r?s=t.createElement("span",{className:`${n}-icon`},r):o&&(s=t.createElement(Dl[o]||null,{className:to()(`${n}-icon`,`${n}-icon-${o}`)})),t.createElement("div",{className:to()({[`${n}-with-icon`]:s}),role:c},s,t.createElement("div",{className:`${n}-message`},i),t.createElement("div",{className:`${n}-description`},a),l&&t.createElement("div",{className:`${n}-btn`},l))};var Bl=e=>{const{prefixCls:n,className:r,icon:o,type:i,message:a,description:l,btn:c,closable:s=!0,closeIcon:u,className:d}=e,f=ql(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=t.useContext(D),h=n||p("notification"),v=`${h}-notice`,g=Ja(h),[m,b,y]=Al(h,g);return m(t.createElement("div",{className:to()(`${v}-pure-panel`,b,r,y,g)},t.createElement(Tl,{prefixCls:h}),t.createElement(Ba,Object.assign({},f,{prefixCls:h,eventKey:"pure",duration:null,closable:s,className:to()({notificationClassName:d}),closeIcon:Ll(h,u),content:t.createElement(zl,{prefixCls:v,icon:o,type:i,message:a,description:l,btn:c})}))))};var Fl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hl="topRight",Wl=e=>{let{children:n,prefixCls:r}=e;const o=Ja(r),[i,a,l]=Al(r,o);return i(t.createElement(Ha,{classNames:{list:to()(a,l,o)}},n))},Vl=(e,n)=>{let{prefixCls:r,key:o}=n;return t.createElement(Wl,{prefixCls:r,key:o},e)},Ul=t.forwardRef(((e,n)=>{const{top:r,bottom:o,prefixCls:i,getContainer:a,maxCount:l,rtl:c,onAllRemoved:s,stack:u,duration:d}=e,{getPrefixCls:f,getPopupContainer:p,notification:h,direction:v}=(0,t.useContext)(D),[,g]=Pi(),m=i||f("notification"),[b,y]=Za({prefixCls:m,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=r?r:24,null!=o?o:24),className:()=>to()({[`${m}-rtl`]:null!=c?c:"rtl"===v}),motion:()=>function(e){return{motionName:`${e}-fade`}}(m),closable:!0,closeIcon:Ll(m),duration:null!=d?d:4.5,getContainer:()=>(null==a?void 0:a())||(null==p?void 0:p())||document.body,maxCount:l,onAllRemoved:s,renderNotifications:Vl,stack:!1!==u&&{threshold:"object"==typeof u?null==u?void 0:u.threshold:void 0,offset:8,gap:g.margin}});return t.useImperativeHandle(n,(()=>Object.assign(Object.assign({},b),{prefixCls:m,notification:h}))),y}));function Yl(e){const n=t.useRef(null),r=(Nn("Notification"),t.useMemo((()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,c=`${a}-notice`,{message:s,description:u,icon:d,type:f,btn:p,className:h,style:v,role:g="alert",closeIcon:m,closable:b}=r,y=Fl(r,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),w=Ll(c,void 0!==m?m:null==l?void 0:l.closeIcon);return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:Hl},y),{content:t.createElement(zl,{prefixCls:c,icon:d,type:f,message:s,description:u,btn:p,role:g}),className:to()(f&&`${c}-${f}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),closeIcon:w,closable:null!=b?b:!!w}))},o={open:r,destroy:e=>{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[r,t.createElement(Ul,Object.assign({key:"notification-holder"},e,{ref:n}))]}let Kl=null,Gl=e=>e(),Xl=[],Ql={};function Zl(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Ql,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Jl=t.forwardRef(((e,n)=>{const{notificationConfig:r,sync:o}=e,{getPrefixCls:i}=(0,t.useContext)(D),a=Ql.prefixCls||i("notification"),l=(0,t.useContext)(q),[c,s]=Yl(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.notification));return t.useEffect(o,[]),t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),ec=t.forwardRef(((e,n)=>{const[r,o]=t.useState(Zl),i=()=>{o(Zl)};t.useEffect(i,[]);const a=Xi(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement(Jl,{ref:n,sync:i,notificationConfig:r});return t.createElement(Ji,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function tc(){if(!Kl){const e=document.createDocumentFragment(),n={fragment:e};return Kl=n,void Gl((()=>{I(t.createElement(ec,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,tc())}))}}),e)}))}Kl.instance&&(Xl.forEach((e=>{switch(e.type){case"open":Gl((()=>{Kl.instance.open(Object.assign(Object.assign({},Ql),e.config))}));break;case"destroy":Gl((()=>{null==Kl||Kl.instance.destroy(e.key)}))}})),Xl=[])}function nc(e){Xi();Xl.push({type:"open",config:e}),tc()}const rc={open:nc,destroy:e=>{Xl.push({type:"destroy",key:e}),tc()},config:function(e){Ql=Object.assign(Object.assign({},Ql),e),Gl((()=>{var e;null===(e=null==Kl?void 0:Kl.sync)||void 0===e||e.call(Kl)}))},useNotification:function(e){return Yl(e)},_InternalPanelDoNotUseOrYouWillBeFired:Bl},oc=rc;["success","info","warning","error"].forEach((e=>{oc[e]=t=>nc(Object.assign(Object.assign({},t),{type:e}))}));var ic=oc;function ac(e,t){var n=k({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var lc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function cc(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const sc=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function uc(e,t){return sc(e,e,t)}const dc=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var fc=kl("Wave",(e=>[dc(e)]));const pc="ant-wave-target";function hc(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}function vc(e){return Number.isNaN(e)?0:e}const gc=e=>{const{className:n,target:r,component:o}=e,i=t.useRef(null),[a,l]=t.useState(null),[c,s]=t.useState([]),[u,d]=t.useState(0),[f,p]=t.useState(0),[h,v]=t.useState(0),[g,m]=t.useState(0),[b,y]=t.useState(!1),w={left:u,top:f,width:h,height:g,borderRadius:c.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return hc(t)?t:hc(n)?n:hc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:vc(-parseFloat(n))),p(t?r.offsetTop:vc(-parseFloat(o))),v(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>vc(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),t.useEffect((()=>{if(r){const e=ri((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{ri.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const k=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(pc));return t.createElement(xi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;A(e).then((()=>{null==e||e.remove()}))}return!1}},((e,r)=>{let{className:o}=e;return t.createElement("div",{ref:ao(i,r),className:to()(n,{"wave-quick":k},o),style:w})}))};var mc=(e,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),I(t.createElement(gc,Object.assign({},n,{target:e})),i)};var bc=(e,n,r)=>{const{wave:o}=t.useContext(D),[,i,a]=Pi(),l=Co((t=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${pc}`)||l,{showEffect:s}=o||{};(s||mc)(c,{className:n,token:i,component:r,event:t,hashId:a})})),c=t.useRef();return e=>{ri.cancel(c.current),c.current=ri((()=>{l(e)}))}};var yc=e=>{const{children:n,disabled:r,component:o}=e,{getPrefixCls:i}=(0,t.useContext)(D),a=(0,t.useRef)(null),l=i("wave"),[,c]=fc(l),s=bc(a,to()(l,c),o);if(t.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!lc(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return uc(n,{ref:co(n)?ao(n.ref,a):a})};var wc=e=>{const n=t.useContext(Gr);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])};function xc(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(xc(e)):(0,oo.isFragment)(e)&&e.props?r=r.concat(xc(e.props.children,n)):r.push(e))})),r}const kc=t.createContext(null),Cc=(e,n)=>{const r=t.useContext(kc),o=t.useMemo((()=>{if(!r)return"";const{compactDirection:t,isFirstItem:o,isLastItem:i}=r,a="vertical"===t?"-vertical-":"-";return to()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===n})}),[e,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},Sc=e=>{let{children:n}=e;return t.createElement(kc.Provider,{value:null},n)};var Ec=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Oc=t.createContext(void 0);var _c=e=>{const{getPrefixCls:n,direction:r}=t.useContext(D),{prefixCls:o,size:i,className:a}=e,l=Ec(e,["prefixCls","size","className"]),c=n("btn-group",o),[,,s]=Pi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const d=to()(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===r},a,s);return t.createElement(Oc.Provider,{value:i},t.createElement("div",Object.assign({},l,{className:d})))};const $c=/^[\u4e00-\u9fa5]{2}$/,jc=$c.test.bind($c);function Nc(e){return"danger"===e?{danger:!0}:{type:e}}function Ic(e){return"string"==typeof e}function Pc(e){return"text"===e||"link"===e}function Rc(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Ic(e.type)&&jc(e.props.children)?uc(e,{children:e.props.children.split("").join(r)}):Ic(e)?jc(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):cc(e)?t.createElement("span",null,e):e}(e,n)))}const Mc=(0,t.forwardRef)(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=to()(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)}));var Ac=Mc;const Tc=(0,t.forwardRef)(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a,iconPosition:l="start"}=e,c=to()(o,{[`${r}-loading-icon-end`]:"end"===l,[`${r}-loading-icon`]:"start"===l});return t.createElement(Ac,{prefixCls:r,className:c,style:i,ref:n},t.createElement(Pa,{className:a}))})),qc=()=>({width:0,opacity:0,transform:"scale(0)"}),Lc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var Dc=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,iconPosition:l}=e,c=!!r;return o?t.createElement(Tc,{prefixCls:n,className:i,style:a,iconPosition:l}):t.createElement(xi,{visible:c,motionName:`${n}-loading-icon-motion`,motionLeave:c,removeOnLeave:!0,onAppearStart:qc,onAppearActive:Lc,onEnterStart:qc,onEnterActive:Lc,onLeaveStart:Lc,onLeaveActive:qc},((e,r)=>{let{className:o,style:c}=e;return t.createElement(Tc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),c),ref:r,iconClassName:o,iconPosition:l})}))};const zc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Bc=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},zc(`${t}-primary`,o),zc(`${t}-danger`,i)]}};const Fc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return cl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Hc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Rr(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Rr(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Rr(s);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:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},Wc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Fe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0,"&-end":{marginInlineStart:e.marginXS}},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS},[`&${t}-loading-icon-end`]:{marginInlineStart:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Vc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Uc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Yc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Kc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Gc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Vc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Xc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Kc(e))}),Qc=e=>Object.assign({},Xc(e)),Zc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Jc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Vc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Gc(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},Vc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Xc(e))}),es=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Vc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Gc(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},Vc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xc(e))}),ts=e=>Object.assign(Object.assign({},Jc(e)),{borderStyle:"dashed"}),ns=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Vc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Zc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Vc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Zc(e))}),rs=e=>Object.assign(Object.assign(Object.assign({},Vc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Zc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Zc(e)),Vc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),os=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Jc(e),[`${t}-primary`]:es(e),[`${t}-dashed`]:ts(e),[`${t}-link`]:ns(e),[`${t}-text`]:rs(e),[`${t}-ghost`]:Gc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},is=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${Fe(s)} ${Fe(l)}`,borderRadius:a,[`&${u}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Uc(e)},{[`${n}${n}-round${t}`]:Yc(e)}]},as=e=>{const t=cl(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return is(t,e.componentCls)},ls=e=>{const t=cl(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 is(t,`${e.componentCls}-sm`)},cs=e=>{const t=cl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return is(t,`${e.componentCls}-lg`)},ss=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var us=Sl("Button",(e=>{const t=Fc(e);return[Wc(t),as(t),ls(t),cs(t),ss(t),os(t),Bc(t)]}),Hc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ds(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"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({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function fs(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},ds(e,r,t)),fs(n,r,t))}}function hs(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 vs(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hs(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const gs=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% + ${Fe(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% + ${Fe(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var ms=Cl(["Button","compact"],(e=>{const t=Fc(e);return[ps(t),vs(t),gs(t)]}),Hc),bs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ys=t.forwardRef(((e,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s,shape:u="default",size:d,styles:f,disabled:p,className:h,rootClassName:v,children:g,icon:m,iconPosition:b="start",ghost:y=!1,block:w=!1,htmlType:x="button",classNames:k,style:C={},autoInsertSpace:S}=e,E=bs(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=c||"default",{getPrefixCls:_,direction:$,button:j}=(0,t.useContext)(D),N=null===(r=null!=S?S:null==j?void 0:j.autoInsertSpace)||void 0===r||r,I=_("btn",l),[P,R,M]=us(I),A=(0,t.useContext)(Ur),T=null!=p?p:A,q=(0,t.useContext)(Oc),L=(0,t.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}}(a)),[a]),[z,B]=(0,t.useState)(L.loading),[F,H]=(0,t.useState)(!1),W=ao(n,(0,t.createRef)()),V=1===t.Children.count(g)&&!m&&!Pc(O);(0,t.useEffect)((()=>{let e=null;return L.delay>0?e=setTimeout((()=>{e=null,B(!0)}),L.delay):B(L.loading),function(){e&&(clearTimeout(e),e=null)}}),[L]),(0,t.useEffect)((()=>{if(!W||!W.current||!N)return;const e=W.current.textContent;V&&jc(e)?F||H(!0):F&&H(!1)}),[W]);const U=t=>{const{onClick:n}=e;z||T?t.preventDefault():null==n||n(t)};const{compactSize:Y,compactItemClassnames:K}=Cc(I,$),G={large:"lg",small:"sm",middle:void 0},X=wc((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:Y)&&void 0!==t?t:q)&&void 0!==n?n:e})),Q=X&&G[X]||"",Z=z?"loading":m,J=ac(E,["navigate"]),ee=to()(I,R,M,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${O}`]:O,[`${I}-${Q}`]:Q,[`${I}-icon-only`]:!g&&0!==g&&!!Z,[`${I}-background-ghost`]:y&&!Pc(O),[`${I}-loading`]:z,[`${I}-two-chinese-chars`]:F&&N&&!z,[`${I}-block`]:w,[`${I}-dangerous`]:!!s,[`${I}-rtl`]:"rtl"===$},K,h,v,null==j?void 0:j.className),te=Object.assign(Object.assign({},null==j?void 0:j.style),C),ne="end"===b&&g&&0!==g&&Z,re=to()(null==k?void 0:k.icon,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.icon,{[`${I}-icon-end`]:ne}),oe=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.icon)||{}),ie=m&&!z?t.createElement(Ac,{prefixCls:I,className:re,style:oe},m):t.createElement(Dc,{existIcon:!!m,prefixCls:I,loading:!!z,iconPosition:b}),ae=g||0===g?Rc(g,V&&N):null,le=(e,n)=>"start"===b?t.createElement(t.Fragment,null,e,n):t.createElement(t.Fragment,null,n,e);if(void 0!==J.href)return P(t.createElement("a",Object.assign({},J,{className:to()(ee,{[`${I}-disabled`]:T}),href:T?void 0:J.href,style:te,onClick:U,ref:W,tabIndex:T?-1:0}),le(ie,ae)));let ce=t.createElement("button",Object.assign({},E,{type:x,className:ee,style:te,onClick:U,disabled:T,ref:W}),le(ie,ae),!!K&&t.createElement(ms,{key:"compact",prefixCls:I}));return Pc(O)||(ce=t.createElement(yc,{component:"Button",disabled:!!z},ce)),P(ce)})),ws=ys;ws.Group=_c,ws.__ANT_BUTTON=!0;var xs=ws,ks=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Cs=t.forwardRef((function(e,n){var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,l=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,v=e.onKeyDown,g=so(e,ks),m=V(Oo(!1,{value:l,defaultValue:c}),2),b=m[0],y=m[1];function x(e,t){var n=b;return s||(y(n=e),null==h||h(n,t)),n}var k=to()(i,a,(w(r={},"".concat(i,"-checked"),b),w(r,"".concat(i,"-disabled"),s),r));return t.createElement("button",ut({},g,{type:"button",role:"switch","aria-checked":b,disabled:s,className:k,ref:n,onKeyDown:function(e){e.which===Ma.LEFT?x(!1,e):e.which===Ma.RIGHT&&x(!0,e),null==v||v(e)},onClick:function(e){var t=x(!b,e);null==p||p(t,e)}}),u,t.createElement("span",{className:"".concat(i,"-inner")},t.createElement("span",{className:"".concat(i,"-inner-checked")},d),t.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))}));Cs.displayName="Switch";var Ss=Cs;const Es=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=Fe(c(l).add(c(r).mul(2)).equal()),d=Fe(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Fe(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Fe(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Os=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},_s=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{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:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Fe(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},$s=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=Fe(l(a).add(l(r).mul(2)).equal()),u=Fe(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},js=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ti(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${Fe(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var Ns=Sl("Switch",(e=>{const t=cl(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[js(t),$s(t),_s(t),Os(t),Es(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Nr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}})),Is=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ps=t.forwardRef(((e,n)=>{const{prefixCls:r,size:o,disabled:i,loading:a,className:l,rootClassName:c,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,v=Is(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,m]=Oo(!1,{value:null!=u?u:d,defaultValue:null!=f?f:p}),{getPrefixCls:b,direction:y,switch:w}=t.useContext(D),x=t.useContext(Ur),k=(null!=i?i:x)||a,C=b("switch",r),S=t.createElement("div",{className:`${C}-handle`},a&&t.createElement(Pa,{className:`${C}-loading-icon`})),[E,O,_]=Ns(C),$=wc(o),j=to()(null==w?void 0:w.className,{[`${C}-small`]:"small"===$,[`${C}-loading`]:a,[`${C}-rtl`]:"rtl"===y},l,c,O,_),N=Object.assign(Object.assign({},null==w?void 0:w.style),s);return E(t.createElement(yc,{component:"Switch"},t.createElement(Ss,Object.assign({},v,{checked:g,onChange:function(){m(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:C,className:j,style:N,disabled:k,ref:n,loadingIcon:S}))))})),Rs=Ps;Rs.__ANT_SWITCH=!0;var Ms=Rs;function As(e){var n=e.children,r=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return t.createElement("div",{className:to()("".concat(r,"-content"),a),style:l},t.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}var Ts=t.createContext(null),qs=[];function Ls(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";le("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ae(t),{width:f,height:p}}var Ds="rc-util-locker-".concat(Date.now()),zs=0;function Bs(e){var n=!!e,r=V(t.useState((function(){return zs+=1,"".concat(Ds,"_").concat(zs)})),1)[0];Xe((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?Ls(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;le("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else ae(r);var o;return function(){ae(r)}}),[n,r])}var Fs=!1;var Hs=function(e){return!1!==e&&(G()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ws=t.forwardRef((function(e,n){var r=e.open,o=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=V(t.useState(r),2),u=s[0],d=s[1],f=u||r;t.useEffect((function(){(l||r)&&d(r)}),[r,l]);var p=V(t.useState((function(){return Hs(i)})),2),h=p[0],v=p[1];t.useEffect((function(){var e=Hs(i);v(null!=e?e:null)}));var g=function(e,n){var r=V(t.useState((function(){return G()?document.createElement("div"):null})),1)[0],o=t.useRef(!1),i=t.useContext(Ts),a=V(t.useState(qs),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Y(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function d(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return Xe((function(){return e?i?i(u):u():d(),d}),[e]),Xe((function(){l.length&&(l.forEach((function(e){return e()})),c(qs))}),[l]),[r,s]}(f&&!h),m=V(g,2),b=m[0],y=m[1],w=null!=h?h:b;Bs(o&&r&&G()&&(w===b||w===document.body));var x=null;c&&co(c)&&n&&(x=c.ref);var k=lo(x,n);if(!f||!G()||void 0===h)return null;var C,E=!1===w||("boolean"==typeof C&&(Fs=C),Fs),O=c;return n&&(O=t.cloneElement(c,{ref:k})),t.createElement(Ts.Provider,{value:y},E?O:(0,S.createPortal)(O,w))}));var Vs=Ws,Us=t.createContext(null);var Ys=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!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),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,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,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Ks="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Gs=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Xs="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Gs):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Qs=["top","right","bottom","left","width","height","size","weight"],Zs="undefined"!=typeof MutationObserver,Js=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,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Xs(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(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(){Ks&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Zs?(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(){Ks&&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,r=Qs.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),eu=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},tu=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Gs},nu=cu(0,0,0,0);function ru(e){return parseFloat(e)||0}function ou(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ru(e["border-"+n+"-width"])}),0)}function iu(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return nu;var r=tu(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ru(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=ru(r.width),c=ru(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ou(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ou(r,"top","bottom")+a)),!function(e){return e===tu(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return cu(o.left,o.top,l,c)}var au="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof tu(e).SVGGraphicsElement}:function(e){return e instanceof tu(e).SVGElement&&"function"==typeof e.getBBox};function lu(e){return Ks?au(e)?function(e){var t=e.getBBox();return cu(0,0,t.width,t.height)}(e):iu(e):nu}function cu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var su=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cu(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=lu(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}(),uu=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),eu(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);eu(this,{target:e,contentRect:s})},du=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ys,"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 tu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new su(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 tu(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 uu(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}(),fu="undefined"!=typeof WeakMap?new WeakMap:new Ys,pu=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=Js.getInstance(),r=new du(t,n,this);fu.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){pu.prototype[e]=function(){var t;return(t=fu.get(this))[e].apply(t,arguments)}}));var hu=void 0!==Gs.ResizeObserver?Gs.ResizeObserver:pu,vu=new Map;var gu=new hu((function(e){e.forEach((function(e){var t,n=e.target;null===(t=vu.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var mu=function(e){vo(n,e);var t=wo(n);function n(){return be(this,n),t.apply(this,arguments)}return we(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component);function bu(e,n){var r=e.children,o=e.disabled,i=t.useRef(null),a=t.useRef(null),l=t.useContext(Us),c="function"==typeof r,s=c?r(i):r,u=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&t.isValidElement(s)&&co(s),f=d?s.ref:null,p=lo(f,i),h=function(){var e;return ro(i.current)||(i.current&&"object"===v(i.current)?ro(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||ro(a.current)};t.useImperativeHandle(n,(function(){return h()}));var g=t.useRef(e);g.current=e;var m=t.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var h=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,m=k(k({},p),{},{offsetWidth:h,offsetHeight:v});null==l||l(m,e,r),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return t.useEffect((function(){var e,t,n=h();return n&&!o&&(e=n,t=m,vu.has(e)||(vu.set(e,new Set),gu.observe(e)),vu.get(e).add(t)),function(){return function(e,t){vu.has(e)&&(vu.get(e).delete(t),vu.get(e).size||(gu.unobserve(e),vu.delete(e)))}(n,m)}}),[i.current,o]),t.createElement(mu,{ref:a},d?t.cloneElement(s,{ref:p}):s)}var yu=t.forwardRef(bu);function wu(e,n){var r=e.children;return("function"==typeof r?[r]:xc(r)).map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return t.createElement(yu,ut({},e,{key:i,ref:0===o?n:void 0}),r)}))}var xu=t.forwardRef(wu);xu.Collection=function(e){var n=e.children,r=e.onBatchResize,o=t.useRef(0),i=t.useRef([]),a=t.useContext(Us),l=t.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return t.createElement(Us.Provider,{value:l},n)};var ku=xu;var Cu=0;var Su=k({},n).useId,Eu=Su?function(e){var t=Su();return e||t}:function(e){var n=V(t.useState("ssr-id"),2),r=n[0],o=n[1];return t.useEffect((function(){var e=Cu;Cu+=1,o("rc_unique_".concat(e))}),[]),e||r},Ou=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 _u(e){var n=e.prefixCls,r=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=t.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(!1!==r.autoArrow){var v=r.points[0],g=r.points[1],m=v[0],b=v[1],y=g[0],w=g[1];m!==y&&["t","b"].includes(m)?"t"===m?h.top=0:h.bottom=0:h.top=f,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return t.createElement("div",{ref:p,className:to()("".concat(n,"-arrow"),l),style:h},c)}function $u(e){var n=e.prefixCls,r=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?t.createElement(xi,ut({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(e){var r=e.className;return t.createElement("div",{style:{zIndex:o},className:to()("".concat(n,"-mask"),r)})})):null}var ju=t.memo((function(e){return e.children}),(function(e,t){return t.cache}));var Nu=ju,Iu=t.forwardRef((function(e,n){var r=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,v=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,C=e.portal,S=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,_=e.onPointerEnter,$=e.ready,j=e.offsetX,N=e.offsetY,I=e.offsetR,P=e.offsetB,R=e.onAlign,M=e.onPrepare,A=e.stretch,T=e.targetWidth,q=e.targetHeight,L="function"==typeof r?r():r,D=s||u,z=(null==w?void 0:w.length)>0,B=V(t.useState(!w||!z),2),F=B[0],H=B[1];if(Xe((function(){!F&&z&&l&&H(!0)}),[F,z,l]),!F)return null;var W="auto",U={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if($||!s){var Y,K=g.points,G=g.dynamicInset||(null===(Y=g._experimental)||void 0===Y?void 0:Y.dynamicInset),X=G&&"r"===K[0][1],Q=G&&"b"===K[0][0];X?(U.right=I,U.left=W):(U.left=j,U.right=W),Q?(U.bottom=P,U.top=W):(U.top=N,U.bottom=W)}var Z={};return A&&(A.includes("height")&&q?Z.height=q:A.includes("minHeight")&&q&&(Z.minHeight=q),A.includes("width")&&T?Z.width=T:A.includes("minWidth")&&T&&(Z.minWidth=T)),s||(Z.pointerEvents="none"),t.createElement(C,{open:y||D,getContainer:w&&function(){return w(l)},autoDestroy:x},t.createElement($u,{prefixCls:i,open:s,zIndex:S,mask:p,motion:b}),t.createElement(ku,{onResize:R,disabled:!s},(function(e){return t.createElement(xi,ut({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},m,{onAppearPrepare:M,onEnterPrepare:M,visible:s,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),c(e)}}),(function(r,l){var c=r.className,u=r.style,p=to()(i,c,o);return t.createElement("div",{ref:ao(e,n,l),className:p,style:k(k(k(k({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},U),Z),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:E,onMouseLeave:O,onPointerEnter:_,onClick:f},h&&t.createElement(_u,{prefixCls:i,arrow:h,arrowPos:v,align:g}),t.createElement(Nu,{cache:!s&&!d},L))}))})))}));var Pu=Iu,Ru=t.forwardRef((function(e,n){var r=e.children,o=e.getTriggerDOMNode,i=co(r),a=t.useCallback((function(e){io(n,o?o(e):e)}),[o]),l=lo(a,r.ref);return i?t.cloneElement(r,{ref:l}):r}));var Mu=Ru,Au=t.createContext(null);function Tu(e){return e?Array.isArray(e)?e:[e]:[]}function qu(){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 Lu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Du(e){return e.ownerDocument.defaultView}function zu(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Du(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Bu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Fu(e){return Bu(parseFloat(e),0)}function Hu(e,t){var n=k({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Du(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=Fu(i),v=Fu(a),g=Fu(l),m=Fu(c),b=Bu(Math.round(s.width/f*1e3)/1e3),y=Bu(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-m)*b,x=(u-d-h-v)*y,k=h*y,C=v*y,S=g*b,E=m*b,O=0,_=0;if("clip"===r){var $=Fu(o);O=$*b,_=$*y}var j=s.x+S-O,N=s.y+k-_,I=j+s.width+2*O-S-E-w,P=N+s.height+2*_-k-C-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,N),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,P)}})),n}function Wu(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 Vu(e,t){var n=V(t||[],2),r=n[0],o=n[1];return[Wu(e.width,r),Wu(e.height,o)]}function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Yu(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Ku(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Gu=["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"];var Xu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vs,n=t.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,c=void 0===l?"hover":l,s=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,v=n.mouseEnterDelay,g=n.mouseLeaveDelay,m=void 0===g?.1:g,b=n.focusDelay,y=n.blurDelay,w=n.mask,x=n.maskClosable,C=void 0===x||x,S=n.getPopupContainer,E=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,j=n.popupClassName,N=n.popupStyle,I=n.popupPlacement,P=n.builtinPlacements,R=void 0===P?{}:P,M=n.popupAlign,A=n.zIndex,T=n.stretch,q=n.getPopupClassNameFromAlign,L=n.fresh,D=n.alignPoint,z=n.onPopupClick,B=n.onPopupAlign,F=n.arrow,H=n.popupMotion,W=n.maskMotion,U=n.popupTransitionName,K=n.popupAnimation,G=n.maskTransitionName,X=n.maskAnimation,Q=n.className,Z=n.getTriggerDOMNode,J=so(n,Gu),ee=O||_||!1,te=V(t.useState(!1),2),ne=te[0],re=te[1];Xe((function(){re(Ou())}),[]);var oe=t.useRef({}),ie=t.useContext(Au),ae=t.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}}),[ie]),le=Eu(),ce=V(t.useState(null),2),se=ce[0],ue=ce[1],de=t.useRef(null),fe=Co((function(e){de.current=e,no(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(le,e)})),pe=V(t.useState(null),2),he=pe[0],ve=pe[1],ge=t.useRef(null),me=Co((function(e){no(e)&&he!==e&&(ve(e),ge.current=e)})),be=t.Children.only(a),ye=(null==be?void 0:be.props)||{},we={},xe=Co((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=na(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=na(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ke=Lu(i,H,K,U),Ce=Lu(i,W,X,G),Se=V(t.useState(f||!1),2),Ee=Se[0],Oe=Se[1],_e=null!=d?d:Ee,$e=Co((function(e){void 0===d&&Oe(e)}));Xe((function(){Oe(d||!1)}),[d]);var je=t.useRef(_e);je.current=_e;var Ne=t.useRef([]);Ne.current=[];var Ie=Co((function(e){var t;$e(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:_e)!==e&&(Ne.current.push(e),null==p||p(e))})),Pe=t.useRef(),Re=function(){clearTimeout(Pe.current)},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Re(),0===t?Ie(e):Pe.current=setTimeout((function(){Ie(e)}),1e3*t)};t.useEffect((function(){return Re}),[]);var Ae=V(t.useState(!1),2),Te=Ae[0],qe=Ae[1];Xe((function(e){e&&!_e||qe(!0)}),[_e]);var Le=V(t.useState(null),2),De=Le[0],ze=Le[1],Be=V(t.useState([0,0]),2),Fe=Be[0],He=Be[1],We=function(e){He([e.clientX,e.clientY])},Ve=function(e,n,r,o,i,a,l){var c=V(t.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=t.useRef(0),f=t.useMemo((function(){return n?zu(n):[]}),[n]),p=t.useRef({});e||(p.current={});var h=Co((function(){if(n&&r&&e){var t,c,s,d=n,h=d.ownerDocument,v=Du(d).getComputedStyle(d),g=v.width,m=v.height,b=v.position,y=d.style.left,w=d.style.top,x=d.style.right,C=d.style.bottom,S=d.style.overflow,E=k(k({},i[o]),a),O=h.createElement("div");if(null===(t=d.parentElement)||void 0===t||t.appendChild(O),O.style.left="".concat(d.offsetLeft,"px"),O.style.top="".concat(d.offsetTop,"px"),O.style.position=b,O.style.height="".concat(d.offsetHeight,"px"),O.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(r))s={x:r[0],y:r[1],width:0,height:0};else{var _=r.getBoundingClientRect();s={x:_.x,y:_.y,width:_.width,height:_.height}}var $=d.getBoundingClientRect(),j=h.documentElement,N=j.clientWidth,I=j.clientHeight,P=j.scrollWidth,R=j.scrollHeight,M=j.scrollTop,A=j.scrollLeft,T=$.height,q=$.width,L=s.height,D=s.width,z={left:0,top:0,right:N,bottom:I},B={left:-A,top:-M,right:P-A,bottom:R-M},F=E.htmlRegion,H="visible",W="visibleFirst";"scroll"!==F&&F!==W&&(F=H);var U=F===W,Y=Hu(B,f),K=Hu(z,f),G=F===H?K:Y,X=U?K:G;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var Q=d.getBoundingClientRect();d.style.left=y,d.style.top=w,d.style.right=x,d.style.bottom=C,d.style.overflow=S,null===(c=d.parentElement)||void 0===c||c.removeChild(O);var Z=Bu(Math.round(q/parseFloat(g)*1e3)/1e3),J=Bu(Math.round(T/parseFloat(m)*1e3)/1e3);if(0===Z||0===J||no(r)&&!lc(r))return;var ee=E.offset,te=E.targetOffset,ne=V(Vu($,ee),2),re=ne[0],oe=ne[1],ie=V(Vu(s,te),2),ae=ie[0],le=ie[1];s.x-=ae,s.y-=le;var ce=V(E.points||[],2),se=ce[0],ue=Uu(ce[1]),de=Uu(se),fe=Yu(s,ue),pe=Yu($,de),he=k({},E),ve=fe.x-pe.x+re,ge=fe.y-pe.y+oe;function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G,r=$.x+e,o=$.y+t,i=r+q,a=o+T,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var me,be,ye,we,xe=st(ve,ge),ke=st(ve,ge,K),Ce=Yu(s,["t","l"]),Se=Yu($,["t","l"]),Ee=Yu(s,["b","r"]),Oe=Yu($,["b","r"]),_e=E.overflow||{},$e=_e.adjustX,je=_e.adjustY,Ne=_e.shiftX,Ie=_e.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};function ut(){me=$.y+ge,be=me+T,ye=$.x+ve,we=ye+q}ut();var Re=Pe(je),Me=de[0]===ue[0];if(Re&&"t"===de[0]&&(be>X.bottom||p.current.bt)){var Ae=ge;Me?Ae-=T-L:Ae=Ce.y-Oe.y-oe;var Te=st(ve,Ae),qe=st(ve,Ae,K);Te>xe||Te===xe&&(!U||qe>=ke)?(p.current.bt=!0,ge=Ae,oe=-oe,he.points=[Ku(de,0),Ku(ue,0)]):p.current.bt=!1}if(Re&&"b"===de[0]&&(me<X.top||p.current.tb)){var Le=ge;Me?Le+=T-L:Le=Ee.y-Se.y-oe;var De=st(ve,Le),ze=st(ve,Le,K);De>xe||De===xe&&(!U||ze>=ke)?(p.current.tb=!0,ge=Le,oe=-oe,he.points=[Ku(de,0),Ku(ue,0)]):p.current.tb=!1}var Be=Pe($e),Fe=de[1]===ue[1];if(Be&&"l"===de[1]&&(we>X.right||p.current.rl)){var He=ve;Fe?He-=q-D:He=Ce.x-Oe.x-re;var We=st(He,ge),Ve=st(He,ge,K);We>xe||We===xe&&(!U||Ve>=ke)?(p.current.rl=!0,ve=He,re=-re,he.points=[Ku(de,1),Ku(ue,1)]):p.current.rl=!1}if(Be&&"r"===de[1]&&(ye<X.left||p.current.lr)){var Ue=ve;Fe?Ue+=q-D:Ue=Ee.x-Se.x-re;var Ye=st(Ue,ge),Ke=st(Ue,ge,K);Ye>xe||Ye===xe&&(!U||Ke>=ke)?(p.current.lr=!0,ve=Ue,re=-re,he.points=[Ku(de,1),Ku(ue,1)]):p.current.lr=!1}ut();var Ge=!0===Ne?0:Ne;"number"==typeof Ge&&(ye<K.left&&(ve-=ye-K.left-re,s.x+D<K.left+Ge&&(ve+=s.x-K.left+D-Ge)),we>K.right&&(ve-=we-K.right-re,s.x>K.right-Ge&&(ve+=s.x-K.right+Ge)));var Xe=!0===Ie?0:Ie;"number"==typeof Xe&&(me<K.top&&(ge-=me-K.top-oe,s.y+L<K.top+Xe&&(ge+=s.y-K.top+L-Xe)),be>K.bottom&&(ge-=be-K.bottom-oe,s.y>K.bottom-Xe&&(ge+=s.y-K.bottom+Xe)));var Qe=$.x+ve,Ze=Qe+q,Je=$.y+ge,et=Je+T,tt=s.x,nt=tt+D,rt=s.y,ot=rt+L,it=(Math.max(Qe,tt)+Math.min(Ze,nt))/2-Qe,at=(Math.max(Je,rt)+Math.min(et,ot))/2-Je;null==l||l(n,he);var lt=Q.right-$.x-(ve+$.width),ct=Q.bottom-$.y-(ge+$.height);u({ready:!0,offsetX:ve/Z,offsetY:ge/J,offsetR:lt/Z,offsetB:ct/J,arrowX:it/Z,arrowY:at/J,scaleX:Z,scaleY:J,align:he})}})),v=function(){u((function(e){return k(k({},e),{},{ready:!1})}))};return Xe(v,[o]),Xe((function(){e||v()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(_e,se,D?Fe:he,I,R,M,B),Ue=V(Ve,11),Ye=Ue[0],Ke=Ue[1],Ge=Ue[2],Qe=Ue[3],Ze=Ue[4],Je=Ue[5],et=Ue[6],tt=Ue[7],nt=Ue[8],rt=Ue[9],ot=Ue[10],it=function(e,n,r,o){return t.useMemo((function(){var t=Tu(null!=r?r:n),i=Tu(null!=o?o:n),a=new Set(t),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,n,r,o])}(ne,c,s,u),at=V(it,2),lt=at[0],ct=at[1],st=lt.has("click"),ut=ct.has("click")||ct.has("contextMenu"),dt=Co((function(){Te||ot()}));!function(e,t,n,r,o){Xe((function(){if(e&&t&&n){var i=n,a=zu(t),l=zu(i),c=Du(i),s=new Set([c].concat(Y(a),Y(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,he,se,dt,(function(){je.current&&D&&ut&&Me(!1)})),Xe((function(){dt()}),[Fe,I]),Xe((function(){!_e||null!=R&&R[I]||dt()}),[JSON.stringify(M)]);var ft=t.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(qu(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(R,i,rt,D);return to()(e,null==q?void 0:q(rt))}),[rt,q,R,i,D]);t.useImperativeHandle(r,(function(){return{nativeElement:ge.current,popupElement:de.current,forceAlign:dt}}));var pt=V(t.useState(0),2),ht=pt[0],vt=pt[1],gt=V(t.useState(0),2),mt=gt[0],bt=gt[1],yt=function(){if(T&&he){var e=he.getBoundingClientRect();vt(e.width),bt(e.height)}};function wt(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Me(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(l))}}Xe((function(){De&&(ot(),De(),ze(null))}),[De]),(st||ut)&&(we.onClick=function(e){var t;je.current&&ut?Me(!1):!je.current&&st&&(We(e),Me(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),function(e,n,r,o,i,a,l,c){var s=t.useRef(e);s.current=e,t.useEffect((function(){if(n&&o&&(!i||a)){var e=function(e){var t=e.target;s.current&&!l(t)&&c(!1)},t=Du(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u=na(r);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,i,a])}(_e,ut,he,se,w,C,xe,Me);var xt,kt,Ct=lt.has("hover"),St=ct.has("hover");Ct&&(wt("onMouseEnter",!0,v,(function(e){We(e)})),wt("onPointerEnter",!0,v,(function(e){We(e)})),xt=function(e){(_e||Te)&&null!=se&&se.contains(e.target)&&Me(!0,v)},D&&(we.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),St&&(wt("onMouseLeave",!1,m),wt("onPointerLeave",!1,m),kt=function(){Me(!1,m)}),lt.has("focus")&&wt("onFocus",!0,b),ct.has("focus")&&wt("onBlur",!1,y),lt.has("contextMenu")&&(we.onContextMenu=function(e){var t;je.current&&ct.has("contextMenu")?Me(!1):(We(e),Me(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),Q&&(we.className=to()(ye.className,Q));var Et=k(k({},ye),we),Ot={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(Ot[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Et[e])||void 0===t||t.call.apply(t,[Et].concat(r)),J[e].apply(J,r)})}));var _t=t.cloneElement(be,k(k({},Et),Ot)),$t={x:Je,y:et},jt=F?k({},!0!==F?F:{}):null;return t.createElement(t.Fragment,null,t.createElement(ku,{disabled:!_e,ref:me,onResize:function(){yt(),dt()}},t.createElement(Mu,{getTriggerDOMNode:Z},_t)),t.createElement(Au.Provider,{value:ae},t.createElement(Pu,{portal:e,ref:fe,prefixCls:i,popup:$,className:to()(j,ft),style:N,target:he,onMouseEnter:xt,onMouseLeave:kt,onPointerEnter:xt,zIndex:A,open:_e,keepDom:Te,fresh:L,onClick:z,mask:w,motion:ke,maskMotion:Ce,onVisibleChanged:function(e){qe(!1),ot(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){yt(),ze((function(){return e}))}))},forceRender:E,autoDestroy:ee,getPopupContainer:S,align:rt,arrow:jt,arrowPos:$t,ready:Ye,offsetX:Ke,offsetY:Ge,offsetR:Qe,offsetB:Ze,onAlign:dt,stretch:T,targetWidth:ht/tt,targetHeight:mt/nt})))}));return n}(Vs),Qu={shiftX:64,adjustY:1},Zu={adjustX:1,shiftY:!0},Ju=[0,0],ed={left:{points:["cr","cl"],overflow:Zu,offset:[-4,0],targetOffset:Ju},right:{points:["cl","cr"],overflow:Zu,offset:[4,0],targetOffset:Ju},top:{points:["bc","tc"],overflow:Qu,offset:[0,-4],targetOffset:Ju},bottom:{points:["tc","bc"],overflow:Qu,offset:[0,4],targetOffset:Ju},topLeft:{points:["bl","tl"],overflow:Qu,offset:[0,-4],targetOffset:Ju},leftTop:{points:["tr","tl"],overflow:Zu,offset:[-4,0],targetOffset:Ju},topRight:{points:["br","tr"],overflow:Qu,offset:[0,-4],targetOffset:Ju},rightTop:{points:["tl","tr"],overflow:Zu,offset:[4,0],targetOffset:Ju},bottomRight:{points:["tr","br"],overflow:Qu,offset:[0,4],targetOffset:Ju},rightBottom:{points:["bl","br"],overflow:Zu,offset:[4,0],targetOffset:Ju},bottomLeft:{points:["tl","bl"],overflow:Qu,offset:[0,4],targetOffset:Ju},leftBottom:{points:["br","bl"],overflow:Zu,offset:[-4,0],targetOffset:Ju}},td=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],nd=function(e,n){var r=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,l=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,v=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,x=e.align,C=void 0===x?{}:x,S=e.destroyTooltipOnHide,E=void 0!==S&&S,O=e.defaultVisible,_=e.getTooltipContainer,$=e.overlayInnerStyle,j=(e.arrowContent,e.overlay),N=e.id,I=e.showArrow,P=void 0===I||I,R=so(e,td),M=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(function(){return M.current}));var A=k({},R);"visible"in e&&(A.popupVisible=e.visible);return t.createElement(Xu,ut({popupClassName:r,prefixCls:f,popup:function(){return t.createElement(As,{key:"content",prefixCls:f,id:N,overlayInnerStyle:$},j)},action:i,builtinPlacements:ed,popupPlacement:w,ref:M,popupAlign:C,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:s,popupStyle:u,mouseEnterDelay:l,arrow:P},A),p)},rd=(0,t.forwardRef)(nd);const od=()=>({height:0,opacity:0}),id=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ad=e=>({height:e?e.offsetHeight:0}),ld=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,cd=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var sd=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:od,onEnterStart:od,onAppearActive:id,onEnterActive:id,onLeaveStart:ad,onLeaveActive:od,onAppearEnd:ld,onEnterEnd:ld,onLeaveEnd:ld,motionDeadline:500}};function ud(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,h=2*o-0,v=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${v} Z')`,arrowPolygon:`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`}}const dd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Fe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},fd=8;function pd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?fd:r}}function hd(e,t){return e?t:{}}function vd(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},dd(e,t,o)),{"&:before":{background:t}})]},hd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),hd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),hd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),hd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const gd={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"]}},md={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"]}},bd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function yd(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(gd).forEach((e=>{const s=r&&md[e]||gd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,bd.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=pd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},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),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const wd=e=>({animationDuration:e,animationFillMode:"both"}),xd=e=>({animationDuration:e,animationFillMode:"both"}),kd=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},wd(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},xd(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Cd=new bn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sd=new bn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ed=new bn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Od=new bn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),_d=new bn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),$d=new bn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),jd={zoom:{inKeyframes:Cd,outKeyframes:Sd},"zoom-big":{inKeyframes:Ed,outKeyframes:Od},"zoom-big-fast":{inKeyframes:Ed,outKeyframes:Od},"zoom-left":{inKeyframes:new bn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new bn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new bn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new bn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:_d,outKeyframes:$d},"zoom-down":{inKeyframes:new bn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new bn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Nd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=jd[t];return[kd(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Id=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Pd(e,t){return Id.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Rd=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ti(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":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Fe(e.calc(s).div(2).equal())} ${Fe(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,fd)}},[`${t}-content`]:{position:"relative"}}),Pd(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},vd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Md=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},pd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),ud(cl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Ad=function(e){const t=Sl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=cl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Rd(o),Nd(e,"zoom-big-fast")]}),Md,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Td=Id.map((e=>`${e}-inverse`));function qd(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Id.includes(e):[].concat(Y(Td),Y(Id)).includes(e)}(t),r=to()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Ld=e=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=t.useContext(D),s=c("tooltip",n),[u,d,f]=Ad(s),p=qd(s,a),h=p.arrowStyle,v=Object.assign(Object.assign({},l),p.overlayStyle),g=to()(d,f,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(t.createElement("div",{className:g,style:h},t.createElement("div",{className:`${s}-arrow`}),t.createElement(As,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:v}),i)))},Dd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zd=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!v,[,k]=Pi(),{getPopupContainer:C,getPrefixCls:S,direction:E}=t.useContext(D),O=Nn("Tooltip"),_=t.useRef(null),$=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};t.useImperativeHandle(n,(()=>{var e;return{forceAlign:$,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement}}));const[j,N]=Oo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),I=!g&&!m&&0!==g,P=t.useMemo((()=>{var e,t;let n=y;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:y),b||yd({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})}),[y,v,b,k]),R=t.useMemo((()=>0===g?g:m||g||""),[m,g]),M=t.createElement(Sc,null,"function"==typeof R?R():R),{getPopupContainer:A,placement:T="top",mouseEnterDelay:q=.1,mouseLeaveDelay:L=.1,overlayStyle:z,rootClassName:B}=e,F=Dd(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=S("tooltip",i),W=S(),V=e["data-popover-inject"];let U=j;"open"in e||"visible"in e||!I||(U=!1);const Y=t.isValidElement(d)&&!cc(d)?d:t.createElement("span",null,d),K=Y.props,G=K.className&&"string"!=typeof K.className?K.className:to()(K.className,a||`${H}-open`),[X,Q,Z]=Ad(H,!V),J=qd(H,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=to()(c,{[`${H}-rtl`]:"rtl"===E},J.className,B,Q,Z),[re,oe]=il("Tooltip",F.zIndex),ie=t.createElement(rd,Object.assign({},F,{zIndex:re,showArrow:x,placement:T,mouseEnterDelay:q,mouseLeaveDelay:L,prefixCls:H,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),z),getTooltipContainer:A||l||C,ref:_,builtinPlacements:P,overlay:M,visible:U,onVisibleChange:t=>{var n,r;N(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:t.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:cd(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?uc(Y,{className:G}):Y);return X(t.createElement(el.Provider,{value:oe},ie))})),Bd=zd;Bd._InternalPanelDoNotUseOrYouWillBeFired=Ld;var Fd=Bd;var Hd=(e,n)=>{const r=t.useContext(Fn),o=t.useMemo((()=>{var t;const o=n||qn[e],i=null!==(t=null==r?void 0:r[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,n,r]);return[o,t.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?qn.locale:e}),[r])]};function Wd(e){return!(!e||!e.then)}var Vd=e=>{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=t.useRef(!1),p=t.useRef(null),[h,v]=So(!1),g=function(){null==a||a.apply(void 0,arguments)};t.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return t.createElement(xs,Object.assign({},Nc(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void g();let t;if(c){if(t=d(e),u&&!Wd(t))return f.current=!1,void g(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!t)return void g();(e=>{Wd(e)&&(v(!0),e.then((function(){v(!1,!0),g.apply(void 0,arguments),f.current=!1}),(e=>{if(v(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:o},i,{ref:p}),r)};const Ud=t.createContext({}),{Provider:Yd}=Ud;var Kd=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=(0,t.useContext)(Ud);return i?t.createElement(Vd,{isSilent:o,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${a}-btn`},r):null};var Gd=()=>{const{autoFocusButton:e,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=(0,t.useContext)(Ud);return t.createElement(Vd,{isSilent:r,type:l||"primary",actionFn:s,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)},Xd=t.createContext({});function Qd(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Zd(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var Jd=t.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),ef={width:0,height:0,overflow:"hidden",outline:"none"},tf={outline:"none"},nf=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.title,l=e.ariaId,c=e.footer,s=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,g=e.modalRender,m=e.onMouseDown,b=e.onMouseUp,y=e.holderRef,w=e.visible,x=e.forceRender,C=e.width,S=e.height,E=e.classNames,O=e.styles,_=t.useContext(Xd).panel,$=lo(y,_),j=(0,t.useRef)(),N=(0,t.useRef)(),I=(0,t.useRef)();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===N.current?j.current.focus():e||t!==j.current||N.current.focus()}}}));var P,R,M={};void 0!==C&&(M.width=C),void 0!==S&&(M.height=S),c&&(P=t.createElement("div",{className:to()("".concat(r,"-footer"),null==E?void 0:E.footer),style:k({},null==O?void 0:O.footer)},c)),a&&(R=t.createElement("div",{className:to()("".concat(r,"-header"),null==E?void 0:E.header),style:k({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(r,"-title"),id:l},a)));var A,T=(0,t.useMemo)((function(){return"object"===v(s)&&null!==s?s:s?{closeIcon:null!=u?u:t.createElement("span",{className:"".concat(r,"-close-x")})}:{}}),[s,u]),q=Da(T,!0);s&&(A=t.createElement("button",ut({type:"button",onClick:d,"aria-label":"Close"},q,{className:"".concat(r,"-close")}),T.closeIcon));var L=t.createElement("div",{className:to()("".concat(r,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},A,R,t.createElement("div",ut({className:to()("".concat(r,"-body"),null==E?void 0:E.body),style:k(k({},p),null==O?void 0:O.body)},h),f),P);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:$,style:k(k({},i),M),className:to()(r,o),onMouseDown:m,onMouseUp:b},t.createElement("div",{tabIndex:0,ref:j,style:ef,"aria-hidden":"true"}),t.createElement("div",{ref:I,tabIndex:-1,style:tf},t.createElement(Jd,{shouldUpdate:w||x},g?g(L):L)),t.createElement("div",{tabIndex:0,ref:N,style:ef,"aria-hidden":"true"}))}));var rf=nf,of=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.title,i=e.style,a=e.className,l=e.visible,c=e.forceRender,s=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=(0,t.useRef)(),v=V(t.useState(),2),g=v[0],m=v[1],b={};function y(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Zd(o),n.top+=Zd(o,!0),n}(h.current);m(p?"".concat(p.x-e.left,"px ").concat(p.y-e.top,"px"):"")}return g&&(b.transformOrigin=g),t.createElement(xi,{visible:l,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:c,motionName:u,removeOnLeave:s,ref:h},(function(l,c){var s=l.className,u=l.style;return t.createElement(rf,ut({},e,{ref:n,title:o,ariaId:d,prefixCls:r,holderRef:c,style:k(k(k({},u),i),b),className:to()(a,s)}))}))}));of.displayName="Content";var af=of;function lf(e){var n=e.prefixCls,r=e.style,o=e.visible,i=e.maskProps,a=e.motionName,l=e.className;return t.createElement(xi,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(e,o){var a=e.className,c=e.style;return t.createElement("div",ut({ref:o,style:k(k({},c),r),className:to()("".concat(n,"-mask"),a,l)},i))}))}function cf(e){var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,l=e.keyboard,c=void 0===l||l,s=e.focusTriggerAfterClose,u=void 0===s||s,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,h=e.onClose,v=e.afterOpenChange,g=e.afterClose,m=e.transitionName,b=e.animation,y=e.closable,w=void 0===y||y,x=e.mask,C=void 0===x||x,S=e.maskTransitionName,E=e.maskAnimation,O=e.maskClosable,_=void 0===O||O,$=e.maskStyle,j=e.maskProps,N=e.rootClassName,I=e.classNames,P=e.styles;var R=(0,t.useRef)(),M=(0,t.useRef)(),A=(0,t.useRef)(),T=V(t.useState(a),2),q=T[0],L=T[1],D=Eu();function z(e){null==h||h(e)}var B=(0,t.useRef)(!1),F=(0,t.useRef)(),H=null;return _&&(H=function(e){B.current?B.current=!1:M.current===e.target&&z(e)}),(0,t.useEffect)((function(){a&&(L(!0),X(M.current,document.activeElement)||(R.current=document.activeElement))}),[a]),(0,t.useEffect)((function(){return function(){clearTimeout(F.current)}}),[]),t.createElement("div",ut({className:to()("".concat(r,"-root"),N)},Da(e,{data:!0})),t.createElement(lf,{prefixCls:r,visible:C&&a,motionName:Qd(r,S,E),style:k(k({zIndex:o},$),null==P?void 0:P.mask),maskProps:j,className:null==I?void 0:I.mask}),t.createElement("div",ut({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===Ma.ESC)return e.stopPropagation(),void z(e);a&&e.keyCode===Ma.TAB&&A.current.changeActive(!e.shiftKey)},className:to()("".concat(r,"-wrap"),f,null==I?void 0:I.wrapper),ref:M,onClick:H,style:k(k(k({zIndex:o},d),null==P?void 0:P.wrapper),{},{display:q?null:"none"})},p),t.createElement(af,ut({},e,{onMouseDown:function(){clearTimeout(F.current),B.current=!0},onMouseUp:function(){F.current=setTimeout((function(){B.current=!1}))},ref:A,closable:w,ariaId:D,prefixCls:r,visible:a&&q,onClose:z,onVisibleChanged:function(e){if(e)X(M.current,document.activeElement)||null===(t=A.current)||void 0===t||t.focus();else{if(L(!1),C&&R.current&&u){try{R.current.focus({preventScroll:!0})}catch(e){}R.current=null}q&&(null==g||g())}var t;null==v||v(e)},motionName:Qd(r,m,b)}))))}var sf=function(e){var n=e.visible,r=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,l=e.afterClose,c=e.panelRef,s=V(t.useState(n),2),u=s[0],d=s[1],f=t.useMemo((function(){return{panel:c}}),[c]);return t.useEffect((function(){n&&d(!0)}),[n]),o||!a||u?t.createElement(Xd.Provider,{value:f},t.createElement(Vs,{open:n||o||u,autoDestroy:!1,getContainer:r,autoLock:n||u},t.createElement(cf,ut({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}})))):null};sf.displayName="Dialog";var uf=sf;function df(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function ff(e){const{closable:n,closeIcon:r}=e||{};return t.useMemo((()=>{if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,r])}function pf(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const hf={};var vf="RC_FORM_INTERNAL_HOOKS",gf=function(){ge(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},mf=t.createContext({getFieldValue:gf,getFieldsValue:gf,getFieldError:gf,getFieldWarning:gf,getFieldsError:gf,isFieldsTouched:gf,isFieldTouched:gf,isFieldValidating:gf,isFieldsValidating:gf,resetFields:gf,setFields:gf,setFieldValue:gf,setFieldsValue:gf,validateFields:gf,submit:gf,getInternalHooks:function(){return gf(),{dispatch:gf,initEntityValue:gf,registerField:gf,useSubscribe:gf,setInitialValues:gf,destroyForm:gf,setCallbacks:gf,registerWatch:gf,getFields:gf,setValidateMessages:gf,setPreserve:gf,getInitialValue:gf}}}),bf=t.createContext(null);function yf(e){return null==e?[]:Array.isArray(e)?e:[e]}function wf(){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 xf=wf();function kf(e){var t="function"==typeof Map?new Map:void 0;return kf=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;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,n)}function n(){return function(e,t,n){if(mo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ho(o,n.prototype),o}(e,arguments,go(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ho(n,e)},kf(e)}var Cf=o(5606),Sf=/%[sdj%]/g;function Ef(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 Of(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Sf,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function _f(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 $f(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}void 0!==Cf&&Cf.env;var jf=function(e){vo(n,e);var t=wo(n);function n(e,r){var o;return be(this,n),w(bo(o=t.call(this,"Async Validation Error")),"errors",void 0),w(bo(o),"fields",void 0),o.errors=e,o.fields=r,o}return we(n)}(kf(Error));function Nf(e,t,n,r,o){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,Y(e[n]||[]))})),t}(e);$f(a,n,(function(e){return r(e),e.length?i(new jf(e,Ef(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new jf(u,Ef(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?$f(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Y(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function If(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Pf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===v(r)&&"object"===v(e[n])?e[n]=k(k({},e[n]),r):e[n]=r}return e}var Rf,Mf="enum",Af=function(e,t,n,r,o){e[Mf]=Array.isArray(e[Mf])?e[Mf]:[],-1===e[Mf].indexOf(t)&&r.push(Of(o.messages[Mf],e.fullField,e[Mf].join(", ")))},Tf=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Of(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Of(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},qf=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(Of(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(Of(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(Of(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(Of(o.messages[s].range,e.fullField,e.min,e.max))},Lf=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!_f(t,i||e.type)||r.push(Of(o.messages.required,e.fullField))},Df=/^(([^<>()\[\]\\.,;:\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,}))$/,zf=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Bf={integer:function(e){return Bf.number(e)&&parseInt(e,10)===e},float:function(e){return Bf.number(e)&&!Bf.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"===v(e)&&!Bf.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Df)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Rf)return Rf;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Rf=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(zf)}},Ff=function(e,t,n,r,o){if(e.required&&void 0===t)Lf(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Bf[i](t)||r.push(Of(o.messages.types[i],e.fullField,e.type)):i&&v(t)!==e.type&&r.push(Of(o.messages.types[i],e.fullField,e.type))}},Hf=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Of(o.messages.whitespace,e.fullField))},Wf={required:Lf,whitespace:Hf,type:Ff,range:qf,enum:Af,pattern:Tf},Vf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o)}n(i)},Uf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Wf.required(e,t,r,i,o,"array"),null!=t&&(Wf.type(e,t,r,i,o),Wf.range(e,t,r,i,o))}n(i)},Yf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&Wf.type(e,t,r,i,o)}n(i)},Kf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t,"date")&&!e.required)return n();var a;if(Wf.required(e,t,r,i,o),!_f(t,"date"))a=t instanceof Date?t:new Date(t),Wf.type(e,a,r,i,o),a&&Wf.range(e,a.getTime(),r,i,o)}n(i)},Gf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&Wf.enum(e,t,r,i,o)}n(i)},Xf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&(Wf.type(e,t,r,i,o),Wf.range(e,t,r,i,o))}n(i)},Qf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&(Wf.type(e,t,r,i,o),Wf.range(e,t,r,i,o))}n(i)},Zf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&Wf.type(e,t,r,i,o)}n(i)},Jf=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&(Wf.type(e,t,r,i,o),Wf.range(e,t,r,i,o))}n(i)},ep=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),void 0!==t&&Wf.type(e,t,r,i,o)}n(i)},tp=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t,"string")&&!e.required)return n();Wf.required(e,t,r,i,o),_f(t,"string")||Wf.pattern(e,t,r,i,o)}n(i)},np=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t)&&!e.required)return n();Wf.required(e,t,r,i,o),_f(t)||Wf.type(e,t,r,i,o)}n(i)},rp=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":v(t);Wf.required(e,t,r,i,o,a),n(i)},op=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t,"string")&&!e.required)return n();Wf.required(e,t,r,i,o,"string"),_f(t,"string")||(Wf.type(e,t,r,i,o),Wf.range(e,t,r,i,o),Wf.pattern(e,t,r,i,o),!0===e.whitespace&&Wf.whitespace(e,t,r,i,o))}n(i)},ip=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(_f(t,i)&&!e.required)return n();Wf.required(e,t,r,a,o,i),_f(t,i)||Wf.type(e,t,r,a,o)}n(a)},ap={string:op,method:Zf,number:Jf,boolean:Yf,regexp:np,integer:Qf,float:Xf,array:Uf,object:ep,enum:Gf,pattern:tp,date:Kf,url:ip,hex:ip,email:ip,required:rp,any:Vf},lp=function(){function e(t){be(this,e),w(this,"rules",null),w(this,"_messages",xf),this.define(t)}return we(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==v(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=Pf(wf(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===xf&&(a=wf()),Pf(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=k({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":v(i)))),(a="function"==typeof a?{validator:a}:k({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return Nf(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==v(a.fields)&&"object"!==v(a.defaultField));function s(e,t){return k(k({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Y(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(If(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(If(a,r)):o.error&&(d=[o.error(a,Of(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=k(k({},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(s.bind(null,e))}));var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Y(d)),e&&e.length&&t.push.apply(t,Y(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Y(t)):o.push(t);o.length?(a=Ef(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!ap.hasOwnProperty(e.type))throw new Error(Of("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value: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]?ap.required:ap[this.getType(e)]||void 0}}]),e}();w(lp,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ap[e]=t})),w(lp,"warning",(function(){})),w(lp,"messages",xf),w(lp,"validators",ap);var cp="'${name}' is not a valid ${type}",sp={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:cp,method:cp,array:cp,object:cp,number:cp,date:cp,boolean:cp,integer:cp,float:cp,regexp:cp,email:cp,url:cp,hex:cp},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}"}},up=lp;function dp(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var fp="CODE_LOGIC_ERROR";function pp(e,t,n,r,o){return hp.apply(this,arguments)}function hp(){return hp=b(g().mark((function e(n,r,o,i,a){var l,c,s,u,d,f,p,h,v;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=k({},o)).ruleIndex,up.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(fp)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new up(w({},n,[l])),d=_n(sp,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(w({},n,r),k({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,n){var r=e.message,o=r===fp?d.default:r;return t.isValidElement(o)?t.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(r.map((function(e,t){return pp("".concat(n,".").concat(t),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Y(e),Y(t))}),[]));case 23:return h=k(k({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),v=f.map((function(e){return"string"==typeof e?dp(e,h):e})),e.abrupt("return",v);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),hp.apply(this,arguments)}function vp(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=k(k({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!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(){ge(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,ge(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=b(g().mark((function e(n,o){var a,s,u;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,pp(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),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 s=c.map((function(e){return pp(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return mp.apply(this,arguments)}(s):function(e){return gp.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function gp(){return(gp=b(g().mark((function e(t){return g().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,Y(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mp(){return(mp=b(g().mark((function e(t){var n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bp(e){return yf(e)}function yp(e,t){var n={};return t.forEach((function(t){var r=kn(e,t);n=Sn(n,t,r)})),n}function xp(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return kp(t,e,n)}))}function kp(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 Cp(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===v(t.target)&&e in t.target?t.target[e]:t}function Sp(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Y(e.slice(0,n)),[o],Y(e.slice(n,t)),Y(e.slice(t+1,r))):i<0?[].concat(Y(e.slice(0,t)),Y(e.slice(t+1,n+1)),[o],Y(e.slice(n+1,r))):e}var Ep=["name"],Op=[];function _p(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var $p=function(e){vo(r,e);var n=wo(r);function r(e){var o;(be(this,r),w(bo(o=n.call(this,e)),"state",{resetCount:0}),w(bo(o),"cancelRegisterFunc",null),w(bo(o),"mounted",!1),w(bo(o),"touched",!1),w(bo(o),"dirty",!1),w(bo(o),"validatePromise",void 0),w(bo(o),"prevValidating",void 0),w(bo(o),"errors",Op),w(bo(o),"warnings",Op),w(bo(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,bp(r)),o.cancelRegisterFunc=null})),w(bo(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Y(void 0===n?[]:n),Y(t)):[]})),w(bo(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}))})),w(bo(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),w(bo(o),"metaCache",null),w(bo(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=k(k({},o.getMeta()),{},{destroy:e});me(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),w(bo(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&xp(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||me(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Op,o.warnings=Op,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Op,o.warnings=Op,o.triggerMetaEvent(),null==c||c(),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||Op),"warnings"in h&&(o.warnings=h.warnings||Op),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&xp(t,u,!0))return void o.reRender();if(i&&!u.length&&_p(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(bp).some((function(e){return xp(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&_p(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),w(bo(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(b(g().mark((function r(){var a,l,s,u,d,f,p;return g().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,l=a.validateFirst,s=void 0!==l&&l,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||yf(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===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=vp(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Op;if(o.validatePromise===c){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?Op:o;t?r.push.apply(r,Y(i)):n.push.apply(n,Y(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Op,o.warnings=Op,o.triggerMetaEvent(),o.reRender()),c})),w(bo(o),"isFieldValidating",(function(){return!!o.validatePromise})),w(bo(o),"isFieldTouched",(function(){return o.touched})),w(bo(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(vf).getInitialValue)(o.getNamePath())})),w(bo(o),"getErrors",(function(){return o.errors})),w(bo(o),"getWarnings",(function(){return o.warnings})),w(bo(o),"isListField",(function(){return o.props.isListField})),w(bo(o),"isList",(function(){return o.props.isList})),w(bo(o),"isPreserve",(function(){return o.props.preserve})),w(bo(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}})),w(bo(o),"getOnlyChild",(function(e){if("function"==typeof e){var n=o.getMeta();return k(k({},o.getOnlyChild(e(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=xc(e);return 1===r.length&&t.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),w(bo(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return kn(e||t(!0),n)})),w(bo(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,v=p(vf).dispatch,g=o.getValue(),m=s||function(e){return w({},c,e)},b=e[r],y=void 0!==n?m(g):{};var x=k(k({},e),y);return x[r]=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=a?a.apply(void 0,n):Cp.apply(void 0,[c].concat(n)),l&&(e=l(e,g,h(!0))),v({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},yf(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}})),x})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(vf).initEntityValue)(bo(o));return o}return we(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(vf).registerField;this.cancelRegisterFunc=r(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,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?e=i:t.isValidElement(i)?e=t.cloneElement(i,this.getControlled(i.props)):(ge(!i,"`children` of Field is not validate ReactElement."),e=i),t.createElement(t.Fragment,{key:n},e)}}]),r}(t.Component);w($p,"contextType",mf),w($p,"defaultProps",{trigger:"onChange",valuePropName:"value"});var jp=function(e){var n=e.name,r=so(e,Ep),o=t.useContext(mf),i=t.useContext(bf),a=void 0!==n?bp(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),t.createElement($p,ut({key:l,name:a,isListField:!!i},r,{fieldContext:o}))};var Np=function(e){var n=e.name,r=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=t.useContext(mf),s=t.useContext(bf),u=t.useRef({keys:[],id:0}).current,d=t.useMemo((function(){var e=bp(c.prefixName)||[];return[].concat(Y(e),Y(bp(n)))}),[c.prefixName,n]),f=t.useMemo((function(){return k(k({},c),{},{prefixName:d})}),[c,d]),p=t.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(ge(!1,"Form.List only accepts function as children."),null):t.createElement(bf.Provider,{value:p},t.createElement(mf.Provider,{value:f},t.createElement(jp,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Y(u.keys.slice(0,t)),[u.id],Y(u.keys.slice(t))),i([].concat(Y(n.slice(0,t)),[e],Y(n.slice(t))))):(u.keys=[].concat(Y(u.keys),[u.id]),i([].concat(Y(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.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||(u.keys=Sp(u.keys,e,t),i(Sp(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var Ip="__@field_split__";function Pp(e){return e.map((function(e){return"".concat(v(e),":").concat(e)})).join(Ip)}var Rp=function(){function e(){be(this,e),w(this,"kvs",new Map)}return we(e,[{key:"set",value:function(e,t){this.kvs.set(Pp(e),t)}},{key:"get",value:function(e){return this.kvs.get(Pp(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(Pp(e))}},{key:"map",value:function(e){return Y(this.kvs.entries()).map((function(t){var n=V(t,2),r=n[0],o=n[1],i=r.split(Ip);return e({key:i.map((function(e){var t=V(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Mp=Rp,Ap=["name"],Tp=we((function e(t){var n=this;be(this,e),w(this,"formHooked",!1),w(this,"forceRootUpdate",void 0),w(this,"subscribable",!0),w(this,"store",{}),w(this,"fieldEntities",[]),w(this,"initialValues",{}),w(this,"callbacks",{}),w(this,"validateMessages",null),w(this,"preserve",null),w(this,"lastValidatePromise",null),w(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),w(this,"getInternalHooks",(function(e){return e===vf?(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}):(ge(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),w(this,"useSubscribe",(function(e){n.subscribable=e})),w(this,"prevWithoutPreserves",null),w(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=_n(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Sn(o,n,kn(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),w(this,"destroyForm",(function(){var e=new Mp;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),w(this,"getInitialValue",(function(e){var t=kn(n.initialValues,e);return e.length?_n(t):t})),w(this,"setCallbacks",(function(e){n.callbacks=e})),w(this,"setValidateMessages",(function(e){n.validateMessages=e})),w(this,"setPreserve",(function(e){n.preserve=e})),w(this,"watchList",[]),w(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),w(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),w(this,"timeoutId",null),w(this,"warningUnhooked",(function(){0})),w(this,"updateStore",(function(e){n.store=e})),w(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),w(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Mp;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),w(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=bp(e);return t.get(n)||{INVALIDATE_NAME_PATH:bp(e)}}))})),w(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===v(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),yp(n.store,l.map(bp))})),w(this,"getFieldValue",(function(e){n.warningUnhooked();var t=bp(e);return kn(n.store,t)})),w(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:bp(e[n]),errors:[],warnings:[]}}))})),w(this,"getFieldError",(function(e){n.warningUnhooked();var t=bp(e);return n.getFieldsError([t])[0].errors})),w(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=bp(e);return n.getFieldsError([t])[0].warnings})),w(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(bp),l=!1):(o=null,l=i):(o=i.map(bp),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Mp;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Y(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),w(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),w(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(bp);return t.some((function(e){var t=e.getNamePath();return xp(r,t)&&e.isFieldValidating()}))})),w(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),w(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Mp,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Y(Y(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))ge(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)ge(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(Sn(n.store,o,Y(i)[0].value))}}}}))})),w(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(_n(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(bp);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Sn(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),w(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=so(e,Ap),a=bp(o);r.push(a),"value"in i&&n.updateStore(Sn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),w(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=k(k({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),w(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===kn(n.store,r)&&n.updateStore(Sn(n.store,r,t))}})),w(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),w(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!kp(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Sn(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),w(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),w(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=k(k({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),w(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Y(r))}),r})),w(this,"updateValue",(function(e,t){var r=bp(e),o=n.store;n.updateStore(Sn(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(yp(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Y(i)))})),w(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=_n(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),w(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),w(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Mp;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=bp(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),w(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Mp;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return xp(e,n)}));a.length&&r(a,o)}})),w(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(bp):[],l=[],c=String(Date.now()),s=new Set,u=o||{},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(s.add(t.join(c)),!i||xp(a,t,d)){var r=e.validateRules(k({validateMessages:k(k({},sp),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Y(n)):r.push.apply(r,Y(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);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 v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),h})),w(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}));var qp=function(e){var n=t.useRef(),r=V(t.useState({}),2)[1];if(!n.current)if(e)n.current=e;else{var o=new Tp((function(){r({})}));n.current=o.getForm()}return[n.current]},Lp=t.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Dp=Lp,zp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Bp=function(e,n){var r=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,h=e.onValuesChange,g=e.onFieldsChange,m=e.onFinish,b=e.onFinishFailed,y=so(e,zp),w=t.useContext(Dp),x=V(qp(a),1)[0],C=x.getInternalHooks(vf),S=C.useSubscribe,E=C.setInitialValues,O=C.setCallbacks,_=C.setValidateMessages,$=C.setPreserve,j=C.destroyForm;t.useImperativeHandle(n,(function(){return x})),t.useEffect((function(){return w.registerForm(r,x),function(){w.unregisterForm(r)}}),[w,x,r]),_(k(k({},w.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(e){if(w.triggerFormChange(r,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(r,e),m&&m(e)},onFinishFailed:b}),$(l);var N,I=t.useRef(null);E(o,!I.current),I.current||(I.current=!0),t.useEffect((function(){return j}),[]);var P="function"==typeof c;P?N=c(x.getFieldsValue(!0),x):N=c;S(!P);var R=t.useRef();t.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==v(e)||"object"!==v(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Y(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(R.current||[],i||[])||x.setFields(i||[]),R.current=i}),[i,x]);var M=t.useMemo((function(){return k(k({},x),{},{validateTrigger:p})}),[x,p]),A=t.createElement(bf.Provider,{value:null},t.createElement(mf.Provider,{value:M},N));return!1===u?A:t.createElement(u,ut({},y,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),x.submit()},onReset:function(e){var t;e.preventDefault(),x.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),A)};function Fp(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Hp=function(){};var Wp=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=V((0,t.useState)(),2),u=s[0],d=s[1],f=(0,t.useMemo)((function(){return Fp(u)}),[u]),p=(0,t.useRef)(f);p.current=f;var h=(0,t.useContext)(mf),v=c||h,g=v&&v._init,m=bp(o),b=(0,t.useRef)(m);return b.current=m,Hp(m),(0,t.useEffect)((function(){if(g){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(vf).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):kn(n,b.current)},r=t((function(e,t){var r=n(e,t),o=Fp(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[g]),u},Vp=t.forwardRef(Bp);Vp.FormProvider=function(e){var n=e.validateMessages,r=e.onFormChange,o=e.onFormFinish,i=e.children,a=t.useContext(Lp),l=t.useRef({});return t.createElement(Lp.Provider,{value:k(k({},a),{},{validateMessages:k(k({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=k(k({},l.current),{},w({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=k({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},Vp.Field=jp,Vp.List=Np,Vp.useForm=qp,Vp.useWatch=Wp;const Up=t.createContext({});const Yp=e=>{let{children:n,status:r,override:o}=e;const i=(0,t.useContext)(Up),a=(0,t.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,i]);return t.createElement(Up.Provider,{value:a},n)},Kp=(0,t.createContext)(void 0);function Gp(){}const Xp=t.createContext({add:Gp,remove:Gp});var Qp=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:r}=(0,t.useContext)(Ud);return t.createElement(xs,Object.assign({onClick:r},e),n)};var Zp=()=>{const{confirmLoading:e,okButtonProps:n,okType:r,okTextLocale:o,onOk:i}=(0,t.useContext)(Ud);return t.createElement(xs,Object.assign({},Nc(r),{loading:e,onClick:i},n),o)};function Jp(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(Ca,{className:`${e}-close-icon`}))}const eh=e=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=Hd("Modal",Bn()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:o||(null==d?void 0:d.cancelText),okType:r,onOk:a,onCancel:l},p=t.useMemo((()=>f),Y(Object.values(f)));let h;return"function"==typeof u||void 0===u?(h=t.createElement(t.Fragment,null,t.createElement(Qp,null),t.createElement(Zp,null)),"function"==typeof u&&(h=u(h,{OkBtn:Zp,CancelBtn:Qp})),h=t.createElement(Yd,{value:p},h)):h=u,t.createElement(Vr,{disabled:!1},h)},th=new bn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),nh=new bn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),rh=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[kd(r,th,nh,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};function oh(e){return{position:e,inset:0}}const ih=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({},oh("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},oh("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:rh(e)}]},ah=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:`${Fe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ti(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Fe(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:`${Fe(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},zi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Fe(e.borderRadiusLG)} ${Fe(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"}}}]},lh=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ch=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return cl(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},sh=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Fe(e.paddingMD)} ${Fe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Fe(e.padding)} ${Fe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Fe(e.paddingXS)} ${Fe(e.padding)}`:0,footerBorderTop:e.wireframe?`${Fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Fe(2*e.padding)} ${Fe(2*e.padding)} ${Fe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var uh=Sl("Modal",(e=>{const t=ch(e);return[ah(t),lh(t),ih(t),Nd(t,"zoom")]}),sh,{unitless:{titleLineHeight:!0}}),dh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let fh;const ph=e=>{fh={x:e.pageX,y:e.pageY},setTimeout((()=>{fh=null}),100)};G()&&window.document.documentElement&&document.documentElement.addEventListener("click",ph,!0);var hh=e=>{var n;const{getPopupContainer:r,getPrefixCls:o,direction:i,modal:a}=t.useContext(D),l=t=>{const{onCancel:n}=e;null==n||n(t)};const{prefixCls:c,className:s,rootClassName:u,open:d,wrapClassName:f,centered:p,getContainer:h,focusTriggerAfterClose:v=!0,style:g,visible:m,width:b=520,footer:y,classNames:w,styles:x}=e,k=dh(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),C=o("modal",c),S=o(),E=Ja(C),[O,_,$]=uh(C,E),j=to()(f,{[`${C}-centered`]:!!p,[`${C}-wrap-rtl`]:"rtl"===i}),N=null!==y&&t.createElement(eh,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:l})),[I,P]=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hf;const o=ff(e),i=ff(n),a=t.useMemo((()=>Object.assign({closeIcon:t.createElement(Ca,null)},r)),[r]),l=t.useMemo((()=>!1!==o&&(o?pf(a,i,o):!1!==i&&(i?pf(a,i):!!a.closable&&a))),[o,i,a]);return t.useMemo((()=>{if(!1===l)return[!1,null];const{closeIconRender:e}=a,{closeIcon:n}=l;let r=n;if(null!=r){e&&(r=e(n));const o=Da(l,!0);Object.keys(o).length&&(r=t.isValidElement(r)?t.cloneElement(r,o):t.createElement("span",Object.assign({},o),r))}return[!0,r]}),[l,a])}(df(e),df(a),{closable:!0,closeIcon:t.createElement(Ca,{className:`${C}-close-icon`}),closeIconRender:e=>Jp(C,e)}),R=function(e){const n=t.useContext(Xp),r=t.useRef();return Co((t=>{if(t){const o=e?t.querySelector(e):t;n.add(o),r.current=o}else n.remove(r.current)}))}(`.${C}-content`),[M,A]=il("Modal",k.zIndex);return O(t.createElement(Sc,null,t.createElement(Yp,{status:!0,override:!0},t.createElement(el.Provider,{value:A},t.createElement(uf,Object.assign({width:b},k,{zIndex:M,getContainer:void 0===h?r:h,prefixCls:C,rootClassName:to()(_,u,$,E),footer:N,visible:null!=d?d:m,mousePosition:null!==(n=k.mousePosition)&&void 0!==n?n:fh,onClose:l,closable:I,closeIcon:P,focusTriggerAfterClose:v,transitionName:cd(S,"zoom",e.transitionName),maskTransitionName:cd(S,"fade",e.maskTransitionName),className:to()(_,s,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),g),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),w),{wrapper:to()(j,null==w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),x),panelRef:R}))))))};const vh=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=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:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Fe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${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}}};var gh=Cl(["Modal","confirm"],(e=>{const t=ch(e);return[vh(t)]}),sh,{order:-1e3}),mh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function bh(e){const{prefixCls:n,icon:r,okText:o,cancelText:i,confirmPrefixCls:a,type:l,okCancel:c,footer:s,locale:u}=e,d=mh(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&null!==r)switch(l){case"info":f=t.createElement(ja,null);break;case"success":f=t.createElement(ma,null);break;case"error":f=t.createElement(wa,null);break;default:f=t.createElement(Oa,null)}const p=null!=c?c:"confirm"===l,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[v]=Hd("Modal"),g=u||v,m=o||(p?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=i||(null==g?void 0:g.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:m,mergedOkCancel:p},d),w=t.useMemo((()=>y),Y(Object.values(y))),x=t.createElement(t.Fragment,null,t.createElement(Kd,null),t.createElement(Gd,null)),k=void 0!==e.title&&null!==e.title,C=`${a}-body`;return t.createElement("div",{className:`${a}-body-wrapper`},t.createElement("div",{className:to()(C,{[`${C}-has-title`]:k})},f,t.createElement("div",{className:`${a}-paragraph`},k&&t.createElement("span",{className:`${a}-title`},e.title),t.createElement("div",{className:`${a}-content`},e.content))),void 0===s||"function"==typeof s?t.createElement(Yd,{value:w},t.createElement("div",{className:`${a}-btns`},"function"==typeof s?s(x,{OkBtn:Gd,CancelBtn:Kd}):x)):s,t.createElement(gh,{prefixCls:n}))}const yh=e=>{const{close:n,zIndex:r,afterClose:o,open:i,keyboard:a,centered:l,getContainer:c,maskStyle:s,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:h,closable:v=!1,closeIcon:g,modalRender:m,focusTriggerAfterClose:b,onConfirm:y,styles:w}=e;const x=`${d}-confirm`,k=e.width||416,C=e.style||{},S=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,O=to()(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===u},e.className),[,_]=Pi(),$=t.useMemo((()=>void 0!==r?r:_.zIndexPopupBase+nl),[r,_]);return t.createElement(hh,{prefixCls:d,className:O,wrapClassName:to()({[`${x}-centered`]:!!e.centered},f),onCancel:()=>{null==n||n({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:cd(p||"","zoom",e.transitionName),maskTransitionName:cd(p||"","fade",e.maskTransitionName),mask:S,maskClosable:E,style:C,styles:Object.assign({body:h,mask:s},w),width:k,zIndex:$,afterClose:o,keyboard:a,centered:l,getContainer:c,closable:v,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},t.createElement(bh,Object.assign({},e,{confirmPrefixCls:x})))};var wh=e=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:o,theme:i}=e;return t.createElement(Ji,{prefixCls:n,iconPrefixCls:r,direction:o,theme:i},t.createElement(yh,Object.assign({},e)))};var xh=[];let kh="";function Ch(){return kh}const Sh=e=>{var n,r;const{prefixCls:o,getContainer:i,direction:a}=e,l=Bn(),c=(0,t.useContext)(D),s=Ch()||c.getPrefixCls(),u=o||`${s}-modal`;let d=i;return!1===d&&(d=void 0),t.createElement(wh,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(r=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==r?r:l,getContainer:d}))};function Eh(e){const n=Xi();const r=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const i=n.some((e=>e&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Y(n.slice(1))));for(let e=0;e<xh.length;e++){if(xh[e]===c){xh.splice(e,1);break}}A(r)}function l(e){clearTimeout(o),o=setTimeout((()=>{const o=n.getPrefixCls(void 0,Ch()),i=n.getIconPrefixCls(),a=n.getTheme(),l=t.createElement(Sh,Object.assign({},e));I(t.createElement(Ji,{prefixCls:o,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(l):l),r)}))}function c(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),xh.push(c),{destroy:c,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function Oh(e){return Object.assign(Object.assign({},e),{type:"warning"})}function _h(e){return Object.assign(Object.assign({},e),{type:"info"})}function $h(e){return Object.assign(Object.assign({},e),{type:"success"})}function jh(e){return Object.assign(Object.assign({},e),{type:"error"})}function Nh(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Ih(e){return n=>t.createElement(Ji,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(e,Object.assign({},n)))}var Ph=(e,n,r,o)=>Ih((i=>{const{prefixCls:a,style:l}=i,c=t.useRef(null),[s,u]=t.useState(0),[d,f]=t.useState(0),[p,h]=Oo(!1,{value:i.open}),{getPrefixCls:v}=t.useContext(D),g=v(n||"select",a);t.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var n;const o=r?`.${r(g)}`:`.${g}-dropdown`,i=null===(n=c.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let m=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});o&&(m=o(m));const b={paddingBottom:s,position:"relative",minWidth:d};return t.createElement("div",{ref:c,style:b},t.createElement(e,Object.assign({},m)))})),Rh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Mh=Ih((e=>{const{prefixCls:n,className:r,closeIcon:o,closable:i,type:a,title:l,children:c,footer:s}=e,u=Rh(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=t.useContext(D),f=d(),p=n||d("modal"),h=Ja(f),[v,g,m]=uh(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:t.createElement(bh,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:c}))}:{closable:null==i||i,title:l,footer:null!==s&&t.createElement(eh,Object.assign({},e)),children:c},v(t.createElement(rf,Object.assign({prefixCls:p,className:to()(g,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,r,m,h)},u,{closeIcon:Jp(p,o),closable:i},y)))}));var Ah=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Th=(e,n)=>{var r,{afterClose:o,config:i}=e,a=Ah(e,["afterClose","config"]);const[l,c]=t.useState(!0),[s,u]=t.useState(i),{direction:d,getPrefixCls:f}=t.useContext(D),p=f("modal"),h=f(),v=function(){c(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(Y(t.slice(1))))};t.useImperativeHandle(n,(()=>({destroy:v,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(r=s.okCancel)&&void 0!==r?r:"confirm"===s.type,[m]=Hd("Modal",qn.Modal);return t.createElement(wh,Object.assign({prefixCls:p,rootPrefixCls:h},s,{close:v,open:l,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(g?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==m?void 0:m.cancelText)},a))};var qh=t.forwardRef(Th);let Lh=0;const Dh=t.memo(t.forwardRef(((e,n)=>{const[r,o]=function(){const[e,n]=t.useState([]);return[e,t.useCallback((e=>(n((t=>[].concat(Y(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return t.useImperativeHandle(n,(()=>({patchElement:o})),[]),t.createElement(t.Fragment,null,r)})));var zh=function(){const e=t.useRef(null),[n,r]=t.useState([]);t.useEffect((()=>{if(n.length){Y(n).forEach((e=>{e()})),r([])}}),[n]);const o=t.useCallback((n=>function(o){var i;Lh+=1;const a=t.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const d=t.createElement(qh,{key:`modal-${Lh}`,config:n(o),ref:a,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&xh.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r((t=>[].concat(Y(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r((e=>[].concat(Y(e),[t])))},then:e=>(u=!0,c.then(e))};return f}),[]);return[t.useMemo((()=>({info:o(_h),success:o($h),error:o(jh),warning:o(Oh),confirm:o(Nh)})),[]),t.createElement(Dh,{key:"modal-holder",ref:e})]};function Bh(e){return Eh(Oh(e))}const Fh=hh;Fh.useModal=zh,Fh.info=function(e){return Eh(_h(e))},Fh.success=function(e){return Eh($h(e))},Fh.error=function(e){return Eh(jh(e))},Fh.warning=Bh,Fh.warn=Bh,Fh.confirm=function(e){return Eh(Nh(e))},Fh.destroyAll=function(){for(;xh.length;){const e=xh.pop();e&&e()}},Fh.config=function(e){let{rootPrefixCls:t}=e;kh=t},Fh._InternalPanelDoNotUseOrYouWillBeFired=Mh;var Hh=Fh,Wh={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"},Vh=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:Wh}))};var Uh=t.forwardRef(Vh),Yh=function(e){var t=e.field.label;return t&&(0,r.jsx)("div",{className:"rtsb-field__label_wrap",children:(0,r.jsx)("h6",{className:"rtsb-field__label",dangerouslySetInnerHTML:{__html:t}})})};function Kh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gh(e,t)}(e,t)||function(){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 Gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xh=function(e){var n,o,i,a,c=e.id,s=e.field,u=s.value,f=s.help,p=(0,t.useRef)();(0,t.useEffect)((function(){var e=p.current.closest(".ant-modal-body");"active"===c&&("on"===u?e.classList.remove("is-disable"):e.classList.add("is-disable"))}),[u]);var h=null===(n=e.field)||void 0===n?void 0:n.fieldType,v=null===(o=e.field)||void 0===o?void 0:o.parentId,g=null===(i=e.field)||void 0===i?void 0:i.index,m=null===(a=e.field)||void 0===a?void 0:a.repeaterData;if(c){var b=Kh(l(),2),y=(b[0],b[1]);return(0,r.jsxs)("div",{className:"rtsb-field switch",ref:p,children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Ms,{checkedChildren:"On",unCheckedChildren:"Off",checked:"on"===u,onChange:function(e){y({type:d,id:c,value:e?"on":"off",fieldType:h,parentId:v,repeaterData:m,index:g})}})}),f&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})}};function Qh(e){return cl(e,{inputAffixPadding:e.paddingXXS})}const Zh=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:m,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},Jh=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ev=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Jh(cl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),tv=(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}}),nv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),rv=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ev(e))}),nv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),nv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ov=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),iv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ov(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),ov(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ev(e))}})}),av=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),lv=(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}}),cv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),sv=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ev(e))}),cv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),cv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),uv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dv=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:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},uv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),uv(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),fv=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),pv=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Fe(t)} ${Fe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},hv=e=>({padding:`${Fe(e.paddingBlockSM)} ${Fe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Fe(e.paddingBlock)} ${Fe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},fv(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({},pv(e)),"&-sm":Object.assign({},hv(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),gv=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({},pv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},hv(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Fe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Fe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Fe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Fe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Fe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::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}}}})}},mv=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ti(e)),vv(e)),rv(e)),sv(e)),av(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"}})}},bv=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 ${Fe(e.inputAffixPadding)}`}}}},yv=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},vv(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),bv(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},wv=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ti(e)),gv(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},iv(e)),dv(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}}})})}},xv=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},kv=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Cv=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Sv=Sl("Input",(e=>{const t=cl(e,Qh(e));return[mv(t),kv(t),yv(t),wv(t),xv(t),Cv(t),ps(t)]}),Zh,{resetFont:!1});var Ev=e=>{const{getPrefixCls:n,direction:r}=(0,t.useContext)(D),{prefixCls:o,className:i}=e,a=n("input-group",o),l=n("input"),[c,s]=Sv(l),u=to()(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===r},s,i),d=(0,t.useContext)(Up),f=(0,t.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return c(t.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},t.createElement(Up.Provider,{value:f},e.children)))};function Ov(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function _v(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Ov(t,e,r)):n(o=Ov(t,e,""))}}function $v(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var jv=t.forwardRef((function(e,n){var r,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,h=e.disabled,g=e.readOnly,m=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,C=e.handleReset,S=e.hidden,E=e.classes,O=e.classNames,_=e.dataAttrs,$=e.styles,j=e.components,N=null!=a?a:i,I=(null==j?void 0:j.affixWrapper)||"span",P=(null==j?void 0:j.groupWrapper)||"span",R=(null==j?void 0:j.wrapper)||"span",M=(null==j?void 0:j.groupAddon)||"span",A=(0,t.useRef)(null),T=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),q=(0,t.cloneElement)(N,{value:x,className:to()(N.props.className,!T&&(null==O?void 0:O.variant))||null}),L=(0,t.useRef)(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:L.current||A.current}})),T){var D,z=null;if(y){var B,F=!h&&!g&&x,H="".concat(l,"-clear-icon"),W="object"===v(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";z=t.createElement("span",{onClick:C,onMouseDown:function(e){return e.preventDefault()},className:to()(H,(B={},w(B,"".concat(H,"-hidden"),!F),w(B,"".concat(H,"-has-suffix"),!!s),B)),role:"button",tabIndex:-1},W)}var V="".concat(l,"-affix-wrapper"),U=to()(V,(w(D={},"".concat(l,"-disabled"),h),w(D,"".concat(V,"-disabled"),h),w(D,"".concat(V,"-focused"),m),w(D,"".concat(V,"-readonly"),g),w(D,"".concat(V,"-input-with-clear-btn"),s&&y&&x),D),null==E?void 0:E.affixWrapper,null==O?void 0:O.affixWrapper,null==O?void 0:O.variant),Y=(s||y)&&t.createElement("span",{className:to()("".concat(l,"-suffix"),null==O?void 0:O.suffix),style:null==$?void 0:$.suffix},z,s);q=t.createElement(I,ut({className:U,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=A.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())}},null==_?void 0:_.affixWrapper,{ref:A}),c&&t.createElement("span",{className:to()("".concat(l,"-prefix"),null==O?void 0:O.prefix),style:null==$?void 0:$.prefix},c),q,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var K="".concat(l,"-group"),G="".concat(K,"-addon"),X="".concat(K,"-wrapper"),Q=to()("".concat(l,"-wrapper"),K,null==E?void 0:E.wrapper,null==O?void 0:O.wrapper),Z=to()(X,w({},"".concat(X,"-disabled"),h),null==E?void 0:E.group,null==O?void 0:O.groupWrapper);q=t.createElement(P,{className:Z,ref:L},t.createElement(R,{className:Q},u&&t.createElement(M,{className:G},u),q,d&&t.createElement(M,{className:G},d)))}return t.cloneElement(q,{className:to()(null===(r=q.props)||void 0===r?void 0:r.className,f)||null,style:k(k({},null===(o=q.props)||void 0===o?void 0:o.style),p),hidden:S})})),Nv=jv,Iv=["show"];function Pv(e,n){return t.useMemo((function(){var t={};n&&(t.show="object"===v(n)&&n.formatter?n.formatter:!!n);var r=t=k(k({},t),e),o=r.show,i=so(r,Iv);return k(k({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,n])}var Rv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Mv=(0,t.forwardRef)((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,s=e.prefixCls,u=void 0===s?"rc-input":s,d=e.disabled,f=e.htmlSize,p=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,m=e.count,b=e.type,y=void 0===b?"text":b,x=e.classes,C=e.classNames,S=e.styles,E=e.onCompositionStart,O=e.onCompositionEnd,_=so(e,Rv),$=V((0,t.useState)(!1),2),j=$[0],N=$[1],I=(0,t.useRef)(!1),P=(0,t.useRef)(null),R=(0,t.useRef)(null),M=function(e){P.current&&$v(P.current,e)},A=V(Oo(e.defaultValue,{value:e.value}),2),T=A[0],q=A[1],L=null==T?"":String(T),D=V((0,t.useState)(null),2),z=D[0],B=D[1],F=Pv(m,g),H=F.max||h,W=F.strategy(L),U=!!H&&W>H;(0,t.useImperativeHandle)(n,(function(){var e;return{focus:M,blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=P.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=P.current)||void 0===e||e.select()},input:P.current,nativeElement:(null===(e=R.current)||void 0===e?void 0:e.nativeElement)||P.current}})),(0,t.useEffect)((function(){N((function(e){return(!e||!d)&&e}))}),[d]);var K=function(e,t,n){var r,i,a=t;if(!I.current&&F.exceedFormatter&&F.max&&F.strategy(t)>F.max)t!==(a=F.exceedFormatter(t,{max:F.max}))&&B([(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;q(a),P.current&&_v(P.current,e,o,a)};(0,t.useEffect)((function(){var e;z&&(null===(e=P.current)||void 0===e||e.setSelectionRange.apply(e,Y(z)))}),[z]);var G,X=function(e){K(e,e.target.value,{source:"change"})},Q=function(e){I.current=!1,K(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},Z=function(e){l&&"Enter"===e.key&&l(e),null==c||c(e)},J=function(e){N(!0),null==i||i(e)},ee=function(e){N(!1),null==a||a(e)},te=U&&"".concat(u,"-out-of-range");return t.createElement(Nv,ut({},_,{prefixCls:u,className:to()(p,te),handleReset:function(e){q(""),M(),P.current&&_v(P.current,e,o)},value:L,focused:j,triggerFocus:M,suffix:function(){var e=Number(H)>0;if(v||F.show){var n=F.showFormatter?F.showFormatter({value:L,count:W,maxLength:H}):"".concat(W).concat(e?" / ".concat(H):"");return t.createElement(t.Fragment,null,F.show&&t.createElement("span",{className:to()("".concat(u,"-show-count-suffix"),w({},"".concat(u,"-show-count-has-suffix"),!!v),null==C?void 0:C.count),style:k({},null==S?void 0:S.count)},n),v)}return null}(),disabled:d,classes:x,classNames:C,styles:S}),(G=ac(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),t.createElement("input",ut({autoComplete:r},G,{onChange:X,onFocus:J,onBlur:ee,onKeyDown:Z,className:to()(u,w({},"".concat(u,"-disabled"),d),null==C?void 0:C.input),style:null==S?void 0:S.input,ref:P,size:f,type:y,onCompositionStart:function(e){I.current=!0,null==E||E(e)},onCompositionEnd:Q}))))})),Av=Mv;var Tv=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(wa,null)}),n};function qv(e,t,n){return to()({[`${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 Lv=(e,t)=>t||e,Dv=["outlined","borderless","filled"];var zv=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const r=(0,t.useContext)(Kp);let o;o=void 0!==e?e:!1===n?"borderless":null!=r?r:"outlined";return[o,Dv.includes(o)]};function Bv(e,n){const r=(0,t.useRef)([]),o=()=>{r.current.push(setTimeout((()=>{var t,n,r,o;(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===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,t.useEffect)((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Fv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hv=(0,t.forwardRef)(((e,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:h,className:v,style:g,styles:m,rootClassName:b,onChange:y,classNames:w,variant:x}=e,k=Fv(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:C,direction:S,input:E}=t.useContext(D),O=C("input",o),_=(0,t.useRef)(null),$=Ja(O),[j,N,I]=Sv(O,$),{compactSize:P,compactItemClassnames:R}=Cc(O,S),M=wc((e=>{var t;return null!==(t=null!=l?l:P)&&void 0!==t?t:e})),A=t.useContext(Ur),T=null!=c?c:A,{status:q,hasFeedback:L,feedbackIcon:z}=(0,t.useContext)(Up),B=Lv(q,a),F=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!L;(0,t.useRef)(F);const H=Bv(_,!0),W=(L||d)&&t.createElement(t.Fragment,null,d,L&&z),V=Tv(null!=f?f:null==E?void 0:E.allowClear),[U,Y]=zv(x,i);return j(t.createElement(Av,Object.assign({ref:ao(n,_),prefixCls:O,autoComplete:null==E?void 0:E.autoComplete},k,{disabled:T,onBlur:e=>{H(),null==s||s(e)},onFocus:e=>{H(),null==u||u(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),g),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),m),suffix:W,allowClear:V,className:to()(v,b,I,$,R,null==E?void 0:E.className),onChange:e=>{H(),null==y||y(e)},addonAfter:p&&t.createElement(Sc,null,t.createElement(Yp,{override:!0,status:!0},p)),addonBefore:h&&t.createElement(Sc,null,t.createElement(Yp,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},w),null==E?void 0:E.classNames),{input:to()({[`${O}-sm`]:"small"===M,[`${O}-lg`]:"large"===M,[`${O}-rtl`]:"rtl"===S},null==w?void 0:w.input,null===(r=null==E?void 0:E.classNames)||void 0===r?void 0:r.input,N),variant:to()({[`${O}-${U}`]:Y},qv(O,B)),affixWrapper:to()({[`${O}-affix-wrapper-sm`]:"small"===M,[`${O}-affix-wrapper-lg`]:"large"===M,[`${O}-affix-wrapper-rtl`]:"rtl"===S},N),wrapper:to()({[`${O}-group-rtl`]:"rtl"===S},N),groupWrapper:to()({[`${O}-group-wrapper-sm`]:"small"===M,[`${O}-group-wrapper-lg`]:"large"===M,[`${O}-group-wrapper-rtl`]:"rtl"===S,[`${O}-group-wrapper-${U}`]:Y},qv(`${O}-group-wrapper`,B,L),N)})})))}));var Wv=Hv;const Vv=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Uv=Sl(["Input","OTP"],(e=>{const t=cl(e,Qh(e));return[Vv(t)]}),Zh),Yv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Kv=t.forwardRef(((e,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Yv(e,["value","onChange","onActiveChange","index","mask"]),s=r&&"string"==typeof l?l:r,u=t.useRef(null);t.useImperativeHandle(n,(()=>u.current));const d=()=>{ri((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return t.createElement(Wv,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var Gv=Kv,Xv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Qv(e){return(e||"").split("")}const Zv=t.forwardRef(((e,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:p,mask:h}=e,v=Xv(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);const{getPrefixCls:g,direction:m}=t.useContext(D),b=g("otp",r),y=Da(v,{aria:!0,data:!0,attr:!0}),w=Ja(b),[x,k,C]=Uv(b,w),S=wc((e=>null!=i?i:e)),E=t.useContext(Up),O=Lv(E.status,f),_=t.useMemo((()=>Object.assign(Object.assign({},E),{status:O,hasFeedback:!1,feedbackIcon:null})),[E,O]),$=t.useRef(null),j=t.useRef({});t.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=j.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=j.current[t])||void 0===e||e.blur()},nativeElement:$.current})));const N=e=>s?s(e):e,[I,P]=t.useState(Qv(N(a||"")));t.useEffect((()=>{void 0!==l&&P(Qv(l))}),[l]);const R=Co((e=>{P(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&c(e.join(""))})),M=Co(((e,t)=>{let n=Y(I);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Qv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=N(n.map((e=>e||" ")).join(""));return n=Qv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const r=M(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=j.current[i])||void 0===n||n.focus()),R(r)},T=e=>{var t;null===(t=j.current[e])||void 0===t||t.focus()},q={variant:u,disabled:d,status:O,mask:h};return x(t.createElement("div",Object.assign({},y,{ref:$,className:to()(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===m},C,k)}),t.createElement(Up.Provider,{value:_},Array.from({length:o}).map(((e,n)=>{const r=`otp-${n}`,o=I[n]||"";return t.createElement(Gv,Object.assign({ref:e=>{j.current[n]=e},key:r,index:n,size:S,htmlSize:1,className:`${b}-input`,onChange:A,value:o,onActiveChange:T,autoFocus:0===n&&p},q))})))))}));var Jv=Zv,eg={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"},tg=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:eg}))};var ng=t.forwardRef(tg),rg={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"},og=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:rg}))};var ig=t.forwardRef(og),ag=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lg=e=>e?t.createElement(ig,null):t.createElement(ng,null),cg={click:"onClick",hover:"onMouseOver"},sg=t.forwardRef(((e,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=lg}=e,l="object"==typeof i&&void 0!==i.visible,[c,s]=(0,t.useState)((()=>!!l&&i.visible)),u=(0,t.useRef)(null);t.useEffect((()=>{l&&s(i.visible)}),[l,i]);const d=Bv(u),f=()=>{r||(c&&d(),s((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:p,prefixCls:h,inputPrefixCls:v,size:g}=e,m=ag(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=t.useContext(D),y=b("input",v),w=b("input-password",h),x=i&&(e=>{const n=cg[o]||"",r=a(c),i={[n]:f,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return t.cloneElement(t.isValidElement(r)?r:t.createElement("span",null,r),i)})(w),k=to()(w,p,{[`${w}-${g}`]:!!g}),C=Object.assign(Object.assign({},ac(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:y,suffix:x});return g&&(C.size=g),t.createElement(Wv,Object.assign({ref:ao(n,u)},C))}));var ug=sg,dg={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"},fg=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:dg}))};var pg=t.forwardRef(fg),hg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var vg,gg=t.forwardRef(((e,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:v}=e,g=hg(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=t.useContext(D),y=t.useRef(!1),w=m("input-search",r),x=m("input",o),{compactSize:k}=Cc(w,b),C=wc((e=>{var t;return null!==(t=null!=a?a:k)&&void 0!==t?t:e})),S=t.useRef(null),E=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof c?t.createElement(pg,null):null,$=`${w}-button`;let j;const N=c||{},I=N.type&&!0===N.type.__ANT_BUTTON;j=I||"button"===N.type?uc(N,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},I?{className:$,size:C}:{})):t.createElement(xs,{className:$,type:c?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:_},c),s&&(j=[j,uc(s,{key:"addonAfter"})]);const P=to()(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!c},i);return t.createElement(Wv,Object.assign({ref:ao(S,n),onPressEnter:e=>{y.current||u||O(e)}},g,{size:C,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==v||v(e)},prefixCls:x,addonAfter:j,suffix:l,onChange:e=>{e&&e.target&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),p&&p(e)},className:P,disabled:d}))})),mg=["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"],bg={};function yg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;vg||((vg=document.createElement("textarea")).setAttribute("tab-index","-1"),vg.setAttribute("aria-hidden","true"),document.body.appendChild(vg)),e.getAttribute("wrap")?vg.setAttribute("wrap",e.getAttribute("wrap")):vg.removeAttribute("wrap");var o=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&&bg[n])return bg[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:mg.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(bg[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;vg.setAttribute("style","".concat(c,";").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")),vg.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=vg.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){vg.value=" ";var p=vg.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:s,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var wg=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xg=t.forwardRef((function(e,n){var r=e,o=r.prefixCls,i=(r.onPressEnter,r.defaultValue),a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,d=r.disabled,f=r.onChange,p=(r.onInternalAutoSize,so(r,wg)),h=V(Oo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),g=h[0],m=h[1],b=t.useRef();t.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=V(t.useMemo((function(){return l&&"object"===v(l)?[l.minRows,l.maxRows]:[]}),[l]),2),x=y[0],C=y[1],S=!!l,E=V(t.useState(2),2),O=E[0],_=E[1],$=V(t.useState(),2),j=$[0],N=$[1],I=function(){_(0)};Xe((function(){S&&I()}),[a,x,C,S]),Xe((function(){if(0===O)_(1);else if(1===O){var e=yg(b.current,!1,x,C);_(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[O]);var P=t.useRef(),R=function(){ri.cancel(P.current)};t.useEffect((function(){return R}),[]);var M=S?j:null,A=k(k({},u),M);return 0!==O&&1!==O||(A.overflowY="hidden",A.overflowX="hidden"),t.createElement(ku,{onResize:function(e){2===O&&(null==c||c(e),l&&(R(),P.current=ri((function(){I()}))))},disabled:!(l||c)},t.createElement("textarea",ut({},p,{ref:b,style:A,className:to()(o,s,w({},"".concat(o,"-disabled"),d)),disabled:d,value:g,onChange:function(e){m(e.target.value),null==f||f(e)}})))})),kg=xg,Cg=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],Sg=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,g=e.showCount,m=e.count,b=e.className,y=e.style,x=e.disabled,C=e.hidden,S=e.classNames,E=e.styles,O=e.onResize,_=e.readOnly,$=so(e,Cg),j=V(Oo(o,{value:i,defaultValue:o}),2),N=j[0],I=j[1],P=null==N?"":String(N),R=V(t.useState(!1),2),M=R[0],A=R[1],T=t.useRef(!1),q=V(t.useState(null),2),L=q[0],D=q[1],z=(0,t.useRef)(null),B=(0,t.useRef)(null),F=function(){var e;return null===(e=B.current)||void 0===e?void 0:e.textArea},H=function(){F().focus()};(0,t.useImperativeHandle)(n,(function(){var e;return{resizableTextArea:B.current,focus:H,blur:function(){F().blur()},nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||F()}})),(0,t.useEffect)((function(){A((function(e){return!x&&e}))}),[x]);var W=V(t.useState(null),2),U=W[0],K=W[1];t.useEffect((function(){var e;U&&(e=F()).setSelectionRange.apply(e,Y(U))}),[U]);var G,X=Pv(m,g),Q=null!==(r=X.max)&&void 0!==r?r:u,Z=Number(Q)>0,J=X.strategy(P),ee=!!Q&&J>Q,te=function(e,t){var n=t;!T.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max&&t!==(n=X.exceedFormatter(t,{max:X.max}))&&K([F().selectionStart||0,F().selectionEnd||0]),I(n),_v(e.currentTarget,e,c,n)},ne=p;X.show&&(G=X.showFormatter?X.showFormatter({value:P,count:J,maxLength:Q}):"".concat(J).concat(Z?" / ".concat(Q):""),ne=t.createElement(t.Fragment,null,ne,t.createElement("span",{className:to()("".concat(v,"-data-count"),null==S?void 0:S.count),style:null==E?void 0:E.count},G)));var re=!$.autoSize&&!g&&!s;return t.createElement(Nv,{ref:z,value:P,allowClear:s,handleReset:function(e){I(""),H(),_v(F(),e,c)},suffix:ne,prefixCls:v,classNames:k(k({},S),{},{affixWrapper:to()(null==S?void 0:S.affixWrapper,w(w({},"".concat(v,"-show-count"),g),"".concat(v,"-textarea-allow-clear"),s))}),disabled:x,focused:M,className:to()(b,ee&&"".concat(v,"-out-of-range")),style:k(k({},y),L&&!re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:C,readOnly:_},t.createElement(kg,ut({},$,{maxLength:u,onKeyDown:function(e){var t=$.onPressEnter,n=$.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){te(e,e.target.value)},onFocus:function(e){A(!0),null==a||a(e)},onBlur:function(e){A(!1),null==l||l(e)},onCompositionStart:function(e){T.current=!0,null==d||d(e)},onCompositionEnd:function(e){T.current=!1,te(e,e.currentTarget.value),null==f||f(e)},className:to()(null==S?void 0:S.textarea),style:k(k({},null==E?void 0:E.textarea),{},{resize:null==y?void 0:y.resize}),disabled:x,prefixCls:v,onResize:function(e){var t;null==O||O(e),null!==(t=F())&&void 0!==t&&t.style.height&&D(!0)},ref:B,readOnly:_})))})),Eg=Sg,Og=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _g=(0,t.forwardRef)(((e,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:p,style:h,styles:v,variant:g}=e,m=Og(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:b,direction:y,textArea:w}=t.useContext(D),x=wc(l),k=t.useContext(Ur),C=null!=c?c:k,{status:S,hasFeedback:E,feedbackIcon:O}=t.useContext(Up),_=Lv(S,s),$=t.useRef(null);t.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(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=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const j=b("input",i),N=Ja(j),[I,P,R]=Sv(j,N),[M,A]=zv(g,a),T=Tv(null!=u?u:null==w?void 0:w.allowClear);return I(t.createElement(Eg,Object.assign({autoComplete:null==w?void 0:w.autoComplete},m,{style:Object.assign(Object.assign({},null==w?void 0:w.style),h),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),v),disabled:C,allowClear:T,className:to()(R,N,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:to()({[`${j}-sm`]:"small"===x,[`${j}-lg`]:"large"===x},P,null==d?void 0:d.textarea,null===(r=null==w?void 0:w.classNames)||void 0===r?void 0:r.textarea),variant:to()({[`${j}-${M}`]:A},qv(j,_)),affixWrapper:to()(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:"rtl"===y,[`${j}-affix-wrapper-sm`]:"small"===x,[`${j}-affix-wrapper-lg`]:"large"===x,[`${j}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},P)}),prefixCls:j,suffix:E&&t.createElement("span",{className:`${j}-textarea-suffix`},O),ref:$})))}));var $g=_g;const jg=Wv;jg.Group=Ev,jg.Search=gg,jg.TextArea=$g,jg.Password=ug,jg.OTP=Jv;var Ng=jg;function Ig(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pg(e,t)}(e,t)||function(){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 Pg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rg=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=e.id,h=null===(n=e.field)||void 0===n?void 0:n.fieldType,v=null===(o=e.field)||void 0===o?void 0:o.parentId,g=null===(i=e.field)||void 0===i?void 0:i.index,m=null===(a=e.field)||void 0===a?void 0:a.repeaterData,b=Ig(l(),2),y=(b[0],b[1]);(0,t.useEffect)((function(){w(u)}),[]);var w=function(e){y({type:d,id:p,value:e,fieldType:h,parentId:v,repeaterData:m,index:g})};return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Ng,{className:"rtsb-form-field",placeholder:f,value:u,onChange:function(e){return w(e.target.value)}})}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function Mg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ag(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ag(e,t)}(e,t)||function(){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 Ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Tg=Ng.TextArea,qg=function(e){var t,n,o,i,a=e.field,c=a.help,s=a.value,u=a.placeholder,f=e.id,p=null===(t=e.field)||void 0===t?void 0:t.fieldType,h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,g=null===(i=e.field)||void 0===i?void 0:i.repeaterData,m=Mg(l(),2),b=(m[0],m[1]);return(0,r.jsxs)("div",{className:"rtsb-field textarea",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Tg,{rows:4,className:"rtsb-form-field",placeholder:u,value:s,onChange:function(e){b({type:d,id:f,value:e.target.value,fieldType:p,parentId:h,repeaterData:g,index:v})}})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},Lg=function(e){var n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,c="function"==typeof r?r(o):r;return t.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:t.createElement("span",{className:to()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},Dg=t.createContext(null);function zg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Bg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fg=void 0;function Hg(e,n){var r=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,h=e.display,v=e.order,g=e.component,m=void 0===g?"div":g,b=so(e,Bg),y=l&&!h;function w(e){s(u,e)}t.useEffect((function(){return function(){w(null)}}),[]);var x,C=a&&i!==Fg?a(i):p;o||(x={opacity:y?0:1,height:y?0:Fg,overflowY:y?"hidden":Fg,order:l?v:Fg,pointerEvents:y?"none":Fg,position:y?"absolute":Fg});var S={};y&&(S["aria-hidden"]=!0);var E=t.createElement(m,ut({className:to()(!o&&r,d),style:k(k({},x),f)},S,b,{ref:n}),C);return l&&(E=t.createElement(ku,{onResize:function(e){w(e.offsetWidth)},disabled:c},E)),E}var Wg=t.forwardRef(Hg);Wg.displayName="Item";var Vg=Wg;function Ug(){var e=t.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)ri(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,S.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function Yg(e,n){var r=V(t.useState(n),2),o=r[0],i=r[1];return[o,Co((function(t){e((function(){i(t)}))}))]}var Kg=t.createContext(null),Gg=["component"],Xg=["className"],Qg=["className"],Zg=function(e,n){var r=t.useContext(Kg);if(!r){var o=e.component,i=void 0===o?"div":o,a=so(e,Gg);return t.createElement(i,ut({},a,{ref:n}))}var l=r.className,c=so(r,Xg),s=e.className,u=so(e,Qg);return t.createElement(Kg.Provider,{value:null},t.createElement(Vg,ut({ref:n,className:to()(l,s)},c,u)))},Jg=t.forwardRef(Zg);Jg.displayName="RawItem";var em=Jg,tm=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],nm="responsive",rm="invalidate";function om(e){return"+ ".concat(e.length," ...")}function im(e,n){var r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,h=e.className,v=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,y=e.component,w=void 0===y?"div":y,x=e.itemComponent,C=e.onVisibleChange,S=so(e,tm),E="full"===f,O=Ug(),_=V(Yg(O,null),2),$=_[0],j=_[1],N=$||0,I=V(Yg(O,new Map),2),P=I[0],R=I[1],M=V(Yg(O,0),2),A=M[0],T=M[1],q=V(Yg(O,0),2),L=q[0],D=q[1],z=V(Yg(O,0),2),B=z[0],F=z[1],H=V((0,t.useState)(null),2),W=H[0],U=H[1],Y=V((0,t.useState)(null),2),K=Y[0],G=Y[1],X=t.useMemo((function(){return null===K&&E?Number.MAX_SAFE_INTEGER:K||0}),[K,$]),Q=V((0,t.useState)(!1),2),Z=Q[0],J=Q[1],ee="".concat(o,"-item"),te=Math.max(A,L),ne=v===nm,re=a.length&&ne,oe=v===rm,ie=re||"number"==typeof v&&a.length>v,ae=(0,t.useMemo)((function(){var e=a;return re?e=null===$&&E?a:a.slice(0,Math.min(a.length,N/d)):"number"==typeof v&&(e=a.slice(0,v)),e}),[a,d,$,v,re]),le=(0,t.useMemo)((function(){return re?a.slice(X+1):a.slice(ae.length)}),[a,ae,re,X]),ce=(0,t.useCallback)((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),se=(0,t.useCallback)(l||function(e){return e},[l]);function ue(e,t,n){(K!==e||void 0!==t&&t!==W)&&(G(e),n||(J(e<a.length-1),null==C||C(e)),void 0!==t&&U(t))}function de(e,t){R((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function fe(e){return P.get(ce(ae[e],e))}Xe((function(){if(N&&"number"==typeof te&&ae){var e=B,t=ae.length,n=t-1;if(!t)return void ue(0,null);for(var r=0;r<t;r+=1){var o=fe(r);if(E&&(o=o||0),void 0===o){ue(r-1,void 0,!0);break}if(e+=o,0===n&&e<=N||r===n-1&&e+fe(n)<=N){ue(n,null);break}if(e+te>N){ue(r-1,e-o-B+L);break}}b&&fe(0)+B>N&&U(null)}}),[N,P,L,B,ce,ae]);var pe=Z&&!!le.length,he={};null!==W&&re&&(he={position:"absolute",left:W,top:0});var ve,ge={prefixCls:ee,responsive:re,component:x,invalidate:oe},me=c?function(e,n){var r=ce(e,n);return t.createElement(Kg.Provider,{key:r,value:k(k({},ge),{},{order:n,item:e,itemKey:r,registerSize:de,display:n<=X})},c(e,n))}:function(e,n){var r=ce(e,n);return t.createElement(Vg,ut({},ge,{order:n,key:r,item:e,renderItem:se,itemKey:r,registerSize:de,display:n<=X}))},be={order:pe?X:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){D(t),T(L)},display:pe};if(m)m&&(ve=t.createElement(Kg.Provider,{value:k(k({},ge),be)},m(le)));else{var ye=g||om;ve=t.createElement(Vg,ut({},ge,be),"function"==typeof ye?ye(le):ye)}var we=t.createElement(w,ut({className:to()(!oe&&o,h),style:p,ref:n},S),ae.map(me),ie?ve:null,b&&t.createElement(Vg,ut({},ge,{responsive:ne,responsiveDisabled:!re,order:X,className:"".concat(ee,"-suffix"),registerSize:function(e,t){F(t)},display:!0,style:he}),b));return ne&&(we=t.createElement(ku,{onResize:function(e,t){j(t.clientWidth)},disabled:!re},we)),we}var am=t.forwardRef(im);am.displayName="Overflow",am.Item=em,am.RESPONSIVE=nm,am.INVALIDATE=rm;var lm=am,cm=function(e,n){var r,o=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,h=e.maxLength,v=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,y=e.onCompositionStart,w=e.onCompositionEnd,x=e.open,C=e.attrs,S=a||t.createElement("input",null),E=S,O=E.ref,_=E.props,$=_.onKeyDown,j=_.onChange,N=_.onMouseDown,I=_.onCompositionStart,P=_.onCompositionEnd,R=_.style;return S.props,S=t.cloneElement(S,k(k(k({type:"search"},_),{},{id:i,ref:ao(n,O),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:s,className:to()("".concat(o,"-selection-search-input"),null===(r=S)||void 0===r||null===(r=r.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?f:void 0},C),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:k(k({},R),{},{opacity:d?null:0}),onKeyDown:function(e){v(e),$&&$(e)},onMouseDown:function(e){g(e),N&&N(e)},onChange:function(e){m(e),j&&j(e)},onCompositionStart:function(e){y(e),I&&I(e)},onCompositionEnd:function(e){w(e),P&&P(e)},onPaste:b}))};var sm=t.forwardRef(cm);function um(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var dm="undefined"!=typeof window&&window.document&&window.document.documentElement;function fm(e){return["string","number"].includes(v(e))}function pm(e){var t=void 0;return e&&(fm(e.title)?t=e.title.toString():fm(e.label)&&(t=e.label.toString())),t}function hm(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var vm=function(e){e.preventDefault(),e.stopPropagation()},gm=function(e){var n,r,o=e.id,i=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,h=e.showSearch,v=e.autoFocus,g=e.autoComplete,m=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,k=e.maxTagTextLength,C=e.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,E=e.tagRender,O=e.onToggleOpen,_=e.onRemove,$=e.onInputChange,j=e.onInputPaste,N=e.onInputKeyDown,I=e.onInputMouseDown,P=e.onInputCompositionStart,R=e.onInputCompositionEnd,M=t.useRef(null),A=V((0,t.useState)(0),2),T=A[0],q=A[1],L=V((0,t.useState)(!1),2),D=L[0],z=L[1],B="".concat(i,"-selection"),F=l||"multiple"===p&&!1===s||"tags"===p?c:"",H="tags"===p||"multiple"===p&&!1===s||h&&(l||D);n=function(){q(M.current.scrollWidth)},r=[F],dm?t.useLayoutEffect(n,r):t.useEffect(n,r);var W=function(e,n,r,o,i){return t.createElement("span",{title:pm(e),className:to()("".concat(B,"-item"),w({},"".concat(B,"-item-disabled"),r))},t.createElement("span",{className:"".concat(B,"-item-content")},n),o&&t.createElement(Lg,{className:"".concat(B,"-item-remove"),onMouseDown:vm,onClick:i,customizeIcon:y},"×"))},U=function(e,n,r,o,i,a){return t.createElement("span",{onMouseDown:function(e){vm(e),O(!l)}},E({label:n,value:e,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},Y=t.createElement("div",{className:"".concat(B,"-search"),style:{width:T},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},t.createElement(sm,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:f,autoFocus:v,autoComplete:g,editable:H,activeDescendantId:m,value:F,onKeyDown:N,onMouseDown:I,onChange:$,onPaste:j,onCompositionStart:P,onCompositionEnd:R,tabIndex:b,attrs:Da(e,!0)}),t.createElement("span",{ref:M,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},F," ")),K=t.createElement(lm,{prefixCls:"".concat(B,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!f&&!t,i=n;if("number"==typeof k&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>k&&(i="".concat(a.slice(0,k),"..."))}var l=function(t){t&&t.stopPropagation(),_(e)};return"function"==typeof E?U(r,i,t,o,l):W(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return"function"==typeof E?U(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:Y,itemKey:hm,maxCount:x});return t.createElement(t.Fragment,null,K,!a.length&&!F&&t.createElement("span",{className:"".concat(B,"-placeholder")},d))},mm=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,v=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,k=e.onInputPaste,C=e.onInputCompositionStart,S=e.onInputCompositionEnd,E=e.title,O=V(t.useState(!1),2),_=O[0],$=O[1],j="combobox"===u,N=j||v,I=f[0],P=g||"";j&&m&&!_&&(P=m),t.useEffect((function(){j&&$(!1)}),[j,m]);var R=!("combobox"!==u&&!d&&!v)&&!!P,M=void 0===E?pm(I):E,A=t.useMemo((function(){return I?null:t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:R?{visibility:"hidden"}:void 0},p)}),[I,R,p,r]);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(sm,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:w,onChange:function(e){$(!0),x(e)},onPaste:k,onCompositionStart:C,onCompositionEnd:S,tabIndex:h,attrs:Da(e,!0),maxLength:j?b:void 0})),!j&&I?t.createElement("span",{className:"".concat(r,"-selection-item"),title:M,style:R?{visibility:"hidden"}:void 0},I.label):null,A)},bm=function(e,n){var r=(0,t.useRef)(null),o=(0,t.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,u=e.disabled,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,g=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var m=V(zg(0),2),b=m[0],y=m[1],w=(0,t.useRef)(null),x=function(e){!1!==f(e,!0,o.current)&&h(!0)},k={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==Ma.UP&&n!==Ma.DOWN||e.preventDefault(),v&&v(e),n!==Ma.ENTER||"tags"!==l||o.current||a||null==p||p(e.target.value),t=n,[Ma.ESC,Ma.SHIFT,Ma.BACKSPACE,Ma.TAB,Ma.WIN_KEY,Ma.ALT,Ma.META,Ma.WIN_KEY_RIGHT,Ma.CTRL,Ma.SEMICOLON,Ma.EQUALS,Ma.CAPS_LOCK,Ma.CONTEXT_MENU,Ma.F1,Ma.F2,Ma.F3,Ma.F4,Ma.F5,Ma.F6,Ma.F7,Ma.F8,Ma.F9,Ma.F10,Ma.F11,Ma.F12].includes(t)||h(!0)},onInputMouseDown:function(){y(!0)},onInputChange:function(e){var t=e.target.value;if(s&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&x(e.target.value)}},C="multiple"===l||"tags"===l?t.createElement(gm,ut({},e,k)):t.createElement(mm,ut({},e,k));return t.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=b();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==d&&f("",!0,!1),h())}},C)};var ym=t.forwardRef(bm),wm=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xm=function(e,n){var r=e.prefixCls,o=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,c=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,p=e.placement,h=e.builtinPlacements,v=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,C=e.onPopupVisibleChange,S=e.onPopupMouseEnter,E=so(e,wm),O="".concat(r,"-dropdown"),_=a;g&&(_=g(a));var $=t.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"}}}(v)}),[h,v]),j=l?"".concat(O,"-").concat(l):c,N="number"==typeof v,I=t.useMemo((function(){return N?null:!1===v?"minWidth":"width"}),[v,N]),P=s;N&&(P=k(k({},P),{},{width:v}));var R=t.useRef(null);return t.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.popupElement}}})),t.createElement(Xu,ut({},E,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:$,prefixCls:O,popupTransitionName:j,popup:t.createElement("div",{onMouseEnter:S},_),ref:R,stretch:I,popupAlign:m,popupVisible:o,getPopupContainer:b,popupClassName:to()(u,w({},"".concat(O,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)};var km=t.forwardRef(xm);function Cm(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Sm(e){return void 0!==e&&!Number.isNaN(e)}function Em(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Om(e){var t=k({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ge(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var _m=t.createContext(null);function $m(e){var n=e.visible,r=e.values;if(!n)return null;return t.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(v(t))?t:n})).join(", ")),r.length>50?", ...":null)}var jm=["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"],Nm=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Im=function(e){return"tags"===e||"multiple"===e},Pm=t.forwardRef((function(e,n){var r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,g=void 0===h?"Not Found":h,m=e.onClear,b=e.mode,y=e.disabled,x=e.loading,C=e.getInputElement,S=e.getRawInputElement,E=e.open,O=e.defaultOpen,_=e.onDropdownVisibleChange,$=e.activeValue,j=e.onActiveValueChange,N=e.activeDescendantId,I=e.searchValue,P=e.autoClearSearchValue,R=e.onSearch,M=e.onSearchSplit,A=e.tokenSeparators,T=e.allowClear,q=e.suffixIcon,L=e.clearIcon,D=e.OptionList,z=e.animation,B=e.transitionName,F=e.dropdownStyle,H=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,K=e.dropdownAlign,G=e.placement,X=e.builtinPlacements,Q=e.getPopupContainer,Z=e.showAction,J=void 0===Z?[]:Z,ee=e.onFocus,te=e.onBlur,ne=e.onKeyUp,re=e.onKeyDown,oe=e.onMouseDown,ie=so(e,jm),ae=Im(b),le=(void 0!==l?l:ae)||"combobox"===b,ce=k({},ie);Nm.forEach((function(e){delete ce[e]})),null==u||u.forEach((function(e){delete ce[e]}));var se=V(t.useState(!1),2),ue=se[0],de=se[1];t.useEffect((function(){de(Ou())}),[]);var fe=t.useRef(null),pe=t.useRef(null),he=t.useRef(null),ve=t.useRef(null),ge=t.useRef(null),me=t.useRef(!1),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=V(t.useState(!1),2),r=n[0],o=n[1],i=t.useRef(null),a=function(){window.clearTimeout(i.current)};return t.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),ye=V(be,3),we=ye[0],xe=ye[1],ke=ye[2];t.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ge.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:fe.current||pe.current}}));var Ce=t.useMemo((function(){var e;if("combobox"!==b)return I;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[I,b,d]),Se="combobox"===b&&"function"==typeof C&&C()||null,Ee="function"==typeof S&&S(),Oe=lo(pe,null==Ee||null===(r=Ee.props)||void 0===r?void 0:r.ref),_e=V(t.useState(!1),2),$e=_e[0],je=_e[1];Xe((function(){je(!0)}),[]);var Ne=V(Oo(!1,{defaultValue:O,value:E}),2),Ie=Ne[0],Pe=Ne[1],Re=!!$e&&Ie,Me=!g&&p;(y||Me&&Re&&"combobox"===b)&&(Re=!1);var Ae=!Me&&Re,Te=t.useCallback((function(e){var t=void 0!==e?e:!Re;y||(Pe(t),Re!==t&&(null==_||_(t)))}),[y,Re,Pe,_]),qe=t.useMemo((function(){return(A||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[A]),Le=t.useContext(_m)||{},De=Le.maxCount,ze=Le.rawValues,Be=function(e,t,n){if(!(ae&&Sm(De)&&(null==ze?void 0:ze.size)>=De)){var r=!0,o=e;null==j||j(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=xn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(Y(t),Y(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,A,Sm(De)?De-ze.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==M||M(a),Te(!1),r=!1),R&&Ce!==o&&R(o,{source:t?"typing":"effect"}),r}};t.useEffect((function(){Re||ae||"combobox"===b||Be("",!1,!1)}),[Re]),t.useEffect((function(){Ie&&y&&Pe(!1),y&&!me.current&&xe(!1)}),[y]);var Fe=V(zg(),2),He=Fe[0],We=Fe[1],Ve=t.useRef(!1),Ue=[];t.useEffect((function(){return function(){Ue.forEach((function(e){return clearTimeout(e)})),Ue.splice(0,Ue.length)}}),[]);var Ye,Ke=V(t.useState({}),2)[1];Ee&&(Ye=function(e){Te(e)}),function(e,n,r,o){var i=t.useRef(null);i.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[fe.current,null===(e=he.current)||void 0===e?void 0:e.getPopupElement()]}),Ae,Te,!!Ee);var Ge,Qe=t.useMemo((function(){return k(k({},e),{},{notFoundContent:g,open:Re,triggerOpen:Ae,id:o,showSearch:le,multiple:ae,toggleOpen:Te})}),[e,g,Ae,Re,o,le,ae,Te]),Ze=!!q||x;Ze&&(Ge=t.createElement(Lg,{className:to()("".concat(i,"-arrow"),w({},"".concat(i,"-arrow-loading"),x)),customizeIcon:q,customizeIconProps:{loading:x,searchValue:Ce,open:Re,focused:we,showSearch:le}}));var Je,et=function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=t.useMemo((function(){return"object"===v(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:t.useMemo((function(){return!(a||!o||!r.length&&!l||"combobox"===c&&""===l)}),[o,a,r.length,l,c]),clearIcon:t.createElement(Lg,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:s},"×")}}(i,(function(){var e;null==m||m(),null===(e=ve.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Be("",!1,!1)}),d,T,L,y,Ce,b),tt=et.allowClear,nt=et.clearIcon,rt=t.createElement(D,{ref:ge}),ot=to()(i,a,w(w(w(w(w(w(w(w(w(w({},"".concat(i,"-focused"),we),"".concat(i,"-multiple"),ae),"".concat(i,"-single"),!ae),"".concat(i,"-allow-clear"),T),"".concat(i,"-show-arrow"),Ze),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),x),"".concat(i,"-open"),Re),"".concat(i,"-customize-input"),Se),"".concat(i,"-show-search"),le)),it=t.createElement(km,{ref:he,disabled:y,prefixCls:i,visible:Ae,popupElement:rt,animation:z,transitionName:B,dropdownStyle:F,dropdownClassName:H,direction:s,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:K,placement:G,builtinPlacements:X,getPopupContainer:Q,empty:p,getTriggerDOMNode:function(e){return pe.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Ke({})}},Ee?t.cloneElement(Ee,{ref:Oe}):t.createElement(ym,ut({},e,{domRef:pe,prefixCls:i,inputElement:Se,ref:ve,id:o,showSearch:le,autoClearSearchValue:P,mode:b,activeDescendantId:N,tagRender:c,values:d,open:Re,onToggleOpen:Te,activeValue:$,searchValue:Ce,onSearch:Be,onSearchSubmit:function(e){e&&e.trim()&&R(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:qe})));return Je=Ee?it:t.createElement("div",ut({className:ot},ce,{ref:fe,onMouseDown:function(e){var t,n=e.target,r=null===(t=he.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Ue.indexOf(o);-1!==t&&Ue.splice(t,1),ke(),ue||r.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ue.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==oe||oe.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=He(),r=e.which;if(r===Ma.ENTER&&("combobox"!==b&&e.preventDefault(),Re||Te(!0)),We(!!Ce),r===Ma.BACKSPACE&&!n&&ae&&!Ce&&d.length){for(var o=Y(d),i=null,a=o.length-1;a>=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&f(o,{type:"remove",values:[i]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),u=1;u<c;u++)s[u-1]=arguments[u];Re&&(null===(t=ge.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(s))),null==re||re.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Re&&(null===(o=ge.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),null==ne||ne.apply(void 0,[e].concat(n))},onFocus:function(){xe(!0),y||(ee&&!Ve.current&&ee.apply(void 0,arguments),J.includes("focus")&&Te(!0)),Ve.current=!0},onBlur:function(){me.current=!0,xe(!1,(function(){Ve.current=!1,me.current=!1,Te(!1)})),y||(Ce&&("tags"===b?R(Ce,{source:"submit"}):"multiple"===b&&R("",{source:"blur"})),te&&te.apply(void 0,arguments))}}),t.createElement($m,{visible:we&&!Re,values:d}),it,Ge,tt&&nt),t.createElement(Dg.Provider,{value:Qe},Je)}));var Rm=Pm,Mm=function(){return null};Mm.isSelectOptGroup=!0;var Am=Mm,Tm=function(){return null};Tm.isSelectOption=!0;var qm=Tm,Lm=t.forwardRef((function(e,n){var r=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=k(k({},p),{},w(w(w(w(w({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),t.createElement("div",{style:f},t.createElement(ku,{onResize:function(e){e.offsetHeight&&c&&c()}},t.createElement("div",ut({style:p,className:to()(w({},"".concat(l,"-holder-inner"),l)),ref:n},s),a,d)))}));Lm.displayName="Filler";var Dm=Lm;function zm(e){var n=e.children,r=e.setRef,o=t.useCallback((function(e){r(e)}),[]);return t.cloneElement(n,{ref:o})}function Bm(e,n,r){var o=V(t.useState(e),2),i=o[0],a=o[1],l=V(t.useState(null),2),c=l[0],s=l[1];return t.useEffect((function(){var t=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],n);void 0!==(null==t?void 0:t.index)&&(null==r||r(t.index),s(e[t.index])),a(e)}),[e]),[c]}var Fm="object"===("undefined"==typeof navigator?"undefined":v(navigator))&&/Firefox/i.test(navigator.userAgent),Hm=function(e,n,r,o){var i=(0,t.useRef)(!1),a=(0,t.useRef)(null);var l=(0,t.useRef)({top:e,bottom:n,left:r,right:o});return l.current.top=e,l.current.bottom=n,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};function Wm(e,n,r,o,i,a,l){var c=(0,t.useRef)(0),s=(0,t.useRef)(null),u=(0,t.useRef)(null),d=(0,t.useRef)(!1),f=Hm(n,r,o,i);var p=(0,t.useRef)(null),h=(0,t.useRef)(null);return[function(t){if(e){ri.cancel(h.current),h.current=ri((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,v=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,v=0,p.current="sx");var g=Math.abs(i),m=Math.abs(v);null===p.current&&(p.current=a&&g>m?"x":"y"),"y"===p.current?function(e,t){ri.cancel(s.current),c.current+=t,u.current=t,f(!1,t)||(Fm||e.preventDefault(),s.current=ri((function(){var e=d.current?10:1;l(c.current*e),c.current=0})))}(t,v):function(e,t){l(t,!0),Fm||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}var Vm=function(){function e(){be(this,e),w(this,"maps",void 0),w(this,"id",0),this.maps=Object.create(null)}return we(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),Um=Vm;var Ym=14/15;var Km=10;function Gm(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Xm=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,v=V(t.useState(!1),2),g=v[0],m=v[1],b=V(t.useState(null),2),y=b[0],x=b[1],C=V(t.useState(null),2),S=C[0],E=C[1],O=!o,_=t.useRef(),$=t.useRef(),j=V(t.useState(!1),2),N=j[0],I=j[1],P=t.useRef(),R=function(){clearTimeout(P.current),I(!0),P.current=setTimeout((function(){I(!1)}),3e3)},M=a-f||0,A=f-d||0,T=t.useMemo((function(){return 0===i||0===M?0:i/M*A}),[i,M,A]),q=t.useRef({top:T,dragging:g,pageY:y,startTop:S});q.current={top:T,dragging:g,pageY:y,startTop:S};var L=function(e){m(!0),x(Gm(e,u)),E(q.current.top),l(),e.stopPropagation(),e.preventDefault()};t.useEffect((function(){var e=function(e){e.preventDefault()},t=_.current,n=$.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",L),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",L)}}),[]);var D=t.useRef();D.current=M;var z=t.useRef();z.current=A,t.useEffect((function(){if(g){var e,t=function(t){var n=q.current,r=n.dragging,o=n.pageY,i=n.startTop;if(ri.cancel(e),r){var a=Gm(t,u)-o,l=i;!O&&u?l-=a:l+=a;var c=D.current,d=z.current,f=d?l/d:0,p=Math.ceil(f*c);p=Math.max(p,0),p=Math.min(p,c),e=ri((function(){s(p,u)}))}},n=function(){m(!1),c()};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),ri.cancel(e)}}}),[g]),t.useEffect((function(){R()}),[i]),t.useImperativeHandle(n,(function(){return{delayHidden:R}}));var B="".concat(r,"-scrollbar"),F={position:"absolute",visibility:N?null:"hidden"},H={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,H.height="100%",H.width=d,O?H.left=T:H.right=T):(F.width=8,F.top=0,F.bottom=0,O?F.right=0:F.left=0,H.width="100%",H.height=d,H.top=T),t.createElement("div",{ref:_,className:to()(B,w(w(w({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),N)),style:k(k({},F),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},t.createElement("div",{ref:$,className:to()("".concat(B,"-thumb"),w({},"".concat(B,"-thumb-moving"),g)),style:k(k({},H),h),onMouseDown:L}))}));var Qm=Xm,Zm=20;function Jm(){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,Zm),Math.floor(t)}var eb=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],tb=[],nb={overflowY:"auto",overflowAnchor:"none"};function rb(e,n){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,a=e.height,l=e.itemHeight,c=e.fullHeight,s=void 0===c||c,u=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,g=e.direction,m=e.scrollWidth,b=e.component,y=void 0===b?"div":b,x=e.onScroll,C=e.onVirtualScroll,E=e.onVisibleChange,O=e.innerProps,_=e.extraRender,$=e.styles,j=so(e,eb),N=t.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),I=function(e,n,r){var o=V(t.useState(0),2),i=o[0],a=o[1],l=(0,t.useRef)(new Map),c=(0,t.useRef)(new Um),s=(0,t.useRef)();function u(){ri.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=ro(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=ri(t)}return(0,t.useEffect)((function(){return u}),[]),[function(t,o){var i=e(t),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!=!o&&(o?null==n||n(t):null==r||r(t))},d,c.current,i]}(N,null,null),P=V(I,4),R=P[0],M=P[1],A=P[2],T=P[3],q=!(!1===h||!a||!l),L=t.useMemo((function(){return Object.values(A.maps).reduce((function(e,t){return e+t}),0)}),[A.id,A.maps]),D=q&&d&&(Math.max(l*d.length,L)>a||!!m),z="rtl"===g,B=to()(o,w({},"".concat(o,"-rtl"),z),i),F=d||tb,H=(0,t.useRef)(),W=(0,t.useRef)(),U=(0,t.useRef)(),Y=V((0,t.useState)(0),2),K=Y[0],G=Y[1],X=V((0,t.useState)(0),2),Q=X[0],Z=X[1],J=V((0,t.useState)(!1),2),ee=J[0],te=J[1],ne=function(){te(!0)},re=function(){te(!1)},oe={getKey:N};function ie(e){G((function(t){var n=function(e){var t=e;Number.isNaN(ke.current)||(t=Math.min(t,ke.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return H.current.scrollTop=n,n}))}var ae=(0,t.useRef)({start:0,end:F.length}),le=(0,t.useRef)(),ce=V(Bm(F,N),1)[0];le.current=ce;var se=t.useMemo((function(){if(!q)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};var e;if(!D)return{scrollHeight:(null===(e=W.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:F.length-1,offset:void 0};for(var t,n,r,o=0,i=F.length,c=0;c<i;c+=1){var s=F[c],u=N(s),d=A.get(u),f=o+(void 0===d?l:d);f>=K&&void 0===t&&(t=c,n=o),f>K+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=F.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,F.length-1),offset:n}}),[D,q,K,F,T,a]),ue=se.scrollHeight,de=se.start,fe=se.end,pe=se.offset;ae.current.start=de,ae.current.end=fe;var he=V(t.useState({width:0,height:a}),2),ve=he[0],ge=he[1],me=(0,t.useRef)(),be=(0,t.useRef)(),ye=t.useMemo((function(){return Jm(ve.width,m)}),[ve.width,m]),we=t.useMemo((function(){return Jm(ve.height,ue)}),[ve.height,ue]),xe=ue-a,ke=(0,t.useRef)(xe);ke.current=xe;var Ce=K<=0,Se=K>=xe,Ee=Q<=0,Oe=Q>=m,_e=Hm(Ce,Se,Ee,Oe),$e=function(){return{x:z?-Q:Q,y:K}},je=(0,t.useRef)($e()),Ne=Co((function(e){if(C){var t=k(k({},$e()),e);je.current.x===t.x&&je.current.y===t.y||(C(t),je.current=t)}}));function Ie(e,t){var n=e;t?((0,S.flushSync)((function(){Z(n)})),Ne()):ie(n)}var Pe=function(e){var t=e,n=m?m-ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Re=Co((function(e,t){t?((0,S.flushSync)((function(){Z((function(t){return Pe(t+(z?-e:e))}))})),Ne()):ie((function(t){return t+e}))})),Me=V(Wm(q,Ce,Se,Ee,Oe,!!m,Re),2),Ae=Me[0],Te=Me[1];!function(e,n,r){var o,i=(0,t.useRef)(!1),a=(0,t.useRef)(0),l=(0,t.useRef)(0),c=(0,t.useRef)(null),s=(0,t.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-n,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=n,r(u,u?o:c)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){u?o*=Ym:c*=Ym;var e=Math.floor(u?o:c);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16)}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u),c.current.addEventListener("touchend",d))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},Xe((function(){return e&&n.current.addEventListener("touchstart",f),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}}),[e])}(q,H,(function(e,t,n){return!_e(e,t,n)&&(Ae({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),Xe((function(){function e(e){q&&e.preventDefault()}var t=H.current;return t.addEventListener("wheel",Ae),t.addEventListener("DOMMouseScroll",Te),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Ae),t.removeEventListener("DOMMouseScroll",Te),t.removeEventListener("MozMousePixelScroll",e)}}),[q]),Xe((function(){if(m){var e=Pe(Q);Z(e),Ne({x:e})}}),[ve.width,m]);var qe=function(){var e,t;null===(e=me.current)||void 0===e||e.delayHidden(),null===(t=be.current)||void 0===t||t.delayHidden()},Le=function(e,n,r,o,i,a,l,c){var s=t.useRef(),u=V(t.useState(null),2),d=u[0],f=u[1];return Xe((function(){if(d&&d.times<Km){if(!e.current)return void f((function(e){return k({},e)}));a();var t=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,h=!1,v=t,g=null;if(p){for(var m=t||c,b=0,y=0,w=0,x=Math.min(n.length-1,s),C=0;C<=x;C+=1){var S=i(n[C]);y=b;var E=r.get(S);b=w=y+(void 0===E?o:E)}for(var O="top"===m?u:p-u,_=x;_>=0;_-=1){var $=i(n[_]),j=r.get($);if(void 0===j){h=!0;break}if((O-=j)<=0)break}switch(m){case"top":g=y-u;break;case"bottom":g=w-p+u;break;default:var N=e.current.scrollTop;y<N?v="top":w>N+p&&(v="bottom")}null!==g&&l(g),g!==d.lastTop&&(h=!0)}h&&f(k(k({},d),{},{times:d.times+1,targetAlign:v,lastTop:g}))}}),[d,e.current]),function(e){if(null!=e){if(ri.cancel(s.current),"number"==typeof e)l(e);else if(e&&"object"===v(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else c()}}(H,F,A,l,N,(function(){return M(!0)}),ie,qe);t.useImperativeHandle(n,(function(){return{nativeElement:U.current,getScrollInfo:$e,scrollTo:function(e){var t;(t=e)&&"object"===v(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Z(Pe(e.left)),Le(e.top)):Le(e)}}})),Xe((function(){if(E){var e=F.slice(de,fe+1);E(e,F)}}),[de,fe,F]);var De=function(e,n,r,o){var i=V(t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),2),a=i[0],l=i[1];return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,c=a.get(t),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=n(p);a.set(h,d);var v=null!==(f=r.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+v,h===t&&(c=d),h===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(F,N,A,l),ze=null==_?void 0:_({start:de,end:fe,virtual:D,offsetX:Q,offsetY:pe,rtl:z,getSize:De}),Be=function(e,n,r,o,i,a,l,c){var s=c.getKey;return e.slice(n,r+1).map((function(e,r){var c=l(e,n+r,{style:{width:o},offsetX:i}),u=s(e);return t.createElement(zm,{key:u,setRef:function(t){return a(e,t)}},c)}))}(F,de,fe,m,Q,R,f,oe),Fe=null;a&&(Fe=k(w({},s?"height":"maxHeight",a),nb),q&&(Fe.overflowY="hidden",m&&(Fe.overflowX="hidden"),ee&&(Fe.pointerEvents="none")));var He={};return z&&(He.dir="rtl"),t.createElement("div",ut({ref:U,style:k(k({},u),{},{position:"relative"}),className:B},He,j),t.createElement(ku,{onResize:function(e){ge({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},t.createElement(y,{className:"".concat(o,"-holder"),style:Fe,ref:H,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==K&&ie(t),null==x||x(e),Ne()},onMouseEnter:qe},t.createElement(Dm,{prefixCls:o,height:ue,offsetX:Q,offsetY:pe,scrollWidth:m,onInnerResize:M,ref:W,innerProps:O,rtl:z,extra:ze},Be))),D&&ue>a&&t.createElement(Qm,{ref:me,prefixCls:o,scrollOffset:K,scrollRange:ue,rtl:z,onScroll:Ie,onStartMove:ne,onStopMove:re,spinSize:we,containerSize:ve.height,style:null==$?void 0:$.verticalScrollBar,thumbStyle:null==$?void 0:$.verticalScrollBarThumb}),D&&m>ve.width&&t.createElement(Qm,{ref:be,prefixCls:o,scrollOffset:Q,scrollRange:m,rtl:z,onScroll:Ie,onStartMove:ne,onStopMove:re,spinSize:ye,containerSize:ve.width,horizontal:!0,style:null==$?void 0:$.horizontalScrollBar,thumbStyle:null==$?void 0:$.horizontalScrollBarThumb}))}var ob=t.forwardRef(rb);ob.displayName="List";var ib=ob;var ab=["disabled","title","children","style","className"];function lb(e){return"string"==typeof e||"number"==typeof e}var cb=function(e,n){var r=t.useContext(Dg),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,s=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=t.useContext(_m),h=p.maxCount,v=p.flattenOptions,g=p.onActiveValue,m=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,k=p.fieldNames,C=p.virtual,S=p.direction,E=p.listHeight,O=p.listItemHeight,_=p.optionRender,$="".concat(o,"-item"),j=ce((function(){return v}),[a,v],(function(e,t){return t[0]&&e[1]!==t[1]})),N=t.useRef(null),I=t.useMemo((function(){return l&&Sm(h)&&(null==x?void 0:x.size)>=h}),[l,h,null==x?void 0:x.size]),P=function(e){e.preventDefault()},R=function(e){var t;null===(t=N.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},M=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=j[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||I))return o}return-1},A=V(t.useState((function(){return M(0)})),2),T=A[0],q=A[1],L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=j[e];r?g(r.value,e,n):g(null,-1,n)};(0,t.useEffect)((function(){L(!1!==m?M(0):-1)}),[j.length,s]);var D=t.useCallback((function(e){return x.has(e)&&"combobox"!==c}),[c,Y(x).toString(),x.size]);(0,t.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===x.size){var e=Array.from(x)[0],t=j.findIndex((function(t){return t.data.value===e}));-1!==t&&(L(t),R(t))}}));a&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,s]);var z=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),l||u(!1)};if(t.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Ma.N:case Ma.P:case Ma.UP:case Ma.DOWN:var r=0;if(t===Ma.UP?r=-1:t===Ma.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Ma.N?r=1:t===Ma.P&&(r=-1)),0!==r){var o=M(T+r,r);R(o),L(o,!0)}break;case Ma.ENTER:var i,l=j[T];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||I?z(void 0):z(l.value),a&&e.preventDefault();break;case Ma.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===j.length)return t.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat($,"-empty"),onMouseDown:P},d);var B=Object.keys(k).map((function(e){return k[e]})),F=function(e){return e.label};function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var W=function(e){var n=j[e];if(!n)return null;var r=n.data||{},o=r.value,i=n.group,a=Da(r,!0),l=F(n);return n?t.createElement("div",ut({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},H(n,e),{"aria-selected":D(o)}),o):null},U={role:"listbox",id:"".concat(i,"_list")};return t.createElement(t.Fragment,null,C&&t.createElement("div",ut({},U,{style:{height:0,width:0,overflow:"hidden"}}),W(T-1),W(T),W(T+1)),t.createElement(ib,{itemKey:"key",ref:N,data:j,height:E,itemHeight:O,fullHeight:!1,onMouseDown:P,onScroll:f,virtual:C,direction:S,innerProps:C?null:U},(function(e,n){var r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,c=i.key;if(r){var s,u=null!==(s=i.title)&&void 0!==s?s:lb(a)?a.toString():void 0;return t.createElement("div",{className:to()($,"".concat($,"-group"),i.className),title:u},void 0!==a?a:c)}var d=i.disabled,f=i.title,p=(i.children,i.style),h=i.className,v=ac(so(i,ab),B),g=D(l),m=d||!g&&I,b="".concat($,"-option"),x=to()($,b,h,w(w(w(w({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),T===n&&!m),"".concat(b,"-disabled"),m),"".concat(b,"-selected"),g)),k=F(e),S=!y||"function"==typeof y||g,E="number"==typeof k?k:k||l,O=lb(E)?E.toString():void 0;return void 0!==f&&(O=f),t.createElement("div",ut({},Da(v),C?{}:H(e,n),{"aria-selected":g,className:x,title:O,onMouseMove:function(){T===n||m||L(n)},onClick:function(){m||z(l)},style:p}),t.createElement("div",{className:"".concat(b,"-content")},"function"==typeof _?_(e,{index:n}):E),t.isValidElement(y)||g,S&&t.createElement(Lg,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:m,isSelected:g}},g?"✓":null))})))};var sb=t.forwardRef(cb);function ub(e,t){return um(e).join("").toUpperCase().includes(t)}var db=0,fb=G();function pb(e){var n=V(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_select_".concat((fb?(e=db,db+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var hb=["children","value"],vb=["children"];function gb(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return xc(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,s=so(l,vb);return n||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return k({key:n,value:void 0!==i?i:n,children:o},so(r,hb))}(e):k(k({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},s),{},{options:gb(c)})})).filter((function(e){return e}))}var mb=function(e,n,r,o,i){return t.useMemo((function(){var t=e;!e&&(t=gb(n));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[r.options]||n?(a.set(u[r.value],u),c(l,u,r.label),c(l,u,o),c(l,u,i)):e(u[r.options],!0)}}(t),{options:t,valueOptions:a,labelOptions:l}}),[e,n,r,o,i])};function bb(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var yb=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],wb=["inputValue"];var xb=t.forwardRef((function(e,n){var r=e.id,o=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,h=e.onSelect,g=e.onDeselect,m=e.dropdownMatchSelectWidth,b=void 0===m||m,y=e.filterOption,x=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,E=e.options,O=e.optionRender,_=e.children,$=e.defaultActiveFirstOption,j=e.menuItemSelectedIcon,N=e.virtual,I=e.direction,P=e.listHeight,R=void 0===P?200:P,M=e.listItemHeight,A=void 0===M?20:M,T=e.labelRender,q=e.value,L=e.defaultValue,D=e.labelInValue,z=e.onChange,B=e.maxCount,F=so(e,yb),H=pb(r),W=Im(o),U=!(E||!_),K=t.useMemo((function(){return(void 0!==y||"combobox"!==o)&&y}),[y,o]),G=t.useMemo((function(){return Em(c,U)}),[JSON.stringify(c),U]),X=V(Oo("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),Q=X[0],Z=X[1],J=mb(E,_,G,C,S),ee=J.valueOptions,te=J.labelOptions,ne=J.options,re=t.useCallback((function(e){return um(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==v(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=ee.get(t);c&&(void 0===n&&(n=null==c?void 0:c[S||G.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[G,S,ee]),oe=V(Oo(L,{value:q}),2),ie=oe[0],ae=oe[1],le=t.useMemo((function(){var e,t=re(W&&null===ie?[]:ie);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ie,re,o,W]),ce=function(e,n){var r=t.useRef({values:new Map,options:new Map});return[t.useMemo((function(){var t=r.current,o=t.values,i=t.options,a=e.map((function(e){var t;return void 0===e.label?k(k({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,n.get(e.value)||i.get(e.value))})),r.current.values=l,r.current.options=c,a}),[e,n]),t.useCallback((function(e){return n.get(e)||r.current.options.get(e)}),[n])]}(le,ee),se=V(ce,2),ue=se[0],de=se[1],fe=t.useMemo((function(){if(!o&&1===ue.length){var e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map((function(e){var t;return k(k({},e),{},{label:null!==(t="function"==typeof T?T(e):e.label)&&void 0!==t?t:e.value})}))}),[o,ue,T]),pe=t.useMemo((function(){return new Set(ue.map((function(e){return e.value})))}),[ue]);t.useEffect((function(){if("combobox"===o){var e,t=null===(e=ue[0])||void 0===e?void 0:e.value;Z(function(e){return null!=e}(t)?String(t):"")}}),[ue]);var he=bb((function(e,t){var n=null!=t?t:e;return w(w({},G.value,e),G.label,n)})),ve=t.useMemo((function(){if("tags"!==o)return ne;var e=Y(ne);return Y(ue).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ee.has(e)})(n)||e.push(he(n,t.label))})),e}),[he,ne,ee,ue,o]),ge=function(e,n,r,o,i){return t.useMemo((function(){if(!r||!1===o)return e;var t=n.options,a=n.label,l=n.value,c=[],s="function"==typeof o,u=r.toUpperCase(),d=s?o:function(e,n){return i?ub(n[i],u):n[t]?ub(n["children"!==a?a:"label"],u):ub(n[l],u)},f=s?function(e){return Om(e)}:function(e){return e};return e.forEach((function(e){if(e[t])if(d(r,f(e)))c.push(e);else{var n=e[t].filter((function(e){return d(r,f(e))}));n.length&&c.push(k(k({},e),{},w({},t,n)))}else d(r,f(e))&&c.push(e)})),c}),[e,o,i,r,n])}(ve,G,Q,K,C),me=t.useMemo((function(){return"tags"!==o||!Q||ge.some((function(e){return e[C||"value"]===Q}))||ge.some((function(e){return e[G.value]===Q}))?ge:[he(Q)].concat(Y(ge))}),[he,C,o,ge,Q,G]),be=t.useMemo((function(){return x?Y(me).sort((function(e,t){return x(e,t)})):me}),[me,x]),ye=t.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Em(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:Cm(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:Cm(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(be,{fieldNames:G,childrenAsData:U})}),[be,G,U]),we=function(e){var t=re(e);if(ae(t),z&&(t.length!==ue.length||t.some((function(e,t){var n;return(null===(n=ue[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=D?t:t.map((function(e){return e.value})),r=t.map((function(e){return Om(de(e.value))}));z(W?n:n[0],W?r:r[0])}},xe=V(t.useState(null),2),ke=xe[0],Ce=xe[1],Se=V(t.useState(0),2),Ee=Se[0],Oe=Se[1],_e=void 0!==$?$:"combobox"!==o,$e=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Oe(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&Ce(String(e))}),[l,o]),je=function(e,t,n){var r=function(){var t,n=de(e);return[D?{label:null==n?void 0:n[G.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Om(n)]};if(t&&h){var o=V(r(),2),i=o[0],a=o[1];h(i,a)}else if(!t&&g&&"clear"!==n){var l=V(r(),2),c=l[0],s=l[1];g(c,s)}},Ne=bb((function(e,t){var n,r=!W||t.selected;n=r?W?[].concat(Y(ue),[e]):[e]:ue.filter((function(t){return t.value!==e})),we(n),je(e,r),"combobox"===o?Ce(""):Im&&!p||(Z(""),Ce(""))})),Ie=t.useMemo((function(){var e=!1!==N&&!1!==b;return k(k({},J),{},{flattenOptions:ye,onActiveValue:$e,defaultActiveFirstOption:_e,onSelect:Ne,menuItemSelectedIcon:j,rawValues:pe,fieldNames:G,virtual:e,direction:I,listHeight:R,listItemHeight:A,childrenAsData:U,maxCount:B,optionRender:O})}),[B,J,ye,$e,_e,Ne,j,pe,G,N,b,I,R,A,U,O]);return t.createElement(_m.Provider,{value:Ie},t.createElement(Rm,ut({},F,{id:H,prefixCls:a,ref:n,omitDomProps:wb,mode:o,displayValues:fe,onDisplayValuesChange:function(e,t){we(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){je(e.value,!1,n)}))},direction:I,searchValue:Q,onSearch:function(e,t){if(Z(e),Ce(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Y(pe),[n])));we(r),je(n,!0),Z("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=te.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Y(pe),Y(t))));we(n),n.forEach((function(e){je(e,!0)}))},dropdownMatchSelectWidth:b,OptionList:sb,emptyOptions:!ye.length,activeValue:ke,activeDescendantId:"".concat(H,"_list_").concat(Ee)})))}));var kb=xb;kb.Option=qm,kb.OptGroup=Am;var Cb=kb;var Sb=()=>{const[,e]=Pi(),n=new Nr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return t.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(24 31.67)"},t.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),t.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"}),t.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)"}),t.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"}),t.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"})),t.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"}),t.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var Eb=()=>{const[,e]=Pi(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,t.useMemo)((()=>({borderColor:new Nr(n).onBackground(i).toHexShortString(),shadowColor:new Nr(r).onBackground(i).toHexShortString(),contentColor:new Nr(o).onBackground(i).toHexShortString()})),[n,r,o,i]);return t.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},t.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),t.createElement("g",{fillRule:"nonzero",stroke:a},t.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"}),t.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:c}))))};const Ob=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var _b=Sl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=cl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Ob(o)]})),$b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jb=t.createElement(Sb,null),Nb=t.createElement(Eb,null),Ib=e=>{var{className:n,rootClassName:r,prefixCls:o,image:i=jb,description:a,children:l,imageStyle:c,style:s}=e,u=$b(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=t.useContext(D),h=d("empty",o),[v,g,m]=_b(h),[b]=Hd("Empty"),y=void 0!==a?a:null==b?void 0:b.description,w="string"==typeof y?y:"empty";let x=null;return x="string"==typeof i?t.createElement("img",{alt:w,src:i}):i,v(t.createElement("div",Object.assign({className:to()(g,m,h,null==p?void 0:p.className,{[`${h}-normal`]:i===Nb,[`${h}-rtl`]:"rtl"===f},n,r),style:Object.assign(Object.assign({},null==p?void 0:p.style),s)},u),t.createElement("div",{className:`${h}-image`,style:c},x),y&&t.createElement("div",{className:`${h}-description`},y),l&&t.createElement("div",{className:`${h}-footer`},l)))};Ib.PRESENTED_IMAGE_DEFAULT=jb,Ib.PRESENTED_IMAGE_SIMPLE=Nb;var Pb=Ib;var Rb=e=>{const{componentName:n}=e,{getPrefixCls:r}=(0,t.useContext)(D),o=r("empty");switch(n){case"Table":case"List":return t.createElement(Pb,{image:Pb.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement(Pb,{image:Pb.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return t.createElement(Pb,null)}};var Mb=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)};const Ab=new bn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Tb=new bn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qb=new bn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Lb=new bn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Db=new bn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),zb=new bn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Bb=new bn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Fb=new bn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Hb={"slide-up":{inKeyframes:Ab,outKeyframes:Tb},"slide-down":{inKeyframes:qb,outKeyframes:Lb},"slide-left":{inKeyframes:Db,outKeyframes:zb},"slide-right":{inKeyframes:Bb,outKeyframes:Fb}},Wb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Hb[t];return[kd(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Vb=new bn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ub=new bn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Yb=new bn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kb=new bn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Gb=new bn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xb=new bn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Qb={"move-up":{inKeyframes:new bn("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 bn("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:Vb,outKeyframes:Ub},"move-left":{inKeyframes:Yb,outKeyframes:Kb},"move-right":{inKeyframes:Gb,outKeyframes:Xb}},Zb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Qb[t];return[kd(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Jb=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var ey=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${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`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ti(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 ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Ab},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:qb},[`${a}${l}bottomLeft`]:{animationName:Tb},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Lb},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Jb(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"},Ai),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Jb(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Wb(e,"slide-up"),Wb(e,"slide-down"),Zb(e,"move-up"),Zb(e,"move-down")]};const ty=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Fe(t),itemLineHeight:Fe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},ny=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).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:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},ry=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=ty(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ny(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Fe(r)} 0`,lineHeight:Fe(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Fe(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-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:Fe(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 oy(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{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[ry(e,t),o]}var iy=e=>{const{componentCls:t}=e,n=cl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=cl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[oy(e),oy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},oy(r,"lg")]};function ay(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ti(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Fe(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 ${Fe(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Fe(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 ${Fe(r)}`,"&:after":{display:"none"}}}}}}}function ly(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ay(e),ay(cl(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 ${Fe(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()}}}},ay(cl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const cy=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Fe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Fe(o)} ${t.activeShadowColor}`,outline:0}}}},sy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cy(e,t))}),uy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},cy(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),sy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),sy(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:`${Fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),dy=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Fe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},fy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dy(e,t))}),py=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},dy(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),fy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),fy(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:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),hy=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:`${Fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}});var vy=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},uy(e)),py(e)),hy(e))});const gy=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"}}}},my=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"}}}},by=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ti(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},gy(e)),my(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ai),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ai),{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:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},yy=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},by(e),ly(e),iy(e),ey(e),{[`${t}-rtl`]:{direction:"rtl"}},ps(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var wy=Sl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=cl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yy(r),vy(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:m}=e,b=2*l,y=2*r,w=Math.min(o-b,o-y),x=Math.min(i-b,i-y),k=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:k,multipleSelectorBgDisabled:g,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),xy={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"},ky=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:xy}))};var Cy=t.forwardRef(ky),Sy={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"},Ey=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:Sy}))};var Oy=t.forwardRef(Ey);function _y(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=null!=r?r:t.createElement(wa,null),v=e=>null!==n||c||f?t.createElement(t.Fragment,null,!1!==u&&e,c&&d):null;let g=null;if(void 0!==n)g=v(n);else if(a)g=v(t.createElement(Pa,{spin:!0}));else{const e=`${s}-suffix`;g=n=>{let{open:r,showSearch:o}=n;return v(r&&o?t.createElement(pg,{className:e}):t.createElement(Oy,{className:e}))}}let m=null;m=void 0!==o?o:l?t.createElement(Cy,null):null;let b=null;return b=void 0!==i?i:t.createElement(Ca,null),{clearIcon:h,suffixIcon:g,itemIcon:m,removeIcon:b}}var $y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jy="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ny=(e,n)=>{var r;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:c,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:v,notFoundContent:g,status:m,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:k,allowClear:C,variant:S,dropdownStyle:E,transitionName:O,tagRender:_,maxCount:$}=e,j=$y(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:N,getPrefixCls:I,renderEmpty:P,direction:R,virtual:M,popupMatchSelectWidth:A,popupOverflow:T,select:q}=t.useContext(D),[,L]=Pi(),z=null!=p?p:null==L?void 0:L.controlHeight,B=I("select",o),F=I(),H=null!=x?x:R,{compactSize:W,compactItemClassnames:V}=Cc(B,H),[U,Y]=zv(S,i),K=Ja(B),[G,X,Q]=wy(B,K),Z=t.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===jy?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(r=null!=w?w:y)&&void 0!==r?r:A,{status:ne,hasFeedback:re,isFormItemInput:oe,feedbackIcon:ie}=t.useContext(Up),ae=Lv(ne,m);let le;le=void 0!==g?g:"combobox"===Z?null:(null==P?void 0:P("Select"))||t.createElement(Rb,{componentName:"Select"});const{suffixIcon:ce,itemIcon:se,removeIcon:ue,clearIcon:de}=_y(Object.assign(Object.assign({},j),{multiple:J,hasFeedback:re,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:B,componentName:"Select"})),fe=!0===C?{clearIcon:de}:C,pe=ac(j,["suffixIcon","itemIcon"]),he=to()(s||u,{[`${B}-dropdown-${H}`]:"rtl"===H},l,Q,K,X),ve=wc((e=>{var t;return null!==(t=null!=h?h:W)&&void 0!==t?t:e})),ge=t.useContext(Ur),me=null!=v?v:ge,be=to()({[`${B}-lg`]:"large"===ve,[`${B}-sm`]:"small"===ve,[`${B}-rtl`]:"rtl"===H,[`${B}-${U}`]:Y,[`${B}-in-form-item`]:oe},qv(B,ae,re),V,null==q?void 0:q.className,a,l,Q,K,X),ye=t.useMemo((()=>void 0!==f?f:"rtl"===H?"bottomRight":"bottomLeft"),[f,H]);const[we]=il("SelectLike",null==E?void 0:E.zIndex);return G(t.createElement(Cb,Object.assign({ref:n,virtual:M,showSearch:null==q?void 0:q.showSearch},pe,{style:Object.assign(Object.assign({},null==q?void 0:q.style),k),dropdownMatchSelectWidth:te,transitionName:cd(F,"slide-up",O),builtinPlacements:Mb(b,T),listHeight:d,listItemHeight:z,mode:Z,prefixCls:B,placement:ye,direction:H,suffixIcon:ce,menuItemSelectedIcon:se,removeIcon:ue,allowClear:fe,notFoundContent:le,className:be,getPopupContainer:c||N,dropdownClassName:he,disabled:me,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:we}),maxCount:J?$:void 0,tagRender:J?_:void 0})))};const Iy=t.forwardRef(Ny),Py=Ph(Iy);Iy.SECRET_COMBOBOX_MODE_DO_NOT_USE=jy,Iy.Option=qm,Iy.OptGroup=Am,Iy._InternalPanelDoNotUseOrYouWillBeFired=Py;var Ry=Iy;function My(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ay(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ay(e,t)}(e,t)||function(){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 Ay(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ty=Ry.Option,qy=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=c.empty,h=c.searchable,v=c.multiple,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,m=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=My(l(),2),x=(w[0],w[1]);return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)(Ry,{showSearch:!!h,value:s,mode:v?"multiple":null,onChange:function(e){x({type:d,id:a,value:e,fieldType:g,parentId:m,repeaterData:y,index:b})},filterOption:function(e,t){return null==t?void 0:t.children.toLowerCase().includes(e.toLowerCase())},children:[p&&(0,r.jsx)(Ty,{value:"",children:p}),Object.keys(f).map((function(e){return(0,r.jsx)(Ty,{value:e,children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:f[e]}})},e)}))]})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},Ly={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Dy=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:Ly}))};var zy=t.forwardRef(Dy);function By(){return"function"==typeof BigInt}function Fy(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Hy(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Wy(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Vy(e){var t=String(e);if(Wy(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Yy(t)?t.length-t.indexOf(".")-1:0}function Uy(e){var t=String(e);if(Wy(e)){if(e>Number.MAX_SAFE_INTEGER)return String(By()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(By()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Vy(t))}return Hy(t).fullStr}function Yy(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var Ky=function(){function e(t){if(be(this,e),w(this,"origin",""),w(this,"negative",void 0),w(this,"integer",void 0),w(this,"decimal",void 0),w(this,"decimalLen",void 0),w(this,"empty",void 0),w(this,"nan",void 0),Fy(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(Wy(n)&&(n=Number(n)),Yy(n="string"==typeof n?n:Uy(n))){var r=Hy(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return we(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=Hy(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Hy("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Gy=function(){function e(t){be(this,e),w(this,"origin",""),w(this,"number",void 0),w(this,"empty",void 0),Fy(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return we(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Vy(this.number),Vy(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Vy(this.number),Vy(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Uy(this.number):this.origin}}]),e}();function Xy(e){return By()?new Ky(e):new Gy(e)}function Qy(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Hy(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?Qy(Xy(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var Zy=Xy;var Jy=function(){var e=V((0,t.useState)(!1),2),n=e[0],r=e[1];return Xe((function(){r(Ou())}),[]),n};function ew(e){var n=e.prefixCls,r=e.upNode,o=e.downNode,i=e.upDisabled,a=e.downDisabled,l=e.onStep,c=t.useRef(),s=t.useRef([]),u=t.useRef();u.current=l;var d=function(){clearTimeout(c.current)},f=function(e,t){e.preventDefault(),d(),u.current(t),c.current=setTimeout((function e(){u.current(t),c.current=setTimeout(e,200)}),600)};if(t.useEffect((function(){return function(){d(),s.current.forEach((function(e){return ri.cancel(e)}))}}),[]),Jy())return null;var p="".concat(n,"-handler"),h=to()(p,"".concat(p,"-up"),w({},"".concat(p,"-up-disabled"),i)),v=to()(p,"".concat(p,"-down"),w({},"".concat(p,"-down-disabled"),a)),g=function(){return s.current.push(ri(d))},m={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return t.createElement("div",{className:"".concat(p,"-wrap")},t.createElement("span",ut({},m,{onMouseDown:function(e){f(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),r||t.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),t.createElement("span",ut({},m,{onMouseDown:function(e){f(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),o||t.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}function tw(e){var t="number"==typeof e?Uy(e):Hy(e).fullStr;return t.includes(".")?Hy(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var nw=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],rw=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ow=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},iw=function(e){var t=Zy(e);return t.isInvalidate()?null:t},aw=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.min,l=e.max,c=e.step,s=void 0===c?1:c,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,g=e.downHandler,m=e.keyboard,b=e.changeOnWheel,y=void 0!==b&&b,x=e.controls,k=void 0===x||x,C=(e.classNames,e.stringMode),S=e.parser,E=e.formatter,O=e.precision,_=e.decimalSeparator,$=e.onChange,j=e.onInput,N=e.onPressEnter,I=e.onStep,P=e.changeOnBlur,R=void 0===P||P,M=e.domRef,A=so(e,nw),T="".concat(r,"-input"),q=t.useRef(null),L=V(t.useState(!1),2),D=L[0],z=L[1],B=t.useRef(!1),F=t.useRef(!1),H=t.useRef(!1),W=V(t.useState((function(){return Zy(null!=d?d:u)})),2),U=W[0],Y=W[1];var K=t.useCallback((function(e,t){if(!t)return O>=0?O:Math.max(Vy(e),Vy(s))}),[O,s]),G=t.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return _&&(n=n.replace(_,".")),n.replace(/[^\w.-]+/g,"")}),[S,_]),X=t.useRef(""),Q=t.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?Uy(e):e;if(!t){var r=K(n,t);if(Yy(n)&&(_||r>=0))n=Qy(n,_||".",r)}return n}),[E,K,_]),Z=V(t.useState((function(){var e=null!=u?u:d;return U.isInvalidate()&&["string","number"].includes(v(e))?Number.isNaN(e)?"":e:Q(U.toString(),!1)})),2),J=Z[0],ee=Z[1];function te(e,t){ee(Q(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=J;var ne,re,oe=t.useMemo((function(){return iw(l)}),[l,O]),ie=t.useMemo((function(){return iw(a)}),[a,O]),ae=t.useMemo((function(){return!(!oe||!U||U.isInvalidate())&&oe.lessEquals(U)}),[oe,U]),le=t.useMemo((function(){return!(!ie||!U||U.isInvalidate())&&U.lessEquals(ie)}),[ie,U]),ce=function(e,n){var r=(0,t.useRef)(null);return[function(){try{var t=e.selectionStart,n=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(n);r.current={start:t,end:n,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&r.current&&n)try{var t=e.value,o=r.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,c=t.length;if(t.endsWith(a))c=t.length-r.current.afterTxt.length;else if(t.startsWith(i))c=i.length;else{var s=i[l-1],u=t.indexOf(s,l-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(e){ge(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(q.current,D),se=V(ce,2),ue=se[0],de=se[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!p&&!f&&o){var i=r.toString(),a=K(i,t);return a>=0&&(r=Zy(Qy(i,".",a)),pe(r)||(r=Zy(Qy(i,".",a,!0)))),r.equals(U)||(n=r,void 0===d&&Y(n),null==$||$(r.isEmpty()?null:ow(C,r)),void 0===d&&te(r,t)),r}return U},ve=(ne=(0,t.useRef)(0),re=function(){ri.cancel(ne.current)},(0,t.useEffect)((function(){return re}),[]),function(e){re(),ne.current=ri((function(){e()}))}),me=function e(t){if(ue(),X.current=t,ee(t),!F.current){var n=G(t),r=Zy(n);r.isNaN()||he(r,!0)}null==j||j(t),ve((function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&ae||!e&&le)){B.current=!1;var n=Zy(H.current?tw(s):s);e||(n=n.negate());var r=(U||Zy(0)).add(n.toString()),o=he(r,!1);null==I||I(ow(C,o),{offset:H.current?tw(s):s,type:e?"up":"down"}),null===(t=q.current)||void 0===t||t.focus()}},ye=function(e){var t,n=Zy(G(J));t=n.isNaN()?he(U,e):he(n,e),void 0!==d?te(U,!1):t.isNaN()||te(t,!1)};t.useEffect((function(){if(y&&D){var e=function(e){be(e.deltaY<0),e.preventDefault()},t=q.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Ge((function(){U.isInvalidate()||te(U,!1)}),[O,E]),Ge((function(){var e=Zy(d);Y(e);var t=Zy(G(J));e.equals(t)&&B.current&&!E||te(e,B.current)}),[d]),Ge((function(){E&&de()}),[J]),t.createElement("div",{ref:M,className:to()(r,o,w(w(w(w(w({},"".concat(r,"-focused"),D),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),U.isNaN()),"".concat(r,"-out-of-range"),!U.isInvalidate()&&!pe(U))),style:i,onFocus:function(){z(!0)},onBlur:function(){R&&ye(!1),z(!1),B.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;B.current=!0,H.current=n,"Enter"===t&&(F.current||(B.current=!1),ye(!1),null==N||N(e)),!1!==m&&!F.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){B.current=!1,H.current=!1},onCompositionStart:function(){F.current=!0},onCompositionEnd:function(){F.current=!1,me(q.current.value)},onBeforeInput:function(){B.current=!0}},k&&t.createElement(ew,{prefixCls:r,upNode:h,downNode:g,upDisabled:ae,downDisabled:le,onStep:be}),t.createElement("div",{className:"".concat(T,"-wrap")},t.createElement("input",ut({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":l,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:s},A,{ref:ao(q,n),className:T,value:J,onChange:function(e){me(e.target.value)},disabled:f,readOnly:p}))))})),lw=t.forwardRef((function(e,n){var r=e.disabled,o=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,l=e.value,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,h=so(e,rw),v=t.useRef(null),g=t.useRef(null),m=t.useRef(null);return t.useImperativeHandle(n,(function(){return e=m.current,t={nativeElement:v.current.nativeElement||g.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t})),t.createElement(Nv,{className:f,triggerFocus:function(e){m.current&&$v(m.current,e)},prefixCls:a,value:l,disabled:r,style:o,prefix:c,suffix:s,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},t.createElement(aw,ut({prefixCls:a,disabled:r,ref:m,domRef:g,className:null==p?void 0:p.input},h)))}));var cw=lw;const sw=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},uw=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:i,controlHeightLG:a,controlHeightSM:l,colorError:c,paddingInlineSM:s,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:h,handleHoverColor:v,paddingInline:g,paddingBlock:m,handleBg:b,handleActiveBg:y,colorTextDisabled:w,borderRadiusSM:x,borderRadiusLG:k,controlWidth:C,handleOpacity:S,handleBorderColor:E,filledHandleBg:O,lineHeightLG:_,calc:$}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ti(e)),vv(e)),{display:"inline-block",width:C,margin:0,padding:0,borderRadius:o}),rv(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${Fe(n)} ${r} ${E}`}}})),sv(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${Fe(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),av(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:_,borderRadius:k,[`input${t}-input`]:{height:$(a).sub($(n).mul(2)).equal(),padding:`${Fe(d)} ${Fe(f)}`}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:$(l).sub($(n).mul(2)).equal(),padding:`${Fe(u)} ${Fe(s)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ti(e)),gv(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},iv(e)),dv(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ti(e)),{width:"100%",padding:`${Fe(m)} ${Fe(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),fv(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:S,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Fe(n)} ${r} ${E}`,transition:`all ${h} linear`,"&:active":{background:y},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:v}},"&-up-inner, &-down-inner":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"}}),{color:p,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},sw(e,"lg")),sw(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:w}})}]},dw=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Fe(n)} 0`}},vv(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Fe(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Fe(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}};var fw=Sl("InputNumber",(e=>{const t=cl(e,Qh(e));return[uw(t),dw(t),ps(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},Zh(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Nr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}}),pw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hw=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o}=t.useContext(D),i=t.useRef(null);t.useImperativeHandle(n,(()=>i.current));const{className:a,rootClassName:l,size:c,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,bordered:h,readOnly:v,status:g,controls:m,variant:b}=e,y=pw(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),w=r("input-number",u),x=Ja(w),[k,C,S]=fw(w,x),{compactSize:E,compactItemClassnames:O}=Cc(w,o);let _=t.createElement(zy,{className:`${w}-handler-up-inner`}),$=t.createElement(Oy,{className:`${w}-handler-down-inner`});const j="boolean"==typeof m?m:void 0;"object"==typeof m&&(_=void 0===m.upIcon?_:t.createElement("span",{className:`${w}-handler-up-inner`},m.upIcon),$=void 0===m.downIcon?$:t.createElement("span",{className:`${w}-handler-down-inner`},m.downIcon));const{hasFeedback:N,status:I,isFormItemInput:P,feedbackIcon:R}=t.useContext(Up),M=Lv(I,g),A=wc((e=>{var t;return null!==(t=null!=c?c:E)&&void 0!==t?t:e})),T=t.useContext(Ur),q=null!=s?s:T,[L,z]=zv(b,h),B=N&&t.createElement(t.Fragment,null,R),F=to()({[`${w}-lg`]:"large"===A,[`${w}-sm`]:"small"===A,[`${w}-rtl`]:"rtl"===o,[`${w}-in-form-item`]:P},C),H=`${w}-group`;return k(t.createElement(cw,Object.assign({ref:i,disabled:q,className:to()(S,x,a,l,O),upHandler:_,downHandler:$,prefixCls:w,readOnly:v,controls:j,prefix:p,suffix:B,addonAfter:f&&t.createElement(Sc,null,t.createElement(Yp,{override:!0,status:!0},f)),addonBefore:d&&t.createElement(Sc,null,t.createElement(Yp,{override:!0,status:!0},d)),classNames:{input:F,variant:to()({[`${w}-${L}`]:z},qv(w,M,N)),affixWrapper:to()({[`${w}-affix-wrapper-sm`]:"small"===A,[`${w}-affix-wrapper-lg`]:"large"===A,[`${w}-affix-wrapper-rtl`]:"rtl"===o},C),wrapper:to()({[`${H}-rtl`]:"rtl"===o},C),groupWrapper:to()({[`${w}-group-wrapper-sm`]:"small"===A,[`${w}-group-wrapper-lg`]:"large"===A,[`${w}-group-wrapper-rtl`]:"rtl"===o,[`${w}-group-wrapper-${L}`]:z},qv(`${w}-group-wrapper`,M,N),C)}},y)))})),vw=hw;vw._InternalPanelDoNotUseOrYouWillBeFired=e=>t.createElement(Ji,{theme:{components:{InputNumber:{handleVisible:!0}}}},t.createElement(hw,Object.assign({},e)));var gw=vw;function mw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bw(e,t)}(e,t)||function(){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 bw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yw=function(e){var t,n,o,i,a=e.field,c=a.help,s=a.value,u=a.placeholder,f=a.size,p=a.min,h=a.max,v=e.id,g=mw(l(),2),m=(g[0],g[1]),b=null===(t=e.field)||void 0===t?void 0:t.fieldType,y=null===(n=e.field)||void 0===n?void 0:n.parentId,w=null===(o=e.field)||void 0===o?void 0:o.index,x=null===(i=e.field)||void 0===i?void 0:i.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(gw,{className:"rtsb-form-field",size:f,min:p,max:h,defaultValue:"null"!==s?s:"",placeholder:u,value:"null"!==s?s:"",onChange:function(e){m({type:d,id:v,value:e,fieldType:b,parentId:y,repeaterData:x,index:w})}})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},ww=function(e){var t=e.field.html;return(0,r.jsxs)("div",{className:"rtsb-field raw",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsx)("div",{className:"rtsb-field__content",children:t&&(0,r.jsx)("div",{className:"rtsb-field__html",dangerouslySetInnerHTML:{__html:t}})})]})},xw=function(e){var t=e.field,n=t.label,o=t.subtitle;return(0,r.jsxs)("div",{className:"rtsb-field-title",children:[(0,r.jsx)("h3",{className:"title-label",children:n}),o&&(0,r.jsx)("div",{className:"rtsb-field__subtitle",dangerouslySetInnerHTML:{__html:o}})]})};const kw=e=>e?"function"==typeof e?e():e:null,Cw=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},Ti(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:v},[`${t}-inner-content`]:{color:n,padding:h}})},vd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Sw=e=>{const{componentCls:t}=e;return{[t]:Id.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Ew=Sl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=cl(e,{popoverBg:t,popoverColor:n});return[Cw(r),Sw(r),Nd(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},ud(e)),pd({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${v}px ${h}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${v}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Ow=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _w=e=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:c,children:s}=e;return t.createElement("div",{className:to()(n,r,`${r}-pure`,`${r}-placement-${a}`,o),style:i},t.createElement("div",{className:`${r}-arrow`}),t.createElement(As,Object.assign({},e,{className:n,prefixCls:r}),s||((e,n,r)=>n||r?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${e}-title`},kw(n)),t.createElement("div",{className:`${e}-inner-content`},kw(r))):null)(r,l,c)))};var $w=e=>{const{prefixCls:n,className:r}=e,o=Ow(e,["prefixCls","className"]),{getPrefixCls:i}=t.useContext(D),a=i("popover",n),[l,c,s]=Ew(a);return l(t.createElement(_w,Object.assign({},o,{prefixCls:a,hashId:c,className:to()(r,s)})))},jw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Nw=e=>{let{title:n,content:r,prefixCls:o}=e;return t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${o}-title`},kw(n)),t.createElement("div",{className:`${o}-inner-content`},kw(r)))},Iw=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:i,title:a,content:l,overlayClassName:c,placement:s="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:h,overlayStyle:v={}}=e,g=jw(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:m}=t.useContext(D),b=m("popover",i),[y,w,x]=Ew(b),k=m(),C=to()(c,w,x),[S,E]=Oo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),O=(e,t)=>{E(e,!0),null==h||h(e,t)};return y(t.createElement(Fd,Object.assign({placement:s,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:v},g,{prefixCls:b,overlayClassName:C,ref:n,open:S,onOpenChange:e=>{O(e)},overlay:a||l?t.createElement(Nw,{prefixCls:b,title:a,content:l}):null,transitionName:cd(k,"zoom-big",g.transitionName),"data-popover-inject":!0}),uc(d,{onKeyDown:e=>{var n,r;t.isValidElement(d)&&(null===(r=null==d?void 0:(n=d.props).onKeyDown)||void 0===r||r.call(n,e)),(e=>{e.keyCode===Ma.ESC&&O(!1,e)})(e)}})))})),Pw=Iw;Pw._InternalPanelDoNotUseOrYouWillBeFired=$w;var Rw=Pw;const Mw=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Ti(e)),{borderBlockStart:`${Fe(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Fe(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Fe(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Fe(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Fe(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Fe(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var Aw=Sl("Divider",(e=>{const t=cl(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Mw(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),Tw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var qw=e=>{const{getPrefixCls:n,direction:r,divider:o}=t.useContext(D),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:c,className:s,rootClassName:u,children:d,dashed:f,plain:p,style:h}=e,v=Tw(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=n("divider",i),[m,b,y]=Aw(g),w=l.length>0?`-${l}`:l,x=!!d,k="left"===l&&null!=c,C="right"===l&&null!=c,S=to()(g,null==o?void 0:o.className,b,y,`${g}-${a}`,{[`${g}-with-text`]:x,[`${g}-with-text${w}`]:x,[`${g}-dashed`]:!!f,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===r,[`${g}-no-default-orientation-margin-left`]:k,[`${g}-no-default-orientation-margin-right`]:C},s,u),E=t.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},k&&{marginLeft:E}),C&&{marginRight:E});return m(t.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==o?void 0:o.style),h)},v,{role:"separator"}),d&&"vertical"!==a&&t.createElement("span",{className:`${g}-inner-text`,style:O},d)))},Lw=["b"],Dw=["v"],zw=function(e){return Math.round(Number(e||0))},Bw=function(e){vo(n,e);var t=wo(n);function n(e){return be(this,n),t.call(this,function(e){if(e&&"object"===v(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return k(k({},so(t,Lw)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return we(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=zw(100*e.s),n=zw(100*e.b),r=zw(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv();"object"===v(this.originalInput)&&this.originalInput&&"h"in this.originalInput&&(e=this.originalInput);var t=e;t.v;return k(k({},so(t,Dw)),{},{b:e.v,a:this.a})}}]),n}(Nr),Fw=function(e){return e instanceof Bw?e:new Bw(e)},Hw=Fw("#1677ff"),Ww=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,d=s.height/2,f=(t.x+u)/l,p=1-(t.y+d)/c,h=o.toHsb(),v=f,g=(t.x+u)/l*360;if(i)switch(i){case"hue":return Fw(k(k({},h),{},{h:g<=0?0:g}));case"alpha":return Fw(k(k({},h),{},{a:v<=0?0:v}))}return Fw({h:h.h,s:f<=0?0:f,b:p>=1?1:p,a:h.a})},Vw=function(e,t,n,r){var o=e.current.getBoundingClientRect(),i=o.width,a=o.height,l=t.current.getBoundingClientRect(),c=l.width,s=l.height,u=c/2,d=s/2,f=n.toHsb();if((0!==c||0!==s)&&c===s){if(r)switch(r){case"hue":return{x:f.h/360*i-u,y:-d/3};case"alpha":return{x:f.a/1*i-u,y:-d/3}}return{x:f.s*i-u,y:(1-f.b)*a-d}}},Uw=function(e){var n=e.color,r=e.prefixCls,o=e.className,i=e.style,a=e.onClick,l="".concat(r,"-color-block");return t.createElement("div",{className:to()(l,o),style:i,onClick:a},t.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};var Yw=function(e){var n=e.offset,r=e.targetRef,o=e.containerRef,i=e.direction,a=e.onDragChange,l=e.onDragChangeComplete,c=e.calculate,s=e.color,u=e.disabledDrag,d=V((0,t.useState)(n||{x:0,y:0}),2),f=d[0],p=d[1],h=(0,t.useRef)(null),v=(0,t.useRef)(null),g=(0,t.useRef)({flag:!1});(0,t.useEffect)((function(){if(!1===g.current.flag){var e=null==c?void 0:c(o);e&&p(e)}}),[s,o]),(0,t.useEffect)((function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null}}),[]);var m=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),n=t.pageX,l=t.pageY,c=o.current.getBoundingClientRect(),s=c.x,u=c.y,d=c.width,h=c.height,v=r.current.getBoundingClientRect(),g=v.width,m=v.height,b=g/2,y=m/2,w=Math.max(0,Math.min(n-s,d))-b,x=Math.max(0,Math.min(l-u,h))-y,k={x:w,y:"x"===i?f.y:x};if(0===g&&0===m||g!==m)return!1;p(k),null==a||a(k)},b=function(e){e.preventDefault(),m(e)},y=function(e){e.preventDefault(),g.current.flag=!1,document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null,null==l||l()};return[f,function(e){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),u||(m(e),g.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),document.addEventListener("touchmove",b),document.addEventListener("touchend",y),h.current=b,v.current=y)}]},Kw=function(e){var n=e.size,r=void 0===n?"default":n,o=e.color,i=e.prefixCls;return t.createElement("div",{className:to()("".concat(i,"-handler"),w({},"".concat(i,"-handler-sm"),"small"===r)),style:{backgroundColor:o}})},Gw=function(e){var n=e.children,r=e.style,o=e.prefixCls;return t.createElement("div",{className:"".concat(o,"-palette"),style:k({position:"relative"},r)},n)},Xw=(0,t.forwardRef)((function(e,n){var r=e.children,o=e.offset;return t.createElement("div",{ref:n,style:{position:"absolute",left:o.x,top:o.y,zIndex:1}},r)})),Qw=Xw,Zw=function(e){var n=e.color,r=e.onChange,o=e.prefixCls,i=e.onChangeComplete,a=e.disabled,l=(0,t.useRef)(),c=(0,t.useRef)(),s=(0,t.useRef)(n),u=Co((function(e){var t=Ww({offset:e,targetRef:c,containerRef:l,color:n});s.current=t,r(t)})),d=V(Yw({color:n,containerRef:l,targetRef:c,calculate:function(e){return Vw(e,c,n)},onDragChange:u,onDragChangeComplete:function(){return null==i?void 0:i(s.current)},disabledDrag:a}),2),f=d[0],p=d[1];return t.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},t.createElement(Gw,{prefixCls:o},t.createElement(Qw,{offset:f,ref:c},t.createElement(Kw,{color:n.toRgbString(),prefixCls:o})),t.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Jw=function(e){var n=e.colors,r=e.children,o=e.direction,i=void 0===o?"to right":o,a=e.type,l=e.prefixCls,c=(0,t.useMemo)((function(){return n.map((function(e,t){var r=Fw(e);return"alpha"===a&&t===n.length-1&&r.setAlpha(1),r.toRgbString()})).join(",")}),[n,a]);return t.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},r)},ex=function(e){var n=e.gradientColors,r=e.direction,o=e.type,i=void 0===o?"hue":o,a=e.color,l=e.value,c=e.onChange,s=e.onChangeComplete,u=e.disabled,d=e.prefixCls,f=(0,t.useRef)(),p=(0,t.useRef)(),h=(0,t.useRef)(a),v=Co((function(e){var t=Ww({offset:e,targetRef:p,containerRef:f,color:a,type:i});h.current=t,c(t)})),g=V(Yw({color:a,targetRef:p,containerRef:f,calculate:function(e){return Vw(e,p,a,i)},onDragChange:v,onDragChangeComplete:function(){null==s||s(h.current,i)},direction:"x",disabledDrag:u}),2),m=g[0],b=g[1];return t.createElement("div",{ref:f,className:to()("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},t.createElement(Gw,{prefixCls:d},t.createElement(Qw,{offset:m,ref:p},t.createElement(Kw,{size:"small",color:l,prefixCls:d})),t.createElement(Jw,{colors:n,direction:r,type:i,prefixCls:d})))};function tx(e){return void 0!==e}var nx=function(e,n){var r=n.defaultValue,o=n.value,i=V((0,t.useState)((function(){var t;return t=tx(o)?o:tx(r)?r:e,Fw(t)})),2),a=i[0],l=i[1];return(0,t.useEffect)((function(){o&&l(Fw(o))}),[o]),[a,l]},rx=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],ox=(0,t.forwardRef)((function(e,n){var r=e.value,o=e.defaultValue,i=e.prefixCls,a=void 0===i?"rc-color-picker":i,l=e.onChange,c=e.onChangeComplete,s=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,p=void 0!==f&&f,h=e.disabled,v=void 0!==h&&h,g=V(nx(Hw,{value:r,defaultValue:o}),2),m=g[0],b=g[1],y=(0,t.useMemo)((function(){var e=Fw(m.toRgbString());return e.setAlpha(1),e.toRgbString()}),[m]),x=to()("".concat(a,"-panel"),s,w({},"".concat(a,"-panel-disabled"),v)),k={prefixCls:a,onChangeComplete:c,disabled:v},C=function(e,t){r||b(e),null==l||l(e,t)},S=t.createElement(t.Fragment,null,t.createElement(Zw,ut({color:m,onChange:C},k)),t.createElement("div",{className:"".concat(a,"-slider-container")},t.createElement("div",{className:to()("".concat(a,"-slider-group"),w({},"".concat(a,"-slider-group-disabled-alpha"),p))},t.createElement(ex,ut({gradientColors:rx,color:m,value:"hsl(".concat(m.toHsb().h,",100%, 50%)"),onChange:function(e){return C(e,"hue")}},k)),!p&&t.createElement(ex,ut({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",y],color:m,value:m.toRgbString(),onChange:function(e){return C(e,"alpha")}},k))),t.createElement(Uw,{color:m.toRgbString(),prefixCls:a})));return t.createElement("div",{className:x,style:u,ref:n},"function"==typeof d?d(S):S)})),ix=ox;const ax=t.createContext({}),lx=t.createContext({}),{Provider:cx}=ax,{Provider:sx}=lx,ux=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"";let dx=function(){return we((function e(t){be(this,e),this.cleared=!1,this.metaColor=new Bw(t),t||(this.metaColor.setAlpha(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?ux(e,t):"")(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return 1===this.metaColor.getAlpha()?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}])}();const fx=e=>e instanceof dx?e:new dx(e),px=e=>Math.round(Number(e||0)),hx=e=>px(100*e.toHsb().a),vx=(e,t)=>{const n=e.toHsb();return n.a=t||1,fx(n)};var gx,mx=e=>{let{prefixCls:n,value:r,onChange:o}=e;return t.createElement("div",{className:`${n}-clear`,onClick:()=>{if(r&&!r.cleared){const e=r.toHsb();e.a=0;const t=fx(e);t.cleared=!0,null==o||o(t)}}})};!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(gx||(gx={}));var bx=e=>{let{prefixCls:n,min:r=0,max:o=100,value:i,onChange:a,className:l,formatter:c}=e;const s=`${n}-steppers`,[u,d]=(0,t.useState)(i);return(0,t.useEffect)((()=>{Number.isNaN(i)||d(i)}),[i]),t.createElement(gw,{className:to()(s,l),min:r,max:o,value:u,formatter:c,size:"small",onChange:e=>{i||d(e||0),null==a||a(e)}})};var yx=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-alpha-input`,[a,l]=(0,t.useState)(fx(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);return t.createElement(bx,{value:hx(a),prefixCls:n,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=a.toHsb();t.a=(e||0)/100;const n=fx(t);r||l(n),null==o||o(n)}})};const wx=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,xx=e=>wx.test(`#${e}`);var kx=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-hex-input`,[a,l]=(0,t.useState)(null==r?void 0:r.toHex());(0,t.useEffect)((()=>{const e=null==r?void 0:r.toHex();xx(e)&&r&&l(ux(e))}),[r]);return t.createElement(Ng,{className:i,value:a,prefix:"#",onChange:e=>{const t=e.target.value;l(ux(t)),xx(ux(t,!0))&&(null==o||o(fx(t)))},size:"small"})};var Cx=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-hsb-input`,[a,l]=(0,t.useState)(fx(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);const c=(e,t)=>{const n=a.toHsb();n[t]="h"===t?e:(e||0)/100;const i=fx(n);r||l(i),null==o||o(i)};return t.createElement("div",{className:i},t.createElement(bx,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:n,className:i,formatter:e=>px(e||0).toString(),onChange:e=>c(Number(e),"h")}),t.createElement(bx,{max:100,min:0,value:100*Number(a.toHsb().s),prefixCls:n,className:i,formatter:e=>`${px(e||0)}%`,onChange:e=>c(Number(e),"s")}),t.createElement(bx,{max:100,min:0,value:100*Number(a.toHsb().b),prefixCls:n,className:i,formatter:e=>`${px(e||0)}%`,onChange:e=>c(Number(e),"b")}))};var Sx=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-rgb-input`,[a,l]=(0,t.useState)(fx(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);const c=(e,t)=>{const n=a.toRgb();n[t]=e||0;const i=fx(n);r||l(i),null==o||o(i)};return t.createElement("div",{className:i},t.createElement(bx,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:n,className:i,onChange:e=>c(Number(e),"r")}),t.createElement(bx,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:n,className:i,onChange:e=>c(Number(e),"g")}),t.createElement(bx,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:n,className:i,onChange:e=>c(Number(e),"b")}))};const Ex=[gx.hex,gx.hsb,gx.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()})));var Ox=e=>{const{prefixCls:n,format:r,value:o,disabledAlpha:i,onFormatChange:a,onChange:l}=e,[c,s]=Oo(gx.hex,{value:r,onChange:a}),u=`${n}-input`,d=(0,t.useMemo)((()=>{const e={value:o,prefixCls:n,onChange:l};switch(c){case gx.hsb:return t.createElement(Cx,Object.assign({},e));case gx.rgb:return t.createElement(Sx,Object.assign({},e));case gx.hex:default:return t.createElement(kx,Object.assign({},e))}}),[c,n,o,l]);return t.createElement("div",{className:`${u}-container`},t.createElement(Ry,{value:c,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{s(e)},className:`${n}-format-select`,size:"small",options:Ex}),t.createElement("div",{className:u},d),!i&&t.createElement(yx,{prefixCls:n,value:o,onChange:l}))},_x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var $x=()=>{const e=(0,t.useContext)(ax),{prefixCls:n,allowClear:r,value:o,disabledAlpha:i,onChange:a,onClear:l,onChangeComplete:c}=e,s=_x(e,["prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return t.createElement(t.Fragment,null,r&&t.createElement(mx,Object.assign({prefixCls:n,value:o,onChange:e=>{null==a||a(e),null==l||l()}},s)),t.createElement(ix,{prefixCls:n,value:null==o?void 0:o.toHsb(),disabledAlpha:i,onChange:(e,t)=>{null==a||a(fx(e),t,!0)},onChangeComplete:e=>{null==c||c(fx(e))}}),t.createElement(Ox,Object.assign({value:o,onChange:a,prefixCls:n,disabledAlpha:i},s)))},jx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Nx=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:jx}))};var Ix=t.forwardRef(Nx),Px=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,c=e.isActive,s=e.role,u=V(t.useState(c||o),2),d=u[0],f=u[1];return t.useEffect((function(){(o||c)&&f(!0)}),[o,c]),d?t.createElement("div",{ref:n,className:to()("".concat(r,"-content"),w(w({},"".concat(r,"-content-active"),c),"".concat(r,"-content-inactive"),!c),i),style:a,role:s},t.createElement("div",{className:"".concat(r,"-content-box")},l)):null}));Px.displayName="PanelContent";var Rx=Px,Mx=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Ax=t.forwardRef((function(e,n){var r=e.showArrow,o=void 0===r||r,i=e.headerClass,a=e.isActive,l=e.onItemClick,c=e.forceRender,s=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,h=e.extra,v=e.header,g=e.expandIcon,m=e.openMotion,b=e.destroyInactivePanel,y=e.children,x=so(e,Mx),k="disabled"===d,C="header"===d,S="icon"===d,E=null!=h&&"boolean"!=typeof h,O=function(){null==l||l(p)},_="function"==typeof g?g(e):t.createElement("i",{className:"arrow"});_&&(_=t.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?O:void 0},_));var $=to()(w(w(w({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),k),s),j={className:to()(i,w(w(w({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),C),"".concat(u,"-icon-collapsible-only"),S)),"aria-expanded":a,"aria-disabled":k,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Ma.ENTER&&e.which!==Ma.ENTER||O()}};return C||S||(j.onClick=O,j.role=f?"tab":"button",j.tabIndex=k?-1:0),t.createElement("div",ut({},x,{ref:n,className:$}),t.createElement("div",j,o&&_,t.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?O:void 0},v),E&&t.createElement("div",{className:"".concat(u,"-extra")},h)),t.createElement(xi,ut({visible:a,leavedClassName:"".concat(u,"-content-hidden")},m,{forceRender:c,removeOnLeave:b}),(function(e,n){var r=e.className,o=e.style;return t.createElement(Rx,{ref:n,prefixCls:u,className:r,style:o,isActive:a,forceRender:c,role:f?"tabpanel":void 0},y)})))})),Tx=Ax,qx=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var Lx=function(e,n,r){return Array.isArray(e)?function(e,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var d=e.children,f=e.label,p=e.key,h=e.collapsible,v=e.onItemClick,g=e.destroyInactivePanel,m=so(e,qx),b=String(null!=p?p:n),y=null!=h?h:i,w=null!=g?g:a,x=!1;return x=o?c[0]===b:c.indexOf(b)>-1,t.createElement(Tx,ut({},m,{prefixCls:r,key:b,panelKey:b,isActive:x,accordion:o,openMotion:s,expandIcon:u,header:f,collapsible:y,onItemClick:function(e){"disabled"!==y&&(l(e),null==v||v(e))},destroyInactivePanel:w}),d)}))}(e,r):xc(n).map((function(e,n){return function(e,n,r){if(!e)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,s=r.activeKey,u=r.openMotion,d=r.expandIcon,f=e.key||String(n),p=e.props,h=p.header,v=p.headerClass,g=p.destroyInactivePanel,m=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===f:s.indexOf(f)>-1;var w=null!=m?m:a,x={key:f,panelKey:f,header:h,headerClass:v,isActive:y,prefixCls:o,destroyInactivePanel:null!=g?g:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(c(e),null==b||b(e))},expandIcon:d,collapsible:w};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),t.cloneElement(e,x))}(e,n,r)}))};function Dx(e){var t=e;if(!Array.isArray(t)){var n=v(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var zx=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,c=e.accordion,s=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,g=e.onChange,m=e.items,b=to()(o,s),y=V(Oo([],{value:h,onChange:function(e){return null==g?void 0:g(e)},defaultValue:v,postState:Dx}),2),w=y[0],x=y[1];ge(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var k=Lx(m,u,{prefixCls:o,accordion:c,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return x((function(){return c?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(Y(w),[e])}))},activeKey:w});return t.createElement("div",ut({ref:n,className:b,style:l,role:c?"tablist":void 0},Da(e,{aria:!0,data:!0})),k)})),Bx=Object.assign(zx,{Panel:Tx}),Fx=Bx;Bx.Panel;var Hx=t.forwardRef(((e,n)=>{const{getPrefixCls:r}=t.useContext(D),{prefixCls:o,className:i,showArrow:a=!0}=e,l=r("collapse",o),c=to()({[`${l}-no-arrow`]:!a},i);return t.createElement(Fx.Panel,Object.assign({ref:n},e,{prefixCls:l,className:c}))}));var Wx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});const Vx=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:v,lineHeight:g,lineHeightLG:m,marginSM:b,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:k,fontSizeIcon:C,contentPadding:S,fontHeight:E,fontHeightLG:O}=e,_=`${Fe(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Ti(e)),{backgroundColor:o,border:_,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Fe(c)} ${Fe(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:g,cursor:"pointer",transition:`all ${k}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-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"}}),{fontSize:C,transition:`transform ${k}`,svg:{transition:`transform ${k}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:m,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Fe(c)} ${Fe(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Ux=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Yx=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Kx=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var Gx=Sl("Collapse",(e=>{const t=cl(e,{collapseHeaderPaddingSM:`${Fe(e.paddingXS)} ${Fe(e.paddingSM)}`,collapseHeaderPaddingLG:`${Fe(e.padding)} ${Fe(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Vx(t),Yx(t),Kx(t),Ux(t),Wx(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const Xx=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o,collapse:i}=t.useContext(D),{prefixCls:a,className:l,rootClassName:c,style:s,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:h,expandIcon:v}=e,g=wc((e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"})),m=r("collapse",a),b=r(),[y,w,x]=Gx(m);const k=t.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),C=null!=v?v:null==i?void 0:i.expandIcon,S=t.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof C?C(e):t.createElement(Ix,{rotate:e.isActive?90:void 0});return uc(n,(()=>{var e;return{className:to()(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${m}-arrow`)}}))}),[C,m]),E=to()(`${m}-icon-position-${k}`,{[`${m}-borderless`]:!u,[`${m}-rtl`]:"rtl"===o,[`${m}-ghost`]:!!d,[`${m}-${g}`]:"middle"!==g},null==i?void 0:i.className,l,c,w,x),O=Object.assign(Object.assign({},sd(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),_=t.useMemo((()=>h?xc(h).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return uc(e,Object.assign(Object.assign({},ac(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[h]);return y(t.createElement(Fx,Object.assign({ref:n,openMotion:O},ac(e,["rootClassName"]),{expandIcon:S,prefixCls:m,className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),s)}),_))}));var Qx=Object.assign(Xx,{Panel:Hx});const Zx=e=>e.map((e=>(e.colors=e.colors.map(fx),e))),Jx=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Bw(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},ek=e=>{let{label:t}=e;return`panel-${t}`};var tk=e=>{let{prefixCls:n,presets:r,value:o,onChange:i}=e;const[a]=Hd("ColorPicker"),[,l]=Pi(),[c]=Oo(Zx(r),{value:Zx(r),postState:Zx}),s=`${n}-presets`,u=(0,t.useMemo)((()=>c.reduce(((e,t)=>{const{defaultOpen:n=!0}=t;return n&&e.push(ek(t)),e}),[])),[c]),d=c.map((e=>{var r;return{key:ek(e),label:t.createElement("div",{className:`${s}-label`},null==e?void 0:e.label),children:t.createElement("div",{className:`${s}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(r=e.colors)||void 0===r?void 0:r.length)>0?e.colors.map(((e,r)=>t.createElement(Uw,{key:`preset-${r}-${e.toHexString()}`,color:fx(e).toRgbString(),prefixCls:n,className:to()(`${s}-color`,{[`${s}-color-checked`]:e.toHexString()===(null==o?void 0:o.toHexString()),[`${s}-color-bright`]:Jx(e,l.colorBgElevated)}),onClick:()=>{return t=e,void(null==i||i(t));var t}}))):t.createElement("span",{className:`${s}-empty`},a.presetEmpty))}}));return t.createElement("div",{className:s},t.createElement(Qx,{defaultActiveKey:u,ghost:!0,items:d}))};var nk=()=>{const{prefixCls:e,value:n,presets:r,onChange:o}=(0,t.useContext)(lx);return Array.isArray(r)?t.createElement(tk,{value:n,presets:r,prefixCls:e,onChange:o}):null},rk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var ok=e=>{const{prefixCls:n,presets:r,panelRender:o,color:i,onChange:a,onClear:l}=e,c=rk(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),s=`${n}-inner`,u=Object.assign({prefixCls:n,value:i,onChange:a,onClear:l},c),d=t.useMemo((()=>({prefixCls:n,value:i,presets:r,onChange:a})),[n,i,r,a]),f=t.createElement("div",{className:`${s}-content`},t.createElement($x,null),Array.isArray(r)&&t.createElement(qw,null),t.createElement(nk,null));return t.createElement(cx,{value:u},t.createElement(sx,{value:d},t.createElement("div",{className:s},"function"==typeof o?o(f,{components:{Picker:$x,Presets:nk}}):f)))},ik=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ak=(0,t.forwardRef)(((e,n)=>{const{color:r,prefixCls:o,open:i,disabled:a,format:l,className:c,showText:s}=e,u=ik(e,["color","prefixCls","open","disabled","format","className","showText"]),d=`${o}-trigger`,f=(0,t.useMemo)((()=>r.cleared?t.createElement(mx,{prefixCls:o}):t.createElement(Uw,{prefixCls:o,color:r.toRgbString()})),[r,o]);return t.createElement("div",Object.assign({ref:n,className:to()(d,c,{[`${d}-active`]:i,[`${d}-disabled`]:a})},u),f,s&&t.createElement("div",{className:`${d}-text`},"function"==typeof s?s(r):s?(()=>{const e=r.toHexString().toUpperCase(),t=hx(r);switch(l){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}})():void 0))}));var lk=ak;const ck={};function sk(e){return void 0!==e}var uk=(e,n)=>{const{defaultValue:r,value:o}=n,i=(0,t.useRef)(fx("")),[a,l]=(0,t.useState)((()=>{let t;t=sk(o)?o:sk(r)?r:e;const n=fx(t||"");return i.current=n,n})),c=e=>{l(e),i.current=e},s=(0,t.useRef)(ck);return(0,t.useEffect)((()=>{if(s.current===o)return;s.current=o;const e=fx(sk(o)?o||"":i.current);!0===i.current.cleared&&(e.cleared="controlled"),c(e)}),[o]),[a,c,i]};const dk=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`});var fk=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},dk("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${Fe(i)} solid ${a}`,borderRadius:"inherit"}})}};var pk=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Fe(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:`${Fe(c)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Fe(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Fe(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}};var hk=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${Fe(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:e.calc(d).div(2).equal(),[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:e.calc(d).div(2).equal(),boxShadow:o},"&-alpha":dk(`${Fe(d)}`,e.colorFillSecondary),"&-hue":{marginBottom:i}},[`${t}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}};var vk=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:h,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Fe(h)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${Fe(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${Fe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}};const gk=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Fe(e.controlOutlineWidth)} ${n}`,outline:0}),mk=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},bk=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${Fe(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},yk=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},gk(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},gk(e,r,l))}}},wk=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c}}}},xk=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:g,colorPickerPreviewSize:m,lineWidth:b,colorBorder:y,paddingXXS:w,fontSize:x,colorPrimaryHover:k,controlOutline:C}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Fe(f)} 0 ${Fe(d)}`}},[`${n}-panel`]:Object.assign({},hk(e))},fk(e,m)),pk(e)),vk(e)),bk(e,g,{marginInlineStart:"auto",marginBottom:d})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,height:p,borderRadius:u,border:`${Fe(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(w).sub(b)).equal(),fontSize:x,color:c},"&:hover":{borderColor:k},[`&${n}-trigger-active`]:Object.assign({},gk(e,o,C)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:l}}},bk(e,h)),fk(e,h)),yk(e)),wk(e))},mk(e))}]};var kk=Sl("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=cl(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[xk(r)]})),Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Sk=e=>{const{value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:a=!1,presets:l,children:c,trigger:s="click",open:u,disabled:d,placement:f="bottomLeft",arrow:p=!0,panelRender:h,showText:v,style:g,className:m,size:b,rootClassName:y,prefixCls:w,styles:x,disabledAlpha:k=!1,onFormatChange:C,onChange:S,onClear:E,onOpenChange:O,onChangeComplete:_,getPopupContainer:$,autoAdjustOverflow:j=!0,destroyTooltipOnHide:N}=e,I=Ck(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:P,direction:R,colorPicker:M}=(0,t.useContext)(D),A=(0,t.useContext)(Ur),T=null!=d?d:A,[q,L,z]=uk("",{value:n,defaultValue:r}),[B,F]=Oo(!1,{value:u,postState:e=>!T&&e,onChange:O}),[H,W]=Oo(o,{value:o,defaultValue:i,onChange:C}),V=P("color-picker",w),U=(0,t.useMemo)((()=>hx(q)<100),[q]),{status:Y}=t.useContext(Up),K=wc(b),G=Ja(V),[X,Q,Z]=kk(V,G),J={[`${V}-rtl`]:R},ee=to()(y,Z,G,J),te=to()(qv(V,Y),{[`${V}-sm`]:"small"===K,[`${V}-lg`]:"large"===K},null==M?void 0:M.className,ee,m,Q),ne=to()(V,ee),re=(0,t.useRef)(!0);const oe=e=>{re.current=!0;let t=fx(e);k&&U&&(t=vx(e)),null==_||_(t)},ie={open:B,trigger:s,placement:f,arrow:p,rootClassName:y,getPopupContainer:$,autoAdjustOverflow:j,destroyTooltipOnHide:N},ae={prefixCls:V,color:q,allowClear:a,disabled:T,disabledAlpha:k,presets:l,panelRender:h,format:H,onFormatChange:W,onChangeComplete:oe},le=Object.assign(Object.assign({},null==M?void 0:M.style),g);return X(t.createElement(Rw,Object.assign({style:null==x?void 0:x.popup,overlayInnerStyle:null==x?void 0:x.popupOverlayInner,onOpenChange:e=>{re.current&&!T&&F(e)},content:t.createElement(Yp,{override:!0,status:!0},t.createElement(ok,Object.assign({},ae,{onChange:(e,t,o)=>{var i;let a=fx(e);const l=null===n||!n&&null===r;((null===(i=z.current)||void 0===i?void 0:i.cleared)||l)&&0===hx(q)&&"alpha"!==t&&(a=vx(a)),k&&U&&(a=vx(a)),o?re.current=!1:null==_||_(a),L(a),null==S||S(a,a.toHexString())},onChangeComplete:oe,onClear:()=>{null==E||E()}}))),overlayClassName:ne},ie),c||t.createElement(lk,Object.assign({open:B,className:te,style:le,prefixCls:V,disabled:T,showText:v,format:H},I,{color:q}))))};const Ek=Ph(Sk,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));Sk._InternalPanelDoNotUseOrYouWillBeFired=Ek;var Ok=Sk;function _k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $k(e,t)}(e,t)||function(){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 $k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jk=function(e){var n,o,i,a,c=e.field.items,s=e.field.items,u=s.help,f=(s.value,s.default_val),p=(e.id,_k(l(),2)),h=(p[0],p[1]),v=_k((0,t.useState)("yes"),2),g=v[0],m=v[1],b=(0,t.useRef)(),y=null===(n=e.field)||void 0===n?void 0:n.fieldType,w=null===(o=e.field)||void 0===o?void 0:o.parentId,x=null===(i=e.field)||void 0===i?void 0:i.index,k=null===(a=e.field)||void 0===a?void 0:a.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",ref:b,children:Object.keys(c).map((function(e,t){var n=c[e].id;return(0,r.jsx)(Ok,{format:"hex",value:c[e].value,defaultValue:c[e].default_val,allowClear:!0,onChange:function(e){"yes"===g&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),m("no"),h({type:d,id:n,value:e.metaColor.roundA?e.toRgbString():"",fieldType:y,parentId:w,repeaterData:k,index:x})},onClear:function(){h({type:d,id:n,value:null!=f?f:"",fieldType:y,parentId:w,repeaterData:k,index:x}),m("no")}},t)}))}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function Nk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){w(e,t,n[t])}))}return e}var Ik=o(311),Pk=o.n(Ik),Rk=o(5556),Mk=o.n(Rk),Ak=function(){function e(){be(this,e),w(this,"refs",{})}return we(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Tk)}}]),e}();function Tk(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function qk(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var Lk={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dk=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function zk(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function Bk(e,t){e.style["".concat(Dk,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Fk(e,t){e.style["".concat(Dk,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function Hk(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Wk(e,t,n){return Math.max(e,Math.min(n,t))}function Vk(e){return"px"===e.substr(-2)?parseFloat(e):0}function Uk(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Yk(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function Kk(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Gk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:Gk(e.parentNode,t,r)}}function Xk(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Pk()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=l[1]}return Pk()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function Qk(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:Qk(e.parentNode):null}var Zk=27,Jk=32,eC=37,tC=38,nC=39,rC=40,oC={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function iC(e){return null!=e.sortableHandle}var aC=function(){function e(t,n){be(this,e),this.container=t,this.onScrollCallback=n}return we(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,l={x:0,y:0},c={x:1,y:1},s=10,u=10,d=this.container,f=d.scrollTop,p=d.scrollLeft,h=d.scrollHeight,v=d.scrollWidth,g=0===f,m=h-f-d.clientHeight==0,b=0===p,y=v-p-d.clientWidth==0;n.y>=o.y-a/2&&!m?(l.y=1,c.y=u*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!y?(l.x=1,c.x=s*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!g?(l.y=-1,c.y=u*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!b&&(l.x=-1,c.x=s*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:c.x*l.x,top:c.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var lC={axis:Mk().oneOf(["x","y","xy"]),contentWindow:Mk().any,disableAutoscroll:Mk().bool,distance:Mk().number,getContainer:Mk().func,getHelperDimensions:Mk().func,helperClass:Mk().string,helperContainer:Mk().oneOfType([Mk().func,"undefined"==typeof HTMLElement?Mk().any:Mk().instanceOf(HTMLElement)]),hideSortableGhost:Mk().bool,keyboardSortingTransitionDuration:Mk().number,lockAxis:Mk().string,lockOffset:Mk().oneOfType([Mk().number,Mk().string,Mk().arrayOf(Mk().oneOfType([Mk().number,Mk().string]))]),lockToContainerEdges:Mk().bool,onSortEnd:Mk().func,onSortMove:Mk().func,onSortOver:Mk().func,onSortStart:Mk().func,pressDelay:Mk().number,pressThreshold:Mk().number,keyCodes:Mk().shape({lift:Mk().arrayOf(Mk().number),drop:Mk().arrayOf(Mk().number),cancel:Mk().arrayOf(Mk().number),up:Mk().arrayOf(Mk().number),down:Mk().arrayOf(Mk().number)}),shouldCancelStart:Mk().func,transitionDuration:Mk().number,updateBeforeSortStart:Mk().func,useDragHandle:Mk().bool,useWindowAsScrollContainer:Mk().bool},cC={lift:[Jk],drop:[Jk],cancel:[Zk],up:[tC,eC],down:[rC,nC]},sC={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:cC,shouldCancelStart:function(e){return-1!==[oC.Input,oC.Textarea,oC.Select,oC.Option,oC.Button].indexOf(e.target.tagName)||!!Hk(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},uC=Object.keys(lC);var dC=(0,t.createContext)({manager:{}});var fC={index:Mk().number.isRequired,collection:Mk().oneOfType([Mk().number,Mk().string]),disabled:Mk().bool},pC=Object.keys(fC);var hC=o(4480),vC=o.n(hC);function gC(e){return gC="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},gC(e)}function mC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mC(Object(n),!0).forEach((function(t){yC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yC(e,t,n){var r;return r=function(e,t){if("object"!=gC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==gC(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wC(e){return function(e){if(Array.isArray(e))return CC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kC(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.")}()}function xC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||kC(e,t)||function(){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 kC(e,t){if(e){if("string"==typeof e)return CC(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)?CC(e,t):void 0}}function CC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var SC=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(){var e,n;be(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return w(bo(bo(n=yo(this,(e=go(r)).call.apply(e,[this].concat(i))))),"wrappedInstance",(0,t.createRef)()),n}return vo(r,n),we(r,[{key:"componentDidMount",value:function(){(0,S.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Pk()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(e,ut({ref:n},this.props))}}]),r}(t.Component),w(n,"displayName",Uk("sortableHandle",e)),r}((function(){return(0,r.jsx)("span",{className:"handler",children:"::"})})),EC=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(){var e,n;be(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return w(bo(bo(n=yo(this,(e=go(r)).call.apply(e,[this].concat(i))))),"wrappedInstance",(0,t.createRef)()),n}return vo(r,n),we(r,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,S.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Pk()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(e,ut({ref:n},qk(this.props,pC)))}}]),r}(t.Component),w(n,"displayName",Uk("sortableElement",e)),w(n,"contextType",dC),w(n,"propTypes",fC),w(n,"defaultProps",{collection:0}),r}((function(e){e.storedData;var t=e.label,n=e.id,o=e.field,i=xC(l(),2),a=(i[0],i[1]);return(0,r.jsxs)("li",{className:"rtsb-sortable-item",children:[(0,r.jsx)(SC,{}),(0,r.jsxs)("label",{htmlFor:"sortable-item-".concat(n),children:[(0,r.jsx)("input",{checked:vC().isArray(o.value)&&o.value.includes(n),id:"sortable-item-".concat(n),type:"checkbox",onChange:function(e){var t=wC(o.value);e.target.checked?t.push(n):t=t.filter((function(e){return e!==n})),a({type:d,id:o.id,value:t})},value:n}),t]})]})})),OC=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(e){var n;be(this,r),w(bo(bo(n=yo(this,go(r).call(this,e)))),"state",{}),w(bo(bo(n)),"handleStart",(function(e){var t=n.props,r=t.distance,o=t.shouldCancelStart;if(2!==e.button&&!o(e)){n.touched=!0,n.position=Kk(e);var i=Hk(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&n.nodeIsChild(i)&&!n.state.sorting){var a=n.props.useDragHandle,l=i.sortableInfo,c=l.index,s=l.collection;if(l.disabled)return;if(a&&!Hk(e.target,iC))return;n.manager.active={collection:s,index:c},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==oC.Anchor||e.preventDefault(),r||(0===n.props.pressDelay?n.handlePress(e):n.pressTimer=setTimeout((function(){return n.handlePress(e)}),n.props.pressDelay))}}})),w(bo(bo(n)),"nodeIsChild",(function(e){return e.sortableInfo.manager===n.manager})),w(bo(bo(n)),"handleMove",(function(e){var t=n.props,r=t.distance,o=t.pressThreshold;if(!n.state.sorting&&n.touched&&!n._awaitingUpdateBeforeSortStart){var i=Kk(e),a={x:n.position.x-i.x,y:n.position.y-i.y},l=Math.abs(a.x)+Math.abs(a.y);n.delta=a,r||o&&!(l>=o)?r&&l>=r&&n.manager.isActive()&&n.handlePress(e):(clearTimeout(n.cancelTimer),n.cancelTimer=setTimeout(n.cancel,0))}})),w(bo(bo(n)),"handleEnd",(function(){n.touched=!1,n.cancel()})),w(bo(bo(n)),"cancel",(function(){var e=n.props.distance;n.state.sorting||(e||clearTimeout(n.pressTimer),n.manager.active=null)})),w(bo(bo(n)),"handlePress",(function(e){try{var t=n.manager.getActive(),r=function(){if(t){var r=function(){var t=f.sortableInfo.index,r=function(e){var t=window.getComputedStyle(e);return{bottom:Vk(t.marginBottom),left:Vk(t.marginLeft),right:Vk(t.marginRight),top:Vk(t.marginTop)}}(f),o=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Vk(t.gridColumnGap),y:Vk(t.gridRowGap)}:{x:0,y:0}}(n.container),s=n.scrollContainer.getBoundingClientRect(),v=a({index:t,node:f,collection:p});if(n.node=f,n.margin=r,n.gridGap=o,n.width=v.width,n.height=v.height,n.marginOffset={x:n.margin.left+n.margin.right+n.gridGap.x,y:Math.max(n.margin.top,n.margin.bottom,n.gridGap.y)},n.boundingClientRect=f.getBoundingClientRect(),n.containerBoundingRect=s,n.index=t,n.newIndex=t,n.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},n.offsetEdge=Gk(f,n.container),n.initialOffset=Kk(h?Nk({},e,{pageX:n.boundingClientRect.left,pageY:n.boundingClientRect.top}):e),n.initialScroll={left:n.scrollContainer.scrollLeft,top:n.scrollContainer.scrollTop},n.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},n.helper=n.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return Y(r.querySelectorAll(t)).forEach((function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===oC.Canvas&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)})),r}(f)),zk(n.helper,{boxSizing:"border-box",height:"".concat(n.height,"px"),left:"".concat(n.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(n.boundingClientRect.top-r.top,"px"),width:"".concat(n.width,"px")}),h&&n.helper.focus(),c&&(n.sortableGhost=f,zk(f,{opacity:0,visibility:"hidden"})),n.minTranslate={},n.maxTranslate={},h){var g=d?{top:0,left:0,width:n.contentWindow.innerWidth,height:n.contentWindow.innerHeight}:n.containerBoundingRect,m=g.top,b=g.left,y=g.width,w=m+g.height,x=b+y;n.axis.x&&(n.minTranslate.x=b-n.boundingClientRect.left,n.maxTranslate.x=x-(n.boundingClientRect.left+n.width)),n.axis.y&&(n.minTranslate.y=m-n.boundingClientRect.top,n.maxTranslate.y=w-(n.boundingClientRect.top+n.height))}else n.axis.x&&(n.minTranslate.x=(d?0:s.left)-n.boundingClientRect.left-n.width/2,n.maxTranslate.x=(d?n.contentWindow.innerWidth:s.left+s.width)-n.boundingClientRect.left-n.width/2),n.axis.y&&(n.minTranslate.y=(d?0:s.top)-n.boundingClientRect.top-n.height/2,n.maxTranslate.y=(d?n.contentWindow.innerHeight:s.top+s.height)-n.boundingClientRect.top-n.height/2);l&&l.split(" ").forEach((function(e){return n.helper.classList.add(e)})),n.listenerNode=e.touches?e.target:n.contentWindow,h?(n.listenerNode.addEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.addEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.addEventListener("keydown",n.handleKeyDown)):(Lk.move.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortMove,!1)})),Lk.end.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortEnd,!1)}))),n.setState({sorting:!0,sortingIndex:t}),u&&u({node:f,index:t,collection:p,isKeySorting:h,nodes:n.manager.getOrderedRefs(),helper:n.helper},e),h&&n.keyMove(0)},o=n.props,i=o.axis,a=o.getHelperDimensions,l=o.helperClass,c=o.hideSortableGhost,s=o.updateBeforeSortStart,u=o.onSortStart,d=o.useWindowAsScrollContainer,f=t.node,p=t.collection,h=n.manager.isKeySorting,v=function(){if("function"==typeof s){n._awaitingUpdateBeforeSortStart=!0;var t=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=f.sortableInfo.index;return Promise.resolve(s({collection:p,index:t,node:f,isKeySorting:h},e)).then((function(){}))}),(function(e,t){if(n._awaitingUpdateBeforeSortStart=!1,e)throw t;return t}));if(t&&t.then)return t.then((function(){}))}}();return v&&v.then?v.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),w(bo(bo(n)),"handleSortMove",(function(e){var t=n.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),n.updateHelperPosition(e),n.animateNodes(),n.autoscroll(),t&&t(e)})),w(bo(bo(n)),"handleSortEnd",(function(e){var t=n.props,r=t.hideSortableGhost,o=t.onSortEnd,i=n.manager,a=i.active.collection,l=i.isKeySorting,c=n.manager.getOrderedRefs();n.listenerNode&&(l?(n.listenerNode.removeEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("keydown",n.handleKeyDown)):(Lk.move.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortMove)})),Lk.end.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortEnd)})))),n.helper.parentNode.removeChild(n.helper),r&&n.sortableGhost&&zk(n.sortableGhost,{opacity:"",visibility:""});for(var s=0,u=c.length;s<u;s++){var d=c[s],f=d.node;d.edgeOffset=null,d.boundingClientRect=null,Bk(f,null),Fk(f,null),d.translate=null}n.autoScroller.clear(),n.manager.active=null,n.manager.isKeySorting=!1,n.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:n.newIndex,oldIndex:n.index,isKeySorting:l,nodes:c},e),n.touched=!1})),w(bo(bo(n)),"autoscroll",(function(){var e=n.props.disableAutoscroll,t=n.manager.isKeySorting;if(e)n.autoScroller.clear();else{if(t){var r=Nk({},n.translate),o=0,i=0;return n.axis.x&&(r.x=Math.min(n.maxTranslate.x,Math.max(n.minTranslate.x,n.translate.x)),o=n.translate.x-r.x),n.axis.y&&(r.y=Math.min(n.maxTranslate.y,Math.max(n.minTranslate.y,n.translate.y)),i=n.translate.y-r.y),n.translate=r,Bk(n.helper,n.translate),n.scrollContainer.scrollLeft+=o,void(n.scrollContainer.scrollTop+=i)}n.autoScroller.update({height:n.height,maxTranslate:n.maxTranslate,minTranslate:n.minTranslate,translate:n.translate,width:n.width})}})),w(bo(bo(n)),"onAutoScroll",(function(e){n.translate.x+=e.left,n.translate.y+=e.top,n.animateNodes()})),w(bo(bo(n)),"handleKeyDown",(function(e){var t=e.keyCode,r=n.props,o=r.shouldCancelStart,i=r.keyCodes,a=Nk({},cC,void 0===i?{}:i);n.manager.active&&!n.manager.isKeySorting||!(n.manager.active||a.lift.includes(t)&&!o(e)&&n.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(t)&&!n.manager.active?n.keyLift(e):a.drop.includes(t)&&n.manager.active?n.keyDrop(e):a.cancel.includes(t)?(n.newIndex=n.manager.active.index,n.keyDrop(e)):a.up.includes(t)?n.keyMove(-1):a.down.includes(t)&&n.keyMove(1))})),w(bo(bo(n)),"keyLift",(function(e){var t=e.target,r=Hk(t,(function(e){return null!=e.sortableInfo})).sortableInfo,o=r.index,i=r.collection;n.initialFocusedNode=t,n.manager.isKeySorting=!0,n.manager.active={index:o,collection:i},n.handlePress(e)})),w(bo(bo(n)),"keyMove",(function(e){var t=n.manager.getOrderedRefs(),r=t[t.length-1].node.sortableInfo.index,o=n.newIndex+e,i=n.newIndex;if(!(o<0||o>r)){n.prevIndex=i,n.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(n.newIndex,n.prevIndex,n.index),l=t.find((function(e){return e.node.sortableInfo.index===a})),c=l.node,s=n.containerScrollDelta,u=l.boundingClientRect||Yk(c,s),d=l.translate||{x:0,y:0},f=u.top+d.y-s.top,p=u.left+d.x-s.left,h=i<o,v=h&&n.axis.x?c.offsetWidth-n.width:0,g=h&&n.axis.y?c.offsetHeight-n.height:0;n.handleSortMove({pageX:p+v,pageY:f+g,ignoreTransition:0===e})}})),w(bo(bo(n)),"keyDrop",(function(e){n.handleSortEnd(e),n.initialFocusedNode&&n.initialFocusedNode.focus()})),w(bo(bo(n)),"handleKeyEnd",(function(e){n.manager.active&&n.keyDrop(e)})),w(bo(bo(n)),"isValidSortingTarget",(function(e){var t=n.props.useDragHandle,r=e.target,o=Hk(r,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(t?iC(r):r.sortableInfo)}));var o=new Ak;return function(e){Pk()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),n.manager=o,n.wrappedInstance=(0,t.createRef)(),n.sortableContextValue={manager:o},n.events={end:n.handleEnd,move:n.handleMove,start:n.handleStart},n}return vo(r,n),we(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Qk(e.container)||e.container,e.autoScroller=new aC(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return Lk[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return Lk[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,l=void 0===a?i:a,c=this.manager.isKeySorting,s=e.ignoreTransition,u=Kk(e),d={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,o){var f=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];Pk()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=V(o,2),a=i[0],l=i[1];return[Xk({height:t,lockOffset:a,width:n}),Xk({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),p=V(f,2),h=p[0],v=p[1],g={x:this.width/2-h.x,y:this.height/2-h.y},m={x:this.width/2-v.x,y:this.height/2-v.y};d.x=Wk(this.minTranslate.x+g.x,this.maxTranslate.x-m.x,d.x),d.y=Wk(this.minTranslate.y+g.y,this.maxTranslate.y-m.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),c&&l&&!s&&Fk(this.helper,l),Bk(this.helper,d)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),l=this.offsetEdge.left+this.translate.x+o.left,c=this.offsetEdge.top+this.translate.y+o.top,s=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var d=0,f=a.length;d<f;d++){var p=a[d].node,h=p.sortableInfo.index,v=p.offsetWidth,g=p.offsetHeight,m={height:this.height>g?g/2:this.height/2,width:this.width>v?v/2:this.width/2},b=s&&h>this.index&&h<=u,y=s&&h<this.index&&h>=u,w={x:0,y:0},x=a[d].edgeOffset;x||(x=Gk(p,this.container),a[d].edgeOffset=x,s&&(a[d].boundingClientRect=Yk(p,o)));var k=d<a.length-1&&a[d+1],C=d>0&&a[d-1];k&&!k.edgeOffset&&(k.edgeOffset=Gk(k.node,this.container),s&&(k.boundingClientRect=Yk(k.node,o))),h!==this.index?(t&&Fk(p,t),this.axis.x?this.axis.y?y||h<this.index&&(l+i.left-m.width<=x.left&&c+i.top<=x.top+m.height||c+i.top+m.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-m.width&&k&&(w.x=k.edgeOffset.left-x.left,w.y=k.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=h)):(b||h>this.index&&(l+i.left+m.width>=x.left&&c+i.top+m.height>=x.top||c+i.top+m.height>=x.top+g))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+m.width&&C&&(w.x=C.edgeOffset.left-x.left,w.y=C.edgeOffset.top-x.top),this.newIndex=h):b||h>this.index&&l+i.left+m.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=h):(y||h<this.index&&l+i.left<=x.left+m.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(b||h>this.index&&c+i.top+m.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=h):(y||h<this.index&&c+i.top<=x.top+m.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),Bk(p,w),a[d].translate=w):n&&(this.sortableGhost=p,zk(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),s&&(this.newIndex=u);var S=s?this.prevIndex:u;r&&this.newIndex!==S&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:S,isKeySorting:s,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Pk()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,S.findDOMNode)(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(dC.Provider,{value:this.sortableContextValue},(0,t.createElement)(e,ut({ref:n},qk(this.props,uC))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),r}(t.Component),w(n,"displayName",Uk("sortableList",e)),w(n,"defaultProps",sC),w(n,"propTypes",lC),r}((function(e){var t=e.items,n=e.field;return(0,r.jsx)("ul",{className:"rtsb-sortable-wrap",children:Object.keys(t).map((function(e,o){return(0,r.jsx)(EC,{field:n,index:o,id:e,label:t[e]},"item-".concat(e))}))})})),_C=function(e){var n=e.field,o=n.options,i=n.value,a=n.id,c=xC((0,t.useState)(o),2),s=c[0],u=c[1],f=xC(l(),2),p=(f[0],f[1]);(0,t.useEffect)((function(){var e=bC({},o),t={};return i.length&&i.map((function(n){t[n]=e[n],delete e[n]})),t=bC(bC({},t),e),u(t),function(){}}),[]);return(0,r.jsxs)("div",{className:"rtsb-field sortable",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsx)("div",{className:"rtsb-field__content",children:(0,r.jsx)(OC,{lockAxis:"y",helperClass:"draggable-item",field:e.field,items:s,onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex;if(t!==n){var r=function(e,t,n){return function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(e=[...e],t,n),e}(Object.keys(s),t,n),o={};r.map((function(e){o[e]=s[e]}));var l=Object.keys(o).filter((function(e){return i.includes(e)}));p({type:d,id:a,value:l}),u(o)}}})})]})};function $C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jC(e,t)}(e,t)||function(){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 jC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var NC=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.default_val,p=e.id,h=$C(l(),2),v=(h[0],h[1]),g=$C((0,t.useState)("yes"),2),m=g[0],b=g[1],y=(0,t.useRef)(),w=null===(n=e.field)||void 0===n?void 0:n.fieldType,x=null===(o=e.field)||void 0===o?void 0:o.parentId,k=null===(i=e.field)||void 0===i?void 0:i.index,C=null===(a=e.field)||void 0===a?void 0:a.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",ref:y,children:(0,r.jsx)(Ok,{format:"hex",value:u,defaultValue:f,allowClear:!0,onChange:function(e){"yes"===m&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),b("no"),v({type:d,id:p,value:e.metaColor.roundA?e.toRgbString():"",fieldType:w,parentId:x,repeaterData:C,index:k})},onClear:function(){v({type:d,id:p,value:null!=f?f:"",fieldType:w,parentId:x,repeaterData:C,index:k}),setTimeout((function(){if(f){var e=y.current.querySelector(".ant-color-picker-clear");e.classList.add("rtrb-color-picker-reset"),e.style.backgroundColor=f}}),200),b("no")}})}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})},IC=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],PC=(0,t.forwardRef)((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,c=e.disabled,s=e.defaultChecked,u=void 0!==s&&s,d=e.type,f=void 0===d?"checkbox":d,p=e.title,h=e.onChange,v=so(e,IC),g=(0,t.useRef)(null),m=(0,t.useRef)(null),b=V(Oo(u,{value:l}),2),y=b[0],x=b[1];(0,t.useImperativeHandle)(n,(function(){return{focus:function(e){var t;null===(t=g.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=g.current)||void 0===e||e.blur()},input:g.current,nativeElement:m.current}}));var C=to()(o,i,w(w({},"".concat(o,"-checked"),y),"".concat(o,"-disabled"),c));return t.createElement("span",{className:C,title:p,style:a,ref:m},t.createElement("input",ut({},v,{className:"".concat(o,"-input"),ref:g,onChange:function(t){c||("checked"in e||x(t.target.checked),null==h||h({target:k(k({},e),{},{type:f,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!y,type:f})),t.createElement("span",{className:"".concat(o,"-inner")}))})),RC=PC;var MC=t.createContext(null);const AC=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ti(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ti(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ti(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Di(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Fe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function TC(e,t){const n=cl(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[AC(n)]}var qC=Sl("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[TC(n,e)]})),LC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const DC=(e,n)=>{var r;const{prefixCls:o,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,h=LC(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:g,checkbox:m}=t.useContext(D),b=t.useContext(MC),{isFormItemInput:y}=t.useContext(Up),w=t.useContext(Ur),x=null!==(r=(null==b?void 0:b.disabled)||p)&&void 0!==r?r:w,k=t.useRef(h.value);t.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),t.useEffect((()=>{if(!f)return h.value!==k.current&&(null==b||b.cancelValue(k.current),null==b||b.registerValue(h.value),k.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]);const C=v("checkbox",o),S=Ja(C),[E,O,_]=qC(C,S),$=Object.assign({},h);b&&!f&&($.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:l,value:h.value})},$.name=b.name,$.checked=b.value.includes(h.value));const j=to()(`${C}-wrapper`,{[`${C}-rtl`]:"rtl"===g,[`${C}-wrapper-checked`]:$.checked,[`${C}-wrapper-disabled`]:x,[`${C}-wrapper-in-form-item`]:y},null==m?void 0:m.className,i,a,_,S,O),N=to()({[`${C}-indeterminate`]:c},pc,O),I=c?"mixed":void 0;return E(t.createElement(yc,{component:"Checkbox",disabled:x},t.createElement("label",{className:j,style:Object.assign(Object.assign({},null==m?void 0:m.style),s),onMouseEnter:u,onMouseLeave:d},t.createElement(RC,Object.assign({"aria-checked":I},$,{prefixCls:C,className:N,disabled:x,ref:n})),void 0!==l&&t.createElement("span",null,l))))};var zC=t.forwardRef(DC),BC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const FC=t.forwardRef(((e,n)=>{const{defaultValue:r,children:o,options:i=[],prefixCls:a,className:l,rootClassName:c,style:s,onChange:u}=e,d=BC(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=t.useContext(D),[h,v]=t.useState(d.value||r||[]),[g,m]=t.useState([]);t.useEffect((()=>{"value"in d&&v(d.value||[])}),[d.value]);const b=t.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=f("checkbox",a),w=`${y}-group`,x=Ja(y),[k,C,S]=qC(y,x),E=ac(d,["value","disabled"]),O=i.length?b.map((e=>t.createElement(zC,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:`${w}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):o,_={toggleOption:e=>{const t=h.indexOf(e.value),n=Y(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||v(n),null==u||u(n.filter((e=>g.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:d.disabled,name:d.name,registerValue:e=>{m((t=>[].concat(Y(t),[e])))},cancelValue:e=>{m((t=>t.filter((t=>t!==e))))}},$=to()(w,{[`${w}-rtl`]:"rtl"===p},l,c,S,x,C);return k(t.createElement("div",Object.assign({className:$,style:s},E,{ref:n}),t.createElement(MC.Provider,{value:_},O)))}));var HC=FC;const WC=zC;function VC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return UC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UC(e,t)}(e,t)||function(){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 UC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}WC.Group=HC,WC.__ANT_CHECKBOX=!0;var YC=WC.Group,KC=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,c.orientation),h=VC(l(),2),v=(h[0],h[1]),g=null===(t=e.field)||void 0===t?void 0:t.fieldType,m=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field checkbox-group-wrap field-".concat(a),children:[(0,r.jsx)(Yh,{field:c}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(YC,{className:"rtsb-checkbox-group ".concat(p||"vertical"),options:f,value:s,onChange:function(e){v({type:d,id:a,value:e,fieldType:g,parentId:m,repeaterData:y,index:b})}})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},GC=o(4353),XC=o.n(GC),QC=o(6986),ZC=o.n(QC),JC=o(1840),eS=o.n(JC),tS=o(8134),nS=o.n(tS),rS=o(8623),oS=o.n(rS),iS=o(7375),aS=o.n(iS),lS=o(445),cS=o.n(lS);XC().extend(cS()),XC().extend(aS()),XC().extend(ZC()),XC().extend(eS()),XC().extend(nS()),XC().extend(oS()),XC().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var sS={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},uS=function(e){return sS[e]||e.split("_")[0]},dS=function(){ve(!1,"Not match any format. Please help to fire a issue about this.")},fS={getNow:function(){return XC()()},getFixedDate:function(e){return XC()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return XC()().locale(uS(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(uS(e)).weekday(0)},getWeek:function(e,t){return t.locale(uS(e)).week()},getShortWeekDays:function(e){return XC()().locale(uS(e)).localeData().weekdaysMin()},getShortMonths:function(e){return XC()().locale(uS(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(uS(e)).format(n)},parse:function(e,t,n){for(var r=uS(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=XC()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return dS(),null}var f=XC()(a,i,!0).locale(r);if(f.isValid())return f}return t&&dS(),null}}},pS=fS,hS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},vS=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:hS}))};var gS=t.forwardRef(vS),mS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},bS=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:mS}))};var yS=t.forwardRef(bS),wS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},xS=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:wS}))};var kS=t.forwardRef(xS),CS=t.createContext(null),SS={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var ES=function(e){var n=e.popupElement,r=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,l=e.getPopupContainer,c=e.children,s=e.range,u=e.placement,d=e.builtinPlacements,f=void 0===d?SS:d,p=e.direction,h=e.visible,v=e.onClose,g=t.useContext(CS).prefixCls,m="".concat(g,"-dropdown"),b=t.useMemo((function(){return void 0!==u?u:"rtl"===p?"bottomRight":"bottomLeft"}),[u,p]);return t.createElement(Xu,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:f,prefixCls:m,popupTransitionName:a,popup:n,popupAlign:i,popupVisible:h,popupClassName:to()(o,w(w({},"".concat(m,"-range"),s),"".concat(m,"-rtl"),"rtl"===p)),popupStyle:r,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||v()}},c)};function OS(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function _S(e){return null==e?[]:Array.isArray(e)?e:[e]}function $S(e,t,n){var r=Y(e);return r[t]=n,r}function jS(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function NS(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function IS(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find((function(t){return e[t]}));return r!==o?e[o]:void 0}function PS(e){return jS(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function RS(e,n,r,o){var i=t.useMemo((function(){return e||function(e,t){var o=e;return n&&"date"===t.type?n(o,t.today):r&&"month"===t.type?r(o,t.locale):t.originNode}}),[e,r,n]),a=t.useCallback((function(e,t){return i(e,k(k({},t),{},{range:o}))}),[i,o]);return a}function MS(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=V(t.useState([!1,!1]),2),i=o[0],a=o[1],l=t.useMemo((function(){return i.map((function(t,o){if(t)return!0;var i=e[o];return!!i&&(!r[o]&&!i||!(!i||!n(i,{activeIndex:o})))}))}),[e,i,n,r]);return[l,function(e,t){a((function(n){return $S(n,t,e)}))}]}function AS(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function TS(e,n){var r=n.showHour,o=n.showMinute,i=n.showSecond,a=n.showMillisecond,l=n.use12Hours;return t.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,v=e.cellQuarterFormat,g=e.dayFormat,m=e.cellDateFormat,b=AS(t,n,r,o,i);return k(k({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:m||g||"D"})}(e,r,o,i,a,l)}),[e,r,o,i,a,l])}function qS(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var LS=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function DS(e){return e&&"string"==typeof e}function zS(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function BS(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some((function(e){return!1===e})),f=[i,a,l].some((function(e){return!0===e})),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function FS(e){var t=e.showTime,n=function(e){var t=jS(e,LS),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===v(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=V(n,2),o=r[0],i=r[1],a=t&&"object"===v(t)?t:{},l=k(k({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=V(BS(zS(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,k(k({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function HS(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=NS(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=_S(l[c])[0];if(DS(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,h=qS(a,["a","A","LT","LLL","LTS"],i.use12Hours),v=zS(u,d,f,p);v||(u=qS(a,["H","h","k","LT","LLL"]),d=qS(a,["m","LT","LLL"]),f=qS(a,["s","LTS"]),p=qS(a,["SSS"]));var g=V(BS(v,u,d,f,p),3);u=g[0],d=g[1],f=g[2];var m=t||AS(u,d,f,p,h);return k(k({},i),{},{format:m,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:h})}return null}function WS(e,n,r){return!1===n?null:(n&&"object"===v(n)?n:{}).clearIcon||r||t.createElement("span",{className:"".concat(e,"-clear-btn")})}var VS=7;function US(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function YS(e,t,n){return US(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function KS(e,t,n){return US(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function GS(e,t){return Math.floor(e.getMonth(t)/3)+1}function XS(e,t,n){return US(t,n,(function(){return KS(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function QS(e,t,n){return US(t,n,(function(){return KS(e,t,n)&&XS(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function ZS(e,t,n){return US(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function JS(e,t,n){return US(t,n,(function(){return QS(e,t,n)&&ZS(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function eE(e,t,n,r){return US(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return KS(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function tE(e,t,n,r,o){switch(o){case"date":return QS(e,n,r);case"week":return eE(e,t.locale,n,r);case"month":return XS(e,n,r);case"quarter":return function(e,t,n){return US(t,n,(function(){return KS(e,t,n)&&GS(e,t)===GS(e,n)}))}(e,n,r);case"year":return KS(e,n,r);case"decade":return YS(e,n,r);case"time":return ZS(e,n,r);default:return JS(e,n,r)}}function nE(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function rE(e,t,n,r,o){return!!tE(e,t,n,r,o)||e.isAfter(n,r)}function oE(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function iE(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function aE(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.useMemo((function(){var t=e?_S(e):e;return n&&t&&(t[1]=t[1]||t[0]),t}),[e,n]);return r}function lE(e,n){var r=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,h=void 0===p||p,g=e.components,m=void 0===g?{}:g,b=e.inputRender,y=e.allowClear,w=e.clearIcon,x=e.needConfirm,C=e.multiple,S=e.format,E=e.inputReadOnly,O=e.disabledDate,_=e.minDate,$=e.maxDate,j=e.showTime,N=e.value,I=e.defaultValue,P=e.pickerValue,R=e.defaultPickerValue,M=aE(N),A=aE(I),T=aE(P),q=aE(R),L="date"===a&&j?"datetime":a,D="time"===L||"datetime"===L,z=D||C,B=null!=x?x:D,F=V(FS(e),4),H=F[0],W=F[1],U=F[2],Y=F[3],K=TS(o,W),G=t.useMemo((function(){return HS(L,U,Y,H,K)}),[L,U,Y,H,K]);var X=t.useMemo((function(){return k(k({},e),{},{prefixCls:c,locale:K,picker:a,styles:u,classNames:f,order:h,components:k({input:b},m),clearIcon:WS(c,y,w),showTime:G,value:M,defaultValue:A,pickerValue:T,defaultPickerValue:q},null==n?void 0:n())}),[e]),Q=function(e,n,r){return t.useMemo((function(){var t=_S(NS(e,n,r)),o=t[0],i="object"===v(o)&&"mask"===o.type?o.format:null;return[t.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,n,r])}(L,K,S),Z=V(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(J,E,C),ne=function(e,t,n,r,o){var i=Co((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||tE(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||tE(e,t,o,i,a.type))}));return i}(r,o,O,_,$),re=function(e,t,n,r){var o=Co((function(o,i){var a=k({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,h=r.disabledHours,v=r.disabledMinutes,g=r.disabledSeconds,m=u||h,b=d||v,y=f||g,w=e.getHour(o),x=e.getMinute(o),C=e.getSecond(o),S=e.getMillisecond(o);if(m&&m().includes(w))return!0;if(b&&b(w).includes(x))return!0;if(y&&y(w,x).includes(C))return!0;if(p&&p(w,x,C).includes(S))return!0}return!1}));return o}(r,a,ne,G);return[t.useMemo((function(){return k(k({},X),{},{needConfirm:B,inputReadOnly:te,disabledDate:ne})}),[X,B,te,ne]),L,z,J,ee,re]}function cE(e,n){var r=arguments.length>3?arguments[3]:void 0,o=function(e,n,r){var o=V(Oo(n,{value:e}),2),i=o[0],a=o[1],l=t.useRef(e),c=t.useRef(),s=function(){ri.cancel(c.current)},u=Co((function(){a(l.current),r&&i!==l.current&&r(l.current)})),d=Co((function(e,t){s(),l.current=e,e||t?u():c.current=ri(u)}));return t.useEffect((function(){return s}),[]),[i,d]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,n||!1,r),i=V(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function sE(e){var n=t.useRef();return t.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=n.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=n.current)||void 0===e||e.blur()}}})),n}function uE(e,n){return t.useMemo((function(){return e||(n?(ge(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var t=V(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,n])}function dE(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t.useRef(n);o.current=n,Ge((function(){if(!e){var t=ri((function(){o.current(e)}),r);return function(){ri.cancel(t)}}o.current(e)}),[e])}function fE(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=V(t.useState(0),2),o=r[0],i=r[1],a=V(t.useState(!1),2),l=a[0],c=a[1],s=t.useRef([]),u=t.useRef(null);return dE(l,(function(){l||(s.current=[])})),t.useEffect((function(){l&&s.current.push(o)}),[l,o]),[l,function(e){c(e)},function(e){return e&&(u.current=e),u.current},o,i,function(t){var r=s.current,o=new Set(r.filter((function(e){return t[e]||n[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},s.current]}function pE(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var hE=[];function vE(e,n,r,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:hE,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:hE,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h="time"===l,v=a||0,g=function(t){var n=e.getNow();return h&&(n=iE(e,n)),s[t]||r[t]||n},m=V(arguments.length>9&&void 0!==arguments[9]?arguments[9]:hE,2),b=m[0],y=m[1],w=V(Oo((function(){return g(0)}),{value:b}),2),x=w[0],k=w[1],C=V(Oo((function(){return g(1)}),{value:y}),2),S=C[0],E=C[1],O=t.useMemo((function(){var t=[x,S][v];return h?t:iE(e,t,u[v])}),[h,x,S,v,e,u]),_=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[k,E][v])(t);var i=[x,S];i[v]=t,!d||tE(e,n,x,i[0],l)&&tE(e,n,S,i[1],l)||d(i,{source:r,range:1===v?"end":"start",mode:o})},$=t.useRef(null);return Xe((function(){if(i&&!s[v]){var t=h?null:e.getNow();if(null!==$.current&&$.current!==v?t=[x,S][1^v]:r[v]?t=0===v?r[0]:function(t,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!tE(e,n,t,r,o))return pE(e,l,r,-1);if("year"===l&&Math.floor(e.getYear(t)/10)!==Math.floor(e.getYear(r)/10))return pE(e,l,r,-1)}return r}(r[0],r[1]):r[1^v]&&(t=r[1^v]),t){f&&e.isAfter(f,t)&&(t=f);var o=c?pE(e,l,t,1):t;p&&e.isAfter(o,p)&&(t=c?pE(e,l,p,-1):p),_(t,"reset")}}}),[i,v,r[v]]),t.useEffect((function(){$.current=i?v:null}),[i,v]),Xe((function(){i&&s&&s[v]&&_(s[v],"reset")}),[i,v]),[O,_]}function gE(e,n){var r=t.useRef(e),o=V(t.useState({}),2)[1],i=function(e){return e&&void 0!==n?n:r.current};return[i,function(e){r.current=e,o({})},i(!0)]}var mE=[];function bE(e,t,n){return[function(r){return r.map((function(r){return oE(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!JS(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function yE(e,t){return Y(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function wE(e,n,r,o,i,a,l,c,s){var u=V(Oo(a,{value:l}),2),d=u[0],f=u[1],p=d||mE,h=function(e){var n=V(gE(e),2),r=n[0],o=n[1],i=Co((function(){o(e)}));return t.useEffect((function(){i()}),[e]),[r,o]}(p),v=V(h,2),g=v[0],m=v[1],b=V(bE(e,n,r),2),y=b[0],w=b[1],x=Co((function(t){var n=Y(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=yE(n.filter((function(e){return e})),e));var a=V(w(g(),n),2),l=a[0],s=a[1];if(!l&&(m(n),c)){var u=y(n);c(n,u,{range:s?"end":"start"})}}));return[p,f,g,x,function(){s&&s(g())}]}function xE(e,n,r,o,i,a,l,c,s,u){var d=e.generateConfig,f=e.locale,p=e.picker,h=e.onChange,v=e.allowEmpty,g=e.order,m=!a.some((function(e){return e}))&&g,b=V(bE(d,f,l),2),y=b[0],w=b[1],x=V(gE(n),2),k=x[0],C=x[1],S=Co((function(){C(n)}));t.useEffect((function(){S()}),[n]);var E=Co((function(e){var t=null===e,o=Y(e||k());if(t)for(var l=Math.max(a.length,o.length),c=0;c<l;c+=1)a[c]||(o[c]=null);m&&o[0]&&o[1]&&(o=yE(o,d)),i(o);var s=V(o,2),b=s[0],x=s[1],C=!b,S=!x,E=!v||(!C||v[0])&&(!S||v[1]),O=!g||C||S||tE(d,f,b,x,p)||d.isAfter(x,b),_=!(b&&u(b,{activeIndex:0})||x&&u(x,{from:b,activeIndex:1})),$=t||E&&O&&_;if($){r(o);var j=V(w(o,n),1)[0];h&&!j&&h(t&&o.every((function(e){return!e}))?null:o,y(o))}return $})),O=Co((function(e,t){var n=$S(k(),e,o()[e]);C(n),t&&E()})),_=!c&&!s;return dE(!_,(function(){_&&(E(),i(n),S())}),2),[O,E]}function kE(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function CE(){return[]}function SE(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:OS(c,i),value:c,disabled:s})}return a}function EE(e){var n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,a=void 0===i?1:i,l=r.minuteStep,c=void 0===l?1:l,s=r.secondStep,u=void 0===s?1:s,d=r.millisecondStep,f=void 0===d?100:d,p=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,g=r.disabledMinutes,m=r.disabledSeconds,b=t.useMemo((function(){return n||e.getNow()}),[n,e]),y=t.useCallback((function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||v||CE,t.disabledMinutes||g||CE,t.disabledSeconds||m||CE,t.disabledMilliseconds||CE]}),[h,v,g,m]),w=V(t.useMemo((function(){return y(b)}),[b,y]),4),x=w[0],C=w[1],S=w[2],E=w[3],O=t.useCallback((function(e,t,n,r){var i=SE(0,23,a,p,e()),l=o?i.map((function(e){return k(k({},e),{},{label:OS(e.value%12||12,2)})})):i;return[l,function(e){return SE(0,59,c,p,t(e))},function(e,t){return SE(0,59,u,p,n(e,t))},function(e,t,n){return SE(0,999,f,p,r(e,t,n),3)}]}),[p,a,o,f,c,u]),_=V(t.useMemo((function(){return O(x,C,S,E)}),[O,x,C,S,E]),4),$=_[0],j=_[1],N=_[2],I=_[3];return[function(t,n){var r=function(){return $},o=j,i=N,a=I;if(n){var l=V(y(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=V(O(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=Y(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return h},$,j,N,I]}function OE(e){var n=e.mode,r=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,l=e.onSubmit,c=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=t.useContext(CS),h=p.prefixCls,v=p.locale,g=p.button,m=void 0===g?"button":g,b=d.getNow(),y=V(EE(d,a,b),1)[0],w=null==o?void 0:o(n),x=f(b,{type:n}),k="".concat(h,"-now"),C="".concat(k,"-btn"),S=i&&t.createElement("li",{className:k},t.createElement("a",{className:to()(C,x&&"".concat(C,"-disabled")),"aria-disabled":x,onClick:function(){if(!x){var e=y(b);c(e)}}},"date"===r?v.today:v.now)),E=u&&t.createElement("li",{className:"".concat(h,"-ok")},t.createElement(m,{disabled:s,onClick:l},v.ok)),O=(S||E)&&t.createElement("ul",{className:"".concat(h,"-ranges")},S,E);return w||O?t.createElement("div",{className:"".concat(h,"-footer")},w&&t.createElement("div",{className:"".concat(h,"-footer-extra")},w),O):null}function _E(e,t,n){return function(r,o){var i=r.findIndex((function(r){return tE(e,t,r,o,n)}));if(-1===i)return[].concat(Y(r),[o]);var a=Y(r);return a.splice(i,1),a}}var $E=t.createContext(null);function jE(){return t.useContext($E)}function NE(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,v=e.prevIcon,g=e.nextIcon,m=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:v,nextIcon:g,superPrevIcon:m,superNextIcon:b},y]}var IE=t.createContext({});function PE(e){for(var n=e.rowNum,r=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,l=e.rowClassName,c=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=void 0===f||f,h=e.disabledDate,v=jE(),g=v.prefixCls,m=v.panelType,b=v.now,y=v.disabledDate,x=v.cellRender,C=v.onHover,S=v.hoverValue,E=v.hoverRangeValue,O=v.generateConfig,_=v.values,$=v.locale,j=v.onSelect,N=h||y,I="".concat(g,"-cell"),P=t.useContext(IE).onCellDblClick,R=function(e){return _.some((function(t){return t&&tE(O,$,e,t,m)}))},M=[],A=0;A<n;A+=1){for(var T=[],q=void 0,L=function(){var e=i(o,A*r+D),n=null==N?void 0:N(e,{type:m});0===D&&(q=e,a&&T.push(a(q)));var l=!1,d=!1,f=!1;if(p&&E){var h=V(E,2),v=h[0],y=h[1];l=nE(O,v,y,e),d=tE(O,$,e,v,m),f=tE(O,$,e,y,m)}var _=c?oE(e,{locale:$,format:c,generateConfig:O}):void 0,M=t.createElement("div",{className:"".concat(I,"-inner")},s(e));T.push(t.createElement("td",{key:D,title:_,className:to()(I,k(w(w(w(w(w(w({},"".concat(I,"-disabled"),n),"".concat(I,"-hover"),(S||[]).some((function(t){return tE(O,$,e,t,m)}))),"".concat(I,"-in-range"),l&&!d&&!f),"".concat(I,"-range-start"),d),"".concat(I,"-range-end"),f),"".concat(g,"-cell-selected"),!E&&"week"!==m&&R(e)),u(e))),onClick:function(){n||j(e)},onDoubleClick:function(){!n&&P&&P()},onMouseEnter:function(){n||null==C||C(e)},onMouseLeave:function(){n||null==C||C(null)}},x?x(e,{prefixCls:g,originNode:M,today:b,type:m,locale:$}):M))},D=0;D<r;D+=1)L();M.push(t.createElement("tr",{key:A,className:null==l?void 0:l(q)},T))}return t.createElement("div",{className:"".concat(g,"-body")},t.createElement("table",{className:"".concat(g,"-content")},d&&t.createElement("thead",null,t.createElement("tr",null,d)),t.createElement("tbody",null,M)))}var RE={visibility:"hidden"};var ME=function(e){var n=e.offset,r=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,l=e.children,c=jE(),s=c.prefixCls,u=c.prevIcon,d=void 0===u?"‹":u,f=c.nextIcon,p=void 0===f?"›":f,h=c.superPrevIcon,v=void 0===h?"«":h,g=c.superNextIcon,m=void 0===g?"»":g,b=c.minDate,y=c.maxDate,w=c.generateConfig,x=c.locale,k=c.pickerValue,C=c.panelType,S="".concat(s,"-header"),E=t.useContext(IE),O=E.hidePrev,_=E.hideNext,$=E.hideHeader,j=t.useMemo((function(){if(!b||!n||!a)return!1;var e=a(n(-1,k));return!rE(w,x,e,b,C)}),[b,n,k,a,w,x,C]),N=t.useMemo((function(){if(!b||!r||!a)return!1;var e=a(r(-1,k));return!rE(w,x,e,b,C)}),[b,r,k,a,w,x,C]),I=t.useMemo((function(){if(!y||!n||!i)return!1;var e=i(n(1,k));return!rE(w,x,y,e,C)}),[y,n,k,i,w,x,C]),P=t.useMemo((function(){if(!y||!r||!i)return!1;var e=i(r(1,k));return!rE(w,x,y,e,C)}),[y,r,k,i,w,x,C]),R=function(e){n&&o(n(e,k))},M=function(e){r&&o(r(e,k))};if($)return null;var A="".concat(S,"-prev-btn"),T="".concat(S,"-next-btn"),q="".concat(S,"-super-prev-btn"),L="".concat(S,"-super-next-btn");return t.createElement("div",{className:S},r&&t.createElement("button",{type:"button",onClick:function(){return M(-1)},tabIndex:-1,className:to()(q,N&&"".concat(q,"-disabled")),disabled:N,style:O?RE:{}},v),n&&t.createElement("button",{type:"button",onClick:function(){return R(-1)},tabIndex:-1,className:to()(A,j&&"".concat(A,"-disabled")),disabled:j,style:O?RE:{}},d),t.createElement("div",{className:"".concat(S,"-view")},l),n&&t.createElement("button",{type:"button",onClick:function(){return R(1)},tabIndex:-1,className:to()(T,I&&"".concat(T,"-disabled")),disabled:I,style:_?RE:{}},p),r&&t.createElement("button",{type:"button",onClick:function(){return M(1)},tabIndex:-1,className:to()(L,P&&"".concat(L,"-disabled")),disabled:P,style:_?RE:{}},m))};function AE(e){var n=e.prefixCls,r=e.panelName,o=void 0===r?"date":r,i=e.locale,a=e.generateConfig,l=e.pickerValue,c=e.onPickerValueChange,s=e.onModeChange,u=e.mode,d=void 0===u?"date":u,f=e.disabledDate,p=e.onSelect,h=e.onHover,v=e.showWeek,g="".concat(n,"-").concat(o,"-panel"),m="".concat(n,"-cell"),b="week"===d,y=V(NE(e,d),2),x=y[0],k=y[1],C=a.locale.getWeekFirstDay(i.locale),S=a.setDate(l,1),E=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,S),O=a.getMonth(l),_=b||v?function(e){var n=null==f?void 0:f(e,{type:"week"});return t.createElement("td",{key:"week",className:to()(m,"".concat(m,"-week"),w({},"".concat(m,"-disabled"),n)),onClick:function(){n||p(e)},onMouseEnter:function(){n||null==h||h(e)},onMouseLeave:function(){n||null==h||h(null)}},t.createElement("div",{className:"".concat(m,"-inner")},a.locale.getWeek(i.locale,e)))}:null,$=[],j=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);_&&$.push(t.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var N=0;N<VS;N+=1)$.push(t.createElement("th",{key:N},j[(N+C)%VS]));var I=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),P=t.createElement("button",{type:"button",key:"year",onClick:function(){s("year",l)},tabIndex:-1,className:"".concat(n,"-year-btn")},oE(l,{locale:i,format:i.yearFormat,generateConfig:a})),R=t.createElement("button",{type:"button",key:"month",onClick:function(){s("month",l)},tabIndex:-1,className:"".concat(n,"-month-btn")},i.monthFormat?oE(l,{locale:i,format:i.monthFormat,generateConfig:a}):I[O]),M=i.monthBeforeYear?[R,P]:[P,R];return t.createElement($E.Provider,{value:x},t.createElement("div",{className:to()(g,v&&"".concat(g,"-show-week"))},t.createElement(ME,{offset:function(e){return a.addMonth(l,e)},superOffset:function(e){return a.addYear(l,e)},onChange:c,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},M),t.createElement(PE,ut({titleFormat:i.fieldDateFormat},e,{colNum:VS,rowNum:6,baseDate:E,headerCells:$,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return oE(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return w(w({},"".concat(n,"-cell-in-view"),XS(a,e,l)),"".concat(n,"-cell-today"),QS(a,e,k))},prefixColumn:_,cellSelection:!b}))))}var TE=1/3;var qE=300;function LE(e){var n=e.units,r=e.value,o=e.optionalValue,i=e.type,a=e.onChange,l=e.onDblClick,c=e.changeOnScroll,s=jE(),u=s.prefixCls,d=s.cellRender,f=s.now,p=s.locale,h="".concat(u,"-time-panel"),v="".concat(u,"-time-panel-cell"),g=t.useRef(null),m=t.useRef(),b=function(){clearTimeout(m.current)},y=function(e,n){var r=t.useRef(!1),o=t.useRef(null),i=t.useRef(null),a=function(){ri.cancel(o.current),r.current=!1},l=t.useRef();return[Co((function(){var t=e.current;if(i.current=null,l.current=0,t){var c=t.querySelector('[data-value="'.concat(n,'"]')),s=t.querySelector("li");c&&s&&function e(){a(),r.current=!0,l.current+=1;var n=t.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!lc(t))l.current<=5&&(o.current=ri(e));else{var p=n+(f-n)*TE,h=Math.abs(f-p);if(null!==i.current&&i.current<h)a();else{if(i.current=h,h<=1)return t.scrollTop=f,void a();t.scrollTop=p,o.current=ri(e)}}}()}})),a,function(){return r.current}]}(g,null!=r?r:o),x=V(y,3),k=x[0],C=x[1],S=x[2];Xe((function(){return k(),b(),function(){C(),b()}}),[r,o,n]);var E="".concat(h,"-column");return t.createElement("ul",{className:E,ref:g,"data-type":i,onScroll:function(e){b();var t=e.target;!S()&&c&&(m.current=setTimeout((function(){var e=g.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})).map((function(e,r){return n[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-t.scrollTop)})),i=Math.min.apply(Math,Y(o)),l=o.findIndex((function(e){return e===i})),c=n[l];c&&!c.disabled&&a(c.value)}),qE))}},n.map((function(e){var n=e.label,o=e.value,c=e.disabled,s=t.createElement("div",{className:"".concat(v,"-inner")},n);return t.createElement("li",{key:o,className:to()(v,w(w({},"".concat(v,"-selected"),r===o),"".concat(v,"-disabled"),c)),onClick:function(){c||a(o)},onDoubleClick:function(){!c&&l&&l()},"data-value":o},d?d(o,{prefixCls:u,originNode:s,today:f,type:"time",subType:i,locale:p}):s)})))}function DE(e){return e<12}function zE(e){var n=e.showHour,r=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,l=e.changeOnScroll,c=jE(),s=c.prefixCls,u=c.values,d=c.generateConfig,f=c.locale,p=c.onSelect,h=c.pickerValue,v=(null==u?void 0:u[0])||null,g=t.useContext(IE).onCellDblClick,m=V(EE(d,e,v),5),b=m[0],y=m[1],w=m[2],x=m[3],k=m[4],C=function(e){return[v&&d[e](v),h&&d[e](h)]},S=V(C("getHour"),2),E=S[0],O=S[1],_=V(C("getMinute"),2),$=_[0],j=_[1],N=V(C("getSecond"),2),I=N[0],P=N[1],R=V(C("getMillisecond"),2),M=R[0],A=R[1],T=null===E?null:DE(E)?"am":"pm",q=t.useMemo((function(){return a?DE(E)?y.filter((function(e){return DE(e.value)})):y.filter((function(e){return!DE(e.value)})):y}),[E,y,a]),L=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},D=L(y,E),z=t.useMemo((function(){return w(D)}),[w,D]),B=L(z,$),F=t.useMemo((function(){return x(D,B)}),[x,D,B]),H=L(F,I),W=t.useMemo((function(){return k(D,B,H)}),[k,D,B,H]),U=L(W,M),Y=t.useMemo((function(){if(!a)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=f.cellMeridiemFormat;return n?oE(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:y.every((function(e){return e.disabled||!DE(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:y.every((function(e){return e.disabled||DE(e.value)}))}]}),[y,a,d,f]),K=function(e){var t=b(e);p(t)},G=t.useMemo((function(){var e=v||h||d.getNow(),t=function(e){return null!=e};return t(E)?(e=d.setHour(e,E),e=d.setMinute(e,$),e=d.setSecond(e,I),e=d.setMillisecond(e,M)):t(O)?(e=d.setHour(e,O),e=d.setMinute(e,j),e=d.setSecond(e,P),e=d.setMillisecond(e,A)):t(D)&&(e=d.setHour(e,D),e=d.setMinute(e,B),e=d.setSecond(e,H),e=d.setMillisecond(e,U)),e}),[v,h,E,$,I,M,D,B,H,U,O,j,P,A,d]),X={onDblClick:g,changeOnScroll:l};return t.createElement("div",{className:"".concat(s,"-content")},n&&t.createElement(LE,ut({units:q,value:E,optionalValue:O,type:"hour",onChange:function(e){K(d.setHour(G,e))}},X)),r&&t.createElement(LE,ut({units:z,value:$,optionalValue:j,type:"minute",onChange:function(e){K(d.setMinute(G,e))}},X)),o&&t.createElement(LE,ut({units:F,value:I,optionalValue:P,type:"second",onChange:function(e){K(d.setSecond(G,e))}},X)),i&&t.createElement(LE,ut({units:W,value:M,optionalValue:A,type:"millisecond",onChange:function(e){K(d.setMillisecond(G,e))}},X)),a&&t.createElement(LE,ut({units:Y,value:T,type:"meridiem",onChange:function(e){"am"!==e||DE(E)?"pm"===e&&DE(E)&&K(d.setHour(G,E+12)):K(d.setHour(G,E-12))}},X)))}function BE(e){var n=e.prefixCls,r=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,l=(a||{}).format,c="".concat(n,"-time-panel"),s=V(NE(e,"time"),1)[0];return t.createElement($E.Provider,{value:s},t.createElement("div",{className:to()(c)},t.createElement(ME,null,r?oE(r,{locale:o,format:l,generateConfig:i}):" "),t.createElement(zE,a)))}var FE={date:AE,datetime:function(e){var n=e.prefixCls,r=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,l=e.pickerValue,c=e.onHover,s="".concat(n,"-datetime-panel"),u=V(EE(r,o),1)[0],d=function(e){return iE(r,e,a||l)};return t.createElement("div",{className:s},t.createElement(AE,ut({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){c(e?d(e):e)}})),t.createElement(BE,e))},week:function(e){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,l=e.hoverRangeValue,c=o.locale,s="".concat(n,"-week-panel-row");return t.createElement(AE,ut({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var n=V(l,2),o=n[0],u=n[1],d=eE(r,c,o,e),f=eE(r,c,u,e);t["".concat(s,"-range-start")]=d,t["".concat(s,"-range-end")]=f,t["".concat(s,"-range-hover")]=!d&&!f&&nE(r,o,u,e)}return a&&(t["".concat(s,"-hover")]=a.some((function(t){return eE(r,c,e,t)}))),to()(s,w({},"".concat(s,"-selected"),!l&&eE(r,c,i,e)),t)}}))},month:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(n,"-month-panel"),u=V(NE(e,"month"),1)[0],d=o.setMonth(i,0),f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,h=t.createElement("button",{type:"button",key:"year",onClick:function(){c("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},oE(i,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement($E.Provider,{value:u},t.createElement("div",{className:s},t.createElement(ME,{superOffset:function(e){return o.addYear(i,e)},onChange:l,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},h),t.createElement(PE,ut({},e,{disabledDate:p,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return r.monthFormat?oE(e,{locale:r,format:r.monthFormat,generateConfig:o}):f[t]},getCellClassName:function(){return w({},"".concat(n,"-cell-in-view"),!0)}}))))},quarter:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-quarter-panel"),s=V(NE(e,"quarter"),1)[0],u=o.setMonth(i,0),d=t.createElement("button",{type:"button",key:"year",onClick:function(){l("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},oE(i,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement($E.Provider,{value:s},t.createElement("div",{className:c},t.createElement(ME,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),t.createElement(PE,ut({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return oE(e,{locale:r,format:r.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return w({},"".concat(n,"-cell-in-view"),!0)}}))))},year:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(n,"-year-panel"),u=V(NE(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(i)/10);return o.setYear(e,t)},f=function(e){var t=d(e);return o.addYear(t,9)},p=d(i),h=f(i),v=o.addYear(p,-1),g=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.setMonth(e,o.getMonth(e)+1),l=o.addDate(i,-1);return a(r,t)&&a(l,t)}:null,m=t.createElement("button",{type:"button",key:"year",onClick:function(){c("decade")},tabIndex:-1,className:"".concat(n,"-decade-btn")},oE(p,{locale:r,format:r.yearFormat,generateConfig:o}),"-",oE(h,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement($E.Provider,{value:u},t.createElement("div",{className:s},t.createElement(ME,{superOffset:function(e){return o.addYear(i,10*e)},onChange:l,getStart:d,getEnd:f},m),t.createElement(PE,ut({},e,{disabledDate:g,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return oE(e,{locale:r,format:r.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return w({},"".concat(n,"-cell-in-view"),KS(o,e,p)||KS(o,e,h)||nE(o,p,h,e))}}))))},decade:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c="".concat(n,"-decade-panel"),s=V(NE(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(i)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},f=u(i),p=d(i),h=o.addYear(f,-10),v=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),l=o.addYear(i,10),c=o.addDate(l,-1);return a(i,t)&&a(c,t)}:null,g="".concat(oE(f,{locale:r,format:r.yearFormat,generateConfig:o}),"-").concat(oE(p,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement($E.Provider,{value:s},t.createElement("div",{className:c},t.createElement(ME,{superOffset:function(e){return o.addYear(i,100*e)},onChange:l,getStart:u,getEnd:d},g),t.createElement(PE,ut({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=r.cellYearFormat,n=oE(e,{locale:r,format:t,generateConfig:o}),i=oE(o.addYear(e,9),{locale:r,format:t,generateConfig:o});return"".concat(n,"-").concat(i)},getCellClassName:function(e){return w({},"".concat(n,"-cell-in-view"),YS(o,e,f)||YS(o,e,p)||nE(o,f,p,e))}}))))},time:BE};function HE(e,n){var r,o=e.locale,i=e.generateConfig,a=e.direction,l=e.prefixCls,c=e.tabIndex,s=void 0===c?0:c,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,h=e.onSelect,v=e.defaultPickerValue,g=e.pickerValue,m=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,x=e.picker,C=void 0===x?"date":x,S=e.showTime,E=e.hoverValue,O=e.hoverRangeValue,_=e.cellRender,$=e.dateRender,j=e.monthCellRender,N=e.components,I=void 0===N?{}:N,P=e.hideHeader,R=(null===(r=t.useContext(CS))||void 0===r?void 0:r.prefixCls)||l||"rc-picker",M=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:M.current}}));var A=V(FS(e),4),T=A[0],q=A[1],L=A[2],D=A[3],z=TS(o,q),B="date"===C&&S?"datetime":C,F=t.useMemo((function(){return HS(B,L,D,T,z)}),[B,L,D,T,z]),H=i.getNow(),W=V(Oo(C,{value:b,postState:function(e){return e||"date"}}),2),U=W[0],K=W[1],G="date"===U&&F?"datetime":U,X=_E(i,o,B),Q=V(Oo(d,{value:f}),2),Z=Q[0],J=Q[1],ee=t.useMemo((function(){var e=_S(Z).filter((function(e){return e}));return u?e:e.slice(0,1)}),[Z,u]),te=Co((function(e){J(e),p&&(null===e||ee.length!==e.length||ee.some((function(t,n){return!tE(i,o,t,e[n],B)})))&&(null==p||p(u?e:e[0]))})),ne=Co((function(e){if(null==h||h(e),U===C){var t=u?X(ee,e):[e];te(t)}})),re=V(Oo(v||ee[0]||H,{value:g}),2),oe=re[0],ie=re[1];t.useEffect((function(){ee[0]&&!g&&ie(ee[0])}),[ee[0]]);var ae=function(e,t){null==y||y(e||g,t||U)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null==m||m(e),t&&ae(e)},ce=function(e,t){K(e),t&&le(t),ae(t,e)},se=t.useMemo((function(){var e,t;if(Array.isArray(O)){var n=V(O,2);e=n[0],t=n[1]}else e=O;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[O,i]),ue=RS(_,$,j),de=I[G]||FE[G]||AE,fe=t.useContext(IE),pe=t.useMemo((function(){return k(k({},fe),{},{hideHeader:P})}),[fe,P]);var he="".concat(R,"-panel"),ve=jS(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return t.createElement(IE.Provider,{value:pe},t.createElement("div",{ref:M,tabIndex:s,className:to()(he,w({},"".concat(he,"-rtl"),"rtl"===a))},t.createElement(de,ut({},ve,{showTime:F,prefixCls:R,locale:z,generateConfig:i,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),U!==C){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(Y(n),["week"]),date:[].concat(Y(n),["date"])}[C]||n,o=r.indexOf(U),i=r[o+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:E}))))}var WE=t.memo(t.forwardRef(HE));function VE(e){var n=e.picker,r=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,l=e.onSubmit,c=e.range,s=e.hoverValue,u=t.useContext(CS),d=u.prefixCls,f=u.generateConfig,p=t.useCallback((function(e,t){return pE(f,n,e,t)}),[f,n]),h=t.useMemo((function(){return p(o,1)}),[o,p]),v={onCellDblClick:function(){a&&l()}},g="time"===n,m=k(k({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return c?m.hoverRangeValue=s:m.hoverValue=s,r?t.createElement("div",{className:"".concat(d,"-panels")},t.createElement(IE.Provider,{value:k(k({},v),{},{hideNext:!0})},t.createElement(WE,m)),t.createElement(IE.Provider,{value:k(k({},v),{},{hidePrev:!0})},t.createElement(WE,ut({},m,{pickerValue:h,onPickerValueChange:function(e){i(p(e,-1))}})))):t.createElement(IE.Provider,{value:k({},v)},t.createElement(WE,m))}function UE(e){return"function"==typeof e?e():e}function YE(e){var n=e.prefixCls,r=e.presets,o=e.onClick,i=e.onHover;return r.length?t.createElement("div",{className:"".concat(n,"-presets")},t.createElement("ul",null,r.map((function(e,n){var r=e.label,a=e.value;return t.createElement("li",{key:n,onClick:function(){o(UE(a))},onMouseEnter:function(){i(UE(a))},onMouseLeave:function(){i(null)}},r)})))):null}function KE(e){var n=e.panelRender,r=e.internalMode,o=e.picker,i=e.showNow,a=e.range,l=e.multiple,c=e.activeOffset,s=void 0===c?0:c,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,h=e.onBlur,v=e.direction,g=e.value,m=e.onSelect,b=e.isInvalid,y=e.defaultOpenValue,x=e.onOk,k=e.onSubmit,C=t.useContext(CS).prefixCls,S="".concat(C,"-panel"),E="rtl"===v,O=t.useRef(null),_=t.useRef(null),$=V(t.useState(0),2),j=$[0],N=$[1],I=V(t.useState(0),2),P=I[0],R=I[1];function M(e){return e.filter((function(e){return e}))}t.useEffect((function(){if(a){var e,t=(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)||0;R(s<=j-t?0:s+t-j)}}),[j,s,a]);var A=t.useMemo((function(){return M(_S(g))}),[g]),T="time"===o&&!A.length,q=t.useMemo((function(){return T?M([y]):A}),[T,A,y]),L=T?y:A,D=t.useMemo((function(){return!q.length||q.some((function(e){return b(e)}))}),[q,b]),z=t.createElement("div",{className:"".concat(C,"-panel-layout")},t.createElement(YE,{prefixCls:C,presets:u,onClick:f,onHover:d}),t.createElement("div",null,t.createElement(VE,ut({},e,{value:L})),t.createElement(OE,ut({},e,{showNow:!l&&i,invalid:D,onSubmit:function(){T&&m(y),x(),k()}}))));n&&(z=n(z));var B="".concat(S,"-container"),F="marginLeft",H="marginRight",W=t.createElement("div",{tabIndex:-1,className:to()(B,"".concat(C,"-").concat(r,"-panel-container")),style:w(w({},E?H:F,P),E?F:H,"auto"),onFocus:p,onBlur:h},z);return a&&(W=t.createElement("div",{ref:_,className:to()("".concat(C,"-range-wrapper"),"".concat(C,"-").concat(o,"-range-wrapper"))},t.createElement("div",{ref:O,className:"".concat(C,"-range-arrow"),style:w({},E?"right":"left",s)}),t.createElement(ku,{onResize:function(e){e.offsetWidth&&N(e.offsetWidth)}},W))),W}function GE(e,n){var r=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,v=e.onInvalid,g=e.open,m=e.onOpenChange,b=e.onKeyDown,y=e.onChange,w=e.activeHelp,x=e.name,C=e.autoComplete,S=e.id,E=e.value,O=e.invalid,_=e.placeholder,$=e.disabled,j=e.activeIndex,N=e.allHelp,I=e.picker,P=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},R=r[0],M=t.useCallback((function(e){return oE(e,{locale:a,format:R,generateConfig:i})}),[a,i,R]),A=t.useMemo((function(){return E.map(M)}),[E,M]),T=t.useMemo((function(){var e="time"===I?8:10,t="function"==typeof R?R(i.getNow()).length:R.length;return Math.max(e,t)+2}),[R,I,i]),q=function(e){for(var t=0;t<r.length;t+=1){var n=r[t];if("string"==typeof n){var o=P(e,n);if(o)return o}}return!1};return[function(t){function r(e){return void 0!==t?e[t]:e}var i=k(k({},Da(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!q(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:x,autoComplete:C,size:T,id:r(S),value:r(A)||"",invalid:r(O),placeholder:r(_),active:j===t,helped:N||w&&j===t,disabled:r($),onFocus:function(e){f(e,t)},onBlur:function(e){p(e,t)},onSubmit:d,onChange:function(e){h();var n=q(e);if(n)return v(!1,t),void y(n,t);v(!!e,t)},onHelp:function(){m(!0,{index:t})},onKeyDown:function(e){var n=!1;if(null==b||b(e,(function(){n=!0})),!e.defaultPrevented&&!n)switch(e.key){case"Escape":m(!1,{index:t});break;case"Enter":g||m(!0)}}},null==n?void 0:n({valueTexts:A}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},M]}var XE=["onMouseEnter","onMouseLeave"];function QE(e){return t.useMemo((function(){return jS(e,XE)}),[e])}var ZE=["icon","type"],JE=["onClear"];function eO(e){var n=e.icon,r=e.type,o=so(e,ZE),i=t.useContext(CS).prefixCls;return n?t.createElement("span",ut({className:"".concat(i,"-").concat(r)},o),n):null}function tO(e){var n=e.onClear,r=so(e,JE);return t.createElement(eO,ut({},r,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),n()}}))}var nO=["YYYY","MM","DD","HH","mm","ss","SSS"],rO=function(){function e(t){be(this,e),w(this,"format",void 0),w(this,"maskFormat",void 0),w(this,"cells",void 0),w(this,"maskCells",void 0),this.format=t;var n=nO.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var o=new RegExp("(".concat(nO.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=nO.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return we(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var oO=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],iO=t.forwardRef((function(e,n){var r=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,l=e.format,c=e.validateFormat,s=e.onChange,u=(e.onInput,e.helped),d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,h=e.preserveInvalidOnBlur,v=void 0!==h&&h,g=e.invalid,m=e.clearIcon,b=so(e,oO),y=e.value,x=e.onFocus,k=e.onBlur,C=e.onMouseUp,S=t.useContext(CS),E=S.prefixCls,O=S.input,_=void 0===O?"input":O,$="".concat(E,"-input"),j=V(t.useState(!1),2),N=j[0],I=j[1],P=V(t.useState(y),2),R=P[0],M=P[1],A=V(t.useState(""),2),T=A[0],q=A[1],L=V(t.useState(null),2),D=L[0],z=L[1],B=V(t.useState(null),2),F=B[0],H=B[1],W=R||"";t.useEffect((function(){M(y)}),[y]);var U=t.useRef(),Y=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:U.current,inputElement:Y.current,focus:function(e){Y.current.focus(e)},blur:function(){Y.current.blur()}}}));var K=t.useMemo((function(){return new rO(l||"")}),[l]),G=V(t.useMemo((function(){return u?[0,0]:K.getSelection(D)}),[K,D,u]),2),X=G[0],Q=G[1],Z=function(e){e&&e!==l&&e!==y&&d()},J=Co((function(e){c(e)&&s(e),M(e),Z(e)})),ee=t.useRef(!1),te=function(e){k(e)};dE(r,(function(){r||v||M(y)}));var ne=function(e){"Enter"===e.key&&c(W)&&f(),null==p||p(e)},re=t.useRef();Xe((function(){if(N&&l&&!ee.current){if(K.match(W))return Y.current.setSelectionRange(X,Q),re.current=ri((function(){Y.current.setSelectionRange(X,Q)})),function(){ri.cancel(re.current)};J(l)}}),[K,l,N,W,D,X,Q,F,J]);var oe=l?{onFocus:function(e){I(!0),z(0),q(""),x(e)},onBlur:function(e){I(!1),te(e)},onKeyDown:function(e){ne(e);var t=e.key,n=null,r=null,o=Q-X,i=l.slice(X,Q),a=function(e){z((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,K.size()-1)}))},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=V(t,3),r=n[0],o=n[1],a=n[2],l=W.slice(X,Q),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=T+t)}if(null!==n&&(q(n),n.length>=o&&(a(1),q(""))),null!==r){var s=W.slice(0,X)+OS(r,o)+W.slice(Q);J(s.slice(0,l.length))}H({})},onMouseDown:function(){ee.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=K.getMaskCellIndex(t);z(n),H({}),null==C||C(e),ee.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");c(t)&&J(t)}}:{};return t.createElement("div",{ref:U,className:to()($,w(w({},"".concat($,"-active"),r&&i),"".concat($,"-placeholder"),u))},t.createElement(_,ut({ref:Y,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:ne,onBlur:te},oe,{value:W,onChange:function(e){if(!l){var t=e.target.value;Z(t),M(t),s(t)}}})),t.createElement(eO,{type:"suffix",icon:a}),m)}));var aO=iO,lO=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],cO=["index"];function sO(e,n){var r=e.id,o=e.clearIcon,i=e.suffixIcon,a=e.separator,l=void 0===a?"~":a,c=e.activeIndex,s=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),d=e.className,f=e.style,p=e.onClick,h=e.onClear,g=e.value,m=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),b=e.invalid,y=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveOffset),C=e.onMouseDown,S=(e.required,e["aria-required"],e.autoFocus),E=so(e,lO),O="rtl"===y,_=t.useContext(CS).prefixCls,$=t.useMemo((function(){if("string"==typeof r)return[r];var e=r||{};return[e.start,e.end]}),[r]),j=t.useRef(),N=t.useRef(),I=t.useRef(),P=function(e){var t;return null===(t=[N,I][e])||void 0===t?void 0:t.current};t.useImperativeHandle(n,(function(){return{nativeElement:j.current,focus:function(e){if("object"===v(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=so(n,cO);null===(t=P(o))||void 0===t||t.focus(i)}else{var a;null===(a=P(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=P(0))||void 0===e||e.blur(),null===(t=P(1))||void 0===t||t.blur()}}}));var R=QE(E),M=t.useMemo((function(){return Array.isArray(u)?u:[u,u]}),[u]),A=V(GE(k(k({},e),{},{id:$,placeholder:M})),1)[0],T=O?"right":"left",q=V(t.useState(w({position:"absolute",width:0},T,0)),2),L=q[0],D=q[1],z=Co((function(){var e=P(c);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=r;if(O){var a=o,l=getComputedStyle(a);i=a.offsetWidth-parseFloat(l.borderRightWidth)-parseFloat(l.borderLeftWidth)-r-n}D((function(e){return k(k({},e),{},w({width:n},T,i))})),x(0===c?0:i)}}));t.useEffect((function(){z()}),[c]);var B=o&&(g[0]&&!m[0]||g[1]&&!m[1]),F=S&&!m[0],H=S&&!F&&!m[1];return t.createElement(ku,{onResize:z},t.createElement("div",ut({},R,{className:to()(_,"".concat(_,"-range"),w(w(w(w({},"".concat(_,"-focused"),s),"".concat(_,"-disabled"),m.every((function(e){return e}))),"".concat(_,"-invalid"),b.some((function(e){return e}))),"".concat(_,"-rtl"),O),d),style:f,ref:j,onClick:p,onMouseDown:function(e){var t=e.target;t!==N.current.inputElement&&t!==I.current.inputElement&&e.preventDefault(),null==C||C(e)}}),t.createElement(aO,ut({ref:N},A(0),{autoFocus:F,"date-range":"start"})),t.createElement("div",{className:"".concat(_,"-range-separator")},l),t.createElement(aO,ut({ref:I},A(1),{autoFocus:H,"date-range":"end"})),t.createElement("div",{className:"".concat(_,"-active-bar"),style:L}),t.createElement(eO,{type:"suffix",icon:i}),B&&t.createElement(tO,{icon:o,onClear:h})))}var uO=t.forwardRef(sO);function dO(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function fO(e){return 1===e?"end":"start"}function pO(e,n){var r=lE(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:dO(t,!1),allowEmpty:dO(n,!1)}})),o=V(r,6),i=o[0],a=o[1],l=o[2],c=o[3],s=o[4],u=o[5],d=i.prefixCls,f=i.styles,p=i.classNames,h=i.defaultValue,v=i.value,g=i.needConfirm,m=i.onKeyDown,b=i.disabled,y=i.allowEmpty,w=i.disabledDate,x=i.minDate,C=i.maxDate,S=i.defaultOpen,E=i.open,O=i.onOpenChange,_=i.locale,$=i.generateConfig,j=i.picker,N=i.showNow,I=i.showToday,P=i.showTime,R=i.mode,M=i.onPanelChange,A=i.onCalendarChange,T=i.onOk,q=i.defaultPickerValue,L=i.pickerValue,D=i.onPickerValueChange,z=i.inputReadOnly,B=i.suffixIcon,F=i.onFocus,H=i.onBlur,W=i.presets,U=i.ranges,K=i.components,G=i.cellRender,X=i.dateRender,Q=i.monthCellRender,Z=i.onClick,J=sE(n),ee=V(cE(E,S,b,O),2),te=ee[0],ne=ee[1],re=function(e,t){!b.some((function(e){return!e}))&&e||ne(e,t)},oe=V(wE($,_,c,!0,!1,h,v,A,T),5),ie=oe[0],ae=oe[1],le=oe[2],ce=oe[3],se=oe[4],ue=le(),de=V(fE(b,y),7),fe=de[0],pe=de[1],he=de[2],ve=de[3],ge=de[4],me=de[5],be=de[6],ye=function(e,t){pe(!0),null==F||F(e,{range:fO(null!=t?t:ve)})},we=function(e,t){pe(!1),null==H||H(e,{range:fO(null!=t?t:ve)})},xe=t.useMemo((function(){if(!P)return null;var e=P.disabledTime,t=e?function(t){var n=fO(ve),r=IS(ue,be,ve);return e(t,n,{from:r})}:void 0;return k(k({},P),{},{disabledTime:t})}),[P,ve,ue,be]),ke=V(Oo([j,j],{value:R}),2),Ce=ke[0],Se=ke[1],Ee=Ce[ve]||j,Oe="date"===Ee&&xe?"datetime":Ee,_e=Oe===j&&"time"!==Oe,$e=kE(j,Ee,N,I,!0),je=V(xE(i,ie,ae,le,ce,b,c,fe,te,u),2),Ne=je[0],Ie=je[1],Pe=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=V(e,2),u=s[0],d=s[1],f=k(k({},c),{},{from:IS(e,n)});return!(1!==a||!t[0]||!u||tE(r,o,u,l,f.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||tE(r,o,d,l,f.type)||!r.isAfter(l,d))||(null==i?void 0:i(l,f))}}(ue,b,be,$,_,w),Re=V(MS(ue,u,y),2),Me=Re[0],Ae=Re[1],Te=V(vE($,_,ue,Ce,te,ve,a,_e,q,L,null==xe?void 0:xe.defaultOpenValue,D,x,C),2),qe=Te[0],Le=Te[1],De=Co((function(e,t,n){var r=$S(Ce,ve,t);if(r[0]===Ce[0]&&r[1]===Ce[1]||Se(r),M&&!1!==n){var o=Y(ue);e&&(o[ve]=e),M(o,r)}})),ze=function(e,t){return $S(ue,t,e)},Be=function(e,t){var n=ue;e&&(n=ze(e,ve));var r=me(n);ce(n),Ne(ve,null===r),null===r?re(!1,{force:!0}):t||J.current.focus({index:r})},Fe=V(t.useState(null),2),He=Fe[0],We=Fe[1],Ve=V(t.useState(null),2),Ue=Ve[0],Ye=Ve[1],Ke=t.useMemo((function(){return Ue||ue}),[ue,Ue]);t.useEffect((function(){te||Ye(null)}),[te]);var Ge=V(t.useState(0),2),Qe=Ge[0],Ze=Ge[1],Je=uE(W,U),et=RS(G,X,Q,fO(ve)),tt=ue[ve]||null,nt=Co((function(e){return u(e,{activeIndex:ve})})),rt=t.useMemo((function(){var e=Da(i,!1);return ac(i,[].concat(Y(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),ot=t.createElement(KE,ut({},rt,{showNow:$e,showTime:xe,range:!0,multiplePanel:_e,activeOffset:Qe,disabledDate:Pe,onFocus:function(e){re(!0),ye(e)},onBlur:we,picker:j,mode:Ee,internalMode:Oe,onPanelChange:De,format:s,value:tt,isInvalid:nt,onChange:null,onSelect:function(e){he("panel");var t=$S(ue,ve,e);ce(t),g||l||a!==Oe||Be(e)},pickerValue:qe,defaultOpenValue:_S(null==P?void 0:P.defaultOpenValue)[ve],onPickerValueChange:Le,hoverValue:Ke,onHover:function(e){Ye(e?ze(e,ve):null),We("cell")},needConfirm:g,onSubmit:Be,onOk:se,presets:Je,onPresetHover:function(e){Ye(e),We("preset")},onPresetSubmit:function(e){Ie(e)&&re(!1,{force:!0})},onNow:function(e){Be(e)},cellRender:et})),it=t.useMemo((function(){return{prefixCls:d,locale:_,generateConfig:$,button:K.button,input:K.input}}),[d,_,$,K.button,K.input]);return Xe((function(){te&&void 0!==ve&&De(null,j,!1)}),[te,ve,j]),Xe((function(){var e=he();te||"input"!==e||(re(!1),Be(null,!0)),te||!l||g||"panel"!==e||(re(!0),Be())}),[te]),t.createElement(CS.Provider,{value:it},t.createElement(ES,ut({},PS(i),{popupElement:ot,popupStyle:f.popup,popupClassName:p.popup,visible:te,onClose:function(){re(!1)},range:!0}),t.createElement(uO,ut({},i,{ref:J,suffixIcon:B,activeIndex:fe||te?ve:null,activeHelp:!!Ue,allHelp:!!Ue&&"preset"===He,focused:fe,onFocus:function(e,t){he("input"),re(!0,{inherit:!0}),ge(t),ye(e,t)},onBlur:function(e,t){re(!1),we(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Be(null,!0),null==m||m(e,t)},onSubmit:Be,value:Ke,maskFormat:s,onChange:function(e,t){var n=ze(e,t);ce(n)},onInputChange:function(){he("input")},format:c,inputReadOnly:z,disabled:b,open:te,onOpenChange:re,onClick:function(e){if(!J.current.nativeElement.contains(document.activeElement)){var t=b.findIndex((function(e){return!e}));t>=0&&J.current.focus({index:t})}re(!0),null==Z||Z(e)},onClear:function(){Ie(null),re(!1,{force:!0})},invalid:Me,onInvalid:Ae,onActiveOffset:Ze}))))}var hO=t.forwardRef(pO);function vO(e){var n=e.prefixCls,r=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"×":i,l=e.formatDate,c=e.disabled,s=e.maxTagCount,u=e.placeholder,d="".concat(n,"-selector"),f="".concat(n,"-selection"),p="".concat(f,"-overflow");function h(e,n){return t.createElement("span",{className:to()("".concat(f,"-item")),title:"string"==typeof e?e:null},t.createElement("span",{className:"".concat(f,"-item-content")},e),!c&&n&&t.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:n,className:"".concat(f,"-item-remove")},a))}return t.createElement("div",{className:d},t.createElement(lm,{prefixCls:p,data:r,renderItem:function(e){return h(l(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:s}),!r.length&&t.createElement("span",{className:"".concat(n,"-selection-placeholder")},u))}var gO=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function mO(e,n){e.id;var r=e.open,o=e.clearIcon,i=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),c=e.generateConfig,s=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,h=e.internalPicker,v=e.value,g=e.onChange,m=e.onSubmit,b=(e.onInputChange,e.multiple),y=e.maxTagCount,x=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),C=e.invalid,S=(e.inputReadOnly,e.direction),E=(e.onOpenChange,e.onMouseDown),O=(e.required,e["aria-required"],e.autoFocus),_=e.removeIcon,$=so(e,gO),j="rtl"===S,N=t.useContext(CS).prefixCls,I=t.useRef(),P=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:I.current,focus:function(e){var t;null===(t=P.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()}}}));var R=QE($),M=GE(k(k({},e),{},{onChange:function(e){g([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:a}})),A=V(M,2),T=A[0],q=A[1],L=!(!o||!v.length||x),D=b?t.createElement(t.Fragment,null,t.createElement(vO,{prefixCls:N,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!tE(c,l,t,e,h)}));g(t),r||m()},formatDate:q,maxTagCount:y,disabled:x,removeIcon:_,placeholder:s}),t.createElement("input",{className:"".concat(N,"-multiple-input"),value:v.map(q).join(","),ref:P,readOnly:!0,autoFocus:O}),t.createElement(eO,{type:"suffix",icon:i}),L&&t.createElement(tO,{icon:o,onClear:p})):t.createElement(aO,ut({ref:P},T(),{autoFocus:O,suffixIcon:i,clearIcon:L&&t.createElement(tO,{icon:o,onClear:p}),showActiveCls:!1}));return t.createElement("div",ut({},R,{className:to()(N,w(w(w(w(w({},"".concat(N,"-multiple"),b),"".concat(N,"-focused"),a),"".concat(N,"-disabled"),x),"".concat(N,"-invalid"),C),"".concat(N,"-rtl"),j),u),style:d,ref:I,onClick:f,onMouseDown:function(e){var t;e.target!==(null===(t=P.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==E||E(e)}}),D)}var bO=t.forwardRef(mO);function yO(e,n){var r=V(lE(e),6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=o,d=u.prefixCls,f=u.styles,p=u.classNames,h=u.order,v=u.defaultValue,g=u.value,m=u.needConfirm,b=u.onChange,y=u.onKeyDown,w=u.disabled,x=u.disabledDate,C=u.minDate,S=u.maxDate,E=u.defaultOpen,O=u.open,_=u.onOpenChange,$=u.locale,j=u.generateConfig,N=u.picker,I=u.showNow,P=u.showToday,R=u.showTime,M=u.mode,A=u.onPanelChange,T=u.onCalendarChange,q=u.onOk,L=u.multiple,D=u.defaultPickerValue,z=u.pickerValue,B=u.onPickerValueChange,F=u.inputReadOnly,H=u.suffixIcon,W=u.removeIcon,U=u.onFocus,K=u.onBlur,G=u.presets,X=u.components,Q=u.cellRender,Z=u.dateRender,J=u.monthCellRender,ee=u.onClick,te=sE(n);function ne(e){return null===e?null:L?e:e[0]}var re=_E(j,$,i),oe=V(cE(O,E,[w],_),2),ie=oe[0],ae=oe[1],le=V(wE(j,$,l,!1,h,v,g,(function(e,t,n){if(T){var r=k({},n);delete r.range,T(ne(e),ne(t),r)}}),(function(e){null==q||q(ne(e))})),5),ce=le[0],se=le[1],ue=le[2],de=le[3],fe=le[4],pe=ue(),he=V(fE([w]),4),ve=he[0],ge=he[1],me=he[2],be=he[3],ye=function(e){ge(!0),null==U||U(e,{})},we=function(e){ge(!1),null==K||K(e,{})},xe=V(Oo(N,{value:M}),2),ke=xe[0],Ce=xe[1],Se="date"===ke&&R?"datetime":ke,Ee=kE(N,ke,I,P),Oe=b&&function(e,t){b(ne(e),ne(t))},_e=V(xE(k(k({},o),{},{onChange:Oe}),ce,se,ue,de,[],l,ve,ie,s),2)[1],$e=V(MS(pe,s),2),je=$e[0],Ne=$e[1],Ie=t.useMemo((function(){return je.some((function(e){return e}))}),[je]),Pe=V(vE(j,$,pe,[ke],ie,be,i,!1,D,z,_S(null==R?void 0:R.defaultOpenValue),(function(e,t){if(B){var n=k(k({},t),{},{mode:t.mode[0]});delete n.range,B(e[0],n)}}),C,S),2),Re=Pe[0],Me=Pe[1],Ae=Co((function(e,t,n){if(Ce(t),A&&!1!==n){var r=e||pe[pe.length-1];A(r,t)}})),Te=function(){_e(ue()),ae(!1,{force:!0})},qe=V(t.useState(null),2),Le=qe[0],De=qe[1],ze=V(t.useState(null),2),Be=ze[0],Fe=ze[1],He=t.useMemo((function(){var e=[Be].concat(Y(pe)).filter((function(e){return e}));return L?e:e.slice(0,1)}),[pe,Be,L]),We=t.useMemo((function(){return!L&&Be?[Be]:pe.filter((function(e){return e}))}),[pe,Be,L]);t.useEffect((function(){ie||Fe(null)}),[ie]);var Ve=uE(G),Ue=function(e){var t=L?re(ue(),e):[e];_e(t)&&!L&&ae(!1,{force:!0})},Ye=RS(Q,Z,J),Ke=t.useMemo((function(){var e=Da(o,!1);return k(k({},ac(o,[].concat(Y(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Ge=t.createElement(KE,ut({},Ke,{showNow:Ee,showTime:R,disabledDate:x,onFocus:function(e){ae(!0),ye(e)},onBlur:we,picker:N,mode:ke,internalMode:Se,onPanelChange:Ae,format:c,value:pe,isInvalid:s,onChange:null,onSelect:function(e){me("panel");var t=L?re(ue(),e):[e];de(t),m||a||i!==Se||Te()},pickerValue:Re,defaultOpenValue:null==R?void 0:R.defaultOpenValue,onPickerValueChange:Me,hoverValue:He,onHover:function(e){Fe(e),De("cell")},needConfirm:m,onSubmit:Te,onOk:fe,presets:Ve,onPresetHover:function(e){Fe(e),De("preset")},onPresetSubmit:Ue,onNow:function(e){Ue(e)},cellRender:Ye})),Qe=t.useMemo((function(){return{prefixCls:d,locale:$,generateConfig:j,button:X.button,input:X.input}}),[d,$,j,X.button,X.input]);return Xe((function(){ie&&void 0!==be&&Ae(null,N,!1)}),[ie,be,N]),Xe((function(){var e=me();ie||"input"!==e||(ae(!1),Te()),ie||!a||m||"panel"!==e||(ae(!0),Te())}),[ie]),t.createElement(CS.Provider,{value:Qe},t.createElement(ES,ut({},PS(o),{popupElement:Ge,popupStyle:f.popup,popupClassName:p.popup,visible:ie,onClose:function(){ae(!1)}}),t.createElement(bO,ut({},o,{ref:te,suffixIcon:H,removeIcon:W,activeHelp:!!Be,allHelp:!!Be&&"preset"===Le,focused:ve,onFocus:function(e){me("input"),ae(!0,{inherit:!0}),ye(e)},onBlur:function(e){ae(!1),we(e)},onKeyDown:function(e,t){"Tab"===e.key&&Te(),null==y||y(e,t)},onSubmit:Te,value:We,maskFormat:c,onChange:function(e){de(e)},onInputChange:function(){me("input")},internalPicker:i,format:l,inputReadOnly:F,disabled:w,open:ie,onOpenChange:ae,onClick:function(e){w||te.current.nativeElement.contains(document.activeElement)||te.current.focus(),ae(!0),null==ee||ee(e)},onClear:function(){_e(null),ae(!1,{force:!0})},invalid:Ie,onInvalid:function(e){Ne(e,0)}}))))}var wO=t.forwardRef(yO);const xO=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=ty(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:Fe(i.itemLineHeight)}}}]};var kO=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=cl(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=cl(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[xO(o,"small"),xO(e),xO(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},ny(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const CO=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Fe(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Fe(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},SO=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:v,colorSplit:g,pickerControlIconBorderWidth:m,colorIcon:b,textHeight:y,motionDurationMid:w,colorIconHover:x,fontWeightStrong:k,cellHeight:C,pickerCellPaddingVertical:S,colorTextDisabled:E,colorText:O,fontSize:_,motionDurationSlow:$,withoutTimeCellHeight:j,pickerQuarterPanelContentHeight:N,borderRadiusSM:I,colorTextLightSolid:P,cellHoverBg:R,timeColumnHeight:M,timeColumnWidth:A,timeCellHeight:T,controlItemBgActive:q,marginXXS:L,pickerDatePanelPaddingHorizontal:D,pickerControlIconMargin:z}=e,B=e.calc(a).mul(7).add(e.calc(D).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${Fe(c)}`,color:v,borderBottom:`${Fe(d)} ${f} ${g}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Fe(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:k,lineHeight:Fe(y),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Fe(m)} 0`,borderInlineWidth:`${Fe(m)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:z,insetInlineStart:z,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Fe(m)} 0`,borderInlineWidth:`${Fe(m)} 0`,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(S).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Fe(S)} 0`,color:E,cursor:"pointer","&-in-view":{color:O}},CO(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(j).mul(4).equal()},[r]:{padding:`0 ${Fe(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${Fe(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Fe(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${Fe(c)} ${Fe(D)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td":{"&:before":{background:R}},"&-range-start td,\n &-range-end td,\n &-selected td,\n &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Nr(P).setAlpha(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:q}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Fe(c)} ${Fe(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Fe(d)} ${f} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${$}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:M},"&-column":{flex:"1 0 auto",width:A,margin:`${Fe(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(T).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${Fe(d)} ${f} ${g}`},"&-active":{background:new Nr(q).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(L).mul(2)).equal(),height:T,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(T).div(2).equal(),color:O,lineHeight:Fe(T),borderRadius:I,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:R}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:q}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}};var EO=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Fe(r)} ${s} ${u}`,"&-extra":{padding:`0 ${Fe(o)}`,lineHeight:Fe(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Fe(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Fe(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Fe(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var OO=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},rv(e)),sv(e)),av(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const _O=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${Fe(i)} ${Fe(r)} ${Fe(a)}`}},$O=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},jO=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:v,paddingXS:g,marginXS:m,colorTextDescription:b,lineWidthBold:y,colorPrimary:w,motionDurationSlow:x,zIndexPopup:k,paddingXXS:C,sizePopupArrow:S,colorBgElevated:E,borderRadiusLG:O,boxShadowSecondary:_,borderRadiusSM:$,colorSplit:j,cellHoverBg:N,presetsWidth:I,presetsMaxWidth:P,boxShadowPopoverArrow:R,fontHeight:M,fontHeightLG:A,lineHeightLG:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Ti(e)),_O(e,r,M,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},fv(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},_O(e,f,A,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:T}}),"&-small":Object.assign({},_O(e,h,M,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:m}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:w,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Fe(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ti(e)),SO(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:qb},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ab},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Lb},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Tb},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${x} ease-out`},dd(e,E,R)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:O,boxShadow:_,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:P,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${Fe(i)} ${a} ${j}`,li:Object.assign(Object.assign({},Ai),{borderRadius:$,paddingInline:g,paddingBlock:e.calc(h).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:m},"&:hover":{background:N}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Fe(e.calc(S).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Wb(e,"slide-up"),Wb(e,"slide-down"),Zb(e,"move-up"),Zb(e,"move-down")]};var NO=Sl("DatePicker",(e=>{const t=cl(Qh(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[EO(t),jO(t),OO(t),$O(t),kO(t),ps(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zh(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Nr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Nr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),ud(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function IO(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function PO(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function RO(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function MO(e,n){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:i}=_y(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[t.useMemo((()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)}),[r,o]),i]}function AO(e){return t.createElement(xs,Object.assign({size:"small",type:"primary"},e))}function TO(e){return(0,t.useMemo)((()=>Object.assign({button:AO},e)),[e])}var qO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var LO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var DO=function(e){const{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:a,QuarterPicker:l}=function(e){function n(n,r){const o="TimePicker"===r?"timePicker":"datePicker",i=(0,t.forwardRef)(((r,i)=>{var a;const{prefixCls:l,getPopupContainer:c,components:s,style:u,className:d,rootClassName:f,size:p,bordered:h,placement:v,placeholder:g,popupClassName:m,dropdownClassName:b,disabled:y,status:w,variant:x,onCalendarChange:k}=r,C=LO(r,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:S,direction:E,getPopupContainer:O,[o]:_}=(0,t.useContext)(D),$=S("picker",l),{compactSize:j,compactItemClassnames:N}=Cc($,E),I=t.useRef(null),[P,R]=zv(x,h),M=Ja($),[A,T,q]=NO($,M);(0,t.useImperativeHandle)(i,(()=>I.current));const L=n||r.picker,z=S(),{onSelect:B,multiple:F}=C,H=B&&"time"===n&&!F,[W,V]=MO(r,$),U=TO(s),Y=wc((e=>{var t;return null!==(t=null!=p?p:j)&&void 0!==t?t:e})),K=t.useContext(Ur),G=null!=y?y:K,X=(0,t.useContext)(Up),{hasFeedback:Q,status:Z,feedbackIcon:J}=X,ee=t.createElement(t.Fragment,null,"time"===L?t.createElement(yS,null):t.createElement(gS,null),Q&&J),[te]=Hd("DatePicker",An),ne=Object.assign(Object.assign({},te),r.locale),[re]=il("DatePicker",null===(a=r.popupStyle)||void 0===a?void 0:a.zIndex);return A(t.createElement(Sc,null,t.createElement(wO,Object.assign({ref:I,placeholder:IO(ne,L,g),suffixIcon:ee,dropdownAlign:RO(E,v),prevIcon:t.createElement("span",{className:`${$}-prev-icon`}),nextIcon:t.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:n,onCalendarChange:(e,t,n)=>{null==k||k(e,t,n),H&&B(e)}},{showToday:!0},C,{locale:ne.lang,className:to()({[`${$}-${Y}`]:Y,[`${$}-${P}`]:R},qv($,Lv(Z,w),Q),T,N,null==_?void 0:_.className,d,q,M,f),style:Object.assign(Object.assign({},null==_?void 0:_.style),u),prefixCls:$,getPopupContainer:c||O,generateConfig:e,components:U,direction:E,disabled:G,classNames:{popup:to()(T,q,M,f,m||b)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:re})},allowClear:W,removeIcon:V}))))}));return i}const r=n(),o=n("week","WeekPicker"),i=n("month","MonthPicker"),a=n("year","YearPicker"),l=n("quarter","QuarterPicker");return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:n("time","TimePicker"),QuarterPicker:l}}(e),c=function(e){const n=(0,t.forwardRef)(((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:l,className:c,style:s,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:h,popupClassName:v,dropdownClassName:g,status:m,rootClassName:b,variant:y}=n,w=qO(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),x=t.useRef(null),{getPrefixCls:k,direction:C,getPopupContainer:S,rangePicker:E}=(0,t.useContext)(D),O=k("picker",i),{compactSize:_,compactItemClassnames:$}=Cc(O,C),{picker:j}=n,N=k(),[I,P]=zv(y,p),R=Ja(O),[M,A,T]=NO(O,R),[q]=MO(n,O),L=TO(l),z=wc((e=>{var t;return null!==(t=null!=d?d:_)&&void 0!==t?t:e})),B=t.useContext(Ur),F=null!=f?f:B,H=(0,t.useContext)(Up),{hasFeedback:W,status:V,feedbackIcon:U}=H,Y=t.createElement(t.Fragment,null,"time"===j?t.createElement(yS,null):t.createElement(gS,null),W&&U);(0,t.useImperativeHandle)(r,(()=>x.current));const[K]=Hd("Calendar",An),G=Object.assign(Object.assign({},K),n.locale),[X]=il("DatePicker",null===(o=n.popupStyle)||void 0===o?void 0:o.zIndex);return M(t.createElement(Sc,null,t.createElement(hO,Object.assign({separator:t.createElement("span",{"aria-label":"to",className:`${O}-separator`},t.createElement(kS,null)),disabled:F,ref:x,popupAlign:RO(C,u),placeholder:PO(G,j,h),suffixIcon:Y,prevIcon:t.createElement("span",{className:`${O}-prev-icon`}),nextIcon:t.createElement("span",{className:`${O}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${O}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${O}-super-next-icon`}),transitionName:`${N}-slide-up`},w,{className:to()({[`${O}-${z}`]:z,[`${O}-${I}`]:P},qv(O,Lv(V,m),W),A,$,c,null==E?void 0:E.className,T,R,b),style:Object.assign(Object.assign({},null==E?void 0:E.style),s),locale:G.lang,prefixCls:O,getPopupContainer:a||S,generateConfig:e,components:L,direction:C,classNames:{popup:to()(A,v||g,T,R,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:X})},allowClear:q}))))}));return n}(e),s=n;return s.WeekPicker=r,s.MonthPicker=o,s.YearPicker=i,s.RangePicker=c,s.TimePicker=a,s.QuarterPicker=l,s};const zO=DO(pS);function BO(e){const t=RO(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const FO=Ph(zO,"picker",null,BO);zO._InternalPanelDoNotUseOrYouWillBeFired=FO;const HO=Ph(zO.RangePicker,"picker",null,BO);zO._InternalRangePanelDoNotUseOrYouWillBeFired=HO,zO.generatePicker=DO;var WO=zO;function VO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}(e,t)||function(){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 UO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var YO=function(e){var t,n,o,i,a,c,s,u=e.field,f=u.help,p=u.value,h=u.placeholder,v=e.id,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,m=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=null===(a=e.field)||void 0===a?void 0:a.format,x=!(null===(c=e.field)||void 0===c||!c.showtime),k=!(null===(s=e.field)||void 0===s||!s.disableDates),C=VO(l(),2),S=(C[0],C[1]);return(0,r.jsxs)("div",{className:"rtsb-field datetime",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(WO,{className:"rtsb-form-field",value:""!==p?XC()(p):XC()(),placeholder:h,disabledDate:!!k&&function(e){return e&&e<XC()().startOf("day")},onChange:function(e,t){S({type:d,value:t,id:v,fieldType:g,parentId:m,repeaterData:y,index:b})},format:w,allowClear:!1,showTime:x})}),f&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};function KO(e){return KO="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},KO(e)}const GO=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:v,contentPadding:g,contentBg:m}=e,b=`${t}-notice`,y=new bn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new bn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:g,background:m,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Ti(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]};var XO=Sl("Message",(e=>{const t=cl(e,{height:150});return[GO(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+nl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),QO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZO={info:t.createElement(ja,null),success:t.createElement(ma,null),error:t.createElement(wa,null),warning:t.createElement(Oa,null),loading:t.createElement(Pa,null)},JO=e=>{let{prefixCls:n,type:r,icon:o,children:i}=e;return t.createElement("div",{className:to()(`${n}-custom-content`,`${n}-${r}`)},o||ZO[r],t.createElement("span",null,i))};var e_=e=>{const{prefixCls:n,className:r,type:o,icon:i,content:a}=e,l=QO(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=t.useContext(D),s=n||c("message"),u=Ja(s),[d,f,p]=XO(s,u);return d(t.createElement(Ba,Object.assign({},l,{prefixCls:s,className:to()(r,f,`${s}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:t.createElement(JO,{prefixCls:s,type:o,icon:i},a)})))};function t_(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var n_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const r_=3,o_=e=>{let{children:n,prefixCls:r}=e;const o=Ja(r),[i,a,l]=XO(r,o);return i(t.createElement(Ha,{classNames:{list:to()(a,l,o)}},n))},i_=(e,n)=>{let{prefixCls:r,key:o}=n;return t.createElement(o_,{prefixCls:r,key:o},e)},a_=t.forwardRef(((e,n)=>{const{top:r,prefixCls:o,getContainer:i,maxCount:a,duration:l=r_,rtl:c,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:h}=t.useContext(D),v=o||d("message"),g=t.createElement("span",{className:`${v}-close-x`},t.createElement(Ca,{className:`${v}-close-icon`})),[m,b]=Za({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>to()({[`${v}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(v,s),closable:!1,closeIcon:g,duration:l,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:i_});return t.useImperativeHandle(n,(()=>Object.assign(Object.assign({},m),{prefixCls:v,message:p}))),b}));let l_=0;function c_(e){const n=t.useRef(null),r=(Nn("Message"),t.useMemo((()=>{const e=e=>{var t;null===(t=n.current)||void 0===t||t.close(e)},r=r=>{if(!n.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=n.current,l=`${i}-notice`,{content:c,icon:s,type:u,key:d,className:f,style:p,onClose:h}=r,v=n_(r,["content","icon","type","key","className","style","onClose"]);let g=d;return null==g&&(l_+=1,g=`antd-message-${l_}`),t_((n=>(o(Object.assign(Object.assign({},v),{key:g,content:t.createElement(JO,{prefixCls:i,type:u,icon:s},c),placement:"top",className:to()(u&&`${l}-${u}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==h||h(),n()}})),()=>{e(g)})))},o={open:r,destroy:t=>{var r;void 0!==t?e(t):null===(r=n.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(c)}})),o}),[]));return[r,t.createElement(a_,Object.assign({key:"message-holder"},e,{ref:n}))]}let s_=null,u_=e=>e(),d_=[],f_={};function p_(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=f_,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const h_=t.forwardRef(((e,n)=>{const{messageConfig:r,sync:o}=e,{getPrefixCls:i}=(0,t.useContext)(D),a=f_.prefixCls||i("message"),l=(0,t.useContext)(q),[c,s]=c_(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),v_=t.forwardRef(((e,n)=>{const[r,o]=t.useState(p_),i=()=>{o(p_)};t.useEffect(i,[]);const a=Xi(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement(h_,{ref:n,sync:i,messageConfig:r});return t.createElement(Ji,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function g_(){if(!s_){const e=document.createDocumentFragment(),n={fragment:e};return s_=n,void u_((()=>{I(t.createElement(v_,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,g_())}))}}),e)}))}s_.instance&&(d_.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":u_((()=>{const t=s_.instance.open(Object.assign(Object.assign({},f_),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":u_((()=>{null==s_||s_.instance.destroy(e.key)}));break;default:u_((()=>{var n;const r=(n=s_.instance)[t].apply(n,Y(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),d_=[])}const m_={open:function(e){const t=t_((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return d_.push(r),()=>{n?u_((()=>{n()})):r.skipped=!0}}));return g_(),t},destroy:e=>{d_.push({type:"destroy",key:e}),g_()},config:function(e){f_=Object.assign(Object.assign({},f_),e),u_((()=>{var e;null===(e=null==s_?void 0:s_.sync)||void 0===e||e.call(s_)}))},useMessage:function(e){return c_(e)},_InternalPanelDoNotUseOrYouWillBeFired:e_},b_=m_;["success","info","warning","error","loading"].forEach((e=>{b_[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){Xi();const n=t_((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return d_.push(o),()=>{r?u_((()=>{r()})):o.skipped=!0}}));return g_(),n}(e,n)}}));var y_=b_,w_=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(ge(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function x_(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function k_(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),x_(t)):e.onSuccess(x_(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var C_=function(e,t,n){var r=function e(r,o){r&&(r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),o.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))})))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},S_=+new Date,E_=0;function O_(){return"rc-upload-".concat(S_,"-").concat(++E_)}var __=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],$_=function(e){vo(r,e);var n=wo(r);function r(){var e;be(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return w(bo(e=n.call.apply(n,[this].concat(o))),"state",{uid:O_()}),w(bo(e),"reqs",{}),w(bo(e),"fileInput",void 0),w(bo(e),"_isMounted",void 0),w(bo(e),"onChange",(function(t){var n=e.props,r=n.accept,o=n.directory,i=Y(t.target.files).filter((function(e){return!o||w_(e,r)}));e.uploadFiles(i),e.reset()})),w(bo(e),"onClick",(function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),o&&o(t)}})),w(bo(e),"onKeyDown",(function(t){"Enter"===t.key&&e.onClick(t)})),w(bo(e),"onFileDrop",(function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)C_(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return w_(t,e.props.accept)}));else{var r=Y(t.dataTransfer.files).filter((function(t){return w_(t,e.props.accept)}));!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}})),w(bo(e),"uploadFiles",(function(t){var n=Y(t),r=n.map((function(t){return t.uid=O_(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))})),w(bo(e),"processFile",function(){var t=b(g().mark((function t(n,r){var o,i,a,l,c,s,u,d,f;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!=typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==v(i)&&"string"!=typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(f=d).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:f,action:l});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}()),w(bo(e),"saveFileInput",(function(t){e.fileInput=t})),e}return we(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,d=a.withCredentials,f=a.method,p=r.uid,h=c||k_,v={action:o,filename:s,data:n,file:i,headers:u,withCredentials:d,method:f||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[p]}};l(r),this.reqs[p]=h(v)}}},{key:"reset",value:function(){this.setState({uid:O_()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,n=this.props,r=n.component,o=n.prefixCls,i=n.className,a=n.classNames,l=void 0===a?{}:a,c=n.disabled,s=n.id,u=n.style,d=n.styles,f=void 0===d?{}:d,p=n.multiple,h=n.accept,v=n.capture,g=n.children,m=n.directory,b=n.openFileDialogOnClick,y=n.onMouseEnter,x=n.onMouseLeave,C=n.hasControlInside,S=so(n,__),E=to()((w(e={},o,!0),w(e,"".concat(o,"-disabled"),c),w(e,i,i),e)),O=m?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_=c?{}:{onClick:b?this.onClick:function(){},onKeyDown:b?this.onKeyDown:function(){},onMouseEnter:y,onMouseLeave:x,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:C?void 0:"0"};return t.createElement(r,ut({},_,{className:E,role:C?void 0:"button",style:u}),t.createElement("input",ut({},Da(S,{aria:!0,data:!0}),{id:s,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:k({display:"none"},f.input),className:l.input,accept:h},O,{multiple:p,onChange:this.onChange},null!=v?{capture:v}:{})),g)}}]),r}(t.Component),j_=$_;function N_(){}var I_=function(e){vo(r,e);var n=wo(r);function r(){var e;be(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return w(bo(e=n.call.apply(n,[this].concat(o))),"uploader",void 0),w(bo(e),"saveUploader",(function(t){e.uploader=t})),e}return we(r,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return t.createElement(j_,ut({},this.props,{ref:this.saveUploader}))}}]),r}(t.Component);w(I_,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:N_,onError:N_,onSuccess:N_,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var P_=I_;var R_=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Fe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var M_=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},Ai),{padding:`0 ${Fe(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[s]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var A_=e=>{const{componentCls:t}=e,n=new bn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new bn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:rh(e)},n,r]};const T_=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Ai),{width:r,height:r,lineHeight:Fe(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${Fe(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${_r[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${_r.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},q_=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Fe(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Fe(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${Fe(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Fe(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Fe(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var L_=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const D_=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ti(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var z_=Sl("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=cl(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[D_(a),R_(a),T_(a),q_(a),M_(a),A_(a),L_(a),Wx(a)]}),(e=>({actionsColor:e.colorTextDescription}))),B_={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},F_=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:B_}))};var H_=t.forwardRef(F_),W_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},V_=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:W_}))};var U_=t.forwardRef(V_),Y_={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},K_=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:Y_}))};var G_=t.forwardRef(K_);function X_(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Q_(e,t){const n=Y(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function Z_(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const J_=e=>0===e.indexOf("image/"),e$=e=>{if(e.type&&!e.thumbUrl)return J_(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},t$=200;function n$(e){return new Promise((t=>{if(!e.type||!J_(e.type))return void t("");const n=document.createElement("canvas");n.width=t$,n.height=t$,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=t$,l=t$,c=0,s=0;e>i?(l=i*(t$/e),s=-(l-a)/2):(a=e*(t$/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}var r$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},o$=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:r$}))};var i$=t.forwardRef(o$),a$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},l$=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:a$}))};var c$=t.forwardRef(l$),s$={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},u$=function(){var e=(0,t.useRef)([]),n=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&t-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),e.current};var d$=0,f$=G();var p$=function(e){var n=V(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_progress_".concat((f$?(e=d$,d$+=1):e="TEST_OR_SSR",e)))}),[]),e||r},h$=function(e){var n=e.bg,r=e.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function v$(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var g$=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=o&&"object"===v(o),h=p?"#FFF":void 0,g=d/2,m=t.createElement("circle",{className:"".concat(r,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:l,ref:n});if(!p)return m;var b="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",w=v$(o,(360-f)/360),x=v$(o,1),k="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),C="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:b},m),t.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},t.createElement(h$,{bg:C},t.createElement(h$,{bg:k}))))})),m$=100,b$=function(e,t,n,r,o,i,a,l,c,s){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-r)/100*t;"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+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}},y$=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function w$(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var x$=function(e){var n,r,o,i=k(k({},s$),e),a=i.id,l=i.prefixCls,c=i.steps,s=i.strokeWidth,u=i.trailWidth,d=i.gapDegree,f=void 0===d?0:d,p=i.gapPosition,h=i.trailColor,g=i.strokeLinecap,m=i.style,b=i.className,y=i.strokeColor,w=i.percent,x=so(i,y$),C=p$(a),S="".concat(C,"-gradient"),E=50-s/2,O=2*Math.PI*E,_=f>0?90+f/2:-90,$=O*((360-f)/360),j="object"===v(c)?c:{count:c,gap:2},N=j.count,I=j.gap,P=w$(w),R=w$(y),M=R.find((function(e){return e&&"object"===v(e)})),A=M&&"object"===v(M)?"butt":g,T=b$(O,$,0,100,_,f,p,h,A,s),q=u$();return t.createElement("svg",ut({className:to()("".concat(l,"-circle"),b),viewBox:"0 0 ".concat(m$," ").concat(m$),style:m,id:a,role:"presentation"},x),!N&&t.createElement("circle",{className:"".concat(l,"-circle-trail"),r:E,cx:50,cy:50,stroke:h,strokeLinecap:A,strokeWidth:u||s,style:T}),N?(n=Math.round(N*(P[0]/100)),r=100/N,o=0,new Array(N).fill(null).map((function(e,i){var a=i<=n-1?R[0]:h,c=a&&"object"===v(a)?"url(#".concat(S,")"):void 0,u=b$(O,$,o,r,_,f,p,a,"butt",s,I);return o+=100*($-u.strokeDashoffset+I)/$,t.createElement("circle",{key:i,className:"".concat(l,"-circle-path"),r:E,cx:50,cy:50,stroke:c,strokeWidth:s,opacity:1,style:u,ref:function(e){q[i]=e}})}))):function(){var e=0;return P.map((function(n,r){var o=R[r]||R[R.length-1],i=b$(O,$,e,n,_,f,p,o,A,s);return e+=n,t.createElement(g$,{key:r,color:o,ptg:n,radius:E,prefixCls:l,gradientId:S,style:i,strokeLinecap:A,strokeWidth:s,gapDegree:f,ref:function(e){q[r]=e},size:m$})})).reverse()}())};function k$(e){return!e||e<0?0:e>100?100:e}function C$(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const S$=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]};var E$=e=>{const{prefixCls:n,trailColor:r=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:l=120,type:c,children:s,success:u,size:d=l,steps:f}=e,[p,h]=S$(d,"circle");let{strokeWidth:v}=e;void 0===v&&(v=Math.max((e=>3/e*100)(p),6));const g={width:p,height:h,fontSize:.15*p+6},m=t.useMemo((()=>a||0===a?a:"dashboard"===c?75:void 0),[a,c]),b=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=k$(C$({success:n,successPercent:r}));return[o,k$(k$(t)-o)]})(e),y=i||"dashboard"===c&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(e.strokeColor),x=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Cr.green,n||null]})({success:u,strokeColor:e.strokeColor}),k=to()(`${n}-inner`,{[`${n}-circle-gradient`]:w}),C=t.createElement(x$,{steps:f,percent:f?b[1]:b,strokeWidth:v,trailWidth:v,strokeColor:f?x[1]:x,strokeLinecap:o,trailColor:r,prefixCls:n,gapDegree:m,gapPosition:y}),S=p<=20,E=t.createElement("div",{className:k,style:g},C,!S&&s);return S?t.createElement(Fd,{title:s},E):E};const O$="--progress-line-stroke-color",_$="--progress-percent",$$=e=>{const t=e?"100%":"-100%";return new bn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},j$=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ti(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 - ${Fe(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${Fe(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(${O$})`]},height:"100%",width:`calc(1 / var(${_$}) * 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:$$(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:$$(!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}}})}},N$=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"}}}},I$=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}}}}}},P$=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var R$=Sl("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=cl(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[j$(n),N$(n),I$(n),P$(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),M$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const A$=(e,t)=>{const{from:n=Cr.blue,to:r=Cr.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=M$(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i),t=`linear-gradient(${o}, ${e})`;return{background:t,[O$]:t}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[O$]:a}};var T$=e=>{const{prefixCls:n,direction:r,percent:o,size:i,strokeWidth:a,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:u=null,success:d}=e,f=l&&"string"!=typeof l?A$(l,r):{[O$]:l,background:l},p="square"===c||"butt"===c?0:void 0,h=null!=i?i:[-1,a||("small"===i?6:8)],[v,g]=S$(h,"line",{strokeWidth:a});const m={backgroundColor:u||void 0,borderRadius:p},b=Object.assign(Object.assign({width:`${k$(o)}%`,height:g,borderRadius:p},f),{[_$]:k$(o)/100}),y=C$(e),w={width:`${k$(y)}%`,height:g,borderRadius:p,backgroundColor:null==d?void 0:d.strokeColor},x={width:v<0?"100%":v,height:g};return t.createElement(t.Fragment,null,t.createElement("div",{className:`${n}-outer`,style:x},t.createElement("div",{className:`${n}-inner`,style:m},t.createElement("div",{className:`${n}-bg`,style:b}),void 0!==y?t.createElement("div",{className:`${n}-success-bg`,style:w}):null)),s)};var q$=e=>{const{size:n,steps:r,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:c,children:s}=e,u=Math.round(r*(o/100)),d=null!=n?n:["small"===n?2:14,i],[f,p]=S$(d,"step",{steps:r,strokeWidth:i}),h=f/r,v=new Array(r);for(let e=0;e<r;e++){const n=Array.isArray(a)?a[e]:a;v[e]=t.createElement("div",{key:e,className:to()(`${c}-steps-item`,{[`${c}-steps-item-active`]:e<=u-1}),style:{backgroundColor:e<=u-1?n:l,width:h,height:p}})}return t.createElement("div",{className:`${c}-steps-outer`},v,s)},L$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const D$=["normal","exception","active","success"],z$=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,steps:a,strokeColor:l,percent:c=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:p,style:h}=e,v=L$(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),g=t.useMemo((()=>{var t,n;const r=C$(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=c?c:0)||void 0===n?void 0:n.toString(),10)}),[c,e.success,e.successPercent]),m=t.useMemo((()=>!D$.includes(f)&&g>=100?"success":f||"normal"),[f,g]),{getPrefixCls:b,direction:y,progress:w}=t.useContext(D),x=b("progress",r),[k,C,S]=R$(x),E=t.useMemo((()=>{if(!u)return null;const n=C$(e);let r;const o=p||(e=>`${e}%`),i="line"===d;return p||"exception"!==m&&"success"!==m?r=o(k$(c),k$(n)):"exception"===m?r=i?t.createElement(wa,null):t.createElement(Ca,null):"success"===m&&(r=i?t.createElement(ma,null):t.createElement(Cy,null)),t.createElement("span",{className:`${x}-text`,title:"string"==typeof r?r:void 0},r)}),[u,c,g,m,d,x,p]);const O=Array.isArray(l)?l[0]:l,_="string"==typeof l||Array.isArray(l)?l:void 0;let $;"line"===d?$=a?t.createElement(q$,Object.assign({},e,{strokeColor:_,prefixCls:x,steps:"object"==typeof a?a.count:a}),E):t.createElement(T$,Object.assign({},e,{strokeColor:O,prefixCls:x,direction:y}),E):"circle"!==d&&"dashboard"!==d||($=t.createElement(E$,Object.assign({},e,{strokeColor:O,prefixCls:x,progressStatus:m}),E));const j=to()(x,`${x}-status-${m}`,{[`${x}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${x}-inline-circle`]:"circle"===d&&S$(s,"circle")[0]<=20,[`${x}-line`]:!a&&"line"===d,[`${x}-steps`]:a,[`${x}-show-info`]:u,[`${x}-${s}`]:"string"==typeof s,[`${x}-rtl`]:"rtl"===y},null==w?void 0:w.className,o,i,C,S);return k(t.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null==w?void 0:w.style),h),className:j,role:"progressbar","aria-valuenow":g},ac(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),$))}));var B$=z$;const F$=t.forwardRef(((e,n)=>{let{prefixCls:r,className:o,style:i,locale:a,listType:l,file:c,items:s,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:v,showRemoveIcon:g,showDownloadIcon:m,previewIcon:b,removeIcon:y,downloadIcon:w,onPreview:x,onDownload:k,onClose:C}=e;var S,E;const{status:O}=c,[_,$]=t.useState(O);t.useEffect((()=>{"removed"!==O&&$(O)}),[O]);const[j,N]=t.useState(!1);t.useEffect((()=>{const e=setTimeout((()=>{N(!0)}),300);return()=>{clearTimeout(e)}}),[]);const I=d(c);let P=t.createElement("div",{className:`${r}-icon`},I);if("picture"===l||"picture-card"===l||"picture-circle"===l)if("uploading"===_||!c.thumbUrl&&!c.url){const e=to()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:"uploading"!==_});P=t.createElement("div",{className:e},I)}else{const e=(null==h?void 0:h(c))?t.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${r}-list-item-image`,crossOrigin:c.crossOrigin}):I,n=to()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:h&&!h(c)});P=t.createElement("a",{className:n,onClick:e=>x(c,e),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const R=to()(`${r}-list-item`,`${r}-list-item-${_}`),M="string"==typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,A=g?f(("function"==typeof y?y(c):y)||t.createElement(i$,null),(()=>C(c)),r,a.removeFile,!0):null,T=m&&"done"===_?f(("function"==typeof w?w(c):w)||t.createElement(c$,null),(()=>k(c)),r,a.downloadFile):null,q="picture-card"!==l&&"picture-circle"!==l&&t.createElement("span",{key:"download-delete",className:to()(`${r}-list-item-actions`,{picture:"picture"===l})},T,A),L=to()(`${r}-list-item-name`),z=c.url?[t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:L,title:c.name},M,{href:c.url,onClick:e=>x(c,e)}),c.name),q]:[t.createElement("span",{key:"view",className:L,onClick:e=>x(c,e),title:c.name},c.name),q],B=v&&(c.url||c.thumbUrl)?t.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>x(c,e),title:a.previewFile},"function"==typeof b?b(c):b||t.createElement(ig,null)):null,F=("picture-card"===l||"picture-circle"===l)&&"uploading"!==_&&t.createElement("span",{className:`${r}-list-item-actions`},B,"done"===_&&T,A),{getPrefixCls:H}=t.useContext(D),W=H(),V=t.createElement("div",{className:R},P,z,F,j&&t.createElement(xi,{motionName:`${W}-fade`,visible:"uploading"===_,motionDeadline:2e3},(e=>{let{className:n}=e;const o="percent"in c?t.createElement(B$,Object.assign({},u,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return t.createElement("div",{className:to()(`${r}-list-item-progress`,n)},o)}))),U=c.response&&"string"==typeof c.response?c.response:(null===(S=c.error)||void 0===S?void 0:S.statusText)||(null===(E=c.error)||void 0===E?void 0:E.message)||a.uploadError,Y="error"===_?t.createElement(Fd,{title:U,getPopupContainer:e=>e.parentNode},V):V;return t.createElement("div",{className:to()(`${r}-list-item-container`,o),style:i,ref:n},p?p(Y,c,s,{download:k.bind(null,c),preview:x.bind(null,c),remove:C.bind(null,c)}):Y)}));var H$=F$;const W$=(e,n)=>{const{listType:r="text",previewFile:o=n$,onPreview:i,onDownload:a,onRemove:l,locale:c,iconRender:s,isImageUrl:u=e$,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:v=!1,removeIcon:g,previewIcon:m,downloadIcon:b,progress:y={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:x=!0,itemRender:k,disabled:C}=e,S=function(){const[,e]=t.useReducer((e=>e+1),0);return e}(),[E,O]=t.useState(!1);t.useEffect((()=>{"picture"!==r&&"picture-card"!==r&&"picture-circle"!==r||(f||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj)&&void 0===e.thumbUrl&&o&&o(e.originFileObj).then((t=>{e.thumbUrl=t||"",S()}))}))}),[r,f,o]),t.useEffect((()=>{O(!0)}),[]);const _=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},$=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},j=e=>{null==l||l(e)},N=e=>{if(s)return s(e,r);const n="uploading"===e.status,o=u&&u(e)?t.createElement(G_,null):t.createElement(H_,null);let i=n?t.createElement(Pa,null):t.createElement(U_,null);return"picture"===r?i=n?t.createElement(Pa,null):o:"picture-card"!==r&&"picture-circle"!==r||(i=n?c.uploading:o),i},I=(e,n,r,o,i)=>{const a={type:"text",size:"small",title:o,onClick:r=>{var o,i;n(),t.isValidElement(e)&&(null===(i=(o=e.props).onClick)||void 0===i||i.call(o,r))},className:`${r}-list-item-action`};if(i&&(a.disabled=C),t.isValidElement(e)){const n=uc(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return t.createElement(xs,Object.assign({},a,{icon:n}))}return t.createElement(xs,Object.assign({},a),t.createElement("span",null,e))};t.useImperativeHandle(n,(()=>({handlePreview:_,handleDownload:$})));const{getPrefixCls:P}=t.useContext(D),R=P("upload",d),M=P(),A=to()(`${R}-list`,`${R}-list-${r}`),T=Y(f.map((e=>({key:e.uid,file:e}))));let q={motionDeadline:2e3,motionName:`${R}-${"picture-card"===r||"picture-circle"===r?"animate-inline":"animate"}`,keys:T,motionAppear:E};const L=t.useMemo((()=>{const e=Object.assign({},sd(M));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[M]);return"picture-card"!==r&&"picture-circle"!==r&&(q=Object.assign(Object.assign({},L),q)),t.createElement("div",{className:A},t.createElement(wi,Object.assign({},q,{component:!1}),(e=>{let{key:n,file:o,className:i,style:a}=e;return t.createElement(H$,{key:n,locale:c,prefixCls:R,className:i,style:a,file:o,items:f,progress:y,listType:r,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:v,removeIcon:g,previewIcon:m,downloadIcon:b,iconRender:N,actionIconRender:I,itemRender:k,onPreview:_,onDownload:$,onClose:j})})),w&&t.createElement(xi,Object.assign({},q,{visible:x,forceRender:!0}),(e=>{let{className:t,style:n}=e;return uc(w,(e=>({className:to()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var V$=t.forwardRef(W$),U$=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const Y$=`__LIST_IGNORE_${Date.now()}__`,K$=(e,n)=>{const{fileList:r,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:h,iconRender:v,isImageUrl:g,progress:m,prefixCls:b,className:y,type:w="select",children:x,style:k,itemRender:C,maxCount:E,data:O={},multiple:_=!1,hasControlInside:$=!0,action:j="",accept:N="",supportServerRender:I=!0,rootClassName:P}=e,R=t.useContext(Ur),M=null!=p?p:R,[A,T]=Oo(o||[],{value:r,postState:e=>null!=e?e:[]}),[q,L]=t.useState("drop"),z=t.useRef(null),B=t.useRef(null);t.useMemo((()=>{const e=Date.now();(r||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[r]);const F=(e,t,n)=>{let r=Y(t),o=!1;1===E?r=r.slice(-1):E&&(o=r.length>E,r=r.slice(0,E)),(0,S.flushSync)((()=>{T(r)}));const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some((t=>t.uid===e.uid))||(0,S.flushSync)((()=>{null==u||u(i)}))},H=e=>{const t=e.filter((e=>!e.file[Y$]));if(!t.length)return;const n=t.map((e=>X_(e.file)));let r=Y(A);n.forEach((e=>{r=Q_(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}F(o,r)}))},W=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!Z_(t,A))return;const r=X_(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=Q_(r,A);F(r,o)},V=(e,t)=>{if(!Z_(t,A))return;const n=X_(t);n.status="uploading",n.percent=e.percent;const r=Q_(n,A);F(n,r,e)},U=(e,t,n)=>{if(!Z_(n,A))return;const r=X_(n);r.error=e,r.response=t,r.status="error";const o=Q_(r,A);F(r,o)},K=e=>{let t;Promise.resolve("function"==typeof i?i(e):i).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,A);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==A||A.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=z.current)||void 0===r||r.abort(t),F(t,o))}))},G=e=>{L(e.type),"drop"===e.type&&(null==d||d(e))};t.useImperativeHandle(n,(()=>({onBatchStart:H,onSuccess:W,onProgress:V,onError:U,fileList:A,upload:z.current,nativeElement:B.current})));const{getPrefixCls:X,direction:Q,upload:Z}=t.useContext(D),J=X("upload",b),ee=Object.assign(Object.assign({onBatchStart:H,onError:U,onProgress:V,onSuccess:W},e),{data:O,multiple:_,action:j,accept:N,supportServerRender:I,prefixCls:J,disabled:M,beforeUpload:(t,n)=>U$(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[Y$],e===Y$)return Object.defineProperty(t,Y$,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0,hasControlInside:$});delete ee.className,delete ee.style,x&&!M||delete ee.id;const te=`${J}-wrapper`,[ne,re,oe]=z_(J,te),[ie]=Hd("Upload",qn.Upload),{showRemoveIcon:ae,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:de}="boolean"==typeof a?{}:a,fe=void 0===ae?!M:!!ae,pe=(e,n)=>a?t.createElement(V$,{prefixCls:J,listType:l,items:A,previewFile:f,onPreview:c,onDownload:s,onRemove:K,showRemoveIcon:fe,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:de,iconRender:v,locale:Object.assign(Object.assign({},ie),h),isImageUrl:g,progress:m,appendAction:e,appendActionVisible:n,itemRender:C,disabled:M}):e,he=to()(te,y,P,re,oe,null==Z?void 0:Z.className,{[`${J}-rtl`]:"rtl"===Q,[`${J}-picture-card-wrapper`]:"picture-card"===l,[`${J}-picture-circle-wrapper`]:"picture-circle"===l}),ve=Object.assign(Object.assign({},null==Z?void 0:Z.style),k);if("drag"===w){const e=to()(re,J,`${J}-drag`,{[`${J}-drag-uploading`]:A.some((e=>"uploading"===e.status)),[`${J}-drag-hover`]:"dragover"===q,[`${J}-disabled`]:M,[`${J}-rtl`]:"rtl"===Q});return ne(t.createElement("span",{className:he,ref:B},t.createElement("div",{className:e,style:ve,onDrop:G,onDragOver:G,onDragLeave:G},t.createElement(P_,Object.assign({},ee,{ref:z,className:`${J}-btn`}),t.createElement("div",{className:`${J}-drag-container`},x))),pe()))}const ge=to()(J,`${J}-select`,{[`${J}-disabled`]:M}),me=t.createElement("div",{className:ge,style:x?void 0:{display:"none"}},t.createElement(P_,Object.assign({},ee,{ref:z})));return ne("picture-card"===l||"picture-circle"===l?t.createElement("span",{className:he,ref:B},pe(me,!!x)):t.createElement("span",{className:he,ref:B},me,pe()))};var G$=t.forwardRef(K$),X$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Q$=t.forwardRef(((e,n)=>{var{style:r,height:o,hasControlInside:i=!1}=e,a=X$(e,["style","height","hasControlInside"]);return t.createElement(G$,Object.assign({ref:n,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}));var Z$=Q$;const J$=G$;J$.Dragger=Z$,J$.LIST_IGNORE=Y$;var ej=J$,tj={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"},nj=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:tj}))};var rj=t.forwardRef(nj);function oj(e){return oj="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},oj(e)}function ij(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ij=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),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",v="completed",g={};function m(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==n&&r.call(k,a)&&(w=k);var C=y.prototype=m.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==oj(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,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 $(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(oj(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"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,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,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)&&r.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 o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function aj(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function lj(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){aj(i,r,o,a,l,"next",e)}function l(e){aj(i,r,o,a,l,"throw",e)}a(void 0)}))}}function cj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sj(e,t)}(e,t)||function(){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 sj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uj=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=e.id,p=cj(l(),2),h=(p[0],p[1]),v=null===(n=e.field)||void 0===n?void 0:n.fieldType,g=null===(o=e.field)||void 0===o?void 0:o.parentId,m=null===(i=e.field)||void 0===i?void 0:i.index,b=null===(a=e.field)||void 0===a?void 0:a.repeaterData,y=cj((0,t.useState)(!1),2),w=y[0],x=y[1],k=cj((0,t.useState)(""),2),C=k[0],S=k[1],E=cj((0,t.useState)(!1),2),O=E[0],_=E[1],$=cj((0,t.useState)(null),2),j=$[0],N=$[1],I=function(){var e=lj(ij().mark((function e(t){var n,r,o;return ij().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),(n=new FormData).append("file",t),e.prev=3,e.next=6,fetch("".concat(rtsbParams.restApiUrl,"wp/v2/media"),{method:"POST",body:n,headers:{"X-WP-Nonce":rtsbParams.rest_nonce}});case 6:if((r=e.sent).ok){e.next=9;break}throw new Error("Network response was not ok");case 9:return e.next=11,r.json();case 11:o=e.sent,ic.success({message:"File uploaded successfully!."}),h({type:d,id:f,value:{id:o.id,source:o.source_url},fieldType:v,parentId:g,repeaterData:b,index:m}),N({id:o.id,source:o.source_url}),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(3),console.error(e.t0),y_.error("File upload failed."),N(null);case 22:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=lj(ij().mark((function e(){return ij().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(null==j?void 0:j.source),x(!0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=lj(ij().mark((function e(){return ij().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N(null),_(!0),j){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(rtsbParams.restApiUrl,"wp/v2/media/").concat(j.id,"?force=True"),{method:"DELETE",headers:{"X-WP-Nonce":rtsbParams.rest_nonce}});case 7:if(!e.sent.ok){e.next=15;break}return e.next=11,h({type:d,id:f,value:null,fieldType:v,parentId:g,repeaterData:b,index:m});case 11:return e.next=13,ic.success({message:"File deleted successfully!"});case 13:e.next=16;break;case 15:throw new Error("Network response was not ok");case 16:N(null),e.next=24;break;case 19:e.prev=19,e.t0=e.catch(4),console.error(e.t0),y_.error("File deletion failed."),N(null);case 24:_(!1);case 25:case"end":return e.stop()}}),e,null,[[4,19]])})));return function(){return e.apply(this,arguments)}}(),M=(0,r.jsxs)("div",{children:[O?(0,r.jsx)(Pa,{}):(0,r.jsx)(rj,{}),(0,r.jsx)("div",{style:{marginTop:8},children:"Upload"})]});return(0,t.useEffect)((function(){N("object"!=oj(u)&&u?JSON.parse(u.replace(/\\/g,"")):u)}),[]),(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control",children:[(0,r.jsxs)("div",{className:"rtsb-field-upload-wrapper",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[(0,r.jsx)(ej,{name:"avatar",listType:"picture-card",className:"rtsb-avatar-uploader ".concat(null!=j&&j.source?"rtsb-avatar-uploaded":"rtsb-avatar-deleted"," "),customRequest:function(e){var t=e.file,n=e.onSuccess,r=e.onError;setTimeout((function(){I(t).then((function(){return n("ok")})).catch((function(e){console.error(e),r(e)}))}),0)},onPreview:P,children:null!=j&&j.source?(0,r.jsx)("img",{src:null==j?void 0:j.source,alt:"avatar",style:{width:"100%"}}):M}),null!=j&&j.source?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"image-preview-overlay",children:[(0,r.jsx)(ig,{className:"preview-icon",onClick:function(){return P()}}),(0,r.jsx)(i$,{className:"delete-icon",onClick:R})]})}):null]}),(0,r.jsx)(Hh,{open:w,title:"Image Preview",footer:null,className:"rtsb-image-preview-modal",styles:{body:{padding:"15px"}},onCancel:function(){return x(!1)},children:(0,r.jsx)("img",{alt:"Preview",style:{width:"100%"},src:C})})]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function dj(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-f;function h(){f=Date.now(),t.apply(l,o)}function v(){r=void 0}d||(c||!u||r||h(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?v:h,e))):h():!0!==a&&(r=setTimeout(u?v:h,void 0===u?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const fj=new bn("antSpinMove",{to:{opacity:1}}),pj=new bn("antRotate",{to:{transform:"rotate(405deg)"}}),hj=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Ti(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fj,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:pj,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var vj=Sl("Spin",(e=>{const t=cl(e,{spinDotDefault:e.colorTextDescription});return[hj(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),gj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let mj=null;const bj=e=>{const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:l="default",tip:c,wrapperClassName:s,style:u,children:d,fullscreen:f=!1}=e,p=gj(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:h}=t.useContext(D),v=h("spin",n),[g,m,b]=vj(v),[y,w]=t.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,o)));t.useEffect((()=>{if(r){const e=dj(o,(()=>{w(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}w(!1)}),[o,r]);const x=t.useMemo((()=>void 0!==d&&!f),[d,f]);const{direction:k,spin:C}=t.useContext(D),S=to()(v,null==C?void 0:C.className,{[`${v}-sm`]:"small"===l,[`${v}-lg`]:"large"===l,[`${v}-spinning`]:y,[`${v}-show-text`]:!!c,[`${v}-fullscreen`]:f,[`${v}-fullscreen-show`]:f&&y,[`${v}-rtl`]:"rtl"===k},i,a,m,b),E=to()(`${v}-container`,{[`${v}-blur`]:y}),O=ac(p,["indicator"]),_=Object.assign(Object.assign({},null==C?void 0:C.style),u),$=t.createElement("div",Object.assign({},O,{style:_,className:S,"aria-live":"polite","aria-busy":y}),function(e,n){const{indicator:r}=n,o=`${e}-dot`;return null===r?null:t.isValidElement(r)?uc(r,{className:to()(r.props.className,o)}):t.isValidElement(mj)?uc(mj,{className:to()(mj.props.className,o)}):t.createElement("span",{className:to()(o,`${e}-dot-spin`)},t.createElement("i",{className:`${e}-dot-item`,key:1}),t.createElement("i",{className:`${e}-dot-item`,key:2}),t.createElement("i",{className:`${e}-dot-item`,key:3}),t.createElement("i",{className:`${e}-dot-item`,key:4}))}(v,e),c&&(x||f)?t.createElement("div",{className:`${v}-text`},c):null);return g(x?t.createElement("div",Object.assign({},O,{className:to()(`${v}-nested-loading`,s,m,b)}),y&&t.createElement("div",{key:"loading"},$),t.createElement("div",{className:E,key:"container"},d)):$)};bj.setDefaultIndicator=e=>{mj=e};var yj=bj,wj=["fetchOptions","initialOptions","debounceTimeout"];function xj(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xj=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),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",v="completed",g={};function m(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==n&&r.call(k,a)&&(w=k);var C=y.prototype=m.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==kj(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,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 $(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(kj(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"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,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,N.prototype={constructor:N,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)&&r.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 o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function kj(e){return kj="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},kj(e)}function Cj(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Sj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ej(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach((function(t){Oj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oj(e,t,n){var r;return r=function(e,t){if("object"!=kj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==kj(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $j(e,t)}(e,t)||function(){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 $j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Ry.Option;function Nj(e){var n=e.fetchOptions,o=e.initialOptions,i=void 0===o?[]:o,a=e.debounceTimeout,l=void 0===a?400:a,c=jj(e,wj),s=_j((0,t.useState)(!1),2),u=s[0],d=s[1],f=_j((0,t.useState)(i),2),p=f[0],h=f[1],v=(0,t.useRef)(0),g=(0,t.useMemo)((function(){var e,t,r;return e=function(e){v.current+=1;var t=v.current;h([]),d(!0),n(e).then((function(e){t===v.current&&(h(e),d(!1))}))},t=l,function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];clearTimeout(r),r=setTimeout((function(){e.apply(void 0,o)}),t)}}),[n,l]);return(0,r.jsx)(Ry,Ej(Ej({filterOption:!1,onSearch:g,notFoundContent:u?(0,r.jsx)(yj,{size:"small"}):null},c),{},{children:p.map((function(e){return(0,r.jsx)(Ry.Option,{value:e.value,children:e.label},e.value)}))}))}function Ij(){var e;return e=xj().mark((function e(t,n){var r,o,i,a;return xj().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.abrupt("return",fetch(a).then((function(e){return e.json()})).then((function(e){return e.data.map((function(e){return{label:e.label,value:e.value}}))})));case 9:case"end":return e.stop()}}),e)})),Ij=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Cj(i,r,o,a,l,"next",e)}function l(e){Cj(i,r,o,a,l,"throw",e)}a(void 0)}))},Ij.apply(this,arguments)}var Pj=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,c.placeholder),h=null===(t=e.field)||void 0===t?void 0:t.fieldType,v=null===(n=e.field)||void 0===n?void 0:n.parentId,g=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,b=_j(l(),2),y=(b[0],b[1]),w=(s||[]).map((function(e){return"object"!==kj(e)?JSON.parse(e):e})),x=w.concat(f),k=new Set,C=x.filter((function(e){return!k.has(e.value)&&(k.add(e.value),!0)}));return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Nj,{mode:"multiple",value:w,placeholder:p,initialOptions:C,fetchOptions:function(e){return function(e,t){return Ij.apply(this,arguments)}(c,e)},onChange:function(e,t){var n=t.map((function(e){return{value:e.value,label:e.children}}));y({type:d,id:a,value:n,fieldType:h,parentId:v,repeaterData:m,index:g})},style:{width:"100%"}})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};const Rj=t.createContext(null),Mj=Rj.Provider;var Aj=Rj;const Tj=t.createContext(null),qj=Tj.Provider,Lj=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ti(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Dj=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:v,radioColor:g,radioBgColor:m,calc:b}=e,y=`${t}-inner`,w=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ti(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Fe(u)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ti(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Di(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:m,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(w).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},zj=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:v,borderRadius:g,borderRadiusSM:m,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:k,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:S,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:_,buttonSolidCheckedBg:$,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:N,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:Fe(I(n).sub(I(o).mul(2)).equal()),background:d,border:`${Fe(o)} ${i} ${a}`,borderBlockStartWidth:I(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(o).mul(-1).equal(),insetInlineStart:I(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Fe(o)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:Fe(I(p).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:h,paddingInline:I(v).sub(o).equal(),paddingBlock:0,lineHeight:Fe(I(h).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Di(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:j,borderColor:j},"&:active":{color:w,background:N,borderColor:N}},"&-disabled":{color:x,backgroundColor:k,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:k,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:C,borderColor:a,boxShadow:"none"}}}};var Bj=Sl("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Fe(n)} ${t}`,o=cl(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Lj(o),Dj(o),zj(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}}),Fj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hj=(e,n)=>{var r,o;const i=t.useContext(Aj),a=t.useContext(Tj),{getPrefixCls:l,direction:c,radio:s}=t.useContext(D),u=t.useRef(null),d=ao(n,u),{isFormItemInput:f}=t.useContext(Up);const p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:v,rootClassName:g,children:m,style:b,title:y}=e,w=Fj(e,["prefixCls","className","rootClassName","children","style","title"]),x=l("radio",h),k="button"===((null==i?void 0:i.optionType)||a),C=k?`${x}-button`:x,S=Ja(x),[E,O,_]=Bj(x,S),$=Object.assign({},w),j=t.useContext(Ur);i&&($.name=i.name,$.onChange=p,$.checked=e.value===i.value,$.disabled=null!==(r=$.disabled)&&void 0!==r?r:i.disabled),$.disabled=null!==(o=$.disabled)&&void 0!==o?o:j;const N=to()(`${C}-wrapper`,{[`${C}-wrapper-checked`]:$.checked,[`${C}-wrapper-disabled`]:$.disabled,[`${C}-wrapper-rtl`]:"rtl"===c,[`${C}-wrapper-in-form-item`]:f},null==s?void 0:s.className,v,g,O,_,S);return E(t.createElement(yc,{component:"Radio",disabled:$.disabled},t.createElement("label",{className:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},t.createElement(RC,Object.assign({},$,{className:to()($.className,!k&&pc),type:"radio",prefixCls:C,ref:d})),void 0!==m?t.createElement("span",null,m):null)))};var Wj=t.forwardRef(Hj);const Vj=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o}=t.useContext(D),[i,a]=Oo(e.defaultValue,{value:e.value}),{prefixCls:l,className:c,rootClassName:s,options:u,buttonStyle:d="outline",disabled:f,children:p,size:h,style:v,id:g,onMouseEnter:m,onMouseLeave:b,onFocus:y,onBlur:w}=e,x=r("radio",l),k=`${x}-group`,C=Ja(x),[S,E,O]=Bj(x,C);let _=p;u&&u.length>0&&(_=u.map((e=>"string"==typeof e||"number"==typeof e?t.createElement(Wj,{key:e.toString(),prefixCls:x,disabled:f,value:e,checked:i===e},e):t.createElement(Wj,{key:`radio-group-value-options-${e.value}`,prefixCls:x,disabled:e.disabled||f,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const $=wc(h),j=to()(k,`${k}-${d}`,{[`${k}-${$}`]:$,[`${k}-rtl`]:"rtl"===o},c,s,E,O,C);return S(t.createElement("div",Object.assign({},Da(e,{aria:!0,data:!0}),{className:j,style:v,onMouseEnter:m,onMouseLeave:b,onFocus:y,onBlur:w,id:g,ref:n}),t.createElement(Mj,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||a(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}));var Uj=t.memo(Vj),Yj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Kj=(e,n)=>{const{getPrefixCls:r}=t.useContext(D),{prefixCls:o}=e,i=Yj(e,["prefixCls"]),a=r("radio",o);return t.createElement(qj,{value:"button"},t.createElement(Wj,Object.assign({prefixCls:a},i,{type:"radio",ref:n})))};var Gj=t.forwardRef(Kj);const Xj=Wj;Xj.Button=Gj,Xj.Group=Uj,Xj.__ANT_RADIO=!0;var Qj=Xj;function Zj(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var Jj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],eN=t.createContext(null),tN=0;function nN(e){var n=e.src,r=e.isCustomPlaceholder,o=e.fallback,i=V((0,t.useState)(r?"loading":"normal"),2),a=i[0],l=i[1],c=(0,t.useRef)(!1),s="error"===a;(0,t.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(n).then((function(t){!t&&e&&l("error")})),function(){e=!1}}),[n]),(0,t.useEffect)((function(){r&&!c.current?l("loading"):s&&l("normal")}),[n]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&o?{src:o}:{onLoad:u,src:n},a]}function rN(e,t,n,r){var o=S.unstable_batchedUpdates?function(e){S.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var oN={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function iN(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return w({},e,i);if(t<0&&o<r)return w({},e,-i)}else if(t<0||o>r)return w({},e,t<0?i:-i);return{}}function aN(e,t,n,r){var o=Zj(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=k(k({},iN("x",n,e,i)),iN("y",r,t,a))),l}function lN(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function cN(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=V((0,t.useState)(!1),2),p=f[0],h=f[1],v=(0,t.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(e){v.current=k(k({},v.current),e)};return(0,t.useEffect)((function(){var e;return r&&n&&(e=rN(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[r,n]),{isTouching:p,onTouchStart:function(e){if(n){e.stopPropagation(),h(!0);var t=e.touches,r=void 0===t?[]:t;r.length>1?g({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):g({point1:{x:r[0].clientX-u,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=v.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=lN(e,n),i=lN(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=V(d,2),p=f[0],h=f[1],m=lN(s,u)/lN(o,i);l(m,"touchZoom",p,h,!0),g({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),g({eventType:"move"}))},onTouchEnd:function(){if(r){if(p&&h(!1),g({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,n=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,d=c%180!=0,f=aN(d?n:t,d?t:n,l,u);f&&a(k({},f),"dragRebound")}}}}var sN=function(e){var n=e.visible,r=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,u=e.showProgress,d=e.current,f=e.transform,p=e.count,h=e.scale,v=e.minScale,g=e.maxScale,m=e.closeIcon,b=e.onSwitchLeft,y=e.onSwitchRight,x=e.onClose,C=e.onZoomIn,S=e.onZoomOut,E=e.onRotateRight,O=e.onRotateLeft,_=e.onFlipX,$=e.onFlipY,j=e.toolbarRender,N=e.zIndex,I=(0,t.useContext)(eN),P=l.rotateLeft,R=l.rotateRight,M=l.zoomIn,A=l.zoomOut,T=l.close,q=l.left,L=l.right,D=l.flipX,z=l.flipY,B="".concat(i,"-operations-operation");t.useEffect((function(){var e=function(e){e.keyCode===Ma.ESC&&x()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var F=[{icon:z,onClick:$,type:"flipY"},{icon:D,onClick:_,type:"flipX"},{icon:P,onClick:O,type:"rotateLeft"},{icon:R,onClick:E,type:"rotateRight"},{icon:A,onClick:S,type:"zoomOut",disabled:h<=v},{icon:M,onClick:C,type:"zoomIn",disabled:h===g}].map((function(e){var n,r=e.icon,o=e.onClick,a=e.type,l=e.disabled;return t.createElement("div",{className:to()(B,(n={},w(n,"".concat(i,"-operations-operation-").concat(a),!0),w(n,"".concat(i,"-operations-operation-disabled"),!!l),n)),onClick:o,key:a},r)})),H=t.createElement("div",{className:"".concat(i,"-operations")},F);return t.createElement(xi,{visible:n,motionName:r},(function(e){var n=e.className,r=e.style;return t.createElement(Vs,{open:!0,getContainer:null!=o?o:document.body},t.createElement("div",{className:to()("".concat(i,"-operations-wrapper"),n,a),style:k(k({},r),{},{zIndex:N})},null===m?null:t.createElement("button",{className:"".concat(i,"-close"),onClick:x},m||T),s&&t.createElement(t.Fragment,null,t.createElement("div",{className:to()("".concat(i,"-switch-left"),w({},"".concat(i,"-switch-left-disabled"),0===d)),onClick:b},q),t.createElement("div",{className:to()("".concat(i,"-switch-right"),w({},"".concat(i,"-switch-right-disabled"),d===p-1)),onClick:y},L)),t.createElement("div",{className:"".concat(i,"-footer")},u&&t.createElement("div",{className:"".concat(i,"-progress")},c?c(d+1,p):"".concat(d+1," / ").concat(p)),j?j(H,k({icons:{flipYIcon:F[0],flipXIcon:F[1],rotateLeftIcon:F[2],rotateRightIcon:F[3],zoomOutIcon:F[4],zoomInIcon:F[5]},actions:{onFlipY:$,onFlipX:_,onRotateLeft:O,onRotateRight:E,onZoomOut:S,onZoomIn:C},transform:f},I?{current:d,total:p}:{})):H)))}))},uN=["fallback","src","imgRef"],dN=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],fN=function(e){var n=e.fallback,r=e.src,o=e.imgRef,i=so(e,uN),a=V(nN({src:r,fallback:n}),2),l=a[0],c=a[1];return t.createElement("img",ut({ref:function(e){o.current=e,l(e)}},i,c))},pN=function(e){var n=e.prefixCls,r=e.src,o=e.alt,i=e.fallback,a=e.movable,l=void 0===a||a,c=e.onClose,s=e.visible,u=e.icons,d=void 0===u?{}:u,f=e.rootClassName,p=e.closeIcon,h=e.getContainer,v=e.current,g=void 0===v?0:v,m=e.count,b=void 0===m?1:m,y=e.countRender,x=e.scaleStep,C=void 0===x?.5:x,S=e.minScale,E=void 0===S?1:S,O=e.maxScale,_=void 0===O?50:O,$=e.transitionName,j=void 0===$?"zoom":$,N=e.maskTransitionName,I=void 0===N?"fade":N,P=e.imageRender,R=e.imgCommonProps,M=e.toolbarRender,A=e.onTransform,T=e.onChange,q=so(e,dN),L=(0,t.useRef)(),D=(0,t.useContext)(eN),z=D&&b>1,B=D&&b>=1,F=V((0,t.useState)(!0),2),H=F[0],W=F[1],U=function(e,n,r,o){var i=(0,t.useRef)(null),a=(0,t.useRef)([]),l=V((0,t.useState)(oN),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=ri((function(){s((function(e){var n=e;return a.current.forEach((function(e){n=k(k({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push(k(k({},c),e))};return{transform:c,resetTransform:function(e){s(oN),o&&!me(oN,c)&&o({transform:oN,action:e})},updateTransform:u,dispatchZoomChange:function(t,o,i,a,l){var s=e.current,d=s.width,f=s.height,p=s.offsetWidth,h=s.offsetHeight,v=s.offsetLeft,g=s.offsetTop,m=t,b=c.scale*t;b>r?(b=r,m=r/c.scale):b<n&&(m=(b=l?b:n)/c.scale);var y=null!=i?i:innerWidth/2,w=null!=a?a:innerHeight/2,x=m-1,k=x*d*.5,C=x*f*.5,S=x*(y-c.x-v),E=x*(w-c.y-g),O=c.x-(S-k),_=c.y-(E-C);if(t<1&&1===b){var $=p*b,j=h*b,N=Zj(),I=N.width,P=N.height;$<=I&&j<=P&&(O=0,_=0)}u({x:O,y:_,scale:b},o)}}}(L,E,_,A),Y=U.transform,K=U.resetTransform,G=U.updateTransform,X=U.dispatchZoomChange,Q=function(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=V((0,t.useState)(!1),2),p=f[0],h=f[1],v=(0,t.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),g=function(e){r&&p&&a({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},m=function(){if(r&&p){h(!1);var t=v.current,n=t.transformX,o=t.transformY;if(u===n||d===o)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,f=e.current.getBoundingClientRect(),g=f.left,m=f.top,b=c%180!=0,y=aN(b?l:i,b?i:l,g,m);y&&a(k({},y),"dragRebound")}};return(0,t.useEffect)((function(){var e,t,r,o;if(n){r=rN(window,"mouseup",m,!1),o=rN(window,"mousemove",g,!1);try{window.top!==window.self&&(e=rN(window.top,"mouseup",m,!1),t=rN(window.top,"mousemove",g,!1))}catch(e){"[rc-image] ".concat(e)}}return function(){var n,i,a,l;null===(n=r)||void 0===n||n.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=t)||void 0===l||l.remove()}}),[r,p,u,d,c,n]),{isMoving:p,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},h(!0))},onMouseMove:g,onMouseUp:m,onWheel:function(e){if(r&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*o;e.deltaY>0&&(n=1/n),l(n,"wheel",e.clientX,e.clientY)}}}}(L,l,s,C,Y,G,X),Z=Q.isMoving,J=Q.onMouseDown,ee=Q.onWheel,te=cN(L,l,s,E,Y,G,X),ne=te.isTouching,re=te.onTouchStart,oe=te.onTouchMove,ie=te.onTouchEnd,ae=Y.rotate,le=Y.scale,ce=to()(w({},"".concat(n,"-moving"),Z));(0,t.useEffect)((function(){H||W(!0)}),[H]);var se=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),g>0&&(W(!1),K("prev"),null==T||T(g-1,g))},ue=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),g<b-1&&(W(!1),K("next"),null==T||T(g+1,g))},de=function(e){s&&z&&(e.keyCode===Ma.LEFT?se():e.keyCode===Ma.RIGHT&&ue())};(0,t.useEffect)((function(){var e=rN(window,"keydown",de,!1);return function(){e.remove()}}),[s,z,g]);var fe=t.createElement(fN,ut({},R,{width:e.width,height:e.height,imgRef:L,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(Y.x,"px, ").concat(Y.y,"px, 0) scale3d(").concat(Y.flipX?"-":"").concat(le,", ").concat(Y.flipY?"-":"").concat(le,", 1) rotate(").concat(ae,"deg)"),transitionDuration:(!H||ne)&&"0s"},fallback:i,src:r,onWheel:ee,onMouseDown:J,onDoubleClick:function(e){s&&(1!==le?G({x:0,y:0,scale:1},"doubleClick"):X(1+C,"doubleClick",e.clientX,e.clientY))},onTouchStart:re,onTouchMove:oe,onTouchEnd:ie,onTouchCancel:ie}));return t.createElement(t.Fragment,null,t.createElement(uf,ut({transitionName:j,maskTransitionName:I,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:s,classNames:{wrapper:ce},rootClassName:f,getContainer:h},q,{afterClose:function(){K("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},P?P(fe,k({transform:Y},D?{current:g}:{})):fe)),t.createElement(sN,{visible:s,transform:Y,maskTransitionName:I,closeIcon:p,getContainer:h,prefixCls:n,rootClassName:f,icons:d,countRender:y,showSwitch:z,showProgress:B,current:g,count:b,scale:le,minScale:E,maxScale:_,toolbarRender:M,onSwitchLeft:se,onSwitchRight:ue,onZoomIn:function(){X(1+C,"zoomIn")},onZoomOut:function(){X(1/(1+C),"zoomOut")},onRotateRight:function(){G({rotate:ae+90},"rotateRight")},onRotateLeft:function(){G({rotate:ae-90},"rotateLeft")},onFlipX:function(){G({flipX:!Y.flipX},"flipX")},onFlipY:function(){G({flipY:!Y.flipY},"flipY")},onClose:c,zIndex:void 0!==q.zIndex?q.zIndex+1:void 0}))};var hN=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],vN=["src"],gN=function(e){var n,r=e.previewPrefixCls,o=void 0===r?"rc-image-preview":r,i=e.children,a=e.icons,l=void 0===a?{}:a,c=e.items,s=e.preview,u=e.fallback,d="object"===v(s)?s:{},f=d.visible,p=d.onVisibleChange,h=d.getContainer,g=d.current,m=d.movable,b=d.minScale,y=d.maxScale,x=d.countRender,C=d.closeIcon,S=d.onChange,E=d.onTransform,O=d.toolbarRender,_=d.imageRender,$=so(d,hN),j=function(e){var n=V(t.useState({}),2),r=n[0],o=n[1],i=t.useCallback((function(e,t){return o((function(n){return k(k({},n),{},w({},e,t))})),function(){o((function(t){var n=k({},t);return delete n[e],n}))}}),[]),a=t.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Y(Jj)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(r).reduce((function(e,t){var n=r[t],o=n.canPreview,i=n.data;return o&&e.push({data:i,id:t}),e}),[])}),[e,r]);return[a,i]}(c),N=V(j,2),I=N[0],P=N[1],R=V(Oo(0,{value:g}),2),M=R[0],A=R[1],T=V((0,t.useState)(!1),2),q=T[0],L=T[1],D=(null===(n=I[M])||void 0===n?void 0:n.data)||{},z=D.src,B=so(D,vN),F=V(Oo(!!f,{value:f,onChange:function(e,t){null==p||p(e,t,M)}}),2),H=F[0],W=F[1],U=V((0,t.useState)(null),2),K=U[0],G=U[1],X=t.useCallback((function(e,t,n){var r=I.findIndex((function(t){return t.id===e}));W(!0),G({x:t,y:n}),A(r<0?0:r),L(!0)}),[I]);t.useEffect((function(){H?q||A(0):L(!1)}),[H]);var Q=t.useMemo((function(){return{register:P,onPreview:X}}),[P,X]);return t.createElement(eN.Provider,{value:Q},i,t.createElement(pN,ut({"aria-hidden":!H,movable:m,visible:H,prefixCls:o,closeIcon:C,onClose:function(){W(!1),G(null)},mousePosition:K,imgCommonProps:B,src:z,fallback:u,icons:l,minScale:b,maxScale:y,getContainer:h,current:M,count:I.length,countRender:x,onTransform:E,toolbarRender:O,imageRender:_,onChange:function(e,t){A(e),null==S||S(e,t)}},$)))},mN=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],bN=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],yN=function(e){var n=e.src,r=e.alt,o=e.onPreviewClose,i=e.prefixCls,a=void 0===i?"rc-image":i,l=e.previewPrefixCls,c=void 0===l?"".concat(a,"-preview"):l,s=e.placeholder,u=e.fallback,d=e.width,f=e.height,p=e.style,h=e.preview,g=void 0===h||h,m=e.className,b=e.onClick,y=e.onError,x=e.wrapperClassName,C=e.wrapperStyle,S=e.rootClassName,E=so(e,mN),O=s&&!0!==s,_="object"===v(g)?g:{},$=_.src,j=_.visible,N=void 0===j?void 0:j,I=_.onVisibleChange,P=void 0===I?o:I,R=_.getContainer,M=void 0===R?void 0:R,A=_.mask,T=_.maskClassName,q=_.movable,L=_.icons,D=_.scaleStep,z=_.minScale,B=_.maxScale,F=_.imageRender,H=_.toolbarRender,W=so(_,bN),U=null!=$?$:n,Y=V(Oo(!!N,{value:N,onChange:P}),2),K=Y[0],G=Y[1],X=V(nN({src:n,isCustomPlaceholder:O,fallback:u}),3),Q=X[0],Z=X[1],J=X[2],ee=V((0,t.useState)(null),2),te=ee[0],ne=ee[1],re=(0,t.useContext)(eN),oe=!!g,ie=to()(a,x,S,w({},"".concat(a,"-error"),"error"===J)),ae=(0,t.useMemo)((function(){var t={};return Jj.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),Jj.map((function(t){return e[t]}))),le=function(e,n){var r=V(t.useState((function(){return String(tN+=1)})),1)[0],o=t.useContext(eN),i={data:n,canPreview:e};return t.useEffect((function(){if(o)return o.register(r,i)}),[]),t.useEffect((function(){o&&o.register(r,i)}),[e,n]),r}(oe,(0,t.useMemo)((function(){return k(k({},ae),{},{src:U})}),[U,ae]));return t.createElement(t.Fragment,null,t.createElement("div",ut({},E,{className:ie,onClick:oe?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,r=t.top;re?re.onPreview(le,n,r):(ne({x:n,y:r}),G(!0)),null==b||b(e)}:b,style:k({width:d,height:f},C)}),t.createElement("img",ut({},ae,{className:to()("".concat(a,"-img"),w({},"".concat(a,"-img-placeholder"),!0===s),m),style:k({height:f},p),ref:Q},Z,{width:d,height:f,onError:y})),"loading"===J&&t.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},s),A&&oe&&t.createElement("div",{className:to()("".concat(a,"-mask"),T),style:{display:"none"===(null==p?void 0:p.display)?"none":void 0}},A)),!re&&oe&&t.createElement(pN,ut({"aria-hidden":!K,visible:K,prefixCls:c,onClose:function(){G(!1),ne(null)},mousePosition:te,src:U,alt:r,fallback:u,getContainer:M,icons:L,movable:q,scaleStep:D,minScale:z,maxScale:B,rootClassName:S,imageRender:F,imgCommonProps:ae,toolbarRender:H},W)))};yN.PreviewGroup=gN,yN.displayName="Image";var wN=yN,xN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},kN=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:xN}))};var CN=t.forwardRef(kN),SN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},EN=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:SN}))};var ON=t.forwardRef(EN),_N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},$N=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:_N}))};var jN=t.forwardRef($N),NN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},IN=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:NN}))};var PN=t.forwardRef(IN),RN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},MN=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:RN}))};var AN=t.forwardRef(MN),TN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},qN=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:TN}))};var LN=t.forwardRef(qN);const DN=e=>({position:e||"absolute",inset:0}),zN=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Nr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ai),{padding:`0 ${Fe(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},BN=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Nr(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Fe(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},FN=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Nr(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},HN=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},DN()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},DN()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[BN(e),FN(e)]}]},WN=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},zN(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},DN())}}},VN=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Nd(e,"zoom"),"&":rh(e,!0)}};var UN=Sl("Image",(e=>{const t=`${e.componentCls}-preview`,n=cl(e,{previewCls:t,modalMaskBg:new Nr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[WN(n),HN(n),ih(cl(n,{componentCls:t})),VN(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Nr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Nr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Nr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),YN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KN={rotateLeft:t.createElement(ON,null),rotateRight:t.createElement(jN,null),zoomIn:t.createElement(AN,null),zoomOut:t.createElement(LN,null),close:t.createElement(Ca,null),left:t.createElement(CN,null),right:t.createElement(Ix,null),flipX:t.createElement(PN,null),flipY:t.createElement(PN,{rotate:90})};var GN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const XN=e=>{var n;const{prefixCls:r,preview:o,className:i,rootClassName:a,style:l}=e,c=GN(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=qn,getPopupContainer:d,image:f}=t.useContext(D),p=s("image",r),h=s(),v=u.Image||qn.Image,g=Ja(p),[m,b,y]=UN(p,g),w=to()(a,b,y,g),x=to()(i,b,null==f?void 0:f.className),[k]=il("ImagePreview","object"==typeof o?o.zIndex:void 0),C=t.useMemo((()=>{var e;if(!1===o)return o;const n="object"==typeof o?o:{},{getContainer:r,closeIcon:i}=n,a=GN(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:t.createElement("div",{className:`${p}-mask-info`},t.createElement(ig,null),null==v?void 0:v.preview),icons:KN},a),{getContainer:null!=r?r:d,transitionName:cd(h,"zoom",n.transitionName),maskTransitionName:cd(h,"fade",n.maskTransitionName),zIndex:k,closeIcon:null!=i?i:null===(e=null==f?void 0:f.preview)||void 0===e?void 0:e.closeIcon})}),[o,v,null===(n=null==f?void 0:f.preview)||void 0===n?void 0:n.closeIcon]),S=Object.assign(Object.assign({},null==f?void 0:f.style),l);return m(t.createElement(wN,Object.assign({prefixCls:p,preview:C,rootClassName:w,className:x,style:S},c)))};XN.PreviewGroup=e=>{var{previewPrefixCls:n,preview:r}=e,o=YN(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=t.useContext(D),a=i("image",n),l=`${a}-preview`,c=i(),s=Ja(a),[u,d,f]=UN(a,s),[p]=il("ImagePreview","object"==typeof r?r.zIndex:void 0),h=t.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},n=to()(d,f,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:cd(c,"zoom",t.transitionName),maskTransitionName:cd(c,"fade",t.maskTransitionName),rootClassName:n,zIndex:p})}),[r]);return u(t.createElement(wN.PreviewGroup,Object.assign({preview:h,previewPrefixCls:l,icons:KN},o)))};var QN=XN;function ZN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return JN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JN(e,t)}(e,t)||function(){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 JN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var eI=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,g=null===(i=e.field)||void 0===i?void 0:i.repeaterData,m=ZN(l(),2),b=(m[0],m[1]);return(0,r.jsxs)("div",{className:"rtsb-field rtsb-image-select-field",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Qj.Group,{size:"large",value:s,onChange:function(e){b({type:d,id:a,value:e.target.value,fieldType:p,parentId:h,repeaterData:g,index:v})},children:Object.keys(f).map((function(e){var t,n;return(0,r.jsx)(Qj,{value:e,children:(0,r.jsx)(QN,{preview:!1,src:null===(t=f[e])||void 0===t?void 0:t.url,alt:null===(n=f[e])||void 0===n?void 0:n.label})},e)}))})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function tI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nI(e,t)}(e,t)||function(){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 nI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rI=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,g=null===(i=e.field)||void 0===i?void 0:i.repeaterData,m=tI(l(),2),b=(m[0],m[1]);return(0,r.jsxs)("div",{className:"rtsb-field rtsb-text-select-field",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Qj.Group,{size:"large",value:s,onChange:function(e){b({type:d,id:a,value:e.target.value,fieldType:p,parentId:h,repeaterData:g,index:v})},buttonStyle:"solid",children:Object.keys(f).map((function(e){return(0,r.jsx)(Qj.Button,{value:e,children:f[e]},e)}))})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},oI=function(e){var t=e.field.text;return(0,r.jsx)("div",{className:"rtsb-field-description",children:(0,r.jsx)("div",{className:"rtsb-field__description-label",dangerouslySetInnerHTML:{__html:t}})})};function iI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aI(e,t)}(e,t)||function(){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 aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lI=Ry.Option,cI=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=c.empty,h=c.searchable,v=c.multiple,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,m=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=iI(l(),2),x=(w[0],w[1]);return(0,r.jsxs)("div",{className:"rtsb-field select icon-select",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)(Ry,{showSearch:!!h,value:s,mode:v?"multiple":null,popupClassName:"rtsb-icon-selector",onChange:function(e){x({type:d,id:a,value:e,fieldType:g,parentId:m,repeaterData:y,index:b})},filterOption:function(e,t){return null==t?void 0:t.key.toLowerCase().includes(e.toLowerCase())},children:[p&&(0,r.jsx)(lI,{value:"",children:p}),Object.keys(f).map((function(e){return(0,r.jsx)(lI,{value:e,children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:f[e]}})},e)}))]})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},sI=o(5708),uI=o.n(sI),dI=o(5072),fI=o.n(dI),pI=o(9578),hI={insert:"head",singleton:!1};fI()(pI.A,hI),pI.A.locals;function vI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gI(e,t)}(e,t)||function(){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 gI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mI=Ng.TextArea,bI=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=e.id,h=null===(n=e.field)||void 0===n?void 0:n.fieldType,v=null===(o=e.field)||void 0===o?void 0:o.parentId,g=null===(i=e.field)||void 0===i?void 0:i.index,m=null===(a=e.field)||void 0===a?void 0:a.repeaterData,b=vI(l(),2),y=(b[0],b[1]),w=vI((0,t.useState)("visual"),2),x=w[0],k=w[1],C=vI((0,t.useState)(u),2),S=C[0],E=C[1],O=function(e){y({type:d,id:p,value:e,fieldType:h,parentId:v,repeaterData:m,index:g})},_=function(e){k(e)};return(0,t.useEffect)((function(){E(u)}),[u]),(0,r.jsxs)("div",{className:"rtsb-field textarea",children:[(0,r.jsx)(Yh,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control",children:[(0,r.jsxs)("div",{className:"editor-tabs",children:[(0,r.jsx)("button",{onClick:function(){return _("visual")},className:"".concat("visual"===x?"active ":"","rtsb-switch-editor"),children:"Visual"}),(0,r.jsx)("button",{onClick:function(){return _("html")},className:"".concat("html"===x?"active ":"","html rtsb-switch-editor"),children:"HTML"})]}),"visual"===x?(0,r.jsx)(uI(),{theme:"snow",value:S,modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["blockquote",{align:[]},"link","code"],[{color:[]},{background:[]}]]},formats:["header","bold","italic","underline","bullet","list","blockquote","align","link","code","color","background"],onChange:function(e){E(e),O(e)},placeholder:f}):(0,r.jsx)(mI,{rows:4,className:"rtsb-form-field",value:S,onChange:function(e){return E(e.target.value)},placeholder:f})]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function yI(e){return yI="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},yI(e)}function wI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xI(e,t)}(e,t)||function(){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 xI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kI=function(e){var t=e.field,n=t.fieldType,o=t.type,i=t.dependency,a=t.id,c=t.repeaterDefaults,s=wI(l(),2),u=s[0];s[1];if(function(){if(i&&!h().isEmpty(i)){var t=i.rules,r=i.relation,o=t.map((function(t){var r,o,i,a=t.item,l=t.value,c=t.operator,s=wI(a.split("."),4),d=s[0],f=s[1],p=s[2],h=s[3],v=null===(r=u.sections[d])||void 0===r||null===(r=r.list[f])||void 0===r?void 0:r.fields[p],g=(null==v?void 0:v.value)||"";if("repeater"===n&&"on"!==(null==v?void 0:v.value)){var m,b=(o=(null==v?void 0:v.value)||{},i=[],"string"==typeof o?i=JSON.parse(o):"object"===KO(o)&&(i=o),i);g=null===(m=b[e.field.index])||void 0===m?void 0:m[h]}if("search_and_multi_select"===(null==v?void 0:v.type)&&(g=g.map((function(e){return("string"==typeof e?JSON.parse(e):e).value}))),"checkbox"===(null==v?void 0:v.type)||"search_and_multi_select"===(null==v?void 0:v.type)){if("in"===c.toLowerCase()||"=="===c)return Array.isArray(l)?l.every((function(e){return g.includes(e)})):g.includes(l);if("!in"===c.toLowerCase()||"!="===c)return Array.isArray(l)?!l.every((function(e){return g.includes(e)})):!g.includes(l);if("any"===c.toLowerCase()){if(Array.isArray(l))return l.some((function(e){return g.includes(e)}))}else{if("empty"===c.toLowerCase())return 0>=g.length;if("!empty"===c.toLowerCase())return g.length>0}}else{if("in"===c.toLowerCase())return l.includes(g);if("!in"===c.toLowerCase())return!l.includes(g);if("=="===c){if(g===l)return!0}else if("!="===c&&g!=l)return!0}return!1}));return 1===o.length?o[0]:r&&"or"===r.toLowerCase()?o.some((function(e){return e})):o.every((function(e){return e}))}return!0}()){if("object"===yI(c)){var d=e.field.isDefault;if(c[d])if(!Object.keys(c[d]).includes(a))return}return"switch"===o?(0,r.jsx)(Xh,{id:e.id,field:e.field}):"checkbox"===o?(0,r.jsx)(KC,{id:e.id,field:e.field}):"textarea"===o?(0,r.jsx)(qg,{id:e.id,field:e.field}):"text_editor"===o?(0,r.jsx)(bI,{id:e.id,field:e.field}):"select"===o?(0,r.jsx)(qy,{id:e.id,field:e.field}):"number"===o?(0,r.jsx)(yw,{id:e.id,field:e.field}):"sortable"===o?(0,r.jsx)(_C,{id:e.id,field:e.field}):"title"===o?(0,r.jsx)(xw,{id:e.id,field:e.field}):"description"===o?(0,r.jsx)(oI,{id:e.id,field:e.field}):"datetime"===o?(0,r.jsx)(YO,{id:e.id,field:e.field}):"color"===o?(0,r.jsx)(NC,{id:e.id,field:e.field}):"fileupload"===o?(0,r.jsx)(uj,{id:e.id,field:e.field}):"gradient"===o?(0,r.jsx)(jk,{id:e.id,field:e.field}):"search_and_multi_select"===o?(0,r.jsx)(Pj,{id:e.id,field:e.field}):"image_select"===o?(0,r.jsx)(eI,{id:e.id,field:e.field}):"text_select"===o?(0,r.jsx)(rI,{id:e.id,field:e.field}):"icon_select"===o?(0,r.jsx)(cI,{id:e.id,field:e.field}):"raw"===o?(0,r.jsx)(ww,{id:e.id,field:e.field}):(0,r.jsx)(Rg,{id:e.id,field:e.field})}};const CI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function SI(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function EI(e){return"nodeType"in e}function OI(e){var t,n;return e?SI(e)?e:EI(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function _I(e){const{Document:t}=OI(e);return e instanceof t}function $I(e){return!SI(e)&&e instanceof OI(e).HTMLElement}function jI(e){return e instanceof OI(e).SVGElement}function NI(e){return e?SI(e)?e.document:EI(e)?_I(e)?e:$I(e)||jI(e)?e.ownerDocument:document:document:document}const II=CI?t.useLayoutEffect:t.useEffect;function PI(e){const n=(0,t.useRef)(e);return II((()=>{n.current=e})),(0,t.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function RI(e,n){void 0===n&&(n=[e]);const r=(0,t.useRef)(e);return II((()=>{r.current!==e&&(r.current=e)}),n),r}function MI(e,n){const r=(0,t.useRef)();return(0,t.useMemo)((()=>{const t=e(r.current);return r.current=t,t}),[...n])}function AI(e){const n=PI(e),r=(0,t.useRef)(null),o=(0,t.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,o]}function TI(e){const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e}),[e]),n.current}let qI={};function LI(e,n){return(0,t.useMemo)((()=>{if(n)return n;const t=null==qI[e]?0:qI[e]+1;return qI[e]=t,e+"-"+t}),[e,n])}function DI(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const zI=DI(1),BI=DI(-1);function FI(e){if(!e)return!1;const{KeyboardEvent:t}=OI(e.target);return t&&e instanceof t}function HI(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=OI(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const WI=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[WI.Translate.toString(e),WI.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),VI="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function UI(e){return e.matches(VI)?e:e.querySelector(VI)}const YI={display:"none"};function KI(e){let{id:n,value:r}=e;return t.createElement("div",{id:n,style:YI},r)}function GI(e){let{id:n,announcement:r,ariaLiveType:o="assertive"}=e;return t.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}const XI=(0,t.createContext)(null);const QI={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},ZI={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function JI(e){let{announcements:n=ZI,container:r,hiddenTextDescribedById:o,screenReaderInstructions:i=QI}=e;const{announce:a,announcement:l}=function(){const[e,n]=(0,t.useState)("");return{announce:(0,t.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:e}}(),c=LI("DndLiveRegion"),[s,u]=(0,t.useState)(!1);if((0,t.useEffect)((()=>{u(!0)}),[]),function(e){const n=(0,t.useContext)(XI);(0,t.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)}),[e,n])}((0,t.useMemo)((()=>({onDragStart(e){let{active:t}=e;a(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&a(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;a(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;a(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;a(n.onDragCancel({active:t,over:r}))}})),[a,n])),!s)return null;const d=t.createElement(t.Fragment,null,t.createElement(KI,{id:o,value:i.draggable}),t.createElement(GI,{id:c,announcement:l}));return r?(0,S.createPortal)(d,r):d}var eP;function tP(){}function nP(e,n){return(0,t.useMemo)((()=>({sensor:e,options:null!=n?n:{}})),[e,n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(eP||(eP={}));const rP=Object.freeze({x:0,y:0});function oP(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function iP(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function aP(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function lP(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function cP(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function sP(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const uP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=sP(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=oP(sP(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(iP)};function dP(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const fP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=dP(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(aP)};function pP(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:rP}function hP(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const vP=hP(1);function gP(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const mP={ignoreTransform:!1};function bP(e,t){void 0===t&&(t=mP);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=OI(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=gP(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),s=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function yP(e){return bP(e,{ignoreTransform:!0})}function wP(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(_I(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!$I(o)||jI(o))return n;if(n.includes(o))return n;const i=OI(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=OI(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=OI(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function xP(e){const[t]=wP(e,1);return null!=t?t:null}function kP(e){return CI&&e?SI(e)?e:EI(e)?_I(e)||e===NI(e).scrollingElement?window:$I(e)?e:null:null:null}function CP(e){return SI(e)?e.scrollX:e.scrollLeft}function SP(e){return SI(e)?e.scrollY:e.scrollTop}function EP(e){return{x:CP(e),y:SP(e)}}var OP;function _P(e){return!(!CI||!e)&&e===document.scrollingElement}function $P(e){const t={x:0,y:0},n=_P(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(OP||(OP={}));const jP={x:.2,y:.2};function NP(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=jP);const{isTop:s,isBottom:u,isLeft:d,isRight:f}=$P(e),p={x:0,y:0},h={x:0,y:0},v=t.height*o.y,g=t.width*o.x;return!s&&i<=t.top+v?(p.y=OP.Backward,h.y=r*Math.abs((t.top+v-i)/v)):!u&&c>=t.bottom-v&&(p.y=OP.Forward,h.y=r*Math.abs((t.bottom-v-c)/v)),!f&&l>=t.right-g?(p.x=OP.Forward,h.x=r*Math.abs((t.right-g-l)/g)):!d&&a<=t.left+g&&(p.x=OP.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:h}}function IP(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function PP(e){return e.reduce(((e,t)=>zI(e,EP(t))),rP)}function RP(e,t){if(void 0===t&&(t=bP),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);xP(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const MP=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+CP(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+SP(t)),0)}]];class AP{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=wP(t),r=PP(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of MP)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class TP{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function qP(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var LP,DP;function zP(e){e.preventDefault()}function BP(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(LP||(LP={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(DP||(DP={}));const FP={start:[DP.Space,DP.Enter],cancel:[DP.Esc],end:[DP.Space,DP.Enter]},HP=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case DP.Right:return{...n,x:n.x+25};case DP.Left:return{...n,x:n.x-25};case DP.Down:return{...n,y:n.y+25};case DP.Up:return{...n,y:n.y-25}}};class WP{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new TP(NI(t)),this.windowListeners=new TP(OI(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(LP.Resize,this.handleCancel),this.windowListeners.add(LP.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(LP.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&RP(n),t(rP)}handleKeyDown(e){if(FI(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=FP,coordinateGetter:i=HP,scrollBehavior:a="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,s=c?{x:c.left,y:c.top}:rP;this.referenceCoordinates||(this.referenceCoordinates=s);const u=i(e,{active:t,context:n.current,currentCoordinates:s});if(u){const t=BI(u,s),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:c,isBottom:s,maxScroll:d,minScroll:f}=$P(n),p=IP(n),h={x:Math.min(o===DP.Right?p.right-p.width/2:p.right,Math.max(o===DP.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(o===DP.Down?p.bottom-p.height/2:p.bottom,Math.max(o===DP.Down?p.top:p.top+p.height/2,u.y))},v=o===DP.Right&&!l||o===DP.Left&&!c,g=o===DP.Down&&!s||o===DP.Up&&!i;if(v&&h.x!==u.x){const e=n.scrollLeft+t.x,i=o===DP.Right&&e<=d.x||o===DP.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===DP.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&h.y!==u.y){const e=n.scrollTop+t.y,i=o===DP.Down&&e<=d.y||o===DP.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===DP.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,zI(BI(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function VP(e){return Boolean(e&&"distance"in e)}function UP(e){return Boolean(e&&"delay"in e)}WP.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=FP,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class YP{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=OI(e);return e instanceof t?e:NI(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=NI(i),this.documentListeners=new TP(this.document),this.listeners=new TP(n),this.windowListeners=new TP(OI(i)),this.initialCoordinates=null!=(r=HI(o))?r:rP,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(LP.Resize,this.handleCancel),this.windowListeners.add(LP.DragStart,zP),this.windowListeners.add(LP.VisibilityChange,this.handleCancel),this.windowListeners.add(LP.ContextMenu,zP),this.documentListeners.add(LP.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(UP(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(VP(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(LP.Click,BP,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(LP.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const l=null!=(t=HI(e))?t:rP,c=BI(r,l);if(!n&&a){if(VP(a)){if(null!=a.tolerance&&qP(c,a.tolerance))return this.handleCancel();if(qP(c,a.distance))return this.handleStart()}return UP(a)&&qP(c,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===DP.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const KP={move:{name:"pointermove"},end:{name:"pointerup"}};class GP extends YP{constructor(e){const{event:t}=e,n=NI(t.target);super(e,KP,n)}}GP.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const XP={move:{name:"mousemove"},end:{name:"mouseup"}};var QP;!function(e){e[e.RightClick=2]="RightClick"}(QP||(QP={}));class ZP extends YP{constructor(e){super(e,XP,NI(e.event.target))}}ZP.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==QP.RightClick&&(null==r||r({event:n}),!0)}}];const JP={move:{name:"touchmove"},end:{name:"touchend"}};class eR extends YP{constructor(e){super(e,JP)}static setup(){return window.addEventListener(JP.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(JP.move.name,e)};function e(){}}}var tR,nR;function rR(e){let{acceleration:n,activator:r=tR.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:l=5,order:c=nR.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=TI(t);return MI((e=>{if(n||!r||!e)return oR;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[OP.Backward]:e.x[OP.Backward]||-1===o.x,[OP.Forward]:e.x[OP.Forward]||1===o.x},y:{[OP.Backward]:e.y[OP.Backward]||-1===o.y,[OP.Forward]:e.y[OP.Forward]||1===o.y}}}),[n,t,r])}({delta:f,disabled:!a}),[v,g]=function(){const e=(0,t.useRef)(null);return[(0,t.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,t.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),m=(0,t.useRef)({x:0,y:0}),b=(0,t.useRef)({x:0,y:0}),y=(0,t.useMemo)((()=>{switch(r){case tR.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case tR.DraggableRect:return i}}),[r,i,s]),w=(0,t.useRef)(null),x=(0,t.useCallback)((()=>{const e=w.current;if(!e)return;const t=m.current.x*b.current.x,n=m.current.y*b.current.y;e.scrollBy(t,n)}),[]),k=(0,t.useMemo)((()=>c===nR.TreeOrder?[...u].reverse():u),[c,u]);(0,t.useEffect)((()=>{if(a&&u.length&&y){for(const e of k){if(!1===(null==o?void 0:o(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:i,speed:a}=NP(e,r,y,n,p);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return g(),w.current=e,v(x,l),m.current=a,void(b.current=i)}m.current={x:0,y:0},b.current={x:0,y:0},g()}else g()}),[n,x,o,g,a,l,JSON.stringify(y),JSON.stringify(h),v,u,k,d,JSON.stringify(p)])}eR.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(tR||(tR={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(nR||(nR={}));const oR={x:{[OP.Backward]:!1,[OP.Forward]:!1},y:{[OP.Backward]:!1,[OP.Forward]:!1}};var iR,aR;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(iR||(iR={})),function(e){e.Optimized="optimized"}(aR||(aR={}));const lR=new Map;function cR(e,t){return MI((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function sR(e){let{callback:n,disabled:r}=e;const o=PI(n),i=(0,t.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[r]);return(0,t.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function uR(e){return new AP(bP(e),e)}function dR(e,n,r){void 0===n&&(n=uR);const[o,i]=(0,t.useReducer)((function(t){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=t?t:r)?o:null;const i=n(e);if(JSON.stringify(t)===JSON.stringify(i))return t;return i}),null),a=function(e){let{callback:n,disabled:r}=e;const o=PI(n),i=(0,t.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,r]);return(0,t.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=sR({callback:i});return II((()=>{i(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())}),[e]),o}const fR=[];function pR(e,n){void 0===n&&(n=[]);const r=(0,t.useRef)(null);return(0,t.useEffect)((()=>{r.current=null}),n),(0,t.useEffect)((()=>{const t=e!==rP;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)}),[e]),r.current?BI(e,r.current):rP}function hR(e){return(0,t.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const vR=[];function gR(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return $I(t)?t:e}const mR=[{sensor:GP,options:{}},{sensor:WP,options:{}}],bR={current:{}},yR={draggable:{measure:yP},droppable:{measure:yP,strategy:iR.WhileDragging,frequency:aR.Optimized},dragOverlay:{measure:bP}};class wR extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const xR={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new wR,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:tP},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:yR,measureDroppableContainers:tP,windowRect:null,measuringScheduled:!1},kR={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:tP,draggableNodes:new Map,over:null,measureDroppableContainers:tP},CR=(0,t.createContext)(kR),SR=(0,t.createContext)(xR);function ER(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new wR}}}function OR(e,t){switch(t.type){case eP.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case eP.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case eP.DragEnd:case eP.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case eP.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new wR(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case eP.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new wR(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case eP.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new wR(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function _R(e){let{disabled:n}=e;const{active:r,activatorEvent:o,draggableNodes:i}=(0,t.useContext)(CR),a=TI(o),l=TI(null==r?void 0:r.id);return(0,t.useEffect)((()=>{if(!n&&!o&&a&&null!=l){if(!FI(a))return;if(document.activeElement===a.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=UI(e);if(t){t.focus();break}}}))}}),[o,n,i,l,a]),null}function $R(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const jR=(0,t.createContext)({...rP,scaleX:1,scaleY:1});var NR;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(NR||(NR={}));const IR=(0,t.memo)((function(e){var n,r,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:s,sensors:u=mR,collisionDetection:d=fP,measuring:f,modifiers:p,...h}=e;const v=(0,t.useReducer)(OR,void 0,ER),[g,m]=v,[b,y]=function(){const[e]=(0,t.useState)((()=>new Set)),n=(0,t.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),r=(0,t.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[r,n]}(),[w,x]=(0,t.useState)(NR.Uninitialized),k=w===NR.Initialized,{draggable:{active:C,nodes:E,translate:O},droppable:{containers:_}}=g,$=C?E.get(C):null,j=(0,t.useRef)({initial:null,translated:null}),N=(0,t.useMemo)((()=>{var e;return null!=C?{id:C,data:null!=(e=null==$?void 0:$.data)?e:bR,rect:j}:null}),[C,$]),I=(0,t.useRef)(null),[P,R]=(0,t.useState)(null),[M,A]=(0,t.useState)(null),T=RI(h,Object.values(h)),q=LI("DndDescribedBy",a),L=(0,t.useMemo)((()=>_.getEnabled()),[_]),D=(z=f,(0,t.useMemo)((()=>({draggable:{...yR.draggable,...null==z?void 0:z.draggable},droppable:{...yR.droppable,...null==z?void 0:z.droppable},dragOverlay:{...yR.dragOverlay,...null==z?void 0:z.dragOverlay}})),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:B,measureDroppableContainers:F,measuringScheduled:H}=function(e,n){let{dragging:r,dependencies:o,config:i}=n;const[a,l]=(0,t.useState)(null),{frequency:c,measure:s,strategy:u}=i,d=(0,t.useRef)(e),f=function(){switch(u){case iR.Always:return!1;case iR.BeforeDragging:return r;default:return!r}}(),p=RI(f),h=(0,t.useCallback)((function(e){void 0===e&&(e=[]),p.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),v=(0,t.useRef)(null),g=MI((t=>{if(f&&!r)return lR;if(!t||t===lR||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new AP(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,r,f,s]);return(0,t.useEffect)((()=>{d.current=e}),[e]),(0,t.useEffect)((()=>{f||h()}),[r,f]),(0,t.useEffect)((()=>{a&&a.length>0&&l(null)}),[JSON.stringify(a)]),(0,t.useEffect)((()=>{f||"number"!=typeof c||null!==v.current||(v.current=setTimeout((()=>{h(),v.current=null}),c))}),[c,f,h,...o]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:null!=a}}(L,{dragging:k,dependencies:[O.x,O.y],config:D.droppable}),W=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return MI((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(E,C),V=(0,t.useMemo)((()=>M?HI(M):null),[M]),U=function(){const e=!1===(null==P?void 0:P.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=k&&!e&&!t;if("object"==typeof c)return{...c,enabled:n};return{enabled:n}}(),Y=function(e,t){return cR(e,t)}(W,D.draggable.measure);!function(e){let{activeNode:n,measure:r,initialRect:o,config:i=!0}=e;const a=(0,t.useRef)(!1),{x:l,y:c}="boolean"==typeof i?{x:i,y:i}:i;II((()=>{if(!l&&!c||!n)return void(a.current=!1);if(a.current||!o)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=pP(r(e),o);if(l||(t.x=0),c||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=xP(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,l,c,o,r])}({activeNode:C?E.get(C):null,config:U.layoutShiftCompensation,initialRect:Y,measure:D.draggable.measure});const K=dR(W,D.draggable.measure,Y),G=dR(W?W.parentElement:null),X=(0,t.useRef)({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor(null==(n=X.current.over)?void 0:n.id),Z=function(e){let{measure:n}=e;const[r,o]=(0,t.useState)(null),i=sR({callback:(0,t.useCallback)((e=>{for(const{target:t}of e)if($I(t)){o((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,t.useCallback)((e=>{const t=gR(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),o(t?n(t):null)}),[n,i]),[l,c]=AI(a);return(0,t.useMemo)((()=>({nodeRef:l,rect:r,setRef:c})),[r,l,c])}({measure:D.dragOverlay.measure}),J=null!=(r=Z.nodeRef.current)?r:W,ee=k?null!=(o=Z.rect)?o:K:null,te=Boolean(Z.nodeRef.current&&Z.rect),ne=pP(re=te?null:K,cR(re));var re;const oe=hR(J?OI(J):null),ie=function(e){const n=(0,t.useRef)(e),r=MI((t=>e?t&&t!==fR&&e&&n.current&&e.parentNode===n.current.parentNode?t:wP(e):fR),[e]);return(0,t.useEffect)((()=>{n.current=e}),[e]),r}(k?null!=Q?Q:W:null),ae=function(e,n){void 0===n&&(n=bP);const[r]=e,o=hR(r?OI(r):null),[i,a]=(0,t.useReducer)((function(){return e.length?e.map((e=>_P(e)?o:new AP(n(e),e))):vR}),vR),l=sR({callback:a});return e.length>0&&i===vR&&a(),II((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),a())}),[e]),i}(ie),le=$R(p,{transform:{x:O.x-ne.x,y:O.y-ne.y,scaleX:1,scaleY:1},activatorEvent:M,active:N,activeNodeRect:K,containerNodeRect:G,draggingNodeRect:ee,over:X.current.over,overlayNodeRect:Z.rect,scrollableAncestors:ie,scrollableAncestorRects:ae,windowRect:oe}),ce=V?zI(V,O):null,se=function(e){const[n,r]=(0,t.useState)(null),o=(0,t.useRef)(e),i=(0,t.useCallback)((e=>{const t=kP(e.target);t&&r((e=>e?(e.set(t,EP(t)),new Map(e)):null))}),[]);return(0,t.useEffect)((()=>{const t=o.current;if(e!==t){n(t);const a=e.map((e=>{const t=kP(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,EP(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=e}return()=>{n(e),n(t)};function n(e){e.forEach((e=>{const t=kP(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,t.useMemo)((()=>e.length?n?Array.from(n.values()).reduce(((e,t)=>zI(e,t)),rP):PP(e):rP),[e,n])}(ie),ue=pR(se),de=pR(se,[K]),fe=zI(le,ue),pe=ee?vP(ee,le):null,he=N&&pe?d({active:N,collisionRect:pe,droppableRects:B,droppableContainers:L,pointerCoordinates:ce}):null,ve=cP(he,"id"),[ge,me]=(0,t.useState)(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?le:zI(le,de),null!=(i=null==ge?void 0:ge.rect)?i:null,K),ye=(0,t.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==I.current)return;const o=E.get(I.current);if(!o)return;const i=e.nativeEvent,a=new n({active:I.current,activeNode:o,event:i,options:r,context:X,onStart(e){const t=I.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:r}=T.current,o={active:{id:t,data:n.data,rect:j}};(0,S.unstable_batchedUpdates)((()=>{null==r||r(o),x(NR.Initializing),m({type:eP.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:o})}))},onMove(e){m({type:eP.DragMove,coordinates:e})},onEnd:l(eP.DragEnd),onCancel:l(eP.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=X.current;let a=null;if(t&&o){const{cancelDrop:l}=T.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===eP.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=eP.DragCancel)}}I.current=null,(0,S.unstable_batchedUpdates)((()=>{m({type:e}),x(NR.Uninitialized),me(null),R(null),A(null);const t=e===eP.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=T.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,S.unstable_batchedUpdates)((()=>{R(a),A(e.nativeEvent)}))}),[E]),we=(0,t.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=E.get(r);if(null!==I.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},I.current=r,ye(n,t))}),[E,ye]),xe=function(e,n){return(0,t.useMemo)((()=>e.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[e,n])}(u,we);!function(e){(0,t.useEffect)((()=>{if(!CI)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(u),II((()=>{K&&w===NR.Initializing&&x(NR.Initialized)}),[K,w]),(0,t.useEffect)((()=>{const{onDragMove:e}=T.current,{active:t,activatorEvent:n,collisions:r,over:o}=X.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:fe.x,y:fe.y},over:o};(0,S.unstable_batchedUpdates)((()=>{null==e||e(i),b({type:"onDragMove",event:i})}))}),[fe.x,fe.y]),(0,t.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=X.current;if(!e||null==I.current||!t||!o)return;const{onDragOver:i}=T.current,a=r.get(ve),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,S.unstable_batchedUpdates)((()=>{me(l),null==i||i(c),b({type:"onDragOver",event:c})}))}),[ve]),II((()=>{X.current={activatorEvent:M,active:N,activeNode:W,collisionRect:pe,collisions:he,droppableRects:B,draggableNodes:E,draggingNode:J,draggingNodeRect:ee,droppableContainers:_,over:ge,scrollableAncestors:ie,scrollAdjustedTranslate:fe},j.current={initial:ee,translated:pe}}),[N,W,he,pe,E,J,ee,B,_,ge,ie,fe]),rR({...U,delta:O,draggingRect:pe,pointerCoordinates:ce,scrollableAncestors:ie,scrollableAncestorRects:ae});const ke=(0,t.useMemo)((()=>({active:N,activeNode:W,activeNodeRect:K,activatorEvent:M,collisions:he,containerNodeRect:G,dragOverlay:Z,draggableNodes:E,droppableContainers:_,droppableRects:B,over:ge,measureDroppableContainers:F,scrollableAncestors:ie,scrollableAncestorRects:ae,measuringConfiguration:D,measuringScheduled:H,windowRect:oe})),[N,W,K,M,he,G,Z,E,_,B,ge,F,ie,ae,D,H,oe]),Ce=(0,t.useMemo)((()=>({activatorEvent:M,activators:xe,active:N,activeNodeRect:K,ariaDescribedById:{draggable:q},dispatch:m,draggableNodes:E,over:ge,measureDroppableContainers:F})),[M,xe,N,K,m,q,E,ge,F]);return t.createElement(XI.Provider,{value:y},t.createElement(CR.Provider,{value:Ce},t.createElement(SR.Provider,{value:ke},t.createElement(jR.Provider,{value:be},s)),t.createElement(_R,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t.createElement(JI,{...l,hiddenTextDescribedById:q}))})),PR=(0,t.createContext)(null),RR="button",MR="Droppable";function AR(e){let{id:n,data:r,disabled:o=!1,attributes:i}=e;const a=LI(MR),{activators:l,activatorEvent:c,active:s,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,t.useContext)(CR),{role:h=RR,roleDescription:v="draggable",tabIndex:g=0}=null!=i?i:{},m=(null==s?void 0:s.id)===n,b=(0,t.useContext)(m?jR:PR),[y,w]=AI(),[x,k]=AI(),C=function(e,n){return(0,t.useMemo)((()=>e.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[e,n])}(l,n),S=RI(r);II((()=>(f.set(n,{id:n,key:a,node:y,activatorNode:x,data:S}),()=>{const e=f.get(n);e&&e.key===a&&f.delete(n)})),[f,n]);return{active:s,activatorEvent:c,activeNodeRect:u,attributes:(0,t.useMemo)((()=>({role:h,tabIndex:g,"aria-disabled":o,"aria-pressed":!(!m||h!==RR)||void 0,"aria-roledescription":v,"aria-describedby":d.draggable})),[o,h,g,m,v,d.draggable]),isDragging:m,listeners:o?void 0:C,node:y,over:p,setNodeRef:w,setActivatorNodeRef:k,transform:b}}function TR(){return(0,t.useContext)(SR)}const qR="Droppable",LR={timeout:25};function DR(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function zR(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function BR(e){return null!==e&&e>=0}const FR=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=DR(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},HR={scaleX:1,scaleY:1},WR=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...HR}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-c,...HR}:o<n&&o>=a?{x:0,y:l.height+c,...HR}:{x:0,y:0,...HR}};const VR="Sortable",UR=t.createContext({activeIndex:-1,containerId:VR,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:FR,disabled:{draggable:!1,droppable:!1}});function YR(e){let{children:n,id:r,items:o,strategy:i=FR,disabled:a=!1}=e;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:d}=TR(),f=LI(VR,r),p=Boolean(null!==c.rect),h=(0,t.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),v=null!=l,g=l?h.indexOf(l.id):-1,m=u?h.indexOf(u.id):-1,b=(0,t.useRef)(h),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,b.current),w=-1!==m&&-1===g||y,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);II((()=>{y&&v&&d(h)}),[y,h,v,d]),(0,t.useEffect)((()=>{b.current=h}),[h]);const k=(0,t.useMemo)((()=>({activeIndex:g,containerId:f,disabled:x,disableTransforms:w,items:h,overIndex:m,useDragOverlay:p,sortedRects:zR(h,s),strategy:i})),[g,f,x.draggable,x.droppable,w,h,m,s,p,i]);return t.createElement(UR.Provider,{value:k},n)}const KR=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return DR(n,r,o).indexOf(t)},GR=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:s}=e;return!(!s||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===c))},XR={duration:200,easing:"ease"},QR="transform",ZR=WI.Transition.toString({property:QR,duration:0,easing:"linear"}),JR={roleDescription:"sortable"};function eM(e){let{animateLayoutChanges:n=GR,attributes:r,disabled:o,data:i,getNewIndex:a=KR,id:l,strategy:c,resizeObserverConfig:s,transition:u=XR}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:v,sortedRects:g,overIndex:m,useDragOverlay:b,strategy:y}=(0,t.useContext)(UR),w=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,h),x=d.indexOf(l),k=(0,t.useMemo)((()=>({sortable:{containerId:f,index:x,items:d},...i})),[f,i,x,d]),C=(0,t.useMemo)((()=>d.slice(d.indexOf(l))),[d,l]),{rect:S,node:E,isOver:O,setNodeRef:_}=function(e){let{data:n,disabled:r=!1,id:o,resizeObserverConfig:i}=e;const a=LI(qR),{active:l,dispatch:c,over:s,measureDroppableContainers:u}=(0,t.useContext)(CR),d=(0,t.useRef)({disabled:r}),f=(0,t.useRef)(!1),p=(0,t.useRef)(null),h=(0,t.useRef)(null),{disabled:v,updateMeasurementsFor:g,timeout:m}={...LR,...i},b=RI(null!=g?g:o),y=sR({callback:(0,t.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(b.current)?b.current:[b.current]),h.current=null}),m)):f.current=!0}),[m]),disabled:v||!l}),w=(0,t.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))}),[y]),[x,k]=AI(w),C=RI(n);return(0,t.useEffect)((()=>{y&&x.current&&(y.disconnect(),f.current=!1,y.observe(x.current))}),[x,y]),II((()=>(c({type:eP.RegisterDroppable,element:{id:o,key:a,disabled:r,node:x,rect:p,data:C}}),()=>c({type:eP.UnregisterDroppable,key:a,id:o}))),[o]),(0,t.useEffect)((()=>{r!==d.current.disabled&&(c({type:eP.SetDroppableDisabled,id:o,key:a,disabled:r}),d.current.disabled=r)}),[o,a,r,c]),{active:l,rect:p,isOver:(null==s?void 0:s.id)===o,node:x,over:s,setNodeRef:k}}({id:l,data:k,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...s}}),{active:$,activatorEvent:j,activeNodeRect:N,attributes:I,setNodeRef:P,listeners:R,isDragging:M,over:A,setActivatorNodeRef:T,transform:q}=AR({id:l,data:k,attributes:{...JR,...r},disabled:w.draggable}),L=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)((()=>e=>{n.forEach((t=>t(e)))}),n)}(_,P),D=Boolean($),z=D&&!v&&BR(p)&&BR(m),B=!b&&M,F=B&&z?q:null,H=z?null!=F?F:(null!=c?c:y)({rects:g,activeNodeRect:N,activeIndex:p,overIndex:m,index:x}):null,W=BR(p)&&BR(m)?a({id:l,items:d,activeIndex:p,overIndex:m}):x,V=null==$?void 0:$.id,U=(0,t.useRef)({activeId:V,items:d,newIndex:W,containerId:f}),Y=d!==U.current.items,K=n({active:$,containerId:f,isDragging:M,isSorting:D,id:l,index:x,items:d,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:u,wasDragging:null!=U.current.activeId}),G=function(e){let{disabled:n,index:r,node:o,rect:i}=e;const[a,l]=(0,t.useState)(null),c=(0,t.useRef)(r);return II((()=>{if(!n&&r!==c.current&&o.current){const e=i.current;if(e){const t=bP(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==c.current&&(c.current=r)}),[n,r,o,i]),(0,t.useEffect)((()=>{a&&l(null)}),[a]),a}({disabled:!K,index:x,node:E,rect:S});return(0,t.useEffect)((()=>{D&&U.current.newIndex!==W&&(U.current.newIndex=W),f!==U.current.containerId&&(U.current.containerId=f),d!==U.current.items&&(U.current.items=d)}),[D,W,f,d]),(0,t.useEffect)((()=>{if(V===U.current.activeId)return;if(V&&!U.current.activeId)return void(U.current.activeId=V);const e=setTimeout((()=>{U.current.activeId=V}),50);return()=>clearTimeout(e)}),[V]),{active:$,activeIndex:p,attributes:I,data:k,rect:S,index:x,newIndex:W,items:d,isOver:O,isSorting:D,isDragging:M,listeners:R,node:E,overIndex:m,over:A,setNodeRef:L,setActivatorNodeRef:T,setDroppableNodeRef:_,setDraggableNodeRef:P,transform:null!=G?G:H,transition:function(){if(G||Y&&U.current.newIndex===x)return ZR;if(B&&!FI(j)||!u)return;if(D||K)return WI.Transition.toString({...u,property:QR});return}()}}function tM(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const nM=[DP.Down,DP.Right,DP.Up,DP.Left],rM=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(nM.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case DP.Down:r.top<i.top&&t.push(n);break;case DP.Up:r.top>i.top&&t.push(n);break;case DP.Left:r.left>i.left&&t.push(n);break;case DP.Right:r.left<i.left&&t.push(n)}}));const c=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=lP(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=lP(r),a=o.reduce(((e,t,r)=>e+oP(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(iP)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let s=cP(c,"id");if(s===(null==a?void 0:a.id)&&c.length>1&&(s=c[1].id),null!=s){const e=i.get(n.id),t=i.get(s),a=t?o.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){const n=wP(c).some(((e,t)=>l[t]!==e)),o=oM(e,t),i=function(e,t){if(!tM(e)||!tM(t))return!1;if(!oM(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),s=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return s.x&&s.y?u:BI(u,s)}}}};function oM(e,t){return!(!tM(e)||!tM(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const iM="collapsed",aM="collapsing",lM="expanding",cM="expanded";function sM(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}const uM=({children:e,transition:n,style:o,render:i,elementType:a="div",isOpen:l,collapseHeight:c="0px",onInit:s,onChange:u,className:d="collapse-css-transition",addState:f,noAnim:p,overflowOnExpanded:h,...v})=>{const g=()=>"0px"===c?"hidden":void 0,[m,b]=(0,t.useReducer)((e=>e+1),0),y=(0,t.useRef)(),[w,x]=(0,t.useState)(0),k=(0,t.useRef)({collapse:l?cM:iM,style:{height:l?void 0:c,visibility:l?void 0:g()}}).current;(0,t.useEffect)((()=>{w&&C(u)}),[w]);const C=(e,t={})=>{e&&e({state:k.collapse,style:k.style,...t})};function S(){y.current&&(k.collapse=iM,k.style={height:c,visibility:g()},b(),setTimeout((()=>x(Date.now)),0))}function E(){y.current&&(k.collapse=cM,k.style={height:void 0,visibility:void 0},b(),setTimeout((()=>x(Date.now)),0))}function O(){return`${y.current.scrollHeight}px`}const _=k.collapse===cM||k.collapse===lM;!_&&l&&function(){if(y.current){if(p)return E();k.collapse=lM,sM((()=>{y.current&&k.collapse===lM&&(k.style={height:O(),visibility:void 0},x(Date.now))}))}}(),_&&!l&&function(){if(y.current){if(p)return S();k.collapse=aM,k.style={height:O(),visibility:void 0},b(),sM((()=>{y.current&&k.collapse===aM&&(k.style={height:c,visibility:void 0},x(Date.now))}))}}();const $={overflow:k.collapse===cM&&h?void 0:"hidden",transition:n,...o,...k.style},j=a,N=(0,t.useCallback)((e=>{e&&(y.current=e,C(s,{node:e}))}),[a]),I=f?`${d} --c-${k.collapse}`:d;return(0,r.jsx)(j,{ref:N,style:$,onTransitionEnd:function({target:e,propertyName:t}){if(e===y.current&&"height"===t){const t=e.style.height;switch(k.collapse){case lM:void 0===t||t===c||E();break;case aM:void 0===t||t!==c||S()}}},className:I,...v,children:"function"==typeof e?e(k.collapse):"function"==typeof i?i(k.collapse):e})};var dM={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"},fM=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:dM}))};var pM=t.forwardRef(fM),hM=function(e){if(G()&&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};function vM(e,t){return Array.isArray(e)||void 0===t?hM(e):function(e,t){if(!hM(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}var gM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mM={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},bM=t.forwardRef(((e,n)=>{const{style:r,noStyle:o,disabled:i,tabIndex:a=0}=e,l=gM(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},mM)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),r),t.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},l,{onKeyDown:e=>{const{keyCode:t}=e;t===Ma.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:r}=e;n===Ma.ENTER&&r&&r()},style:c}))}));var yM=bM,wM={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"},xM=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:wM}))};var kM=t.forwardRef(xM);const CM=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),SM=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,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},EM=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},CM(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"}}})}},OM=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:Or[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}}),_M=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Fe(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},$M=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),jM=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"}},SM(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}}}),OM(e)),EM(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},CM(e)),{marginInlineStart:e.marginXXS})}),_M(e)),$M(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"}})}};var NM=Sl("Typography",(e=>[jM(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var IM=e=>{const{prefixCls:n,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:h=t.createElement(kM,null)}=e,v=t.useRef(null),g=t.useRef(!1),m=t.useRef(),[b,y]=t.useState(s);t.useEffect((()=>{y(s)}),[s]),t.useEffect((()=>{if(v.current&&v.current.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(b.trim())},x=p?`${n}-${p}`:"",[k,C,S]=NM(n),E=to()(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a},o,x,C,S);return k(t.createElement("div",{className:E,style:i},t.createElement($g,{ref:v,maxLength:l,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(m.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;m.current!==t||g.current||n||r||o||i||(t===Ma.ENTER?(w(),null==f||f()):t===Ma.ESC&&d())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{w()},"aria-label":r,rows:1,autoSize:c}),null!==h?uc(h,{className:`${n}-edit-content-confirm`}):null))},PM=o(7965),RM=o.n(PM),MM=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))};var AM=e=>{let{copyConfig:n,children:r}=e;const[o,i]=t.useState(!1),[a,l]=t.useState(!1),c=t.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};n.format&&(u.format=n.format),t.useEffect((()=>s),[]);return{copied:o,copyLoading:a,onClick:Co((e=>MM(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof n.text?yield n.text():n.text;RM()(o||String(r)||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw l(!1),e}}))))}};function TM(e,n){return t.useMemo((()=>{const t=!!e;return[t,Object.assign(Object.assign({},n),t&&"object"==typeof e?e:null)]}),[e])}var qM=(e,n)=>{const r=t.useRef(!1);t.useEffect((()=>{r.current?e():r.current=!0}),n)};var LM=e=>{const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e})),n.current},DM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zM=t.forwardRef(((e,n)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=e,d=DM(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:h}=t.useContext(D),v=null!=s?s:p;let g=n;l&&(g=ao(n,l));const m=f("typography",r),[b,y,w]=NM(m),x=to()(m,null==h?void 0:h.className,{[`${m}-rtl`]:"rtl"===v},i,a,y,w),k=Object.assign(Object.assign({},null==h?void 0:h.style),u);return b(t.createElement(o,Object.assign({className:x,style:k,ref:g},d),c))}));var BM=zM,FM={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"},HM=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:FM}))};var WM=t.forwardRef(HM);function VM(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function UM(e,t,n){return!0===e||void 0===e?t:e||n&&t}var YM=e=>{const{prefixCls:n,copied:r,locale:o,iconOnly:i,tooltips:a,icon:l,loading:c,tabIndex:s,onCopy:u}=e,d=VM(a),f=VM(l),{copied:p,copy:h}=null!=o?o:{},v=r?UM(d[1],p):UM(d[0],h),g="string"==typeof v?v:r?p:h;return t.createElement(Fd,{key:"copy",title:v},t.createElement(yM,{className:to()(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:i}),onClick:u,"aria-label":g,tabIndex:s},r?UM(f[1],t.createElement(Cy,null),!0):UM(f[0],c?t.createElement(Pa,null):t.createElement(WM,null),!0)))};const KM=t.forwardRef(((e,n)=>{let{style:r,children:o}=e;const i=t.useRef(null);return t.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),t.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},o)}));function GM(e){const t=typeof e;return"string"===t||"number"===t}function XM(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(GM(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const QM={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ZM(e){const{enableMeasure:n,width:r,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=e,u=t.useMemo((()=>xc(o)),[o]),d=t.useMemo((()=>function(e){let t=0;return e.forEach((e=>{GM(e)?t+=String(e).length:t+=1})),t}(u)),[o]),f=t.useMemo((()=>i(u,!1)),[o]),[p,h]=t.useState(null),v=t.useRef(null),g=t.useRef(null),m=t.useRef(null),b=t.useRef(null),[y,w]=t.useState(!1),[x,k]=t.useState(0),[C,S]=t.useState(0);Xe((()=>{k(n&&r&&d?1:0)}),[r,o,a,n,u]),Xe((()=>{var e,t,n,r;if(1===x){const o=!!(null===(e=g.current)||void 0===e?void 0:e.isExceed());k(o?2:3),h(o?[0,d]:null),w(o);const i=(null===(t=g.current)||void 0===t?void 0:t.getHeight())||0,l=(1===a?0:(null===(n=m.current)||void 0===n?void 0:n.getHeight())||0)+((null===(r=b.current)||void 0===r?void 0:r.getHeight())||0),c=Math.max(i,l);S(c+1),s(o)}}),[x]);const E=p?Math.ceil((p[0]+p[1])/2):0;Xe((()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=v.current)||void 0===e?void 0:e.getHeight())||0)>C;let o=E;n-t==1&&(o=r?t:n),h(r?[t,o]:[o,n])}}),[p,E]);const O=t.useMemo((()=>{if(2!==x||!p||p[0]!==p[1]){const e=i(u,!1);return 3!==x&&0!==x?t.createElement("span",{style:Object.assign(Object.assign({},QM),{WebkitLineClamp:a})},e):e}return i(l?u:XM(u,p[0]),y)}),[l,x,p,u].concat(Y(c))),_={width:r,whiteSpace:"normal",margin:0,padding:0};return t.createElement(t.Fragment,null,O,1===x&&t.createElement(t.Fragment,null,t.createElement(KM,{style:Object.assign(Object.assign(Object.assign({},_),QM),{WebkitLineClamp:a}),ref:g},f),t.createElement(KM,{style:Object.assign(Object.assign(Object.assign({},_),QM),{WebkitLineClamp:a-1}),ref:m},f),t.createElement(KM,{style:Object.assign(Object.assign(Object.assign({},_),QM),{WebkitLineClamp:1}),ref:b},i([],!0))),2===x&&p&&p[0]!==p[1]&&t.createElement(KM,{style:Object.assign(Object.assign({},_),{top:400}),ref:v},i(XM(u,E),!0)))}var JM=e=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:i}=e;return(null==i?void 0:i.title)&&n?t.createElement(Fd,Object.assign({open:!!r&&void 0},i),o):o},eA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tA=t.forwardRef(((e,n)=>{var r,o,i;const{prefixCls:a,className:l,style:c,type:s,disabled:u,children:d,ellipsis:f,editable:p,copyable:h,component:v,title:g}=e,m=eA(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=t.useContext(D),[w]=Hd("Text"),x=t.useRef(null),k=t.useRef(null),C=b("typography",a),S=ac(m,["mark","code","delete","underline","strong","keyboard","italic"]),[E,O]=TM(p),[_,$]=Oo(!1,{value:O.editing}),{triggerType:j=["icon"]}=O,N=e=>{var t;e&&(null===(t=O.onStart)||void 0===t||t.call(O)),$(e)},I=LM(_);qM((()=>{var e;!_&&I&&(null===(e=k.current)||void 0===e||e.focus())}),[_]);const P=e=>{null==e||e.preventDefault(),N(!0)},R=e=>{var t;null===(t=O.onChange)||void 0===t||t.call(O,e),N(!1)},M=()=>{var e;null===(e=O.onCancel)||void 0===e||e.call(O),N(!1)},[A,T]=TM(h),{copied:q,copyLoading:L,onClick:z}=AM({copyConfig:T,children:d}),[B,F]=t.useState(!1),[H,W]=t.useState(!1),[V,U]=t.useState(!1),[Y,K]=t.useState(!1),[G,X]=t.useState(!0),[Q,Z]=TM(f,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[J,ee]=Oo(Z.defaultExpanded||!1,{value:Z.expanded}),te=Q&&(!J||"collapsible"===Z.expandable),{rows:ne=1}=Z,re=t.useMemo((()=>te&&(void 0!==Z.suffix||Z.onEllipsis||Z.expandable||E||A)),[te,Z,E,A]);Xe((()=>{Q&&!re&&(F(vM("webkitLineClamp")),W(vM("textOverflow")))}),[re,Q]);const[oe,ie]=t.useState(te),ae=t.useMemo((()=>!re&&(1===ne?H:B)),[re,H,B]);Xe((()=>{ie(ae&&te)}),[ae,te]);const le=te&&(oe?Y:V),ce=te&&1===ne&&oe,se=te&&ne>1&&oe,[ue,de]=t.useState(0),fe=e=>{var t;U(e),V!==e&&(null===(t=Z.onEllipsis)||void 0===t||t.call(Z,e))};t.useEffect((()=>{const e=x.current;if(Q&&oe&&e){const t=se?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;Y!==t&&K(t)}}),[Q,oe,d,se,G,ue]),t.useEffect((()=>{const e=x.current;if("undefined"==typeof IntersectionObserver||!e||!oe||!te)return;const t=new IntersectionObserver((()=>{X(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[oe,te]);let pe={};pe=!0===Z.tooltip?{title:null!==(r=O.text)&&void 0!==r?r:d}:t.isValidElement(Z.tooltip)?{title:Z.tooltip}:"object"==typeof Z.tooltip?Object.assign({title:null!==(o=O.text)&&void 0!==o?o:d},Z.tooltip):{title:Z.tooltip};const he=t.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Q&&!oe)return e(O.text)?O.text:e(d)?d:e(g)?g:e(pe.title)?pe.title:void 0}),[Q,oe,g,pe.title,le]);if(_)return t.createElement(IM,{value:null!==(i=O.text)&&void 0!==i?i:"string"==typeof d?d:"",onSave:R,onCancel:M,onEnd:O.onEnd,prefixCls:C,className:l,style:c,direction:y,component:v,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const ve=()=>{const{expandable:e,symbol:n}=Z;return e?J&&"collapsible"!==e?null:t.createElement("a",{key:"expand",className:`${C}-${J?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;ee(t.expanded),null===(n=Z.onExpand)||void 0===n||n.call(Z,e,t)})(e,{expanded:!J}),"aria-label":J?w.collapse:null==w?void 0:w.expand},"function"==typeof n?n(J):n):null},ge=()=>{if(!E)return;const{icon:e,tooltip:n,tabIndex:r}=O,o=xc(n)[0]||(null==w?void 0:w.edit),i="string"==typeof o?o:"";return j.includes("icon")?t.createElement(Fd,{key:"edit",title:!1===n?"":o},t.createElement(yM,{ref:k,className:`${C}-edit`,onClick:P,"aria-label":i,tabIndex:r},e||t.createElement(pM,{role:"button"}))):null},me=e=>[e&&ve(),ge(),A?t.createElement(YM,Object.assign({key:"copy"},T,{prefixCls:C,copied:q,locale:w,onCopy:z,loading:L,iconOnly:null==d})):null];return t.createElement(ku,{onResize:e=>{let{offsetWidth:t}=e;de(t)},disabled:!te},(r=>t.createElement(JM,{tooltipProps:pe,enableEllipsis:te,isEllipsis:le},t.createElement(BM,Object.assign({className:to()({[`${C}-${s}`]:s,[`${C}-disabled`]:u,[`${C}-ellipsis`]:Q,[`${C}-single-line`]:te&&1===ne&&!J,[`${C}-ellipsis-single-line`]:ce,[`${C}-ellipsis-multiple-line`]:se},l),prefixCls:a,style:Object.assign(Object.assign({},c),{WebkitLineClamp:se?ne:void 0}),component:v,ref:ao(r,x,n),direction:y,onClick:j.includes("text")?P:void 0,"aria-label":null==he?void 0:he.toString(),title:g},S),t.createElement(ZM,{enableMeasure:te&&!oe,text:d,rows:ne,width:ue,onEllipsis:fe,expanded:J,miscDeps:[q,J,L,E,A]},((n,r)=>function(e,n){let{mark:r,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=n;function d(e,n){n&&(u=t.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",r),d("kbd",c),d("i",s),u}(e,t.createElement(t.Fragment,null,n.length>0&&r&&!J&&he?t.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(e=>[e&&!J&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Z.suffix,me(e)])(r)))))))))}));var nA=tA,rA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var oA=t.forwardRef(((e,n)=>{var{ellipsis:r,rel:o}=e,i=rA(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,t.createElement(nA,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))}));var iA=t.forwardRef(((e,n)=>t.createElement(nA,Object.assign({ref:n},e,{component:"div"})))),aA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lA=(e,n)=>{var{ellipsis:r}=e,o=aA(e,["ellipsis"]);const i=t.useMemo((()=>r&&"object"==typeof r?ac(r,["expandable","rows"]):r),[r]);return t.createElement(nA,Object.assign({ref:n},o,{ellipsis:i,component:"span"}))};var cA=t.forwardRef(lA),sA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uA=[1,2,3,4,5];var dA=t.forwardRef(((e,n)=>{const{level:r=1}=e,o=sA(e,["level"]);let i;return i=uA.includes(r)?`h${r}`:"h1",t.createElement(nA,Object.assign({ref:n},o,{component:i}))}));const fA=BM;fA.Text=cA,fA.Link=oA,fA.Title=dA,fA.Paragraph=iA;var pA=fA;var hA=e=>{const{prefixCls:n,className:r,style:o,size:i,shape:a}=e,l=to()({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),c=to()({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),s=t.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return t.createElement("span",{className:to()(n,l,c,r),style:Object.assign(Object.assign({},s),o)})};const vA=new bn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),gA=e=>({height:e,lineHeight:Fe(e)}),mA=e=>Object.assign({width:e},gA(e)),bA=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:vA,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),yA=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},gA(e)),wA=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},mA(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},mA(o)),[`${t}${t}-sm`]:Object.assign({},mA(i))}},xA=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},yA(t,l)),[`${r}-lg`]:Object.assign({},yA(o,l)),[`${r}-sm`]:Object.assign({},yA(i,l))}},kA=e=>Object.assign({width:e},gA(e)),CA=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},kA(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},kA(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},SA=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},EA=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},gA(e)),OA=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},EA(r,l))},SA(e,r,n)),{[`${n}-lg`]:Object.assign({},EA(o,l))}),SA(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},EA(i,l))}),SA(e,i,`${n}-sm`))},_A=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:v,blockRadius:g,paragraphLiHeight:m,controlHeightXS:b,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},mA(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},mA(s)),[`${n}-sm`]:Object.assign({},mA(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},OA(e)),wA(e)),xA(e)),CA(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},bA(e))}}};var $A=Sl("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=cl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[_A(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var jA=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=t.useContext(D),s=c("skeleton",n),[u,d,f]=$A(s),p=ac(e,["prefixCls","className"]),h=to()(s,`${s}-element`,{[`${s}-active`]:i},r,o,d,f);return u(t.createElement("div",{className:h},t.createElement(hA,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:l},p))))};var NA=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=t.useContext(D),s=c("skeleton",n),[u,d,f]=$A(s),p=ac(e,["prefixCls"]),h=to()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,d,f);return u(t.createElement("div",{className:h},t.createElement(hA,Object.assign({prefixCls:`${s}-button`,size:l},p))))};var IA=e=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a}=e,{getPrefixCls:l}=t.useContext(D),c=l("skeleton",n),[s,u,d]=$A(c),f=to()(c,`${c}-element`,{[`${c}-active`]:a},r,o,u,d);return s(t.createElement("div",{className:f},t.createElement("div",{className:to()(`${c}-image`,r),style:i},t.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},t.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))};var PA=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=t.useContext(D),s=c("skeleton",n),[u,d,f]=$A(s),p=ac(e,["prefixCls"]),h=to()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,d,f);return u(t.createElement("div",{className:h},t.createElement(hA,Object.assign({prefixCls:`${s}-input`,size:l},p))))},RA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},MA=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:RA}))};var AA=t.forwardRef(MA);var TA=e=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a,children:l}=e,{getPrefixCls:c}=t.useContext(D),s=c("skeleton",n),[u,d,f]=$A(s),p=to()(s,`${s}-element`,{[`${s}-active`]:a},d,r,o,f),h=null!=l?l:t.createElement(AA,null);return u(t.createElement("div",{className:p},t.createElement("div",{className:to()(`${s}-image`,r),style:i},h)))};const qA=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var LA=e=>{const{prefixCls:n,className:r,style:o,rows:i}=e,a=Y(Array(i)).map(((n,r)=>t.createElement("li",{key:r,style:{width:qA(r,e)}})));return t.createElement("ul",{className:to()(n,r),style:o},a)};var DA=e=>{let{prefixCls:n,className:r,width:o,style:i}=e;return t.createElement("h3",{className:to()(n,r),style:Object.assign({width:o},i)})};function zA(e){return e&&"object"==typeof e?e:{}}const BA=e=>{const{prefixCls:n,loading:r,className:o,rootClassName:i,style:a,children:l,avatar:c=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:h,skeleton:v}=t.useContext(D),g=p("skeleton",n),[m,b,y]=$A(g);if(r||!("loading"in e)){const e=!!c,n=!!s,r=!!u;let l,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,r)),zA(c));l=t.createElement("div",{className:`${g}-header`},t.createElement(hA,Object.assign({},e)))}if(n||r){let o,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,r)),zA(s));o=t.createElement(DA,Object.assign({},n))}if(r){const r=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,n)),zA(u));i=t.createElement(LA,Object.assign({},r))}p=t.createElement("div",{className:`${g}-content`},o,i)}const w=to()(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:d,[`${g}-rtl`]:"rtl"===h,[`${g}-round`]:f},null==v?void 0:v.className,o,i,b,y);return m(t.createElement("div",{className:w,style:Object.assign(Object.assign({},null==v?void 0:v.style),a)},l,p))}return null!=l?l:null};BA.Button=NA,BA.Avatar=jA,BA.Input=PA,BA.Image=IA,BA.Node=TA;var FA=BA,HA={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"},WA=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:HA}))};var VA=t.forwardRef(WA),UA=(0,t.createContext)(null),YA=function(e){var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=V((0,t.useState)(),2),d=u[0],f=u[1],p=(0,t.useRef)(),h=t.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){ri.cancel(p.current)}return(0,t.useEffect)((function(){var e={};if(n)if(r){e.width=h(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),p.current=ri((function(){f(e)})),v}),[n,r,o,s,h]),{style:d}},KA={width:0,height:0,left:0,top:0};function GA(e,n){var r=t.useRef(e),o=V(t.useState({}),2)[1];return[r.current,function(e){var t="function"==typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var XA=Math.pow(.995,20);function QA(e){var n=V((0,t.useState)(0),2),r=n[0],o=n[1],i=(0,t.useRef)(0),a=(0,t.useRef)();return a.current=e,Ge((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var ZA={width:0,height:0,left:0,top:0,right:0};function JA(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function eT(e){return String(e).replace(/"/g,"TABS_DQ")}function tT(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var nT=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?t.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),rT=nT,oT=t.forwardRef((function(e,n){var r,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==v(a)||t.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?t.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null}));var iT=oT,aT=Ma.ESC,lT=Ma.TAB;var cT=(0,t.forwardRef)((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,t.useMemo)((function(){return"function"==typeof r?r():r}),[r]),l=ao(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:co(a)?l:void 0}))})),sT={adjustX:1,adjustY:1},uT=[0,0],dT={topLeft:{points:["bl","tl"],overflow:sT,offset:[0,-4],targetOffset:uT},top:{points:["bc","tc"],overflow:sT,offset:[0,-4],targetOffset:uT},topRight:{points:["br","tr"],overflow:sT,offset:[0,-4],targetOffset:uT},bottomLeft:{points:["tl","bl"],overflow:sT,offset:[0,4],targetOffset:uT},bottom:{points:["tc","bc"],overflow:sT,offset:[0,4],targetOffset:uT},bottomRight:{points:["tr","br"],overflow:sT,offset:[0,4],targetOffset:uT}},fT=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pT(e,n){var r,o=e.arrow,i=void 0!==o&&o,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,c=e.transitionName,s=e.animation,u=e.align,d=e.placement,f=void 0===d?"bottomLeft":d,p=e.placements,h=void 0===p?dT:p,v=e.getPopupContainer,g=e.showAction,m=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,x=e.visible,k=e.trigger,C=void 0===k?["hover"]:k,S=e.autoFocus,E=e.overlay,O=e.children,_=e.onVisibleChange,$=so(e,fT),j=V(t.useState(),2),N=j[0],I=j[1],P="visible"in e?x:N,R=t.useRef(null),M=t.useRef(null),A=t.useRef(null);t.useImperativeHandle(n,(function(){return R.current}));var T=function(e){I(e),null==_||_(e)};!function(e){var n=e.visible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=t.useRef(!1),c=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case aT:c();break;case lT:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};t.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&ri(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:P,triggerRef:A,onVisibleChange:T,autoFocus:S,overlayRef:M});var q,L,D,z=function(){return t.createElement(cT,{ref:M,overlay:E,prefixCls:l,arrow:i})},B=t.cloneElement(O,{className:to()(null===(r=O.props)||void 0===r?void 0:r.className,P&&(q=e.openClassName,void 0!==q?q:"".concat(l,"-open"))),ref:co(O)?ao(A,O.ref):void 0}),F=m;return F||-1===C.indexOf("contextMenu")||(F=["click"]),t.createElement(Xu,ut({builtinPlacements:h},$,{prefixCls:l,ref:R,popupClassName:to()(b,w({},"".concat(l,"-show-arrow"),i)),popupStyle:y,action:C,showAction:g,hideAction:F,popupPlacement:f,popupAlign:u,popupTransitionName:c,popupAnimation:s,popupVisible:P,stretch:(L=e.minOverlayWidthMatchTrigger,D=e.alignPoint,("minOverlayWidthMatchTrigger"in e?L:!D)?"minWidth":""),popup:"function"==typeof E?z:z(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;I(!1),n&&n(t)},getPopupContainer:v}),B)}var hT=t.forwardRef(pT),vT=t.createContext(null);function gT(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function mT(e){return gT(t.useContext(vT),e)}var bT=["children","locked"],yT=t.createContext(null);function wT(e){var n=e.children,r=e.locked,o=so(e,bT),i=t.useContext(yT),a=ce((function(){return e=o,t=k({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&me(e[1],t[1],!0))}));return t.createElement(yT.Provider,{value:a},n)}var xT=[],kT=t.createContext(null);function CT(){return t.useContext(kT)}var ST=t.createContext(xT);function ET(e){var n=t.useContext(ST);return t.useMemo((function(){return void 0!==e?[].concat(Y(n),[e]):n}),[n,e])}var OT=t.createContext(null),_T=t.createContext({});function $T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(lc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function jT(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Y(e.querySelectorAll("*")).filter((function(e){return $T(e,t)}));return $T(e,t)&&n.unshift(e),n}var NT=Ma.LEFT,IT=Ma.RIGHT,PT=Ma.UP,RT=Ma.DOWN,MT=Ma.ENTER,AT=Ma.ESC,TT=Ma.HOME,qT=Ma.END,LT=[PT,RT,NT,IT];function DT(e,t){return jT(e,!0).filter((function(e){return t.has(e)}))}function zT(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=DT(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var BT=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(gT(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function FT(e,n,r,o,i,a,l,c,s,u){var d=t.useRef(),f=t.useRef();f.current=n;var p=function(){ri.cancel(d.current)};return t.useEffect((function(){return function(){p()}}),[]),function(t){var h=t.which;if([].concat(LT,[MT,AT,TT,qT]).includes(h)){var v=a(),g=BT(v,o),m=g,b=m.elements,y=m.key2element,x=m.element2key,k=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),C=x.get(k),S=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===MT)return{inlineTrigger:!0};var s=w(w({},PT,i),RT,a),u=w(w(w(w({},NT,n?a:i),IT,n?i:a),RT,l),MT,l),d=w(w(w(w(w(w({},PT,i),RT,a),MT,l),AT,c),NT,n?l:c),IT,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(C,!0).length,r,h);if(!S&&h!==TT&&h!==qT)return;(LT.includes(h)||[TT,qT].includes(h))&&t.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=ri((function(){f.current===r&&t.focus()}))}};if([TT,qT].includes(h)||S.sibling||!k){var O,_,$=DT(O=k&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(k):i.current,b);_=h===TT?$[0]:h===qT?$[$.length-1]:zT(O,b,k,S.offset),E(_)}else if(S.inlineTrigger)s(C);else if(S.offset>0)s(C,!0),p(),d.current=ri((function(){g=BT(v,o);var e=k.getAttribute("aria-controls"),t=zT(document.getElementById(e),g.elements);E(t)}),5);else if(S.offset<0){var j=l(C,!0),N=j[j.length-2],I=y.get(N);s(N,!1),E(I)}}null==u||u(t)}}var HT="__RC_UTIL_PATH_SPLIT__",WT=function(e){return e.join(HT)},VT="rc-menu-more";function UT(){var e=V(t.useState({}),2)[1],n=(0,t.useRef)(new Map),r=(0,t.useRef)(new Map),o=V(t.useState([]),2),i=o[0],a=o[1],l=(0,t.useRef)(0),c=(0,t.useRef)(!1),s=(0,t.useCallback)((function(t,o){var i=WT(o);r.current.set(i,t),n.current.set(t,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,t.useCallback)((function(e,t){var o=WT(t);r.current.delete(o),n.current.delete(e)}),[]),d=(0,t.useCallback)((function(e){a(e)}),[]),f=(0,t.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(HT);return t&&i.includes(o[0])&&o.unshift(VT),o}),[i]),p=(0,t.useCallback)((function(e,t){return e.some((function(e){return f(e,!0).includes(t)}))}),[f]),h=(0,t.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(HT),o=new Set;return Y(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return t.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=Y(n.current.keys());return i.length&&e.push(VT),e},getSubPathKeys:h}}function YT(e){var n=t.useRef(e);n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return e?r:void 0}var KT=Math.random().toFixed(5).toString().slice(2),GT=0;function XT(e,n,r,o){var i=t.useContext(yT),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return n||(s.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function QT(e){var n=t.useContext(yT),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function ZT(e){var n,r=e.icon,o=e.props,i=e.children;return null===r||!1===r?null:("function"==typeof r?n=t.createElement(r,k({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var JT=["item"];function eq(e){var t=e.item,n=so(e,JT);return Object.defineProperty(n,"item",{get:function(){return ge(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var tq=["title","attribute","elementRef"],nq=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],rq=["active"],oq=function(e){vo(r,e);var n=wo(r);function r(){return be(this,r),n.apply(this,arguments)}return we(r,[{key:"render",value:function(){var e=this.props,n=e.title,r=e.attribute,o=e.elementRef,i=ac(so(e,tq),["eventKey","popupClassName","popupOffset","onTitleClick"]);return ge(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(lm.Item,ut({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),r}(t.Component),iq=t.forwardRef((function(e,n){var r=e.style,o=e.className,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.itemIcon,c=e.children,s=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,h=e.onFocus,v=so(e,nq),g=mT(i),m=t.useContext(yT),b=m.prefixCls,y=m.onItemClick,x=m.disabled,C=m.overflowDisabled,S=m.itemIcon,E=m.selectedKeys,O=m.onActive,_=t.useContext(_T)._internalRenderMenuItem,$="".concat(b,"-item"),j=t.useRef(),N=t.useRef(),I=x||a,P=lo(n,N),R=ET(i);var M=function(e){return{key:i,keyPath:Y(R).reverse(),item:j.current,domEvent:e}},A=l||S,T=XT(i,I,u,d),q=T.active,L=so(T,rq),D=E.includes(i),z=QT(R.length),B={};"option"===e.role&&(B["aria-selected"]=D);var F=t.createElement(oq,ut({ref:j,elementRef:P,role:null===s?"none":s||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&g?null:g},v,L,B,{component:"li","aria-disabled":a,style:k(k({},z),r),className:to()($,w(w(w({},"".concat($,"-active"),q),"".concat($,"-selected"),D),"".concat($,"-disabled"),I),o),onClick:function(e){if(!I){var t=M(e);null==f||f(eq(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===Ma.ENTER){var t=M(e);null==f||f(eq(t)),y(t)}},onFocus:function(e){O(i),null==h||h(e)}}),c,t.createElement(ZT,{props:k(k({},e),{},{isSelected:D}),icon:A}));return _&&(F=_(F,e,{selected:D})),F}));function aq(e,n){var r=e.eventKey,o=CT(),i=ET(r);return t.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:t.createElement(iq,ut({},e,{ref:n}))}var lq=t.forwardRef(aq),cq=["className","children"],sq=function(e,n){var r=e.className,o=e.children,i=so(e,cq),a=t.useContext(yT),l=a.prefixCls,c=a.mode,s=a.rtl;return t.createElement("ul",ut({className:to()(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},uq=t.forwardRef(sq);uq.displayName="SubMenuList";var dq=uq;function fq(e,n){return xc(e).map((function(e,r){if(t.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat(Y(n),[r]).join("-")));var c={key:l,eventKey:l};return t.cloneElement(e,c)}return e}))}var pq={adjustX:1,adjustY:1},hq={topLeft:{points:["bl","tl"],overflow:pq},topRight:{points:["br","tr"],overflow:pq},bottomLeft:{points:["tl","bl"],overflow:pq},bottomRight:{points:["tr","br"],overflow:pq},leftTop:{points:["tr","tl"],overflow:pq},leftBottom:{points:["br","bl"],overflow:pq},rightTop:{points:["tl","tr"],overflow:pq},rightBottom:{points:["bl","br"],overflow:pq}},vq={topLeft:{points:["bl","tl"],overflow:pq},topRight:{points:["br","tr"],overflow:pq},bottomLeft:{points:["tl","bl"],overflow:pq},bottomRight:{points:["tr","br"],overflow:pq},rightTop:{points:["tr","tl"],overflow:pq},rightBottom:{points:["br","bl"],overflow:pq},leftTop:{points:["tl","tr"],overflow:pq},leftBottom:{points:["bl","br"],overflow:pq}};function gq(e,t,n){return t||(n?n[e]||n.other:void 0)}var mq={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bq(e){var n=e.prefixCls,r=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=t.useContext(yT),p=f.getPopupContainer,h=f.rtl,v=f.subMenuOpenDelay,g=f.subMenuCloseDelay,m=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,C=f.motion,S=f.defaultMotions,E=V(t.useState(!1),2),O=E[0],_=E[1],$=k(k({},h?vq:hq),m),j=mq[u],N=gq(u,C,S),I=t.useRef(N);"inline"!==u&&(I.current=N);var P=k(k({},I.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=t.useRef();return t.useEffect((function(){return R.current=ri((function(){_(r)})),function(){ri.cancel(R.current)}}),[r]),t.createElement(Xu,{prefixCls:n,popupClassName:to()("".concat(n,"-popup"),w({},"".concat(n,"-rtl"),h),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:$,popupPlacement:j,popupVisible:O,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:y,popupMotion:P,fresh:!0},o)}function yq(e){var n=e.id,r=e.open,o=e.keyPath,i=e.children,a="inline",l=t.useContext(yT),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=t.useRef(!1);p.current=f===a;var h=V(t.useState(!p.current),2),v=h[0],g=h[1],m=!!p.current&&r;t.useEffect((function(){p.current&&g(!1)}),[f]);var b=k({},gq(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||g(!0),null==y?void 0:y(e)},v?null:t.createElement(wT,{mode:a,locked:!p.current},t.createElement(xi,ut({visible:m},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var r=e.className,o=e.style;return t.createElement(dq,{id:n,className:r,style:o},i)})))}var wq=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],xq=["active"],kq=t.forwardRef((function(e,n){var r=e.style,o=e.className,i=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,v=e.onClick,g=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,C=so(e,wq),S=mT(a),E=t.useContext(yT),O=E.prefixCls,_=E.mode,$=E.openKeys,j=E.disabled,N=E.overflowDisabled,I=E.activeKey,P=E.selectedKeys,R=E.itemIcon,M=E.expandIcon,A=E.onItemClick,T=E.onOpenChange,q=E.onActive,L=t.useContext(_T)._internalRenderSubMenuItem,D=t.useContext(OT).isSubPathKey,z=ET(),B="".concat(O,"-submenu"),F=j||l,H=t.useRef(),W=t.useRef();var U=null!=u?u:R,Y=null!=d?d:M,K=$.includes(a),G=!N&&K,X=D(P,a),Q=XT(a,F,y,x),Z=Q.active,J=so(Q,xq),ee=V(t.useState(!1),2),te=ee[0],ne=ee[1],re=function(e){F||ne(e)},oe=t.useMemo((function(){return Z||"inline"!==_&&(te||D([I],a))}),[_,Z,I,te,a,D]),ie=QT(z.length),ae=YT((function(e){null==v||v(eq(e)),A(e)})),le=S&&"".concat(S,"-popup"),ce=t.createElement("div",ut({role:"menuitem",style:ie,className:"".concat(B,"-title"),tabIndex:F?null:-1,ref:H,title:"string"==typeof i?i:null,"data-menu-id":N&&S?null:S,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":F,onClick:function(e){F||(null==b||b({key:a,domEvent:e}),"inline"===_&&T(a,!K))},onFocus:function(){q(a)}},J),i,t.createElement(ZT,{icon:"horizontal"!==_?Y:void 0,props:k(k({},e),{},{isOpen:G,isSubMenu:!0})},t.createElement("i",{className:"".concat(B,"-arrow")}))),se=t.useRef(_);if("inline"!==_&&z.length>1?se.current="vertical":se.current=_,!N){var ue=se.current;ce=t.createElement(bq,{mode:ue,prefixCls:B,visible:!c&&G&&"inline"!==_,popupClassName:f,popupOffset:p,popupStyle:h,popup:t.createElement(wT,{mode:"horizontal"===ue?"vertical":ue},t.createElement(dq,{id:le,ref:W},s)),disabled:F,onVisibleChange:function(e){"inline"!==_&&T(a,e)}},ce)}var de=t.createElement(lm.Item,ut({ref:n,role:"none"},C,{component:"li",style:r,className:to()(B,"".concat(B,"-").concat(_),o,w(w(w(w({},"".concat(B,"-open"),G),"".concat(B,"-active"),oe),"".concat(B,"-selected"),X),"".concat(B,"-disabled"),F)),onMouseEnter:function(e){re(!0),null==g||g({key:a,domEvent:e})},onMouseLeave:function(e){re(!1),null==m||m({key:a,domEvent:e})}}),ce,!N&&t.createElement(yq,{id:le,open:G,keyPath:z},s));return L&&(de=L(de,e,{selected:X,active:oe,open:G,disabled:F})),t.createElement(wT,{onItemClick:ae,mode:"horizontal"===_?"vertical":_,itemIcon:U,expandIcon:Y},de)}));var Cq=t.forwardRef((function(e,n){var r,o=e.eventKey,i=e.children,a=ET(o),l=fq(i,a),c=CT();return t.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),r=c?l:t.createElement(kq,ut({ref:n},e),l),t.createElement(ST.Provider,{value:a},r)}));function Sq(e){var n=e.className,r=e.style,o=t.useContext(yT).prefixCls;return CT()?null:t.createElement("li",{role:"separator",className:to()("".concat(o,"-item-divider"),n),style:r})}var Eq=["className","title","eventKey","children"],Oq=t.forwardRef((function(e,n){var r=e.className,o=e.title,i=(e.eventKey,e.children),a=so(e,Eq),l=t.useContext(yT).prefixCls,c="".concat(l,"-item-group");return t.createElement("li",ut({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:to()(c,r)}),t.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),t.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}));var _q=t.forwardRef((function(e,n){var r=e.eventKey,o=fq(e.children,ET(r));return CT()?o:t.createElement(Oq,ut({ref:n},ac(e,["warnKey"])),o)})),$q=["label","children","key","type"];function jq(e,n){var r=n.item,o=n.group,i=n.submenu,a=n.divider;return(e||[]).map((function(e,l){if(e&&"object"===v(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=so(c,$q),h=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?t.createElement(o,ut({key:h},p,{title:s}),jq(u,n)):t.createElement(i,ut({key:h},p,{title:s}),jq(u,n)):"divider"===f?t.createElement(a,ut({key:h},p)):t.createElement(r,ut({key:h},p),s)}return null})).filter((function(e){return e}))}function Nq(e,t,n,r){var o=e,i=k({divider:Sq,item:lq,group:_q,submenu:Cq},r);return t&&(o=jq(t,i)),fq(o,n)}var Iq=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Pq=[],Rq=t.forwardRef((function(e,n){var r,o=e,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,c=o.style,s=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,h=o.direction,v=o.id,g=o.mode,m=void 0===g?"vertical":g,b=o.inlineCollapsed,y=o.disabled,x=o.disabledOverflow,C=o.subMenuOpenDelay,E=void 0===C?.1:C,O=o.subMenuCloseDelay,_=void 0===O?.1:O,$=o.forceSubMenuRender,j=o.defaultOpenKeys,N=o.openKeys,I=o.activeKey,P=o.defaultActiveFirst,R=o.selectable,M=void 0===R||R,A=o.multiple,T=void 0!==A&&A,q=o.defaultSelectedKeys,L=o.selectedKeys,D=o.onSelect,z=o.onDeselect,B=o.inlineIndent,F=void 0===B?24:B,H=o.motion,W=o.defaultMotions,U=o.triggerSubMenuAction,K=void 0===U?"hover":U,G=o.builtinPlacements,X=o.itemIcon,Q=o.expandIcon,Z=o.overflowedIndicator,J=void 0===Z?"...":Z,ee=o.overflowedIndicatorPopupClassName,te=o.getPopupContainer,ne=o.onClick,re=o.onOpenChange,oe=o.onKeyDown,ie=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),ae=o._internalRenderSubMenuItem,le=o._internalComponents,ce=so(o,Iq),se=V(t.useMemo((function(){return[Nq(p,f,Pq,le),Nq(p,f,Pq,{})]}),[p,f,le]),2),ue=se[0],de=se[1],fe=V(t.useState(!1),2),pe=fe[0],he=fe[1],ve=t.useRef(),ge=function(e){var n=V(Oo(e,{value:e}),2),r=n[0],o=n[1];return t.useEffect((function(){GT+=1;var e="".concat(KT,"-").concat(GT);o("rc-menu-uuid-".concat(e))}),[]),r}(v),be="rtl"===h;var ye=Oo(j,{value:N,postState:function(e){return e||Pq}}),we=V(ye,2),xe=we[0],ke=we[1],Ce=function(e){function t(){ke(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,S.flushSync)(t):t()},Se=V(t.useState(xe),2),Ee=Se[0],Oe=Se[1],_e=t.useRef(!1),$e=V(t.useMemo((function(){return"inline"!==m&&"vertical"!==m||!b?[m,!1]:["vertical",b]}),[m,b]),2),je=$e[0],Ne=$e[1],Ie="inline"===je,Pe=V(t.useState(je),2),Re=Pe[0],Me=Pe[1],Ae=V(t.useState(Ne),2),Te=Ae[0],qe=Ae[1];t.useEffect((function(){Me(je),qe(Ne),_e.current&&(Ie?ke(Ee):Ce(Pq))}),[je,Ne]);var Le=V(t.useState(0),2),De=Le[0],ze=Le[1],Be=De>=ue.length-1||"horizontal"!==Re||x;t.useEffect((function(){Ie&&Oe(xe)}),[xe]),t.useEffect((function(){return _e.current=!0,function(){_e.current=!1}}),[]);var Fe=UT(),He=Fe.registerPath,We=Fe.unregisterPath,Ve=Fe.refreshOverflowKeys,Ue=Fe.isSubPathKey,Ye=Fe.getKeyPath,Ke=Fe.getKeys,Ge=Fe.getSubPathKeys,Xe=t.useMemo((function(){return{registerPath:He,unregisterPath:We}}),[He,We]),Qe=t.useMemo((function(){return{isSubPathKey:Ue}}),[Ue]);t.useEffect((function(){Ve(Be?Pq:ue.slice(De+1).map((function(e){return e.key})))}),[De,Be]);var Ze=V(Oo(I||P&&(null===(r=ue[0])||void 0===r?void 0:r.key),{value:I}),2),Je=Ze[0],et=Ze[1],tt=YT((function(e){et(e)})),nt=YT((function(){et(void 0)}));(0,t.useImperativeHandle)(n,(function(){return{list:ve.current,focus:function(e){var t,n,r=Ke(),o=BT(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=DT(ve.current,i),s=null!=Je?Je:c[0]?l.get(c[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var rt=Oo(q||[],{value:L,postState:function(e){return Array.isArray(e)?e:null==e?Pq:[e]}}),ot=V(rt,2),it=ot[0],at=ot[1],lt=YT((function(e){null==ne||ne(eq(e)),function(e){if(M){var t,n=e.key,r=it.includes(n);t=T?r?it.filter((function(e){return e!==n})):[].concat(Y(it),[n]):[n],at(t);var o=k(k({},e),{},{selectedKeys:t});r?null==z||z(o):null==D||D(o)}!T&&xe.length&&"inline"!==Re&&Ce(Pq)}(e)})),ct=YT((function(e,t){var n=xe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=Ge(e);n=n.filter((function(e){return!r.has(e)}))}me(xe,n,!0)||Ce(n,!0)})),st=FT(Re,Je,be,ge,ve,Ke,Ye,et,(function(e,t){var n=null!=t?t:!xe.includes(e);ct(e,n)}),oe);t.useEffect((function(){he(!0)}),[]);var dt=t.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}}),[ie,ae]),ft="horizontal"!==Re||x?ue:ue.map((function(e,n){return t.createElement(wT,{key:e.key,overflowDisabled:n>De},e)})),pt=t.createElement(lm,ut({id:v,ref:ve,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:lq,className:to()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Re),s,w(w({},"".concat(a,"-inline-collapsed"),Te),"".concat(a,"-rtl"),be),l),dir:h,style:c,role:"menu",tabIndex:d,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var n=e.length,r=n?ue.slice(-n):null;return t.createElement(Cq,{eventKey:VT,title:J,disabled:Be,internalPopupClose:0===n,popupClassName:ee},r)},maxCount:"horizontal"!==Re||x?lm.INVALIDATE:lm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ze(e)},onKeyDown:st},ce));return t.createElement(_T.Provider,{value:dt},t.createElement(vT.Provider,{value:ge},t.createElement(wT,{prefixCls:a,rootClassName:l,mode:Re,openKeys:xe,rtl:be,disabled:y,motion:pe?H:null,defaultMotions:pe?W:null,activeKey:Je,onActive:tt,onInactive:nt,selectedKeys:it,inlineIndent:F,subMenuOpenDelay:E,subMenuCloseDelay:_,forceSubMenuRender:$,builtinPlacements:G,triggerSubMenuAction:K,getPopupContainer:te,itemIcon:X,expandIcon:Q,onItemClick:lt,onOpenChange:ct},t.createElement(OT.Provider,{value:Qe},pt),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(kT.Provider,{value:Xe},de)))))})),Mq=Rq;Mq.Item=lq,Mq.SubMenu=Cq,Mq.ItemGroup=_q,Mq.Divider=Sq;var Aq=Mq,Tq=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.more,s=void 0===c?{}:c,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,g=e.onTabClick,m=e.getPopupContainer,b=e.popupClassName,y=V((0,t.useState)(!1),2),x=y[0],k=y[1],C=V((0,t.useState)(null),2),S=C[0],E=C[1],O=s.icon,_=void 0===O?"More":O,$="".concat(o,"-more-popup"),j="".concat(r,"-dropdown"),N=null!==S?"".concat($,"-").concat(S):null,I=null==a?void 0:a.dropdownAriaLabel;var P=t.createElement(Aq,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),k(!1)},prefixCls:"".concat(j,"-menu"),id:$,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[S],"aria-label":void 0!==I?I:"expanded dropdown"},i.map((function(e){var n=e.closable,r=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=tT(n,i,f,r);return t.createElement(lq,{key:a,id:"".concat($,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},t.createElement("span",null,l),c&&t.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},i||f.removeIcon||"×"))})));function R(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===S}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void E(a.key)}}(0,t.useEffect)((function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[S]),(0,t.useEffect)((function(){x||E(null)}),[x]);var M=w({},h?"marginRight":"marginLeft",p);i.length||(M.visibility="hidden",M.order=1);var A=to()(w({},"".concat(j,"-rtl"),h)),T=l?null:t.createElement(hT,ut({prefixCls:j,overlay:P,visible:!!i.length&&x,onVisibleChange:k,overlayClassName:to()(A,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},s),t.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:M,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$,id:"".concat(o,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case Ma.UP:R(-1),e.preventDefault();break;case Ma.DOWN:R(1),e.preventDefault();break;case Ma.ESC:k(!1);break;case Ma.SPACE:case Ma.ENTER:null!==S&&g(S,e)}else[Ma.DOWN,Ma.SPACE,Ma.ENTER].includes(t)&&(k(!0),e.preventDefault())}},_));return t.createElement("div",{className:to()("".concat(r,"-nav-operations"),d),style:u,ref:n},T,t.createElement(rT,{prefixCls:r,locale:a,editable:f}))})),qq=t.memo(Tq,(function(e,t){return t.tabMoving})),Lq=function(e){var n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,p=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,m=e.style,b="".concat(n,"-tab"),y=tT(d,s,h,c);function x(e){c||v(e)}var k=t.useMemo((function(){return u&&"string"==typeof l?t.createElement("span",null,l):l}),[l,u]),C=t.createElement("div",{key:a,"data-node-key":eT(a),className:to()(b,w(w(w({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:m,onClick:x},t.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Ma.SPACE,Ma.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:g},u&&t.createElement("span",{className:"".concat(b,"-icon")},u),l&&k),y&&t.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},s||h.removeIcon||"×"));return f?f(C):C},Dq=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},zq=function(e,t){return e[t?0:1]},Bq=t.forwardRef((function(e,n){var r,o,i,a,l,c=e.className,s=e.style,u=e.id,d=e.animated,f=e.activeKey,p=e.rtl,h=e.extra,v=e.editable,g=e.locale,m=e.tabPosition,b=e.tabBarGutter,y=e.children,x=e.onTabClick,C=e.onTabScroll,S=e.indicator,E=t.useContext(UA),O=E.prefixCls,_=E.tabs,$=(0,t.useRef)(null),j=(0,t.useRef)(null),N=(0,t.useRef)(null),I=(0,t.useRef)(null),P=(0,t.useRef)(null),R=(0,t.useRef)(null),M=(0,t.useRef)(null),A="top"===m||"bottom"===m,T=GA(0,(function(e,t){A&&C&&C({direction:e>t?"left":"right"})})),q=V(T,2),L=q[0],D=q[1],z=GA(0,(function(e,t){!A&&C&&C({direction:e>t?"top":"bottom"})})),B=V(z,2),F=B[0],H=B[1],W=V((0,t.useState)([0,0]),2),U=W[0],K=W[1],G=V((0,t.useState)([0,0]),2),X=G[0],Q=G[1],Z=V((0,t.useState)([0,0]),2),J=Z[0],ee=Z[1],te=V((0,t.useState)([0,0]),2),ne=te[0],re=te[1],oe=(r=new Map,o=(0,t.useRef)([]),i=V((0,t.useState)({}),2)[1],a=(0,t.useRef)("function"==typeof r?r():r),l=QA((function(){var e=a.current;o.current.forEach((function(t){e=t(e)})),o.current=[],a.current=e,i({})})),[a.current,function(e){o.current.push(e),l()}]),ie=V(oe,2),ae=ie[0],le=ie[1],ce=function(e,n,r){return(0,t.useMemo)((function(){for(var t,r=new Map,o=n.get(null===(t=e[0])||void 0===t?void 0:t.key)||KA,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=n.get(c);s||(s=n.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||KA);var u=r.get(c)||k({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),n,r])}(_,ae,X[0]),se=zq(U,A),ue=zq(X,A),de=zq(J,A),fe=zq(ne,A),pe=se<ue+de,he=pe?se-fe:se-de,ve="".concat(O,"-nav-operations-hidden"),ge=0,me=0;function be(e){return e<ge?ge:e>me?me:e}A&&p?(ge=0,me=Math.max(0,ue-he)):(ge=Math.min(0,he-ue),me=0);var ye=(0,t.useRef)(null),we=V((0,t.useState)(),2),xe=we[0],ke=we[1];function Ce(){ke(Date.now())}function Se(){ye.current&&clearTimeout(ye.current)}!function(e,n){var r=V((0,t.useState)(),2),o=r[0],i=r[1],a=V((0,t.useState)(0),2),l=a[0],c=a[1],s=V((0,t.useState)(0),2),u=s[0],d=s[1],f=V((0,t.useState)(),2),p=f[0],h=f[1],v=(0,t.useRef)(),g=(0,t.useRef)(),m=(0,t.useRef)(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var s=r-o.x,u=a-o.y;n(s,u);var f=Date.now();c(f),d(f-l),h({x:s,y:u})}},onTouchEnd:function(){if(o&&(i(null),h(null),p)){var e=p.x/u,t=p.y/u,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;v.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(v.current):n(20*(l*=XA),20*(c*=XA))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===g.current?t:r:i>a?(o=t,g.current="x"):(o=r,g.current="y"),n(-o,-o)&&e.preventDefault()}},t.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(I,(function(e,t){function n(e,t){e((function(e){return be(e+t)}))}return!!pe&&(A?n(D,e):n(H,t),Se(),Ce(),!0)})),(0,t.useEffect)((function(){return Se(),xe&&(ye.current=setTimeout((function(){ke(0)}),100)),Se}),[xe]);var Ee=function(e,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),(0,t.useMemo)((function(){if(!d.length)return[0,0];for(var t=d.length,r=t,o=0;o<t;o+=1){var i=e.get(d[o].key)||ZA;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=t-1;l>=0;l-=1)if((e.get(d[l].key)||ZA)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[e,n,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ce,he,A?L:F,ue,de,fe,k(k({},e),{},{tabs:_})),Oe=V(Ee,2),_e=Oe[0],$e=Oe[1],je=Co((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){var n=L;p?t.right<L?n=t.right:t.right+t.width>L+he&&(n=t.right+t.width-he):t.left<-L?n=-t.left:t.left+t.width>-L+he&&(n=-(t.left+t.width-he)),H(0),D(be(n))}else{var r=F;t.top<-F?r=-t.top:t.top+t.height>-F+he&&(r=-(t.top+t.height-he)),D(0),H(be(r))}})),Ne={};"top"===m||"bottom"===m?Ne[p?"marginRight":"marginLeft"]=b:Ne.marginTop=b;var Ie=_.map((function(e,n){var r=e.key;return t.createElement(Lq,{id:u,prefixCls:O,key:r,tab:e,style:0===n?void 0:Ne,closable:e.closable,editable:v,active:r===f,renderWrapper:y,removeAriaLabel:null==g?void 0:g.removeAriaLabel,onClick:function(e){x(r,e)},onFocus:function(){je(r),Ce(),I.current&&(p||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Pe=function(){return le((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return _.forEach((function(e){var r,o=e.key,i=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(eT(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=V(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,t.useEffect)((function(){Pe()}),[_.map((function(e){return e.key})).join("_")]);var Re=QA((function(){var e=Dq($),t=Dq(j),n=Dq(N);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Dq(M);ee(r);var o=Dq(R);re(o);var i=Dq(P);Q([i[0]-r[0],i[1]-r[1]]),Pe()})),Me=_.slice(0,_e),Ae=_.slice($e+1),Te=[].concat(Y(Me),Y(Ae)),qe=ce.get(f),Le=YA({activeTabOffset:qe,horizontal:A,indicator:S,rtl:p}).style;(0,t.useEffect)((function(){je()}),[f,ge,me,JA(qe),JA(ce),A]),(0,t.useEffect)((function(){Re()}),[p]);var De,ze,Be,Fe,He=!!Te.length,We="".concat(O,"-nav-wrap");return A?p?(ze=L>0,De=L!==me):(De=L<0,ze=L!==ge):(Be=F<0,Fe=F!==ge),t.createElement(ku,{onResize:Re},t.createElement("div",{ref:lo(n,$),role:"tablist",className:to()("".concat(O,"-nav"),c),style:s,onKeyDown:function(){Ce()}},t.createElement(iT,{ref:j,position:"left",extra:h,prefixCls:O}),t.createElement(ku,{onResize:Re},t.createElement("div",{className:to()(We,w(w(w(w({},"".concat(We,"-ping-left"),De),"".concat(We,"-ping-right"),ze),"".concat(We,"-ping-top"),Be),"".concat(We,"-ping-bottom"),Fe)),ref:I},t.createElement(ku,{onResize:Re},t.createElement("div",{ref:P,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(F,"px)"),transition:xe?"none":void 0}},Ie,t.createElement(rT,{ref:M,prefixCls:O,locale:g,editable:v,style:k(k({},0===Ie.length?void 0:Ne),{},{visibility:He?"hidden":null})}),t.createElement("div",{className:to()("".concat(O,"-ink-bar"),w({},"".concat(O,"-ink-bar-animated"),d.inkBar)),style:Le}))))),t.createElement(qq,ut({},e,{removeAriaLabel:null==g?void 0:g.removeAriaLabel,ref:R,prefixCls:O,tabs:Te,className:!He&&ve,tabMoving:!!xe})),t.createElement(iT,{ref:N,position:"right",extra:h,prefixCls:O})))})),Fq=Bq,Hq=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return t.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:to()(r,l&&"".concat(r,"-active"),o),ref:n},s)}));var Wq=Hq,Vq=["renderTabBar"],Uq=["label","key"];var Yq=function(e){var n=e.renderTabBar,r=so(e,Vq),o=t.useContext(UA).tabs;if(n){var i=k(k({},r),{},{panes:o.map((function(e){var n=e.label,r=e.key,o=so(e,Uq);return t.createElement(Wq,ut({tab:n,key:r,tabKey:r},o))}))});return n(i,Fq)}return t.createElement(Fq,r)},Kq=["key","forceRender","style","className","destroyInactiveTabPane"],Gq=function(e){var n=e.id,r=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=t.useContext(UA),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return t.createElement("div",{className:to()("".concat(c,"-content-holder"))},t.createElement("div",{className:to()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),w({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,p=so(e,Kq),h=i===r;return t.createElement(xi,ut({key:i,visible:h,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,r){var o=e.style,a=e.className;return t.createElement(Wq,ut({},p,{prefixCls:d,id:n,tabKey:i,animated:u,active:h,style:k(k({},c),o),className:to()(s,a),ref:r}))}))}))))};var Xq=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Qq=0,Zq=t.forwardRef((function(e,n){var r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,c=e.direction,s=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,g=e.tabBarGutter,m=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,x=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,E=e.onChange,O=e.onTabClick,_=e.onTabScroll,$=e.getPopupContainer,j=e.popupClassName,N=e.indicator,I=so(e,Xq),P=t.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===v(e)&&"key"in e}))}),[l]),R="rtl"===c,M=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}:k({inkBar:!0},"object"===v(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),A=V((0,t.useState)(!1),2),T=A[0],q=A[1];(0,t.useEffect)((function(){q(Ou())}),[]);var L=V(Oo((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:s,defaultValue:u}),2),D=L[0],z=L[1],B=V((0,t.useState)((function(){return P.findIndex((function(e){return e.key===D}))})),2),F=B[0],H=B[1];(0,t.useEffect)((function(){var e,t=P.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(F,P.length-1)),z(null===(e=P[t])||void 0===e?void 0:e.key));H(t)}),[P.map((function(e){return e.key})).join("_"),D,F]);var W=V(Oo(null,{value:r}),2),U=W[0],Y=W[1];(0,t.useEffect)((function(){r||(Y("rc-tabs-".concat(Qq)),Qq+=1)}),[]);var K={id:U,activeKey:D,animated:M,tabPosition:h,rtl:R,mobile:T},G=k(k({},K),{},{editable:d,locale:y,more:x,tabBarGutter:g,onTabClick:function(e,t){null==O||O(e,t);var n=e!==D;z(e),n&&(null==E||E(e))},onTabScroll:_,extra:b,style:m,panes:null,getPopupContainer:$,popupClassName:j,indicator:N});return t.createElement(UA.Provider,{value:{tabs:P,prefixCls:i}},t.createElement("div",ut({ref:n,id:r,className:to()(i,"".concat(i,"-").concat(h),w(w(w({},"".concat(i,"-mobile"),T),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),R),a)},I),t.createElement(Yq,ut({},G,{renderTabBar:S})),t.createElement(Gq,ut({destroyInactiveTabPane:C},K,{animated:M}))))}));var Jq=Zq;const eL={motionAppear:!1,motionEnter:!0,motionLeave:!0};var tL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var nL=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}`}}}}},[Wb(e,"slide-up"),Wb(e,"slide-down")]]};const rL=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Fe(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:Fe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Fe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Fe(e.borderRadiusLG)} 0 0 ${Fe(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 ${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},oL=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ti(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:`${Fe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ai),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Fe(e.paddingXXS)} ${Fe(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"}}})}})}},iL=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Fe(e.lineWidth)} ${e.lineType} ${r}`,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:l(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:Fe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Fe(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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},aL=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,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 ${Fe(e.borderRadius)} ${Fe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Fe(e.borderRadius)} ${Fe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Fe(e.borderRadius)} ${Fe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Fe(e.borderRadius)} 0 0 ${Fe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},lL=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{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:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},cL=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Fe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Fe(e.marginXS)},marginLeft:{_skip_check_:!0,value:Fe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},sL=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ti(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${Fe(e.paddingXS)}`,background:"transparent",border:`${Fe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Fe(e.borderRadiusLG)} ${Fe(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}},zi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lL(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"}}}}}};var uL=Sl("Tabs",(e=>{const t=cl(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Fe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Fe(e.horizontalItemGutter)}`});return[aL(t),cL(t),iL(t),oL(t),rL(t),sL(t),nL(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}}));var dL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fL=e=>{var n,r,o,i,a,l,c,s,u,d,f;const{type:p,className:h,rootClassName:v,size:g,onEdit:m,hideAdd:b,centered:y,addIcon:w,removeIcon:x,moreIcon:k,more:C,popupClassName:S,children:E,items:O,animated:_,style:$,indicatorSize:j,indicator:N}=e,I=dL(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:P}=I,{direction:R,tabs:M,getPrefixCls:A,getPopupContainer:T}=t.useContext(D),q=A("tabs",P),L=Ja(q),[z,B,F]=uL(q,L);let H;"editable-card"===p&&(H={onEdit:(e,t)=>{let{key:n,event:r}=t;null==m||m("add"===e?r:n,e)},removeIcon:null!==(n=null!=x?x:null==M?void 0:M.removeIcon)&&void 0!==n?n:t.createElement(Ca,null),addIcon:(null!=w?w:null==M?void 0:M.addIcon)||t.createElement(rj,null),showAdd:!0!==b});const W=A();const V=wc(g),U=function(e,n){if(e)return e;const r=xc(n).map((e=>{if(t.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=tL(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(O,E),Y=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({},eL),{motionName:cd(e,"switch")})),t}(q,_),K=Object.assign(Object.assign({},null==M?void 0:M.style),$),G={align:null!==(r=null==N?void 0:N.align)&&void 0!==r?r:null===(o=null==M?void 0:M.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==N?void 0:N.size)&&void 0!==i?i:j)&&void 0!==a?a:null===(l=null==M?void 0:M.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==M?void 0:M.indicatorSize};return z(t.createElement(Jq,Object.assign({direction:R,getPopupContainer:T},I,{items:U,className:to()({[`${q}-${V}`]:V,[`${q}-card`]:["card","editable-card"].includes(p),[`${q}-editable-card`]:"editable-card"===p,[`${q}-centered`]:y},null==M?void 0:M.className,h,v,B,F,L),popupClassName:to()(S,B,F,L),style:K,editable:H,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==M?void 0:M.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==M?void 0:M.moreIcon)&&void 0!==d?d:k)&&void 0!==f?f:t.createElement(VA,null),transitionName:`${W}-slide-up`},C),prefixCls:q,animated:Y,indicator:G})))};fL.TabPane=()=>null;var pL=fL,hL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var vL=e=>{var{prefixCls:n,className:r,hoverable:o=!0}=e,i=hL(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=t.useContext(D),l=a("card",n),c=to()(`${l}-grid`,r,{[`${l}-grid-hoverable`]:o});return t.createElement("div",Object.assign({},i,{className:c}))};const gL=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Fe(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ai),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Fe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},mL=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Fe(o)} 0 0 0 ${n},\n 0 ${Fe(o)} 0 0 ${n},\n ${Fe(o)} ${Fe(o)} 0 0 ${n},\n ${Fe(o)} 0 0 0 ${n} inset,\n 0 ${Fe(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},bL=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Fe(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Fe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Fe(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Fe(e.lineWidth)} ${e.lineType} ${i}`}}})},yL=e=>Object.assign(Object.assign({margin:`${Fe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ai),"&-description":{color:e.colorTextDescription}}),wL=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Fe(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Fe(e.padding)} ${Fe(n)}`}}},xL=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},kL=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},Ti(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:gL(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-grid`]:mL(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:bL(e),[`${n}-meta`]:yL(e)}),[`${n}-bordered`]:{border:`${Fe(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${Fe(e.borderRadiusLG)} ${Fe(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> div${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:wL(e),[`${n}-loading`]:xL(e),[`${n}-rtl`]:{direction:"rtl"}}},CL=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Fe(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var SL=Sl("Card",(e=>{const t=cl(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[kL(t),CL(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),EL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const OL=e=>{const{actionClasses:n,actions:r=[],actionStyle:o}=e;return t.createElement("ul",{className:n,style:o},r.map(((e,n)=>{const o=`action-${n}`;return t.createElement("li",{style:{width:100/r.length+"%"},key:o},t.createElement("span",null,e))})))},_L=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:s={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:v,actions:g,tabList:m,children:b,activeTabKey:y,defaultActiveTabKey:w,tabBarExtraContent:x,hoverable:k,tabProps:C={},classNames:S,styles:E}=e,O=EL(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:j}=t.useContext(D);const N=e=>{var t;return to()(null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t[e],null==S?void 0:S[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==j?void 0:j.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},P=t.useMemo((()=>{let e=!1;return t.Children.forEach(b,(t=>{t&&t.type&&t.type===vL&&(e=!0)})),e}),[b]),R=_("card",r),[M,A,T]=SL(R),q=t.createElement(FA,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),L=void 0!==y,z=Object.assign(Object.assign({},C),{[L?"activeKey":"defaultActiveKey"]:L?y:w,tabBarExtraContent:x});let B;const F=wc(p),H=F&&"default"!==F?F:"large",W=m?t.createElement(pL,Object.assign({size:H},z,{className:`${R}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:m.map((e=>{var{tab:t}=e,n=EL(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||l||W){const e=to()(`${R}-head`,N("header")),n=to()(`${R}-head-title`,N("title")),r=to()(`${R}-extra`,N("extra")),o=Object.assign(Object.assign({},c),I("header"));B=t.createElement("div",{className:e,style:o},t.createElement("div",{className:`${R}-head-wrapper`},u&&t.createElement("div",{className:n,style:I("title")},u),l&&t.createElement("div",{className:r,style:I("extra")},l)),W)}const V=to()(`${R}-cover`,N("cover")),U=v?t.createElement("div",{className:V,style:I("cover")},v):null,Y=to()(`${R}-body`,N("body")),K=Object.assign(Object.assign({},s),I("body")),G=t.createElement("div",{className:Y,style:K},d?q:b),X=to()(`${R}-actions`,N("actions")),Q=g&&g.length?t.createElement(OL,{actionClasses:X,actionStyle:I("actions"),actions:g}):null,Z=ac(O,["onTabChange"]),J=to()(R,null==j?void 0:j.className,{[`${R}-loading`]:d,[`${R}-bordered`]:f,[`${R}-hoverable`]:k,[`${R}-contain-grid`]:P,[`${R}-contain-tabs`]:m&&m.length,[`${R}-${F}`]:F,[`${R}-type-${h}`]:!!h,[`${R}-rtl`]:"rtl"===$},o,i,A,T),ee=Object.assign(Object.assign({},null==j?void 0:j.style),a);return M(t.createElement("div",Object.assign({ref:n},Z,{className:J,style:ee}),B,U,G,Q))}));var $L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var jL=e=>{const{prefixCls:n,className:r,avatar:o,title:i,description:a}=e,l=$L(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=t.useContext(D),s=c("card",n),u=to()(`${s}-meta`,r),d=o?t.createElement("div",{className:`${s}-meta-avatar`},o):null,f=i?t.createElement("div",{className:`${s}-meta-title`},i):null,p=a?t.createElement("div",{className:`${s}-meta-description`},a):null,h=f||p?t.createElement("div",{className:`${s}-meta-detail`},f,p):null;return t.createElement("div",Object.assign({},l,{className:u}),d,h)};const NL=_L;NL.Grid=vL,NL.Meta=jL;var IL=NL,PL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},RL=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:PL}))};var ML=t.forwardRef(RL),AL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},TL=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:AL}))};var qL=t.forwardRef(TL),LL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},DL=function(e,n){return t.createElement(va,ut({},e,{ref:n,icon:LL}))};var zL=t.forwardRef(DL);function BL(e){return BL="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},BL(e)}function FL(e){return function(e){if(Array.isArray(e))return KL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YL(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.")}()}function HL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HL(Object(n),!0).forEach((function(t){VL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VL(e,t,n){var r;return r=function(e,t){if("object"!=BL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==BL(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||YL(e,t)||function(){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 YL(e,t){if(e){if("string"==typeof e)return KL(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)?KL(e,t):void 0}}function KL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var GL=pA.Text,XL=(pA.Link,new Map),QL=function(e){var t,n,r,o,i=null;if(null!=e&&null!==(t=e.repeater_type)&&void 0!==t&&t.value){var a,l,c,s,u=null==e||null===(a=e.repeater_type)||void 0===a?void 0:a.value;i=null==e||null===(l=e.repeater_type)||void 0===l||null===(l=l.options)||void 0===l?void 0:l[u],i=null!=e&&null!==(c=e.title)&&void 0!==c&&c.value?i+" - "+(null==e||null===(s=e.title)||void 0===s?void 0:s.value):i}else{var d;if("select"===(null==e||null===(d=e.title)||void 0===d?void 0:d.type)){var f=null==e||null===(n=e.title)||void 0===n?void 0:n.value;i=null==e||null===(r=e.title)||void 0===r||null===(r=r.options)||void 0===r?void 0:r[f]}else i=null==e||null===(o=e.title)||void 0===o?void 0:o.value}return i},ZL=t.forwardRef((function(e,n){var o,i=e.index,a=e.id,l=e.dataLoop,c=e.repeater,s=e.repeaterData,u=e.activePanel,d=e.handleRemovePanel,f=(e.hideContent,e.onSubComponentRendered,c.repeat),p=c.defaults,h=UL((0,t.useState)(String(i)===String(u)),2),v=h[0],g=h[1],m=UL((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),b=m[0],y=m[1],w=eM({id:a}),x=w.attributes,k=w.listeners,C=w.transform,S=w.transition,E=w.setNodeRef,O=w.isDragging,_={transform:WI.Translate.toString(C),transition:S,opacity:O?.8:1,zIndex:O?1:0,marginTop:"1rem",position:"relative",scrollMarginTop:98},$="no"!==(null===(o=l.deletable)||void 0===o?void 0:o.value);return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,E(e)}:E,style:_,children:(0,r.jsx)(IL,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(Fd,{title:"Rearrange",placement:"left",children:(0,r.jsx)(ML,WL(WL({},x),k))}),(0,r.jsxs)(GL,{children:[" ",(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:QL(l)}})," "]})]}),extra:(0,r.jsxs)(GL,{onClick:function(){g(!v)},children:[v?(0,r.jsx)(qL,{style:{cursor:"pointer"}}):(0,r.jsx)(zL,{style:{cursor:"pointer"}}),$?(0,r.jsx)(i$,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:b},onClick:function(e){return d(e,i)},onMouseEnter:function(){return y("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return y("var(--rtsb-admin-color-secondary)")}}):""]}),className:"rtsb-card-wrapper ".concat(v?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(uM,{isOpen:v,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsx)("ul",{className:"rtsb_group_repeater",children:Object.keys(f).map((function(e,t){var n,o,a=WL(WL({},l[e]||f[e]),{},{fieldType:"repeater",parentId:c.id,index:i,repeaterData:s,repeaterDefaults:p,isDefault:(null===(n=l.uniqueid)||void 0===n?void 0:n.value)||"",value:(null===(o=l[e])||void 0===o?void 0:o.value)||""});return(0,r.jsx)("li",{children:(0,r.jsx)(kI,{id:e,field:a},e)},e)}))})})})})})),JL=function(e){var n=UL(l(),2),o=(n[0],n[1]),i=e.repeater,a=i.repeat,c=i.id,s=(i.defaults,UL((0,t.useState)(null),2)),u=s[0],f=s[1],p=UL((0,t.useState)([]),2),h=p[0],v=p[1],g=UL((0,t.useState)(0),2),m=g[0],b=g[1],y=UL((0,t.useState)(!1),2),w=y[0],x=y[1],k=UL((0,t.useState)(!1),2),C=k[0],S=k[1],E=(0,t.useRef)(null),O=h.length;(0,t.useEffect)((function(){C&&E.current&&(E.current.scrollIntoView({behavior:"smooth"}),S(!1))}),[h,C]);var _=function(e,t){e.stopPropagation(),window.confirm("Are you sure you want to delete?")&&o({type:d,fieldType:"repeater",parentId:c,doAction:"remove",repeaterData:h,index:t})};(0,t.useEffect)((function(){!function(){if(i.value){var e=Object.values("string"==typeof i.value?JSON.parse(i.value):i.value);e=e.map((function(e,t){var n={};return e&&0!==Object.keys(e).length?(Object.keys(e).forEach((function(t){e[t]&&(n[t]=WL(WL({},a[t]),{},{id:t,value:e[t]}))})),Object.keys(n).length>0&&(n.uniqueid=null!=n&&n.uniqueid?null==n?void 0:n.uniqueid:{id:"id",value:"rtsb_repeater_item_".concat(t)}),n):n})),e=e.filter((function(e){return 0!==Object.keys(e).length})),v(e)}}()}),[i.value]);var $=h.map((function(e){var t;return null===(t=e.uniqueid)||void 0===t?void 0:t.value})),j=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}(nP(ZP,{}),nP(eR,{}),nP(WP,{coordinateGetter:rM})),N=(0,t.useCallback)((function(e){for(var t=h.findIndex((function(t){var n;return(null==t||null===(n=t.uniqueid)||void 0===n?void 0:n.value)===e.active.id})),n=h.slice(0,t),r=0,o=0;o<n.length;o+=1){var i=XL.get(n[o].id);i&&(r+=i.clientHeight)}b(r),x(!0)}),[h]),I=(0,t.useCallback)((function(e){var t=e.active,n=e.over;if(n){if(t.id!==n.id){var r=h.findIndex((function(e){var n;return(null===(n=e.uniqueid)||void 0===n?void 0:n.value)===t.id})),i=h.findIndex((function(e){var t;return(null===(t=e.uniqueid)||void 0===t?void 0:t.value)===n.id})),a=DR(h,r,i);v(a),o({type:d,fieldType:"repeater",parentId:c,doAction:"sort",repeaterData:a})}x(!1),b(0)}}),[h]);return(0,r.jsxs)(IR,{collisionDetection:uP,onDragStart:N,onDragEnd:I,sensors:j,children:[(0,r.jsx)(YR,{items:$,strategy:WR,children:(0,r.jsx)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:m},children:h.map((function(e,t){var n;if(e&&0!==Object.keys(e).length){var o=t===O-1?E:null;return(0,r.jsx)(ZL,{index:t,id:null===(n=e.uniqueid)||void 0===n?void 0:n.value,parentId:c,dataLoop:e,hideContent:w,repeater:i,repeaterData:h,handleRemovePanel:_,activePanel:u,ref:o},t)}}))})}),(0,r.jsx)("div",{className:"repeater-footer",children:(0,r.jsx)(xs,{className:"rtsb-button",onClick:function(){var e=[].concat(FL(h),[WL({},a)]);o({type:d,fieldType:"repeater",repeaterData:e,parentId:c,doAction:"addPanel",index:O}),f(String(O)),v(e),S(!0)},style:{fontSize:"14px",color:"#fff"},children:null!=i&&i.buttonLabel?i.buttonLabel:"Add New"})})]})};function eD(e){return eD="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},eD(e)}function tD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tD(Object(n),!0).forEach((function(t){rD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rD(e,t,n){var r;return r=function(e,t){if("object"!=eD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eD(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iD(e,t)}(e,t)||function(){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 iD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aD=function(e){var n=e.block,o=n.fields,i=oD((0,t.useState)((function(){return n.tabs?Object.keys(n.tabs)[0]:""})),2),a=i[0],l=i[1],c=nD(nD({},n.active_field),{},{type:"switch",value:n.active});return(0,r.jsxs)("div",{className:"rtsb-block-settings".concat(n.tabs?" rtsb-block-tabs":""),children:[n.tabs?(0,r.jsx)("ul",{className:"rtsb-block-tab-nav",children:Object.keys(n.tabs).map((function(e){return(0,r.jsx)("li",{className:"rtsb-block-tab-nav-item".concat(e===a?" active":""),onClick:function(){return l(e)},children:n.tabs[e].title},e)}))}):"",(0,r.jsxs)("div",{className:"rtsb-block-settings-content",children:[!c.disable&&(!n.tabs||n.tabs&&Object.keys(n.tabs)[0]===a)&&(0,r.jsx)("div",{className:"block-active-field",children:(0,r.jsx)(kI,{id:"active",field:c})}),Object.keys(o).map((function(e){if(!("repeaters"===o[e].type||n.tabs&&a&&a!==o[e].tab))return(0,r.jsx)(kI,{id:e,field:o[e]},e)})),Object.keys(o).map((function(e,t){if(!("repeaters"!==o[e].type||n.tabs&&a&&a!==o[e].tab))return(0,r.jsx)(JL,{repeater:o[e]},t)}))]})]})},lD=function(e){e.block;var t=e.visible,n=e.setVisible;return(0,r.jsxs)(Hh,{centered:!0,open:t,className:"rtsb-pro-modal",onOk:function(){return n(!1)},onCancel:function(){return n(!1)},footer:null,children:[(0,r.jsx)("div",{className:"rtsb-box-icon",children:(0,r.jsx)("i",{className:"dashicons dashicons-lock"})}),(0,r.jsxs)("div",{className:"rtsb-box-content",children:[(0,r.jsx)("h3",{className:"rtsb-box-title",children:"Pro Feature Alert!"}),(0,r.jsx)("p",{children:"Sorry! This is a Pro feature. To activate this feature, you need to upgrade to the Pro version."}),(0,r.jsx)("a",{href:"https://shopbuilderwp.com",target:"_blank",className:"rtsb-pro-btn rtsb-button",rel:"noreferrer",children:"Get Pro Version"})]})]})};function cD(e){return cD="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},cD(e)}function sD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sD(Object(n),!0).forEach((function(t){dD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dD(e,t,n){var r;return r=function(e,t){if("object"!=cD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==cD(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pD(e,t)}(e,t)||function(){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 pD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hD=function(e){var n=e.block,o=n.title,i=n.active,a=n.id,c=n.fields,d=n.external,p="on"===i,v=fD(l(),2),g=v[0],m=v[1],b=fD((0,t.useState)(!1),2),y=b[0],w=b[1],x=!h().isEmpty(c),k=fD((0,t.useState)(!1),2),C=k[0],S=k[1],E=fD((0,t.useState)(null),2),O=E[0],_=E[1];(0,t.useEffect)((function(){d&&(jQuery(document).on("wp-plugin-installing",(function(t,n){e.block.pluginSlug===n.slug&&_(uD(uD({},n),{},{status:"installing"}))})),jQuery(document).on("wp-plugin-install-success",(function(t,n){if("plugin"===n.install&&e.block.pluginSlug===n.slug){_(uD(uD({},n),{},{status:"install-success"})),ic.success({message:n.debug[4],placement:"bottomRight"});var r=JSON.parse(JSON.stringify(g.sections));r[g.data.section_id].list[a]=uD(uD({},e.block),{},{pluginIsInstalled:!0}),m({type:s,sections:r})}})),jQuery(document).on("wp-plugin-install-error",(function(t,n){"plugin"===n.install&&e.block.pluginSlug===n.slug&&(ic.error({message:n.errorMessage,placement:"bottomRight"}),_(null))})))}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"rtsb-ss-item ".concat(e.block.package).concat(p?" active":"").concat(d?" is-external":""),onClick:function(t){if(t.preventDefault(),t.stopPropagation(),!0===d);else{if("pro-disabled"===e.block.package)return void S(!0);x?(m({type:u,id:"block_id",value:a}),w(!0)):m({type:f,id:a,value:p?"":"on"})}},children:(0,r.jsxs)("div",{className:"rtsb-ss-item-box",children:[(0,r.jsx)("div",{className:"rtsb-ss-item-icon"}),(0,r.jsx)("div",{className:"rtsb-ss-item-content",children:(0,r.jsx)("h3",{className:"rtsb-ss-item-title",children:o})}),d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"externalActions",children:e.block.pluginIsActive?(0,r.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,r.jsx)(Ms,{checked:!0,disabled:!0})}):(0,r.jsx)(xs,{type:"primary rtsb-button",loading:"installing"===(null==O?void 0:O.status),onClick:function(){null!=O&&O.activateUrl?window.open(O.activateUrl,"_self"):e.block.pluginIsInstalled?e.block.pluginIsInstalled&&!e.block.pluginIsActive&&window.open(e.block.pluginActiveUrl):wp.updates.installPlugin({slug:e.block.pluginSlug})},size:"small",children:e.block.pluginIsInstalled||O?e.block.pluginIsInstalled&&!e.block.pluginIsActive?wp.i18n.__("Activate"):"installing"===(null==O?void 0:O.status)?wp.i18n.__("Installing…"):"install-success"===(null==O?void 0:O.status)?wp.i18n.__("Activate"):void 0:wp.i18n.__("Install")})}),!!e.block.help&&(0,r.jsx)(Fd,{title:e.block.help,children:(0,r.jsx)(Uh,{style:{fontSize:"150%"}})})]}),!d&&(0,r.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,r.jsx)(Ms,{unCheckedChildren:"pro-disabled"===e.block.package?(0,r.jsx)("span",{className:"dashicons dashicons-lock"}):"",checked:p})}),x&&(0,r.jsx)("div",{className:"rtsb-ss-item-action",children:(0,r.jsx)("span",{className:"dashicons dashicons-admin-generic"})})]})}),x&&(0,r.jsx)(Hh,{title:o,centered:!0,open:y,okText:"Save Changes",onCancel:function(){return w(!1)},width:1e3,styles:{body:{maxHeight:"calc(100vh - 200px)",overflow:"scroll",minHeight:"500px"}},footer:[(0,r.jsx)(xs,{type:"primary",loading:g.saving,onClick:function(){e.saveData(null,(function(){w(!1)}))},disabled:!g.dirty,block:!0,children:"Save Changes"},"save")],children:(0,r.jsx)(aD,{block:e.block})}),"pro-disabled"===e.block.package&&(0,r.jsx)(lD,{block:e.block,visible:C,setVisible:S})]})},vD=function(e){var t=e.blocks,n=e.category;return(0,r.jsx)("div",{className:"rtsb-ss-item-list",children:t&&Object.keys(t).map((function(o){var i=t[o];if(!n||i.category===n)return(0,r.jsx)(hD,{block:t[o],id:o,saveData:e.saveData},o)}))})};function gD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mD(e,t)}(e,t)||function(){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 mD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bD=function(e){var n,o,i=e.section,a=i.list,l=i.categories,c=gD((0,t.useState)(null),2),s=c[0],u=c[1],d="selected_cat_nav_id_"+e.section.id,f=localStorage.getItem(d)?localStorage.getItem(d):Object.keys(l)[0];return(0,t.useEffect)((function(){u(f)}),[e.section.id]),(0,r.jsx)("div",{className:"rtsb-ss-item-list-wrap",children:l?(0,r.jsxs)("div",{className:"rtsb-cat-tabs-wrap",children:[Object.keys(l).length>0?(0,r.jsx)("div",{className:"rtsb-cat-nav-wrap",children:Object.keys(l).map((function(e){var t=l[e],n=t.title;t.description;return(0,r.jsx)("div",{onClick:function(){localStorage.setItem(d,e),u(e)},className:"rtsb-cat-nav".concat(e===s?" active":""),children:(0,r.jsx)("h3",{className:"rtsb-title",children:n})},e)}))}):null,(0,r.jsxs)("div",{className:"rtsb-cat-content",children:[(null===(n=l[s])||void 0===n?void 0:n.description)&&(0,r.jsx)("h4",{className:"rtsb-cat-description",children:null===(o=l[s])||void 0===o?void 0:o.description}),(0,r.jsx)(vD,{blocks:a,saveData:e.saveData,category:s})]})]}):(0,r.jsx)(vD,{blocks:a})})};function yD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wD(e,t)}(e,t)||function(){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 wD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xD=function(e){var n=e.id,o=yD(l(),2),i=o[0],a=o[1],c=i.sections[n]||{},u=yD((0,t.useState)(!1),2),d=u[0],f=u[1],p=yD((0,t.useState)(!1),2),h=p[0],v=p[1],g=c.title,m=c.short_title,b=c.description,y=function(e){var t=c.list,n=Object.keys(t);jQuery.ajax({url:rtsbParams.ajaxurl,data:{module_ids:n,section_id:c.id,action:"rtsb_toggle_modules_activation",__rtsb_wpnonce:rtsbParams.nonce,type:e},method:"POST",beforeSend:function(){e?f(!0):v(!0)},success:function(e){f(!1),v(!1),e.success?(ic.success({message:e.data.message,placement:"bottomRight"}),a({type:s,sections:e.data.sections})):ic.error({message:e.data.message,placement:"bottomRight"})},error:function(e){f(!1),v(!1),ic.error({message:e.message,placement:"bottomRight"})}})};return(0,r.jsxs)("div",{className:"rtsb-ss-wrap",children:[(0,r.jsxs)("div",{className:"rtsb-ss-header-area",children:[(0,r.jsxs)("div",{className:"rtsb-ss-header",children:[(0,r.jsx)("h2",{className:"rtsb-title",children:g}),(0,r.jsx)("p",{className:"rtsb-description",children:b})]}),(0,r.jsxs)("div",{className:"rtsb-button-wrapper",children:[(0,r.jsxs)(xs,{type:"primary",loading:d,onClick:function(){return y("active")},className:"rtsb-button rtsb-enable-button",children:["Enable All ",m]},"enable"),(0,r.jsxs)(xs,{type:"secondary",loading:h,onClick:function(){return y()},className:"rtsb-button rtsb-disable-button",children:["Disable All ",m]},"disable")]})]}),(0,r.jsx)(bD,{section:c,saveData:e.saveData})]})};function kD(e){return kD="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},kD(e)}function CD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return SD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SD(e,t)}(e,t)||function(){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 SD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ED=function(){var e=CD(l(),2),n=e[0],o=e[1],i=function(e,t){o({type:c,value:{saving:!0}});var r=e||n.data,i=new FormData;i.append("section_id",r.section_id),i.append("block_id",r.block_id);for(var a=function(){var e=CD(s[l],2),t=e[0],n=e[1];if(Array.isArray(n))n.length?n.map((function(e){var n=e;"object"===kD(e)&&null!==e&&(n=JSON.stringify(e)),i.append("options["+t+"][]",n)})):i.append("options["+t+"]",[]);else if("object"===kD(n)&&null!==n){var r=JSON.stringify(n);i.append("options["+t+"]",r)}else i.append("options["+t+"]",n)},l=0,s=Object.entries(r.options);l<s.length;l++)a();i.append("action","rtsb_save_settings_data"),i.append("__rtsb_wpnonce",rtsbParams.nonce),jQuery.ajax({cache:!1,processData:!1,contentType:!1,dataType:"json",url:rtsbParams.ajaxurl,data:i,method:"POST",success:function(e){e.success?(ic.success({message:e.data.message,placement:"bottomRight"}),o({type:c,value:{saving:!1,callSave:!1,dirty:!1,placement:"bottomRight"}}),o({type:c,value:{modalVisible:!1}})):(ic.error({message:e.data.message,placement:"bottomRight"}),o({type:c,value:{saving:!1,callSave:!1}})),t&&t()},error:function(e){ic.error({message:e.message,placement:"bottomRight"}),o({type:c,value:{saving:!1,callSave:!1}}),t&&t()}})};return(0,t.useEffect)((function(){n.callSave&&!n.saving&&i()}),[n.callSave]),(0,r.jsxs)("div",{className:"rtsb-settings-page-wrapper",children:[(0,r.jsxs)("div",{className:"rtsb-header-area",children:[(0,r.jsx)("div",{className:"rtsb-header-logo-wrap",children:(0,r.jsx)("img",{src:rtsbParams.adminLogo,alt:"ShopBuilder",loading:"lazy"})}),(0,r.jsx)("div",{className:"rtsb-header-title-wrap",children:(0,r.jsx)("h2",{className:"rtsb-title",children:"ShopBuilder Settings"})})]}),(0,r.jsxs)("div",{className:"rtsb-settings-tabs-wrap",children:[(0,r.jsx)("div",{className:"rtsb-tabs-nav-wrap",children:(0,r.jsx)("ul",{className:"rtsb-tab-list",children:Object.keys(n.sections).map((function(e){return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#",onClick:function(t){t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),localStorage.setItem("rtsb_selected_section_nav",e),o({type:u,id:"section_id",value:e})},className:"rtsb-button".concat(e===n.data.section_id?" active":""),children:(0,r.jsx)("span",{children:n.sections[e].title})})},e)}))})}),(0,r.jsx)("div",{className:"rtsb-tabs-content-wrap",children:(0,r.jsx)("div",{className:"rtsb-settings-tab-content rtsb-settings-".concat(n.data.section_id),children:(0,r.jsx)(xD,{id:n.data.section_id,saveData:i})})})]})]})};function OD(e){return OD="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},OD(e)}function _D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_D(Object(n),!0).forEach((function(t){jD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jD(e,t,n){var r;return r=function(e,t){if("object"!=OD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=OD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==OD(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ND={callSave:!1,saving:!1,dirty:!1,modalVisible:!1,sections:rtsbParams.sections,section:!1,data:{block_id:!1,section_id:localStorage.getItem("rtsb_selected_section_nav")?localStorage.getItem("rtsb_selected_section_nav"):"general",options:{}}},ID=function(e,t){switch(t.type){case c:return $D($D({},e),t.value);case s:return $D($D({},e),{},{sections:t.sections});case u:return $D($D({},e),{},{data:$D($D({},e.data),{},jD({},t.id,t.value))});case f:if(!t.id||!e.data.section_id)return e;var n=JSON.parse(JSON.stringify(e.data.options));n.active=t.value;var r=JSON.parse(JSON.stringify(e.sections));return r[e.data.section_id].list[t.id].active=t.value,$D($D({},e),{},{callSave:!0,dirty:!0,sections:r,data:$D($D({},e.data),{},{block_id:t.id,options:n})});case d:if(!e.data.block_id||!e.data.section_id)return e;var o=JSON.parse(JSON.stringify(e.data.options));t.value&&(o[t.id]=t.value);var i=JSON.parse(JSON.stringify(e.sections));if("active"===t.id)i[e.data.section_id].list[e.data.block_id].active=t.value;else{var a="repeater"===(null==t?void 0:t.fieldType),l="remove"===(null==t?void 0:t.doAction),p="sort"===(null==t?void 0:t.doAction),h="addPanel"===(null==t?void 0:t.doAction);if(a){var v=("object"===OD(null==t?void 0:t.repeaterData)?null==t?void 0:t.repeaterData:{}).map((function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t})),g=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value,m="string"==typeof(g="string"==typeof(g=g||{})?JSON.parse(g):g)[t.index]?JSON.parse(g[t.index]):g[t.index],b=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].repeat,y=Object.keys(b).reduce((function(e,t){return e[t]=b[t].value,e}),{});if(p)i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=$D({},v),o[t.parentId]=$D($D({},o[t.parentId]),v);else if(h)i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=$D($D({},g),{},jD({},t.index,$D($D({uniqueid:"rtsb_repeater_item_".concat(t.index)},y),m))),o[t.parentId]=$D($D($D({},o[t.parentId]),v),{},jD({},t.index,$D({},y)));else if(l){var w=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value;delete w[t.index];var x={};Object.keys(w).forEach((function(e,t){x[t]=w[e]})),i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=$D({},x);var k=o[t.parentId];delete k[t.index];var C={};Object.keys(k).forEach((function(e,t){C[t]=k[e]})),o[t.parentId]=$D({},C)}else{var S;i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=$D($D({},g),{},jD({},t.index,$D($D($D({},y),m),{},jD({},t.id,t.value)))),o[t.parentId]=$D($D($D({},v),o[t.parentId]),{},jD({},t.index,$D($D($D({},v[t.index]),(null===(S=o[t.parentId])||void 0===S?void 0:S[t.index])||{}),{},jD({},t.id,t.value))))}}else i[e.data.section_id].list[e.data.block_id].fields[t.id].value=t.value}return $D($D({},e),{},{dirty:!0,sections:i,data:$D($D({},e.data),{},{options:o})});default:return e}},PD=document.getElementById("rtsb-admin-app");e.createRoot(PD).render((0,r.jsx)(a,{reducer:ID,initialState:ND,children:(0,r.jsx)(ED,{})}))}()}();