2024-03-10 18:06:49 +03:00
var mh = Object . defineProperty ; var vh = ( e , t , n ) => t in e ? mh ( e , t , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : n } ) : e [ t ] = n ; var ze = ( e , t , n ) => ( vh ( e , typeof t != "symbol" ? t + "" : t , n ) , n ) ; ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const i of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) r ( i ) ; new MutationObserver ( i => { for ( const o of i ) if ( o . type === "childList" ) for ( const s of o . addedNodes ) s . tagName === "LINK" && s . rel === "modulepreload" && r ( s ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( i ) { const o = { } ; return i . integrity && ( o . integrity = i . integrity ) , i . referrerPolicy && ( o . referrerPolicy = i . referrerPolicy ) , i . crossOrigin === "use-credentials" ? o . credentials = "include" : i . crossOrigin === "anonymous" ? o . credentials = "omit" : o . credentials = "same-origin" , o } function r ( i ) { if ( i . ep ) return ; i . ep = ! 0 ; const o = n ( i ) ; fetch ( i . href , o ) } } ) ( ) ; function uc ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var ac = { exports : { } } , so = { } , cc = { exports : { } } , b = { } ; / * *
2024-02-26 21:03:03 +03:00
* @ license React
* react . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2024-03-10 18:06:49 +03:00
* /var Wr=Symbol.for("react.element"),yh=Symbol.for("react.portal"),Sh=Symbol.for("react.fragment"),wh=Symbol.for("react.strict_mode"),Ch=Symbol.for("react.profiler"),Eh=Symbol.for("react.provider"),kh=Symbol.for("react.context"),_h=Symbol.for("react.forward_ref"),xh=Symbol.for("react.suspense"),Oh=Symbol.for("react.memo"),Th=Symbol.for("react.lazy"),ku=Symbol.iterator;function Dh(e){return e===null||typeof e!="object"?null:(e=ku&&e[ku]||e["@@iterator"],typeof e=="function"?e:null)}var dc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fc=Object.assign,hc={};function Kn(e,t,n){this.props=e,this.context=t,this.refs=hc,this.updater=n||dc}Kn.prototype.isReactComponent={};Kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pc(){}pc.prototype=Kn.prototype;function Cl(e,t,n){this.props=e,this.context=t,this.refs=hc,this.updater=n||dc}var El=Cl.prototype=new pc;El.constructor=Cl;fc(El,Kn.prototype);El.isPureReactComponent=!0;var _u=Array.isArray,gc=Object.prototype.hasOwnProperty,kl={current:null},mc={key:!0,ref:!0,__self:!0,__source:!0};function vc(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)gc.call(t,r)&&!mc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),a=0;a<l;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Wr,type:e,key:o,ref:s,props:i,_owner:kl.current}}function Ph(e,t){return{$$typeof:Wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _l(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wr}function Lh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/ [ = : ] / g , function ( n ) { return t [ n ] } ) } var xu = /\/+/g ; function zo ( e , t ) { return typeof e == "object" && e !== null && e . key != null ? Lh ( "" + e . key ) : t . toString ( 36 ) } function wi ( e , t , n , r , i ) { var o = typeof e ; ( o === "undefined" || o === "boolean" ) && ( e = null ) ; var s = ! 1 ; if ( e === null ) s = ! 0 ; else switch ( o ) { case "string" : case "number" : s = ! 0 ; break ; case "object" : switch ( e . $$typeof ) { case Wr : case yh : s = ! 0 } } if ( s ) return s = e , i = i ( s ) , e = r === "" ? "." + zo ( s , 0 ) : r , _u ( i ) ? ( n = "" , e != null && ( n = e . replace ( xu , "$&/" ) + "/" ) , wi ( i , t , n , "" , function ( a ) { return a } ) ) : i != null && ( _l ( i ) && ( i = Ph ( i , n + ( ! i . key || s && s . key === i . key ? "" : ( "" + i . key ) . replace ( xu , "$&/" ) + "/" ) + e ) ) , t . push ( i ) ) , 1 ; if ( s = 0 , r = r === "" ? "." : r + ":" , _u ( e ) ) for ( var l = 0 ; l < e . length ; l ++ ) { o = e [ l ] ; var u = r + zo ( o , l ) ; s += wi ( o , t , n , u , i ) } else if ( u = Dh ( e ) , typeof u == "function" ) for ( e = u . call ( e ) , l = 0 ; ! ( o = e . next ( ) ) . done ; ) o = o . value , u = r + zo ( o , l ++ ) , s += wi ( o , t , n , u , i ) ; else if ( o === "object" ) throw t = String ( e ) , Error ( "Objects are not valid as a React child (found: " + ( t === "[object Object]" ? "object with keys {" + Object . keys ( e ) . join ( ", " ) + "}" : t ) + "). If you meant to render a collection of children, use an array instead." ) ; return s } function ei ( e , t , n ) { if ( e == null ) return e ; var r = [ ] , i = 0 ; return wi ( e , r , "" , "" , function ( o ) { return t . call ( n , o , i ++ ) } ) , r } function Ih ( e ) { if ( e . _status === - 1 ) { var t = e . _result ; t = t ( ) , t . then ( function ( n ) { ( e . _status === 0 || e . _status === - 1 ) && ( e . _status = 1 , e . _result = n ) } , function ( n ) { ( e . _status === 0 || e . _status === - 1 ) && ( e . _status = 2 , e . _result = n ) } ) , e . _status === - 1 && ( e . _status = 0 , e . _result = t ) } if ( e . _status === 1 ) return e . _result . default ; throw e . _result } var Se = { current : null } , Ci = { transition : null } , Nh = { ReactCurrentDispatcher : Se , ReactCurrentBatchConfig : Ci , ReactCurrentOwner : kl } ; b . Children = { map : ei , forEach : function ( e , t , n ) { ei ( e , function ( ) { t . apply ( this , arguments ) } , n ) } , count : function ( e ) { var t = 0 ; return ei ( e , function ( ) { t ++ } ) , t } , toArray : function ( e ) { return ei ( e , function ( t ) { return t } ) || [ ] } , only : function ( e ) { if ( ! _l ( e ) ) throw Error ( "React.Children.only expected to receive a single React element child." ) ; return e } } ; b . Component = Kn ; b . Fragment = Sh ; b . Profiler = Ch ; b . Pure
2024-02-26 21:03:03 +03:00
* @ license React
* react - jsx - runtime . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2024-03-10 18:06:49 +03:00
* /var jh=E,Rh=Symbol.for("react.element"),Mh=Symbol.for("react.fragment"),Ah=Object.prototype.hasOwnProperty,bh=jh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zh={key:!0,ref:!0,__self:!0,__source:!0};function Sc(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ah.call(t,r)&&!zh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Rh,type:e,key:o,ref:s,props:i,_owner:bh.current}}so.Fragment=Mh;so.jsx=Sc;so.jsxs=Sc;ac.exports=so;var v=ac.exports,Cs={},wc={exports:{}},Re={},Cc={exports:{}},Ec={};/ * *
2024-02-26 21:03:03 +03:00
* @ license React
* scheduler . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2024-03-10 18:06:49 +03:00
* / ( f u n c t i o n ( e ) { f u n c t i o n t ( D , L ) { v a r j = D . l e n g t h ; D . p u s h ( L ) ; e : f o r ( ; 0 < j ; ) { v a r H = j - 1 > > > 1 , X = D [ H ] ; i f ( 0 < i ( X , L ) ) D [ H ] = L , D [ j ] = X , j = H ; e l s e b r e a k e } } f u n c t i o n n ( D ) { r e t u r n D . l e n g t h = = = 0 ? n u l l : D [ 0 ] } f u n c t i o n r ( D ) { i f ( D . l e n g t h = = = 0 ) r e t u r n n u l l ; v a r L = D [ 0 ] , j = D . p o p ( ) ; i f ( j ! = = L ) { D [ 0 ] = j ; e : f o r ( v a r H = 0 , X = D . l e n g t h , o t = X > > > 1 ; H < o t ; ) { v a r A = 2 * ( H + 1 ) - 1 , f t = D [ A ] , G e = A + 1 , v n = D [ G e ] ; i f ( 0 > i ( f t , j ) ) G e < X & & 0 > i ( v n , f t ) ? ( D [ H ] = v n , D [ G e ] = j , H = G e ) : ( D [ H ] = f t , D [ A ] = j , H = A ) ; e l s e i f ( G e < X & & 0 > i ( v n , j ) ) D [ H ] = v n , D [ G e ] = j , H = G e ; e l s e b r e a k e } } r e t u r n L } f u n c t i o n i ( D , L ) { v a r j = D . s o r t I n d e x - L . s o r t I n d e x ; r e t u r n j ! = = 0 ? j : D . i d - L . i d } i f ( t y p e o f p e r f o r m a n c e = = " o b j e c t " & & t y p e o f p e r f o r m a n c e . n o w = = " f u n c t i o n " ) { v a r o = p e r f o r m a n c e ; e . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n o . n o w ( ) } } e l s e { v a r s = D a t e , l = s . n o w ( ) ; e . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n s . n o w ( ) - l } } v a r u = [ ] , a = [ ] , g = 1 , p = n u l l , f = 3 , S = ! 1 , m = ! 1 , y = ! 1 , C = t y p e o f s e t T i m e o u t = = " f u n c t i o n " ? s e t T i m e o u t : n u l l , d = t y p e o f c l e a r T i m e o u t = = " f u n c t i o n " ? c l e a r T i m e o u t : n u l l , c = t y p e o f s e t I m m e d i a t e < " u " ? s e t I m m e d i a t e : n u l l ; t y p e o f n a v i g a t o r < " u " & & n a v i g a t o r . s c h e d u l i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g . b i n d ( n a v i g a t o r . s c h e d u l i n g ) ; f u n c t i o n h ( D ) { f o r ( v a r L = n ( a ) ; L ! = = n u l l ; ) { i f ( L . c a l l b a c k = = = n u l l ) r ( a ) ; e l s e i f ( L . s t a r t T i m e < = D ) r ( a ) , L . s o r t I n d e x = L . e x p i r a t i o n T i m e , t ( u , L ) ; e l s e b r e a k ; L = n ( a ) } } f u n c t i o n w ( D ) { i f ( y = ! 1 , h ( D ) , ! m ) i f ( n ( u ) ! = = n u l l ) m = ! 0 , C e ( k ) ; e l s e { v a r L = n ( a ) ; L ! = = n u l l & & d t ( w , L . s t a r t T i m e - D ) } } f u n c t i o n k ( D , L ) { m = ! 1 , y & & ( y = ! 1 , d ( T ) , T = - 1 ) , S = ! 0 ; v a r j = f ; t r y { f o r ( h ( L ) , p = n ( u ) ; p ! = = n u l l & & ( ! ( p . e x p i r a t i o n T i m e > L ) | | D & & ! $ ( ) ) ; ) { v a r H = p . c a l l b a c k ; i f ( t y p e o f H = = " f u n c t i o n " ) { p . c a l l b a c k = n u l l , f = p . p r i o r i t y L e v e l ; v a r X = H ( p . e x p i r a t i o n T i m e < = L ) ; L = e . u n s t a b l e _ n o w ( ) , t y p e o f X = = " f u n c t i o n " ? p . c a l l b a c k = X : p = = = n ( u ) & & r ( u ) , h ( L ) } e l s e r ( u ) ; p = n ( u ) } i f ( p ! = = n u l l ) v a r o t = ! 0 ; e l s e { v a r A = n ( a ) ; A ! = = n u l l & & d t ( w , A . s t a r t T i m e - L ) , o t = ! 1 } r e t u r n o t } f i n a l l y { p = n u l l , f = j , S = ! 1 } } v a r O = ! 1 , x = n u l l , T = - 1 , z = 5 , M = - 1 ; f u n c t i o n $ ( ) { r e t u r n ! ( e . u n s t a b l e _ n o w ( ) - M < z ) } f u n c t i o n K ( ) { i f ( x ! = = n u l l ) { v a r D = e . u n s t a b l e _ n o w ( ) ; M = D ; v a r L = ! 0 ; t r y { L = x ( ! 0 , D ) } f i n a l l y { L ? A e ( ) : ( O = ! 1 , x = n u l l ) } } e l s e O = ! 1 } v a r A e ; i f ( t y p e o f c = = " f u n c t i o n " ) A e = f u n c t i o n ( ) { c ( K ) } ; e l s e i f ( t y p e o f M e s s a g e C h a n n e l < " u " ) { v a r b e = n e w M e s s a g e C h a n n e l , q e = b e . p o r t 2 ; b e . p o r t 1 . o n m e s s a g e = K , A e = f u n c t i o n ( ) { q e . p o s t M e s s a g e ( n u l l ) } } e l s e A e = f u n c t i o n ( ) { C ( K , 0 ) } ; f u n c t i o n C e ( D ) { x = D , O | | ( O = ! 0 , A e ( ) ) } f u n c t i o n d t ( D , L ) { T = C ( f u n c t i o n ( ) { D ( e . u n s t a b l e _ n o w ( ) ) } , L ) } e . u n s t a b l e _ I d l e P r i o r i t y = 5 , e . u n s t a b l e _ I m m e d i a t e P r i o r i t y = 1 , e . u n s t a b l e _ L o w P r i o r i t y = 4 , e . u n s t a b l e _ N o r m a l P r i o r i t y = 3 , e . u n s t a b l e _ P r o f i l i n g = n u l l , e . u n s t a b l e _ U s e r B l o c k i n g P r i o r i t y = 2 , e . u n s t a b l e _ c a n c e l C a l l b a c k = f u n c t i o n ( D ) { D . c a l l b a c k = n u l l } , e . u n s t a b l e _ c o n t i n u e E x e c u t i o n = f u n c t i o n ( ) { m | | S | | ( m = ! 0 , C e ( k ) ) } , e . u n s t a b l e _ f o r c e F r a m e R a t e = f u n c t i o n ( D ) { 0 > D | | 1 2 5 < D ? c o n s o l e . e r r o r ( " f o r c e F r a m e R a t e t a k e s a p o s i t i v e i n t b e t w e e n 0 a n d 1 2 5 , f o r c i n g f r a m e r a t e s h i g h e r t h a n 1 2 5 f p s i s n o t s u p p o r t e d " ) : z = 0 < D ? M a t h . f l o o r ( 1 e 3 / D ) : 5 } , e . u n s t a b l e _ g e t C u r r e n t P r i o r i t y L e v e l = f u n c t i o n ( ) { r e t u r n f } , e . u n s t a b l e _ g e t F i r s t C a l l b a c k N o d e = f u n c t i o n ( ) { r e t u r n n ( u ) } , e . u n s t a b l e _ n e x t = f u n c t i o n ( D ) { s w i t c h ( f ) { c a s e 1 : c a s e 2 : c a s e 3 : v a r L = 3 ; b r e a k ; d e f a u l t : L = f } v a r j = f ; f = L ; t r y { r e t u r n D ( ) } f i n a l l y { f = j } } , e . u n s t a b l e _ p a u s e E x e c u t i o n = f u n c t i o n ( ) { } , e . u n s t a b l e _ r e q u e s t P a i n t = f u n c t i o n ( ) { } , e . u n s t a b l e _ r u n W i t h P r i o r i t y = f u n c t i o n ( D , L ) { s w i t c h ( D ) { c a s e 1 : c a s e 2 : c a s e 3 : c a s e 4 : c a s e 5 : b r e a k ; d e f a u l t : D = 3 } v a r j = f ; f = D ; t r y { r e t u r n L ( ) } f i n a l l y { f = j } } , e . u n s t a b l e _ s c h e d u l e C a l l b a c k = f u n c t i o n ( D , L , j ) { v a r H = e . u n s t a b l e _ n o w ( ) ; s w i t c h ( t y p e o f j = = " o b j e c t " & & j ! = = n u l l ? ( j = j . d e l a y , j = t y p e o f j = = " n u m b e r " & & 0 < j ? H + j : H ) : j = H , D ) { c a s e 1 : v a r X = - 1 ; b r e a k ; c a s e 2 : X = 2 5 0 ; b r e a k ; c a s e 5 : X = 1 0 7 3 7 4 1 8 2 3 ; b r e a k ; c a s e 4 : X = 1 e 4 ; b r e a k ; d e f a u l t : X = 5 e 3 } r e t u r n X = j + X , D = { i d : g + + , c a l l b a c k : L , p r i o r i t y L e v e l : D , s t a r t T i m e : j , e x p i r a t i o n T i m e : X , s o r t I n d e x : - 1 } , j > H ? ( D . s o r t I n d e x = j , t ( a , D ) , n ( u ) = = = n u l l & & D = = = n ( a ) & & ( y ? ( d ( T ) , T = - 1 ) : y = ! 0 , d t ( w , j - H ) ) ) : ( D . s o r t I n d e x = X , t ( u , D ) , m | | S | | ( m = ! 0 , C e ( k ) ) ) , D } , e . u n s t a b l e _ s h o u l d Y i e l d = $ , e . u n s t a b l e _ w r a p C a l l b a c k = f u n c t i o n ( D ) { v a r L = f ; r e t u r n f u n c t i o n ( ) { v a r j = f ; f = L ; t r y { r e t u r n D . a p p l y ( t h i s , a r g u m e n t s ) } f i n a l l y { f = j } } } } ) ( E c ) ; C c . e x p o r t s = E c ; v a r F h = C c . e x p o r t s ; / * *
2024-02-26 21:03:03 +03:00
* @ license React
* react - dom . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var kc=E,je=Fh;function _(e){for(var t="https:/ / reactjs . org / docs / error - decoder . html ? invariant = "+e,n=1;n<arguments.length;n++)t+=" & args [ ] = "+encodeURIComponent(arguments[n]);return" Minified React error # "+e+" ; visit "+t+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}var _c=new Set,kr={};function pn(e,t){Fn(e,t),Fn(e+" Capture ",t)}function Fn(e,t){for(kr[e]=t,e=0;e<t.length;e++)_c.add(t[e])}var St=!(typeof window>" u "||typeof window.document>" u "||typeof window.document.createElement>" u "),Es=Object.prototype.hasOwnProperty,$h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ou={},Tu={};function Uh(e){return Es.call(Tu,e)?!0:Es.call(Ou,e)?!1:$h.test(e)?Tu[e]=!0:(Ou[e]=!0,!1)}function Hh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case" function ":case" symbol ":return!0;case" boolean ":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==" data - "&&e!==" aria - ");default:return!1}}function Wh(e,t,n,r){if(t===null||typeof t>" u "||Hh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function we(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ce={};" children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style ".split(" ").forEach(function(e){ce[e]=new we(e,0,!1,e,null,!1,!1)});[[" acceptCharset "," accept - charset "],[" className "," class "],[" htmlFor "," for "],[" httpEquiv "," http - equiv "]].forEach(function(e){var t=e[0];ce[t]=new we(t,1,!1,e[1],null,!1,!1)});[" contentEditable "," draggable "," spellCheck "," value "].forEach(function(e){ce[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});[" autoReverse "," externalResourcesRequired "," focusable "," preserveAlpha "].forEach(function(e){ce[e]=new we(e,2,!1,e,null,!1,!1)});" allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope ".split(" ").forEach(function(e){ce[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});[" checked "," multiple "," muted "," selected "].forEach(function(e){ce[e]=new we(e,3,!0,e,null,!1,!1)});[" capture "," download "].forEach(function(e){ce[e]=new we(e,4,!1,e,null,!1,!1)});[" cols "," rows "," size "," span "].forEach(function(e){ce[e]=new we(e,6,!1,e,null,!1,!1)});[" rowSpan "," start "].forEach(function(e){ce[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var xl=/[\-:]([a-z])/g;function Ol(e){return e[1].toUpperCase()}" accent - height alignment - baseline arabic - form baseline - shift cap - height clip - path clip - rule color - interpolation color - interpolation - filters color - profile color - rendering dominant - baseline enable - background fill - opacity fill - rule flood - color flood - opacity font - family font - size font - size - adjust font - stretch font - style font - variant font - weight glyph - name glyph - orientation - horizontal glyph - orientation - vertical horiz - adv - x horiz - origin - x image - rendering letter - spacing lighting - color marker - end marker - mid marker - start overline - position overline - thickness paint - order panose - 1 pointer - events rendering - intent shape - rendering stop - color stop - opacity strikethrough - position strikethrough - thickness stroke - dasharray stroke - dashoffset stroke - linecap stroke - linejoin stroke - miterlimit stroke - opacity stroke - width text - anchor text - decoration text - rendering underline - position underline - thickness unicode - bidi unicode - range units - per - em v - alphabetic v - hanging v - ideographic v - mathematical vector - effect vert - adv - y vert - origin -
` +Fo+e}var $ o=!1;function Uo(e,t){if(!e|| $ o)return""; $ o=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split( `
` ),o=r.stack.split( `
` ),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u= `
2024-03-10 18:06:49 +03:00
` +i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{ $ o=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lr(e):""}function Bh(e){switch(e.tag){case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 2:case 15:return e=Uo(e.type,!1),e;case 11:return e=Uo(e.type.render,!1),e;case 1:return e=Uo(e.type,!0),e;default:return""}}function Os(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case En:return"Fragment";case Cn:return"Portal";case ks:return"Profiler";case Dl:return"StrictMode";case _s:return"Suspense";case xs:return"SuspenseList"}if(typeof e=="object")switch(e. $ $ typeof){case Oc:return(e.displayName||"Context")+".Consumer";case xc:return(e._context.displayName||"Context")+".Provider";case Pl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ll:return t=e.displayName||null,t!==null?t:Os(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Os(e(t))}catch{}}return null}function Vh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Os(t);case 8:return t===Dl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qh(e){var t=Dc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ni(e){e._valueTracker||(e._valueTracker=Qh(e))}function Pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ts(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lc(e,t){t=t.checked,t!=null&&Tl(e,"checked",t,!1)}function Ds(e,t){Lc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ps(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ps(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(e,t,n){if(t.hasOwnProperty("valu
` ).replace(n0,"")}function ci(e,t,n){if(t=Ju(t),Ju(e)!==t&&n)throw Error(_(425))}function Wi(){}var Ws=null,Bs=null;function Vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qs=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,ea=typeof Promise=="function"?Promise:void 0,i0=typeof queueMicrotask=="function"?queueMicrotask:typeof ea<"u"?function(e){return ea.resolve(null).then(e).catch(o0)}:Qs;function o0(e){setTimeout(function(){throw e})}function es(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/ $ "){if(r===0){e.removeChild(i),Dr(t);return}r--}else n!==" $ "&&n!==" $ ?"&&n!==" $ !"||r++;n=i}while(n);Dr(t)}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===" $ "||t===" $ !"||t===" $ ?")break;if(t==="/ $ ")return null}}return e}function ta(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===" $ "||n===" $ !"||n===" $ ?"){if(t===0)return e;t--}else n==="/ $ "&&t++}e=e.previousSibling}return null}var Gn=Math.random().toString(36).slice(2),ut="__reactFiber $ "+Gn,jr="__reactProps $ "+Gn,wt="__reactContainer $ "+Gn,Ks="__reactEvents $ "+Gn,s0="__reactListeners $ "+Gn,l0="__reactHandles $ "+Gn;function tn(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ta(e);e!==null;){if(n=e[ut])return n;e=ta(e)}return t}e=n,n=e.parentNode}return null}function Qr(e){return e=e[ut]||e[wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function On(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function fo(e){return e[jr]||null}var qs=[],Tn=-1;function Yt(e){return{current:e}}function V(e){0>Tn||(e.current=qs[Tn],qs[Tn]=null,Tn--)}function W(e,t){Tn++,qs[Tn]=e.current,e.current=t}var qt={},me=Yt(qt),xe=Yt(!1),un=qt;function $ n(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oe(e){return e=e.childContextTypes,e!=null}function Bi(){V(xe),V(me)}function na(e,t,n){if(me.current!==qt)throw Error(_(168));W(me,t),W(xe,n)}function yd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Vh(e)||"Unknown",i));return Y({},n,r)}function Vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,un=me.current,W(me,e),W(xe,xe.current),!0}function ra(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=yd(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,V(xe),V(me),W(me,e)):V(xe),W(xe,n)}var gt=null,ho=!1,ts=!1;function Sd(e){gt===null?gt=[e]:gt.push(e)}function u0(e){ho=!0,Sd(e)}function Xt(){if(!ts&>!==null){ts=!0;var e=0,t=U;try{var n=gt;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,ho=!1}catch(i){throw gt!==null&&(gt=gt.slice(e+1)),Bc(Nl,Xt),i}finally{U=t,ts=!1}}return null}var Dn=[],Pn=0,Qi=null,Ki=0,Ue=[],He=0,an=null,mt=1,vt="";function Jt(e,t){Dn[Pn++]=Ki,Dn[Pn++]=Qi,Qi=e,Ki=t}function wd(e,t,n){Ue[He++]=mt,Ue[He++]=vt,Ue[He++]=an,an=e;var r=mt;e=vt;var i=32-nt(r)-1;r&=~(1<<i),n+=1;var o=32-nt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,mt=1<<32-nt(t)+i|n<<i|r,vt=o+e}else mt=1<<o|n<<i|r,vt=e}function Ul(e){e.return!==null&&(Jt(e,1),wd(e,1,0))}function Hl(e){for(;e===Qi;)Qi=Dn[--Pn],Dn[Pn]=null,Ki=Dn[--Pn],Dn[Pn]=null;for(;e===an;)an=Ue[--He],Ue[He]=null,vt=Ue[--He],Ue[He]=null,mt=Ue[--He],Ue[He]=null}var Ne=null,Ie=null,Q=!1,tt=null;function Cd(e,t){var n=Be(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
2024-02-26 21:03:03 +03:00
Error generating stack : ` +o.message+ `
2024-03-10 18:06:49 +03:00
` +o.stack}return{value:e,source:t,stack:i,digest:null}}function ss(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function el(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var v0=typeof WeakMap=="function"?WeakMap:Map;function Gd(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){to||(to=!0,cl=r),el(e,t)},n}function Yd(e,t,n){n=yt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){el(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){el(e,t),typeof r!="function"&&(Wt===null?Wt=new Set([this]):Wt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ha(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new v0;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=I0.bind(null,e,t,n),t.then(e,e))}function pa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ga(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yt(-1,1),t.tag=2,Ht(n,t,1))),n.lanes|=1),e)}var y0=kt.ReactCurrentOwner,_e=!1;function ve(e,t,n,r){t.child=e===null?Dd(t,null,n,r):Hn(t,e.child,n,r)}function ma(e,t,n,r,i){n=n.render;var o=t.ref;return bn(t,i),r=Jl(e,t,n,r,o,i),n=eu(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Et(e,t,i)):(Q&&n&&Ul(t),t.flags|=1,ve(e,t,r,i),t.child)}function va(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!cu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xd(e,t,o,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Lr,n(s,r)&&e.ref===t.ref)return Et(e,t,i)}return t.flags|=1,e=Vt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Lr(o,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,Et(e,t,i)}return tl(e,t,n,r,i)}function Zd(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Nn,Le),Le|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Nn,Le),Le|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,W(Nn,Le),Le|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,W(Nn,Le),Le|=r;return ve(e,t,i,n),t.child}function Jd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tl(e,t,n,r,i){var o=Oe(n)?un:me.current;return o= $ n(t,o),bn(t,i),n=Jl(e,t,n,r,o,i),r=eu(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Et(e,t,i)):(Q&&r&&Ul(t),t.flags|=1,ve(e,t,n,i),t.child)}function ya(e,t,n,r,i){if(Oe(n)){var o=!0;Vi(t)}else o=!1;if(bn(t,i),t.stateNode===null)Di(e,t),Od(t,n,r),Js(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Qe(a):(a=Oe(n)?un:me.current,a= $ n(t,a));var g=n.getDerivedStateFromProps,p=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==a)&&aa(t,s,r,a),It=!1;var f=t.memoizedState;s.state=f,Yi(t,r,s,i),u=t.memoizedState,l!==r||f!==u||xe.current||It?(typeof g=="function"&&(Zs(t,n,g,r),u=t.memoizedState),(l=It||ua(t,n,l,r,f,u,a))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.compon
2024-02-26 21:03:03 +03:00
* @ license
* Copyright ( c ) 2023 , Jeff Hlywa ( jhlywa @ gmail . com )
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1. Redistributions of source code must retain the above copyright notice ,
* this list of conditions and the following disclaimer .
* 2. Redistributions in binary form must reproduce the above copyright notice ,
* this list of conditions and the following disclaimer in the documentation
* and / or other materials provided with the distribution .
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
* CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS
* INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN
* CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE )
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE .
2024-03-10 18:06:49 +03:00
* / c o n s t p e = " w " , $ e = " b " , o e = " p " , p l = " n " , N i = " b " , d r = " r " , N t = " q " , n e = " k " , c s = " r n b q k b n r / p p p p p p p p / 8 / 8 / 8 / 8 / P P P P P P P P / R N B Q K B N R w K Q k q - 0 1 " , E e = - 1 , W 0 = { N O R M A L : " n " , C A P T U R E : " c " , B I G _ P A W N : " b " , E P _ C A P T U R E : " e " , P R O M O T I O N : " p " , K S I D E _ C A S T L E : " k " , Q S I D E _ C A S T L E : " q " } , I = { N O R M A L : 1 , C A P T U R E : 2 , B I G _ P A W N : 4 , E P _ C A P T U R E : 8 , P R O M O T I O N : 1 6 , K S I D E _ C A S T L E : 3 2 , Q S I D E _ C A S T L E : 6 4 } , R = { a 8 : 0 , b 8 : 1 , c 8 : 2 , d 8 : 3 , e 8 : 4 , f 8 : 5 , g 8 : 6 , h 8 : 7 , a 7 : 1 6 , b 7 : 1 7 , c 7 : 1 8 , d 7 : 1 9 , e 7 : 2 0 , f 7 : 2 1 , g 7 : 2 2 , h 7 : 2 3 , a 6 : 3 2 , b 6 : 3 3 , c 6 : 3 4 , d 6 : 3 5 , e 6 : 3 6 , f 6 : 3 7 , g 6 : 3 8 , h 6 : 3 9 , a 5 : 4 8 , b 5 : 4 9 , c 5 : 5 0 , d 5 : 5 1 , e 5 : 5 2 , f 5 : 5 3 , g 5 : 5 4 , h 5 : 5 5 , a 4 : 6 4 , b 4 : 6 5 , c 4 : 6 6 , d 4 : 6 7 , e 4 : 6 8 , f 4 : 6 9 , g 4 : 7 0 , h 4 : 7 1 , a 3 : 8 0 , b 3 : 8 1 , c 3 : 8 2 , d 3 : 8 3 , e 3 : 8 4 , f 3 : 8 5 , g 3 : 8 6 , h 3 : 8 7 , a 2 : 9 6 , b 2 : 9 7 , c 2 : 9 8 , d 2 : 9 9 , e 2 : 1 0 0 , f 2 : 1 0 1 , g 2 : 1 0 2 , h 2 : 1 0 3 , a 1 : 1 1 2 , b 1 : 1 1 3 , c 1 : 1 1 4 , d 1 : 1 1 5 , e 1 : 1 1 6 , f 1 : 1 1 7 , g 1 : 1 1 8 , h 1 : 1 1 9 } , d s = { b : [ 1 6 , 3 2 , 1 7 , 1 5 ] , w : [ - 1 6 , - 3 2 , - 1 7 , - 1 5 ] } , N a = { n : [ - 1 8 , - 3 3 , - 3 1 , - 1 4 , 1 8 , 3 3 , 3 1 , 1 4 ] , b : [ - 1 7 , - 1 5 , 1 7 , 1 5 ] , r : [ - 1 6 , 1 , 1 6 , - 1 ] , q : [ - 1 7 , - 1 6 , - 1 5 , 1 , 1 7 , 1 6 , 1 5 , - 1 ] , k : [ - 1 7 , - 1 6 , - 1 5 , 1 , 1 7 , 1 6 , 1 5 , - 1 ] } , B 0 = [ 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 2 4 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 2 , 2 4 , 2 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 5 3 , 5 6 , 5 3 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , 2 4 , 2 4 , 2 4 , 2 4 , 2 4 , 2 4 , 5 6 , 0 , 5 6 , 2 4 , 2 4 , 2 4 , 2 4 , 2 4 , 2 4 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 5 3 , 5 6 , 5 3 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 2 , 2 4 , 2 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 2 4 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 0 , 0 , 2 0 , 0 , 0 , 2 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 4 , 0 , 0 , 0 , 0 , 0 , 0 , 2 0 ] , V 0 = [ 1 7 , 0 , 0 , 0 , 0 , 0 , 0 , 1 6 , 0 , 0 , 0 , 0 , 0 , 0 , 1 5 , 0 , 0 , 1 7 , 0 , 0 , 0 , 0 , 0 , 1 6 , 0 , 0 , 0 , 0 , 0 , 1 5 , 0 , 0 , 0 , 0 , 1 7 , 0 , 0 , 0 , 0 , 1 6 , 0 , 0 , 0 , 0 , 1 5 , 0 , 0 , 0 , 0 , 0 , 0 , 1 7 , 0 , 0 , 0 , 1 6 , 0 , 0 , 0 , 1 5 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 7 , 0 , 0 , 1 6 , 0 , 0 , 1 5 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 7 , 0 , 1 6 , 0 , 1 5 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 7 , 1 6 , 1 5 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 5 , - 1 6 , - 1 7 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 5 , 0 , - 1 6 , 0 , - 1 7 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 5 , 0 , 0 , - 1 6 , 0 , 0 , - 1 7 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 5 , 0 , 0 , 0 , - 1 6 , 0 , 0 , 0 , - 1 7 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 5 , 0 , 0 , 0 , 0 , - 1 6 , 0 , 0 , 0 , 0 , - 1 7 , 0 , 0 , 0 , 0 , - 1 5 , 0 , 0 , 0 , 0 , 0 , - 1 6 , 0 , 0 , 0 , 0 , 0 , - 1 7 , 0 , 0 , - 1 5 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 6 , 0 , 0 , 0 , 0 , 0 , 0 , - 1 7 ] , Q 0 = { p : 1 , n : 2 , b : 4 , r : 8 , q : 1 6 , k : 3 2 } , K 0 = " p n b r q k P N B R Q K " , j a = [ p l , N i , d r , N t ] , q 0 = 7 , G 0 = 6 , Y 0 = 1 , X 0 = 0 , v i = { [ n e ] : I . K S I D E _ C A S T L E , [ N t ] : I . Q S I D E _ C A S T L E } , D t = { w : [ { s q u a r e : R . a 1 , f l a g : I . Q S I D E _ C A S T L E } , { s q u a r e : R . h 1 , f l a g : I . K S I D E _ C A S T L E } ] , b : [ { s q u a r e : R . a 8 , f l a g : I . Q S I D E _ C A S T L E } , { s q u a r e : R . h 8 , f l a g : I . K S I D E _ C A S T L E } ] } , Z 0 = { b : Y 0 , w : G 0 } , J 0 = [ " 1 - 0 " , " 0 - 1 " , " 1 / 2 - 1 / 2 " , " * " ] ; f u n c t i o n l n ( e ) { r e t u r n e > > 4 } f u n c t i o n $ r ( e ) { r e t u r n e & 1 5 } f u n c t i o n _ f ( e ) { r e t u r n " 0 1 2 3 4 5 6 7 8 9 " . i n d e x O f ( e ) ! = = - 1 } f u n c t i o n P e ( e ) { c o n s t t = $ r ( e ) , n = l n ( e ) ; r e t u r n " a b c d e f g h " . s u b s t r i n g ( t , t + 1 ) + " 8 7 6 5 4 3 2 1 " . s u b s t r i n g ( n , n + 1 ) } f u n c t i o n i r ( e ) { r e t u r n e = = = p e ? $ e : p e } f u n c t i o n e g ( e ) { c o n s t t = e . s p l i t ( / \ s + / ) ; i f ( t . l e n g t h ! = = 6 ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : m u s t c o n t a i n s i x s p a c e - d e l i m i t e d f i e l d s " } ; c o n s t n = p a r s e I n t ( t [ 5 ] , 1 0 ) ; i f ( i s N a N ( n ) | | n < = 0 ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : m o v e n u m b e r m u s t b e a p o s i t i v e i n t e g e r " } ; c o n s t r = p a r s e I n t ( t [ 4 ] , 1 0 ) ; i f ( i s N a N ( r ) | | r < 0 ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : h a l f m o v e c o u n t e r n u m b e r m u s t b e a n o n - n e g a t i v e i n t e g e r " } ; i f ( ! / ^ ( - | [ a b c d e f g h ] [ 3 6 ] ) $ / . t e s t ( t [ 3 ] ) ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : e n - p a s s a n t s q u a r e i s i n v a l i d " } ; i f ( / [ ^ k K q Q - ] / . t e s t ( t [ 2 ] ) ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : c a s t l i n g a v a i l a b i l i t y i s i n v a l i d " } ; i f ( ! / ^ ( w | b ) $ / . t e s t ( t [ 1 ] ) ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : s i d e - t o - m o v e i s i n v a l i d " } ; c o n s t i = t [ 0 ] . s p l i t ( " / " ) ; i f ( i . l e n g t h ! = = 8 ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : p i e c e d a t a d o e s n o t c o n t a i n 8 ' / ' - d e l i m i t e d r o w s " } ; f o r ( l e t s = 0 ; s < i . l e n g t h ; s + + ) { l e t l = 0 , u = ! 1 ; f o r ( l e t a = 0 ; a < i [ s ] . l e n g t h ; a + + ) i f ( _ f ( i [ s ] [ a ] ) ) { i f ( u ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : p i e c e d a t a i s i n v a l i d ( c o n s e c u t i v e n u m b e r ) " } ; l + = p a r s e I n t ( i [ s ] [ a ] , 1 0 ) , u = ! 0 } e l s e { i f ( ! / ^ [ p r n b q k P R N B Q K ] $ / . t e s t ( i [ s ] [ a ] ) ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : p i e c e d a t a i s i n v a l i d ( i n v a l i d p i e c e ) " } ; l + = 1 , u = ! 1 } i f ( l ! = = 8 ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : p i e c e d a t a i s i n v a l i d ( t o o m a n y s q u a r e s i n r a n k ) " } } i f ( t [ 3 ] [ 1 ] = = " 3 " & & t [ 1 ] = = " w " | | t [ 3 ] [ 1 ] = = " 6 " & & t [ 1 ] = = " b " ) r e t u r n { o k : ! 1 , e r r o r : " I n v a l i d F E N : i l l e g a l e n - p a s s a n t s q u a r e " } ; c o n s t o = [ { c o l o r : " w h i t e " , r e g e x : / K / g } , { c o l o r : " b l a c k " , r e g e x : / k / g } ] ; f o r ( c o n s t { c o l o r : s , r e g e x : l } o f o ) { i f ( ! l . t e s t ( t [ 0 ] ) ) r e t u r n { o k : ! 1 , e r r o r : ` I n v a l i d F E N : m i s s i n g $ { s } k i n g ` } ; i f ( ( t [ 0 ] . m a t c h ( l ) | | [ ] ) . l e n g t h > 1 ) r e t u r n { o k : ! 1 , e r r o r : ` I n v a l i d F E N : t
2024-02-26 21:03:03 +03:00
` ,maxWidth:n=0}={}){const r=[];let i=!1;for(const f in this._header)r.push("["+f+' "'+this._header[f]+'"]'+t),i=!0;i&&this._history.length&&r.push(t);const o=f=>{const S=this._comments[this.fen()];if(typeof S<"u"){const m=f.length>0?" ":"";f= ` $ { f } $ { m } { $ { S } } ` }return f},s=[];for(;this._history.length>0;)s.push(this._undoMove());const l=[];let u="";for(s.length===0&&l.push(o(""));s.length>0;){u=o(u);const f=s.pop();if(!f)break;if(!this._history.length&&f.color==="b"){const S= ` $ { this . _moveNumber } . ... ` ;u=u? ` $ { u } $ { S } ` :S}else f.color==="w"&&(u.length&&l.push(u),u=this._moveNumber+".");u=u+" "+this._moveToSan(f,this._moves({legal:!0})),this._makeMove(f)}if(u.length&&l.push(o(u)),typeof this._header.Result<"u"&&l.push(this._header.Result),n===0)return r.join("")+l.join(" ");const a=function(){return r.length>0&&r[r.length-1]===" "?(r.pop(),!0):!1},g=function(f,S){for(const m of S.split(" "))if(m){if(f+m.length>n){for(;a();)f--;r.push(t),f=0}r.push(m),f+=m.length,r.push(" "),f++}return a()&&f--,f};let p=0;for(let f=0;f<l.length;f++){if(p+l[f].length>n&&l[f].includes("{")){p=g(p,l[f]);continue}p+l[f].length>n&&f!==0?(r[r.length-1]===" "&&r.pop(),r.push(t),p=0):f!==0&&(r.push(" "),p++),r.push(l[f]),p+=l[f].length}return r.join("")}header(...t){for(let n=0;n<t.length;n+=2)typeof t[n]=="string"&&typeof t[n+1]=="string"&&(this._header[t[n]]=t[n+1]);return this._header}loadPgn(t,{strict:n=!1,newlineChar:r= ` \ r ?
2024-03-10 18:06:49 +03:00
` }={}){function i(h){return h.replace(/ \\ /g," \\ ")}function o(h){const w={},k=h.split(new RegExp(i(r)));let O="",x="";for(let T=0;T<k.length;T++){const z=/^ \s * \[ \s *([A-Za-z]+) \s *"(.*)" \s * \] \s * $ /;O=k[T].replace(z," $ 1"),x=k[T].replace(z," $ 2"),O.trim().length>0&&(w[O]=x)}return w}t=t.trim();const l=new RegExp("^( \\ [((?:"+i(r)+")|.)* \\ ])((?: \\ s*"+i(r)+"){2}|(?: \\ s*"+i(r)+")* $ )").exec(t),u=l&&l.length>=2?l[1]:"";this.reset();const a=o(u);let g="";for(const h in a)h.toLowerCase()==="fen"&&(g=a[h]),this.header(h,a[h]);if(!n)g&&this.load(g,{preserveHeaders:!0});else if(a.SetUp==="1"){if(!("FEN"in a))throw new Error("Invalid PGN: FEN tag must be supplied with SetUp tag");this.load(a.FEN,{preserveHeaders:!0})}function p(h){return Array.from(h).map(function(w){return w.charCodeAt(0)<128?w.charCodeAt(0).toString(16):encodeURIComponent(w).replace(/%/g,"").toLowerCase()}).join("")}function f(h){return h.length==0?"":decodeURIComponent("%"+(h.match(/.{1,2}/g)||[]).join("%"))}const S=function(h){return h=h.replace(new RegExp(i(r),"g")," "), ` { $ { p ( h . slice ( 1 , h . length - 1 ) ) } } ` },m=function(h){if(h.startsWith("{")&&h.endsWith("}"))return f(h.slice(1,h.length-1))};let y=t.replace(u,"").replace(new RegExp( ` ( { [ ^ } ] * } ) + ? | ; ( [ ^ $ { i ( r ) } ] * ) ` ,"g"),function(h,w,k){return w!==void 0?S(w):" "+S( ` { $ { k . slice ( 1 ) } } ` )}).replace(new RegExp(i(r),"g")," ");const C=/( \( [^()]+ \) )+?/g;for(;C.test(y);)y=y.replace(C,"");y=y.replace(/ \d + \. ( \. \. )?/g,""),y=y.replace(/ \. \. \. /g,""),y=y.replace(/ \$ \d +/g,"");let d=y.trim().split(new RegExp(/ \s +/));d=d.filter(h=>h!=="");let c="";for(let h=0;h<d.length;h++){const w=m(d[h]);if(w!==void 0){this._comments[this.fen()]=w;continue}const k=this._moveFromSan(d[h],n);if(k==null)if(J0.indexOf(d[h])>-1)c=d[h];else throw new Error( ` Invalid move in PGN : $ { d [ h ] } ` );else c="",this._makeMove(k),this._positionCounts[this.fen()]++}c&&Object.keys(this._header).length&&!this._header.Result&&this.header("Result",c)}_moveToSan(t,n){let r="";if(t.flags&I.KSIDE_CASTLE)r="O-O";else if(t.flags&I.QSIDE_CASTLE)r="O-O-O";else{if(t.piece!==oe){const i=tg(t,n);r+=t.piece.toUpperCase()+i}t.flags&(I.CAPTURE|I.EP_CAPTURE)&&(t.piece===oe&&(r+=Pe(t.from)[0]),r+="x"),r+=Pe(t.to),t.promotion&&(r+="="+t.promotion.toUpperCase())}return this._makeMove(t),this.isCheck()&&(this.isCheckmate()?r+="#":r+="+"),this._undoMove(),r}_moveFromSan(t,n=!1){const r=fs(t);let i=Ra(r),o=this._moves({legal:!0,piece:i});for(let f=0,S=o.length;f<S;f++)if(r===fs(this._moveToSan(o[f],o)))return o[f];if(n)return null;let s,l,u,a,g,p=!1;if(l=r.match(/([pnbrqkPNBRQK])?([a-h][1-8])x?-?([a-h][1-8])([qrbnQRBN])?/),l?(s=l[1],u=l[2],a=l[3],g=l[4],u.length==1&&(p=!0)):(l=r.match(/([pnbrqkPNBRQK])?([a-h]?[1-8]?)x?-?([a-h][1-8])([qrbnQRBN])?/),l&&(s=l[1],u=l[2],a=l[3],g=l[4],u.length==1&&(p=!0))),i=Ra(r),o=this._moves({legal:!0,piece:s||i}),!a)return null;for(let f=0,S=o.length;f<S;f++)if(u){if((!s||s.toLowerCase()==o[f].piece)&&R[u]==o[f].from&&R[a]==o[f].to&&(!g||g.toLowerCase()==o[f].promotion))return o[f];if(p){const m=Pe(o[f].from);if((!s||s.toLowerCase()==o[f].piece)&&R[a]==o[f].to&&(u==m[0]||u==m[1])&&(!g||g.toLowerCase()==o[f].promotion))return o[f]}}else if(r===fs(this._moveToSan(o[f],o)).replace("x",""))return o[f];return null}ascii(){let t= ` + -- -- -- -- -- -- -- -- -- -- -- -- +
2024-02-26 21:03:03 +03:00
` ;for(let n=R.a8;n<=R.h1;n++){if( $ r(n)===0&&(t+=" "+"87654321"[ln(n)]+" |"),this._board[n]){const r=this._board[n].type,o=this._board[n].color===pe?r.toUpperCase():r.toLowerCase();t+=" "+o+" "}else t+=" . ";n+1&136&&(t+= ` |
` ,n+=8)}return t+= ` + -- -- -- -- -- -- -- -- -- -- -- -- +
2024-03-10 18:06:49 +03:00
` ,t+=" a b c d e f g h",t}perft(t){const n=this._moves({legal:!1});let r=0;const i=this._turn;for(let o=0,s=n.length;o<s;o++)this._makeMove(n[o]),this._isKingAttacked(i)||(t-1>0?r+=this.perft(t-1):r++),this._undoMove();return r}_makePretty(t){const{color:n,piece:r,from:i,to:o,flags:s,captured:l,promotion:u}=t;let a="";for(const S in I)I[S]&s&&(a+=W0[S]);const g=Pe(i),p=Pe(o),f={color:n,piece:r,from:g,to:p,san:this._moveToSan(t,this._moves({legal:!0})),flags:a,lan:g+p,before:this.fen(),after:""};return this._makeMove(t),f.after=this.fen(),this._undoMove(),l&&(f.captured=l),u&&(f.promotion=u,f.lan+=u),f}turn(){return this._turn}board(){const t=[];let n=[];for(let r=R.a8;r<=R.h1;r++)this._board[r]==null?n.push(null):n.push({square:Pe(r),type:this._board[r].type,color:this._board[r].color}),r+1&136&&(t.push(n),n=[],r+=8);return t}squareColor(t){if(t in R){const n=R[t];return(ln(n)+ $ r(n))%2===0?"light":"dark"}return null}history({verbose:t=!1}={}){const n=[],r=[];for(;this._history.length>0;)n.push(this._undoMove());for(;;){const i=n.pop();if(!i)break;t?r.push(this._makePretty(i)):r.push(this._moveToSan(i,this._moves())),this._makeMove(i)}return r}_pruneComments(){const t=[],n={},r=i=>{i in this._comments&&(n[i]=this._comments[i])};for(;this._history.length>0;)t.push(this._undoMove());for(r(this.fen());;){const i=t.pop();if(!i)break;this._makeMove(i),r(this.fen())}this._comments=n}getComment(){return this._comments[this.fen()]}setComment(t){this._comments[this.fen()]=t.replace("{","[").replace("}","]")}deleteComment(){const t=this._comments[this.fen()];return delete this._comments[this.fen()],t}getComments(){return this._pruneComments(),Object.keys(this._comments).map(t=>({fen:t,comment:this._comments[t]}))}deleteComments(){return this._pruneComments(),Object.keys(this._comments).map(t=>{const n=this._comments[t];return delete this._comments[t],{fen:t,comment:n}})}setCastlingRights(t,n){for(const i of[ne,Nt])n[i]!==void 0&&(n[i]?this._castling[t]|=vi[i]:this._castling[t]&=~vi[i]);this._updateCastlingRights();const r=this.getCastlingRights(t);return(n[ne]===void 0||n[ne]===r[ne])&&(n[Nt]===void 0||n[Nt]===r[Nt])}getCastlingRights(t){return{[ne]:(this._castling[t]&vi[ne])!==0,[Nt]:(this._castling[t]&vi[Nt])!==0}}moveNumber(){return this._moveNumber}}function rg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const xf=E.createContext({dragDropManager:void 0});function Fe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Aa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),hs=function(){return Math.random().toString(36).substring(7).split("").join(".")},ba={INIT:"@@redux/INIT"+hs(),REPLACE:"@@redux/REPLACE"+hs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hs()}};function ig(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Of(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Fe(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fe(1));return n(Of)(e,t)}if(typeof e!="function")throw new Error(Fe(2));var i=e,o=t,s=[],l=s,u=!1;function a(){l===s&&(l=s.slice())}function g(){if(u)throw new Error(Fe(3));return o}function p(y){if(typeof y!="function")throw new Error(Fe(4));if(u)throw new Error(Fe(5));var C=!0;return a(),l.push(y),function(){if(C){if(u)throw new Error(Fe(6));C=!1,a();var c=l.indexOf(y);l.splice(c,1),s=null}}}function f(y){if(!ig(y))throw new Error(Fe(7));if(typeof y.type>"u")throw new Error(Fe(8));if(u)throw new Error(Fe(9))
` ),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ $ f]:{exposeProperties:{text:(e,t)=>vs(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function nm(e,t){const n=Sl[e];if(!n)throw new Error( ` native type $ { e } has no configuration ` );const r=new tm(n);return r.loadDataTransfer(t),r}function ys(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Sl).filter(n=>{const r=Sl[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const rm=bf(()=>/firefox/i.test(navigator.userAgent)),Hf=bf(()=>!!window.safari);class Qa{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let u=0,a=s.length-1,g;for(;u<=a;){g=Math.floor(.5*(u+a));const S=n[g];if(S<t)u=g+1;else if(S>t)a=g-1;else return r[g]}l=Math.max(0,a);const p=t-n[l],f=p*p;return r[l]+i[l]*p+o[l]*f+s[l]*p*f}constructor(t,n){const{length:r}=t,i=[];for(let S=0;S<r;S++)i.push(S);i.sort((S,m)=>t[S]<t[m]?-1:1);const o=[],s=[];let l,u;for(let S=0;S<r-1;S++)l=t[S+1]-t[S],u=n[S+1]-n[S],o.push(l),s.push(u/l);const a=[s[0]];for(let S=0;S<o.length-1;S++){const m=s[S],y=s[S+1];if(m*y<=0)a.push(0);else{l=o[S];const C=o[S+1],d=l+C;a.push(3*d/((d+C)/m+(d+l)/y))}}a.push(s[s.length-1]);const g=[],p=[];let f;for(let S=0;S<a.length-1;S++){f=s[S];const m=a[S],y=1/o[S],C=m+a[S+1]-f-f;g.push((f-m-C)*y),p.push(C*y*y)}this.xs=t,this.ys=n,this.c1s=a,this.c2s=g,this.c3s=p}}const im=1;function Wf(e){const t=e.nodeType===im?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function yi(e){return{x:e.clientX,y:e.clientY}}function om(e){var t;return e.nodeName==="IMG"&&(rm()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function sm(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return Hf()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function lm(e,t,n,r,i){const o=om(t),l=Wf(o?e:t),u={x:n.x-l.x,y:n.y-l.y},{offsetWidth:a,offsetHeight:g}=e,{anchorX:p,anchorY:f}=r,{dragPreviewWidth:S,dragPreviewHeight:m}=sm(o,t,a,g),y=()=>{let O=new Qa([0,.5,1],[u.y,u.y/g*m,u.y+m-g]).interpolate(f);return Hf()&&o&&(O+=(window.devicePixelRatio-1)*m),O},C=()=>new Qa([0,.5,1],[u.x,u.x/a*S,u.x+S-a]).interpolate(p),{offsetX:d,offsetY:c}=i,h=d===0||d,w=c===0||c;return{x:h?d:C(),y:w?c:y()}}let um=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function am(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){am(e,i,n[i])})}return e}class cm{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}tea
2024-02-26 21:03:03 +03:00
* @ license React
* use - sync - external - store - shim . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* / v a r Q n = E ; f u n c t i o n Y m ( e , t ) { r e t u r n e = = = t & & ( e ! = = 0 | | 1 / e = = = 1 / t ) | | e ! = = e & & t ! = = t } v a r X m = t y p e o f O b j e c t . i s = = " f u n c t i o n " ? O b j e c t . i s : Y m , Z m = Q n . u s e S t a t e , J m = Q n . u s e E f f e c t , e v = Q n . u s e L a y o u t E f f e c t , t v = Q n . u s e D e b u g V a l u e ; f u n c t i o n n v ( e , t ) { v a r n = t ( ) , r = Z m ( { i n s t : { v a l u e : n , g e t S n a p s h o t : t } } ) , i = r [ 0 ] . i n s t , o = r [ 1 ] ; r e t u r n e v ( f u n c t i o n ( ) { i . v a l u e = n , i . g e t S n a p s h o t = t , w s ( i ) & & o ( { i n s t : i } ) } , [ e , n , t ] ) , J m ( f u n c t i o n ( ) { r e t u r n w s ( i ) & & o ( { i n s t : i } ) , e ( f u n c t i o n ( ) { w s ( i ) & & o ( { i n s t : i } ) } ) } , [ e ] ) , t v ( n ) , n } f u n c t i o n w s ( e ) { v a r t = e . g e t S n a p s h o t ; e = e . v a l u e ; t r y { v a r n = t ( ) ; r e t u r n ! X m ( e , n ) } c a t c h { r e t u r n ! 0 } } f u n c t i o n r v ( e , t ) { r e t u r n t ( ) } v a r i v = t y p e o f w i n d o w > " u " | | t y p e o f w i n d o w . d o c u m e n t > " u " | | t y p e o f w i n d o w . d o c u m e n t . c r e a t e E l e m e n t > " u " ? r v : n v ; Y f . u s e S y n c E x t e r n a l S t o r e = Q n . u s e S y n c E x t e r n a l S t o r e ! = = v o i d 0 ? Q n . u s e S y n c E x t e r n a l S t o r e : i v ; G f . e x p o r t s = Y f ; v a r o v = G f . e x p o r t s ; / * *
* @ license React
* use - sync - external - store - shim / with - selector . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
2024-03-10 18:06:49 +03:00
* / v a r D o = E , s v = o v ; f u n c t i o n l v ( e , t ) { r e t u r n e = = = t & & ( e ! = = 0 | | 1 / e = = = 1 / t ) | | e ! = = e & & t ! = = t } v a r u v = t y p e o f O b j e c t . i s = = " f u n c t i o n " ? O b j e c t . i s : l v , a v = s v . u s e S y n c E x t e r n a l S t o r e , c v = D o . u s e R e f , d v = D o . u s e E f f e c t , f v = D o . u s e M e m o , h v = D o . u s e D e b u g V a l u e ; q f . u s e S y n c E x t e r n a l S t o r e W i t h S e l e c t o r = f u n c t i o n ( e , t , n , r , i ) { v a r o = c v ( n u l l ) ; i f ( o . c u r r e n t = = = n u l l ) { v a r s = { h a s V a l u e : ! 1 , v a l u e : n u l l } ; o . c u r r e n t = s } e l s e s = o . c u r r e n t ; o = f v ( f u n c t i o n ( ) { f u n c t i o n u ( S ) { i f ( ! a ) { i f ( a = ! 0 , g = S , S = r ( S ) , i ! = = v o i d 0 & & s . h a s V a l u e ) { v a r m = s . v a l u e ; i f ( i ( m , S ) ) r e t u r n p = m } r e t u r n p = S } i f ( m = p , u v ( g , S ) ) r e t u r n m ; v a r y = r ( S ) ; r e t u r n i ! = = v o i d 0 & & i ( m , y ) ? m : ( g = S , p = y ) } v a r a = ! 1 , g , p , f = n = = = v o i d 0 ? n u l l : n ; r e t u r n [ f u n c t i o n ( ) { r e t u r n u ( t ( ) ) } , f = = = n u l l ? v o i d 0 : f u n c t i o n ( ) { r e t u r n u ( f ( ) ) } ] } , [ t , n , r , i ] ) ; v a r l = a v ( e , o [ 0 ] , o [ 1 ] ) ; r e t u r n d v ( f u n c t i o n ( ) { s . h a s V a l u e = ! 0 , s . v a l u e = l } , [ l ] ) , h v ( l ) , l } ; K f . e x p o r t s = q f ; v a r p v = K f . e x p o r t s ; c o n s t g v = u c ( p v ) , { u s e D e b u g V a l u e : m v } = y c , { u s e S y n c E x t e r n a l S t o r e W i t h S e l e c t o r : v v } = g v ; f u n c t i o n y v ( e , t = e . g e t S t a t e , n ) { c o n s t r = v v ( e . s u b s c r i b e , e . g e t S t a t e , e . g e t S e r v e r S t a t e | | e . g e t S t a t e , t , n ) ; r e t u r n m v ( r ) , r } c o n s t s c = e = > { c o n s t t = t y p e o f e = = " f u n c t i o n " ? G m ( e ) : e , n = ( r , i ) = > y v ( t , r , i ) ; r e t u r n O b j e c t . a s s i g n ( n , t ) , n } , S v = e = > e ? s c ( e ) : s c ; f u n c t i o n X f ( e , t ) { l e t n ; t r y { n = e ( ) } c a t c h { r e t u r n } r e t u r n { g e t I t e m : i = > { v a r o ; c o n s t s = u = > u = = = n u l l ? n u l l : J S O N . p a r s e ( u , t = = n u l l ? v o i d 0 : t . r e v i v e r ) , l = ( o = n . g e t I t e m ( i ) ) ! = n u l l ? o : n u l l ; r e t u r n l i n s t a n c e o f P r o m i s e ? l . t h e n ( s ) : s ( l ) } , s e t I t e m : ( i , o ) = > n . s e t I t e m ( i , J S O N . s t r i n g i f y ( o , t = = n u l l ? v o i d 0 : t . r e p l a c e r ) ) , r e m o v e I t e m : i = > n . r e m o v e I t e m ( i ) } } c o n s t H r = e = > t = > { t r y { c o n s t n = e ( t ) ; r e t u r n n i n s t a n c e o f P r o m i s e ? n : { t h e n ( r ) { r e t u r n H r ( r ) ( n ) } , c a t c h ( r ) { r e t u r n t h i s } } } c a t c h ( n ) { r e t u r n { t h e n ( r ) { r e t u r n t h i s } , c a t c h ( r ) { r e t u r n H r ( r ) ( n ) } } } } , w v = ( e , t ) = > ( n , r , i ) = > { l e t o = { g e t S t o r a g e : ( ) = > l o c a l S t o r a g e , s e r i a l i z e : J S O N . s t r i n g i f y , d e s e r i a l i z e : J S O N . p a r s e , p a r t i a l i z e : C = > C , v e r s i o n : 0 , m e r g e : ( C , d ) = > ( { . . . d , . . . C } ) , . . . t } , s = ! 1 ; c o n s t l = n e w S e t , u = n e w S e t ; l e t a ; t r y { a = o . g e t S t o r a g e ( ) } c a t c h { } i f ( ! a ) r e t u r n e ( ( . . . C ) = > { c o n s o l e . w a r n ( ` [ z u s t a n d p e r s i s t m i d d l e w a r e ] U n a b l e t o u p d a t e i t e m ' $ { o . n a m e } ' , t h e g i v e n s t o r a g e i s c u r r e n t l y u n a v a i l a b l e . ` ) , n ( . . . C ) } , r , i ) ; c o n s t g = H r ( o . s e r i a l i z e ) , p = ( ) = > { c o n s t C = o . p a r t i a l i z e ( { . . . r ( ) } ) ; l e t d ; c o n s t c = g ( { s t a t e : C , v e r s i o n : o . v e r s i o n } ) . t h e n ( h = > a . s e t I t e m ( o . n a m e , h ) ) . c a t c h ( h = > { d = h } ) ; i f ( d ) t h r o w d ; r e t u r n c } , f = i . s e t S t a t e ; i . s e t S t a t e = ( C , d ) = > { f ( C , d ) , p ( ) } ; c o n s t S = e ( ( . . . C ) = > { n ( . . . C ) , p ( ) } , r , i ) ; l e t m ; c o n s t y = ( ) = > { v a r C ; i f ( ! a ) r e t u r n ; s = ! 1 , l . f o r E a c h ( c = > c ( r ( ) ) ) ; c o n s t d = ( ( C = o . o n R e h y d r a t e S t o r a g e ) = = n u l l ? v o i d 0 : C . c a l l ( o , r ( ) ) ) | | v o i d 0 ; r e t u r n H r ( a . g e t I t e m . b i n d ( a ) ) ( o . n a m e ) . t h e n ( c = > { i f ( c ) r e t u r n o . d e s e r i a l i z e ( c ) } ) . t h e n ( c = > { i f ( c ) i f ( t y p e o f c . v e r s i o n = = " n u m b e r " & & c . v e r s i o n ! = = o . v e r s i o n ) { i f ( o . m i g r a t e ) r e t u r n o . m i g r a t e ( c . s t a t e , c . v e r s i o n ) ; c o n s o l e . e r r o r ( " S t a t e l o a d e d f r o m s t o r a g e c o u l d n ' t b e m i g r a t e d s i n c e n o m i g r a t e f u n c t i o n w a s p r o v i d e d " ) } e l s e r e t u r n c . s t a t e } ) . t h e n ( c = > { v a r h ; r e t u r n m = o . m e r g e ( c , ( h = r ( ) ) ! = n u l l ? h : S ) , n ( m , ! 0 ) , p ( ) } ) . t h e n ( ( ) = > { d = = n u l l | | d ( m , v o i d 0 ) , s = ! 0 , u . f o r E a c h ( c = > c ( m ) ) } ) . c a t c h ( c = > { d = = n u l l | | d ( v o i d 0 , c ) } ) } ; r e t u r n i . p e r s i s t = { s e t O p t i o n s : C = > { o = { . . . o , . . . C } , C . g e t S t o r a g e & & ( a = C . g e t S t o r a g e ( ) ) } , c l e a r S t o r a g e : ( ) = > { a = = n u l l | | a . r e m o v e I t e m ( o . n a m e ) } , g e t O p t i o n s : ( ) = > o , r e h y d r a t e : ( ) = > y ( ) , h a s H y d r a t e d : ( ) = > s , o n H y d r a t e : C = > ( l . a d d ( C ) , ( ) = > { l . d e l e t e ( C ) } ) , o n F i n i s h H y d r a t i o n : C = > ( u . a d d ( C ) , ( ) = > { u . d e l e t e ( C ) } ) } , y ( ) , m | | S } , C v = ( e , t ) = > ( n , r , i ) = > { l e t o = { s t o r a g e : X f ( ( ) = > l o c a l S t o r a g e ) , p a r t i a l i z e : y = > y , v e r s i o n : 0 , m e r g e : ( y , C ) = > ( { . . . C , . . . y } ) , . . . t } , s = ! 1 ; c o n s t l = n e w S e t , u = n e w S e t ; l e t a = o . s t o r a g e ; i f ( ! a ) r e t u r n e ( ( . . . y ) = > { c o n s o l e . w a r n ( ` [ z u s t a n d p e r s i s t m i d d l e w a r e ] U n a b l e t o u p d a t e i t e m ' $ { o . n a m e } ' , t h e g i v e n s t o r a g e i s c u r r e n t l y u n a v a i l a b l e . ` ) , n ( . . . y ) } , r , i ) ; c o n s t g = ( ) = > { c o n s t y = o . p a r t i a l i z e ( { . . . r ( ) } ) ; r e t u r n a . s e t I t e m ( o . n a m e , { s t a t e : y , v e r s i o n : o . v e r s i o n } ) } , p = i . s e t S t a t e ; i . s e t S t a t e = ( y , C ) = > { p ( y , C ) , g ( ) } ; c o n s t f = e ( ( . . . y ) = > { n ( . . . y ) , g ( ) } , r , i ) ; l e t S ; c o n s t m = ( ) = > { v a r y , C ; i f ( ! a ) r e t u r n ; s = ! 1 , l . f o r E a c h ( c = > { v a r h ; r e t u r n c ( ( h = r ( ) ) ! = n u l l ? h : f ) } ) ; c o n s t d = ( ( C = o . o n R e h y d r a t e S t o r a g e ) = = n u l l ? v o i d 0 : C . c a l l ( o , ( y = r ( ) ) ! = n u l l ? y : f ) ) | | v o i d 0 ; r e t u r n H r ( a . g e t I t e m . b i n d ( a ) ) ( o . n a m e ) . t h e n ( c = > { i f ( c ) i f ( t y p e o f c . v e r s i o n = = " n u m b e r " & & c . v e r s i o n ! = = o . v e r s i o n ) { i f ( o . m i g r a t e ) r e t u r n o . m i g r a t e ( c . s t a t e , c . v e r s i o n ) ; c o n s o l e . e r r o r ( " S t a t e l o a d e d f r o m s t o r a g e c o u l d n ' t b e m i g r a t e d s i n c e n o m i g r a t e f u n c t i o n w a s p r o v i d e d " ) } e l s e r e t