=10;I/=10,p++);V(x,o+(x.e=p+c*f-1)+1,a,h)}else x.e=c,x.r=+h;return x}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,l){var c,d=s?a:a.replace(i,"");if(r.test(d))o.s=isNaN(d)?null:d<0?-1:1;else{if(!s&&(d=d.replace(e,(function(e,t,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,l&&l!=c?e:t})),l&&(c=l,d=d.replace(t,"$1").replace(n,"0.$1")),a!=d))return new B(d,c);if(B.DEBUG)throw Error(u+"Not a"+(l?" base "+l:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return x(this,new B(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,i,o=this;if(null!=e)return b(e,0,v),null==t?t=k:b(t,0,8),V(new B(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-m(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,t){return n(this,new B(e,t),C,k)},o.dividedToIntegerBy=o.idiv=function(e,t){return n(this,new B(e,t),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,i,o,a,c,d,p,h=this;if((e=new B(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+G(e));if(null!=t&&(t=new B(t)),a=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return p=new B(Math.pow(+G(h),a?2-w(e):+G(e))),t?p.mod(t):p;if(c=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(r=!c&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||a&&h.c[1]>=24e7:h.c[0]<8e13||a&&h.c[0]<=9999975e7)))return o=h.s<0&&w(e)?-0:0,h.e>-1&&(o=1/o),new B(c?1/o:o);O&&(o=s(O/f+2))}for(a?(n=new B(.5),c&&(e.s=1),d=w(e)):d=(i=Math.abs(+G(e)))%2,p=new B(_);;){if(d){if(!(p=p.times(h)).c)break;o?p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}if(i){if(0===(i=l(i/2)))break;d=i%2}else if(V(e=e.times(n),e.e+1,1),e.e>14)d=w(e);else{if(0===(i=+G(e)))break;d=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}return r?p:(c&&(p=_.div(p)),t?p.mod(t):o?V(p,O,k,undefined):p)},o.integerValue=function(e){var t=new B(this);return null==e?e=k:b(e,0,8),V(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===x(this,new B(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return x(this,new B(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=x(this,new B(e,t)))||0===t},o.isInteger=function(){return!!this.c&&m(this.e/f)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return x(this,new B(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=x(this,new B(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var n,r,i,o,a=this,s=a.s;if(t=(e=new B(e,t)).s,!s||!t)return new B(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/f,u=e.e/f,c=a.c,p=e.c;if(!l||!u){if(!c||!p)return c?(e.s=-t,e):new B(p?a:NaN);if(!c[0]||!p[0])return p[0]?(e.s=-t,e):new B(c[0]?a:3==k?-0:0)}if(l=m(l),u=m(u),c=c.slice(),s=l-u){for((o=s<0)?(s=-s,i=c):(u=l,i=p),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=c.length)<(t=p.length))?s:t,s=t=0;t0)for(;t--;c[n++]=0);for(t=d-1;r>s;){if(c[--r]=0;){for(n=0,h=A[i]%b,v=A[i]/b|0,o=i+(a=l);o>i;)n=((u=h*(u=S[--a]%b)+(s=v*u+(c=S[a]/b|0)*h)%b*b+y[o]+n)/x|0)+(s/b|0)+v*c,y[o--]=u%x;y[o]=n}return n?++r:y.splice(0,1),F(e,y,r)},o.negated=function(){var e=new B(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new B(e,t)).s,!i||!t)return new B(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/f,a=e.e/f,s=r.c,l=e.c;if(!o||!a){if(!s||!l)return new B(i/0);if(!s[0]||!l[0])return l[0]?e:new B(s[0]?r:0*i)}if(o=m(o),a=m(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=l):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=l.length)<0&&(n=l,l=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+l[t]+i)/d|0,s[t]=d===s[t]?0:s[t]%d;return i&&(s=[i].concat(s),++a),F(e,s,a)},o.precision=o.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return b(e,1,v),null==t?t=k:b(t,0,8),V(new B(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},o.shiftedBy=function(e){return b(e,-9007199254740991,p),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,l=a.s,u=a.e,c=C+4,d=new B("0.5");if(1!==l||!s||!s[0])return new B(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+G(a)))||l==1/0?(((t=y(s)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=m((u+1)/2)-(u<0||u%2),r=new B(t=l==1/0?"5e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new B(l+""),r.c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(o=r,r=d.times(o.plus(n(a,o,c,1))),y(o.c).slice(0,l)===(t=y(r.c)).slice(0,l)){if(r.e0&&g>0){for(o=g%s||s,d=h.substr(0,o);o0&&(d+=c+h.slice(o)),p&&(d="-"+d)}r=f?d+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):d}return(n.prefix||"")+r+(n.suffix||"")},o.toFraction=function(e){var t,r,i,o,a,s,l,c,d,p,g,v,m=this,x=m.c;if(null!=e&&(!(l=new B(e)).isInteger()&&(l.c||1!==l.s)||l.lt(_)))throw Error(u+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+G(l));if(!x)return new B(m);for(t=new B(_),d=r=new B(_),i=c=new B(_),v=y(x),a=t.e=v.length-m.e-1,t.c[0]=h[(s=a%f)<0?f+s:s],e=!e||l.comparedTo(t)>0?a>0?t:d:l,s=T,T=1/0,l=new B(v),c.c[0]=0;p=n(l,t,0,1),1!=(o=r.plus(p.times(i))).comparedTo(e);)r=i,i=o,d=c.plus(p.times(o=d)),c=o,t=l.minus(p.times(o=t)),l=o;return o=n(e.minus(r),i,0,1),c=c.plus(o.times(d)),r=r.plus(o.times(i)),c.s=d.s=m.s,g=n(d,i,a*=2,k).minus(m).abs().comparedTo(n(c,r,a,k).minus(m).abs())<1?[d,i]:[c,r],T=s,g},o.toNumber=function(){return+G(this)},o.toPrecision=function(e,t){return null!=e&&b(e,1,v),j(this,e,t,2)},o.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=E||o>=M?S(y(n.c),o):A(y(n.c),o,"0"):10===e&&L?t=A(y((n=V(new B(n),C+o+1,k)).c),n.e,"0"):(b(e,2,R.length,"Base"),t=r(A(y(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return G(this)},o._isBigNumber=!0,null!=t&&B.set(t),B}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=r?e:function(e,t,n){var r=-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 o=Array(i);++rc))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h-1&&e%1==0&&e-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4086:function(e,t,n){var r=n(9676),i=n(8384),o=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),i=n(5797),o=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},6050:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},8573:function(e,t,n){var r=n(8092),i=n(72),o=n(2582),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,p,h=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function x(e){return h=e,f=setTimeout(w,t),g?y(e):d}function b(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-h>=c}function w(){var e=i();if(b(e))return S(e);f=setTimeout(w,function(e){var n=t-(e-p);return v?s(n,c-(e-h)):n}(e))}function S(e){return f=void 0,m&&l?y(e):(l=u=void 0,d)}function A(){var e=i(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return x(p);if(v)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),A.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},A.flush=function(){return void 0===f?d:S(i())},A}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},4963:function(e,t,n){var r=n(4906),i=n(3141),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),i=n(4635);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),i=n(9488),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),i=n(8092);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},152:function(e,t,n){var r=n(9066),i=n(3141);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},9102:function(e,t,n){var r=n(8150),i=n(6194),o=n(9494),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},2742:function(e,t,n){var r=n(7538),i=n(3654),o=n(1473);e.exports=function(e){return o(e)?r(e):i(e)}},72:function(e,t,n){var r=n(7009);e.exports=function(){return r.Date.now()}},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},2582:function(e,t,n){var r=n(821),i=n(8092),o=n(152),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;ut}return!1}(t,n,i,r)&&(n=null),r||null===i?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)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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,y);v[t]=new g(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,y);v[t]=new g(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,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),E=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=P&&e[P]||e["@@iterator"])?e:null}var L,B=Object.assign;function j(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var z=!1;function F(e,t){if(!e||z)return"";z=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function V(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function G(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 A:return"Fragment";case S:return"Portal";case C:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:G(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}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 G(t);case 8:return t===_?"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 U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(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 Z(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function X(e,t){Z(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 $(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 i=0;i"+t.valueOf().toString()+"",t=ue.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 ce(e,t)}))}:ce);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 ge(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 ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}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=B({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 ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function xe(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 be=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ae=null,_e=null;function Ce(e){if(e=vi(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=yi(t),Se(e.stateNode,e.type,t))}}function ke(e){Ae?_e?_e.push(e):_e=[e]:Ae=e}function Ee(){if(Ae){var e=Ae,t=_e;if(_e=Ae=null,Ce(e),t)for(e=0;e>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=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,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<=On),Ln=String.fromCharCode(32),Bn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var Vn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Hn(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Un=null;function Qn(e){Lr(e,0)}function Yn(e){if(Y(mi(e)))return e}function Kn(e,t){if("change"===e)return t}var qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Zn="function"===typeof Xn.oninput}Jn=Zn}else Jn=!1;qn=Jn&&(!document.documentMode||9=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 ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function dr(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 fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(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 i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=lr(n,o);var a=lr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>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=document.documentMode,hr=null,gr=null,vr=null,mr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mr||null==hr||hr!==K(r)||("selectionStart"in(r=hr)&&dr(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},vr&&ar(vr,r)||(vr=r,0<(r=Wr(gr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},wr={},Sr={};function Ar(e){if(wr[e])return wr[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return wr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var _r=Ar("animationend"),Cr=Ar("animationiteration"),kr=Ar("animationstart"),Er=Ar("transitionend"),Mr=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 Tr(e,t){Mr.set(e,t),l(t,[e])}for(var Dr=0;Drbi||(e.current=xi[bi],xi[bi]=null,bi--)}function Ai(e,t){bi++,xi[bi]=e.current,e.current=t}var _i={},Ci=wi(_i),ki=wi(!1),Ei=_i;function Mi(e,t){var n=e.type.contextTypes;if(!n)return _i;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ti(){Si(ki),Si(Ci)}function Di(e,t,n){if(Ci.current!==_i)throw Error(o(168));Ai(Ci,t),Ai(ki,n)}function Ni(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return B({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_i,Ei=Ci.current,Ai(Ci,e),Ai(ki,ki.current),!0}function Pi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ni(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,Si(ki),Si(Ci),Ai(Ci,e)):Si(ki),Ai(ki,n)}var Ri=null,Li=!1,Bi=!1;function ji(e){null===Ri?Ri=[e]:Ri.push(e)}function zi(){if(!Bi&&null!==Ri){Bi=!0;var e=0,t=yt;try{var n=Ri;for(yt=1;e>=a,i-=a,So=1<<32-at(t)+i|n<g?(v=d,d=null):v=d.sibling;var m=p(i,d,s[g],l);if(null===m){null===d&&(d=v);break}e&&d&&null===m.alternate&&t(i,d),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m,d=v}if(g===s.length)return n(i,d),To&&_o(i,g),u;if(null===d){for(;gv?(m=g,g=null):m=g.sibling;var x=p(i,g,y.value,u);if(null===x){null===g&&(g=m);break}e&&g&&null===x.alternate&&t(i,g),s=a(x,s,v),null===d?c=x:d.sibling=x,d=x,g=m}if(y.done)return n(i,g),To&&_o(i,v),c;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return To&&_o(i,v),c}for(g=r(i,g);!y.done;v++,y=l.next())null!==(y=h(g,i,v,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),To&&_o(i,v),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===A){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&Go(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Fo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===A?((o=_u(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Au(a.type,a.key,a.props,null,r.mode,l)).ref=Fo(r,o,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Eu(a,r.mode,l)).return=r,r=o}return s(r);case N:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return g(r,o,a,l);if(R(a))return v(r,o,a,l);Vo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=ku(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Wo=Ho(!0),Uo=Ho(!1),Qo={},Yo=wi(Qo),Ko=wi(Qo),qo=wi(Qo);function Jo(e){if(e===Qo)throw Error(o(174));return e}function Zo(e,t){switch(Ai(qo,t),Ai(Ko,e),Ai(Yo,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(Yo),Ai(Yo,t)}function Xo(){Si(Yo),Si(Ko),Si(qo)}function $o(e){Jo(qo.current);var t=Jo(Yo.current),n=le(t,e.type);t!==n&&(Ai(Ko,e),Ai(Yo,n))}function ea(e){Ko.current===e&&(Si(Yo),Si(Ko))}var ta=wi(0);function na(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(0!==(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 ra=[];function ia(){for(var e=0;en?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{yt=n,aa.transition=r}}function Ua(){return ba().memoizedState}function Qa(e,t,n){var r=Hl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e)?qa(t,n):(Ja(e,t,n),null!==(e=Wl(e,r,n=Gl()))&&Za(e,t,r))}function Ya(e,t,n){var r=Hl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))qa(t,i);else{Ja(e,t,i);var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,or(s,a))return}catch(l){}null!==(e=Wl(e,r,n=Gl()))&&Za(e,t,r)}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function qa(e,t){fa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){null!==yl&&0!==(1&e.mode)&&0===(2&ml)?(null===(e=t.interleaved)?(n.next=n,null===Zi?Zi=[t]:Zi.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var Xa={readContext:Ji,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useInsertionEffect:ga,useLayoutEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useMutableSource:ga,useSyncExternalStore:ga,useId:ga,unstable_isNewReconciler:!1},$a={readContext:Ji,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:Ji,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oa(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();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=Qa.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:Ta,useDebugValue:Va,useDeferredValue:function(e){var t=Ta(e),n=t[0],r=t[1];return Ra((function(){var t=aa.transition;aa.transition={};try{r(e)}finally{aa.transition=t}}),[e]),n},useTransition:function(){var e=Ta(!1),t=e[0];return e=Wa.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,i=xa();if(To){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===yl)throw Error(o(349));0!==(30&sa)||ka(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ra(Ma.bind(null,r,a,e),[e]),r.flags|=2048,Da(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=xa(),t=yl.identifierPrefix;if(To){var n=Ao;t=":"+t+"R"+(n=(So&~(1<<32-at(So)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ji,useCallback:Ga,useContext:Ji,useEffect:La,useImperativeHandle:Fa,useInsertionEffect:Ba,useLayoutEffect:ja,useMemo:Ha,useReducer:Sa,useRef:Na,useState:function(){return Sa(wa)},useDebugValue:Va,useDeferredValue:function(e){var t=Sa(wa),n=t[0],r=t[1];return La((function(){var t=aa.transition;aa.transition={};try{r(e)}finally{aa.transition=t}}),[e]),n},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ua,unstable_isNewReconciler:!1},ts={readContext:Ji,useCallback:Ga,useContext:Ji,useEffect:La,useImperativeHandle:Fa,useInsertionEffect:Ba,useLayoutEffect:ja,useMemo:Ha,useReducer:Aa,useRef:Na,useState:function(){return Aa(wa)},useDebugValue:Va,useDeferredValue:function(e){var t=Aa(wa),n=t[0],r=t[1];return La((function(){var t=aa.transition;aa.transition={};try{r(e)}finally{aa.transition=t}}),[e]),n},useTransition:function(){return[Aa(wa)[0],ba().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ua,unstable_isNewReconciler:!1};function ns(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function rs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var is,os,as,ss="function"===typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=to(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nl||(Nl=!0,Ol=r),rs(0,t)},n}function us(e,t,n){(n=to(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){rs(0,t),"function"!==typeof r&&(null===Pl?Pl=new Set([this]):Pl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function cs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ss;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hu.bind(null,e,t,n),t.then(e,e))}function ds(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 fs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=to(-1,1)).tag=2,no(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function ps(e,t){if(!To)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 hs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gs(e,t,n){var r=t.pendingProps;switch(Eo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hs(t),null;case 1:case 17:return Ii(t.type)&&Ti(),hs(t),null;case 3:return r=t.stateNode,Xo(),Si(ki),Si(Ci),ia(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Bo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Do&&(ql(Do),Do=null))),hs(t),null;case 5:ea(t);var i=Jo(qo.current);if(n=t.type,null!==e&&null!=t.stateNode)os(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return hs(t),null}if(e=Jo(Yo.current),Bo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ui]=t,r[ci]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ui]=t,e[ci]=r,is(e,t),t.stateNode=e;e:{switch(l=xe(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;iDl&&(t.flags|=128,r=!0,ps(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=na(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ps(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!To)return hs(t),null}else 2*Ze()-a.renderingStartTime>Dl&&1073741824!==n&&(t.flags|=128,r=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ta.current,Ai(ta,r?1&n|2:1&n),t):(hs(t),null);case 22:case 23:return eu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&wl)&&(hs(t),6&t.subtreeFlags&&(t.flags|=8192)):hs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}is=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}},os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Jo(Yo.current);var o,a=null;switch(n){case"input":i=q(e,i),r=q(e,r),a=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},as=function(e,t,n,r){n!==r&&(t.flags|=4)};var vs=b.ReactCurrentOwner,ms=!1;function ys(e,t,n,r){t.child=null===e?Uo(t,null,n,r):Wo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return qi(t,i),r=ma(e,t,n,r,o,i),n=ya(),null===e||ms?(To&&n&&ko(t),t.flags|=1,ys(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zs(e,t,i))}function bs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||wu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ws(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return zs(e,t,i)}return t.flags|=1,(e=Su(o,r)).ref=t.ref,e.return=t,t.child=e}function ws(e,t,n,r,i){if(null!==e&&ar(e.memoizedProps,r)&&e.ref===t.ref){if(ms=!1,0===(e.lanes&i))return t.lanes=e.lanes,zs(e,t,i);0!==(131072&e.flags)&&(ms=!0)}return _s(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},Ai(Sl,wl),wl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,Ai(Sl,wl),wl|=e,null;t.memoizedState={baseLanes:0,cachePool:null},r=null!==o?o.baseLanes:n,Ai(Sl,wl),wl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ai(Sl,wl),wl|=r;return ys(e,t,i,n),t.child}function As(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,i){var o=Ii(n)?Ei:Ci.current;return o=Mi(t,o),qi(t,i),n=ma(e,t,n,r,o,i),r=ya(),null===e||ms?(To&&r&&ko(t),t.flags|=1,ys(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zs(e,t,i))}function Cs(e,t,n,r,i){if(Ii(n)){var o=!0;Oi(t)}else o=!1;if(qi(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),fo(t,n,r),ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ji(u):u=Mi(t,u=Ii(n)?Ei:Ci.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&po(t,a,r,u),Xi=!1;var f=t.memoizedState;a.state=f,oo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ki.current||Xi?("function"===typeof c&&(lo(t,n,c,r),l=t.memoizedState),(s=Xi||co(t,n,s,r,f,l,u))?(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=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,eo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Vi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ji(l):l=Mi(t,l=Ii(n)?Ei:Ci.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&po(t,a,r,l),Xi=!1,f=t.memoizedState,a.state=f,oo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||ki.current||Xi?("function"===typeof p&&(lo(t,n,p,r),h=t.memoizedState),(u=Xi||co(t,n,u,r,f,h,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ks(e,t,n,r,o,i)}function ks(e,t,n,r,i,o){As(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Pi(t,n,!1),zs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Wo(t,e.child,null,o),t.child=Wo(t,null,s,o)):ys(e,t,s,o),t.memoizedState=r.state,i&&Pi(t,n,!0),t.child}function Es(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),Zo(e,t.containerInfo)}function Ms(e,t,n,r,i){return jo(),zo(i),t.flags|=256,ys(e,t,n,r),t.child}var Is={dehydrated:null,treeContext:null,retryLane:0};function Ts(e){return{baseLanes:e,cachePool:null}}function Ds(e,t,n){var r,i=t.pendingProps,a=ta.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ai(ta,1&a),null===e)return Ro(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=a):s=Cu(a,i,0,null),e=_u(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ts(n),t.memoizedState=Is,e):Ns(t,a));if(null!==(a=e.memoizedState)){if(null!==(r=a.dehydrated)){if(l)return 256&t.flags?(t.flags&=-257,Rs(e,t,n,Error(o(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,a=t.mode,i=Cu({mode:"visible",children:i.children},a,0,null),(s=_u(s,a,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!==(1&t.mode)&&Wo(t,e.child,null,n),t.child.memoizedState=Ts(n),t.memoizedState=Is,s);if(0===(1&t.mode))t=Rs(e,t,n,null);else if("$!"===r.data)t=Rs(e,t,n,Error(o(419)));else if(i=0!==(n&e.childLanes),ms||i){if(null!==(i=yl)){switch(n&-n){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=0!==(s&(i.suspendedLanes|n))?0:s)&&i!==a.retryLane&&(a.retryLane=i,Wl(e,i,-1))}iu(),t=Rs(e,t,n,Error(o(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=vu.bind(null,e),r._reactRetry=t,t=null):(n=a.treeContext,Io=ai(r.nextSibling),Mo=t,To=!0,Do=null,null!==n&&(xo[bo++]=So,xo[bo++]=Ao,xo[bo++]=wo,So=n.id,Ao=n.overflow,wo=t),(t=Ns(t,t.pendingProps.children)).flags|=4096);return t}return s?(i=Ps(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Ts(n):{baseLanes:a.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=Is,i):(n=Os(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=Ps(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Ts(n):{baseLanes:a.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=Is,i):(n=Os(e,t,i.children,n),t.memoizedState=null,n)}function Ns(e,t){return(t=Cu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Os(e,t,n,r){var i=e.child;return e=i.sibling,n=Su(i,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Ps(e,t,n,r,i){var o=t.mode,a=(e=e.child).sibling,s={mode:"hidden",children:n};return 0===(1&o)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null):(n=Su(e,s)).subtreeFlags=14680064&e.subtreeFlags,null!==a?r=Su(a,r):(r=_u(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Rs(e,t,n,r){return null!==r&&zo(r),Wo(t,e.child,null,n),(e=Ns(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ls(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ki(e.return,t,n)}function Bs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function js(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ys(e,t,r.children,n),0!==(2&(r=ta.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ls(e,n,t);else if(19===e.tag)Ls(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(Ai(ta,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===na(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bs(t,!0,n,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Su(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Su(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Fs(e,t){switch(Eo(t),t.tag){case 1:return Ii(t.type)&&Ti(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xo(),Si(ki),Si(Ci),ia(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Si(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));jo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(ta),null;case 4:return Xo(),null;case 10:return Yi(t.type._context),null;case 22:case 23:return eu(),null;default:return null}}var Vs=!1,Gs=!1,Hs="function"===typeof WeakSet?WeakSet:Set,Ws=null;function Us(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){pu(e,t,r)}else n.current=null}function Qs(e,t,n){try{n()}catch(r){pu(e,t,r)}}var Ys=!1;function Ks(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Qs(t,n,o)}i=i.next}while(i!==r)}}function qs(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 Js(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 Zs(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var i=r,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&Qs(t,n,o),r=r.next}while(r!==e)}break;case 1:if(Us(t,n),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){pu(t,n,a)}break;case 5:Us(t,n);break;case 4:il(e,t,n)}}function Xs(e){var t=e.alternate;null!==t&&(e.alternate=null,Xs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ui],delete t[ci],delete t[fi],delete t[pi],delete t[hi])),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 $s(e){return 5===e.tag||3===e.tag||4===e.tag}function el(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||$s(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 tl(e){e:{for(var t=e.return;null!==t;){if($s(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,32&n.flags&&(fe(t,""),n.flags&=-33),rl(e,n=el(e),t);break;case 3:case 4:t=n.stateNode.containerInfo,nl(e,n=el(e),t);break;default:throw Error(o(161))}}function nl(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)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(nl(e,t,n),e=e.sibling;null!==e;)nl(e,t,n),e=e.sibling}function rl(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(rl(e,t,n),e=e.sibling;null!==e;)rl(e,t,n),e=e.sibling}function il(e,t,n){for(var r,i,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(o(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var l=e,u=a,c=n,d=u;;)if(Zs(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break e;for(;null===d.sibling;){if(null===d.return||d.return===u)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,u=a.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(a.stateNode)}else if(18===a.tag)i?(l=r,u=a.stateNode,8===l.nodeType?oi(l.parentNode,u):1===l.nodeType&&oi(l,u),Vt(l)):oi(r,a.stateNode);else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(Zs(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function ol(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return Ks(3,t,t.return),qs(3,t),void Ks(5,t,t.return);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for("input"===e&&"radio"===r.type&&null!=r.name&&Z(n,r),xe(e,i),t=xe(e,r),i=0;ii&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pl(r/1960))-r)){e.timeoutHandle=ei(cu.bind(null,e,Il),r);break}cu(e,Il);break;default:throw Error(o(329))}}}return Ql(e,Ze()),e.callbackNode===n?Yl.bind(null,e):null}function Kl(e,t){var n=Ml;return e.current.memoizedState.isDehydrated&&(tu(e,t).flags|=256),2!==(e=ou(e,t))&&(t=Il,Il=n,null!==t&&ql(t)),e}function ql(e){null===Il?Il=e:Il.push.apply(Il,e)}function Jl(e,t){for(t&=~El,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Ll)var r=!1;else{if(e=Ll,Ll=null,Bl=0,0!==(6&ml))throw Error(o(331));var i=ml;for(ml|=4,Ws=e.current;null!==Ws;){var a=Ws,s=a.child;if(0!==(16&Ws.flags)){var l=a.deletions;if(null!==l){for(var u=0;uZe()-Tl?tu(e,0):El|=n),Ql(e,t)}function gu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=Gl();null!==(e=Ul(e,t))&&(vt(e,t,n),Ql(e,n))}function vu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),gu(e,n)}function mu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),gu(e,n)}function yu(e,t){return Ye(e,t)}function xu(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 bu(e,t,n,r){return new xu(e,t,n,r)}function wu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Su(e,t){var n=e.alternate;return null===n?((n=bu(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 Au(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)wu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return _u(n.children,i,a,t);case _:s=8,i|=8;break;case C:return(e=bu(12,n,t,2|i)).elementType=C,e.lanes=a,e;case I:return(e=bu(13,n,t,i)).elementType=I,e.lanes=a,e;case T:return(e=bu(19,n,t,i)).elementType=T,e.lanes=a,e;case O:return Cu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case E:s=9;break e;case M:s=11;break e;case D:s=14;break e;case N:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=bu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function _u(e,t,n,r){return(e=bu(7,e,r,t)).lanes=n,e}function Cu(e,t,n,r){return(e=bu(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={},e}function ku(e,t,n){return(e=bu(6,e,null,t)).lanes=n,e}function Eu(e,t,n){return(t=bu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mu(e,t,n,r,i){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=i,this.mutableSourceEagerHydrationData=null}function Iu(e,t,n,r,i,o,a,s,l){return e=new Mu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=bu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},$i(o),e}function Tu(e,t,n){var r=3=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(l,n))uo(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(uo(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(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 s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,g=!1,v=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,x="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(v=!1,b(e),!g)if(null!==r(u))g=!0,O(S);else{var t=r(c);null!==t&&P(w,t.startTime-e)}}function S(e,n){g=!1,v&&(v=!1,y(k),k=-1),h=!0;var o=p;try{for(b(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!I());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&i(u),b(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&P(w,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,_=!1,C=null,k=-1,E=5,M=-1;function I(){return!(t.unstable_now()-Me||125a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(v?(y(k),k=-1):v=!0,P(w,o-a))):(e.sortIndex=s,n(u,e),g||h||(g=!0,O(S))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9613:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var D=(0,g.createContext)(null);var N=(0,g.createContext)(null);var O=(0,g.createContext)({outlet:null,matches:[]});function P(e,t){if(!e)throw new Error(t)}function R(e,t,n){void 0===n&&(n="/");var r=H(("string"===typeof t?T(t):t).pathname||"/",n);if(null==r)return null;var i=L(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(!0===e.index&&P(!1),L(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:z(a,e.index),routesMeta:s})})),t}var B=/^:\w+$/,j=function(e){return"*"===e};function z(e,t){var n=e.split("/"),r=n.length;return n.some(j)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!j(e)})).reduce((function(e,t){return e+(B.test(t)?3:""===t?1:10)}),r)}function F(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a=0?t[a]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?T(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:Q(o),hash:Y(s)}}(i,r);return o&&"/"!==o&&o.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function H(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var W=function(e){return e.join("/").replace(/\/\/+/g,"/")},U=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Q=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Y=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function K(e){q()||P(!1);var t=(0,g.useContext)(D),n=t.basename,r=t.navigator,i=$(e),o=i.hash,a=i.pathname,s=i.search,l=a;if("/"!==n){var u=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?T(e).pathname:e.pathname}(e),c=null!=u&&u.endsWith("/");l="/"===a?n+(c?"/":""):W([n,a])}return r.createHref({pathname:l,search:s,hash:o})}function q(){return null!=(0,g.useContext)(N)}function J(){return q()||P(!1),(0,g.useContext)(N).location}function Z(){q()||P(!1);var e=(0,g.useContext)(D),t=e.basename,n=e.navigator,r=(0,g.useContext)(O).matches,i=J().pathname,o=JSON.stringify(r.map((function(e){return e.pathnameBase}))),a=(0,g.useRef)(!1);return(0,g.useEffect)((function(){a.current=!0})),(0,g.useCallback)((function(e,r){if(void 0===r&&(r={}),a.current)if("number"!==typeof e){var s=G(e,JSON.parse(o),i);"/"!==t&&(s.pathname=W([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state)}else n.go(e)}),[t,n,o,i])}function X(){var e=(0,g.useContext)(O).matches,t=e[e.length-1];return t?t.params:{}}function $(e){var t=(0,g.useContext)(O).matches,n=J().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,g.useMemo)((function(){return G(e,JSON.parse(r),n)}),[e,r,n])}function ee(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,g.createElement)(O.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function te(e){var t=e.to,n=e.replace,r=e.state;q()||P(!1);var i=Z();return(0,g.useEffect)((function(){i(t,{replace:n,state:r})})),null}function ne(e){P(!1)}function re(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,s=void 0===a?h.Pop:a,l=e.navigator,u=e.static,c=void 0!==u&&u;q()&&P(!1);var d=U(n),f=(0,g.useMemo)((function(){return{basename:d,navigator:l,static:c}}),[d,l,c]);"string"===typeof o&&(o=T(o));var p=o,v=p.pathname,m=void 0===v?"/":v,y=p.search,x=void 0===y?"":y,b=p.hash,w=void 0===b?"":b,S=p.state,A=void 0===S?null:S,_=p.key,C=void 0===_?"default":_,k=(0,g.useMemo)((function(){var e=H(m,d);return null==e?null:{pathname:e,search:x,hash:w,state:A,key:C}}),[d,m,x,w,A,C]);return null==k?null:(0,g.createElement)(D.Provider,{value:f},(0,g.createElement)(N.Provider,{children:i,value:{location:k,navigationType:s}}))}function ie(e){var t=e.children,n=e.location;return function(e,t){q()||P(!1);var n,r=(0,g.useContext)(O).matches,i=r[r.length-1],o=i?i.params:{},a=(i&&i.pathname,i?i.pathnameBase:"/"),s=(i&&i.route,J());if(t){var l,u="string"===typeof t?T(t):t;"/"===a||(null==(l=u.pathname)?void 0:l.startsWith(a))||P(!1),n=u}else n=s;var c=n.pathname||"/",d=R(e,{pathname:"/"===a?c:c.slice(a.length)||"/"});return ee(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},o,e.params),pathname:W([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:W([a,e.pathnameBase])})})),r)}(oe(t),n)}function oe(e){var t=[];return g.Children.forEach(e,(function(e){if((0,g.isValidElement)(e))if(e.type!==g.Fragment){e.type!==ne&&P(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=oe(e.props.children)),t.push(n)}else t.push.apply(t,oe(e.props.children))})),t}function ae(){return ae=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var le=["onClick","reloadDocument","replace","state","target","to"];function ue(e){var t=e.basename,n=e.children,r=e.window,i=(0,g.useRef)();null==i.current&&(i.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,o=e.hash,a=r.state||{};return[a.idx,A({pathname:t,search:i,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(C,(function(){if(o)d.call(o),o=null;else{var e=h.Pop,t=i(),n=t[0],r=t[1];if(d.length){if(null!=n){var a=l-n;a&&(o={action:e,location:r,retry:function(){y(-1*a)}},y(a))}}else m(e)}}));var a=h.Pop,s=i(),l=s[0],u=s[1],c=E(),d=E();function f(e){return"string"===typeof e?e:I(e)}function p(e,t){return void 0===t&&(t=null),A(S({pathname:u.pathname,hash:"",search:""},"string"===typeof e?T(e):e,{state:t,key:M()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function v(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function m(e){a=e;var t=i();l=t[0],u=t[1],c.call({action:a,location:u})}function y(e){r.go(e)}null==l&&(l=0,r.replaceState(S({},r.state,{idx:l}),""));var x={get action(){return a},get location(){return u},createHref:f,push:function e(t,i){var o=h.Push,a=p(t,i);if(v(o,a,(function(){e(t,i)}))){var s=g(a,l+1),u=s[0],c=s[1];try{r.pushState(u,"",c)}catch(d){n.location.assign(c)}m(o)}},replace:function e(t,n){var i=h.Replace,o=p(t,n);if(v(i,o,(function(){e(t,n)}))){var a=g(o,l),s=a[0],u=a[1];r.replaceState(s,"",u),m(i)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return c.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(_,k),function(){t(),d.length||n.removeEventListener(_,k)}}};return x}({window:r}));var o=i.current,a=w((0,g.useState)({action:o.action,location:o.location}),2),s=a[0],l=a[1];return(0,g.useLayoutEffect)((function(){return o.listen(l)}),[o]),(0,g.createElement)(re,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}var ce=(0,g.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,o=void 0!==i&&i,a=e.state,s=e.target,l=e.to,u=se(e,le),c=K(l),d=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,o=n.state,a=Z(),s=J(),l=$(e);return(0,g.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||I(s)===I(l);a(e,{replace:n,state:o})}}),[s,a,l,i,o,r,e])}(l,{replace:o,state:a,target:s});return(0,g.createElement)("a",ae({},u,{href:c,onClick:function(e){n&&n(e),e.defaultPrevented||r||d(e)},ref:t,target:s}))}));var de=n(7441),fe=n(9613),pe=n.n(fe);var he=function(e){function t(e,r,l,u,f){for(var p,h,g,v,b,S=0,A=0,_=0,C=0,k=0,N=0,P=g=p=0,L=0,B=0,j=0,z=0,F=l.length,V=F-1,G="",H="",W="",U="";Lp)&&(z=(G=G.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Pe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&Oe(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=Be&&(Be=t+1),Re.set(e,t),Le.set(t,e)},Ve="style["+Ie+'][data-styled-version="5.3.5"]',Ge=new RegExp("^"+Ie+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),He=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ie))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Ie,"active"),r.setAttribute("data-styled-version","5.3.5");var a=Ue();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Ye=function(){function e(e){var t=this.element=Qe(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),$e=/(a)(d)/gi,et=function(e){return String.fromCharCode(e+(e>25?39:97))};function tt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=et(t%52)+n;return(et(t%52)+n).replace($e,"$1-$2")}var nt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},rt=function(e){return nt(5381,e)};function it(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=nt(this.baseHash,n.hash),c="",d=0;d>>0);if(!t.hasNameForId(r,g)){var v=n(c,"."+g,void 0,r);t.insertRules(r,g,v)}i.push(g)}}return i.join(" ")},e}(),st=/^\s*\/\/.*$/gm,lt=[":","[",".","#"];function ut(e){var t,n,r,i,o=void 0===e?Ce:e,a=o.options,s=void 0===a?Ce:a,l=o.plugins,u=void 0===l?_e:l,c=new he(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,o){return 0===r&&-1!==lt.indexOf(o[n.length])||o.match(i)?e:"."+t};function h(e,o,a,s){void 0===s&&(s="&");var l=e.replace(st,""),u=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(a||!o?"":o,u)}return c.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||Oe(15),nt(e,t.name)}),5381).toString():"",h}var ct=g.createContext(),dt=(ct.Consumer,g.createContext()),ft=(dt.Consumer,new Xe),pt=ut();function ht(){return(0,g.useContext)(ct)||ft}function gt(){return(0,g.useContext)(dt)||pt}function vt(e){var t=(0,g.useState)(e.stylisPlugins),n=t[0],r=t[1],i=ht(),o=(0,g.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,g.useMemo)((function(){return ut({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,g.useEffect)((function(){pe()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),g.createElement(ct.Provider,{value:o},g.createElement(dt.Provider,{value:a},e.children))}var mt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Oe(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=pt),this.name+e.hash},e}(),yt=/([A-Z])/,xt=/([A-Z])/g,bt=/^ms-/,wt=function(e){return"-"+e.toLowerCase()};function St(e){return yt.test(e)?e.replace(xt,wt).replace(bt,"-ms-"):e}var At=function(e){return null==e||!1===e||""===e};function _t(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,It=/(^-|-$)/g;function Tt(e){return e.replace(Mt,"-").replace(It,"")}var Dt=function(e){return tt(rt(e)>>>0)};function Nt(e){return"string"==typeof e&&!0}var Ot=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Rt(e,t,n){var r=e[n];Ot(t)&&Ot(r)?Lt(r,t):e[n]=t}function Lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Nt(e)?e:Tt(Ee(e)));return Ft(e,we({},i,{attrs:f,componentId:o}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Lt({},e.defaultProps,t):t}}),h.toString=function(){return"."+h.styledComponentId},i&&be()(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var Vt=function(e){return function e(t,n,r){if(void 0===r&&(r=Ce),!(0,de.isValidElementType)(n))return Oe(1,String(n));var i=function(){return t(n,r,kt.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,we({},r,{},i))},i.attrs=function(i){return e(t,n,we({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Ft,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Vt[e]=Vt(e)}));var Gt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=it(e),Xe.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(_t(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ht(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?Oe(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Oe(2);var n=((t={})[Ie]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Ue();return r&&(n.nonce=r),[g.createElement("style",we({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Xe({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?Oe(2):g.createElement(vt,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return Oe(3)}}();var Wt,Ut,Qt=Vt,Yt={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0};Yt?(Wt="https://pro-api.solscan.io/v1.0/public/graphql",Yt.SOL_ANALYTIC_URL,Ut="https://pro-api.solscan.io/v1.0/public/common/stablecoin"):(Wt="https://pro-api.solscan.io/v1.0/public/graphql","https://analytics.solscan.io",Ut="https://pro-api.solscan.io/v1.0/public/common/stablecoin");var Kt={bg:"#F6F6F6",bg2:"",bg3:"#FFFFFF",bg4:"#EAEAEA",bg5:"#FFFFFF",bg6:"#FAFAFA",BG_Carousel:"",text:"#353535",text1:"rgb(0 0 0 / 85%)",text2:"#353535",text3:"#606060",text4:"#eaeaea",text5:"#606060",text6:"#606060",color:"#f0f0f0",color2:"#282828",TextWarning:"af7202"},qt={bg:"#1A1A1A",bg2:"#353535",bg3:"#282828",bg4:"#282828",bg5:"#606060",bg6:"#1A1A1A",BG_Carousel:"#3a3d3d",text:"#fff",text1:"#C3C3C3",text2:"#d8d8d8",text3:"#eaeaea",text4:"#353535",text5:"#c3c3c3",text6:"#8b8b8b",color:"#353535",color2:"#FFFFFF",TextWarning:"#af7202"},Jt={solOverview:[{section:"network",title:"Network",description:"Real-time updates of Solana Network statistics, including total transactions, TPS performance, total fees, number of blocks created, and the number of validators & vote accounts."},{section:"transaction",title:"Transactions",description:"The comparison between the number of vote transactions and that of non-vote transactions, and the latter vs the number of instructions."},{section:"account",title:"Accounts",description:"The real-time charts highlight the number of active wallets with at least one signature, and the figures for newly created wallet\u2019s associated token accounts."},{section:"token",title:"Tokens",description:"The real-time column graph depicts the number of newly minted SPL tokens & NFTs"},{section:"program",title:"Programs",description:"The information and metrics for Solana\u2019s programs, highlighting program usage, instruction volume distribution, and rankings of the programs."}],stableCoin:[{section:"overview",title:"",description:""},{section:"supply",title:"Supply",description:"More than 5 billion USDC are minted on Solana but most of them aren\u2019t in circulation and are held by Circle Treasury wallet itself. You can check real-time circulating supply on usdc.cool for confirmation"},{section:"holders",title:"Holders"},{section:"transfers",title:"Transfers"},{section:"program",title:"Program"},{section:"exchange",title:"Exchange"}]},Zt={"7d":{value:"7d",title:"7 Days"},"1m":{value:"1m",title:"1 Month"},"3m":{value:"3m",title:"3 Months"},all:{value:"all",title:"All time"}},Xt=function(){return localStorage.getItem("mode-theme")||"light"};function $t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var en=n.p+"static/media/solana-solana-scan-blue.5ffb9996cf489a8d70319d8417591e9b.svg";function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(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 rn(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var sn=n(1694),ln=n.n(sn);function un(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 cn(e){return e<=1?"".concat(100*Number(e),"%"):e}function dn(e){return 1===e.length?"0"+e:String(e)}function fn(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 pn(e,t,n){e=un(e,255),t=un(t,255),n=un(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t1)&&(e=1),e}(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var xn="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),bn="[\\s|\\(]+(".concat(xn,")[,|\\s]+(").concat(xn,")[,|\\s]+(").concat(xn,")\\s*\\)?"),wn="[\\s|\\(]+(".concat(xn,")[,|\\s]+(").concat(xn,")[,|\\s]+(").concat(xn,")[,|\\s]+(").concat(xn,")\\s*\\)?"),Sn={CSS_UNIT:new RegExp(xn),rgb:new RegExp("rgb"+bn),rgba:new RegExp("rgba"+wn),hsl:new RegExp("hsl"+bn),hsla:new RegExp("hsla"+wn),hsv:new RegExp("hsv"+bn),hsva:new RegExp("hsva"+wn),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 An(e){return Boolean(Sn.CSS_UNIT.exec(String(e)))}var _n=[{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 Cn(e){var t=pn(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function kn(e){var t=e.r,n=e.g,r=e.b;return"#".concat(hn(t,n,r,!1))}function En(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}}function Mn(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function In(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Tn(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function Dn(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=yn(e),i=5;i>0;i-=1){var o=Cn(r),a=kn(yn({h:Mn(o,i,!0),s:In(o,i,!0),v:Tn(o,i,!0)}));n.push(a)}n.push(kn(r));for(var s=1;s<=4;s+=1){var l=Cn(r),u=kn(yn({h:Mn(l,s),s:In(l,s),v:Tn(l,s)}));n.push(u)}return"dark"===t.theme?_n.map((function(e){var r=e.index,i=e.opacity;return kn(En(yn(t.backgroundColor||"#141414"),yn(n[r]),100*i))})):n}var Nn={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"},On={},Pn={};Object.keys(Nn).forEach((function(e){On[e]=Dn(Nn[e]),On[e].primary=On[e][5],Pn[e]=Dn(Nn[e],{theme:"dark",backgroundColor:"#141414"}),Pn[e].primary=Pn[e][5]}));On.red,On.volcano,On.gold,On.orange,On.yellow,On.lime,On.green,On.cyan;var Rn=On.blue,Ln=(On.geekblue,On.purple,On.magenta,On.grey,On.grey,(0,g.createContext)({})),Bn=n(2001),jn=n.n(Bn),zn=n(4790),Fn=n(5313),Vn=n(4506);function Gn(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function Hn(){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[jn()(n)]=r;return t}),{})}function Wn(e,t,n){return n?g.createElement(e.tag,rn(rn({key:t},Hn(e.attrs)),n),(e.children||[]).map((function(n,r){return Wn(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):g.createElement(e.tag,rn({key:t},Hn(e.attrs)),(e.children||[]).map((function(n,r){return Wn(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Un(e){return Dn(e)[0]}function Qn(e){return e?Array.isArray(e)?e:[e]:[]}var Yn=["icon","className","onClick","style","primaryColor","secondaryColor"],Kn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var qn=function(e){var t,n,r=e.icon,i=e.className,o=e.onClick,a=e.style,s=e.primaryColor,l=e.secondaryColor,u=an(e,Yn),c=g.useRef(),d=Kn;if(s&&(d={primaryColor:s,secondaryColor:l||Un(s)}),function(e){var t=(0,g.useContext)(Ln),n=t.csp,r=t.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),(0,g.useEffect)((function(){var t=e.current,r=(0,Fn.Ay)(t);(0,zn.hq)(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}(c),t=Gn(r),n="icon should be icon definiton, but got ".concat(r),(0,Vn.ZP)(t,"[@ant-design/icons] ".concat(n)),!Gn(r))return null;var f=r;return f&&"function"===typeof f.icon&&(f=rn(rn({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Wn(f.icon,"svg-".concat(f.name),rn(rn({className:i,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};qn.displayName="IconReact",qn.getTwoToneColors=function(){return rn({},Kn)},qn.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Kn.primaryColor=t,Kn.secondaryColor=n||Un(t),Kn.calculated=!!n};var Jn=qn;function Zn(e){var t=w(Qn(e),2),n=t[0],r=t[1];return Jn.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Xn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Zn(Rn.primary);var $n=g.forwardRef((function(e,t){var n,r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=an(e,Xn),d=g.useContext(Ln),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,v=ln()(h,p,(tn(n={},"".concat(p,"-").concat(i.name),!!i.name),tn(n,"".concat(p,"-spin"),!!o||"loading"===i.name),n),r),m=s;void 0===m&&l&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=w(Qn(u),2),b=x[0],S=x[1];return g.createElement("span",rn(rn({role:"img","aria-label":i.name},c),{},{ref:t,tabIndex:m,onClick:l,className:v}),g.createElement(Jn,{icon:i,primaryColor:b,secondaryColor:S,style:y}))}));$n.displayName="AntdIcon",$n.getTwoToneColor=function(){var e=Jn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},$n.setTwoToneColor=Zn;var er=$n,tr=function(e,t){return g.createElement(er,rn(rn({},e),{},{ref:t,icon:on.Z}))};var nr=g.forwardRef(tr),rr=n(7837),ir=function(e,t){return g.createElement(er,rn(rn({},e),{},{ref:t,icon:rr.Z}))};var or=g.forwardRef(ir),ar=n(3091),sr=function(e,t){return g.createElement(er,rn(rn({},e),{},{ref:t,icon:ar.Z}))};var lr=g.forwardRef(sr);var ur=n.p+"static/media/solana-sol-logo.b612f1402147c92338bed5af1879b175.svg",cr=n.p+"static/media/logo-raydium.3db35c1115f8c798617a.png",dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACAdSURBVHgB7Z1tbFTXmcefO4Y2q5Jis6u2m6S1TaSElTZ+IUQK3d34JY3EJlpsqNRkEwLGiRT4AjZS+q322P2ySlcY9ksaKYsNC9l2PwCmKlvE4pesNk02wNhkpUIlbLNJ2iSqsM0mEil47p7/mblmbGbm3jv33HvOuXN+0TBjZwzjmfO/z+t5jkWGULBTz9UQJSqJKhooYa8mSteSba2mhFVDNrHvW5XZZ+K+ssBfM8eeN8cfWfYMv0+ze8ueZ3/3NKXpWuY5KyasxqE5MgjHIkMgMkJYwURA1WTbDWRZDezb7HsFF31YQCBMPOy2QJPs8ZgRTnCMQHxip7Y1MzHUs3eumVkEJga7hpQGFseaYFZrjFmcSavx6BgZPGME4oKdep5Zh0QTe6fa2SKDdYjaMohmjv0uEMxJSqfHrca3JshQECOQPGSsRLqdxQ9t6luIoMDCMOuyYB021uVujECy3BFFYgfpbyVKxIhlOWUtEDvVUUkrbu9lvnkXla0oCoGsmT1M6a8cYIH+DJUpZSkQbi0qqJf54c1kcAdWxbaHrPpjh6nMKBuBGGshAnua/dFH6ZXj5WJVYi8QI4wwcGKVlX1xF0psBWKEERGWPRRnocROIEYYkoipUGIjECMMFWCuV8Iash452kcxIRYCsVN/386q3QPs16khgwJkgvk4ZL20FgizGjVUcXvQpGsVxaITtLBin85uV4I0xf5gWy8lbqeMOBTGpi3sM5rin5WmaGdBMi0h9qBxp3SDuV3pla26WROtLIh96cUB9opHjTh0xKrV0ZpoYUF4rJG4dYK93AYyxAB9rInyFsSe3LaXxxpGHDGCW5OLduqFLlIcZS0Ir2tULPSSbSv/JhoCYNkDrMDYr+rWYCUFYlyqckNdl0s5FyuTpTIuVXkBl+vWCP/sFUMpgWTiDWSpTKtI+QGR0IhqWS5lBMLEgTfmABnKGYvS1KuSSKTHINlgfIAF4x1kMDhY1qBV9y+dJBmpAuHiSNwaNfGGoQApSq9olZnhkuZiZTNVRhyGYjSyhM0IXyuSkGJBcsRRQwaDK/LSwJELxIjDUBpyRBKpQIw4DMGIXiSRCcQE5AZBRBq4RxekG3EYxOAE7pEUk1dQBNiXXhzkZ2cYPDH3f39kt1s0d+OP/HE+au5fRTX3fY3KlEZWO9vP7kOvk4TuYmUr5EkyLAELf+bjL2jiynV2m6Vrv8s8dsThlcp7V1LDw2vY/VeoecM3qJ49bn7sm1QG2Mz/6Qt7gkqoAjHiuAMW/smRD7kYxs9/yu/DpHnDN6m95QFq2vAtalhXRTHFprS9z2o8FlqLUmgCyZ7ENEplCgQxcXmWTo5+SMPsNsMshCzginW9sI7aWr/NHq+imMFEQq1hHdcQikDKNZ0LEQyP/C8TxUdZd8m7qxQV7S3fpr1MLDFzw2ZZZmt9GOlf4QLJpnNT5SKOsfc/5S4TLEXYbpNIYFWSu+poR9uDFBNCSf+KFwgmj8R4m2yu63T41FUlrYQfaplQ9r+6gdqZ+6U9lj1g1R3bRwIRKhC+4SmGezoc12ns/Gfs9on2oshHx+a11Lu7TvcYRXjQLkwgmbgDW2X13g2Ym34dzwpCZoAdNXC7IBSNERqPiBPI5AvTusYdEMXBo5eZGD7lt3Kn9v6v0cibT+lsTVJW/dH1JAAhAtG53nHw2GVKvj4ZS7cpCCg8wprs3baOtERQPBJYIFnXapo0pO+nl5g4LpGhMKifwOWCYDRDSH0kuEA0da2Ghq/Szp5fk8EdfV0unFNirWXuFpVKoG7ejGtl1ZCGwHoYvDHNkhatL5/Vqs6TwaplfyTt1A4qlZIFkt0nnCQNGR75sKwyUyLgInnpLKv9TJFm7AlyES/dgli3B0hTTKaqNGZZtq/jR+9Qn15xWxVOIbNT26gUShKInXq+g0Uv7aQp+rkKapFk7qlWIrGpif3ZXoqrVZoFSVjaHqkFCm1CMnhHM5FYlLD3szvfRWzfOwqzNY8aMkijsrKS2tvbqaGhgVavXs2/Nz8/T6lUiiYnJ2liYoKiIJlNdOhReednknQxK5K0Gr0fvutLIJnA/FaHwseKeELDnP4itbW1dPHiRS6SQszMzNDQ0BAdPnyYPw4TZAPxfmpSUETAfoDde+749ediJW4l49DGrmsLhWVZdOjQoaLiADU1NZRMJml6epoGBwf512Fhs1v3P57XJbtVlbUinn/As0Ay1sMqPaGsEDpvQZ2b87fdoaOjI3Sh2EwlO3ve0SX5scdPLOLdgnDrEQ/qH9ZTIDZbiYgxSgFCmZqaot7eXlcLVAoQCYqJM7/7nBTHlxXxFEzo3G+VD2Sxav/2pJbZrKqqKr7QgyxyWJS+vj4eo4gGbSkXf/6M6nEeWuLXetl96M2CxMh6AHx4DZpakdnZWersDDYOCoE+gvj9+/eTaFBx39o9Torj2Yq4CiTbUtJEMUPnLaYnTpwILBLQ3d3NrZHo2GT0/U9p32vnSXE8xSKuLhavmicSgxQz/LpZzc3NVF9fz2sPcG9yXRwEzteuXeOuC+6RWo2iFgFLMDIyEniBO1bp5MmTJAosrIFXN6ie/u2z6o8miz3BXSAa7xR0o71rnM+scgOBLdKmfoBoIBIsuvHx8VAFg9eG1xgEJAAQl+Amiqqvf4XFI0+rnFZnsQitsRoLt8MXFUhcrYcDmhZbXjrr+jxUqGE5ggCrMjY2xgNj3IvGqX3s2FF6Jh4i2bdvHx04IG7uhuJBu+umquIxiJWIRd2jEBjPiZsbfmsP+cACRqp1dHQ0lLoEBIi/v6WlpeTsFAqRe/bsIZEgaO9Xt2fLogrqLRasF7QgcUvtFgLzrbZ0Fc+6IP7Awg4DWBOnLUQkiJHwupfHToWAwPAaYD1EXBByYbqjwf7v0o7Na0lBmBVZsaZQyreIQLYdYPZlL5UBCNbdClwQCBZbWGCBwkUKozbhAIHAai1PMODfFi2K5SgejxQM1gsLJMbB+XKGTl2lnT8qvj8dCwuxSBhV6FyiEIosWh77Jt/briAFg/W8MQifzE5WDZUJHZsfdI1FsHAPHjxIYQMhwuVCnBIk4FYRzDHG/DEFwVWvOd//yB+kJ+wOKjO87GnAlT2qvRa5QgmzGzdK0Pnb98YlFfu1LKaEvDtkC2WxYlc5d8NrRmvnzp0UJRBHFG3rUTF744/Uqea4pe359q3fJZByc69yGfzxRtd8PSwIWjSiBilcVM3j4HbxEa/vKzc4I6+bdbcFKUP3ygEZli4PrRFIhYZR7HPDaTIU0V4iE7TGd/a+o1o3dV43K5+LVXbuVS69u+o8dfrC1Qo7NVoIFAOx7barS99jWFBAxNAHiEUdrM126vkl31kiEPY/G8rVvcpl4IcbXJ+DrFbU8Ugu2BcyMDCgdWxy4NhlevCZE0wsqgTtdg37Y0lPUUXuF8lddc+xsucmKnPgaqH66zZg7vLly7w9I8wCohuokLe1tfGdhmEPaAgDTNXHhH0U5JpYksSSPQ/Epit9b3zwrvPlUhfLstrIwPHqaiH1KyMeycVpew/a0SsTjBBSwJpYVGFtzv3GMoFQsJbVmHHiQJOnLtQtW7ZIv3rDkkGsx48f19blQlyy/tnTcouJNjXkpnsXBZJJ7+p9fJpo4Gr17n7E9XkI1hE4ywrac4FYdc5yIbPV9ZPzMqc2Lkn35lgQ21iPPHS98Bf8EBk3YEEgEhVwhsth+qKuOKNN5WS57mjhjkAqrLJO7xYDbShe4hEUEWVmtnJBlgvulu5xSWfPO1GLhOcLnC/uCMQ2FqQQiEO8xiMo5IncthoExCUQiM4iGTo1Rft+EvEAiESi3tlExdO8dqqjkiz7H8hQEIjj8bo/8zRiE1kt2elfB+d1YMj1mTNnSEfe/eAP/LLe/Jh7r5wgKsmuONj3xsRNLpDkrr98nL2CDjIUBUF75ddX0pn/+r3rc1USCdi4cSNVV1fT8PAw6cg4q0k5F6lISNC7fa9PXnFcrGYyeAJBu9dx/0i7quJuAcRHyHCFvekrDJwh2ZE1OS4s4HzDbAxSQfVk8AzOD/e6v1o1kSDTpq1Isk2OEewnsdh/XBMZgdjmQBy/DP34u572jwDVRNLY2MgzXDqCYqLb9mghWFaOQMyJUSWBzJbXGb8qWhKcNaIjiEciqLbX2KnnqCKTwUonyeCbe75aQZv+6j4aHv3I094GBO4YTYrA/Z577iHZwJLoGri/9z9/oGc3VYc5kO4estOHmQW5beofAUBma/Sfv+d5nA3qJLh6q9J5i52KOtZJsHU3fFcrUQkXy/RfBcSvSFBxV0UkTjFRx81X4xfC3rpb0ZDIbhIxBMSvSCAOuDhRjBJyAyLBWSG69W4hq9X30zCbGtOwIFYNGYTgiMRr4I7uX1y5ZQyBWI5zQKhuXcAhWhGLElY1LIhxsQSSEclTnlPAAEMg0IEr2+VCg6NuNZJQrYhtMwtiWdVkEAoyKxCJlzZ5B1VcLghVt/RvaFaEWZAKVhXuYMakhgzCQQoYXXbj5719eDdv3qRf/epX0nu41q1bR/Pz8/Tuu++SLlSxixJ/v8UyZ9mTL06bQD1cDhz7DfW9/oGvOVAImDGxRJa7g8N01q9fH9mo1aBgevzU6XbBdRFr2vs56YaSQYNj6t/8jf7H0W0yt/HCiqEdRZd4BBeficuzJBoTpEeEk+Fqb/F+uq5TL5ElEsQjuhQREax72avj82+tZC7WNqVm25UDzn5rrzgduDKAq9Xa2ip9tJEX4GZd/88fkEBs42JJAO3y0//e7tnlwulWOFxTBk59RAdXC27WzO++IJFUJHfXJckQOQgm21sfoMkrs54+1Pfee48v0scff5yiBvWRL7/8UooVwaTFxZuH5zY8VEUN69aQsH+/nFwsjLic+fhzT7N3o6T7tfN8Tq0buJpjnE/QI6lLAa7W2rVrIy1mNj5cRT276xYzU5NXrtPJkY943aPQpBPUngR+vvYKKhOwC63rtcx0jDYWKEc4AKAgKG7hlF2vdRIs0q1bt3KRRO3yQJxIO0c5+6uSxRS5SQ10J+xlGUF8lkkWwx35xdRdQrkm2MUqixgEb2jLS2cXvx5mi1IW8JMRoFf99c+p5eWz3KpNXPGensRpU/39/SSDpqYmJYZQIHbDjs5D/Rup9v6lcdzM78Vux4VA5M/LDBEsSJyDnuvnY9aSjMNbYDEaf/BLnsXCVPNSkXWAj9Marwo4fPXcm9+jxnV3mkMFf65z6OaNrUDwZsFyLL9Ch1VUKgYsBSyGiCwLXK1ytyIOtcyaXPjZM3yIRuboBJHnJ1hzsXWxHLeqkPsSpZuFblMn/hEFLIiMs9SjtCJe20YgDMflwk0kqKTHzoKcHPmQuzLFfPsh4VXX/EAcyRAmlcOKYAiEjCp7VFbEb1+Vl/PufWHZMwmy4xODYJ/ylq4x2tI97urjczfrSrhuFlK3yRDH+CPlKmPgQlRWpHLVSpINE4h9jTQHqb4T5z6ktU+fYGnTjzz/3HiI+5lxUlL3a+EOXXasiAxgRcKsxyCSQJpXKmlYEM2DdFiNrd1jtHXfuO/MUJgWpPXlsxQFsCKyMlqh7mFnCqnzuHU5vNdgzSMGmSFNSV2+Tuuf/aUvq5HL2PlPKAwQd4juCSqETCuyZ88eCpPKVVItiJ21IAktLQjE0RowbYqfFV0Pmc5WeaNkfHxcSrCOan6YwXrDOskWpKICAlnQY8tYDvDvt3aPByq2OYi+0ss6W09WynfHjh0UBshghTg10RsLabhYae0sCMQhamGLnBQO63E4ovRxLnCzsANRBjijPQwaZMcfnBUTCavxZzOkUbvJ2PlPhQbX1z4WZ0EknsxKk5OTsXKzFBDInNU4tFhJnyFNGBq+SiIRFYPMSLIeDhCHrAELotO9qIw/sUF6t/UM/si0u6ftSUpY0oZYo46BhYpmvmu//5zmWWyx+t6VVP3nq3hbOnxRK9tiMyk4NStKIH7EsbxlqOa+r931nFwX0uspr7AiUfdJIQ5BTQQNlCKRbkHSmfqgsx8El55woq0C4EPHIjhy6ip3m8aK7Ino2LyWenbV8dbmCeECCR7og2KWzRE3PvSGh9dQ/cOVVH3fKv44nzgcYJXw+6J15u0Ln/HkRCEQh6AesnfvXooaCEQkaGf3MwEmHCxujrMCsWYoZJyroFdR5IK+KdQ6end5OxtQBrlCcywE+oLqH6qittZvc3H4zco4C8XZNOTW1wULIgPEIZjpK2q3YfOGb5BksFrH8SArkBVjRLcpKKhqz7CgN7dFYO4Gep6u8ysgCnOlZp/gCnWHcF525b1i+n16dz/ChD/FRdDW8gDt2Pyg8DTl9r97sKhAsEARi8gYsFBfXy9EILC2TfLjD0IGi/+JPxCt25MvzgSdsIiqdlQVZFGIWsQYDodbmMAdw+stFjfJEggGO4hCvkDsGWgCj+7sB7HswCmQWul+o3+KxQAq4mbxZEyIR6Au6tgEuKXS4480LfqqdwSyYI9TQA79eKP86qdPqjUTtdviwRmIMvjOd75DQYF75fV47RBB/DHmfJGzo9AKbEHw4cEX1wnp/T4+Wa3ZBcgvasQf1t0WxGo8OkYCKurww1uU+CXdKSWzJJuqGAsE2Tr56V1U0LkWOEv3pNskpBQLV0uHD1KNfh9/zEqYxhIFirhXSM8v0cAygdhC9m/iKrBfsemF+UAqVjfmXQSyevVq0hGsmTYfk+9Dwmax+BINLJtqYo+RIFD97vZxBFnU4ANRYbqiX9xaY2QNmQ6SHEBhde82VdbK0mTVEoFYjW9NiKyqw4q0KLoIlTDnJeBWZ5IhELS5BOokZgppa36A5IP6x1tFXCyQFuNmORwfaLprPKRsYD062vQTCPqy3CyIrGOcg9Rf4G0oEJzDwRpb/q18g+OE7rxBlmjkze8pJRJlPhCfXPu4+OYutJ3r5mIhOO9Ro8fOJts6svybdwlEVLo3FyxGVUSC19C7W92mx0Lw0UYu0yBlWY8ge1HUuVjBvbqT3nXIP3o0TcI3OKsgEsea6crbFwp3P8s8OrpUcShkPfK6V6DQbN5QNjjLFgn6mHAAi9cNSCqB/SZuAfoTTzxBUYMAfWhoiPwCcWD7giKubl73ChQchW1PbsPOpFAcWgSa/a9f4qM5ZaxVNCgeH2jmhUJL5DDwkICgMeKo2P4ZnEg7NSVnYEQpJ0/hIomLpSLu1bRVfyxv1qbwdPc0HaSQgKuDFPD+Hz7KTyaNGlyJ0Zrf2fNO0V16qgDr4ba5TJZ7hV2MfsWBi1Jy1yMKJUqsgpnbwhYk1VFJiduhH6KBbaXYKYc93bJcH5w6u50Fi6qlo8HsjS+ZmE8Xda8Qf8B6RB2kw3p0dHTQkSNHfP0camMjbz5FimBT+vba7HSfuyjqYNgT20bZM5opAnBWXz8TCnL9MoQCtwvn3+1l1X9V3C68DxiAffCt4gd8btmyhY4fP05Rg+Pg4F75Ae/t1Ol2dayHRaNW3dHWQv+7+AE6NkU29BWdnBd//gy/sqCIB9cryoWKKzS29GJC/NDJq9z1khnM49+GZXUTB6xH2DNy8wHr4Xeao2KBOWDBuT1U7AmuSzDMYN0N+N3DIx/S5G9nuStWyiicUoFFwe62nuwHGqVYHXHg5sbOnTvp0KFDFDWwHq2trb7iD8VcKyoWnDu4CyS1LcnsjDonN1Km5aL1pbORtX6jmIXOX2czT5hiQczR9/oHrpYj8zr0iT3Uylpx2GXI7mACKfpLFHexOCswEUyp0aRIz/ppp8eHiTYMq8SVjbFDOIAT7hfcsNRvMnGSSCuGv2v0vz/hAblXcQwMDEipnsN6+BGHelkrYM9QeuFtt2d5WjEqWhHg5/y/rq4uPpoGp8PiAw4KXDDsX8Atd2eiHw3mTpT8JyYKr3PCIA6IXoZrNTs7S+vXr/fsWjlxh3IzzWx70Go41un2NI8C4SlfrCo5nXBF8CMSZ1HhwBlcAUUIxYEPiWNCqWXCqXtoDdXcv6rgSNGJy9fpGoupxs5/RuMXPvE93RGZowsXLkTemAjXqru7mw4e9F4iUy/u4BRN7ebi+XqnqhUBO1nBb2jYWxUZBTWkROfn53kWBmKxNeo9QcV8ZGREStwBYUAgXqm9/14mjifV65z2aD2AD4Goa0XAzh+94/loZywuLDIsNrgKEAlOi4X7oDKwHOfOnZMSd1y8eJEeffRRz89XVhw+rAfwEKRn4JPmQmw/CcoAC9obPY7wgSiQooSLhcU2ODjIF0AymeSiKTWYDwu8HhQD4VbJEAcyZU8++aTn51d9/at0fOBv1BQHq3t4FQfwLJAM6mW0HDKt7E/5EgmCTWdsPxYezv7GYkCc0tjYqIRQMNIT2Sq4hTI2Q+EiAnF43VKLt+z4wBN8cr16sMyVvdDv5ycq/Dy5742Jm8lX6v4kqvYTv9zz1Qp6dlMN/XbmBl2evuH6/Js3b9KZM2cWz7hwBIGU8CuvvMKPF8Nzbty4wWOWKMFraWlpodOnT9OmTZtIBqlUip5++mlfGavB/u8uTqNXDBZoWgethrd8bSn3fYnMxCK3LrIfrSWF8RO4A7hW8O9xnw+cAYjbqVOn+NU0rMDe2fjU09MjrUPXOWtk69atviwHxKHuMAz3qnk+SvIhWEarnTlnJ0hx/KSAAVwYxCHobSrmXmHxQCw4jwNHMDuUIppcqwWLhQNwZO0rB865637OXkff3GD/RhXmWhXCU9U8HyU72fbEthH20y2kOE5Pk5+1i3oJruCFrMlyIBiIBf76pUuX+FXXOasjH4h3IIjq6upFYcgUBYAwsHV23759/PfxyhoWkJ9j2So1Y44sNp2wGo5upRIoXSCp52oosSJFiqZ9c0H6d99PzvMDfryCBYvqO4QSJFiHSByhyBqq4AbS26hx+LEaQOFUbi6+0rrLCZSmUbl4uBx0A7e+/B++dxBiUcPt2r59u3Lp36A4+8nRfuOnKxdvQ8PDf6pqKjcX+A19Vv1Rf8rPIfAnbk++MKV6wO4AkXT2/JpG3/fW85QLAmakfyEY3YXiBOEQhh93CuBXx6aygVfVn73MftMpFncEGsDssw6Sh7TlqWSvApmpKk9Rcned75Z1LCRUsjs7O/ljndpTHPCaR0dHeZEUN7/iQDCOgqwe4oBrteC9ulkAIZdC5moNMKl1kUakrszS97vHSx7aAIuCYB6uF1DVqjhzc9F3hnYav6IAGrlUDoFdKwdhn6o9uY3VRqiRNAIuF9LAR35R+sAIuFxO3UIV98uxbk46Gp3LpQ6X1sulcgjuWjmIE0gmqwWRaHcqzdCpq9T/0w8CjwBCyhZWBQPc8BhEJRiRogAZq7GG9r/6KG/l14hZlrVaX2rWajlCPz079UIXJawB0hBsXMIgu36fNZNCOJZl8+bNi3UPh6CiyY1/ULtAsRLCwH2gYwiyINbAeR29r2g3w5jFHXa31XhMWFOt8MubjvFILiLcrnygrgKRYFcjCpB1dXX8e7gVq484dRRnQDR6wnCPwmSxYmQpQLfYf9+j1uQRr+DTOsjiDu8bVjwQgkD4vpER0iweWQ62vyIlDMFElbByBANyC4xhA2E4E1w0c6dysKco/cWjVuNJoW9aKA6yzvHIcpz4JEqhREU8hAHsaZbSbRUVd+QSWgTJXK1m5mqNhPlvRAksSh9zvcYvfKq1UPBhVLIYo73lAdq++UHNhcFhcQe15jvbQwShLl6dg/ZCODHK2xc+08qqwFpgUxmC773Pr9PufPgCCKt3FCL0q7tO/Vp+gfs1PPIRDY9lTn5STSyOKLBHA63oMbAWuYQuDhCJ+8OKiIPsroNiClLEGL6N+VaOZeE7EChanOxx7syumInCAW/tYSaOnRQy0QgkJpktr2A06vj5T5hgPlucK8wRKJrcUgoG12EsasND7P6xb+WdxxUv7IusUu59xEoAIgugy00kucDCQDSTV66zav0XdOm3meOccXM7Vg3ATcLxcbhHdXs1e1zPxNCwbg0XQ0ziCY/YKZbObRWdzi1EpBmmTPq3YkSX9vgoKSSU+FsDP4SXzi1E5ClYIxJDaUQvDiClRmFEYvCHHHGA4BumSoD/ouwXZg9TZDAUBTGHHHEAqVXucg7cDa7Y2YD8yagC8nwo0QYS9zqJwTe8zkHpz7tligMo0ycV54q7wReRVMi9olQjYVYkPRSTBkeDb4RveAqKcgsx0wVsHzIZrrLjOqXp+2F15ZaKkldqkwYuKxCMT7BM1VZZmapiSEnzupFJA69cz64oOLwjZtuUDDnwbbKZ1hH1xAGU9/Wze0oQl2i/O9GwhFkWb/SpFG/kQ4tg2LhcsSJb31j4vqpWIxdtskUseMedyXLpTSiTR8JEq4XGLAnuapk1OWesiVbY/HzAtNWpWpbKDS2vxMaaaMUsTkdmwlCi8OcXbRdX1prUkLVigP0WbWSEoho2+2+M7NudOsQahdB+Udmp53HXkcl0GbdLAbLuVJpVxP/V14myKhKbq+4dt8veboQiBQTgc3CniD4/KLvJUBSxcksW3S6qYEKxcHCHcbvCJ5bCcIjlAjJCiYRYC8Mh1gsnRyi9LOPVxH5d9tiIJSBlIQyHslgsd4SSaM4G8+yxEYpPykoYDmW3SBazXlZiB/vtmVUxQnEhm66lft2KfCIo28WRY1XQDLnZWJUllKW1yIdZELSYIm5mj3aUcaySFUX6MLtoDJejtciHEcgyCogFxO29yu6zsTCCadiIIj9GIEXIxisNlEg0seXUxt4tnMRZmf3fur13zsazOfZogr36k8xavG01vjVBhoIYgfhg0bokqJ4tsiay7AZFLUzOLkxmIWwbghhjMcUlYyX8YQQSADvFeySZRVkFy9LM3k2cm1zD7mvojqVxEP1eL9+KDMsww/d3W9YEE8M1FmCPl3OALQIjkBBYJpxKZnGqmTvDhIPvWdX8SZZVk312Jd0tJge2uK3MArftuczXNizCPHP7sL+Cfb0wSZSe07ljVmX+H5kkIaDHFXlyAAAAAElFTkSuQmCC";var fr=n.p+"static/media/saros.50c91e5701f8a76d0238547d154c4679.svg";var pr=n.p+"static/media/icon-arrow-left.39d823a14b6a13a85df262cb19283900.svg";function hr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=[];return g.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Or(e)):(0,de.isFragment)(e)&&e.props?n=n.concat(Or(e.props.children,t)):n.push(e))})),n}function Pr(e,t,n){var r=g.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Rr(e,t){"function"===typeof e?e(t):"object"===wr(e)&&e&&"current"in e&&(e.current=t)}function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){Vr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ur?(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(){Vr&&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;Wr.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yr=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),oi="undefined"!==typeof WeakMap?new WeakMap:new Fr,ai=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=Qr.getInstance(),r=new ii(t,n,this);oi.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ai.prototype[e]=function(){var t;return(t=oi.get(this))[e].apply(t,arguments)}}));var si="undefined"!==typeof Gr.ResizeObserver?Gr.ResizeObserver:ai,li=new Map;var ui=new si((function(e){e.forEach((function(e){var t,n=e.target;null===(t=li.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var ci=function(e){yr(n,e);var t=_r(n);function n(){return hr(this,n),t.apply(this,arguments)}return vr(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),di=g.createContext(null);function fi(e){var t=e.children,n=e.disabled,r=g.useRef(null),i=g.useRef(null),o=g.useContext(di),a="function"===typeof t,s=a?t(r):t,l=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&g.isValidElement(s)&&Br(s),c=u?s.ref:null,d=g.useMemo((function(){return Lr(c,r)}),[c,r]),f=g.useRef(e);f.current=e;var p=g.useCallback((function(e){var t=f.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,s=i.height,u=e.offsetWidth,c=e.offsetHeight,d=Math.floor(a),p=Math.floor(s);if(l.current.width!==d||l.current.height!==p||l.current.offsetWidth!==u||l.current.offsetHeight!==c){var h={width:d,height:p,offsetWidth:u,offsetHeight:c};l.current=h;var g=u===Math.round(a)?a:u,v=c===Math.round(s)?s:c,m=rn(rn({},h),{},{offsetWidth:g,offsetHeight:v});null===o||void 0===o||o(m,e,r),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return g.useEffect((function(){var e,t,o=zr(r.current)||zr(i.current);return o&&!n&&(e=o,t=p,li.has(e)||(li.set(e,new Set),ui.observe(e)),li.get(e).add(t)),function(){return function(e,t){li.has(e)&&(li.get(e).delete(t),li.get(e).size||(ui.unobserve(e),li.delete(e)))}(o,p)}}),[r.current,n]),g.createElement(ci,{ref:i},u?g.cloneElement(s,{ref:d}):s)}function pi(e){var t=e.children;return("function"===typeof t?[t]:Or(t)).map((function(t,n){var r=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return g.createElement(fi,S({},e,{key:r}),t)}))}pi.Collection=function(e){var t=e.children,n=e.onBatchResize,r=g.useRef(0),i=g.useRef([]),o=g.useContext(di),a=g.useCallback((function(e,t,a){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===o||void 0===o||o(e,t,a)}),[n,o]);return g.createElement(di.Provider,{value:a},t)};var hi=pi;function gi(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var vi=gi()?g.useLayoutEffect:g.useEffect,mi=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"],yi=void 0;function xi(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.registerSize,l=e.itemKey,u=e.className,c=e.style,d=e.children,f=e.display,p=e.order,h=e.component,v=void 0===h?"div":h,m=an(e,mi),y=a&&!f;function x(e){s(l,e)}g.useEffect((function(){return function(){x(null)}}),[]);var b,w=o&&i!==yi?o(i):d;r||(b={opacity:y?0:1,height:y?0:yi,overflowY:y?"hidden":yi,order:a?p:yi,pointerEvents:y?"none":yi,position:y?"absolute":yi});var A={};y&&(A["aria-hidden"]=!0);var _=g.createElement(v,S({className:ln()(!r&&n,u),style:rn(rn({},b),c)},A,m,{ref:t}),w);return a&&(_=g.createElement(hi,{onResize:function(e){x(e.offsetWidth)}},_)),_}var bi=g.forwardRef(xi);bi.displayName="Item";var wi=bi,Si=function(e){return+setTimeout(e,16)},Ai=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Si=function(e){return window.requestAnimationFrame(e)},Ai=function(e){return window.cancelAnimationFrame(e)});var _i=0,Ci=new Map;function ki(e){Ci.delete(e)}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=_i+=1;function r(t){if(0===t)ki(n),e();else{var i=Si((function(){r(t-1)}));Ci.set(n,i)}}return r(t),n}Ei.cancel=function(e){var t=Ci.get(e);return ki(t),Ai(t)};var Mi=["component"],Ii=["className"],Ti=["className"],Di=function(e,t){var n=g.useContext(Ri);if(!n){var r=e.component,i=void 0===r?"div":r,o=an(e,Mi);return g.createElement(i,S({},o,{ref:t}))}var a=n.className,s=an(n,Ii),l=e.className,u=an(e,Ti);return g.createElement(Ri.Provider,{value:null},g.createElement(wi,S({ref:t,className:ln()(a,l)},s,u)))},Ni=g.forwardRef(Di);Ni.displayName="RawItem";var Oi=Ni,Pi=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ri=g.createContext(null),Li="responsive",Bi="invalidate";function ji(e){return"+ ".concat(e.length," ...")}function zi(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,i=e.data,o=void 0===i?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,c=void 0===u?10:u,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,v=e.renderRest,m=e.renderRawRest,y=e.suffix,x=e.component,b=void 0===x?"div":x,A=e.itemComponent,_=e.onVisibleChange,C=an(e,Pi),k=function(){var e=w(Er({}),2)[1],t=(0,g.useRef)([]),n=0,r=0;return function(i){var o=n;return n+=1,t.current.lengthh,oe=(0,g.useMemo)((function(){var e=o;return ne?e=null===I&&E?o:o.slice(0,Math.min(o.length,D/c)):"number"===typeof h&&(e=o.slice(0,h)),e}),[o,c,I,h,ne]),ae=(0,g.useMemo)((function(){return ne?o.slice(J+1):o.slice(oe.length)}),[o,oe,ne,J]),se=(0,g.useCallback)((function(e,t){var n;return"function"===typeof l?l(e):null!==(n=l&&(null===e||void 0===e?void 0:e[l]))&&void 0!==n?n:t}),[l]),le=(0,g.useCallback)(a||function(e){return e},[a]);function ue(e,t){q(e),t||($(eD){ue(r-1),Q(e-i-G+z);break}}y&&de(0)+G>D&&Q(null)}}),[D,O,z,G,se,oe]);var fe=X&&!!ae.length,pe={};null!==U&&ne&&(pe={position:"absolute",left:U,top:0});var he,ge={prefixCls:ee,responsive:ne,component:A,invalidate:re},ve=s?function(e,t){var n=se(e,t);return g.createElement(Ri.Provider,{key:n,value:rn(rn({},ge),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=J})},s(e,t))}:function(e,t){var n=se(e,t);return g.createElement(wi,S({},ge,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:ce,display:t<=J}))},me={order:fe?J:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){F(t),B(z)},display:fe};if(m)m&&(he=g.createElement(Ri.Provider,{value:rn(rn({},ge),me)},m(ae)));else{var ye=v||ji;he=g.createElement(wi,S({},ge,me),"function"===typeof ye?ye(ae):ye)}var xe=g.createElement(b,S({className:ln()(!re&&r,p),style:f,ref:t},C),oe.map(ve),ie?he:null,y&&g.createElement(wi,S({},ge,{order:J,className:"".concat(ee,"-suffix"),registerSize:function(e,t){H(t)},display:!0,style:pe}),y));return ne&&(xe=g.createElement(hi,{onResize:function(e,t){T(t.clientWidth)}},xe)),xe}var Fi=g.forwardRef(zi);Fi.displayName="Overflow",Fi.Item=Oi,Fi.RESPONSIVE=Li,Fi.INVALIDATE=Bi;var Vi=Fi,Gi={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>=Gi.F1&&t<=Gi.F12)return!1;switch(t){case Gi.ALT:case Gi.CAPS_LOCK:case Gi.CONTEXT_MENU:case Gi.CTRL:case Gi.DOWN:case Gi.END:case Gi.ESC:case Gi.HOME:case Gi.INSERT:case Gi.LEFT:case Gi.MAC_FF_META:case Gi.META:case Gi.NUMLOCK:case Gi.NUM_CENTER:case Gi.PAGE_DOWN:case Gi.PAGE_UP:case Gi.PAUSE:case Gi.PRINT_SCREEN:case Gi.RIGHT:case Gi.SHIFT:case Gi.UP:case Gi.WIN_KEY:case Gi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Gi.ZERO&&e<=Gi.NINE)return!0;if(e>=Gi.NUM_ZERO&&e<=Gi.NUM_MULTIPLY)return!0;if(e>=Gi.A&&e<=Gi.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Gi.SPACE:case Gi.QUESTION_MARK:case Gi.NUM_PLUS:case Gi.NUM_MINUS:case Gi.NUM_PERIOD:case Gi.NUM_DIVISION:case Gi.SEMICOLON:case Gi.DASH:case Gi.EQUALS:case Gi.COMMA:case Gi.PERIOD:case Gi.SLASH:case Gi.APOSTROPHE:case Gi.SINGLE_QUOTE:case Gi.OPEN_SQUARE_BRACKET:case Gi.BACKSLASH:case Gi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Hi=Gi;function Wi(e,t){var n=rn({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var Ui=["children","locked"],Qi=g.createContext(null);function Yi(e){var t=e.children,n=e.locked,r=an(e,Ui),i=g.useContext(Qi),o=Pr((function(){return function(e,t){var n=rn({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(i,r)}),[i,r],(function(e,t){return!n&&(e[0]!==t[0]||!pe()(e[1],t[1]))}));return g.createElement(Qi.Provider,{value:o},t)}function Ki(e,t,n,r){var i=g.useContext(Qi),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),s(e)}),l}var qi=["item"];function Ji(e){var t=e.item,n=an(e,qi);return Object.defineProperty(n,"item",{get:function(){return Nr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function Zi(e){var t=e.icon,n=e.props,r=e.children;return("function"===typeof t?g.createElement(t,rn({},n)):t)||r||null}function Xi(e){var t=g.useContext(Qi),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}var $i=[],eo=g.createContext(null);function to(){return g.useContext(eo)}var no=g.createContext($i);function ro(e){var t=g.useContext(no);return g.useMemo((function(){return void 0!==e?[].concat(kr(t),[e]):t}),[t,e])}var io=g.createContext(null),oo=g.createContext(null);function ao(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function so(e){return ao(g.useContext(oo),e)}var lo=g.createContext({}),uo=["title","attribute","elementRef"],co=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fo=["active"],po=function(e){yr(n,e);var t=_r(n);function n(){return hr(this,n),t.apply(this,arguments)}return vr(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=Wi(an(e,uo),["eventKey"]);return Nr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),g.createElement(Vi.Item,S({},n,{title:"string"===typeof t?t:void 0},i,{ref:r}))}}]),n}(g.Component),ho=function(e){var t,n=e.style,r=e.className,i=e.eventKey,o=(e.warnKey,e.disabled),a=e.itemIcon,s=e.children,l=e.role,u=e.onMouseEnter,c=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,p=e.onFocus,h=an(e,co),v=so(i),m=g.useContext(Qi),y=m.prefixCls,x=m.onItemClick,b=m.disabled,w=m.overflowDisabled,A=m.itemIcon,_=m.selectedKeys,C=m.onActive,k=g.useContext(lo)._internalRenderMenuItem,E="".concat(y,"-item"),M=g.useRef(),I=g.useRef(),T=b||o,D=ro(i);var N=function(e){return{key:i,keyPath:kr(D).reverse(),item:M.current,domEvent:e}},O=a||A,P=Ki(i,T,u,c),R=P.active,L=an(P,fo),B=_.includes(i),j=Xi(D.length),z={};"option"===e.role&&(z["aria-selected"]=B);var F=g.createElement(po,S({ref:M,elementRef:I,role:null===l?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":w&&v?null:v},h,L,z,{component:"li","aria-disabled":o,style:rn(rn({},j),n),className:ln()(E,(t={},tn(t,"".concat(E,"-active"),R),tn(t,"".concat(E,"-selected"),B),tn(t,"".concat(E,"-disabled"),T),t),r),onClick:function(e){if(!T){var t=N(e);null===d||void 0===d||d(Ji(t)),x(t)}},onKeyDown:function(e){if(null===f||void 0===f||f(e),e.which===Hi.ENTER){var t=N(e);null===d||void 0===d||d(Ji(t)),x(t)}},onFocus:function(e){C(i),null===p||void 0===p||p(e)}}),s,g.createElement(Zi,{props:rn(rn({},e),{},{isSelected:B}),icon:O}));return k&&(F=k(F,e,{selected:B})),F};var go=function(e){var t=e.eventKey,n=to(),r=ro(t);return g.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:g.createElement(ho,e)};function vo(e,t){return Or(e).map((function(e,n){if(g.isValidElement(e)){var r,i,o=e.key,a=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:o;(null===a||void 0===a)&&(a="tmp_key-".concat([].concat(kr(t),[n]).join("-")));var s={key:a,eventKey:a};return g.cloneElement(e,s)}return e}))}function mo(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Ei((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),a=w(o,2),s=a[0],l=a[1];return qo((function(){if(r!==Wo&&r!==Ko){var e=Jo.indexOf(r),n=Jo[e+1],o=t(r);false===o?i(n,!0):s((function(e){function t(){e.isCanceled()||i(n,!0)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,r]),g.useEffect((function(){return function(){l()}}),[]),[function(){i(Uo,!0)},r]};function $o(e,t,n,r){var i=r.motionEnter,o=void 0===i||i,a=r.motionAppear,s=void 0===a||a,l=r.motionLeave,u=void 0===l||l,c=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,v=r.onAppearStart,m=r.onEnterStart,y=r.onLeaveStart,x=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,A=r.onAppearEnd,_=r.onEnterEnd,C=r.onLeaveEnd,k=r.onVisibleChanged,E=w(Er(),2),M=E[0],I=E[1],T=w(Er(Fo),2),D=T[0],N=T[1],O=w(Er(null),2),P=O[0],R=O[1],L=(0,g.useRef)(!1),B=(0,g.useRef)(null);function j(){return n()}var z=(0,g.useRef)(!1);function F(e){var t=j();if(!e||e.deadline||e.target===t){var n,r=z.current;D===Vo&&r?n=null===A||void 0===A?void 0:A(t,e):D===Go&&r?n=null===_||void 0===_?void 0:_(t,e):D===Ho&&r&&(n=null===C||void 0===C?void 0:C(t,e)),D!==Fo&&r&&!1!==n&&(N(Fo,!0),R(null,!0))}}var V=function(e){var t=(0,g.useRef)(),n=(0,g.useRef)(e);n.current=e;var r=g.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(jo,r),e.removeEventListener(Bo,r))}return g.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(jo,r),e.addEventListener(Bo,r),t.current=e)},i]}(F),G=w(V,1)[0],H=g.useMemo((function(){var e,t,n;switch(D){case Vo:return tn(e={},Uo,f),tn(e,Qo,v),tn(e,Yo,x),e;case Go:return tn(t={},Uo,p),tn(t,Qo,m),tn(t,Yo,b),t;case Ho:return tn(n={},Uo,h),tn(n,Qo,y),tn(n,Yo,S),n;default:return{}}}),[D]),W=w(Xo(D,(function(e){if(e===Uo){var t=H.prepare;return!!t&&t(j())}var n;Q in H&&R((null===(n=H[Q])||void 0===n?void 0:n.call(H,j(),null))||null);return Q===Yo&&(G(j()),c>0&&(clearTimeout(B.current),B.current=setTimeout((function(){F({deadline:!0})}),c))),true})),2),U=W[0],Q=W[1],Y=Zo(Q);z.current=Y,qo((function(){I(t);var n,r=L.current;(L.current=!0,e)&&(!r&&t&&s&&(n=Vo),r&&t&&o&&(n=Go),(r&&!t&&u||!r&&d&&!t&&u)&&(n=Ho),n&&(N(n),U()))}),[t]),(0,g.useEffect)((function(){(D===Vo&&!s||D===Go&&!o||D===Ho&&!u)&&N(Fo)}),[s,o,u]),(0,g.useEffect)((function(){return function(){L.current=!1,clearTimeout(B.current)}}),[]),(0,g.useEffect)((function(){void 0!==M&&D===Fo&&(null===k||void 0===k||k(M))}),[M,D]);var K=P;return H.prepare&&Q===Qo&&(K=rn({transition:"none"},K)),[D,Q,K,null!==M&&void 0!==M?M:t]}var ea=function(e){yr(n,e);var t=_r(n);function n(){return hr(this,n),t.apply(this,arguments)}return vr(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),ta=ea;var na=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===wr(e)&&(t=e.transitionSupport);var r=g.forwardRef((function(e,t){var r=e.visible,i=void 0===r||r,o=e.removeOnLeave,a=void 0===o||o,s=e.forceRender,l=e.children,u=e.motionName,c=e.leavedClassName,d=e.eventProps,f=n(e),p=(0,g.useRef)(),h=(0,g.useRef)();var v=w($o(f,i,(function(){try{return p.current instanceof HTMLElement?p.current:zr(h.current)}catch(fV){return null}}),e),4),m=v[0],y=v[1],x=v[2],b=v[3],S=g.useRef(b);b&&(S.current=!0);var A,_=g.useCallback((function(e){p.current=e,Rr(t,e)}),[]),C=rn(rn({},d),{},{visible:i});if(l)if(m!==Fo&&n(e)){var k,E;y===Uo?E="prepare":Zo(y)?E="active":y===Qo&&(E="start"),A=l(rn(rn({},C),{},{className:ln()(zo(u,m),(k={},tn(k,zo(u,"".concat(m,"-").concat(E)),E),tn(k,u,"string"===typeof u),k)),style:x}),_)}else A=b?l(rn({},C),_):!a&&S.current?l(rn(rn({},C),{},{className:c}),_):s?l(rn(rn({},C),{},{style:{display:"none"}}),_):null;else A=null;return g.createElement(ta,{ref:h},A)}));return r.displayName="CSSMotion",r}(Lo),ra="add",ia="keep",oa="remove",aa="removed";function sa(e){var t;return rn(rn({},t=e&&"object"===wr(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function la(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(sa)}function ua(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=la(e),a=la(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==oa}))).forEach((function(t){t.key===e&&(t.status=ia)}))})),n}var ca=["component","children","onVisibleChanged"],da=["status"],fa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:na,n=function(e){yr(r,e);var n=_r(r);function r(){var e;hr(this,r);for(var t=arguments.length,i=new Array(t),o=0;o=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function as(e){var t,n,r;if(ts.isWindow(e)||9===e.nodeType){var i=ts.getWindow(e);t={left:ts.getWindowScrollLeft(i),top:ts.getWindowScrollTop(i)},n=ts.viewportWidth(i),r=ts.viewportHeight(i)}else t=ts.offset(e),n=ts.outerWidth(e),r=ts.outerHeight(e);return t.width=n,t.height=r,t}function ss(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function ls(e,t,n,r,i){var o=ss(t,n[1]),a=ss(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function us(e,t,n){return e.leftn.right}function cs(e,t,n){return e.topn.bottom}function ds(e,t,n){var r=[];return ts.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function fs(e,t){return e[t]=-e[t],e}function ps(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function hs(e,t){e[0]=ps(e[0],t.width),e[1]=ps(e[1],t.height)}function gs(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;o=[].concat(o),a=[].concat(a);var u={},c=0,d=os(l,!(!(s=s||{})||!s.alwaysByViewport)),f=as(l);hs(o,f),hs(a,t);var p=ls(f,t,i,o,a),h=ts.merge(f,p);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&us(p,f,d)){var g=ds(i,/[lr]/gi,{l:"r",r:"l"}),v=fs(o,0),m=fs(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),ts.mix(i,o)}(p,f,d,u))}return h.width!==f.width&&ts.css(l,"width",ts.width(l)+h.width-f.width),h.height!==f.height&&ts.css(l,"height",ts.height(l)+h.height-f.height),ts.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function vs(e,t,n){var r=n.target||t,i=as(r),o=!function(e,t){var n=os(e,t),r=as(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return gs(e,i,n,o)}vs.__getOffsetParent=rs,vs.__getVisibleRectForElement=os;var ms=n(8111),ys=n.n(ms);function xs(e,t){var n=null,r=null;var i=new si((function(e){var i=w(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=Math.floor(a),u=Math.floor(s);n===l&&r===u||Promise.resolve().then((function(){t({width:l,height:u})})),n=l,r=u}}));return e&&i.observe(e),function(){i.disconnect()}}function bs(e){return"function"!==typeof e?null:e()}function ws(e){return"object"===wr(e)&&e?e:null}var Ss=function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,u=void 0===l?0:l,c=g.useRef({}),d=g.useRef(),f=g.Children.only(n),p=g.useRef({});p.current.disabled=r,p.current.target=i,p.current.align=o,p.current.onAlign=a;var h=function(e,t){var n=g.useRef(!1),r=g.useRef(null);function i(){window.clearTimeout(r.current)}return[function o(a){if(n.current&&!0!==a)i(),r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=p.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign;if(!t&&n){var o,a=d.current,s=bs(n),l=ws(n);c.current.element=s,c.current.point=l,c.current.align=r;var u=document.activeElement;return s&&ma(s)?o=vs(a,s,r):l&&(o=function(e,t,n){var r,i,o=ts.getDocument(e),a=o.defaultView||o.parentWindow,s=ts.getWindowScrollLeft(a),l=ts.getWindowScrollTop(a),u=ts.viewportWidth(a),c=ts.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},f=r>=0&&r<=s+u&&i>=0&&i<=l+c,p=[n.points[0],"cc"];return gs(e,d,xa(xa({},n),{},{points:p}),f)}(a,l,r)),function(e,t){e!==document.activeElement&&So(t,e)&&"function"===typeof e.focus&&e.focus()}(u,a),i&&o&&i(a,o),!0}return!1}),u),v=w(h,2),m=v[0],y=v[1],x=g.useRef({cancel:function(){}}),b=g.useRef({cancel:function(){}});g.useEffect((function(){var e,t,n=bs(i),r=ws(i);d.current!==b.current.element&&(b.current.cancel(),b.current.element=d.current,b.current.cancel=xs(d.current,m)),c.current.element===n&&((e=c.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&ys()(c.current.align,o)||(m(),x.current.element!==n&&(x.current.cancel(),x.current.element=n,x.current.cancel=xs(n,m)))})),g.useEffect((function(){r?y():m()}),[r]);var S=g.useRef(null);return g.useEffect((function(){s?S.current||(S.current=Ao(window,"resize",m)):S.current&&(S.current.remove(),S.current=null)}),[s]),g.useEffect((function(){return function(){x.current.cancel(),b.current.cancel(),S.current&&S.current.remove(),y()}}),[]),g.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),g.isValidElement(f)&&(f=g.cloneElement(f,{ref:Lr(f.ref,d)})),f},As=g.forwardRef(Ss);As.displayName="Align";var _s=As,Cs=n(7757),ks=n.n(Cs);function Es(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ms(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Es(o,r,i,a,s,"next",e)}function s(e){Es(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Is=["measure","align",null,"motion"],Ts=g.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,o=e.style,a=e.children,s=e.zIndex,l=e.stretch,u=e.destroyPopupOnHide,c=e.forceRender,d=e.align,f=e.point,p=e.getRootDomNode,h=e.getClassNameFromAlign,v=e.onAlign,m=e.onMouseEnter,y=e.onMouseLeave,x=e.onMouseDown,b=e.onTouchStart,A=(0,g.useRef)(),_=(0,g.useRef)(),C=w((0,g.useState)(),2),k=C[0],E=C[1],M=function(e){var t=w(g.useState({width:0,height:0}),2),n=t[0],r=t[1];return[g.useMemo((function(){var t={};if(e){var r=n.width,i=n.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(l),I=w(M,2),T=I[0],D=I[1];var N=function(e,t){var n=w(Er(null),2),r=n[0],i=n[1],o=(0,g.useRef)();function a(e){i(e,!0)}function s(){Ei.cancel(o.current)}return(0,g.useEffect)((function(){a("measure")}),[e]),(0,g.useEffect)((function(){"measure"===r&&t(),r&&(o.current=Ei(Ms(ks().mark((function e(){var t,n;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Is.indexOf(r),(n=Is[t+1])&&-1!==t&&a(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,g.useEffect)((function(){return function(){s()}}),[]),[r,function(e){s(),o.current=Ei((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){l&&D(p())})),O=w(N,2),P=O[0],R=O[1],L=w((0,g.useState)(null),2),B=L[0],j=L[1],z=(0,g.useRef)();function F(){var e;null===(e=A.current)||void 0===e||e.forceAlign()}function V(e,t){var n=h(t);k!==n&&E(n),j(t),"align"===P&&(null===v||void 0===v||v(e,t))}vi((function(){if(B&&"align"===P){var e=h(B);k!==e?F():R((function(){var e;null===(e=z.current)||void 0===e||e.call(z)}))}}),[B]);var G=rn({},ha(e));function H(){return new Promise((function(e){z.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return R(),null===t||void 0===t?void 0:t(e,n)}})),g.useEffect((function(){G.motionName||"motion"!==P||R()}),[G.motionName,P]),g.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return _.current}}}));var W=rn(rn({},T),{},{zIndex:s,opacity:"motion"!==P&&"stable"!==P&&n?0:void 0,pointerEvents:"stable"===P?void 0:"none"},o),U=!0;!(null===d||void 0===d?void 0:d.points)||"align"!==P&&"stable"!==P||(U=!1);var Q=a;return g.Children.count(a)>1&&(Q=g.createElement("div",{className:"".concat(r,"-content")},a)),g.createElement(pa,S({visible:n,ref:_,leavedClassName:"".concat(r,"-hidden")},G,{onAppearPrepare:H,onEnterPrepare:H,removeOnLeave:u,forceRender:c}),(function(e,t){var n=e.className,o=e.style,a=ln()(r,i,k,n);return g.createElement(_s,{target:f||p,key:"popup",ref:A,monitorWindowResize:!0,disabled:U,align:d,onAlign:V},g.createElement("div",{ref:t,className:a,onMouseEnter:m,onMouseLeave:y,onMouseDownCapture:x,onTouchStartCapture:b,style:rn(rn({},o),W)},Q))}))}));Ts.displayName="PopupInner";var Ds=Ts,Ns=g.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,o=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,u=a.popupMotion,c=void 0===u?{}:u,d=a.popupRender,f=g.useRef();g.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return f.current}}}));var p=rn({zIndex:i},l),h=o;return g.Children.count(o)>1&&(h=g.createElement("div",{className:"".concat(n,"-content")},o)),d&&(h=d(h)),g.createElement(pa,S({visible:r,ref:f,removeOnLeave:!0},c),(function(e,t){var r=e.className,i=e.style,o=ln()(n,s,r);return g.createElement("div",{ref:t,className:o,style:rn(rn({},i),p)},h)}))}));Ns.displayName="MobilePopupInner";var Os=Ns,Ps=["visible","mobile"],Rs=g.forwardRef((function(e,t){var n=e.visible,r=e.mobile,i=an(e,Ps),o=w((0,g.useState)(n),2),a=o[0],s=o[1],l=w((0,g.useState)(!1),2),u=l[0],c=l[1],d=rn(rn({},i),{},{visible:a});(0,g.useEffect)((function(){s(n),n&&r&&c(Eo())}),[n,r]);var f=u?g.createElement(Os,S({},d,{mobile:r,ref:t})):g.createElement(Ds,S({},d,{ref:t}));return g.createElement("div",null,g.createElement(ga,d),f)}));Rs.displayName="Popup";var Ls=Rs,Bs=g.createContext(null);function js(){}function zs(){return""}function Fs(e){return e?e.ownerDocument:window.document}var Vs=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Gs=function(e){var t=function(t){yr(r,t);var n=_r(r);function r(e){var t,i;return hr(this,r),(t=n.call(this,e)).popupRef=g.createRef(),t.triggerRef=g.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&So(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();So(r,n)&&!t.isContextMenuOnly()||So(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=zr(t.triggerRef.current);if(n)return n}catch(r){}return jr.findDOMNode(Sr(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&o&&n.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(e){return f.current||e||v(!0),null===x||void 0===x?void 0:x(e)},h?null:g.createElement(Yi,{mode:o,locked:!f.current},g.createElement(pa,S({visible:m},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return g.createElement(wo,{id:t,className:n,style:r},i)})))}var Js=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Zs=["active"],Xs=function(e){var t,n=e.style,r=e.className,i=e.title,o=e.eventKey,a=(e.warnKey,e.disabled),s=e.internalPopupClose,l=e.children,u=e.itemIcon,c=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.onClick,h=e.onMouseEnter,v=e.onMouseLeave,m=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,b=an(e,Js),A=so(o),_=g.useContext(Qi),C=_.prefixCls,k=_.mode,E=_.openKeys,M=_.disabled,I=_.overflowDisabled,T=_.activeKey,D=_.selectedKeys,N=_.itemIcon,O=_.expandIcon,P=_.onItemClick,R=_.onOpenChange,L=_.onActive,B=g.useContext(lo)._internalRenderSubMenuItem,j=g.useContext(io).isSubPathKey,z=ro(),F="".concat(C,"-submenu"),V=M||a,G=g.useRef(),H=g.useRef();var W=u||N,U=c||O,Q=E.includes(o),Y=!I&&Q,K=j(D,o),q=Ki(o,V,y,x),J=q.active,Z=an(q,Zs),X=w(g.useState(!1),2),$=X[0],ee=X[1],te=function(e){V||ee(e)},ne=g.useMemo((function(){return J||"inline"!==k&&($||j([T],o))}),[k,J,T,$,o,j]),re=Xi(z.length),ie=mo((function(e){null===p||void 0===p||p(Ji(e)),P(e)})),oe=A&&"".concat(A,"-popup"),ae=g.createElement("div",S({role:"menuitem",style:re,className:"".concat(F,"-title"),tabIndex:V?null:-1,ref:G,title:"string"===typeof i?i:null,"data-menu-id":I&&A?null:A,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":V,onClick:function(e){V||(null===m||void 0===m||m({key:o,domEvent:e}),"inline"===k&&R(o,!Q))},onFocus:function(){L(o)}},Z),i,g.createElement(Zi,{icon:"horizontal"!==k?U:null,props:rn(rn({},e),{},{isOpen:Y,isSubMenu:!0})},g.createElement("i",{className:"".concat(F,"-arrow")}))),se=g.useRef(k);if("inline"!==k&&(se.current=z.length>1?"vertical":k),!I){var le=se.current;ae=g.createElement(Ks,{mode:le,prefixCls:F,visible:!s&&Y&&"inline"!==k,popupClassName:d,popupOffset:f,popup:g.createElement(Yi,{mode:"horizontal"===le?"vertical":le},g.createElement(wo,{id:oe,ref:H},l)),disabled:V,onVisibleChange:function(e){"inline"!==k&&R(o,e)}},ae)}var ue=g.createElement(Vi.Item,S({role:"none"},b,{component:"li",style:n,className:ln()(F,"".concat(F,"-").concat(k),r,(t={},tn(t,"".concat(F,"-open"),Y),tn(t,"".concat(F,"-active"),ne),tn(t,"".concat(F,"-selected"),K),tn(t,"".concat(F,"-disabled"),V),t)),onMouseEnter:function(e){te(!0),null===h||void 0===h||h({key:o,domEvent:e})},onMouseLeave:function(e){te(!1),null===v||void 0===v||v({key:o,domEvent:e})}}),ae,!I&&g.createElement(qs,{id:oe,open:Y,keyPath:z},l));return B&&(ue=B(ue,e,{selected:K,active:ne,open:Y,disabled:V})),g.createElement(Yi,{onItemClick:ie,mode:"horizontal"===k?"vertical":k,itemIcon:W,expandIcon:U},ue)};function $s(e){var t,n=e.eventKey,r=e.children,i=ro(n),o=vo(r,i),a=to();return g.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:g.createElement(Xs,e,o),g.createElement(no.Provider,{value:i},t)}function el(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ma(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function tl(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=kr(e.querySelectorAll("*")).filter((function(e){return el(e,t)}));return el(e,t)&&n.unshift(e),n}var nl=Hi.LEFT,rl=Hi.RIGHT,il=Hi.UP,ol=Hi.DOWN,al=Hi.ENTER,sl=Hi.ESC,ll=Hi.HOME,ul=Hi.END,cl=[il,ol,nl,rl];function dl(e,t){return tl(e,!0).filter((function(e){return t.has(e)}))}function fl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=dl(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}function pl(e,t,n,r,i,o,a,s,l,u){var c=g.useRef(),d=g.useRef();d.current=t;var f=function(){Ei.cancel(c.current)};return g.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(cl,[al,sl,ll,ul]).includes(h)){var g,v,m,y=function(){return g=new Set,v=new Map,m=new Map,o().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(ao(r,e),"']"));t&&(g.add(t),m.set(t,e),v.set(e,t))})),g};y();var x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(v.get(t),g),b=m.get(x),w=function(e,t,n,r){var i,o,a,s,l="prev",u="next",c="children",d="parent";if("inline"===e&&r===al)return{inlineTrigger:!0};var f=(tn(i={},il,l),tn(i,ol,u),i),p=(tn(o={},nl,n?u:l),tn(o,rl,n?l:u),tn(o,ol,c),tn(o,al,c),o),h=(tn(a={},il,l),tn(a,ol,u),tn(a,al,c),tn(a,sl,d),tn(a,nl,n?c:d),tn(a,rl,n?d:c),a);switch(null===(s={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}(e,1===a(b,!0).length,n,h);if(!w&&h!==ll&&h!==ul)return;(cl.includes(h)||[ll,ul].includes(h))&&p.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=m.get(e);s(r),f(),c.current=Ei((function(){d.current===r&&t.focus()}))}};if([ll,ul].includes(h)||w.sibling||!x){var A,_,C=dl(A=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,g);_=h===ll?C[0]:h===ul?C[C.length-1]:fl(A,g,x,w.offset),S(_)}else if(w.inlineTrigger)l(b);else if(w.offset>0)l(b,!0),f(),c.current=Ei((function(){y();var e=x.getAttribute("aria-controls"),t=fl(document.getElementById(e),g);S(t)}),5);else if(w.offset<0){var k=a(b,!0),E=k[k.length-2],M=v.get(E);l(E,!1),S(M)}}null===u||void 0===u||u(p)}}var hl=Math.random().toFixed(5).toString().slice(2),gl=0;var vl="__RC_UTIL_PATH_SPLIT__",ml=function(e){return e.join(vl)},yl="rc-menu-more";function xl(){var e=w(g.useState({}),2)[1],t=(0,g.useRef)(new Map),n=(0,g.useRef)(new Map),r=w(g.useState([]),2),i=r[0],o=r[1],a=(0,g.useRef)(0),s=(0,g.useRef)(!1),l=(0,g.useCallback)((function(r,i){var o=ml(i);n.current.set(o,r),t.current.set(r,o),a.current+=1;var l,u=a.current;l=function(){u===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),u=(0,g.useCallback)((function(e,r){var i=ml(r);n.current.delete(i),t.current.delete(e)}),[]),c=(0,g.useCallback)((function(e){o(e)}),[]),d=(0,g.useCallback)((function(e,n){var r=t.current.get(e)||"",o=r.split(vl);return n&&i.includes(o[0])&&o.unshift(yl),o}),[i]),f=(0,g.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=(0,g.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(vl),i=new Set;return kr(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return g.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:u,refreshOverflowKeys:c,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=kr(t.current.keys());return i.length&&e.push(yl),e},getSubPathKeys:p}}var bl=["prefixCls","style","className","tabIndex","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"],wl=[],Sl=g.forwardRef((function(e,t){var n,r,i=e.prefixCls,o=void 0===i?"rc-menu":i,a=e.style,s=e.className,l=e.tabIndex,u=void 0===l?0:l,c=e.children,d=e.direction,f=e.id,p=e.mode,h=void 0===p?"vertical":p,v=e.inlineCollapsed,m=e.disabled,y=e.disabledOverflow,x=e.subMenuOpenDelay,b=void 0===x?.1:x,A=e.subMenuCloseDelay,_=void 0===A?.1:A,C=e.forceSubMenuRender,k=e.defaultOpenKeys,E=e.openKeys,M=e.activeKey,I=e.defaultActiveFirst,T=e.selectable,D=void 0===T||T,N=e.multiple,O=void 0!==N&&N,P=e.defaultSelectedKeys,R=e.selectedKeys,L=e.onSelect,B=e.onDeselect,j=e.inlineIndent,z=void 0===j?24:j,F=e.motion,V=e.defaultMotions,G=e.triggerSubMenuAction,H=void 0===G?"hover":G,W=e.builtinPlacements,U=e.itemIcon,Q=e.expandIcon,Y=e.overflowedIndicator,K=void 0===Y?"...":Y,q=e.overflowedIndicatorPopupClassName,J=e.getPopupContainer,Z=e.onClick,X=e.onOpenChange,$=e.onKeyDown,ee=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),te=e._internalRenderSubMenuItem,ne=an(e,bl),re=vo(c,wl),ie=w(g.useState(!1),2),oe=ie[0],ae=ie[1],se=g.useRef(),le=Lr(se,t),ue=function(e){var t=w(Mr(e,{value:e}),2),n=t[0],r=t[1];return g.useEffect((function(){gl+=1;var e="".concat(hl,"-").concat(gl);r("rc-menu-uuid-".concat(e))}),[]),n}(f),ce="rtl"===d;var de=w(g.useMemo((function(){return"inline"!==h&&"vertical"!==h||!v?[h,!1]:["vertical",v]}),[h,v]),2),fe=de[0],he=de[1],ge=w(g.useState(0),2),ve=ge[0],me=ge[1],ye=ve>=re.length-1||"horizontal"!==fe||y,xe=Mr(k,{value:E,postState:function(e){return e||wl}}),be=w(xe,2),we=be[0],Se=be[1],Ae=function(e){Se(e),null===X||void 0===X||X(e)},_e=w(g.useState(we),2),Ce=_e[0],ke=_e[1],Ee="inline"===fe,Me=g.useRef(!1);g.useEffect((function(){Ee&&ke(we)}),[we]),g.useEffect((function(){Me.current?Ee?Se(Ce):Ae(wl):Me.current=!0}),[Ee]);var Ie=xl(),Te=Ie.registerPath,De=Ie.unregisterPath,Ne=Ie.refreshOverflowKeys,Oe=Ie.isSubPathKey,Pe=Ie.getKeyPath,Re=Ie.getKeys,Le=Ie.getSubPathKeys,Be=g.useMemo((function(){return{registerPath:Te,unregisterPath:De}}),[Te,De]),je=g.useMemo((function(){return{isSubPathKey:Oe}}),[Oe]);g.useEffect((function(){Ne(ye?wl:re.slice(ve+1).map((function(e){return e.key})))}),[ve,ye]);var ze=w(Mr(M||I&&(null===(n=re[0])||void 0===n?void 0:n.key),{value:M}),2),Fe=ze[0],Ve=ze[1],Ge=mo((function(e){Ve(e)})),He=mo((function(){Ve(void 0)})),We=Mr(P||[],{value:R,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?wl:[e]}}),Ue=w(We,2),Qe=Ue[0],Ye=Ue[1],Ke=mo((function(e){null===Z||void 0===Z||Z(Ji(e)),function(e){if(D){var t,n=e.key,r=Qe.includes(n);t=O?r?Qe.filter((function(e){return e!==n})):[].concat(kr(Qe),[n]):[n],Ye(t);var i=rn(rn({},e),{},{selectedKeys:t});r?null===B||void 0===B||B(i):null===L||void 0===L||L(i)}!O&&we.length&&"inline"!==fe&&Ae(wl)}(e)})),qe=mo((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==fe){var r=Le(e);n=n.filter((function(e){return!r.has(e)}))}pe()(we,n)||Ae(n)})),Je=mo(J),Ze=pl(fe,Fe,ce,ue,se,Re,Pe,Ve,(function(e,t){var n=null!==t&&void 0!==t?t:!we.includes(e);qe(e,n)}),$);g.useEffect((function(){ae(!0)}),[]);var Xe=g.useMemo((function(){return{_internalRenderMenuItem:ee,_internalRenderSubMenuItem:te}}),[ee,te]),$e="horizontal"!==fe||y?re:re.map((function(e,t){return g.createElement(Yi,{key:e.key,overflowDisabled:t>ve},e)})),et=g.createElement(Vi,S({id:f,ref:le,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:go,className:ln()(o,"".concat(o,"-root"),"".concat(o,"-").concat(fe),s,(r={},tn(r,"".concat(o,"-inline-collapsed"),he),tn(r,"".concat(o,"-rtl"),ce),r)),dir:d,style:a,role:"menu",tabIndex:u,data:$e,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return g.createElement($s,{eventKey:yl,title:K,disabled:ye,internalPopupClose:0===t,popupClassName:q},n)},maxCount:"horizontal"!==fe||y?Vi.INVALIDATE:Vi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){me(e)},onKeyDown:Ze},ne));return g.createElement(lo.Provider,{value:Xe},g.createElement(oo.Provider,{value:ue},g.createElement(Yi,{prefixCls:o,mode:fe,openKeys:we,rtl:ce,disabled:m,motion:oe?F:null,defaultMotions:oe?V:null,activeKey:Fe,onActive:Ge,onInactive:He,selectedKeys:Qe,inlineIndent:z,subMenuOpenDelay:b,subMenuCloseDelay:_,forceSubMenuRender:C,builtinPlacements:W,triggerSubMenuAction:H,getPopupContainer:Je,itemIcon:U,expandIcon:Q,onItemClick:Ke,onOpenChange:qe},g.createElement(io.Provider,{value:je},et),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(eo.Provider,{value:Be},re)))))})),Al=["className","title","eventKey","children"],_l=["children"],Cl=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=an(e,Al),o=g.useContext(Qi).prefixCls,a="".concat(o,"-item-group");return g.createElement("li",S({},i,{onClick:function(e){return e.stopPropagation()},className:ln()(a,t)}),g.createElement("div",{className:"".concat(a,"-title"),title:"string"===typeof n?n:void 0},n),g.createElement("ul",{className:"".concat(a,"-list")},r))};function kl(e){var t=e.children,n=an(e,_l),r=vo(t,ro(n.eventKey));return to()?r:g.createElement(Cl,Wi(n,["warnKey"]),r)}function El(e){var t=e.className,n=e.style,r=g.useContext(Qi).prefixCls;return to()?null:g.createElement("li",{className:ln()("".concat(r,"-item-divider"),t),style:n})}var Ml=ro,Il=Sl;Il.Item=go,Il.SubMenu=$s,Il.ItemGroup=kl,Il.Divider=El;var Tl=Il,Dl={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"},Nl=(0,g.createContext)({}),Ol=[{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 Pl(e){var t=pn(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Rl(e){var t=e.r,n=e.g,r=e.b;return"#".concat(hn(t,n,r,!1))}function Ll(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}}function Bl(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function jl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function zl(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function Fl(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=yn(e),i=5;i>0;i-=1){var o=Pl(r),a=Rl(yn({h:Bl(o,i,!0),s:jl(o,i,!0),v:zl(o,i,!0)}));n.push(a)}n.push(Rl(r));for(var s=1;s<=4;s+=1){var l=Pl(r),u=Rl(yn({h:Bl(l,s),s:jl(l,s),v:zl(l,s)}));n.push(u)}return"dark"===t.theme?Ol.map((function(e){var r=e.index,i=e.opacity;return Rl(Ll(yn(t.backgroundColor||"#141414"),yn(n[r]),100*i))})):n}var Vl={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Gl={},Hl={};Object.keys(Vl).forEach((function(e){Gl[e]=Fl(Vl[e]),Gl[e].primary=Gl[e][5],Hl[e]=Fl(Vl[e],{theme:"dark",backgroundColor:"#141414"}),Hl[e].primary=Hl[e][5]}));Gl.red,Gl.volcano,Gl.gold,Gl.orange,Gl.yellow,Gl.lime,Gl.green,Gl.cyan,Gl.blue,Gl.geekblue,Gl.purple,Gl.magenta,Gl.grey;var Wl="rc-util-key";function Ul(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Wl}function Ql(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Yl(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!gi())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=Ql(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var Kl=new Map;function ql(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ql(t);return Array.from(Kl.get(n).children).find((function(n){return"STYLE"===n.tagName&&n.getAttribute(Ul(t))===e}))}function Jl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ql(n);if(!Kl.has(r)){var i=Yl("",n),o=i.parentNode;Kl.set(r,o),o.removeChild(i)}var a=ql(t,n);if(a){var s,l,u;if((null===(s=n.csp)||void 0===s?void 0:s.nonce)&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(u=n.csp)||void 0===u?void 0:u.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=Yl(e,n);return c.setAttribute(Ul(n),t),c}function Zl(e){return"object"===wr(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===wr(e.icon)||"function"===typeof e.icon)}function Xl(){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 t[n]=r;return t}),{})}function $l(e,t,n){return n?g.createElement(e.tag,rn(rn({key:t},Xl(e.attrs)),n),(e.children||[]).map((function(n,r){return $l(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):g.createElement(e.tag,rn({key:t},Xl(e.attrs)),(e.children||[]).map((function(n,r){return $l(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function eu(e){return Fl(e)[0]}function tu(e){return e?Array.isArray(e)?e:[e]:[]}var nu="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",ru=["icon","className","onClick","style","primaryColor","secondaryColor"],iu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var ou=function(e){var t,n,r=e.icon,i=e.className,o=e.onClick,a=e.style,s=e.primaryColor,l=e.secondaryColor,u=an(e,ru),c=iu;if(s&&(c={primaryColor:s,secondaryColor:l||eu(s)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nu,t=(0,g.useContext)(Nl).csp;(0,g.useEffect)((function(){Jl(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=Zl(r),n="icon should be icon definiton, but got ".concat(r),Nr(t,"[@ant-design/icons] ".concat(n)),!Zl(r))return null;var d=r;return d&&"function"===typeof d.icon&&(d=rn(rn({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),$l(d.icon,"svg-".concat(d.name),rn({className:i,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};ou.displayName="IconReact",ou.getTwoToneColors=function(){return rn({},iu)},ou.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;iu.primaryColor=t,iu.secondaryColor=n||eu(t),iu.calculated=!!n};var au=ou;function su(e){var t=w(tu(e),2),n=t[0],r=t[1];return au.setTwoToneColors({primaryColor:n,secondaryColor:r})}var lu=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];su("#1890ff");var uu=g.forwardRef((function(e,t){var n,r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=an(e,lu),d=g.useContext(Nl).prefixCls,f=void 0===d?"anticon":d,p=ln()(f,(tn(n={},"".concat(f,"-").concat(i.name),!!i.name),tn(n,"".concat(f,"-spin"),!!o||"loading"===i.name),n),r),h=s;void 0===h&&l&&(h=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=w(tu(u),2),y=m[0],x=m[1];return g.createElement("span",rn(rn({role:"img","aria-label":i.name},c),{},{ref:t,tabIndex:h,onClick:l,className:p}),g.createElement(au,{icon:i,primaryColor:y,secondaryColor:x,style:v}))}));uu.displayName="AntdIcon",uu.getTwoToneColor=function(){var e=au.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},uu.setTwoToneColor=su;var cu=uu,du=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:Dl}))};du.displayName="EllipsisOutlined";var fu=g.forwardRef(du),pu=(0,g.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),hu=g.isValidElement;function gu(e,t){return function(e,t,n){return hu(e)?g.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}(e,e,t)}var vu=function(e){var t,n,r=e.popupClassName,i=e.icon,o=e.title,a=e.theme,s=g.useContext(pu),l=s.prefixCls,u=s.inlineCollapsed,c=s.antdMenuTheme,d=Ml();if(i){var f=hu(o)&&"span"===o.type;n=g.createElement(g.Fragment,null,gu(i,{className:ln()(hu(i)?null===(t=i.props)||void 0===t?void 0:t.className:"","".concat(l,"-item-icon"))}),f?o:g.createElement("span",{className:"".concat(l,"-title-content")},o))}else n=u&&!d.length&&o&&"string"===typeof o?g.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},o.charAt(0)):g.createElement("span",{className:"".concat(l,"-title-content")},o);var p=g.useMemo((function(){return S(S({},s),{firstLevel:!1})}),[s]);return g.createElement(pu.Provider,{value:p},g.createElement($s,S({},Wi(e,["icon"]),{title:n,popupClassName:ln()(l,"".concat(l,"-").concat(a||c),r)})))},mu={adjustX:1,adjustY:1},yu=[0,0],xu={left:{points:["cr","cl"],overflow:mu,offset:[-4,0],targetOffset:yu},right:{points:["cl","cr"],overflow:mu,offset:[4,0],targetOffset:yu},top:{points:["bc","tc"],overflow:mu,offset:[0,-4],targetOffset:yu},bottom:{points:["tc","bc"],overflow:mu,offset:[0,4],targetOffset:yu},topLeft:{points:["bl","tl"],overflow:mu,offset:[0,-4],targetOffset:yu},leftTop:{points:["tr","tl"],overflow:mu,offset:[-4,0],targetOffset:yu},topRight:{points:["br","tr"],overflow:mu,offset:[0,-4],targetOffset:yu},rightTop:{points:["tl","tr"],overflow:mu,offset:[4,0],targetOffset:yu},bottomRight:{points:["tr","br"],overflow:mu,offset:[0,4],targetOffset:yu},rightBottom:{points:["bl","br"],overflow:mu,offset:[4,0],targetOffset:yu},bottomLeft:{points:["tl","bl"],overflow:mu,offset:[0,4],targetOffset:yu},leftBottom:{points:["br","bl"],overflow:mu,offset:[-4,0],targetOffset:yu}},bu=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return g.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"===typeof t?t():t)},wu=function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,o=e.mouseEnterDelay,a=void 0===o?0:o,s=e.mouseLeaveDelay,l=void 0===s?.1:s,u=e.overlayStyle,c=e.prefixCls,d=void 0===c?"rc-tooltip":c,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,v=e.transitionName,m=e.animation,y=e.motion,x=e.placement,b=void 0===x?"right":x,w=e.align,A=void 0===w?{}:w,_=e.destroyTooltipOnHide,C=void 0!==_&&_,k=e.defaultVisible,E=e.getTooltipContainer,M=e.overlayInnerStyle,I=an(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),T=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,(function(){return T.current}));var D=rn({},I);"visible"in e&&(D.popupVisible=e.visible);var N=!1,O=!1;if("boolean"===typeof C)N=C;else if(C&&"object"===wr(C)){var P=C.keepParent;N=!0===P,O=!1===P}return g.createElement(Gs,S({popupClassName:n,prefixCls:d,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[g.createElement("div",{className:"".concat(d,"-arrow"),key:"arrow"},n),g.createElement(bu,{key:"content",prefixCls:d,id:i,overlay:r,overlayInnerStyle:M})]},action:i,builtinPlacements:xu,popupPlacement:b,ref:T,popupAlign:A,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:m,popupMotion:y,defaultPopupVisible:k,destroyPopupOnHide:N,autoDestroy:O,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:a},D),f)},Su=(0,g.forwardRef)(wu),Au={adjustX:1,adjustY:1},_u={adjustX:0,adjustY:0},Cu=[0,0];function ku(e){return"boolean"===typeof e?e?Au:_u:S(S({},_u),e)}function Eu(e){var t=e.arrowWidth,n=void 0===t?4:t,r=e.horizontalArrowShift,i=void 0===r?16:r,o=e.verticalArrowShift,a=void 0===o?8:o,s=e.autoAdjustOverflow,l=e.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,a+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,a+n]}};return Object.keys(u).forEach((function(e){u[e]=l?S(S({},u[e]),{overflow:ku(s),targetOffset:Cu}):S(S({},xu[e]),{overflow:ku(s)}),u[e].ignoreShake=!0})),u}var Mu={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"},Iu={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Tu={lang:S({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:S({},Iu)},Du="${label} is not a valid ${type}",Nu={locale:"en",Pagination:Mu,DatePicker:Tu,TimePicker:Iu,Calendar:Tu,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"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},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:Du,method:Du,array:Du,object:Du,number:Du,date:Du,boolean:Du,integer:Du,float:Du,regexp:Du,email:Du,url:Du,hex:Du},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"}},Ou=Nu,Pu=(0,g.createContext)(void 0),Ru=function(e){yr(n,e);var t=_r(n);function n(){return hr(this,n),t.apply(this,arguments)}return vr(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||Ou[null!==t&&void 0!==t?t:"global"],r=this.context,i=t&&r?r[t]:{};return S(S({},n instanceof Function?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?Ou.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(g.Component);Ru.defaultProps={componentName:"global"},Ru.contextType=Pu;var Lu=function(){var e=(0,g.useContext(Wu).getPrefixCls)("empty-img-default");return g.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.67)"},g.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),g.createElement("path",{className:"".concat(e,"-path-1"),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"}),g.createElement("path",{className:"".concat(e,"-path-2"),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",transform:"translate(13.56)"}),g.createElement("path",{className:"".concat(e,"-path-3"),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"}),g.createElement("path",{className:"".concat(e,"-path-4"),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"})),g.createElement("path",{className:"".concat(e,"-path-5"),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"}),g.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},g.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),g.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Bu=function(){var e=(0,g.useContext(Wu).getPrefixCls)("empty-img-simple");return g.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},g.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"}),g.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",className:"".concat(e,"-path")}))))},ju=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:N,arrowContent:g.createElement("span",{className:"".concat(_,"-arrow-content"),style:E}),motion:{motionName:$u(C,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),k?gu(M,{className:T}):M)}));ic.displayName="Tooltip",ic.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var oc=ic,ac={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},sc=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:ac}))};sc.displayName="BarsOutlined";var lc=g.forwardRef(sc),uc={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"},cc=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:uc}))};cc.displayName="RightOutlined";var dc=g.forwardRef(cc),fc={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"},pc=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:fc}))};pc.displayName="LeftOutlined";var hc=g.forwardRef(pc),gc=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i0),tn(n,"".concat(s,"-rtl"),"rtl"===r),n),l),h=g.useMemo((function(){return{siderHook:{addSider:function(e){a((function(t){return[].concat(kr(t),[e])}))},removeSider:function(e){a((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return g.createElement(vc.Provider,{value:h},g.createElement(d,S({ref:t,className:p},f),u))})),bc=mc({suffixCls:"layout",tagName:"section",displayName:"Layout"})(xc),wc=mc({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(yc),Sc=mc({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(yc),Ac=mc({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(yc),_c=bc,Cc=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},kc=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),Tc=g.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.trigger,o=e.children,a=e.defaultCollapsed,s=void 0!==a&&a,l=e.theme,u=void 0===l?"dark":l,c=e.style,d=void 0===c?{}:c,f=e.collapsible,p=void 0!==f&&f,h=e.reverseArrow,v=void 0!==h&&h,m=e.width,y=void 0===m?200:m,x=e.collapsedWidth,b=void 0===x?80:x,A=e.zeroWidthTriggerStyle,_=e.breakpoint,C=e.onCollapse,k=e.onBreakpoint,E=kc(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),M=(0,g.useContext)(vc).siderHook,I=w((0,g.useState)("collapsed"in E?E.collapsed:s),2),T=I[0],D=I[1],N=w((0,g.useState)(!1),2),O=N[0],P=N[1];(0,g.useEffect)((function(){"collapsed"in E&&D(E.collapsed)}),[E.collapsed]);var R=function(e,t){"collapsed"in E||D(e),null===C||void 0===C||C(e,t)},L=(0,g.useRef)();L.current=function(e){P(e.matches),null===k||void 0===k||k(e.matches),T!==e.matches&&R(e.matches,"responsive")},(0,g.useEffect)((function(){function e(e){return L.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&_&&_ in Ec){t=n("(max-width: ".concat(Ec[_],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[_]),(0,g.useEffect)((function(){var e=Ic("ant-sider-");return M.addSider(e),function(){return M.removeSider(e)}}),[]);var B=function(){R(!T,"clickTrigger")},j=(0,g.useContext)(Wu).getPrefixCls,z=g.useMemo((function(){return{siderCollapsed:T}}),[T]);return g.createElement(Mc.Provider,{value:z},function(){var e,a=j("layout-sider",n),s=Wi(E,["collapsed"]),l=T?b:y,c=Cc(l)?"".concat(l,"px"):String(l),f=0===parseFloat(String(b||0))?g.createElement("span",{onClick:B,className:ln()("".concat(a,"-zero-width-trigger"),"".concat(a,"-zero-width-trigger-").concat(v?"right":"left")),style:A},i||g.createElement(lc,null)):null,h={expanded:v?g.createElement(dc,null):g.createElement(hc,null),collapsed:v?g.createElement(hc,null):g.createElement(dc,null)}[T?"collapsed":"expanded"],m=null!==i?f||g.createElement("div",{className:"".concat(a,"-trigger"),onClick:B,style:{width:c}},i||h):null,x=S(S({},d),{flex:"0 0 ".concat(c),maxWidth:c,minWidth:c,width:c}),w=ln()(a,"".concat(a,"-").concat(u),(tn(e={},"".concat(a,"-collapsed"),!!T),tn(e,"".concat(a,"-has-trigger"),p&&null!==i&&!f),tn(e,"".concat(a,"-below"),!!O),tn(e,"".concat(a,"-zero-width"),0===parseFloat(c)),e),r);return g.createElement("aside",S({className:w},s,{style:x,ref:t}),g.createElement("div",{className:"".concat(a,"-children")},o),p||O&&f?m:null)}())}));Tc.displayName="Sider";var Dc=Tc,Nc=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&gd[n])return gd[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=hd.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(gd[n]=l),l}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(dd||(dd={}));var md=function(e){yr(n,e);var t=_r(n);function n(e){var r;return hr(this,n),(r=t.call(this,e)).nextFrameActionId=void 0,r.resizeFrameId=void 0,r.textArea=void 0,r.saveTextArea=function(e){r.textArea=e},r.handleResize=function(e){var t=r.state.resizeStatus,n=r.props,i=n.autoSize,o=n.onResize;t===dd.NONE&&("function"===typeof o&&o(e),i&&r.resizeOnNextFrame())},r.resizeOnNextFrame=function(){cancelAnimationFrame(r.nextFrameActionId),r.nextFrameActionId=requestAnimationFrame(r.resizeTextarea)},r.resizeTextarea=function(){var e=r.props.autoSize;if(e&&r.textArea){var t=e.minRows,n=e.maxRows,i=function(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;cd||((cd=document.createElement("textarea")).setAttribute("tab-index","-1"),cd.setAttribute("aria-hidden","true"),document.body.appendChild(cd)),e.getAttribute("wrap")?cd.setAttribute("wrap",e.getAttribute("wrap")):cd.removeAttribute("wrap");var i=vd(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;cd.setAttribute("style","".concat(l,";").concat(pd)),cd.value=e.value||e.placeholder||"";var u,c=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,f=cd.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=o),null!==n||null!==r){cd.value=" ";var p=cd.scrollHeight-o;null!==n&&(c=p*n,"border-box"===s&&(c=c+o+a),f=Math.max(c,f)),null!==r&&(d=p*r,"border-box"===s&&(d=d+o+a),u=f>d?"":"hidden",f=Math.min(d,f))}return{height:f,minHeight:c,maxHeight:d,overflowY:u,resize:"none"}}(r.textArea,!1,t,n);r.setState({textareaStyles:i,resizeStatus:dd.RESIZING},(function(){cancelAnimationFrame(r.resizeFrameId),r.resizeFrameId=requestAnimationFrame((function(){r.setState({resizeStatus:dd.RESIZED},(function(){r.resizeFrameId=requestAnimationFrame((function(){r.setState({resizeStatus:dd.NONE}),r.fixFirefoxAutoScroll()}))}))}))}))}},r.renderTextArea=function(){var e=r.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,i=e.autoSize,o=e.onResize,a=e.className,s=e.disabled,l=r.state,u=l.textareaStyles,c=l.resizeStatus,d=Wi(r.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),f=ln()(n,a,tn({},"".concat(n,"-disabled"),s));"value"in d&&(d.value=d.value||"");var p=rn(rn(rn({},r.props.style),u),c===dd.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(hi,{onResize:r.handleResize,disabled:!(i||o)},g.createElement("textarea",S({},d,{className:f,style:p,ref:r.saveTextArea})))},r.state={textareaStyles:{},resizeStatus:dd.NONE},r}return vr(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&pe()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(fV){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(g.Component),yd=md,xd=function(e){yr(n,e);var t=_r(n);function n(e){var r;hr(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,i=t.onKeyDown;13===e.keyCode&&n&&n(e),i&&i(e)};var i="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return r.state={value:i},r}return vr(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(yd,S({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(g.Component),bd=xd,wd=g.createContext(void 0),Sd=wd,Ad="RC_FORM_INTERNAL_HOOKS",_d=function(){Nr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Cd=g.createContext({getFieldValue:_d,getFieldsValue:_d,getFieldError:_d,getFieldWarning:_d,getFieldsError:_d,isFieldsTouched:_d,isFieldTouched:_d,isFieldValidating:_d,isFieldsValidating:_d,resetFields:_d,setFields:_d,setFieldsValue:_d,validateFields:_d,submit:_d,getInternalHooks:function(){return _d(),{dispatch:_d,initEntityValue:_d,registerField:_d,useSubscribe:_d,setInitialValues:_d,destroyForm:_d,setCallbacks:_d,getFields:_d,setValidateMessages:_d,setPreserve:_d,getInitialValue:_d}}});function kd(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function Ed(){return Ed=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(Ee){return"[Circular]"}break;default:return e}}));return a}return e}function Ld(e,t){return void 0===e||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 Bd(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\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,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wd={integer:function(e){return Wd.number(e)&&parseInt(e,10)===e},float:function(e){return Wd.number(e)&&!Wd.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(fV){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!Wd.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Hd.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(Hd.url)},hex:function(e){return"string"===typeof e&&!!e.match(Hd.hex)}},Ud={required:Gd,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(Rd(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)Gd(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?Wd[o](t)||r.push(Rd(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Rd(i.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=t,u=null,c="number"===typeof t,d="string"===typeof t,f=Array.isArray(t);if(c?u="number":d?u="string":f&&(u="array"),!u)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(Rd(i.messages[u].len,e.fullField,e.len)):a&&!s&&le.max?r.push(Rd(i.messages[u].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(Rd(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(Rd(i.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Rd(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Rd(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Qd=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t,o)&&!e.required)return n();Ud.required(e,t,r,a,i,o),Ld(t,o)||Ud.type(e,t,r,a,i)}n(a)},Yd={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t,"string")&&!e.required)return n();Ud.required(e,t,r,o,i,"string"),Ld(t,"string")||(Ud.type(e,t,r,o,i),Ud.range(e,t,r,o,i),Ud.pattern(e,t,r,o,i),!0===e.whitespace&&Ud.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&Ud.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&(Ud.type(e,t,r,o,i),Ud.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&Ud.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),Ld(t)||Ud.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&(Ud.type(e,t,r,o,i),Ud.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&(Ud.type(e,t,r,o,i),Ud.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();Ud.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(Ud.type(e,t,r,o,i),Ud.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&Ud.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i),void 0!==t&&Ud.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t,"string")&&!e.required)return n();Ud.required(e,t,r,o,i),Ld(t,"string")||Ud.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t,"date")&&!e.required)return n();var a;if(Ud.required(e,t,r,o,i),!Ld(t,"date"))a=t instanceof Date?t:new Date(t),Ud.type(e,a,r,o,i),a&&Ud.range(e,a.getTime(),r,o,i)}n(o)},url:Qd,hex:Qd,email:Qd,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;Ud.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ld(t)&&!e.required)return n();Ud.required(e,t,r,o,i)}n(o)}};function Kd(){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 qd=Kd(),Jd=function(){function e(e){this.rules=null,this._messages=qd,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=Vd(Kd(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,s=r;if("function"===typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);if(a.messages){var l=this.messages();l===qd&&(l=Kd()),Vd(l,a.messages),a.messages=l}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],r=o[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(o===t&&(o=Ed({},o)),r=o[e]=a.transform(r)),(a="function"===typeof a?{validator:a}:Ed({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:o,field:e}))}))}));var c={};return zd(u,a,(function(t,n){var r,i=t.rule,s=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function l(e,t){return Ed({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var d=u.map(Fd(i,o));if(a.first&&d.length)return c[i.field]=1,n(d);if(s){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(Fd(i,o)):a.error&&(d=[a.error(i,Rd(a.messages.required,i.field))]),n(d);var f={};i.defaultField&&Object.keys(t.value).map((function(e){f[e]=i.defaultField})),f=Ed({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator?r=i.asyncValidator(i,t.value,u,t.source,a):i.validator&&(!0===(r=i.validator(i,t.value,u,t.source,a))?u():!1===r?u("function"===typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)),r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!$d(e,t.slice(0,-1))?e:tf(e,t,n,r)}function rf(e){return Array.isArray(e)?function(e){return e.map((function(e){return rf(e)}))}(e):"object"===wr(e)&&null!==e?function(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=rf(e[n]);return t}return e}(e):e}var of=rf;function af(e){return kd(e)}function sf(e,t){return $d(e,t)}function lf(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=nf(e,t,n,r);return i}function uf(e,t){var n={};return t.forEach((function(t){var r=sf(e,t);n=lf(n,t,r)})),n}function cf(e,t){return e&&e.some((function(e){return hf(e,t)}))}function df(e){return"object"===wr(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function ff(e,t){var n=Array.isArray(e)?kr(e):rn({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],i=t[e],o=df(r)&&df(i);n[e]=o?ff(r,i||{}):of(i)})),n):n}function pf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(kr(e.slice(0,n)),[i],kr(e.slice(n,t)),kr(e.slice(t+1,r))):o<0?[].concat(kr(e.slice(0,t)),kr(e.slice(t+1,n+1)),[i],kr(e.slice(n+1,r))):e}var mf=Jd;function yf(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}function xf(e,t,n,r,i){return bf.apply(this,arguments)}function bf(){return bf=Ms(ks().mark((function e(t,n,r,i,o){var a,s,l,u,c,d,f,p;return ks().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=rn({},r)).ruleIndex,s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),l=new mf(tn({},t,[a])),u=pf({},Xd,i.validateMessages),l.messages(u),c=[],e.prev=8,e.next=11,Promise.resolve(l.validate(tn({},t,n),rn({},i)));case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(8),e.t0.errors?c=e.t0.errors.map((function(e,t){var n=e.message;return g.isValidElement(n)?g.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),c=[u.default]);case 16:if(c.length||!s){e.next=21;break}return e.next=19,Promise.all(n.map((function(e,n){return xf("".concat(t,".").concat(n),e,s,i,o)})));case 19:return d=e.sent,e.abrupt("return",d.reduce((function(e,t){return[].concat(kr(e),kr(t))}),[]));case 21:return f=rn(rn({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),p=c.map((function(e){return"string"===typeof e?yf(e,f):e})),e.abrupt("return",p);case 24:case"end":return e.stop()}}),e,null,[[8,13]])}))),bf.apply(this,arguments)}function wf(e,t,n,r,i,o){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=rn(rn({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Cf;if(r.validatePromise===i){r.validatePromise=null;var t=[],n=[];e.forEach((function(e){var r=e.rule.warningOnly,i=e.errors,o=void 0===i?Cf:i;r?n.push.apply(n,kr(o)):t.push.apply(t,kr(o))})),r.errors=t,r.warnings=n,r.triggerMetaEvent(),r.reRender()}})),d}));return r.validatePromise=i,r.dirty=!0,r.errors=Cf,r.warnings=Cf,r.triggerMetaEvent(),r.reRender(),i},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Ad).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath()}},r.getOnlyChild=function(e){if("function"===typeof e){var t=r.getMeta();return rn(rn({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Or(e);return 1===n.length&&g.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return sf(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,i=t.validateTrigger,o=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,u=t.fieldContext,c=void 0!==i?i:u.validateTrigger,d=r.getNamePath(),f=u.getInternalHooks,p=u.getFieldsValue,h=f(Ad),g=h.dispatch,v=r.getValue(),m=l||function(e){return tn({},s,e)},y=e[n],x=rn(rn({},e),m(v));x[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),i=0;i=0&&t<=n.length?(s.keys=[].concat(kr(s.keys.slice(0,t)),[s.id],kr(s.keys.slice(t))),o([].concat(kr(n.slice(0,t)),[e],kr(n.slice(t))))):(s.keys=[].concat(kr(s.keys),[s.id]),o([].concat(kr(n),[e]))),s.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(s.keys=vf(s.keys,e,t),o(vf(n,e,t)))}}},f=i||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))};var Df="__@field_split__";function Nf(e){return e.map((function(e){return"".concat(wr(e),":").concat(e)})).join(Df)}var Of=function(){function e(){hr(this,e),this.kvs=new Map}return vr(e,[{key:"set",value:function(e,t){this.kvs.set(Nf(e),t)}},{key:"get",value:function(e){return this.kvs.get(Nf(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(Nf(e))}},{key:"map",value:function(e){return kr(this.kvs.entries()).map((function(t){var n=w(t,2),r=n[0],i=n[1],o=r.split(Df);return e({key:o.map((function(e){var t=w(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:i})}))}},{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}(),Pf=Of,Rf=["name","errors"],Lf=vr((function e(t){var n=this;hr(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,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,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===Ad?(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}):(Nr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,i=pf({},e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;i=lf(i,n,sf(e,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}},this.destroyForm=function(){var e=new Pf;n.getFieldEntities(!0).forEach((function(t){t.isPreserve()||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=sf(n.initialValues,e);return e.length?of(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Pf;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=af(e);return t.get(n)||{INVALIDATE_NAME_PATH:af(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return r.forEach((function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&i.push(o)}else i.push(o)})),uf(n.store,i.map(af))},this.getFieldValue=function(e){n.warningUnhooked();var t=af(e);return sf(n.store,t)},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:af(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=af(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=af(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Pf,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}}));var i,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))Nr(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=t.get(i);if(o&&o.size>1)Nr(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.skipExist&&void 0!==a||n.updateStore(lf(n.store,i,kr(o)[0].value))}}}}))};e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=i).push.apply(n,kr(kr(r).map((function(e){return e.entity}))))}))):i=r,o(i)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(pf({},n.initialValues)),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(af);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(lf(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,i=(e.errors,an(e,Rf)),o=af(r);"value"in i&&n.updateStore(lf(n.store,o,i.value)),n.notifyObservers(t,[o],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=rn(rn({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===sf(n.store,r)&&n.updateStore(lf(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e}));var o=void 0!==r?r:n.preserve;if(!1===o&&(!t||i.length>1)){var a=e.getNamePath(),s=t?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==s&&n.fieldEntities.every((function(e){return!hf(e.getNamePath(),a)}))){var l=n.store;n.updateStore(lf(l,a,s,!0)),n.notifyObservers(l,[a],{type:"remove"}),n.triggerDependenciesUpdate(l,a)}}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var i=rn(rn({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()},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(kr(r))}),r},this.updateValue=function(e,t){var r=af(e),i=n.store;n.updateStore(lf(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"});var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(uf(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(kr(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&n.updateStore(pf(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],i=new Pf;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=af(t);i.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){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new Pf;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}r(i.filter((function(t){var n=t.name;return cf(e,n)})),i)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,i=r?e.map(af):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(r||i.push(a.getNamePath()),(null===t||void 0===t?void 0:t.recursive)&&r){var s=a.getNamePath();s.every((function(t,n){return e[n]===t||void 0===e[n]}))&&i.push(s)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||cf(i,l)){var u=a.validateRules(rn({validateMessages:rn(rn({},Xd),n.validateMessages)},t));o.push(u.then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t=[],n=[];return e.forEach((function(e){var r=e.rule.warningOnly,i=e.errors;r?n.push.apply(n,kr(i)):t.push.apply(t,kr(i))})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.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 s=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return s.catch((function(e){return e})),s},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t}));var Bf=function(e){var t=g.useRef(),n=w(g.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Lf((function(){n({})}));t.current=r.getForm()}return[t.current]},jf=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),zf=jf,Ff=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Vf=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,o=e.form,a=e.preserve,s=e.children,l=e.component,u=void 0===l?"form":l,c=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,v=e.onFinish,m=e.onFinishFailed,y=an(e,Ff),x=g.useContext(zf),b=w(Bf(o),1)[0],A=b.getInternalHooks(Ad),_=A.useSubscribe,C=A.setInitialValues,k=A.setCallbacks,E=A.setValidateMessages,M=A.setPreserve,I=A.destroyForm;g.useImperativeHandle(t,(function(){return b})),g.useEffect((function(){return x.registerForm(n,b),function(){x.unregisterForm(n)}}),[x,b,n]),E(rn(rn({},x.validateMessages),c)),k({onValuesChange:p,onFieldsChange:function(e){if(x.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i0;if(h||v){var t=kr(pp(A)).length,n="object"===wr(v)?v.formatter({count:t,maxLength:p}):"".concat(t).concat(e?" / ".concat(p):"");return g.createElement(g.Fragment,null,!!v&&g.createElement("span",{className:ln()("".concat(u,"-show-count-suffix"),tn({},"".concat(u,"-show-count-has-suffix"),!!h))},n),h)}return null}(),disabled:c}))})),mp=vp;var yp=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);ir&&(i=t),i}var Cp=g.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.bordered,o=void 0===i||i,a=e.showCount,s=void 0!==a&&a,l=e.maxLength,u=e.className,c=e.style,d=e.size,f=e.onCompositionStart,p=e.onCompositionEnd,h=e.onChange,v=e.status,m=Sp(e,["prefixCls","bordered","showCount","maxLength","className","style","size","onCompositionStart","onCompositionEnd","onChange","status"]),y=g.useContext(Wu),x=y.getPrefixCls,b=y.direction,A=g.useContext(Sd),_=g.useContext(Hf),C=_.status,k=_.hasFeedback,E=ap(C,v),M=g.useRef(null),I=g.useRef(null),T=w(g.useState(!1),2),D=T[0],N=T[1],O=g.useRef(),P=g.useRef(0),R=w(Mr(m.defaultValue,{value:m.value}),2),L=R[0],B=R[1],j=m.hidden,z=function(e,t){void 0===m.value&&(B(e),null===t||void 0===t||t())},F=Number(l)>0,V=x("input",r);g.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=M.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;!function(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)}}}}(null===(n=null===(t=M.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.blur()}}}));var G=g.createElement(bd,S({},Wi(m,["allowClear"]),{className:ln()((n={},tn(n,"".concat(V,"-borderless"),!o),tn(n,u,u&&!s),tn(n,"".concat(V,"-sm"),"small"===A||"small"===d),tn(n,"".concat(V,"-lg"),"large"===A||"large"===d),n),op(V,E)),style:s?void 0:c,prefixCls:V,onCompositionStart:function(e){N(!0),O.current=L,P.current=e.currentTarget.selectionStart,null===f||void 0===f||f(e)},onChange:function(e){var t=e.target.value;!D&&F&&(t=_p(e.target.selectionStart>=l+1||e.target.selectionStart===t.length||!e.target.selectionStart,L,t,l));z(t),xp(e.currentTarget,e,h,t)},onCompositionEnd:function(e){var t;N(!1);var n=e.currentTarget.value;F&&(n=_p(P.current>=l+1||P.current===(null===(t=O.current)||void 0===t?void 0:t.length),O.current,n,l));n!==L&&(z(n),xp(e.currentTarget,e,h,n)),null===p||void 0===p||p(e)},ref:M})),H=function(e){return"undefined"===typeof e||null===e?"":String(e)}(L);D||!F||null!==m.value&&void 0!==m.value||(H=Ap(H,l));var W=g.createElement(up,S({},m,{prefixCls:V,direction:b,inputType:"text",value:H,element:G,handleReset:function(e){var t,n;z("",(function(){var e;null===(e=M.current)||void 0===e||e.focus()})),xp(null===(n=null===(t=M.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,h)},ref:I,bordered:o,status:v,style:s?void 0:c}));if(s||k){var U,Q=kr(H).length,Y="";return Y="object"===wr(s)?s.formatter({count:Q,maxLength:l}):"".concat(Q).concat(F?" / ".concat(l):""),g.createElement("div",{hidden:j,className:ln()("".concat(V,"-textarea"),(U={},tn(U,"".concat(V,"-textarea-rtl"),"rtl"===b),tn(U,"".concat(V,"-textarea-show-count"),s),U),op("".concat(V,"-textarea"),E,k),u),style:c,"data-count":Y},W,k&&ip(V,E))}return W})),kp=Cp,Ep=function(e){var t=e.prefixCls,n=e["aria-label"],r=e.className,i=e.style,o=e.direction,a=e.maxLength,s=e.autoSize,l=void 0===s||s,u=e.value,c=e.onSave,d=e.onCancel,f=e.onEnd,p=e.component,h=e.enterIcon,v=void 0===h?g.createElement(fd,null):h,m=g.useRef(),y=g.useRef(!1),x=g.useRef(),b=w(g.useState(u),2),S=b[0],A=b[1];g.useEffect((function(){A(u)}),[u]),g.useEffect((function(){if(m.current&&m.current.resizableTextArea){var e=m.current.resizableTextArea.textArea;e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]);var _=function(){c(S.trim())},C=p?"".concat(t,"-").concat(p):"",k=ln()(t,"".concat(t,"-edit-content"),tn({},"".concat(t,"-rtl"),"rtl"===o),r,C);return g.createElement("div",{className:k,style:i},g.createElement(kp,{ref:m,maxLength:a,value:S,onChange:function(e){var t=e.target;A(t.value.replace(/[\n\r]/g,""))},onKeyDown:function(e){var t=e.keyCode;y.current||(x.current=t)},onKeyUp:function(e){var t=e.keyCode,n=e.ctrlKey,r=e.altKey,i=e.metaKey,o=e.shiftKey;x.current!==t||y.current||n||r||i||o||(t===Hi.ENTER?(_(),null===f||void 0===f||f()):t===Hi.ESC&&d())},onCompositionStart:function(){y.current=!0},onCompositionEnd:function(){y.current=!1},onBlur:function(){_()},"aria-label":n,rows:1,autoSize:l}),null!==v?gu(v,{className:"".concat(t,"-edit-content-confirm")}):null)};function Mp(e,t){return g.useMemo((function(){var n=!!e;return[n,S(S({},t),n&&"object"===wr(e)?e:null)]}),[e])}function Ip(e){var t=wr(e);return"string"===t||"number"===t}function Tp(e,t){for(var n=0,r=[],i=0;it){var s=t-n;return r.push(String(o).slice(0,s)),r}r.push(o),n=a}return e}var Dp=function(e){var t=e.enabledMeasure,n=e.children,r=e.text,i=e.width,o=e.rows,a=e.onEllipsis,s=w(g.useState([0,0,0]),2),l=s[0],u=s[1],c=w(g.useState(0),2),d=c[0],f=c[1],p=w(l,3),h=p[0],v=p[1],m=p[2],y=w(g.useState(0),2),x=y[0],b=y[1],A=g.useRef(null),_=g.useRef(null),C=g.useMemo((function(){return Or(r)}),[r]),k=g.useMemo((function(){return function(e){var t=0;return e.forEach((function(e){Ip(e)?t+=String(e).length:t+=1})),t}(C)}),[C]),E=g.useMemo((function(){return t&&3===d?n(Tp(C,v),v1&&fe,ve=function(e){var t;X(!0),null===(t=se.onExpand)||void 0===t||t.call(se,e)},me=w(g.useState(0),2),ye=me[0],xe=me[1],be=function(e){var t;te(e),ee!==e&&(null===(t=se.onEllipsis)||void 0===t||t.call(se,e))};g.useEffect((function(){var e=x.current;if(ae&&fe&&e){var t=ge?e.offsetHeight=1},subscribe:function(e){return $p.size||this.register(),eh+=1,$p.set(eh,e),e(th),eh},unsubscribe:function(e){$p.delete(e),$p.size||this.unregister()},unregister:function(){var e=this;Object.keys(Xp).forEach((function(t){var n=Xp[t],r=e.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),$p.clear()},register:function(){var e=this;Object.keys(Xp).forEach((function(t){var n=Xp[t],r=function(n){var r=n.matches;e.dispatch(S(S({},th),tn({},t,r)))},i=window.matchMedia(n);i.addListener(r),e.matchHandlers[n]={mql:i,listener:r},r(i)}))}},rh=function(){if(!gi()||!window.document.documentElement)return!1;if(void 0!==Kp)return Kp;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Kp=1===e.scrollHeight,document.body.removeChild(e),Kp},ih=function(){var e=w(g.useState(!1),2),t=e[0],n=e[1];return g.useEffect((function(){n(rh())}),[]),t},oh=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i0?C[0]/-2:void 0,I=C[1]>0?C[1]/-2:void 0;if(M&&(E.marginLeft=M,E.marginRight=M),b){var T=w(C,2);E.rowGap=T[1]}else I&&(E.marginTop=I,E.marginBottom=I);var D=w(C,2),N=D[0],O=D[1],P=g.useMemo((function(){return{gutter:[N,O],wrap:d,supportFlexGap:b}}),[N,O,d,b]);return g.createElement(Jp.Provider,{value:P},g.createElement("div",S({},f,{className:k,style:S(S({},E),s),ref:t}),l))})));ah.displayName="Row";var sh=ah,lh=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i0){var E=s[0]/2;k.paddingLeft=E,k.paddingRight=E}if(s&&s[1]>0&&!u){var M=s[1]/2;k.paddingTop=M,k.paddingBottom=M}return x&&(k.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(x),!1!==l||k.minWidth||(k.minWidth=0)),g.createElement("div",S({},w,{style:S(S({},k),b),className:C,ref:t}),y)}));ch.displayName="Col";var dh=ch;function fh(e){var t=e.className,n=e.direction,r=e.index,i=e.marginDirection,o=e.children,a=e.split,s=e.wrap,l=g.useContext(hh),u=l.horizontalSize,c=l.verticalSize,d=l.latestIndex,f={};return l.supportFlexGap||("vertical"===n?r0?1:0):0},Eh=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},Mh=function(e){return e&&e.offsetWidth||0},Ih=function(e){return e&&e.offsetHeight||0},Th=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"},Dh=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Nh=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},Oh=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,o=e.index,a=e.slideCount,s=e.lazyLoad,l=e.currentSlide,u=e.centerMode,c=e.slidesToScroll,d=e.slidesToShow,f=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var h,g,v,m=o,y={},x={},b=i?o:bh(o,0,a-1);if(r){if(!i&&(o<0||o>=a))return{};o<0?m=o+a:o>=a&&(m=o-a),s&&p.indexOf(m)<0&&(p=p.concat(m)),y={animating:!0,currentSlide:m,lazyLoadedList:p,targetSlide:m},x={animating:!1,targetSlide:m}}else h=m,m<0?(h=m+a,i?a%c!==0&&(h=a-a%c):h=0):!Dh(e)&&m>l?m=h=l:u&&m>=a?(m=i?a:a-1,h=i?0:a-1):m>=a&&(h=m-a,i?a%c!==0&&(h=0):h=a-d),!i&&m+d>=a&&(h=a-d),g=Fh(rn(rn({},e),{},{slideIndex:m})),v=Fh(rn(rn({},e),{},{slideIndex:h})),i||(g===v&&(m=h),g=v),s&&(p=p.concat(Ah(rn(rn({},e),{},{currentSlide:m})))),f?(y={animating:!0,currentSlide:h,trackStyle:zh(rn(rn({},e),{},{left:g})),lazyLoadedList:p,targetSlide:b},x={animating:!1,currentSlide:h,trackStyle:jh(rn(rn({},e),{},{left:v})),swipeLeft:null,targetSlide:b}):y={currentSlide:h,trackStyle:jh(rn(rn({},e),{},{left:v})),lazyLoadedList:p,targetSlide:b};return{state:y,nextState:x}},Ph=function(e,t){var n,r,i,o,a=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,u=e.currentSlide,c=e.targetSlide,d=e.lazyLoad,f=e.infinite;if(n=l%a!==0?0:(l-u)%a,"previous"===t.message)o=u-(i=0===n?a:s-n),d&&!f&&(o=-1===(r=u-i)?l-1:r),f||(o=c-a);else if("next"===t.message)o=u+(i=0===n?a:n),d&&!f&&(o=(u+a)%l+n),f||(o=c+a);else if("dots"===t.message)o=t.index*t.slidesToScroll;else if("children"===t.message){if(o=t.index,f){var p=Wh(rn(rn({},e),{},{targetSlide:o}));o>t.currentSlide&&"left"===p?o-=l:on[n.length-1])t=n[n.length-1];else for(var i in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+Mh(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},Bh=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},jh=function(e){var t,n;Bh(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=Hh(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=rn(rn({},i),{},{WebkitTransform:o,transform:a,msTransform:s})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},zh=function(e){Bh(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=jh(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Fh=function(e){if(e.unslick)return 0;Bh(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,o=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,u=e.slidesToScroll,c=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,h=e.fade,g=e.vertical;if(h||1===e.slideCount)return 0;var v=0;if(o?(v=-Vh(e),s%u!==0&&r+u>s&&(v=-(r>s?l-(r-s):s%u)),a&&(v+=parseInt(l/2))):(s%u!==0&&r+u>s&&(v=l-s%u),a&&(v=parseInt(l/2))),t=g?r*p*-1+v*p:r*c*-1+v*c,!0===f){var m,y=i&&i.node;if(m=r+Vh(e),t=(n=y&&y.childNodes[m])?-1*n.offsetLeft:0,!0===a){m=o?r+Vh(e):r,n=y&&y.children[m],t=0;for(var x=0;xe.currentSlide?e.targetSlide>e.currentSlide+Uh(e)?"left":"right":e.targetSlide0&&(o+=1),r&&t%2===0&&(o+=1),o}return r?0:t-1},Qh=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!==0||(o+=1),o}return r?t-1:0},Yh=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)},Kh=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},qh=function(e,t){return e.key+"-"+t},Jh=function(e){var t,n=[],r=[],i=[],o=g.Children.count(e.children),a=_h(e),s=Ch(e);return g.Children.forEach(e.children,(function(l,u){var c,d={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};c=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?l:g.createElement("div",null);var f=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(rn(rn({},e),{},{index:u})),p=c.props.className||"",h=Kh(rn(rn({},e),{},{index:u}));if(n.push(g.cloneElement(c,{key:"original"+qh(c,u),"data-index":u,className:ln()(h,p),tabIndex:"-1","aria-hidden":!h["slick-active"],style:rn(rn({outline:"none"},c.props.style||{}),f),onClick:function(t){c.props&&c.props.onClick&&c.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){var v=o-u;v<=Vh(e)&&o!==e.slidesToShow&&((t=-v)>=a&&(c=l),h=Kh(rn(rn({},e),{},{index:t})),r.push(g.cloneElement(c,{key:"precloned"+qh(c,t),"data-index":t,tabIndex:"-1",className:ln()(h,p),"aria-hidden":!h["slick-active"],style:rn(rn({},c.props.style||{}),f),onClick:function(t){c.props&&c.props.onClick&&c.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),o!==e.slidesToShow&&((t=o+u)=y&&u<=v:u===y}),b={message:"dots",index:p,slidesToScroll:a,currentSlide:u},w=this.clickHandler.bind(this,b);f=f.concat(g.createElement("li",{key:p,className:x},g.cloneElement(this.props.customPaging(p),{onClick:w})))}return g.cloneElement(this.props.appendDots(f),rn({className:this.props.dotsClass},d))}}]),n}(g.PureComponent),$h=function(e){yr(n,e);var t=_r(n);function n(){return hr(this,n),t.apply(this,arguments)}return vr(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:ln()(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?g.cloneElement(this.props.prevArrow,rn(rn({},n),r)):g.createElement("button",S({key:"0",type:"button"},n)," ","Previous")}}]),n}(g.PureComponent),eg=function(e){yr(n,e);var t=_r(n);function n(){return hr(this,n),t.apply(this,arguments)}return vr(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});Dh(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:ln()(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?g.cloneElement(this.props.nextArrow,rn(rn({},n),r)):g.createElement("button",S({key:"1",type:"button"},n)," ","Next")}}]),n}(g.PureComponent),tg=function(e){yr(n,e);var t=_r(n);function n(e){var r;hr(this,n),tn(Sr(r=t.call(this,e)),"listRefHandler",(function(e){return r.list=e})),tn(Sr(r),"trackRefHandler",(function(e){return r.track=e})),tn(Sr(r),"adaptHeight",(function(){if(r.props.adaptiveHeight&&r.list){var e=r.list.querySelector('[data-index="'.concat(r.state.currentSlide,'"]'));r.list.style.height=Ih(e)+"px"}})),tn(Sr(r),"componentDidMount",(function(){if(r.props.onInit&&r.props.onInit(),r.props.lazyLoad){var e=Ah(rn(rn({},r.props),r.state));e.length>0&&(r.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),r.props.onLazyLoad&&r.props.onLazyLoad(e))}var t=rn({listRef:r.list,trackRef:r.track},r.props);r.updateState(t,!0,(function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay("playing")})),"progressive"===r.props.lazyLoad&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new si((function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout((function(){return r.onWindowResized()}),r.props.speed))):r.onWindowResized()})),r.ro.observe(r.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,e.onblur=r.props.pauseOnFocus?r.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",r.onWindowResized):window.attachEvent("onresize",r.onWindowResized)})),tn(Sr(r),"componentWillUnmount",(function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach((function(e){return clearTimeout(e)})),r.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",r.onWindowResized):window.detachEvent("onresize",r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()})),tn(Sr(r),"componentDidUpdate",(function(e){if(r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),r.props.lazyLoad){var t=Ah(rn(rn({},r.props),r.state));t.length>0&&(r.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),r.props.onLazyLoad&&r.props.onLazyLoad(t))}r.adaptHeight();var n=rn(rn({listRef:r.list,trackRef:r.track},r.props),r.state),i=r.didPropsChange(e);i&&r.updateState(n,i,(function(){r.state.currentSlide>=g.Children.count(r.props.children)&&r.changeSlide({message:"index",index:g.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),e.autoplay===r.props.autoplay&&e.autoplaySpeed===r.props.autoplaySpeed||(!e.autoplay&&r.props.autoplay?r.autoPlay("playing"):r.props.autoplay?r.autoPlay("update"):r.pause("paused"))}))})),tn(Sr(r),"onWindowResized",(function(e){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=xh()((function(){return r.resizeWindow(e)}),50),r.debouncedResize()})),tn(Sr(r),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Boolean(r.track&&r.track.node);if(t){var n=rn(rn({listRef:r.list,trackRef:r.track},r.props),r.state);r.updateState(n,e,(function(){r.props.autoplay?r.autoPlay("update"):r.pause("paused")})),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback}})),tn(Sr(r),"updateState",(function(e,t,n){var i=function(e){var t,n=g.Children.count(e.children),r=e.listRef,i=Math.ceil(Mh(r)),o=e.trackRef&&e.trackRef.node,a=Math.ceil(Mh(o));if(e.vertical)t=i;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=i/100),t=Math.ceil((i-s)/e.slidesToShow)}var l=r&&Ih(r.querySelector('[data-index="0"]')),u=l*e.slidesToShow,c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=n-1-e.initialSlide);var d=e.lazyLoadedList||[],f=Ah(rn(rn({},e),{},{currentSlide:c,lazyLoadedList:d})),p={slideCount:n,slideWidth:t,listWidth:i,trackWidth:a,currentSlide:c,slideHeight:l,listHeight:u,lazyLoadedList:d=d.concat(f)};return null===e.autoplaying&&e.autoplay&&(p.autoplaying="playing"),p}(e);e=rn(rn(rn({},e),i),{},{slideIndex:i.currentSlide});var o=Fh(e);e=rn(rn({},e),{},{left:o});var a=jh(e);(t||g.Children.count(r.props.children)!==g.Children.count(e.children))&&(i.trackStyle=a),r.setState(i,n)})),tn(Sr(r),"ssrInit",(function(){if(r.props.variableWidth){var e=0,t=0,n=[],i=Vh(rn(rn(rn({},r.props),r.state),{},{slideCount:r.props.children.length})),o=Gh(rn(rn(rn({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var a=0;a=t&&r.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(r.props.lazyLoad?e.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(e.onload=i,e.onerror=function(){i(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))}))})),tn(Sr(r),"progressiveLazyLoad",(function(){for(var e=[],t=rn(rn({},r.props),r.state),n=r.state.currentSlide;n=-Vh(t);i--)if(r.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(r.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),r.props.onLazyLoad&&r.props.onLazyLoad(e)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)})),tn(Sr(r),"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.props,i=n.asNavFor,o=n.beforeChange,a=n.onLazyLoad,s=n.speed,l=n.afterChange,u=r.state.currentSlide,c=Oh(rn(rn(rn({index:e},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!t})),d=c.state,f=c.nextState;if(d){o&&o(u,d.currentSlide);var p=d.lazyLoadedList.filter((function(e){return r.state.lazyLoadedList.indexOf(e)<0}));a&&p.length>0&&a(p),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),l&&l(u),delete r.animationEndCallback),r.setState(d,(function(){i&&r.asNavForIndex!==e&&(r.asNavForIndex=e,i.innerSlider.slideHandler(e)),f&&(r.animationEndCallback=setTimeout((function(){var e=f.animating,t=an(f,["animating"]);r.setState(t,(function(){r.callbackTimers.push(setTimeout((function(){return r.setState({animating:e})}),10)),l&&l(d.currentSlide),delete r.animationEndCallback}))}),s))}))}})),tn(Sr(r),"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=rn(rn({},r.props),r.state),i=Ph(n,e);if((0===i||i)&&(!0===t?r.slideHandler(i,t):r.slideHandler(i),r.props.autoplay&&r.autoPlay("update"),r.props.focusOnSelect)){var o=r.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),tn(Sr(r),"clickHandler",(function(e){!1===r.clickable&&(e.stopPropagation(),e.preventDefault()),r.clickable=!0})),tn(Sr(r),"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,r.props.accessibility,r.props.rtl);""!==t&&r.changeSlide({message:t})})),tn(Sr(r),"selectHandler",(function(e){r.changeSlide(e)})),tn(Sr(r),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),tn(Sr(r),"enableBodyScroll",(function(){window.ontouchmove=null})),tn(Sr(r),"swipeStart",(function(e){r.props.verticalSwiping&&r.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&Sh(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,r.props.swipe,r.props.draggable);""!==t&&r.setState(t)})),tn(Sr(r),"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,o=t.swipeToSlide,a=t.verticalSwiping,s=t.rtl,l=t.currentSlide,u=t.edgeFriction,c=t.edgeDragged,d=t.onEdge,f=t.swiped,p=t.swiping,h=t.slideCount,g=t.slidesToScroll,v=t.infinite,m=t.touchObject,y=t.swipeEvent,x=t.listHeight,b=t.listWidth;if(!n){if(r)return Sh(e);i&&o&&a&&Sh(e);var w,S={},A=Fh(t);m.curX=e.touches?e.touches[0].pageX:e.clientX,m.curY=e.touches?e.touches[0].pageY:e.clientY,m.swipeLength=Math.round(Math.sqrt(Math.pow(m.curX-m.startX,2)));var _=Math.round(Math.sqrt(Math.pow(m.curY-m.startY,2)));if(!a&&!p&&_>10)return{scrolling:!0};a&&(m.swipeLength=_);var C=(s?-1:1)*(m.curX>m.startX?1:-1);a&&(C=m.curY>m.startY?1:-1);var k=Math.ceil(h/g),E=Th(t.touchObject,a),M=m.swipeLength;return v||(0===l&&("right"===E||"down"===E)||l+1>=k&&("left"===E||"up"===E)||!Dh(t)&&("left"===E||"up"===E))&&(M=m.swipeLength*u,!1===c&&d&&(d(E),S.edgeDragged=!0)),!f&&y&&(y(E),S.swiped=!0),w=i?A+M*(x/b)*C:s?A-M*C:A+M*C,a&&(w=A+M*C),S=rn(rn({},S),{},{touchObject:m,swipeLeft:w,trackStyle:jh(rn(rn({},t),{},{left:w}))}),Math.abs(m.curX-m.startX)<.8*Math.abs(m.curY-m.startY)||m.swipeLength>10&&(S.swiping=!0,Sh(e)),S}}(e,rn(rn(rn({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));t&&(t.swiping&&(r.clickable=!1),r.setState(t))})),tn(Sr(r),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,o=t.listWidth,a=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,u=t.swipeToSlide,c=t.scrolling,d=t.onSwipe,f=t.targetSlide,p=t.currentSlide,h=t.infinite;if(!n)return r&&Sh(e),{};var g=s?l/a:o/a,v=Th(i,s),m={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c)return m;if(!i.swipeLength)return m;if(i.swipeLength>g){var y,x;Sh(e),d&&d(v);var b=h?p:f;switch(v){case"left":case"up":x=b+Lh(t),y=u?Rh(t,x):x,m.currentDirection=0;break;case"right":case"down":x=b-Lh(t),y=u?Rh(t,x):x,m.currentDirection=1;break;default:y=b}m.triggerSlideHandler=y}else{var w=Fh(t);m.trackStyle=zh(rn(rn({},t),{},{left:w}))}return m}(e,rn(rn(rn({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,r.setState(t),void 0!==n&&(r.slideHandler(n),r.props.verticalSwiping&&r.enableBodyScroll())}})),tn(Sr(r),"touchEnd",(function(e){r.swipeEnd(e),r.clickable=!0})),tn(Sr(r),"slickPrev",(function(){r.callbackTimers.push(setTimeout((function(){return r.changeSlide({message:"previous"})}),0))})),tn(Sr(r),"slickNext",(function(){r.callbackTimers.push(setTimeout((function(){return r.changeSlide({message:"next"})}),0))})),tn(Sr(r),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";r.callbackTimers.push(setTimeout((function(){return r.changeSlide({message:"index",index:e,currentSlide:r.state.currentSlide},t)}),0))})),tn(Sr(r),"play",(function(){var e;if(r.props.rtl)e=r.state.currentSlide-r.props.slidesToScroll;else{if(!Dh(rn(rn({},r.props),r.state)))return!1;e=r.state.currentSlide+r.props.slidesToScroll}r.slideHandler(e)})),tn(Sr(r),"autoPlay",(function(e){r.autoplayTimer&&clearInterval(r.autoplayTimer);var t=r.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:"playing"})})),tn(Sr(r),"pause",(function(e){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var t=r.state.autoplaying;"paused"===e?r.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||r.setState({autoplaying:"focused"}):"playing"===t&&r.setState({autoplaying:"hovered"})})),tn(Sr(r),"onDotsOver",(function(){return r.props.autoplay&&r.pause("hovered")})),tn(Sr(r),"onDotsLeave",(function(){return r.props.autoplay&&"hovered"===r.state.autoplaying&&r.autoPlay("leave")})),tn(Sr(r),"onTrackOver",(function(){return r.props.autoplay&&r.pause("hovered")})),tn(Sr(r),"onTrackLeave",(function(){return r.props.autoplay&&"hovered"===r.state.autoplaying&&r.autoPlay("leave")})),tn(Sr(r),"onSlideFocus",(function(){return r.props.autoplay&&r.pause("focused")})),tn(Sr(r),"onSlideBlur",(function(){return r.props.autoplay&&"focused"===r.state.autoplaying&&r.autoPlay("blur")})),tn(Sr(r),"render",(function(){var e,t,n,i=ln()("slick-slider",r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),o=rn(rn({},r.props),r.state),a=Nh(o,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),s=r.props.pauseOnHover;if(a=rn(rn({},a),{},{onMouseEnter:s?r.onTrackOver:null,onMouseLeave:s?r.onTrackLeave:null,onMouseOver:s?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null}),!0===r.props.dots&&r.state.slideCount>=r.props.slidesToShow){var l=Nh(o,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=r.props.pauseOnDotsHover;l=rn(rn({},l),{},{clickHandler:r.changeSlide,onMouseEnter:u?r.onDotsLeave:null,onMouseOver:u?r.onDotsOver:null,onMouseLeave:u?r.onDotsLeave:null}),e=g.createElement(Xh,l)}var c=Nh(o,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);c.clickHandler=r.changeSlide,r.props.arrows&&(t=g.createElement($h,c),n=g.createElement(eg,c));var d=null;r.props.vertical&&(d={height:r.state.listHeight});var f=null;!1===r.props.vertical?!0===r.props.centerMode&&(f={padding:"0px "+r.props.centerPadding}):!0===r.props.centerMode&&(f={padding:r.props.centerPadding+" 0px"});var p=rn(rn({},d),f),h=r.props.touchMove,v={className:"slick-list",style:p,onClick:r.clickHandler,onMouseDown:h?r.swipeStart:null,onMouseMove:r.state.dragging&&h?r.swipeMove:null,onMouseUp:h?r.swipeEnd:null,onMouseLeave:r.state.dragging&&h?r.swipeEnd:null,onTouchStart:h?r.swipeStart:null,onTouchMove:r.state.dragging&&h?r.swipeMove:null,onTouchEnd:h?r.touchEnd:null,onTouchCancel:r.state.dragging&&h?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},m={className:i,dir:"ltr",style:r.props.style};return r.props.unslick&&(v={className:"slick-list"},m={className:i}),g.createElement("div",m,r.props.unslick?"":t,g.createElement("div",S({ref:r.listRefHandler},v),g.createElement(Zh,S({ref:r.trackRefHandler},a),r.props.children)),r.props.unslick?"":n,r.props.unslick?"":e)})),r.list=null,r.track=null,r.state=rn(rn({},mh),{},{currentSlide:r.props.initialSlide,slideCount:g.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null;var i=r.ssrInit();return r.state=rn(rn({},r.state),i),r}return vr(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)})),tn(Sr(r),"slickPause",(function(){return r.innerSlider.pause("paused")})),tn(Sr(r),"slickPlay",(function(){return r.innerSlider.autoPlay("play")})),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return vr(n,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var i;i=0===r?rg()({minWidth:0,maxWidth:n}):rg()({minWidth:t[r-1]+1,maxWidth:n}),Yh()&&e.media(i,(function(){e.setState({breakpoint:n})}))}));var n=rg()({minWidth:t.slice(-1)[0]});Yh()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":rn(rn(rn({},og),this.props),t[0].settings):rn(rn({},og),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=g.Children.toArray(this.props.children);r=r.filter((function(e){return"string"===typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],o=null,a=0;a=r.length));c+=1)u.push(g.cloneElement(r[c],{key:100*a+10*l+c,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(g.createElement("div",{key:10*a+l},u))}e.variableWidth?i.push(g.createElement("div",{key:a,style:{width:o}},s)):i.push(g.createElement("div",{key:a},s))}if("unslick"===e){var d="regular slider "+(this.props.className||"");return g.createElement("div",{className:d},r)}return i.length<=e.slidesToShow&&(e.unslick=!0),g.createElement(tg,S({style:this.props.style,ref:this.innerSliderRefHandler},e),i)}}]),n}(g.Component),sg=ag,lg=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i1&&void 0!==arguments[1]&&arguments[1];v.current.slickGoTo(e,t)};g.useImperativeHandle(t,(function(){return{goTo:m,autoPlay:v.current.innerSlider.autoPlay,innerSlider:v.current.innerSlider,prev:v.current.slickPrev,next:v.current.slickNext}}),[v.current]);var y=g.useRef(g.Children.count(d.children));g.useEffect((function(){y.current!==g.Children.count(d.children)&&(m(d.initialSlide||0,!1),y.current=g.Children.count(d.children))}),[d.children]);var x=S({},d);"fade"===x.effect&&(x.fade=!0);var b=p("carousel",x.prefixCls),w="slick-dots";x.vertical="left"===c||"right"===c;var A=!!i,_=ln()(w,"".concat(w,"-").concat(c),"boolean"!==typeof i&&(null===i||void 0===i?void 0:i.className)),C=ln()(b,(tn(n={},"".concat(b,"-rtl"),"rtl"===h),tn(n,"".concat(b,"-vertical"),x.vertical),n));return g.createElement("div",{className:C},g.createElement(sg,S({ref:v},x,{dots:A,dotsClass:_,arrows:a,draggable:l})))})),cg=ug;function dg(e){if("undefined"===typeof document)return 0;if(e||void 0===wh){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),wh=i-o}return wh}function fg(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?dg():n}var pg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=t.element,r=void 0===n?document.body:n,i={},o=Object.keys(e);return o.forEach((function(e){i[e]=r.style[e]})),o.forEach((function(t){r.style[t]=e[t]})),i};var hg={},gg=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return pg(hg),hg={},void(document.body.className=r.replace(n,"").trim())}var i=dg();if(i&&(hg=pg({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!n.test(r))){var o="".concat(r," ").concat(t);document.body.className=o.trim()}}},vg=[],mg="ant-scrolling-effect",yg=new RegExp("".concat(mg),"g"),xg=0,bg=new Map,wg=vr((function e(t){var n=this;hr(this,e),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container},this.reLock=function(e){var t=vg.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())},this.lock=function(){var e;if(!vg.some((function(e){return e.target===n.lockTarget})))if(vg.some((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))vg=[].concat(kr(vg),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=dg());var i=r.className;if(0===vg.filter((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&bg.set(r,pg({width:0!==t?"calc(100% - ".concat(t,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!yg.test(i)){var o="".concat(i," ").concat(mg);r.className=o.trim()}vg=[].concat(kr(vg),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var e,t=vg.find((function(e){return e.target===n.lockTarget}));if(vg=vg.filter((function(e){return e.target!==n.lockTarget})),t&&!vg.some((function(e){var n,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,i=r.className;yg.test(i)&&(pg(bg.get(r),{element:r}),bg.delete(r),r.className=r.className.replace(yg,"").trim())}},this.lockTarget=xg++,this.options=t})),Sg=0,Ag=gi();var _g={},Cg=function(e){if(!Ag)return null;if(e){if("string"===typeof e)return document.querySelectorAll(e)[0];if("function"===typeof e)return e();if("object"===wr(e)&&e instanceof window.HTMLElement)return e}return document.body},kg=function(e){yr(n,e);var t=_r(n);function n(e){var r;return hr(this,n),(r=t.call(this,e)).container=void 0,r.componentRef=g.createRef(),r.rafId=void 0,r.scrollLocker=void 0,r.renderComponent=void 0,r.updateScrollLocker=function(e){var t=(e||{}).visible,n=r.props,i=n.getContainer,o=n.visible;o&&o!==t&&Ag&&Cg(i)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:Cg(i)})},r.updateOpenCount=function(e){var t=e||{},n=t.visible,i=t.getContainer,o=r.props,a=o.visible,s=o.getContainer;a!==n&&Ag&&Cg(s)===document.body&&(a&&!n?Sg+=1:e&&(Sg-=1)),("function"===typeof s&&"function"===typeof i?s.toString()!==i.toString():s!==i)&&r.removeCurrentContainer()},r.attachToParent=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||r.container&&!r.container.parentNode){var t=Cg(r.props.getContainer);return!!t&&(t.appendChild(r.container),!0)}return!0},r.getContainer=function(){return Ag?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null},r.setWrapperClassName=function(){var e=r.props.wrapperClassName;r.container&&e&&e!==r.container.className&&(r.container.className=e)},r.removeCurrentContainer=function(){var e,t;null===(e=r.container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(r.container)},r.switchScrollingEffect=function(){1!==Sg||Object.keys(_g).length?Sg||(pg(_g),_g={},gg(!0)):(gg(),_g=pg({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},r.scrollLocker=new wg({container:Cg(e.getContainer)}),r}return vr(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Ei((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;Ag&&Cg(n)===document.body&&(Sg=t&&Sg?Sg-1:Sg),this.removeCurrentContainer(),Ei.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,r=e.visible,i=null,o={getOpenCount:function(){return Sg},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||r||this.componentRef.current)&&(i=g.createElement(Co,{getContainer:this.getContainer,ref:this.componentRef},t(o))),i}}]),n}(g.Component),Eg=kg;var Mg={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},Ig=Object.keys(Mg).filter((function(e){if("undefined"===typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],Tg=Mg[Ig];function Dg(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function Ng(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on".concat(t),n)}var Og=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Pg=!("undefined"!==typeof window&&window.document&&window.document.createElement),Rg=function e(t,n,r,i){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var o=Math.max(Math.abs(r),Math.abs(i))===Math.abs(i),a=Math.max(Math.abs(r),Math.abs(i))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c="auto"===u.overflowY||"scroll"===u.overflowY,d="auto"===u.overflowX||"scroll"===u.overflowX,f=s&&c,p=l&&d;return!!(o&&(!f||f&&(n.scrollTop>=s&&i<0||n.scrollTop<=0&&i>0))||a&&(!p||p&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0)))&&e(t,n.parentNode,r,i)},Lg=["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"],Bg={},jg=function(e){yr(n,e);var t=_r(n);function n(e){var r;return hr(this,n),(r=t.call(this,e)).levelDom=void 0,r.dom=void 0,r.contentWrapper=void 0,r.contentDom=void 0,r.maskDom=void 0,r.handlerDom=void 0,r.drawerId=void 0,r.timeout=void 0,r.passive=void 0,r.startPos=void 0,r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(e){e.touches.length>1?r.startPos=null:r.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY}},r.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)&&r.startPos){var t=e.currentTarget,n=e.changedTouches[0].clientX-r.startPos.x,i=e.changedTouches[0].clientY-r.startPos.y;(t===r.maskDom||t===r.handlerDom||t===r.contentDom&&Rg(t,e.target,n,i))&&e.cancelable&&e.preventDefault()}},r.transitionEnd=function(e){var t=e.target;Ng(t,Tg,r.transitionEnd),t.style.transition=""},r.onKeyDown=function(e){if(e.keyCode===Hi.ESC){var t=r.props.onClose;e.stopPropagation(),t&&t(e)}},r.onWrapperTransitionEnd=function(e){var t=r.props,n=t.open,i=t.afterVisibleChange;e.target===r.contentWrapper&&e.propertyName.match(/transform$/)&&(r.dom.style.transition="",!n&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),i&&i(!!n))},r.openLevelTransition=function(){var e=r.props,t=e.open,n=e.width,i=e.height,o=r.getHorizontalBoolAndPlacementName(),a=o.isHorizontal,s=o.placementName,l=r.contentDom?r.contentDom.getBoundingClientRect()[a?"width":"height"]:0,u=(a?n:i)||l;r.setLevelAndScrolling(t,s,u)},r.setLevelTransform=function(e,t,n,i){var o=r.props,a=o.placement,s=o.levelMove,l=o.duration,u=o.ease,c=o.showMask;r.levelDom.forEach((function(o){o.style.transition="transform ".concat(l," ").concat(u),Dg(o,Tg,r.transitionEnd);var d=e?n:0;if(s){var f=function(e,t){var n="function"===typeof e?e(t):e;return Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}(s,{target:o,open:e});d=e?f[0]:f[1]||0}var p="number"===typeof d?"".concat(d,"px"):d,h="left"===a||"top"===a?p:"-".concat(p);h=c&&"right"===a&&i?"calc(".concat(h," + ").concat(i,"px)"):h,o.style.transform=d?"".concat(t,"(").concat(h,")"):""}))},r.setLevelAndScrolling=function(e,t,n){var i=r.props.onChange;if(!Pg){var o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?dg(!0):0;r.setLevelTransform(e,t,n,o),r.toggleScrollingToDrawerAndBody(o)}i&&i(e)},r.toggleScrollingToDrawerAndBody=function(e){var t=r.props,n=t.getContainer,i=t.showMask,o=t.open,a=n&&n();if(a&&a.parentNode===document.body&&i){var s=["touchstart"],l=[document.body,r.maskDom,r.handlerDom,r.contentDom];o&&"hidden"!==document.body.style.overflow?(e&&r.addScrollingEffect(e),document.body.style.touchAction="none",l.forEach((function(e,t){e&&Dg(e,s[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)}))):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",e&&r.remScrollingEffect(e),l.forEach((function(e,t){e&&Ng(e,s[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)})))}},r.addScrollingEffect=function(e){var t=r.props,n=t.placement,i=t.duration,o=t.ease,a="width ".concat(i," ").concat(o),s="transform ".concat(i," ").concat(o);switch(r.dom.style.transition="none",n){case"right":r.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(e,"px)"),r.dom.style.transform="translateZ(0)"}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(s,",").concat(a),r.dom.style.width="",r.dom.style.transform="")}))},r.remScrollingEffect=function(e){var t,n=r.props,i=n.placement,o=n.duration,a=n.ease;Ig&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var s="width ".concat(o," ").concat(a),l="transform ".concat(o," ").concat(a);switch(i){case"left":r.dom.style.width="100%",s="width 0s ".concat(a," ").concat(o);break;case"right":r.dom.style.transform="translateX(".concat(e,"px)"),r.dom.style.width="100%",s="width 0s ".concat(a," ").concat(o),r.maskDom&&(r.maskDom.style.left="-".concat(e,"px"),r.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":r.dom.style.width="calc(100% + ".concat(e,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(o)}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(l,",").concat(t?"".concat(t,","):"").concat(s),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")}))},r.getCurrentDrawerSome=function(){return!Object.keys(Bg).some((function(e){return Bg[e]}))},r.getLevelDom=function(e){var t=e.level,n=e.getContainer;if(!Pg){var i,o=n&&n(),a=o?o.parentNode:null;if(r.levelDom=[],"all"===t)(a?Array.prototype.slice.call(a.children):[]).forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==o&&r.levelDom.push(e)}));else t&&(i=t,Array.isArray(i)?i:[i]).forEach((function(e){document.querySelectorAll(e).forEach((function(e){r.levelDom.push(e)}))}))}},r.getHorizontalBoolAndPlacementName=function(){var e=r.props.placement,t="left"===e||"right"===e;return{isHorizontal:t,placementName:"translate".concat(t?"X":"Y")}},r.state={_self:Sr(r)},r}return vr(n,[{key:"componentDidMount",value:function(){var e=this;if(!Pg){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(u){}this.passive=!!t&&{passive:!1}}var n,r=this.props,i=r.open,o=r.getContainer,a=r.showMask,s=r.autoFocus,l=o&&o();(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),i)&&(l&&l.parentNode===document.body&&(Bg[this.drawerId]=i),this.openLevelTransition(),this.forceUpdate((function(){s&&e.domFocus()})),a&&(null===(n=this.props.scrollLocker)||void 0===n||n.lock()))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.open,r=t.getContainer,i=t.scrollLocker,o=t.showMask,a=t.autoFocus,s=r&&r();n!==e.open&&(s&&s.parentNode===document.body&&(Bg[this.drawerId]=!!n),this.openLevelTransition(),n?(a&&this.domFocus(),o&&(null===i||void 0===i||i.lock())):null===i||void 0===i||i.unLock())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.open,n=e.scrollLocker;delete Bg[this.drawerId],t&&(this.setLevelTransform(!1),document.body.style.touchAction=""),null===n||void 0===n||n.unLock()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,i=n.children,o=n.style,a=n.width,s=n.height,l=(n.defaultOpen,n.open),u=n.prefixCls,c=n.placement,d=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),f=(n.onChange,n.afterVisibleChange,n.showMask),p=n.maskClosable,h=n.maskStyle,v=n.onClose,m=n.onHandleClick,y=n.keyboard,x=(n.getOpenCount,n.scrollLocker,n.contentWrapperStyle),b=an(n,Lg),w=!!this.dom&&l,A=ln()(u,(tn(e={},"".concat(u,"-").concat(c),!0),tn(e,"".concat(u,"-open"),w),tn(e,r||"",!!r),tn(e,"no-mask",!f),e)),_=this.getHorizontalBoolAndPlacementName().placementName,C="left"===c||"top"===c?"-100%":"100%",k=w?"":"".concat(_,"(").concat(C,")"),E=d&&g.cloneElement(d,{onClick:function(e){d.props.onClick&&d.props.onClick(),m&&m(e)},ref:function(e){t.handlerDom=e}});return g.createElement("div",S({},Wi(b,["switchScrollingEffect","autoFocus"]),{tabIndex:-1,className:A,style:o,ref:function(e){t.dom=e},onKeyDown:w&&y?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),f&&g.createElement("div",{className:"".concat(u,"-mask"),onClick:p?v:void 0,style:h,ref:function(e){t.maskDom=e}}),g.createElement("div",{className:"".concat(u,"-content-wrapper"),style:rn({transform:k,msTransform:k,width:Og(a)?"".concat(a,"px"):a,height:Og(s)?"".concat(s,"px"):s},x),ref:function(e){t.contentWrapper=e}},g.createElement("div",{className:"".concat(u,"-content"),ref:function(e){t.contentDom=e}},i),E))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,i={prevProps:e};if(void 0!==n){var o=e.placement,a=e.level;o!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return i}}]),n}(g.Component),zg=jg,Fg=["defaultOpen","getContainer","wrapperClassName","forceRender","handler"],Vg=["visible","afterClose"],Gg=function(e){yr(n,e);var t=_r(n);function n(e){var r;hr(this,n),(r=t.call(this,e)).dom=void 0,r.onHandleClick=function(e){var t=r.props,n=t.onHandleClick,i=t.open;if(n&&n(e),"undefined"===typeof i){var o=r.state.open;r.setState({open:!o})}},r.onClose=function(e){var t=r.props,n=t.onClose,i=t.open;n&&n(e),"undefined"===typeof i&&r.setState({open:!1})};var i="undefined"!==typeof e.open?e.open:!!e.defaultOpen;return r.state={open:i},"onMaskClick"in e&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return vr(n,[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),r=t.wrapperClassName,i=t.forceRender,o=t.handler,a=an(t,Fg),s=this.state.open;if(!n)return g.createElement("div",{className:r,ref:function(t){e.dom=t}},g.createElement(zg,S({},a,{open:s,handler:o,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var l=!!o||i;return g.createElement(Eg,{visible:s,forceRender:l,getContainer:n,wrapperClassName:r},(function(t){var n=t.visible,r=t.afterClose,i=an(t,Vg);return g.createElement(zg,S({},a,i,{open:void 0!==n?n:s,afterVisibleChange:void 0!==r?r:a.afterVisibleChange,handler:o,onClose:e.onClose,onHandleClick:e.onHandleClick}))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"undefined"!==typeof n&&e.open!==n.open&&(r.open=e.open),r}}]),n}(g.Component);Gg.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:g.createElement("div",{className:"drawer-handle"},g.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1,autoFocus:!0};var Hg=Gg,Wg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},Ug=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:Wg}))};Ug.displayName="CloseOutlined";var Qg=g.forwardRef(Ug);function Yg(){var e=g.useReducer((function(e){return e+1}),0);return w(e,2)[1]}var Kg=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i li {\n padding-left: 0 !important;\n margin: 5px 0 !important;\n height: auto !important;\n &:last-child {\n border-bottom: 0;\n }\n &.ant-menu-item-only-child {\n padding-right: 0px !important;\n }\n &.ant-menu-item-selected {\n // padding: 0 15px!important;\n }\n }\n .ant-menu-submenu-title {\n padding-left: 0 !important;\n background: transparent !important;\n }\n .ant-menu-submenu-title {\n .ant-menu-submenu-arrow {\n right: 0;\n }\n }\n .ant-menu-sub li {\n padding: 0 15px !important;\n height: auto;\n }\n }\n .btn-signin {\n background: #00e8b4;\n border-radius: 8px;\n padding: 8px 24px;\n color: #ffffff !important;\n font-weight: bold;\n font-size: 15px;\n line-height: 24px;\n display: block;\n text-align: center;\n margin: 15px 0;\n }\n\n &.solscan-menu-sp-dark {\n .ant-drawer-header {\n background: #282828;\n }\n\n .ant-drawer-content {\n background: #282828;\n }\n\n .ant-drawer-body {\n color: #8b8b8b;\n\n ul {\n background: #282828;\n color: #8b8b8b;\n .ant-menu-item {\n border-bottom: 1px solid #353535;\n a {\n color: #8b8b8b !important;\n }\n .ant-menu-title-content > .ant-typography {\n color: #8b8b8b !important;\n }\n }\n .ant-menu-submenu {\n border-bottom: 1px solid #353535;\n .ant-menu-submenu-title > i {\n color: #8b8b8b !important;\n }\n .ant-menu-sub {\n background: #1a1a1a;\n }\n }\n }\n }\n .ant-menu-sub li span {\n border-bottom: none;\n }\n }\n &.solscan-menu-sp-light {\n .ant-drawer-body {\n ul {\n .ant-menu-title-content > .ant-typography {\n color: #1a1a1a !important;\n }\n }\n }\n }\n"])),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg}),(function(e){return e.theme.text}),(function(e){return e.theme.text})),hv=Ht(rv||(rv=$t(["\n .sub-menu-amm {\n .ant-menu-sub {\n max-width: 350px;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n }\n\n li.ant-menu-item {\n width: 42%;\n margin: 5px 10px !important;\n }\n }\n"]))),gv=_c;gv.Header=wc,gv.Footer=Sc,gv.Content=Ac,gv.Sider=Dc;var vv=gv,mv=g.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,u=e.loadingIcon,c=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,v=an(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),m=w(Mr(!1,{value:a,defaultValue:s}),2),y=m[0],x=m[1];function b(e,t){var n=y;return l||(x(n=e),null===p||void 0===p||p(n,t)),n}var S=ln()(i,o,(tn(n={},"".concat(i,"-checked"),y),tn(n,"".concat(i,"-disabled"),l),n));return g.createElement("button",Object.assign({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:function(e){e.which===Hi.LEFT?b(!1,e):e.which===Hi.RIGHT&&b(!0,e),null===h||void 0===h||h(e)},onClick:function(e){var t=b(!y,e);null===f||void 0===f||f(t,e)}}),u,g.createElement("span",{className:"".concat(i,"-inner")},y?c:d))}));mv.displayName="Switch";var yv,xv=mv,bv=0,wv={};function Sv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=bv++,r=t;function i(){(r-=1)<=0?(e(),delete wv[n]):wv[n]=Ei(i)}return wv[n]=Ei(i),n}function Av(e){return!e||null===e.offsetParent||e.hidden}function _v(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}Sv.cancel=function(e){void 0!==e&&(Ei.cancel(wv[e]),delete wv[e])},Sv.ids=wv;var Cv=function(e){yr(n,e);var t=_r(n);function n(){var e;return hr(this,n),(e=t.apply(this,arguments)).containerRef=g.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,i,o=e.props,a=o.insertExtraNode;if(!(o.disabled||!t||Av(t)||t.className.indexOf("-leave")>=0)){e.extraNode=document.createElement("div");var s=Sr(e).extraNode,l=e.context.getPrefixCls;s.className="".concat(l(""),"-click-animating-node");var u=e.getAttributeName();if(t.setAttribute(u,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&_v(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var c=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,d=c instanceof Document?c.body:null!==(i=c.firstChild)&&void 0!==i?i:c;yv=Jl("\n [".concat(l(""),"-click-animating-without-extra-node='true']::after, .").concat(l(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:d})}a&&t.appendChild(s),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!Av(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),Sv.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=Sv((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!g.isValidElement(r))return r;var i=e.containerRef;return Br(r)&&(i=Lr(r.ref,e.containerRef)),gu(r,{ref:i})},e}return vr(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),yv&&(yv.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return g.createElement(Uu,null,this.renderWave)}}]),n}(g.Component);Cv.contextType=Wu;var kv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&e.indexOf(t,n)===n}(g,um)}return!1}function sm(e){return Object.keys(e).filter(lm,e)}function lm(e){return void 0!==this[e]}var um="{ [native code] }";function cm(e,t){var n=im.get(e);if(n){if(n.has(t))return!0}else im.set(e,n=new Set);return n.add(t),!1}var dm="Invariant Violation",fm=Object.setPrototypeOf,pm=void 0===fm?function(e,t){return e.__proto__=t,e}:fm,hm=function(e){function t(n){void 0===n&&(n=dm);var r=e.call(this,"number"===typeof n?dm+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=dm,pm(r,t.prototype),r}return Kv(t,e),t}(Error);function gm(e,t){if(!e)throw new hm(t)}var vm=["debug","log","warn","error","silent"],mm=vm.indexOf("log");function ym(e){return function(){if(vm.indexOf(e)>=mm){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=ym("debug"),e.log=ym("log"),e.warn=ym("warn"),e.error=ym("error")}(gm||(gm={}));function xm(e){try{return e()}catch(em){}}var bm=xm((function(){return globalThis}))||xm((function(){return window}))||xm((function(){return self}))||xm((function(){return global}))||xm((function(){return xm.constructor("return this")()})),wm="__",Sm=[wm,wm].join("DEV");var Am=function(){try{return Boolean(__DEV__)}catch(em){return Object.defineProperty(bm,Sm,{value:"production"!==xm((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),bm[Sm]}}();function _m(e){try{return e()}catch(Ee){}}var Cm=_m((function(){return globalThis}))||_m((function(){return window}))||_m((function(){return self}))||_m((function(){return n.g}))||_m((function(){return _m.constructor("return this")()})),km=!1;function Em(){km&&(delete Cm.process,km=!1)}function Mm(e,t){if(!Boolean(e))throw new Error(t)}!Cm||_m((function(){return"production"}))||_m((function(){return process}))||(Object.defineProperty(Cm,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),km=!0);function Im(e){return Tm(e,[])}function Tm(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat(kr(t),[e]);if(function(e){return"function"===typeof e.toJSON}(e)){var r=e.toJSON();if(r!==e)return"string"===typeof r?r:Tm(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(e){var n=w(e,2);return n[0]+": "+Tm(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var Dm=function(e,t){return e instanceof t},Nm=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};hr(this,t),"string"===typeof e||Mm(!1,"Body must be a string. Received: ".concat(Im(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Mm(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Mm(!1,"column in locationOffset is 1-indexed and must be positive.")}return vr(t,[{key:Symbol.toStringTag,get:function(){return"Source"}}]),t}();function Om(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Pm(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 Pm(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(fV){return n.error(fV)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Vm]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Hm(t,Vm);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Um(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(jm("iterator")&&(r=Hm(t,Fm)))return new n((function(e){Ym((function(){if(!e.closed){for(var n,i=Om(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){Ym((function(){if(!e.closed){for(var n=0;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(cy(i),")")}return n.connection.key}var o=e;if(t){var a=cy(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===ly.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(cy(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=cy;return cy=e,t}}),cy=function(e){return JSON.stringify(e,dy)};function dy(e,t){return ty(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function fy(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return sy(n,r,i,t)})),n}return null}function py(e){return e.alias?e.alias.value:e.name.value}function hy(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var Ny,Oy,Py=function(e){function t(e,n,r){hr(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return vr(t,[{key:Symbol.toStringTag,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(),Ry=function(e){function t(e,n,r,i,o,a){hr(this,t),this.kind=e,this.start=n,this.end=r,this.line=i,this.column=o,this.value=a,this.prev=null,this.next=null}return vr(t,[{key:Symbol.toStringTag,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(),Ly={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},By=new Set(Object.keys(Ly));function jy(e){var t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&By.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Ny||(Ny={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Oy||(Oy={}));var zy=Object.freeze({});function Fy(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ly,r=new Map,i=0,o=Object.values(Oy);i=48&&e<=57}function Yy(e){return e>=97&&e<=122||e>=65&&e<=90}function Ky(e){return Yy(e)||95===e}function qy(e){return Yy(e)||Qy(e)||95===e}function Jy(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,i=-1,o=0;o80&&(s=a+ox("(\n",ax(rx(r,"\n")),"\n)")),rx([s,rx(i," "),o]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+ox(" ",rx(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return rx(["...",ox("on ",t),rx(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(ox("(",rx(r,", "),")")," ")+"on ".concat(n," ").concat(ox("",rx(i," ")," "))+o}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((function(e){return 0===e.length||Uy(e.charCodeAt(0))})),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!==t&&void 0!==t&&t.minimize)&&(!i||e.length>70||u||o||a),d="",f=i&&Uy(e.charCodeAt(0));return(c&&!f||o)&&(d+="\n"),d+=n,(c||u)&&(d+="\n"),'"""'+d+'"""'}(t):'"'.concat(t.replace(Xy,$y),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+rx(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+rx(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+ox("(",rx(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return ox("",t,"\n")+rx(["schema",rx(n," "),ix(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return ox("",t,"\n")+rx(["scalar",n,rx(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return ox("",t,"\n")+rx(["type",n,ox("implements ",rx(r," & ")),rx(i," "),ix(o)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,o=e.directives;return ox("",t,"\n")+n+(sx(r)?ox("(\n",ax(rx(r,"\n")),"\n)"):ox("(",rx(r,", "),")"))+": "+i+ox(" ",rx(o," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,o=e.directives;return ox("",t,"\n")+rx([n+": "+r,ox("= ",i),rx(o," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return ox("",t,"\n")+rx(["interface",n,ox("implements ",rx(r," & ")),rx(i," "),ix(o)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return ox("",t,"\n")+rx(["union",n,rx(r," "),ox("= ",rx(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return ox("",t,"\n")+rx(["enum",n,rx(r," "),ix(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return ox("",t,"\n")+rx([n,rx(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return ox("",t,"\n")+rx(["input",n,rx(r," "),ix(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,o=e.locations;return ox("",t,"\n")+"directive @"+n+(sx(r)?ox("(\n",ax(rx(r,"\n")),"\n)"):ox("(",rx(r,", "),")"))+(i?" repeatable":"")+" on "+rx(o," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return rx(["extend schema",rx(t," "),ix(n)]," ")}},ScalarTypeExtension:{leave:function(e){return rx(["extend scalar",e.name,rx(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return rx(["extend type",t,ox("implements ",rx(n," & ")),rx(r," "),ix(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return rx(["extend interface",t,ox("implements ",rx(n," & ")),rx(r," "),ix(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return rx(["extend union",t,rx(n," "),ox("= ",rx(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return rx(["extend enum",t,rx(n," "),ix(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return rx(["extend input",t,rx(n," "),ix(r)]," ")}}};function rx(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function ix(e){return ox("{\n",ax(rx(e,"\n")),"\n}")}function ox(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function ax(e){return ox(" ",e.replace(/\n/g,"\n "))}function sx(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}var lx={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ux=function(e,t){return t(e)};function cx(e,t){for(var n=[],r=2;r=300&&Hy(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||Wy.call(t,"data")||Wy.call(t,"errors")||Hy(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))},gx=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,hx(t).request)||this;return n.options=t,n}return Kv(t,e),t}(My),vx=function(){return Object.create(null)},mx=Array.prototype,yx=mx.forEach,xx=mx.slice,bx=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=vx),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t-1}))}function Ex(e){return e&&kx(["client"],e)&&kx(["export"],e)}var Mx=Object.prototype.hasOwnProperty;function Ix(){for(var e=[],t=0;t1)for(var r=new Nx,i=1;i0||!1}function qx(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Jx={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zx(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Zx(t[e.name.value],t)}))}function Xx(e){return Zx(yy(e)||function(e){__DEV__?gm("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):gm("Document"===e.kind,48),__DEV__?gm(e.definitions.length<=1,"Fragment must have exactly one definition."):gm(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?gm("FragmentDefinition"===t.kind,"Must be a fragment definition."):gm("FragmentDefinition"===t.kind,50),t}(e),ry(by(e)))?null:e}function $x(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function eb(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Xx(Fy(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some($x(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&rb(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if($x(e)(t))return null}}}));return a&&qx(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Xx(Fy(t,{OperationDefinition:{enter:function(t){return qv(qv({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&qx(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Xx(Fy(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var tb=Object.assign((function(e){return Fy(my(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return gy(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(gy(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return qv(qv({},e),{selections:$v($v([],r,!0),[Jx],!1)})}}}}})}),{added:function(e){return e===Jx}}),nb={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&gm.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function rb(e){var t=[];return e.selections.forEach((function(e){(gy(e)||vy(e))&&e.selectionSet?rb(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function ib(e){return"query"===Sy(e).operation?e:Fy(e,{OperationDefinition:{enter:function(e){return qv(qv({},e),{operation:"query"})}}})}var ob=new Map;function ab(e){var t=ob.get(e)||1;return ob.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function sb(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function lb(e){function t(t){Object.defineProperty(e,t,{value:ey})}return _x&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ub(e){return e&&"function"===typeof e.then}var cb=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],sb(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),sb(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?ub(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),sb(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new ey(t)]),ub(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Kv(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(ey);function db(e){return Array.isArray(e)&&e.length>0}lb(cb);var fb,pb=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,o=n.networkError,a=n.errorMessage,s=n.extraInfo,l=e.call(this,a)||this;return l.graphQLErrors=r||[],l.clientErrors=i||[],l.networkError=o||null,l.message=a||function(e){var t="";return(db(e.graphQLErrors)||db(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")})),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")}(l),l.extraInfo=s,l.__proto__=t.prototype,l}return Kv(t,e),t}(Error);function hb(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(fb||(fb={}));var gb=Object.prototype.toString;function vb(e){return mb(e)}function mb(e,t){switch(gb.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=mb(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=mb(e[n],t)})),r;default:return e}}var yb=Object.assign,xb=Object.hasOwnProperty,bb=!1,wb=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=Sb)}catch(t){}var r=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=yy(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return Kv(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||fb.ready,r=qv(qv({},t),{loading:hb(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),om(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==fb.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=fb.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Ab(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!om(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||om(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&xb.call(e,"variables")){var i=wy(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&gm.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!om(this.options.variables,e)&&(n.variables=this.options.variables=qv(qv({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,fb.refetch)},t.prototype.fetchMore=function(e){var t=this,n=qv(qv({},e.query?e:qv(qv(qv({},this.options),e),{variables:qv(qv({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=fb.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,fb.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!bb&&(__DEV__&&gm.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),bb=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&gm.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return om(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},fb.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?gm(n,"Attempted to start a polling query without a polling interval."):gm(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(hb(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},fb.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=qv(qv({},this.last),{result:this.queryManager.assumeImmutableResults?e:vb(e),variables:t}),db(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===fb.refetch||t===fb.fetchMore||t===fb.poll,i=this.options.variables,o=r?Ty(this.options,e):yb(this.options,Ty(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!om(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=fb.setVariables)));var a=o.variables&&qv({},o.variables),s=this.fetch(o,t),l={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=l),s.addObserver(l),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),sb(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=qv(qv({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:fb.error,loading:!1});this.updateLastResult(n,t),sb(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(ey);function Sb(e){__DEV__&&gm.error("Unhandled error",e.message,e.stack)}function Ab(e){__DEV__&&e&&__DEV__&&gm.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}lb(wb);var _b=null,Cb={},kb=1,Eb="@wry/context:Slot",Mb=Array,Ib=Mb[Eb]||function(){var e=function(){function e(){this.id=["slot",kb++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=_b;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Cb)break;return e!==_b&&(_b.slots[this.id]=t),!0}return _b&&(_b.slots[this.id]=Cb),!1},e.prototype.getValue=function(){if(this.hasValue())return _b.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=_b;_b={parent:a,slots:o};try{return t.apply(r,n)}finally{_b=a}},e.bind=function(e){var t=_b;return function(){var n=_b;try{return _b=t,e.apply(this,arguments)}finally{_b=n}}},e.noContext=function(e,t,n){if(!_b)return e.apply(n,t);var r=_b;try{return _b=null,e.apply(n,t)}finally{_b=r}},e}();try{Object.defineProperty(Mb,Eb,{value:Mb[Eb]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();Ib.bind,Ib.noContext;function Tb(){}var Db,Nb=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Tb),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Ob=new Ib,Pb=Object.prototype.hasOwnProperty,Rb=void 0===(Db=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Db;function Lb(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var Bb=[];function jb(e,t){if(!e)throw new Error(t||"assertion failure")}function zb(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Fb=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Hb(this))return Vb(this),this.value[0]},e.prototype.recompute=function(e){return jb(!this.recomputing,"already recomputing"),Vb(this),Hb(this)?function(e,t){Jb(e),Ob.withValue(e,Gb,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{Lb(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(fV){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,Hb(e))return;Ub(e)}(e);return zb(e.value)}(this,e):zb(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Wb(this),Lb(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Jb(this),Qb(this,(function(t,n){t.setDirty(),Zb(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Bb.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Rb(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Bb.push(this.deps),this.deps=null)},e.count=0,e}();function Vb(e){var t=Ob.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Hb(e)?Yb(t,e):Kb(t,e),t}function Gb(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(fV){e.value[1]=fV}e.recomputing=!1}function Hb(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Wb(e){Qb(e,Yb)}function Ub(e){Qb(e,Kb)}function Qb(e,t){var n=e.parents.size;if(n)for(var r=Rb(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),qb(e,t),Hb(e)||Ub(e)}function qb(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Bb.length<100&&Bb.push(n),e.dirtyChildren=null))}function Jb(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Zb(e,n)})),e.forgetDeps(),jb(null===e.dirtyChildren)}function Zb(e,t){t.parents.delete(e),e.childValues.delete(t),qb(e,t)}var Xb={setDirty:!0,dispose:!0,forget:!0};function $b(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Ob.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(Lb(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Pb.call(Xb,n)?n:"setDirty";Rb(r).forEach((function(e){return e[i]()})),t.delete(e),Lb(r)}},r}function ew(){var e=new bx("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}ew();var tw=new Set;function nw(e,t){void 0===t&&(t=Object.create(null));var n=new Nb(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||ew(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new Fb(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),tw.add(n),Ob.hasValue()||(tw.forEach((function(e){return e.clean()})),tw.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var rw=new Ib,iw=new WeakMap;function ow(e){var t=iw.get(e);return t||iw.set(e,t={vars:new Set,dep:$b()}),t}function aw(e){ow(e).vars.forEach((function(t){return t.forgetCache(e)}))}function sw(e){var t=new Set,n=new Set,r=function r(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){ow(e).dep.dirty(r),lw(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=rw.getValue();s&&(i(s),ow(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),ow(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function lw(e){e.broadcastWatches&&e.broadcastWatches()}var uw=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Ix(t.resolvers,e)})):this.resolvers=Ix(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Zv(this,void 0,void 0,(function(){return Xv(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return qv(qv({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return kx(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){my(e);var t=eb([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Fy(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return gy(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return qv(qv({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Zv(this,void 0,void 0,(function(){return Xv(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return qv(qv({},t),e.exportedVariables)}))]:[2,qv({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Fy(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return zy}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:ib(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Zv(this,void 0,void 0,(function(){var a,s,l,u,c,d,f,p,h;return Xv(this,(function(g){return a=Sy(e),s=by(e),l=ry(s),u=a.operation,c=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",f=(d=this).cache,p=d.client,h={fragmentMap:l,context:qv(qv({},n),{cache:f,client:p}),variables:r,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Zv(this,void 0,void 0,(function(){var r,i,o,a,s,l=this;return Xv(this,(function(u){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Zv(l,void 0,void 0,(function(){var s,l;return Xv(this,(function(u){return Cx(e,o)?gy(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&a.push(((n={})[py(e)]=t,n))}))]:(vy(e)?s=e:(s=r[e.name.value],__DEV__?gm(s,"No fragment named ".concat(e.name.value)):gm(s,9)),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Tx(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Zv(this,void 0,void 0,(function(){var r,i,o,a,s,l,u,c,d,f=this;return Xv(this,(function(p){return r=n.variables,i=e.name.value,o=py(e),a=i!==o,s=t[o]||t[i],l=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[u])&&(d=c[a?i:o])&&(l=Promise.resolve(rw.withValue(this.cache,d,[t,fy(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),cw=new(Sx?WeakMap:Map);function dw(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return cw.set(e,(cw.get(e)+1)%1e15),n.apply(this,arguments)})}function fw(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var pw=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;cw.has(n)||(cw.set(n,0),dw(n,"evict"),dw(n,"modify"),dw(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||fb.loading;return this.variables&&this.networkStatus!==fb.loading&&!om(this.variables,e.variables)&&(t=fb.setVariables),om(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){fw(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&om(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||om(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;fw(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(hb(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=qv(qv({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&om(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===cw.get(this.cache)&&om(t,n.variables)&&om(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=db(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(hw(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:cw.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=fb.ready},e.prototype.markError=function(e){return this.networkStatus=fb.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function hw(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Kx(e);return!r&&n&&e.data&&(r=!0),r}var gw=Object.prototype.hasOwnProperty,vw=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,l=e.clientAwareness,u=void 0===l?{}:l,c=e.localState,d=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Sx?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=u,this.localState=c||new uw({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!d,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new hm("QueryManager stopped while query was in flight"):new hm(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,l=void 0!==s&&s,u=e.update,c=e.onQueryUpdated,d=e.errorPolicy,f=void 0===d?"none":d,p=e.fetchPolicy,h=void 0===p?"network-only":p,g=e.keepRootFields,v=e.context;return Zv(this,void 0,void 0,(function(){var e,o,s;return Xv(this,(function(d){switch(d.label){case 0:return __DEV__?gm(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):gm(t,12),__DEV__?gm("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):gm("network-only"===h||"no-cache"===h,13),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,v)]:[3,2];case 1:n=d.sent(),d.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:v,updateQueries:i,update:u,keepRootFields:g}),this.broadcastQueries(),s=this,[2,new Promise((function(d,p){return Yx(s.getObservableFromLink(t,qv(qv({},v),{optimisticResponse:r}),n,!1),(function(d){if(Kx(d)&&"none"===f)throw new pb({graphQLErrors:d.errors});o&&(o.loading=!1,o.error=null);var p=qv({},d);return"function"===typeof a&&(a=a(p)),"ignore"===f&&Kx(p)&&delete p.errors,s.markMutationResult({mutationId:e,result:p,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:v,update:u,updateQueries:i,awaitRefetchQueries:l,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:c,keepRootFields:g})})).subscribe({next:function(e){s.broadcastQueries(),d(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),p(t instanceof pb?t:new pb({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&hw(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,l=s&&s.queryName;if(l&&gw.call(a,l)){var u=a[l],c=n.queries.get(o),d=c.document,f=c.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var g=u(h,{mutationResult:r,queryName:d&&xy(d)||void 0,queryVariables:f});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=qv(qv({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(qv(qv({},t),{result:{data:r}}),e)}catch(i){__DEV__&&gm.error(i)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),eb([nb],my(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Ex(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Ay(yy(r)),asQuery:qv(qv({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?qv(qv({},e),{operation:"query"}):e}))})},l=function(e){e&&!n.has(e)&&n.set(e,s)};l(e),l(r),l(o),l(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return qv(qv({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=qv(qv({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new pw(this),n=new wb({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?gm(e.query,"query option is required. You must specify your GraphQL document in the query option."):gm(e.query,14),__DEV__?gm("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):gm("Document"===e.query.kind,15),__DEV__?gm(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):gm(!e.returnPartialData,16),__DEV__?gm(!e.pollInterval,"pollInterval option only supported on watchQuery."):gm(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new hm("Store reset while query was in flight (not completed in link chain)"):new hm(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=fb.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"===typeof e?r.set(e,!1):ty(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):ty(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=ab("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new wb({queryManager:t,queryInfo:i,options:qv(qv({},e),{fetchPolicy:"network-only"})});gm(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&gm.warn("Unknown query ".concat("string"===typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var l=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(hw(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Kx(o))throw new pb({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,s).then(l);return new ey((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,u=this.link,c={query:s,variables:n,operationName:xy(s)||void 0,context:this.prepareContext(qv(qv({},t),{forceFetch:!r}))};if(t=c.context,r){var d=l.get(s)||new Map;l.set(s,d);var f=Ux(n);if(!(o=d.get(f))){var p=new cb([Iy(u,c)]);d.set(f,o=p),p.cleanup((function(){d.delete(f)&&d.size<1&&l.delete(s)}))}}else o=new cb([Iy(u,c)])}else o=new cb([ey.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=Yx(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return Yx(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=db(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new pb({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||fb.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new pb({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=fb.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,l=void 0===s?"cache-first":s,u=t.errorPolicy,c=void 0===u?"none":u,d=t.returnPartialData,f=void 0!==d&&d,p=t.notifyOnNetworkStatusChange,h=void 0!==p&&p,g=t.context,v=void 0===g?{}:g,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:c,returnPartialData:f,notifyOnNetworkStatusChange:h,context:v}),y=function(e){return m.variables=e,r.fetchQueryByPolicy(a,m,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return x.cancel(e)}))}));var x=new cb(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(y):y(m.variables));return x.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"===typeof r?r.call(e,n):r)}(t)})),x},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?ab("refetchQueries"):void 0:a,l=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var c=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof pw&&e.watcher.observableQuery;if(r){if(l){u.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==l&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=l(i,a,o)}l&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,c=t.context,d=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var p=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||fb.loading);var a=t.result;!__DEV__||u||om(a,{})||Ab(t.missing);var s=function(e){return ey.of(qv({data:e,loading:hb(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:c,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},g="no-cache"===a?0:n===fb.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,g,{variables:o,context:c,fetchPolicy:a,errorPolicy:l})},m=d&&"number"===typeof f&&f!==n&&hb(n);switch(a){default:case"cache-first":return(y=p()).complete?[h(y,e.markReady())]:u||m?[h(y),v()]:[v()];case"cache-and-network":var y;return(y=p()).complete||u||m?[h(y),v()]:[v()];case"cache-only":return[h(p(),e.markReady())];case"network-only":return m?[h(p()),v()]:[v()];case"no-cache":return m?[h(e.getDiff()),v()]:[v()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new pw(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return qv(qv({},t),{clientAwareness:this.clientAwareness})},e}(),mw=!1;function yw(e,t){return Ty(e,t,t.variables&&{variables:qv(qv({},e.variables),t.variables)})}var xw,bw=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,l=e.ssrForceFetchDelay,u=void 0===l?0:l,c=e.connectToDevTools,d=void 0===c?"object"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,f=e.queryDeduplication,p=void 0===f||f,h=e.defaultOptions,g=e.assumeImmutableResults,v=void 0!==g&&g,m=e.resolvers,y=e.typeDefs,x=e.fragmentMatcher,b=e.name,w=e.version,S=e.link;if(S||(S=n?new gx({uri:n,credentials:r,headers:i}):My.empty()),!o)throw __DEV__?new hm("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new hm(7);if(this.link=S,this.cache=o,this.disableNetworkFetches=s||u>0,this.queryDeduplication=p,this.defaultOptions=h||{},this.typeDefs=y,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),d&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),!mw&&__DEV__&&(mw=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var A=window.navigator,_=A&&A.userAgent,C=void 0;"string"===typeof _&&(_.indexOf("Chrome/")>-1?C="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":_.indexOf("Firefox/")>-1&&(C="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),C&&__DEV__&&gm.log("Download the Apollo DevTools for a better development experience: "+C)}this.version="3.5.10",this.localState=new uw({cache:o,client:this,resolvers:m,fragmentMatcher:x}),this.queryManager=new vw({cache:this.cache,link:this.link,queryDeduplication:p,ssrMode:s,clientAwareness:{name:b,version:w},localState:this.localState,assumeImmutableResults:v,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=yw(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=qv(qv({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=yw(this.defaultOptions.query,e)),__DEV__?gm("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):gm("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=qv(qv({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=yw(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Iy(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&gm.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),ww=_x?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Sw(){var e=g.createContext[ww];return e||(Object.defineProperty(g.createContext,ww,{value:e=g.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(xw||(xw={}));var Aw=new Map;function _w(e){var t;switch(e){case xw.Query:t="Query";break;case xw.Mutation:t="Mutation";break;case xw.Subscription:t="Subscription"}return t}function Cw(e,t){var n=function(e){var t,n,r=Aw.get(e);if(r)return r;__DEV__?gm(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):gm(!!e&&!!e.kind,30);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));__DEV__?gm(!i.length||o.length||a.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):gm(!i.length||o.length||a.length||s.length,31),__DEV__?gm(o.length+a.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(o.length," queries, ").concat(s.length," ")+"subscriptions and ".concat(a.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):gm(o.length+a.length+s.length<=1,32),n=o.length?xw.Query:xw.Mutation,o.length||a.length||(n=xw.Subscription);var l=o.length?o:a.length?a:s;__DEV__?gm(1===l.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(l.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):gm(1===l.length,33);var u=l[0];t=u.variableDefinitions||[];var c={name:u.name&&"Name"===u.name.kind?u.name.value:"data",type:n,variables:t};return Aw.set(e,c),c}(e),r=_w(t),i=_w(n.type);__DEV__?gm(n.type===t,"Running a ".concat(r," requires a graphql ")+"".concat(r,", but a ").concat(i," was used instead.")):gm(n.type===t,34)}function kw(e,t){var n,r=(0,g.useContext)(Sw()),i=function(e){var t=(0,g.useContext)(Sw()),n=e||t.client;return __DEV__?gm(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.'):gm(!!n,29),n}(null===t||void 0===t?void 0:t.client),o=i.defaultOptions.watchQuery;Cw(e,xw.Query);var a,s=(0,g.useState)((function(){var n=Ew(e,t,o),a=null;return r.renderPromises&&(a=r.renderPromises.getSSRObservable(n)),a||(a=i.watchQuery(n),r.renderPromises&&r.renderPromises.registerSSRObservable(a,n)),r.renderPromises&&!1!==(null===t||void 0===t?void 0:t.ssr)&&!(null===t||void 0===t?void 0:t.skip)&&a.getCurrentResult().loading&&r.renderPromises.addQueryPromise({getOptions:function(){return Ew(e,t,o)},fetchData:function(){return new Promise((function(e){var t=a.subscribe({next:function(n){n.loading||(e(),t.unsubscribe())},error:function(){e(),t.unsubscribe()},complete:function(){e()}})}))}},(function(){return null})),a})),l=s[0],u=s[1],c=(0,g.useState)((function(){var e,n,r=l.getCurrentResult();return!r.loading&&t&&(r.error?null===(e=t.onError)||void 0===e||e.call(t,r.error):r.data&&(null===(n=t.onCompleted)||void 0===n||n.call(t,r.data))),r})),d=c[0],f=c[1],p=(0,g.useRef)({client:i,query:e,options:t,result:d,previousData:void 0,watchQueryOptions:Ew(e,t,o)});(0,g.useEffect)((function(){var n,r,a,s=Ew(e,t,o);if(p.current.client===i&&om(p.current.query,e))om(p.current.watchQueryOptions,s)||(l.setOptions(s).catch((function(){})),a=l.getCurrentResult(),p.current.watchQueryOptions=s);else{var c=i.watchQuery(s);u(c),a=c.getCurrentResult()}if(a){var d=p.current.result;d.data&&(p.current.previousData=d.data),f(p.current.result=a),!a.loading&&t&&(a.error?null===(n=t.onError)||void 0===n||n.call(t,a.error):a.data&&(null===(r=t.onCompleted)||void 0===r||r.call(t,a.data)))}Object.assign(p.current,{client:i,query:e})}),[l,i,e,t]),(0,g.useEffect)((function(){if(!r.renderPromises){var e=l.subscribe(t,(function n(r){var i,o,a=l.last;e.unsubscribe();try{l.resetLastResults(),e=l.subscribe(t,n)}finally{l.last=a}if(!r.hasOwnProperty("graphQLErrors"))throw r;var s=p.current.result;(s&&s.loading||!om(r,s.error))&&(f(p.current.result={data:s.data,error:r,loading:!1,networkStatus:fb.error}),null===(o=null===(i=p.current.options)||void 0===i?void 0:i.onError)||void 0===o||o.call(i,r))}));return function(){return e.unsubscribe()}}function t(){var e,t,n=p.current.result,r=l.getCurrentResult();n&&n.loading===r.loading&&n.networkStatus===r.networkStatus&&om(n.data,r.data)||(n.data&&(p.current.previousData=n.data),f(p.current.result=r),r.loading||null===(t=null===(e=p.current.options)||void 0===e?void 0:e.onCompleted)||void 0===t||t.call(e,r.data))}}),[l,r.renderPromises,i.disableNetworkFetches]),a=(n=d).partial,d=Jv(n,["partial"]),!a||!(null===t||void 0===t?void 0:t.partialRefetch)||d.loading||d.data&&0!==Object.keys(d.data).length||"cache-only"===l.options.fetchPolicy||(d=qv(qv({},d),{loading:!0,networkStatus:fb.refetch}),l.refetch()),r.renderPromises&&!1!==(null===t||void 0===t?void 0:t.ssr)&&!(null===t||void 0===t?void 0:t.skip)&&d.loading&&l.setOptions(Ew(e,t,o)).catch((function(){})),Object.assign(p.current,{options:t}),(r.renderPromises||i.disableNetworkFetches)&&!1===(null===t||void 0===t?void 0:t.ssr)?d=p.current.result={loading:!0,data:void 0,error:void 0,networkStatus:fb.loading}:((null===t||void 0===t?void 0:t.skip)||"standby"===(null===t||void 0===t?void 0:t.fetchPolicy))&&(d={loading:!1,data:void 0,error:void 0,networkStatus:fb.ready}),d.errors&&d.errors.length&&(d=qv(qv({},d),{error:d.error||new pb({graphQLErrors:d.errors})}));var h=(0,g.useMemo)((function(){return{refetch:l.refetch.bind(l),fetchMore:l.fetchMore.bind(l),updateQuery:l.updateQuery.bind(l),startPolling:l.startPolling.bind(l),stopPolling:l.stopPolling.bind(l),subscribeToMore:l.subscribeToMore.bind(l)}}),[l]);return qv(qv(qv({},h),{variables:Ew(e,t,o).variables,client:i,called:!0,previousData:p.current.previousData}),d)}function Ew(e,t,n){var r;void 0===t&&(t={});var i=t.skip,o=(t.ssr,t.onCompleted,t.onError,t.displayName,Jv(t,["skip","ssr","onCompleted","onError","displayName"])),a=qv({query:e},o);return n&&(a=yw(n,a)),i?a.fetchPolicy="standby":(!(null===(r=a.context)||void 0===r?void 0:r.renderPromises)||"network-only"!==a.fetchPolicy&&"cache-and-network"!==a.fetchPolicy)&&a.fetchPolicy||(a.fetchPolicy="cache-first"),a.variables||(a.variables={}),a}function Mw(e,t,n){return Mw=br()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&mr(i,n.prototype),i},Mw.apply(null,arguments)}function Iw(e){var t="function"===typeof Map?new Map:void 0;return Iw=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Mw(e,arguments,xr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),mr(r,e)},Iw(e)}function Tw(e){return"object"==typeof e&&null!==e}function Dw(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var Nw=/\r\n|[\n\r]/g;function Ow(e,t){var n,r=0,i=1,o=Dy(e.body.matchAll(Nw));try{for(o.s();!(n=o.n()).done;){var a=n.value;if("number"===typeof a.index||Dw(!1),a.index>=t)break;r=a.index+a[0].length,i+=1}}catch(s){o.e(s)}finally{o.f()}return{line:i,column:t+1-r}}function Pw(e){return Rw(e.source,Ow(e.source,e.start))}function Rw(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u="".concat(e.name,":").concat(a,":").concat(l,"\n"),c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){for(var f=Math.floor(l/80),p=l%80,h=[],g=0;g1?s-1:0),u=1;u0&&(e.extensions=this.extensions),e}}]),r}(Iw(Error),Symbol.toStringTag);function Vw(e){return void 0===e||0===e.length?void 0:e}function Gw(e,t,n){return new Fw("Syntax Error: ".concat(n),void 0,e,[t])}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(jw||(jw={})),function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(zw||(zw={}));var Hw=function(e){function t(e){hr(this,t);var n=new Ry(zw.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return vr(t,[{key:Symbol.toStringTag,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==zw.EOF)do{if(e.next)e=e.next;else{var t=Jw(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===zw.COMMENT);return e}}]),t}();function Ww(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Uw(e,t){return Qw(e.charCodeAt(t))&&Yw(e.charCodeAt(t+1))}function Qw(e){return e>=55296&&e<=56319}function Yw(e){return e>=56320&&e<=57343}function Kw(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return zw.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function qw(e,t,n,r,i){var o=e.line,a=1+n-e.lineStart;return new Ry(t,n,r,o,a,i)}function Jw(e,t){for(var n=e.source.body,r=n.length,i=t;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function oS(e,t){var n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Gw(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function aS(e,t){for(var n=e.source.body,r=n.length,i=e.lineStart,o=t+3,a=o,s="",l=[];o0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(zw.COLON),this.node(t,{kind:Oy.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(zw.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(zw.NAME)?this.node(e,{kind:Oy.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Oy.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:Oy.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Oy.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case zw.BRACKET_L:return this.parseList(e);case zw.BRACE_L:return this.parseObject(e);case zw.INT:return this._lexer.advance(),this.node(t,{kind:Oy.INT,value:t.value});case zw.FLOAT:return this._lexer.advance(),this.node(t,{kind:Oy.FLOAT,value:t.value});case zw.STRING:case zw.BLOCK_STRING:return this.parseStringLiteral();case zw.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:Oy.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Oy.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Oy.NULL});default:return this.node(t,{kind:Oy.ENUM,value:t.value})}case zw.DOLLAR:if(e){if(this.expectToken(zw.DOLLAR),this._lexer.token.kind===zw.NAME){var n=this._lexer.token.value;throw Gw(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:Oy.STRING,value:e.value,block:e.kind===zw.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:Oy.LIST,values:this.any(zw.BRACKET_L,(function(){return t.parseValueLiteral(e)}),zw.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:Oy.OBJECT,fields:this.any(zw.BRACE_L,(function(){return t.parseObjectField(e)}),zw.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(zw.COLON),this.node(t,{kind:Oy.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(zw.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(zw.AT),this.node(t,{kind:Oy.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(zw.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(zw.BRACKET_R),e=this.node(t,{kind:Oy.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(zw.BANG)?this.node(t,{kind:Oy.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:Oy.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(zw.STRING)||this.peek(zw.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(zw.BRACE_L,this.parseOperationTypeDefinition,zw.BRACE_R);return this.node(e,{kind:Oy.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(zw.COLON);var n=this.parseNamedType();return this.node(e,{kind:Oy.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:Oy.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Oy.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(zw.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(zw.BRACE_L,this.parseFieldDefinition,zw.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(zw.COLON);var i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:Oy.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(zw.PAREN_L,this.parseInputValueDef,zw.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(zw.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(zw.EQUALS)&&(r=this.parseConstValueLiteral());var o=this.parseConstDirectives();return this.node(e,{kind:Oy.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Oy.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:Oy.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(zw.EQUALS)?this.delimitedMany(zw.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Oy.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(zw.BRACE_L,this.parseEnumValueDefinition,zw.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Oy.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Gw(this._lexer.source,this._lexer.token.start,"".concat(uS(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:Oy.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(zw.BRACE_L,this.parseInputValueDef,zw.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===zw.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(zw.BRACE_L,this.parseOperationTypeDefinition,zw.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Oy.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:Oy.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Oy.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Oy.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Oy.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Oy.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Oy.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(zw.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return this.node(e,{kind:Oy.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(zw.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(jw,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new Py(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Gw(this._lexer.source,t.start,"Expected ".concat(cS(e),", found ").concat(uS(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==zw.NAME||t.value!==e)throw Gw(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(uS(t),"."));this._lexer.advance()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===zw.NAME&&t.value===e&&(this._lexer.advance(),!0)}},{key:"unexpected",value:function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return Gw(this._lexer.source,t.start,"Unexpected ".concat(uS(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}]),e}();function uS(e){var t=e.value;return cS(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function cS(e){return function(e){return e===zw.BANG||e===zw.DOLLAR||e===zw.AMP||e===zw.PAREN_L||e===zw.PAREN_R||e===zw.SPREAD||e===zw.COLON||e===zw.EQUALS||e===zw.AT||e===zw.BRACKET_L||e===zw.BRACKET_R||e===zw.BRACE_L||e===zw.PIPE||e===zw.BRACE_R}(e)?'"'.concat(e,'"'):e}var dS=new Map,fS=new Map,pS=!0,hS=!1;function gS(e){return e.replace(/[\s,]+/g," ").trim()}function vS(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=gS((a=e.loc).source.body.substring(a.start,a.end)),o=fS.get(r);o&&!o.has(i)?pS&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||fS.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),qv(qv({},e),{definitions:n})}function mS(e){var t=gS(e);if(!dS.has(t)){var n=function(e,t){return new lS(e,t).parseDocument()}(e,{experimentalFragmentVariables:hS,allowLegacyFragmentVariables:hS});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");dS.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(vS(n)))}return dS.get(t)}function yS(e){for(var t=[],n=1;n1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:rn({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||tA(n,$S))||t.data&&tA(n,eA)||t.attr&&XS.includes(n))&&(r[n]=e[n])})),r}var rA=function(e){var t,n=e.className,r=e.customizeIcon,i=e.customizeIconProps,o=e.onMouseDown,a=e.onClick,s=e.children;return t="function"===typeof r?r(i):r,g.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:g.createElement("span",{className:ln()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},iA=function(e,t){var n,r,i=e.prefixCls,o=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,u=e.autoFocus,c=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,h=e.maxLength,v=e.onKeyDown,m=e.onMouseDown,y=e.onChange,x=e.onPaste,b=e.onCompositionStart,w=e.onCompositionEnd,S=e.open,A=e.attrs,_=a||g.createElement("input",null),C=_,k=C.ref,E=C.props,M=E.onKeyDown,I=E.onChange,T=E.onMouseDown,D=E.onCompositionStart,N=E.onCompositionEnd,O=E.style;return _=g.cloneElement(_,rn(rn(rn({type:"search"},E),{},{id:o,ref:Lr(t,k),disabled:s,tabIndex:l,autoComplete:c||"off",autoFocus:u,className:ln()("".concat(i,"-selection-search-input"),null===(n=_)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f},A),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:rn(rn({},O),{},{opacity:d?null:0}),onKeyDown:function(e){v(e),M&&M(e)},onMouseDown:function(e){m(e),T&&T(e)},onChange:function(e){y(e),I&&I(e)},onCompositionStart:function(e){b(e),D&&D(e)},onCompositionEnd:function(e){w(e),N&&N(e)},onPaste:x}))},oA=g.forwardRef(iA);oA.displayName="Input";var aA=oA;function sA(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var lA="undefined"!==typeof window&&window.document&&window.document.documentElement;var uA=function(e){e.preventDefault(),e.stopPropagation()},cA=function(e){var t,n,r=e.id,i=e.prefixCls,o=e.values,a=e.open,s=e.searchValue,l=e.inputRef,u=e.placeholder,c=e.disabled,d=e.mode,f=e.showSearch,p=e.autoFocus,h=e.autoComplete,v=e.activeDescendantId,m=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,b=e.maxTagTextLength,S=e.maxTagPlaceholder,A=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,_=e.tagRender,C=e.onToggleOpen,k=e.onRemove,E=e.onInputChange,M=e.onInputPaste,I=e.onInputKeyDown,T=e.onInputMouseDown,D=e.onInputCompositionStart,N=e.onInputCompositionEnd,O=g.useRef(null),P=w((0,g.useState)(0),2),R=P[0],L=P[1],B=w((0,g.useState)(!1),2),j=B[0],z=B[1],F="".concat(i,"-selection"),V=a||"tags"===d?s:"",G="tags"===d||f&&(a||j);function H(e,t,n,r,i){return g.createElement("span",{className:ln()("".concat(F,"-item"),tn({},"".concat(F,"-item-disabled"),n)),title:"string"===typeof e||"number"===typeof e?e.toString():void 0},g.createElement("span",{className:"".concat(F,"-item-content")},t),r&&g.createElement(rA,{className:"".concat(F,"-item-remove"),onMouseDown:uA,onClick:i,customizeIcon:y},"\xd7"))}t=function(){L(O.current.scrollWidth)},n=[V],lA?g.useLayoutEffect(t,n):g.useEffect(t,n);var W=g.createElement("div",{className:"".concat(F,"-search"),style:{width:R},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},g.createElement(aA,{ref:l,open:a,prefixCls:i,id:r,inputElement:null,disabled:c,autoFocus:p,autoComplete:h,editable:G,activeDescendantId:v,value:V,onKeyDown:I,onMouseDown:T,onChange:E,onPaste:M,onCompositionStart:D,onCompositionEnd:N,tabIndex:m,attrs:nA(e,!0)}),g.createElement("span",{ref:O,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},V,"\xa0")),U=g.createElement(Vi,{prefixCls:"".concat(F,"-overflow"),data:o,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!c&&!t,o=n;if("number"===typeof b&&("string"===typeof n||"number"===typeof n)){var s=String(o);s.length>b&&(o="".concat(s.slice(0,b),"..."))}var l=function(t){t&&t.stopPropagation(),k(e)};return"function"===typeof _?function(e,t,n,r,i){return g.createElement("span",{onMouseDown:function(e){uA(e),C(!a)}},_({label:t,value:e,disabled:n,closable:r,onClose:i}))}(r,o,t,i,l):H(n,o,t,i,l)},renderRest:function(e){var t="function"===typeof A?A(e):A;return H(t,t,!1)},suffix:W,itemKey:"key",maxCount:x});return g.createElement(g.Fragment,null,U,!o.length&&!V&&g.createElement("span",{className:"".concat(F,"-placeholder")},u))},dA=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,u=e.mode,c=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,h=e.showSearch,v=e.searchValue,m=e.activeValue,y=e.maxLength,x=e.onInputKeyDown,b=e.onInputMouseDown,S=e.onInputChange,A=e.onInputPaste,_=e.onInputCompositionStart,C=e.onInputCompositionEnd,k=w(g.useState(!1),2),E=k[0],M=k[1],I="combobox"===u,T=I||h,D=d[0],N=v||"";I&&m&&!E&&(N=m),g.useEffect((function(){I&&M(!1)}),[I,m]);var O=!("combobox"!==u&&!c&&!h)&&!!N,P=!D||"string"!==typeof D.label&&"number"!==typeof D.label?void 0:D.label.toString();return g.createElement(g.Fragment,null,g.createElement("span",{className:"".concat(n,"-selection-search")},g.createElement(aA,{ref:i,prefixCls:n,id:r,open:c,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:T,activeDescendantId:l,value:N,onKeyDown:x,onMouseDown:b,onChange:function(e){M(!0),S(e)},onPaste:A,onCompositionStart:_,onCompositionEnd:C,tabIndex:p,attrs:nA(e,!0),maxLength:I?y:void 0})),!I&&D&&!O&&g.createElement("span",{className:"".concat(n,"-selection-item"),title:P},D.label),function(){if(D)return null;var e=O?{visibility:"hidden"}:void 0;return g.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},f)}())};function fA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=g.useRef(null),n=g.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return g.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var pA=function(e,t){var n=(0,g.useRef)(null),r=(0,g.useRef)(!1),i=e.prefixCls,o=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,u=e.onSearch,c=e.onSearchSubmit,d=e.onToggleOpen,f=e.onInputKeyDown,p=e.domRef;g.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var h=w(fA(0),2),v=h[0],m=h[1],y=(0,g.useRef)(null),x=function(e){!1!==u(e,!0,r.current)&&d(!0)},b={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==Hi.UP&&n!==Hi.DOWN||e.preventDefault(),f&&f(e),n!==Hi.ENTER||"tags"!==a||r.current||o||null===c||void 0===c||c(e.target.value),t=n,[Hi.ESC,Hi.SHIFT,Hi.BACKSPACE,Hi.TAB,Hi.WIN_KEY,Hi.ALT,Hi.META,Hi.WIN_KEY_RIGHT,Hi.CTRL,Hi.SEMICOLON,Hi.EQUALS,Hi.CAPS_LOCK,Hi.CONTEXT_MENU,Hi.F1,Hi.F2,Hi.F3,Hi.F4,Hi.F5,Hi.F6,Hi.F7,Hi.F8,Hi.F9,Hi.F10,Hi.F11,Hi.F12].includes(t)||d(!0)},onInputMouseDown:function(){m(!0)},onInputChange:function(e){var t=e.target.value;if(l&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");y.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&x(e.target.value)}},A="multiple"===a||"tags"===a?g.createElement(cA,S({},e,b)):g.createElement(dA,S({},e,b));return g.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=v();e.target===n.current||t||e.preventDefault(),("combobox"===a||s&&t)&&o||(o&&u("",!0,!1),d())}},A)},hA=g.forwardRef(pA);hA.displayName="Selector";var gA=hA;var vA=g.createContext(null);var mA=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],yA=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xA(e){return"tags"===e||"multiple"===e}var bA=g.forwardRef((function(e,t){var n,r,i=e.id,o=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,u=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,v=void 0===h?"Not Found":h,m=e.onClear,y=e.mode,x=e.disabled,b=e.loading,A=e.getInputElement,_=e.getRawInputElement,C=e.open,k=e.defaultOpen,E=e.onDropdownVisibleChange,M=e.activeValue,I=e.onActiveValueChange,T=e.activeDescendantId,D=e.searchValue,N=e.onSearch,O=e.onSearchSplit,P=e.tokenSeparators,R=e.allowClear,L=e.showArrow,B=e.inputIcon,j=e.clearIcon,z=e.OptionList,F=e.animation,V=e.transitionName,G=e.dropdownStyle,H=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,Q=e.dropdownAlign,Y=e.placement,K=e.getPopupContainer,q=e.showAction,J=void 0===q?[]:q,Z=e.onFocus,X=e.onBlur,$=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=an(e,mA),re=xA(y),ie=(void 0!==s?s:re)||"combobox"===y,oe=rn({},ne);yA.forEach((function(e){delete oe[e]})),null===c||void 0===c||c.forEach((function(e){delete oe[e]}));var ae=w(g.useState(!1),2),se=ae[0],le=ae[1];g.useEffect((function(){le(Eo())}),[]);var ue=g.useRef(null),ce=g.useRef(null),de=g.useRef(null),fe=g.useRef(null),pe=g.useRef(null),he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=w(g.useState(!1),2),n=t[0],r=t[1],i=g.useRef(null),o=function(){window.clearTimeout(i.current)};return g.useEffect((function(){return o}),[]),[n,function(t,n){o(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},o]}(),ge=w(he,3),ve=ge[0],me=ge[1],ye=ge[2];g.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var xe=g.useMemo((function(){var e;if("combobox"!==y)return D;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[D,y,d]),be="combobox"===y&&"function"===typeof A&&A()||null,we="function"===typeof _&&_(),Se=function(){for(var e=arguments.length,t=new Array(e),n=0;n1,s.reduce((function(t,n){return[].concat(kr(t),kr(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,P);return"combobox"!==y&&o&&(i="",null===O||void 0===O||O(o),Ie(!1),r=!1),N&&xe!==i&&N(i,{source:t?"typing":"effect"}),r};g.useEffect((function(){ke||re||"combobox"===y||De("",!1,!1)}),[ke]),g.useEffect((function(){_e&&x&&Ce(!1),x&&me(!1)}),[x]);var Ne=w(fA(),2),Oe=Ne[0],Pe=Ne[1],Re=g.useRef(!1),Le=[];g.useEffect((function(){return function(){Le.forEach((function(e){return clearTimeout(e)})),Le.splice(0,Le.length)}}),[]);var Be,je=w(g.useState(null),2),ze=je[0],Fe=je[1],Ve=w(g.useState({}),2)[1];vi((function(){if(Me){var e,t=Math.ceil(null===(e=ue.current)||void 0===e?void 0:e.offsetWidth);ze===t||Number.isNaN(t)||Fe(t)}}),[Me]),we&&(Be=function(e){Ie(e)}),function(e,t,n){var r=g.useRef(null);r.current={open:t,triggerOpen:n},g.useEffect((function(){function t(t){var n=t.target;n.shadowRoot&&t.composed&&(n=t.composedPath()[0]||n),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ue.current,null===(e=de.current)||void 0===e?void 0:e.getPopupElement()]}),Me,Ie);var Ge,He,We=g.useMemo((function(){return rn(rn({},e),{},{notFoundContent:v,open:ke,triggerOpen:Me,id:i,showSearch:ie,multiple:re,toggleOpen:Ie})}),[e,v,Me,ke,i,ie,re,Ie]),Ue=void 0!==L?L:b||!re&&"combobox"!==y;Ue&&(Ge=g.createElement(rA,{className:ln()("".concat(o,"-arrow"),tn({},"".concat(o,"-arrow-loading"),b)),customizeIcon:B,customizeIconProps:{loading:b,searchValue:xe,open:ke,focused:ve,showSearch:ie}}));!x&&R&&(d.length||xe)&&(He=g.createElement(rA,{className:"".concat(o,"-clear"),onMouseDown:function(){null===m||void 0===m||m(),f([],{type:"clear",values:d}),De("",!1,!1)},customizeIcon:j},"\xd7"));var Qe,Ye=g.createElement(z,{ref:pe}),Ke=ln()(o,a,(tn(r={},"".concat(o,"-focused"),ve),tn(r,"".concat(o,"-multiple"),re),tn(r,"".concat(o,"-single"),!re),tn(r,"".concat(o,"-allow-clear"),R),tn(r,"".concat(o,"-show-arrow"),Ue),tn(r,"".concat(o,"-disabled"),x),tn(r,"".concat(o,"-loading"),b),tn(r,"".concat(o,"-open"),ke),tn(r,"".concat(o,"-customize-input"),be),tn(r,"".concat(o,"-show-search"),ie),r)),qe=g.createElement(ZS,{ref:de,disabled:x,prefixCls:o,visible:Me,popupElement:Ye,containerWidth:ze,animation:F,transitionName:V,dropdownStyle:G,dropdownClassName:H,direction:u,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:Q,placement:Y,getPopupContainer:K,empty:p,getTriggerDOMNode:function(){return ce.current},onPopupVisibleChange:Be,onPopupMouseEnter:function(){Ve({})}},we?g.cloneElement(we,{ref:Se}):g.createElement(gA,S({},e,{domRef:ce,prefixCls:o,inputElement:be,ref:fe,id:i,showSearch:ie,mode:y,activeDescendantId:T,tagRender:l,values:d,open:ke,onToggleOpen:Ie,activeValue:M,searchValue:xe,onSearch:De,onSearchSubmit:function(e){e&&e.trim()&&N(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Qe=we?qe:g.createElement("div",S({className:Ke},oe,{ref:ue,onMouseDown:function(e){var t,n=e.target,r=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var i=setTimeout((function(){var e,t=Le.indexOf(i);-1!==t&&Le.splice(t,1),ye(),se||r.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));Le.push(i)}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s=0;a-=1){var s=i[a];if(!s.disabled){i.splice(a,1),o=s;break}}o&&f(i,{type:"remove",values:[o]})}for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c1?t-1:0),r=1;rn},e}return t=o,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,i=this.getSpinHeight(),o=this.getTop(),a=this.showScroll(),s=a&&n;return g.createElement("div",{ref:this.scrollbarRef,className:ln()("".concat(r,"-scrollbar"),MA({},"".concat(r,"-scrollbar-show"),a)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:s?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},g.createElement("div",{ref:this.thumbRef,className:ln()("".concat(r,"-scrollbar-thumb"),MA({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&TA(t.prototype,n),r&&TA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(g.Component);function BA(e){var t=e.children,n=e.setRef,r=g.useCallback((function(e){n(e)}),[]);return g.cloneElement(t,{ref:r})}function jA(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],a=e<0&&o.current.top||e>0&&o.current.bottom;return t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||i(),!n.current&&a}};var qA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function JA(){return JA=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var r_=[],i_={overflowY:"auto",overflowAnchor:"none"};function o_(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,u=e.style,c=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.component,v=void 0===h?"div":h,m=e.onScroll,y=e.onVisibleChange,x=n_(e,qA),b=!(!1===p||!o||!a),w=b&&c&&a*c.length>o,S=e_((0,g.useState)(0),2),A=S[0],_=S[1],C=e_((0,g.useState)(!1),2),k=C[0],E=C[1],M=ln()(r,i),I=c||r_,T=(0,g.useRef)(),D=(0,g.useRef)(),N=(0,g.useRef)(),O=g.useCallback((function(e){return"function"===typeof f?f(e):null===e||void 0===e?void 0:e[f]}),[f]),P={getKey:O};function R(e){_((function(t){var n=function(e){var t=e;Number.isNaN(Z.current)||(t=Math.min(t,Z.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return T.current.scrollTop=n,n}))}var L=(0,g.useRef)({start:0,end:I.length}),B=(0,g.useRef)(),j=e_(UA(I,O),1)[0];B.current=j;var z=function(e,t,n){var r=FA(g.useState(0),2),i=r[0],o=r[1],a=(0,g.useRef)(new Map),s=(0,g.useRef)(new zA),l=(0,g.useRef)();function u(){Ei.cancel(l.current)}function c(){u(),l.current=Ei((function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=zr(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),o((function(e){return e+1}))}))}return(0,g.useEffect)((function(){return u}),[]),[function(r,i){var o=e(r),s=a.current.get(o);i?(a.current.set(o,i),c()):a.current.delete(o),!s!==!i&&(i?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},c,s.current,i]}(O,null,null),F=e_(z,4),V=F[0],G=F[1],H=F[2],W=F[3],U=g.useMemo((function(){if(!b)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};var e;if(!w)return{scrollHeight:(null===(e=D.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:I.length-1,offset:void 0};for(var t,n,r,i=0,s=I.length,l=0;l=A&&void 0===t&&(t=l,n=i),f>A+o&&void 0===r&&(r=l),i=f}return void 0===t&&(t=0,n=0),void 0===r&&(r=I.length-1),{scrollHeight:i,start:t,end:r=Math.min(r+1,I.length),offset:n}}),[w,b,A,I,W,o]),Q=U.scrollHeight,Y=U.start,K=U.end,q=U.offset;L.current.start=Y,L.current.end=K;var J=Q-o,Z=(0,g.useRef)(J);Z.current=J;var X=A<=0,$=A>=J,ee=KA(X,$);var te=function(e,t,n,r){var i=(0,g.useRef)(0),o=(0,g.useRef)(null),a=(0,g.useRef)(null),s=(0,g.useRef)(!1),l=KA(t,n);return[function(t){if(e){Ei.cancel(o.current);var n=t.deltaY;i.current+=n,a.current=n,l(n)||(YA||t.preventDefault(),o.current=Ei((function(){var e=s.current?10:1;r(i.current*e),i.current=0})))}},function(t){e&&(s.current=t.detail===a.current)}]}(b,X,$,(function(e){R((function(t){return t+e}))})),ne=e_(te,2),re=ne[0],ie=ne[1];!function(e,t,n){var r,i=(0,g.useRef)(!1),o=(0,g.useRef)(0),a=(0,g.useRef)(null),s=(0,g.useRef)(null),l=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=o.current-t;o.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){i.current=!1,r()},c=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,o.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",u))};r=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",u))},vi((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),r(),clearInterval(s.current)}}),[e])}(b,T,(function(e,t){return!ee(e,t)&&(re({preventDefault:function(){},deltaY:e}),!0)})),vi((function(){function e(e){b&&e.preventDefault()}return T.current.addEventListener("wheel",re),T.current.addEventListener("DOMMouseScroll",ie),T.current.addEventListener("MozMousePixelScroll",e),function(){T.current&&(T.current.removeEventListener("wheel",re),T.current.removeEventListener("DOMMouseScroll",ie),T.current.removeEventListener("MozMousePixelScroll",e))}}),[b]);var oe=function(e,t,n,r,i,o,a,s){var l=g.useRef();return function(u){if(null!==u&&void 0!==u){if(Ei.cancel(l.current),"number"===typeof u)a(u);else if(u&&"object"===GA(u)){var c,d=u.align;c="index"in u?u.index:t.findIndex((function(e){return i(e)===u.key}));var f=u.offset,p=void 0===f?0:f;!function s(u,f){if(!(u<0)&&e.current){var h=e.current.clientHeight,g=!1,v=f;if(h){for(var m=f||d,y=0,x=0,b=0,w=Math.min(t.length,c),S=0;S<=w;S+=1){var A=i(t[S]);x=y;var _=n.get(A);y=b=x+(void 0===_?r:_),S===c&&void 0===_&&(g=!0)}var C=null;switch(m){case"top":C=x-p;break;case"bottom":C=b-h+p;break;default:var k=e.current.scrollTop;xk+h&&(v="bottom")}null!==C&&C!==e.current.scrollTop&&a(C)}l.current=Ei((function(){g&&o(),s(u-1,v)}))}}(3)}}else s()}}(T,I,H,a,O,G,R,(function(){var e;null===(e=N.current)||void 0===e||e.delayHidden()}));g.useImperativeHandle(t,(function(){return{scrollTo:oe}})),vi((function(){if(y){var e=I.slice(Y,K+1);y(e,I)}}),[Y,K,I]);var ae=function(e,t,n,r,i,o){var a=o.getKey;return e.slice(t,n+1).map((function(e,n){var o=i(e,t+n,{}),s=a(e);return g.createElement(BA,{key:s,setRef:function(t){return r(e,t)}},o)}))}(I,Y,K,V,d,P),se=null;return o&&(se=XA($A({},l?"height":"maxHeight",o),i_),b&&(se.overflowY="hidden",k&&(se.pointerEvents="none"))),g.createElement("div",JA({style:XA(XA({},u),{},{position:"relative"}),className:M},x),g.createElement(v,{className:"".concat(r,"-holder"),style:se,ref:T,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==A&&R(t),null===m||void 0===m||m(e)}},g.createElement(kA,{prefixCls:r,height:Q,offset:q,onInnerResize:G,ref:D},ae)),b&&g.createElement(LA,{ref:N,prefixCls:r,scrollTop:A,height:o,scrollHeight:Q,count:I.length,onScroll:function(e){R(e)},onStartMove:function(){E(!0)},onStopMove:function(){E(!1)}}))}var a_=g.forwardRef(o_);a_.displayName="List";var s_=a_;var l_=g.createContext(null),u_=["disabled","title","children","style","className"];function c_(e){return"string"===typeof e||"number"===typeof e}var d_=function(e,t){var n=g.useContext(vA),r=n.prefixCls,i=n.id,o=n.open,a=n.multiple,s=n.searchValue,l=n.toggleOpen,u=n.notFoundContent,c=n.onPopupScroll,d=g.useContext(l_),f=d.flattenOptions,p=d.onActiveValue,h=d.defaultActiveFirstOption,v=d.onSelect,m=d.menuItemSelectedIcon,y=d.rawValues,x=d.fieldNames,b=d.virtual,A=d.listHeight,_=d.listItemHeight,C="".concat(r,"-item"),k=Pr((function(){return f}),[o,f],(function(e,t){return t[0]&&e[1]!==t[1]})),E=g.useRef(null),M=function(e){e.preventDefault()},I=function(e){E.current&&E.current.scrollTo(e)},T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];O(e);var n={source:t?"keyboard":"mouse"},r=k[e];r?p(r.value,e,n):p(null,-1,n)};(0,g.useEffect)((function(){P(!1!==h?T(0):-1)}),[k.length,s]),(0,g.useEffect)((function(){var e,t=setTimeout((function(){if(!a&&o&&1===y.size){var e=Array.from(y)[0],t=k.findIndex((function(t){return t.data.value===e}));-1!==t&&(P(t),I(t))}}));o&&(null===(e=E.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[o,s]);var R=function(e){void 0!==e&&v(e,{selected:!y.has(e)}),a||l(!1)};if(g.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Hi.N:case Hi.P:case Hi.UP:case Hi.DOWN:var r=0;if(t===Hi.UP?r=-1:t===Hi.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Hi.N?r=1:t===Hi.P&&(r=-1)),0!==r){var i=T(N+r,r);I(i),P(i,!0)}break;case Hi.ENTER:var a=k[N];a&&!a.data.disabled?R(a.value):R(void 0),o&&e.preventDefault();break;case Hi.ESC:l(!1),o&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){I(e)}}})),0===k.length)return g.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(C,"-empty"),onMouseDown:M},u);var L=Object.keys(x).map((function(e){return x[e]})),B=function(e){return e.label},j=function(e){var t=k[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=nA(n,!0),s=B(t);return t?g.createElement("div",S({"aria-label":"string"!==typeof s||o?null:s},a,{key:e,role:o?"presentation":"option",id:"".concat(i,"_list_").concat(e),"aria-selected":y.has(r)}),r):null};return g.createElement(g.Fragment,null,g.createElement("div",{role:"listbox",id:"".concat(i,"_list"),style:{height:0,width:0,overflow:"hidden"}},j(N-1),j(N),j(N+1)),g.createElement(s_,{itemKey:"key",ref:E,data:k,height:A,itemHeight:_,fullHeight:!1,onMouseDown:M,onScroll:c,virtual:b},(function(e,t){var n,r=e.group,i=e.groupOption,o=e.data,a=e.label,s=e.value,l=o.key;if(r){var u,c=null!==(u=o.title)&&void 0!==u?u:c_(a)&&a;return g.createElement("div",{className:ln()(C,"".concat(C,"-group")),title:c},void 0!==a?a:l)}var d=o.disabled,f=o.title,p=(o.children,o.style),h=o.className,v=Wi(an(o,u_),L),x=y.has(s),b="".concat(C,"-option"),w=ln()(C,b,h,(tn(n={},"".concat(b,"-grouped"),i),tn(n,"".concat(b,"-active"),N===t&&!d),tn(n,"".concat(b,"-disabled"),d),tn(n,"".concat(b,"-selected"),x),n)),A=B(e),_=!m||"function"===typeof m||x,k="number"===typeof A?A:A||s,E=c_(k)?k.toString():void 0;return void 0!==f&&(E=f),g.createElement("div",S({},v,{"aria-selected":x,className:w,title:E,onMouseMove:function(){N===t||d||P(t)},onClick:function(){d||R(s)},style:p}),g.createElement("div",{className:"".concat(b,"-content")},k),g.isValidElement(m)||x,_&&g.createElement(rA,{className:"".concat(C,"-option-state"),customizeIcon:m,customizeIconProps:{isSelected:x}},x?"\u2713":null))})))},f_=g.forwardRef(d_);f_.displayName="OptionList";var p_=f_,h_=function(){return null};h_.isSelectOption=!0;var g_=h_,v_=function(){return null};v_.isSelectOptGroup=!0;var m_=v_,y_=["children","value"],x_=["children"];function b_(e){var t=e.key,n=e.props,r=n.children,i=n.value;return rn({key:t,value:void 0!==i?i:t,children:r},an(n,y_))}function w_(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Or(e).map((function(e,n){if(!g.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,i=e.key,o=e.props,a=o.children,s=an(o,x_);return t||!r?b_(e):rn(rn({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:w_(a)})})).filter((function(e){return e}))}function S_(e,t,n){return g.useMemo((function(){var r=e;!e&&(r=w_(t));var i=new Map,o=new Map;return function e(t){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=QS(n,!1),a=o.label,s=o.value,l=o.options;function u(e,t){e.forEach((function(e){var n=e[a];if(t||!(l in e)){var o=e[s];i.push({key:US(e,i.length),groupOption:t,data:e,label:n,value:o})}else{var c=n;void 0===c&&r&&(c=e.label),i.push({key:US(e,i.length),group:!0,data:e,label:c}),u(e[l],!0)}}))}return u(e,!1),i}(ce,{fieldNames:G,childrenAsData:F})}),[ce,G,F]),fe=function(e){var t=J(e);if($(t),L&&(t.length!==ne.length||t.some((function(e,t){var n;return(null===(n=ne[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=R?t:t.map((function(e){return e.value})),r=t.map((function(e){return YS(re(e.value))}));L(z?n:n[0],z?r:r[0])}},pe=w(g.useState(null),2),he=pe[0],ge=pe[1],ve=w(g.useState(0),2),me=ve[0],ye=ve[1],xe=void 0!==k?k:"combobox"!==r,be=g.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.source,o=void 0===i?"keyboard":i;ye(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&ge(String(e))}),[a,r]),we=function(e,t){var n=function(){var t,n=re(e);return[R?{label:null===n||void 0===n?void 0:n[G.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,YS(n)]};if(t&&p){var r=w(n(),2),i=r[0],o=r[1];p(i,o)}else if(!t&&h){var a=w(n(),2),s=a[0],l=a[1];h(s,l)}},Se=k_((function(e,t){var n,i=!z||t.selected;n=i?z?[].concat(kr(ne),[e]):[e]:ne.filter((function(t){return t.value!==e})),fe(n),we(e,i),"combobox"===r?ge(""):xA&&!f||(U(""),ge(""))})),Ae=g.useMemo((function(){var e=!1!==M&&!1!==m;return rn(rn({},Q),{},{flattenOptions:de,onActiveValue:be,defaultActiveFirstOption:xe,onSelect:Se,menuItemSelectedIcon:E,rawValues:oe,fieldNames:G,virtual:e,listHeight:T,listItemHeight:N,childrenAsData:F})}),[Q,de,be,xe,Se,E,oe,G,M,m,T,N,F]);return g.createElement(l_.Provider,{value:Ae},g.createElement(wA,S({},B,{id:j,prefixCls:o,ref:t,omitDomProps:I_,mode:r,displayValues:ie,onDisplayValuesChange:function(e,t){fe(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){we(e.value,!1)}))},searchValue:W,onSearch:function(e,t){if(U(e),ge(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&fe(e),null===c||void 0===c||c(e));else{var n=(e||"").trim();if(n){var i=Array.from(new Set([].concat(kr(oe),[n])));fe(i),we(n,!0),U("")}}},onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=K.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(kr(oe),kr(t))));fe(n),n.forEach((function(e){we(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:p_,emptyOptions:!de.length,activeValue:he,activeDescendantId:"".concat(j,"_list_").concat(me)})))}));var D_=T_;D_.Option=g_,D_.OptGroup=m_;var N_=D_,O_={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"},P_=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:O_}))};P_.displayName="DownOutlined";var R_=g.forwardRef(P_),L_={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"},B_=function(e,t){return g.createElement(cu,rn(rn({},e),{},{ref:t,icon:L_}))};B_.displayName="SearchOutlined";var j_=g.forwardRef(B_);var z_=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(h,"` at https://ant.design/components/icon")),Pc(!(m&&mC(s)),"Button","`link` or `text` button can't be a `ghost` button.");var F=O("btn",o),V=!1!==P,G=d||C,H=G&&{large:"lg",small:"sm",middle:void 0}[G]||"",W=E?"loading":h,U=ln()(F,(tn(n={},"".concat(F,"-").concat(c),"default"!==c&&c),tn(n,"".concat(F,"-").concat(s),s),tn(n,"".concat(F,"-").concat(H),H),tn(n,"".concat(F,"-icon-only"),!p&&0!==p&&!!W),tn(n,"".concat(F,"-background-ghost"),m&&!mC(s)),tn(n,"".concat(F,"-loading"),E),tn(n,"".concat(F,"-two-chinese-chars"),T&&V),tn(n,"".concat(F,"-block"),x),tn(n,"".concat(F,"-dangerous"),!!l),tn(n,"".concat(F,"-rtl"),"rtl"===R),n),f),Q=h&&!E?h:g.createElement(pC,{existIcon:!!h,prefixCls:F,loading:!!E}),Y=p||0===p?function(e,t){var n=!1,r=[];return g.Children.forEach(e,(function(e){var t=wr(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,a=r[o];r[o]="".concat(a).concat(e)}else r.push(e);n=i})),g.Children.map(r,(function(e){return yC(e,t)}))}(p,B()&&V):null,K=Wi(_,["navigate"]);if(void 0!==K.href)return g.createElement("a",S({},K,{className:U,onClick:z,ref:L}),Q,Y);var q=g.createElement("button",S({},_,{type:A,className:U,onClick:z,ref:L}),Q,Y);return mC(s)?q:g.createElement(Cv,{disabled:!!E},q)},bC=g.forwardRef(xC);bC.displayName="Button",bC.Group=cC,bC.__ANT_BUTTON=!0;var wC=bC;var SC=n.p+"static/media/Share.a6927bbaad22148cda09c3d3883acfe8.svg",AC=function(e,t){return AC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},AC(e,t)};function _C(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}AC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var CC=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},kC=new function(){this.browser=new CC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window};"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(kC.wxa=!0,kC.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?kC.worker=!0:"undefined"===typeof navigator?(kC.node=!0,kC.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,kC);var EC=kC,MC="sans-serif",IC="12px sans-serif";var TC=function(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?SE(s,a):SE(a,s))}(a,o,i);if(s)return s(e,n,r),!0}return!1}function CE(e){return"CANVAS"===e.nodeName.toUpperCase()}var kE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,EE=[],ME=EC.browser.firefox&&+EC.browser.version.split(".")[0]<39;function IE(e,t,n,r){return n=n||{},r?TE(e,t,n):ME&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):TE(e,t,n),n}function TE(e,t,n){if(EC.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(CE(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(_E(EE,e,r,i))return n.zrX=EE[0],void(n.zrY=EE[1])}n.zrX=n.zrY=0}function DE(e){return e||window.event}function NE(e,t,n){if(null!=(t=DE(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&IE(e,i,t,n)}else{IE(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&kE.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function OE(e,t,n,r){e.addEventListener(t,n,r)}var PE=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function RE(e){return 2===e.which||3===e.which}var LE=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o1&&i&&i.length>1){var a=BE(i)/BE(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},zE="silent";function FE(){PE(this.event)}var VE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Hk(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(xE),GE=function(e,t){this.x=e,this.y=t},HE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],WE=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._hovered=new GE(0,0),o.storage=t,o.painter=n,o.painterRoot=i,r=r||new VE,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new mE(o),o}return Hk(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(rk(HE,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=QE(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new GE(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new GE(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:FE}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new GE(e,t),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=UE(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),a!==zE)){i.target=r[o];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new LE);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new GE;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(xE);function UE(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||zE}return!1}function QE(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}rk(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){WE.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=QE(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||sE(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var YE=WE;function KE(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function qE(e,t,n,r,i){for(r===t&&r++;r>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function JE(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function ZE(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function XE(e,t){var n,r,i,o=7,a=0;n=e.length;var s=[];function l(n){var l=r[n],u=i[n],c=r[n+1],d=i[n+1];i[n]=u+d,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var f=ZE(e[c],e,l,u,0,t);l+=f,0!==(u-=f)&&0!==(d=JE(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,i,a){var l=0;for(l=0;l=7||p>=7);if(h)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===r){for(l=0;l=0;l--)e[p+l]=e[f+l];return void(e[d]=s[c])}var h=o;for(;;){var g=0,v=0,m=!1;do{if(t(s[c],e[u])<0){if(e[d--]=e[u--],g++,v=0,0===--r){m=!0;break}}else if(e[d--]=s[c--],v++,g=0,1===--a){m=!0;break}}while((g|v)=0;l--)e[p+l]=e[f+l];if(0===r){m=!0;break}}if(e[d--]=s[c--],1===--a){m=!0;break}if(0!==(v=a-JE(e[u],s,0,a,a-1,t))){for(a-=v,p=(d-=v)+1,f=(c-=v)+1,l=0;l=7||v>=7);if(m)break;h<0&&(h=0),h+=2}(o=h)<1&&(o=1);if(1===a){for(p=(d-=r)+1,f=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[f+l];e[d]=s[c]}else{if(0===a)throw new Error;for(f=d-(a-1),l=0;l1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;l(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&i[e-1]=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=KE(e,n,r,t))s&&(l=s),qE(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var eM=!1;function tM(){eM||(eM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nM(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rM=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nM}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(tM(),u.z=0),isNaN(u.z2)&&(tM(),u.z2=0),isNaN(u.zlevel)&&(tM(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),iM=rM,oM=EC.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},aM={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-aM.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*aM.bounceIn(2*e):.5*aM.bounceOut(2*e-1)+.5}},sM=aM,lM=Math.pow,uM=Math.sqrt,cM=1e-8,dM=1e-4,fM=uM(3),pM=1/3,hM=Wk(),gM=Wk(),vM=Wk();function mM(e){return e>-1e-8&&ecM||e<-1e-8}function xM(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function bM(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function wM(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,f=l*l-3*s*u,p=0;if(mM(c)&&mM(d)){if(mM(s))o[0]=0;else(_=-l/s)>=0&&_<=1&&(o[p++]=_)}else{var h=d*d-4*c*f;if(mM(h)){var g=d/c,v=-g/2;(_=-s/a+g)>=0&&_<=1&&(o[p++]=_),v>=0&&v<=1&&(o[p++]=v)}else if(h>0){var m=uM(h),y=c*s+1.5*a*(-d+m),x=c*s+1.5*a*(-d-m);(_=(-s-((y=y<0?-lM(-y,pM):lM(y,pM))+(x=x<0?-lM(-x,pM):lM(x,pM))))/(3*a))>=0&&_<=1&&(o[p++]=_)}else{var b=(2*c*s-3*a*d)/(2*uM(c*c*c)),w=Math.acos(b)/3,S=uM(c),A=Math.cos(w),_=(-s-2*S*A)/(3*a),C=(v=(-s+S*(A+fM*Math.sin(w)))/(3*a),(-s+S*(A-fM*Math.sin(w)))/(3*a));_>=0&&_<=1&&(o[p++]=_),v>=0&&v<=1&&(o[p++]=v),C>=0&&C<=1&&(o[p++]=C)}}return p}function SM(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(mM(a)){if(yM(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(mM(u))i[0]=-o/(2*a);else if(u>0){var c,d=uM(u),f=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function AM(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function _M(e,t,n,r,i,o,a,s,l,u,c){var d,f,p,h,g,v=.005,m=1/0;hM[0]=l,hM[1]=u;for(var y=0;y<1;y+=.05)gM[0]=xM(e,n,i,a,y),gM[1]=xM(t,r,o,s,y),(h=uE(hM,gM))=0&&h=0&&v=1?1:wM(0,r,o,1,e,s)&&xM(0,i,a,1,s[0])}}}var PM=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Fk,this.ondestroy=e.ondestroy||Fk,this.onrestart=e.onrestart||Fk,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=fk(e)?e:sM[e]||OM(e)},e}(),RM=function(e){this.value=e},LM=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new RM(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),BM=function(){function e(e){this._list=new LM,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new RM(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),jM=BM,zM={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function FM(e){return(e=Math.round(e))<0?0:e>255?255:e}function VM(e){return e<0?0:e>1?1:e}function GM(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?FM(parseFloat(t)/100*255):FM(parseInt(t,10))}function HM(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?VM(parseFloat(t)/100):VM(parseFloat(t))}function WM(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function UM(e,t,n){return e+(t-e)*n}function QM(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function YM(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var KM=new jM(20),qM=null;function JM(e,t){qM&&YM(qM,t),qM=KM.put(e,qM||t.slice())}function ZM(e,t){if(e){t=t||[];var n=KM.get(e);if(n)return YM(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in zM)return YM(t,zM[r]),JM(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(QM(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),JM(e,t),t):void QM(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(QM(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),JM(e,t),t):void QM(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?QM(t,+u[0],+u[1],+u[2],1):QM(t,0,0,0,1);c=HM(u.pop());case"rgb":return 3!==u.length?void QM(t,0,0,0,1):(QM(t,GM(u[0]),GM(u[1]),GM(u[2]),c),JM(e,t),t);case"hsla":return 4!==u.length?void QM(t,0,0,0,1):(u[3]=HM(u[3]),XM(u,t),JM(e,t),t);case"hsl":return 3!==u.length?void QM(t,0,0,0,1):(XM(u,t),JM(e,t),t);default:return}}QM(t,0,0,0,1)}}function XM(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=HM(e[1]),i=HM(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return QM(t=t||[],FM(255*WM(a,o,n+1/3)),FM(255*WM(a,o,n)),FM(255*WM(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function $M(e,t){var n=ZM(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return sI(n,4===n.length?"rgba":"rgb")}}function eI(e){var t=ZM(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function tI(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=t[i],s=t[o],l=r-i;return n[0]=FM(UM(a[0],s[0],l)),n[1]=FM(UM(a[1],s[1],l)),n[2]=FM(UM(a[2],s[2],l)),n[3]=VM(UM(a[3],s[3],l)),n}}var nI=tI;function rI(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=ZM(t[i]),s=ZM(t[o]),l=r-i,u=sI([FM(UM(a[0],s[0],l)),FM(UM(a[1],s[1],l)),FM(UM(a[2],s[2],l)),VM(UM(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var iI=rI;function oI(e,t,n,r){var i=ZM(e);if(e)return i=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?t=f-d:i===s?t=1/3+c-f:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,u];return null!=e[3]&&p.push(e[3]),p}}(i),null!=t&&(i[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(i[1]=HM(n)),null!=r&&(i[2]=HM(r)),sI(XM(i),"rgba")}function aI(e,t){var n=ZM(e);if(n&&null!=t)return n[3]=VM(t),sI(n,"rgba")}function sI(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function lI(e,t){var n=ZM(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function uI(){return sI([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var cI=Math.round;function dI(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=ZM(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var fI=1e-4;function pI(e){return e-1e-4}function hI(e){return cI(1e3*e)/1e3}function gI(e){return cI(1e4*e)/1e4}var vI={left:"start",right:"end",center:"middle",middle:"middle"};function mI(e){return e&&!!e.image}function yI(e){return"linear"===e.type}function xI(e){return"radial"===e.type}function bI(e){return"url(#"+e+")"}function wI(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function SI(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Vk,i=Ck(e.scaleX,1),o=Ck(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===o||l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+cI(a*Vk)+"deg, "+cI(s*Vk)+"deg)"),l.join(" ")}var AI=EC.hasGlobalWindow&&fk(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null},_I=Array.prototype.slice;function CI(e,t,n){return(t-e)*n+e}function kI(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var s=o;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(nk(t)){var l=function(e){return nk(e&&e[0])?2:1}(t);a=l,(1===l&&!gk(t[0])||2===l&&!gk(t[0][0]))&&(o=!0)}else if(gk(t)&&!Ak(t))a=0;else if(pk(t))if(isNaN(+t)){var u=ZM(t);u&&(s=u,a=3)}else a=0;else if(bk(t)){var c=JC({},s);c.colorStops=ik(t.colorStops,(function(e){return{offset:e.offset,color:ZM(e.color)}})),yI(t)?a=4:xI(t)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=fk(n)?n:sM[n]||OM(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=PI(r),l=OI(r),u=0;u=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=f;nt);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var h=i.percent-r.percent,g=0===h?1:p((t-r.percent)/h,1);i.easingFunc&&(g=i.easingFunc(g));var v=o?this._additiveValue:d?RI:e[c];if(!PI(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(PI(s))1===s?kI(v,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a0&&s.addKeyframe(0,DI(l),r),this._trackKeys.push(a)}s.addKeyframe(e,DI(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),jI=BI;function zI(){return(new Date).getTime()}var FI=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Hk(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=zI()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,oM((function t(){e._running&&(oM(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=zI(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=zI(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=zI()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new jI(e,t.loop);return this.addAnimator(n),n},t}(xE),VI=FI,GI=EC.domSupported,HI=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:["touchstart","touchend","touchmove"],pointer:ik(e,(function(e){var n=e.replace("mouse","pointer");return t.hasOwnProperty(n)?n:e}))}}(),WI=["mousemove","mouseup"],UI=["pointermove","pointerup"],QI=!1;function YI(e){var t=e.pointerType;return"pen"===t||"touch"===t}function KI(e){e&&(e.zrByTouch=!0)}function qI(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var JI=function(e,t){this.stopPropagation=Fk,this.stopImmediatePropagation=Fk,this.preventDefault=Fk,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},ZI={mousedown:function(e){e=NE(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=NE(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=NE(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){qI(this,(e=NE(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){QI=!0,e=NE(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){QI||(e=NE(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){KI(e=NE(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ZI.mousemove.call(this,e),ZI.mousedown.call(this,e)},touchmove:function(e){KI(e=NE(this.dom,e)),this.handler.processGesture(e,"change"),ZI.mousemove.call(this,e)},touchend:function(e){KI(e=NE(this.dom,e)),this.handler.processGesture(e,"end"),ZI.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&ZI.click.call(this,e)},pointerdown:function(e){ZI.mousedown.call(this,e)},pointermove:function(e){YI(e)||ZI.mousemove.call(this,e)},pointerup:function(e){ZI.mouseup.call(this,e)},pointerout:function(e){YI(e)||ZI.mouseout.call(this,e)}};rk(["click","dblclick","contextmenu"],(function(e){ZI[e]=function(t){t=NE(this.dom,t),this.trigger(e,t)}}));var XI={pointermove:function(e){YI(e)||XI.mousemove.call(this,e)},pointerup:function(e){XI.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function $I(e,t){var n=t.domHandlers;EC.pointerEventsSupported?rk(HI.pointer,(function(r){tT(t,r,(function(t){n[r].call(e,t)}))})):(EC.touchEventsSupported&&rk(HI.touch,(function(r){tT(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),rk(HI.mouse,(function(r){tT(t,r,(function(i){i=DE(i),t.touching||n[r].call(e,i)}))})))}function eT(e,t){function n(n){tT(t,n,(function(r){r=DE(r),qI(e,r.target)||(r=function(e,t){return NE(e.dom,new JI(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}EC.pointerEventsSupported?rk(UI,n):EC.touchEventsSupported||rk(WI,n)}function tT(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,OE(e.domTarget,t,n,r)}function nT(e){var t,n,r,i,o=e.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=e.domTarget,n=a,r=o[a],i=e.listenerOpts[a],t.removeEventListener(n,r,i));e.mounted={}}var rT=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},iT=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new rT(t,ZI),GI&&(r._globalHandlerScope=new rT(document,XI)),$I(r,r._localHandlerScope),r}return Hk(t,e),t.prototype.dispose=function(){nT(this._localHandlerScope),GI&&nT(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,GI&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?eT(this,t):nT(t)}},t}(xE),oT=1;EC.hasGlobalWindow&&(oT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var aT=oT,sT="#333",lT="#ccc";function uT(){return[1,0,0,1,0,0]}function cT(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function dT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function fT(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function pT(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function hT(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*u,e[1]=-r*u+a*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function gT(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function vT(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function mT(e){var t=[1,0,0,1,0,0];return dT(t,e),t}var yT=cT,xT=5e-5;function bT(e){return e>xT||e<-5e-5}var wT=[],ST=[],AT=[1,0,0,1,0,0],_T=Math.abs,CT=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return bT(this.rotation)||bT(this.x)||bT(this.y)||bT(this.scaleX-1)||bT(this.scaleY-1)||bT(this.skewX)||bT(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):yT(n),e&&(t?fT(n,e,n):dT(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&yT(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(wT);var n=wT[0]<0?-1:1,r=wT[1]<0?-1:1,i=((wT[0]-n)*t+n)/wT[0]||0,o=((wT[1]-r)*t+r)/wT[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],vT(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(fT(ST,e.invTransform,t),t=ST);var n=this.originX,r=this.originY;(n||r)&&(AT[4]=n,AT[5]=r,fT(ST,t,AT),ST[4]-=n,ST[5]-=r,t=ST),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&fE(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&fE(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&_T(e[0]-1)>1e-10&&_T(e[3]-1)>1e-10?Math.sqrt(_T(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ET(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var p=n+a,h=r+s;t[4]=-p*i-d*h*o,t[5]=-h*o-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=f*i,t[2]=d*o,l&&hT(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),kT=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ET(e,t){for(var n=0;nh&&(h=x,gh&&(h=b,m=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}OT.x=RT.x=n.x,OT.y=LT.y=n.y,PT.x=LT.x=n.x+n.width,PT.y=RT.y=n.y+n.height,OT.transform(r),LT.transform(r),PT.transform(r),RT.transform(r),t.x=DT(OT.x,PT.x,RT.x,LT.x),t.y=DT(OT.y,PT.y,RT.y,LT.y);var l=NT(OT.x,PT.x,RT.x,LT.x),u=NT(OT.y,PT.y,RT.y,LT.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),FT=zT,VT={};function GT(e,t){var n=VT[t=t||IC];n||(n=VT[t]=new jM(500));var r=n.get(e);return null==r&&(r=DC.measureText(e,t).width,n.put(e,r)),r}function HT(e,t,n,r){var i=GT(e,t),o=YT(t),a=UT(0,i,n),s=QT(0,o,r);return new FT(a,s,i,o)}function WT(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return HT(i[0],t,n,r);for(var o=new FT(0,0,0,0),a=0;a=0?parseFloat(e)/100*t:parseFloat(e):e}function qT(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=KT(r[0],n.width),u+=KT(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var JT="__zr_normal__",ZT=kT.concat(["ignore"]),XT=ok(kT,(function(e,t){return e[t]=!0,e}),{ignore:!1}),$T={},eD=new FT(0,0,0,0),tD=function(){function e(e){this.id=UC(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=eD;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($T,n,u):qT($T,n,u),i.x=$T.x,i.y=$T.y,o=$T.align,a=$T.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,f=void 0;"center"===c?(d=.5*u.width,f=.5*u.height):(d=KT(c[0],u.width),f=KT(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var h=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;h&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lT:sT},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&ZM(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,sI(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},JC(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(vk(e))for(var n=lk(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(JT,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===JT;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!($C(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}QC("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s0,p);var h=this._textContent,g=this._textGuide;h&&h.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=$C(r,e),o=$C(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var f=0;f0||i.force&&!a.length){var S,A=void 0,_=void 0,C=void 0;if(s){_={},f&&(A={});for(b=0;b=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=$C(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=$C(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function bD(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return pk(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function wD(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function SD(e){return e.sort((function(e,t){return e-t})),e}function AD(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return _D(e)}function _D(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function CD(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function kD(e,t,n){if(!e[t])return 0;var r=ok(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return 0;for(var i=Math.pow(10,n),o=ik(e,(function(e){return(isNaN(e)?0:e)/r*i*100})),a=100*i,s=ik(o,(function(e){return Math.floor(e)})),l=ok(s,(function(e,t){return e+t}),0),u=ik(o,(function(e,t){return e-s[t]}));lc&&(c=u[f],d=f);++s[d],u[d]=0,++l}return s[t]/i}function ED(e,t){var n=Math.max(AD(e),AD(t)),r=e+t;return n>20?r:wD(r,n)}var MD=9007199254740991;function ID(e){var t=2*Math.PI;return(e%t+t)%t}function TD(e){return e>-1e-4&&e=10&&t++,t}function RD(e,t){var n=PD(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function LD(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function BD(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r=0||i&&$C(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var _N=AN([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),CN=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return _N(this,e,t)},e}(),kN=new jM(50);function EN(e){if("string"===typeof e){var t=kN.get(e);return t&&t.image}return e}function MN(e,t,n,r,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=kN.get(e),a={hostEl:n,cb:r,cbPayload:i};if(o)!TN(t=o.image)&&o.pending.push(a);else{var s=DC.loadImage(e,IN,IN);s.__zrImageSrc=e,kN.put(e,s.__cachedImgObj={image:s,pending:[a]})}return t}return e}return t}function IN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var u=GT(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function PN(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=GT(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?RN(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=GT(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function RN(e,t,n,r){for(var i=0,o=0,a=e.length;o0&&h+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=h}else{var g=GN(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v=33&&t<=383}(e)||!!FN[e]}function GN(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;dn:i+c+p>n)?c?(s||l)&&(h?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=f,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):h?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,h?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var HN="__zr_style_"+Math.round(10*Math.random()),WN={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},UN={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};WN[HN]=!0;var QN=["z","z2","invisible"],YN=["invisible"],KN=function(e){function t(t){return e.call(this,t)||this}return Hk(t,e),t.prototype._init=function(t){for(var n=lk(t),r=0;r1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(rO[0]=tO(i)*n+e,rO[1]=eO(i)*r+t,iO[0]=tO(o)*n+e,iO[1]=eO(o)*r+t,u(s,rO,iO),c(l,rO,iO),(i%=nO)<0&&(i+=nO),(o%=nO)<0&&(o+=nO),i>o&&!a?o+=nO:ii&&(oO[0]=tO(p)*n+e,oO[1]=eO(p)*r+t,u(s,oO,s),c(l,oO,l))}var pO={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hO=[],gO=[],vO=[],mO=[],yO=[],xO=[],bO=Math.min,wO=Math.max,SO=Math.cos,AO=Math.sin,_O=Math.abs,CO=Math.PI,kO=2*CO,EO="undefined"!==typeof Float32Array,MO=[];function IO(e){return Math.round(e/CO*1e8)/1e8%2*CO}function TO(e,t){var n=IO(e[0]);n<0&&(n+=kO);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=kO?i=n+kO:t&&n-i>=kO?i=n-kO:!t&&n>i?i=n+(kO-IO(n-i)):t&&n0&&(this._ux=_O(n/aT/e)||0,this._uy=_O(n/aT/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(pO.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=_O(e-this._xi),r=_O(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(pO.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(pO.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(pO.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),MO[0]=r,MO[1]=i,TO(MO,o),r=MO[0];var a=(i=MO[1])-r;return this.addData(pO.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=SO(i)*n+e,this._yi=AO(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(pO.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(pO.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!EO||(this.data=new Float32Array(t));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){vO[0]=vO[1]=yO[0]=yO[1]=Number.MAX_VALUE,mO[0]=mO[1]=xO[0]=xO[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;en||_O(v)>r||d===t-1)&&(h=Math.sqrt(I*I+v*v),i=g,o=x);break;case pO.C:var m=e[d++],y=e[d++],x=(g=e[d++],e[d++]),b=e[d++],w=e[d++];h=CM(i,o,m,y,g,x,b,w,10),i=b,o=w;break;case pO.Q:h=DM(i,o,m=e[d++],y=e[d++],g=e[d++],x=e[d++],10),i=g,o=x;break;case pO.A:var S=e[d++],A=e[d++],_=e[d++],C=e[d++],k=e[d++],E=e[d++],M=E+k;d+=1;e[d++];p&&(a=SO(k)*_+S,s=AO(k)*C+A),h=wO(_,C)*bO(kO,Math.abs(E)),i=SO(M)*_+S,o=AO(M)*C+A;break;case pO.R:a=i=e[d++],s=o=e[d++],h=2*e[d++]+2*e[d++];break;case pO.Z:var I=a-i;v=s-o;h=Math.sqrt(I*I+v*v),i=a,o=s}h>=0&&(l[c++]=h,u+=h)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,f=this.data,p=this._ux,h=this._uy,g=this._len,v=t<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var b=0;b0&&(e.lineTo(c,d),x=0),w){case pO.M:n=i=f[b++],r=o=f[b++],e.moveTo(i,o);break;case pO.L:a=f[b++],s=f[b++];var A=_O(a-i),_=_O(s-o);if(A>p||_>h){if(v){if(m+(K=l[y++])>u){var C=(u-m)/K;e.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break e}m+=K}e.lineTo(a,s),i=a,o=s,x=0}else{var k=A*A+_*_;k>x&&(c=a,d=s,x=k)}break;case pO.C:var E=f[b++],M=f[b++],I=f[b++],T=f[b++],D=f[b++],N=f[b++];if(v){if(m+(K=l[y++])>u){AM(i,E,I,D,C=(u-m)/K,hO),AM(o,M,T,N,C,gO),e.bezierCurveTo(hO[1],gO[1],hO[2],gO[2],hO[3],gO[3]);break e}m+=K}e.bezierCurveTo(E,M,I,T,D,N),i=D,o=N;break;case pO.Q:E=f[b++],M=f[b++],I=f[b++],T=f[b++];if(v){if(m+(K=l[y++])>u){IM(i,E,I,C=(u-m)/K,hO),IM(o,M,T,C,gO),e.quadraticCurveTo(hO[1],gO[1],hO[2],gO[2]);break e}m+=K}e.quadraticCurveTo(E,M,I,T),i=I,o=T;break;case pO.A:var O=f[b++],P=f[b++],R=f[b++],L=f[b++],B=f[b++],j=f[b++],z=f[b++],F=!f[b++],V=R>L?R:L,G=_O(R-L)>.001,H=B+j,W=!1;if(v)m+(K=l[y++])>u&&(H=B+j*(u-m)/K,W=!0),m+=K;if(G&&e.ellipse?e.ellipse(O,P,R,L,z,B,H,F):e.arc(O,P,V,B,H,F),W)break e;S&&(n=SO(B)*R+O,r=AO(B)*L+P),i=SO(H)*R+O,o=AO(H)*L+P;break;case pO.R:n=i=f[b],r=o=f[b+1],a=f[b++],s=f[b++];var U=f[b++],Q=f[b++];if(v){if(m+(K=l[y++])>u){var Y=u-m;e.moveTo(a,s),e.lineTo(a+bO(Y,U),s),(Y-=U)>0&&e.lineTo(a+U,s+bO(Y,Q)),(Y-=Q)>0&&e.lineTo(a+wO(U-Y,0),s+Q),(Y-=U)>0&&e.lineTo(a,s+wO(Q-Y,0));break e}m+=K}e.rect(a,s,U,Q);break;case pO.Z:if(v){var K;if(m+(K=l[y++])>u){C=(u-m)/K;e.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break e}m+=K}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=pO,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),NO=DO;function OO(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+d&&c>r+d&&c>o+d&&c>s+d||ce+d&&u>n+d&&u>i+d&&u>a+d||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=jO);var f=Math.atan2(l,s);return f<0&&(f+=jO),f>=r&&f<=i||f+jO>=r&&f+jO<=i}function FO(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var VO=NO.CMD,GO=2*Math.PI;var HO=[-1,-1,-1],WO=[-1,-1];function UO(){var e=WO[0];WO[0]=WO[1],WO[1]=e}function QO(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u1&&UO(),p=xM(t,r,o,s,WO[0]),f>1&&(h=xM(t,r,o,s,WO[1]))),2===f?vt&&s>r&&s>o||s=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(mM(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=uM(u),f=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}(t,r,o,s,HO);if(0===l)return 0;var u=MM(t,r,o);if(u>=0&&u<=1){for(var c=0,d=kM(t,r,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);HO[0]=-l,HO[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=GO-1e-4){r=0,i=GO;var c=o?1:-1;return a>=HO[0]+e&&a<=HO[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=GO,i+=GO);for(var f=0,p=0;p<2;p++){var h=HO[p];if(h+e>a){var g=Math.atan2(s,h);c=o?1:-1;g<0&&(g=GO+g),(g>=r&&g<=i||g+GO>=r&&g+GO<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function qO(e,t,n,r,i){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,f=0,p=0,h=0;h1&&(n||(u+=FO(c,d,f,p,r,i))),v&&(f=c=s[h],p=d=s[h+1]),g){case VO.M:c=f=s[h++],d=p=s[h++];break;case VO.L:if(n){if(OO(c,d,s[h],s[h+1],t,r,i))return!0}else u+=FO(c,d,s[h],s[h+1],r,i)||0;c=s[h++],d=s[h++];break;case VO.C:if(n){if(PO(c,d,s[h++],s[h++],s[h++],s[h++],s[h],s[h+1],t,r,i))return!0}else u+=QO(c,d,s[h++],s[h++],s[h++],s[h++],s[h],s[h+1],r,i)||0;c=s[h++],d=s[h++];break;case VO.Q:if(n){if(RO(c,d,s[h++],s[h++],s[h],s[h+1],t,r,i))return!0}else u+=YO(c,d,s[h++],s[h++],s[h],s[h+1],r,i)||0;c=s[h++],d=s[h++];break;case VO.A:var m=s[h++],y=s[h++],x=s[h++],b=s[h++],w=s[h++],S=s[h++];h+=1;var A=!!(1-s[h++]);o=Math.cos(w)*x+m,a=Math.sin(w)*b+y,v?(f=o,p=a):u+=FO(c,d,o,a,r,i);var _=(r-m)*b/x+m;if(n){if(zO(m,y,b,w,w+S,A,t,_,i))return!0}else u+=KO(m,y,b,w,w+S,A,_,i);c=Math.cos(w+S)*x+m,d=Math.sin(w+S)*b+y;break;case VO.R:if(f=c=s[h++],p=d=s[h++],o=f+s[h++],a=p+s[h++],n){if(OO(f,p,o,p,t,r,i)||OO(o,p,o,a,t,r,i)||OO(o,a,f,a,t,r,i)||OO(f,a,f,p,t,r,i))return!0}else u+=FO(o,p,o,a,r,i),u+=FO(f,a,f,p,r,i);break;case VO.Z:if(n){if(OO(c,d,f,p,t,r,i))return!0}else u+=FO(c,d,f,p,r,i);c=f,d=p}}return n||function(e,t){return Math.abs(e-t)<1e-4}(d,p)||(u+=FO(c,d,f,p,r,i)||0),0!==u}var JO=ZC({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},WN),ZO={style:ZC({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},UN.style)},XO=kT.concat(["invisible","culling","z","z2","zlevel","parent"]),$O=function(e){function t(t){return e.call(this,t)||this}return Hk(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?sT:t>.2?"#eee":lT}if(e)return lT}return sT},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(pk(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===lI(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new NO(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return qO(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return qO(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:JC(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Bk(JO,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=JC({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=JC({},r.shape),JC(s,n.shape)):(s=JC({},i?this.shape:r.shape),JC(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=JC({},this.shape);for(var u={},c=lk(s),d=0;d0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Bk(tP,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=WT(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(ZN);nP.prototype.type="tspan";var rP=nP,iP=ZC({x:0,y:0},WN),oP={style:ZC({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},UN.style)};var aP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hk(t,e),t.prototype.createStyle=function(e){return Bk(iP,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!==typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return oP},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new FT(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ZN);aP.prototype.type="image";var sP=aP;var lP=Math.round;function uP(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(lP(2*r)===lP(2*i)&&(e.x1=e.x2=dP(r,s,!0)),lP(2*o)===lP(2*a)&&(e.y1=e.y2=dP(o,s,!0)),e):e}}function cP(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=dP(r,s,!0),e.y=dP(i,s,!0),e.width=Math.max(dP(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(dP(i+a,s,!1)-e.y,0===a?0:1),e):e}}function dP(e,t,n){if(!t)return e;var r=lP(2*e);return(r+lP(t))%2===0?r/2:(r+(n?1:-1))/2}var fP=function(){this.x=0,this.y=0,this.width=0,this.height=0},pP={},hP=function(e){function t(t){return e.call(this,t)||this}return Hk(t,e),t.prototype.getDefaultShape=function(){return new fP},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=cP(pP,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(eP);hP.prototype.type="rect";var gP=hP,vP={fill:"#000"},mP={style:ZC({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},UN.style)},yP=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=vP,n.attr(t),n}return Hk(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;tp&&c){var h=Math.floor(p/l);n=n.slice(0,h)}if(e&&a&&null!=d)for(var g=ON(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=r.calculatedLineHeight,E=0;El&&zN(n,e.substring(l,u),t,s),zN(n,r[2],t,s,r[1]),l=DN.lastIndex}lo){w>0?(y.tokens=y.tokens.slice(0,w),v(y,b,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var E=S.width,M=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))N.percentWidth=E,c.push(N),N.contentWidth=GT(N.text,C);else{if(M){var I=S.backgroundColor,T=I&&I.image;T&&TN(T=EN(T))&&(N.width=Math.max(N.width,T.width*k/T.height))}var D=h&&null!=i?i-b:null;null!=D&&D