%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/viewer/js/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/viewer/js/index-BahqIHTU.mjs

/*! third party licenses: js/vendor.LICENSE.txt */
import{g as rf,p as UC,c as dp,a as _6}from"./viewer-main.mjs";function xr(t){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(t)}function Vk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gk(t,e){if(xr(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(xr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function XC(t){var e=Gk(t,"string");return xr(e)=="symbol"?e:e+""}function T6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,XC(r.key),r)}}function Uk(t,e,n){return e&&T6(t.prototype,e),n&&T6(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function S(t,e,n){return e=XC(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xk(t,e){return e.get?e.get.call(t):e.value}function Zk(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function ZC(t,e){return t.get(Zk(t,e))}function Cl(t,e){var n=ZC(e,t);return Xk(t,n)}function Yk(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function fp(t,e,n){var r=ZC(e,t);return Yk(t,r,n),n}var YC={exports:{}},yt={};/**
 * @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.
 */var of=Symbol.for("react.element"),Kk=Symbol.for("react.portal"),qk=Symbol.for("react.fragment"),Qk=Symbol.for("react.strict_mode"),Jk=Symbol.for("react.profiler"),e_=Symbol.for("react.provider"),t_=Symbol.for("react.context"),n_=Symbol.for("react.forward_ref"),r_=Symbol.for("react.suspense"),i_=Symbol.for("react.memo"),o_=Symbol.for("react.lazy"),I6=Symbol.iterator;function a_(t){return t===null||typeof t!="object"?null:(t=I6&&t[I6]||t["@@iterator"],typeof t=="function"?t:null)}var KC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qC=Object.assign,QC={};function Ju(t,e,n){this.props=t,this.context=e,this.refs=QC,this.updater=n||KC}Ju.prototype.isReactComponent={};Ju.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Ju.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function JC(){}JC.prototype=Ju.prototype;function Rv(t,e,n){this.props=t,this.context=e,this.refs=QC,this.updater=n||KC}var zv=Rv.prototype=new JC;zv.constructor=Rv;qC(zv,Ju.prototype);zv.isPureReactComponent=!0;var L6=Array.isArray,eS=Object.prototype.hasOwnProperty,jv={current:null},tS={key:!0,ref:!0,__self:!0,__source:!0};function nS(t,e,n){var r,i={},o=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(o=""+e.key),e)eS.call(e,r)&&!tS.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}if(t&&t.defaultProps)for(r in u=t.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:of,type:t,key:o,ref:a,props:i,_owner:jv.current}}function l_(t,e){return{$$typeof:of,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Nv(t){return typeof t=="object"&&t!==null&&t.$$typeof===of}function s_(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var A6=/\/+/g;function qg(t,e){return typeof t=="object"&&t!==null&&t.key!=null?s_(""+t.key):e.toString(36)}function Ch(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case of:case Kk:a=!0}}if(a)return a=t,i=i(a),t=r===""?"."+qg(a,0):r,L6(i)?(n="",t!=null&&(n=t.replace(A6,"$&/")+"/"),Ch(i,e,n,"",function(d){return d})):i!=null&&(Nv(i)&&(i=l_(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(A6,"$&/")+"/")+t)),e.push(i)),1;if(a=0,r=r===""?".":r+":",L6(t))for(var u=0;u<t.length;u++){o=t[u];var c=r+qg(o,u);a+=Ch(o,e,n,c,i)}else if(c=a_(t),typeof c=="function")for(t=c.call(t),u=0;!(o=t.next()).done;)o=o.value,c=r+qg(o,u++),a+=Ch(o,e,n,c,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function pp(t,e,n){if(t==null)return t;var r=[],i=0;return Ch(t,r,"","",function(o){return e.call(n,o,i++)}),r}function u_(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Er={current:null},Sh={transition:null},c_={ReactCurrentDispatcher:Er,ReactCurrentBatchConfig:Sh,ReactCurrentOwner:jv};yt.Children={map:pp,forEach:function(t,e,n){pp(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return pp(t,function(){e++}),e},toArray:function(t){return pp(t,function(e){return e})||[]},only:function(t){if(!Nv(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};yt.Component=Ju;yt.Fragment=qk;yt.Profiler=Jk;yt.PureComponent=Rv;yt.StrictMode=Qk;yt.Suspense=r_;yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c_;yt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=qC({},t.props),i=t.key,o=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,a=jv.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(c in e)eS.call(e,c)&&!tS.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&u!==void 0?u[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:of,type:t.type,key:i,ref:o,props:r,_owner:a}};yt.createContext=function(t){return t={$$typeof:t_,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:e_,_context:t},t.Consumer=t};yt.createElement=nS;yt.createFactory=function(t){var e=nS.bind(null,t);return e.type=t,e};yt.createRef=function(){return{current:null}};yt.forwardRef=function(t){return{$$typeof:n_,render:t}};yt.isValidElement=Nv;yt.lazy=function(t){return{$$typeof:o_,_payload:{_status:-1,_result:t},_init:u_}};yt.memo=function(t,e){return{$$typeof:i_,type:t,compare:e===void 0?null:e}};yt.startTransition=function(t){var e=Sh.transition;Sh.transition={};try{t()}finally{Sh.transition=e}};yt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};yt.useCallback=function(t,e){return Er.current.useCallback(t,e)};yt.useContext=function(t){return Er.current.useContext(t)};yt.useDebugValue=function(){};yt.useDeferredValue=function(t){return Er.current.useDeferredValue(t)};yt.useEffect=function(t,e){return Er.current.useEffect(t,e)};yt.useId=function(){return Er.current.useId()};yt.useImperativeHandle=function(t,e,n){return Er.current.useImperativeHandle(t,e,n)};yt.useInsertionEffect=function(t,e){return Er.current.useInsertionEffect(t,e)};yt.useLayoutEffect=function(t,e){return Er.current.useLayoutEffect(t,e)};yt.useMemo=function(t,e){return Er.current.useMemo(t,e)};yt.useReducer=function(t,e,n){return Er.current.useReducer(t,e,n)};yt.useRef=function(t){return Er.current.useRef(t)};yt.useState=function(t){return Er.current.useState(t)};yt.useSyncExternalStore=function(t,e,n){return Er.current.useSyncExternalStore(t,e,n)};yt.useTransition=function(){return Er.current.useTransition()};yt.version="18.2.0";YC.exports=yt;var j=YC.exports;const p=rf(j);var rS={exports:{}},ri={},iS={exports:{}},oS={};/**
 * @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.
 */(function(t){function e(Y,de){var ce=Y.length;Y.push(de);e:for(;0<ce;){var me=ce-1>>>1,re=Y[me];if(0<i(re,de))Y[me]=de,Y[ce]=re,ce=me;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var de=Y[0],ce=Y.pop();if(ce!==de){Y[0]=ce;e:for(var me=0,re=Y.length,ee=re>>>1;me<ee;){var ue=2*(me+1)-1,Ee=Y[ue],W=ue+1,Se=Y[W];if(0>i(Ee,ce))W<re&&0>i(Se,Ee)?(Y[me]=Se,Y[W]=ce,me=W):(Y[me]=Ee,Y[ue]=ce,me=ue);else if(W<re&&0>i(Se,ce))Y[me]=Se,Y[W]=ce,me=W;else break e}}return de}function i(Y,de){var ce=Y.sortIndex-de.sortIndex;return ce!==0?ce:Y.id-de.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();t.unstable_now=function(){return a.now()-u}}var c=[],d=[],h=1,m=null,v=3,C=!1,w=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(Y){for(var de=n(d);de!==null;){if(de.callback===null)r(d);else if(de.startTime<=Y)r(d),de.sortIndex=de.expirationTime,e(c,de);else break;de=n(d)}}function T(Y){if(x=!1,k(Y),!w)if(n(c)!==null)w=!0,te(L);else{var de=n(d);de!==null&&pe(T,de.startTime-Y)}}function L(Y,de){w=!1,x&&(x=!1,b(z),z=-1),C=!0;var ce=v;try{for(k(de),m=n(c);m!==null&&(!(m.expirationTime>de)||Y&&!X());){var me=m.callback;if(typeof me=="function"){m.callback=null,v=m.priorityLevel;var re=me(m.expirationTime<=de);de=t.unstable_now(),typeof re=="function"?m.callback=re:m===n(c)&&r(c),k(de)}else r(c);m=n(c)}if(m!==null)var ee=!0;else{var ue=n(d);ue!==null&&pe(T,ue.startTime-de),ee=!1}return ee}finally{m=null,v=ce,C=!1}}var A=!1,M=null,z=-1,D=5,B=-1;function X(){return!(t.unstable_now()-B<D)}function G(){if(M!==null){var Y=t.unstable_now();B=Y;var de=!0;try{de=M(!0,Y)}finally{de?V():(A=!1,M=null)}}else A=!1}var V;if(typeof E=="function")V=function(){E(G)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ve=ne.port2;ne.port1.onmessage=G,V=function(){ve.postMessage(null)}}else V=function(){P(G,0)};function te(Y){M=Y,A||(A=!0,V())}function pe(Y,de){z=P(function(){Y(t.unstable_now())},de)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Y){Y.callback=null},t.unstable_continueExecution=function(){w||C||(w=!0,te(L))},t.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<Y?Math.floor(1e3/Y):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(Y){switch(v){case 1:case 2:case 3:var de=3;break;default:de=v}var ce=v;v=de;try{return Y()}finally{v=ce}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Y,de){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var ce=v;v=Y;try{return de()}finally{v=ce}},t.unstable_scheduleCallback=function(Y,de,ce){var me=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?me+ce:me):ce=me,Y){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=ce+re,Y={id:h++,callback:de,priorityLevel:Y,startTime:ce,expirationTime:re,sortIndex:-1},ce>me?(Y.sortIndex=ce,e(d,Y),n(c)===null&&Y===n(d)&&(x?(b(z),z=-1):x=!0,pe(T,ce-me))):(Y.sortIndex=re,e(c,Y),w||C||(w=!0,te(L))),Y},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(Y){var de=v;return function(){var ce=v;v=de;try{return Y.apply(this,arguments)}finally{v=ce}}}})(oS);iS.exports=oS;var gd=iS.exports;/**
 * @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 aS=j,ti=gd;function Oe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var lS=new Set,Md={};function Ql(t,e){Mu(t,e),Mu(t+"Capture",e)}function Mu(t,e){for(Md[t]=e,t=0;t<e.length;t++)lS.add(e[t])}var Zo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pm=Object.prototype.hasOwnProperty,d_=/^[: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]*$/,M6={},R6={};function f_(t){return pm.call(R6,t)?!0:pm.call(M6,t)?!1:d_.test(t)?R6[t]=!0:(M6[t]=!0,!1)}function p_(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function h_(t,e,n,r){if(e===null||typeof e>"u"||p_(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function br(t,e,n,r,i,o,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){nr[t]=new br(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];nr[e]=new br(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){nr[t]=new br(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){nr[t]=new br(t,2,!1,t,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(t){nr[t]=new br(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){nr[t]=new br(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){nr[t]=new br(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){nr[t]=new br(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){nr[t]=new br(t,5,!1,t.toLowerCase(),null,!1,!1)});var Dv=/[\-:]([a-z])/g;function Bv(t){return t[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-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Dv,Bv);nr[e]=new br(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Dv,Bv);nr[e]=new br(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Dv,Bv);nr[e]=new br(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){nr[t]=new br(t,1,!1,t.toLowerCase(),null,!1,!1)});nr.xlinkHref=new br("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){nr[t]=new br(t,1,!1,t.toLowerCase(),null,!0,!0)});function Hv(t,e,n,r){var i=nr.hasOwnProperty(e)?nr[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(h_(e,n,i,r)&&(n=null),r||i===null?f_(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var ta=aS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hp=Symbol.for("react.element"),ou=Symbol.for("react.portal"),au=Symbol.for("react.fragment"),Fv=Symbol.for("react.strict_mode"),hm=Symbol.for("react.profiler"),sS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),$v=Symbol.for("react.forward_ref"),gm=Symbol.for("react.suspense"),mm=Symbol.for("react.suspense_list"),Wv=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),cS=Symbol.for("react.offscreen"),z6=Symbol.iterator;function Ac(t){return t===null||typeof t!="object"?null:(t=z6&&t[z6]||t["@@iterator"],typeof t=="function"?t:null)}var hn=Object.assign,Qg;function id(t){if(Qg===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Qg=e&&e[1]||""}return"\n"+Qg+t}var Jg=!1;function e2(t,e){if(!t||Jg)return"";Jg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(d){var r=d}Reflect.construct(t,[],e)}else{try{e.call()}catch(d){r=d}t.call(e.prototype)}else{try{throw Error()}catch(d){r=d}t()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,u=o.length-1;1<=a&&0<=u&&i[a]!==o[u];)u--;for(;1<=a&&0<=u;a--,u--)if(i[a]!==o[u]){if(a!==1||u!==1)do if(a--,u--,0>u||i[a]!==o[u]){var c="\n"+i[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=u);break}}}finally{Jg=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?id(t):""}function g_(t){switch(t.tag){case 5:return id(t.type);case 16:return id("Lazy");case 13:return id("Suspense");case 19:return id("SuspenseList");case 0:case 2:case 15:return t=e2(t.type,!1),t;case 11:return t=e2(t.type.render,!1),t;case 1:return t=e2(t.type,!0),t;default:return""}}function vm(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case au:return"Fragment";case ou:return"Portal";case hm:return"Profiler";case Fv:return"StrictMode";case gm:return"Suspense";case mm:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case uS:return(t.displayName||"Context")+".Consumer";case sS:return(t._context.displayName||"Context")+".Provider";case $v:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wv:return e=t.displayName||null,e!==null?e:vm(t.type)||"Memo";case ba:e=t._payload,t=t._init;try{return vm(t(e))}catch{}}return null}function m_(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vm(e);case 8:return e===Fv?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function $a(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function dS(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function v_(t){var e=dS(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function gp(t){t._valueTracker||(t._valueTracker=v_(t))}function fS(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=dS(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Gh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ym(t,e){var n=e.checked;return hn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:t._wrapperState.initialChecked})}function j6(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=$a(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function pS(t,e){e=e.checked,e!=null&&Hv(t,"checked",e,!1)}function wm(t,e){pS(t,e);var n=$a(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Cm(t,e.type,n):e.hasOwnProperty("defaultValue")&&Cm(t,e.type,$a(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function N6(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Cm(t,e,n){(e!=="number"||Gh(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var od=Array.isArray;function Cu(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+$a(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Sm(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Oe(91));return hn({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function D6(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Oe(92));if(od(n)){if(1<n.length)throw Error(Oe(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:$a(n)}}function hS(t,e){var n=$a(e.value),r=$a(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function B6(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function gS(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xm(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?gS(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var mp,mS=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(mp=mp||document.createElement("div"),mp.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=mp.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Rd(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var md={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},y_=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(t){y_.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),md[e]=md[t]})});function vS(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||md.hasOwnProperty(t)&&md[t]?(""+e).trim():e+"px"}function yS(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vS(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var w_=hn({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 Em(t,e){if(e){if(w_[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Oe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Oe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Oe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Oe(62))}}function bm(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Om=null;function Vv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Pm=null,Su=null,xu=null;function H6(t){if(t=sf(t)){if(typeof Pm!="function")throw Error(Oe(280));var e=t.stateNode;e&&(e=R0(e),Pm(t.stateNode,t.type,e))}}function wS(t){Su?xu?xu.push(t):xu=[t]:Su=t}function CS(){if(Su){var t=Su,e=xu;if(xu=Su=null,H6(t),e)for(t=0;t<e.length;t++)H6(e[t])}}function SS(t,e){return t(e)}function xS(){}var t2=!1;function ES(t,e,n){if(t2)return t(e,n);t2=!0;try{return SS(t,e,n)}finally{t2=!1,(Su!==null||xu!==null)&&(xS(),CS())}}function zd(t,e){var n=t.stateNode;if(n===null)return null;var r=R0(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Oe(231,e,typeof n));return n}var km=!1;if(Zo)try{var Mc={};Object.defineProperty(Mc,"passive",{get:function(){km=!0}}),window.addEventListener("test",Mc,Mc),window.removeEventListener("test",Mc,Mc)}catch{km=!1}function C_(t,e,n,r,i,o,a,u,c){var d=Array.prototype.slice.call(arguments,3);try{e.apply(n,d)}catch(h){this.onError(h)}}var vd=!1,Uh=null,Xh=!1,_m=null,S_={onError:function(t){vd=!0,Uh=t}};function x_(t,e,n,r,i,o,a,u,c){vd=!1,Uh=null,C_.apply(S_,arguments)}function E_(t,e,n,r,i,o,a,u,c){if(x_.apply(this,arguments),vd){if(vd){var d=Uh;vd=!1,Uh=null}else throw Error(Oe(198));Xh||(Xh=!0,_m=d)}}function Jl(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function bS(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function F6(t){if(Jl(t)!==t)throw Error(Oe(188))}function b_(t){var e=t.alternate;if(!e){if(e=Jl(t),e===null)throw Error(Oe(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return F6(i),t;if(o===r)return F6(i),e;o=o.sibling}throw Error(Oe(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a)throw Error(Oe(189))}}if(n.alternate!==r)throw Error(Oe(190))}if(n.tag!==3)throw Error(Oe(188));return n.stateNode.current===n?t:e}function OS(t){return t=b_(t),t!==null?PS(t):null}function PS(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=PS(t);if(e!==null)return e;t=t.sibling}return null}var kS=ti.unstable_scheduleCallback,$6=ti.unstable_cancelCallback,O_=ti.unstable_shouldYield,P_=ti.unstable_requestPaint,xn=ti.unstable_now,k_=ti.unstable_getCurrentPriorityLevel,Gv=ti.unstable_ImmediatePriority,_S=ti.unstable_UserBlockingPriority,Zh=ti.unstable_NormalPriority,__=ti.unstable_LowPriority,TS=ti.unstable_IdlePriority,I0=null,yo=null;function T_(t){if(yo&&typeof yo.onCommitFiberRoot=="function")try{yo.onCommitFiberRoot(I0,t,void 0,(t.current.flags&128)===128)}catch{}}var Gi=Math.clz32?Math.clz32:A_,I_=Math.log,L_=Math.LN2;function A_(t){return t>>>=0,t===0?32:31-(I_(t)/L_|0)|0}var vp=64,yp=4194304;function ad(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Yh(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,a=n&268435455;if(a!==0){var u=a&~i;u!==0?r=ad(u):(o&=a,o!==0&&(r=ad(o)))}else a=n&~i,a!==0?r=ad(a):o!==0&&(r=ad(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Gi(e),i=1<<n,r|=t[n],e&=~i;return r}function M_(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function R_(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var a=31-Gi(o),u=1<<a,c=i[a];c===-1?(!(u&n)||u&r)&&(i[a]=M_(u,e)):c<=e&&(t.expiredLanes|=u),o&=~u}}function Tm(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function IS(){var t=vp;return vp<<=1,!(vp&4194240)&&(vp=64),t}function n2(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function af(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Gi(e),t[e]=n}function z_(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Gi(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}function Uv(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Gi(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var Rt=0;function LS(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var AS,Xv,MS,RS,zS,Im=!1,wp=[],La=null,Aa=null,Ma=null,jd=new Map,Nd=new Map,Pa=[],j_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function W6(t,e){switch(t){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":jd.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nd.delete(e.pointerId)}}function Rc(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=sf(e),e!==null&&Xv(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function N_(t,e,n,r,i){switch(e){case"focusin":return La=Rc(La,t,e,n,r,i),!0;case"dragenter":return Aa=Rc(Aa,t,e,n,r,i),!0;case"mouseover":return Ma=Rc(Ma,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return jd.set(o,Rc(jd.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Nd.set(o,Rc(Nd.get(o)||null,t,e,n,r,i)),!0}return!1}function jS(t){var e=Ll(t.target);if(e!==null){var n=Jl(e);if(n!==null){if(e=n.tag,e===13){if(e=bS(n),e!==null){t.blockedOn=e,zS(t.priority,function(){MS(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xh(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Lm(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);Om=r,n.target.dispatchEvent(r),Om=null}else return e=sf(n),e!==null&&Xv(e),t.blockedOn=n,!1;e.shift()}return!0}function V6(t,e,n){xh(t)&&n.delete(e)}function D_(){Im=!1,La!==null&&xh(La)&&(La=null),Aa!==null&&xh(Aa)&&(Aa=null),Ma!==null&&xh(Ma)&&(Ma=null),jd.forEach(V6),Nd.forEach(V6)}function zc(t,e){t.blockedOn===e&&(t.blockedOn=null,Im||(Im=!0,ti.unstable_scheduleCallback(ti.unstable_NormalPriority,D_)))}function Dd(t){function e(i){return zc(i,t)}if(0<wp.length){zc(wp[0],t);for(var n=1;n<wp.length;n++){var r=wp[n];r.blockedOn===t&&(r.blockedOn=null)}}for(La!==null&&zc(La,t),Aa!==null&&zc(Aa,t),Ma!==null&&zc(Ma,t),jd.forEach(e),Nd.forEach(e),n=0;n<Pa.length;n++)r=Pa[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Pa.length&&(n=Pa[0],n.blockedOn===null);)jS(n),n.blockedOn===null&&Pa.shift()}var Eu=ta.ReactCurrentBatchConfig,Kh=!0;function B_(t,e,n,r){var i=Rt,o=Eu.transition;Eu.transition=null;try{Rt=1,Zv(t,e,n,r)}finally{Rt=i,Eu.transition=o}}function H_(t,e,n,r){var i=Rt,o=Eu.transition;Eu.transition=null;try{Rt=4,Zv(t,e,n,r)}finally{Rt=i,Eu.transition=o}}function Zv(t,e,n,r){if(Kh){var i=Lm(t,e,n,r);if(i===null)f2(t,e,r,qh,n),W6(t,r);else if(N_(i,t,e,n,r))r.stopPropagation();else if(W6(t,r),e&4&&-1<j_.indexOf(t)){for(;i!==null;){var o=sf(i);if(o!==null&&AS(o),o=Lm(t,e,n,r),o===null&&f2(t,e,r,qh,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else f2(t,e,r,null,n)}}var qh=null;function Lm(t,e,n,r){if(qh=null,t=Vv(r),t=Ll(t),t!==null)if(e=Jl(t),e===null)t=null;else if(n=e.tag,n===13){if(t=bS(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return qh=t,null}function NS(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(k_()){case Gv:return 1;case _S:return 4;case Zh:case __:return 16;case TS:return 536870912;default:return 16}default:return 16}}var Ta=null,Yv=null,Eh=null;function DS(){if(Eh)return Eh;var t,e=Yv,n=e.length,r,i="value"in Ta?Ta.value:Ta.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===i[o-r];r++);return Eh=i.slice(t,1<r?1-r:void 0)}function bh(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Cp(){return!0}function G6(){return!1}function ii(t){function e(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var u in t)t.hasOwnProperty(u)&&(n=t[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cp:G6,this.isPropagationStopped=G6,this}return hn(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Cp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cp)},persist:function(){},isPersistent:Cp}),e}var ec={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kv=ii(ec),lf=hn({},ec,{view:0,detail:0}),F_=ii(lf),r2,i2,jc,L0=hn({},lf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qv,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==jc&&(jc&&t.type==="mousemove"?(r2=t.screenX-jc.screenX,i2=t.screenY-jc.screenY):i2=r2=0,jc=t),r2)},movementY:function(t){return"movementY"in t?t.movementY:i2}}),U6=ii(L0),$_=hn({},L0,{dataTransfer:0}),W_=ii($_),V_=hn({},lf,{relatedTarget:0}),o2=ii(V_),G_=hn({},ec,{animationName:0,elapsedTime:0,pseudoElement:0}),U_=ii(G_),X_=hn({},ec,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Z_=ii(X_),Y_=hn({},ec,{data:0}),X6=ii(Y_),K_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J_(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Q_[t])?!!e[t]:!1}function qv(){return J_}var eT=hn({},lf,{key:function(t){if(t.key){var e=K_[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=bh(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?q_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qv,charCode:function(t){return t.type==="keypress"?bh(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bh(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),tT=ii(eT),nT=hn({},L0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z6=ii(nT),rT=hn({},lf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qv}),iT=ii(rT),oT=hn({},ec,{propertyName:0,elapsedTime:0,pseudoElement:0}),aT=ii(oT),lT=hn({},L0,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),sT=ii(lT),uT=[9,13,27,32],Qv=Zo&&"CompositionEvent"in window,yd=null;Zo&&"documentMode"in document&&(yd=document.documentMode);var cT=Zo&&"TextEvent"in window&&!yd,BS=Zo&&(!Qv||yd&&8<yd&&11>=yd),Y6=" ",K6=!1;function HS(t,e){switch(t){case"keyup":return uT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FS(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var lu=!1;function dT(t,e){switch(t){case"compositionend":return FS(e);case"keypress":return e.which!==32?null:(K6=!0,Y6);case"textInput":return t=e.data,t===Y6&&K6?null:t;default:return null}}function fT(t,e){if(lu)return t==="compositionend"||!Qv&&HS(t,e)?(t=DS(),Eh=Yv=Ta=null,lu=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return BS&&e.locale!=="ko"?null:e.data;default:return null}}var pT={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 q6(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!pT[t.type]:e==="textarea"}function $S(t,e,n,r){wS(r),e=Qh(e,"onChange"),0<e.length&&(n=new Kv("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var wd=null,Bd=null;function hT(t){JS(t,0)}function A0(t){var e=cu(t);if(fS(e))return t}function gT(t,e){if(t==="change")return e}var WS=!1;if(Zo){var a2;if(Zo){var l2="oninput"in document;if(!l2){var Q6=document.createElement("div");Q6.setAttribute("oninput","return;"),l2=typeof Q6.oninput=="function"}a2=l2}else a2=!1;WS=a2&&(!document.documentMode||9<document.documentMode)}function J6(){wd&&(wd.detachEvent("onpropertychange",VS),Bd=wd=null)}function VS(t){if(t.propertyName==="value"&&A0(Bd)){var e=[];$S(e,Bd,t,Vv(t)),ES(hT,e)}}function mT(t,e,n){t==="focusin"?(J6(),wd=e,Bd=n,wd.attachEvent("onpropertychange",VS)):t==="focusout"&&J6()}function vT(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return A0(Bd)}function yT(t,e){if(t==="click")return A0(e)}function wT(t,e){if(t==="input"||t==="change")return A0(e)}function CT(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Zi=typeof Object.is=="function"?Object.is:CT;function Hd(t,e){if(Zi(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!pm.call(e,i)||!Zi(t[i],e[i]))return!1}return!0}function e8(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function t8(t,e){var n=e8(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e8(n)}}function GS(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?GS(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function US(){for(var t=window,e=Gh();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Gh(t.document)}return e}function Jv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function ST(t){var e=US(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&GS(n.ownerDocument.documentElement,n)){if(r!==null&&Jv(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=t8(n,o);var a=t8(n,r);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var xT=Zo&&"documentMode"in document&&11>=document.documentMode,su=null,Am=null,Cd=null,Mm=!1;function n8(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mm||su==null||su!==Gh(r)||(r=su,"selectionStart"in r&&Jv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cd&&Hd(Cd,r)||(Cd=r,r=Qh(Am,"onSelect"),0<r.length&&(e=new Kv("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=su)))}function Sp(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var uu={animationend:Sp("Animation","AnimationEnd"),animationiteration:Sp("Animation","AnimationIteration"),animationstart:Sp("Animation","AnimationStart"),transitionend:Sp("Transition","TransitionEnd")},s2={},XS={};Zo&&(XS=document.createElement("div").style,"AnimationEvent"in window||(delete uu.animationend.animation,delete uu.animationiteration.animation,delete uu.animationstart.animation),"TransitionEvent"in window||delete uu.transitionend.transition);function M0(t){if(s2[t])return s2[t];if(!uu[t])return t;var e=uu[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in XS)return s2[t]=e[n];return t}var ZS=M0("animationend"),YS=M0("animationiteration"),KS=M0("animationstart"),qS=M0("transitionend"),QS=new Map,r8="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 Xa(t,e){QS.set(t,e),Ql(e,[t])}for(var u2=0;u2<r8.length;u2++){var c2=r8[u2],ET=c2.toLowerCase(),bT=c2[0].toUpperCase()+c2.slice(1);Xa(ET,"on"+bT)}Xa(ZS,"onAnimationEnd");Xa(YS,"onAnimationIteration");Xa(KS,"onAnimationStart");Xa("dblclick","onDoubleClick");Xa("focusin","onFocus");Xa("focusout","onBlur");Xa(qS,"onTransitionEnd");Mu("onMouseEnter",["mouseout","mouseover"]);Mu("onMouseLeave",["mouseout","mouseover"]);Mu("onPointerEnter",["pointerout","pointerover"]);Mu("onPointerLeave",["pointerout","pointerover"]);Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ld="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),OT=new Set("cancel close invalid load scroll toggle".split(" ").concat(ld));function i8(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,E_(r,e,void 0,t),t.currentTarget=null}function JS(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var u=r[a],c=u.instance,d=u.currentTarget;if(u=u.listener,c!==o&&i.isPropagationStopped())break e;i8(i,u,d),o=c}else for(a=0;a<r.length;a++){if(u=r[a],c=u.instance,d=u.currentTarget,u=u.listener,c!==o&&i.isPropagationStopped())break e;i8(i,u,d),o=c}}}if(Xh)throw t=_m,Xh=!1,_m=null,t}function qt(t,e){var n=e[Dm];n===void 0&&(n=e[Dm]=new Set);var r=t+"__bubble";n.has(r)||(ex(e,t,2,!1),n.add(r))}function d2(t,e,n){var r=0;e&&(r|=4),ex(n,t,r,e)}var xp="_reactListening"+Math.random().toString(36).slice(2);function Fd(t){if(!t[xp]){t[xp]=!0,lS.forEach(function(n){n!=="selectionchange"&&(OT.has(n)||d2(n,!1,t),d2(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xp]||(e[xp]=!0,d2("selectionchange",!1,e))}}function ex(t,e,n,r){switch(NS(e)){case 1:var i=B_;break;case 4:i=H_;break;default:i=Zv}n=i.bind(null,e,n,t),i=void 0,!km||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function f2(t,e,n,r,i){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;u!==null;){if(a=Ll(u),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}u=u.parentNode}}r=r.return}ES(function(){var d=o,h=Vv(n),m=[];e:{var v=QS.get(t);if(v!==void 0){var C=Kv,w=t;switch(t){case"keypress":if(bh(n)===0)break e;case"keydown":case"keyup":C=tT;break;case"focusin":w="focus",C=o2;break;case"focusout":w="blur",C=o2;break;case"beforeblur":case"afterblur":C=o2;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=U6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=W_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=iT;break;case ZS:case YS:case KS:C=U_;break;case qS:C=aT;break;case"scroll":C=F_;break;case"wheel":C=sT;break;case"copy":case"cut":case"paste":C=Z_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Z6}var x=(e&4)!==0,P=!x&&t==="scroll",b=x?v!==null?v+"Capture":null:v;x=[];for(var E=d,k;E!==null;){k=E;var T=k.stateNode;if(k.tag===5&&T!==null&&(k=T,b!==null&&(T=zd(E,b),T!=null&&x.push($d(E,T,k)))),P)break;E=E.return}0<x.length&&(v=new C(v,w,null,n,h),m.push({event:v,listeners:x}))}}if(!(e&7)){e:{if(v=t==="mouseover"||t==="pointerover",C=t==="mouseout"||t==="pointerout",v&&n!==Om&&(w=n.relatedTarget||n.fromElement)&&(Ll(w)||w[Yo]))break e;if((C||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,C?(w=n.relatedTarget||n.toElement,C=d,w=w?Ll(w):null,w!==null&&(P=Jl(w),w!==P||w.tag!==5&&w.tag!==6)&&(w=null)):(C=null,w=d),C!==w)){if(x=U6,T="onMouseLeave",b="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(x=Z6,T="onPointerLeave",b="onPointerEnter",E="pointer"),P=C==null?v:cu(C),k=w==null?v:cu(w),v=new x(T,E+"leave",C,n,h),v.target=P,v.relatedTarget=k,T=null,Ll(h)===d&&(x=new x(b,E+"enter",w,n,h),x.target=k,x.relatedTarget=P,T=x),P=T,C&&w)t:{for(x=C,b=w,E=0,k=x;k;k=As(k))E++;for(k=0,T=b;T;T=As(T))k++;for(;0<E-k;)x=As(x),E--;for(;0<k-E;)b=As(b),k--;for(;E--;){if(x===b||b!==null&&x===b.alternate)break t;x=As(x),b=As(b)}x=null}else x=null;C!==null&&o8(m,v,C,x,!1),w!==null&&P!==null&&o8(m,P,w,x,!0)}}e:{if(v=d?cu(d):window,C=v.nodeName&&v.nodeName.toLowerCase(),C==="select"||C==="input"&&v.type==="file")var L=gT;else if(q6(v))if(WS)L=wT;else{L=vT;var A=mT}else(C=v.nodeName)&&C.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(L=yT);if(L&&(L=L(t,d))){$S(m,L,n,h);break e}A&&A(t,v,d),t==="focusout"&&(A=v._wrapperState)&&A.controlled&&v.type==="number"&&Cm(v,"number",v.value)}switch(A=d?cu(d):window,t){case"focusin":(q6(A)||A.contentEditable==="true")&&(su=A,Am=d,Cd=null);break;case"focusout":Cd=Am=su=null;break;case"mousedown":Mm=!0;break;case"contextmenu":case"mouseup":case"dragend":Mm=!1,n8(m,n,h);break;case"selectionchange":if(xT)break;case"keydown":case"keyup":n8(m,n,h)}var M;if(Qv)e:{switch(t){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else lu?HS(t,n)&&(z="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(BS&&n.locale!=="ko"&&(lu||z!=="onCompositionStart"?z==="onCompositionEnd"&&lu&&(M=DS()):(Ta=h,Yv="value"in Ta?Ta.value:Ta.textContent,lu=!0)),A=Qh(d,z),0<A.length&&(z=new X6(z,t,null,n,h),m.push({event:z,listeners:A}),M?z.data=M:(M=FS(n),M!==null&&(z.data=M)))),(M=cT?dT(t,n):fT(t,n))&&(d=Qh(d,"onBeforeInput"),0<d.length&&(h=new X6("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:d}),h.data=M))}JS(m,e)})}function $d(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Qh(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=zd(t,n),o!=null&&r.unshift($d(t,o,i)),o=zd(t,e),o!=null&&r.push($d(t,o,i))),t=t.return}return r}function As(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function o8(t,e,n,r,i){for(var o=e._reactName,a=[];n!==null&&n!==r;){var u=n,c=u.alternate,d=u.stateNode;if(c!==null&&c===r)break;u.tag===5&&d!==null&&(u=d,i?(c=zd(n,o),c!=null&&a.unshift($d(n,c,u))):i||(c=zd(n,o),c!=null&&a.push($d(n,c,u)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var PT=/\r\n?/g,kT=/\u0000|\uFFFD/g;function a8(t){return(typeof t=="string"?t:""+t).replace(PT,"\n").replace(kT,"")}function Ep(t,e,n){if(e=a8(e),a8(t)!==e&&n)throw Error(Oe(425))}function Jh(){}var Rm=null,zm=null;function jm(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Nm=typeof setTimeout=="function"?setTimeout:void 0,_T=typeof clearTimeout=="function"?clearTimeout:void 0,l8=typeof Promise=="function"?Promise:void 0,TT=typeof queueMicrotask=="function"?queueMicrotask:typeof l8<"u"?function(t){return l8.resolve(null).then(t).catch(IT)}:Nm;function IT(t){setTimeout(function(){throw t})}function p2(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),Dd(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Dd(e)}function Ra(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function s8(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var tc=Math.random().toString(36).slice(2),go="__reactFiber$"+tc,Wd="__reactProps$"+tc,Yo="__reactContainer$"+tc,Dm="__reactEvents$"+tc,LT="__reactListeners$"+tc,AT="__reactHandles$"+tc;function Ll(t){var e=t[go];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Yo]||n[go]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=s8(t);t!==null;){if(n=t[go])return n;t=s8(t)}return e}t=n,n=t.parentNode}return null}function sf(t){return t=t[go]||t[Yo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function cu(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Oe(33))}function R0(t){return t[Wd]||null}var Bm=[],du=-1;function Za(t){return{current:t}}function Jt(t){0>du||(t.current=Bm[du],Bm[du]=null,du--)}function Yt(t,e){du++,Bm[du]=t.current,t.current=e}var Wa={},mr=Za(Wa),Br=Za(!1),$l=Wa;function Ru(t,e){var n=t.type.contextTypes;if(!n)return Wa;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Hr(t){return t=t.childContextTypes,t!=null}function e0(){Jt(Br),Jt(mr)}function u8(t,e,n){if(mr.current!==Wa)throw Error(Oe(168));Yt(mr,e),Yt(Br,n)}function tx(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Oe(108,m_(t)||"Unknown",i));return hn({},n,r)}function t0(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Wa,$l=mr.current,Yt(mr,t),Yt(Br,Br.current),!0}function c8(t,e,n){var r=t.stateNode;if(!r)throw Error(Oe(169));n?(t=tx(t,e,$l),r.__reactInternalMemoizedMergedChildContext=t,Jt(Br),Jt(mr),Yt(mr,t)):Jt(Br),Yt(Br,n)}var Fo=null,z0=!1,h2=!1;function nx(t){Fo===null?Fo=[t]:Fo.push(t)}function MT(t){z0=!0,nx(t)}function Ya(){if(!h2&&Fo!==null){h2=!0;var t=0,e=Rt;try{var n=Fo;for(Rt=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Fo=null,z0=!1}catch(i){throw Fo!==null&&(Fo=Fo.slice(t+1)),kS(Gv,Ya),i}finally{Rt=e,h2=!1}}return null}var fu=[],pu=0,n0=null,r0=0,yi=[],wi=0,Wl=null,Wo=1,Vo="";function _l(t,e){fu[pu++]=r0,fu[pu++]=n0,n0=t,r0=e}function rx(t,e,n){yi[wi++]=Wo,yi[wi++]=Vo,yi[wi++]=Wl,Wl=t;var r=Wo;t=Vo;var i=32-Gi(r)-1;r&=~(1<<i),n+=1;var o=32-Gi(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Wo=1<<32-Gi(e)+i|n<<i|r,Vo=o+t}else Wo=1<<o|n<<i|r,Vo=t}function e3(t){t.return!==null&&(_l(t,1),rx(t,1,0))}function t3(t){for(;t===n0;)n0=fu[--pu],fu[pu]=null,r0=fu[--pu],fu[pu]=null;for(;t===Wl;)Wl=yi[--wi],yi[wi]=null,Vo=yi[--wi],yi[wi]=null,Wo=yi[--wi],yi[wi]=null}var Jr=null,Qr=null,an=!1,$i=null;function ix(t,e){var n=Si(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function d8(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Jr=t,Qr=Ra(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Jr=t,Qr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Wl!==null?{id:Wo,overflow:Vo}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Si(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Jr=t,Qr=null,!0):!1;default:return!1}}function Hm(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Fm(t){if(an){var e=Qr;if(e){var n=e;if(!d8(t,e)){if(Hm(t))throw Error(Oe(418));e=Ra(n.nextSibling);var r=Jr;e&&d8(t,e)?ix(r,n):(t.flags=t.flags&-4097|2,an=!1,Jr=t)}}else{if(Hm(t))throw Error(Oe(418));t.flags=t.flags&-4097|2,an=!1,Jr=t}}}function f8(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Jr=t}function bp(t){if(t!==Jr)return!1;if(!an)return f8(t),an=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!jm(t.type,t.memoizedProps)),e&&(e=Qr)){if(Hm(t))throw ox(),Error(Oe(418));for(;e;)ix(t,e),e=Ra(e.nextSibling)}if(f8(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Oe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Qr=Ra(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Qr=null}}else Qr=Jr?Ra(t.stateNode.nextSibling):null;return!0}function ox(){for(var t=Qr;t;)t=Ra(t.nextSibling)}function zu(){Qr=Jr=null,an=!1}function n3(t){$i===null?$i=[t]:$i.push(t)}var RT=ta.ReactCurrentBatchConfig;function Bi(t,e){if(t&&t.defaultProps){e=hn({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var i0=Za(null),o0=null,hu=null,r3=null;function i3(){r3=hu=o0=null}function o3(t){var e=i0.current;Jt(i0),t._currentValue=e}function $m(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function bu(t,e){o0=t,r3=hu=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Dr=!0),t.firstContext=null)}function bi(t){var e=t._currentValue;if(r3!==t)if(t={context:t,memoizedValue:e,next:null},hu===null){if(o0===null)throw Error(Oe(308));hu=t,o0.dependencies={lanes:0,firstContext:t}}else hu=hu.next=t;return e}var Al=null;function a3(t){Al===null?Al=[t]:Al.push(t)}function ax(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,a3(e)):(n.next=i.next,i.next=n),e.interleaved=n,Ko(t,r)}function Ko(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Oa=!1;function l3(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lx(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Xo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function za(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,xt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Ko(t,n)}return i=r.interleaved,i===null?(e.next=e,a3(r)):(e.next=i.next,i.next=e),r.interleaved=e,Ko(t,n)}function Oh(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Uv(t,n)}}function p8(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function a0(t,e,n,r){var i=t.updateQueue;Oa=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var c=u,d=c.next;c.next=null,a===null?o=d:a.next=d,a=c;var h=t.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==a&&(u===null?h.firstBaseUpdate=d:u.next=d,h.lastBaseUpdate=c))}if(o!==null){var m=i.baseState;a=0,h=d=c=null,u=o;do{var v=u.lane,C=u.eventTime;if((r&v)===v){h!==null&&(h=h.next={eventTime:C,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=t,x=u;switch(v=e,C=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){m=w.call(C,m,v);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,v=typeof w=="function"?w.call(C,m,v):w,v==null)break e;m=hn({},m,v);break e;case 2:Oa=!0}}u.callback!==null&&u.lane!==0&&(t.flags|=64,v=i.effects,v===null?i.effects=[u]:v.push(u))}else C={eventTime:C,lane:v,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(d=h=C,c=m):h=h.next=C,a|=v;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;v=u,u=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(h===null&&(c=m),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);Gl|=a,t.lanes=a,t.memoizedState=m}}function h8(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Oe(191,i));i.call(r)}}}var sx=new aS.Component().refs;function Wm(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:hn({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var j0={isMounted:function(t){return(t=t._reactInternals)?Jl(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Sr(),i=Na(t),o=Xo(r,i);o.payload=e,n!=null&&(o.callback=n),e=za(t,o,i),e!==null&&(Ui(e,t,i,r),Oh(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Sr(),i=Na(t),o=Xo(r,i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=za(t,o,i),e!==null&&(Ui(e,t,i,r),Oh(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Sr(),r=Na(t),i=Xo(n,r);i.tag=2,e!=null&&(i.callback=e),e=za(t,i,r),e!==null&&(Ui(e,t,r,n),Oh(e,t,r))}};function g8(t,e,n,r,i,o,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,a):e.prototype&&e.prototype.isPureReactComponent?!Hd(n,r)||!Hd(i,o):!0}function ux(t,e,n){var r=!1,i=Wa,o=e.contextType;return typeof o=="object"&&o!==null?o=bi(o):(i=Hr(e)?$l:mr.current,r=e.contextTypes,o=(r=r!=null)?Ru(t,i):Wa),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=j0,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function m8(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&j0.enqueueReplaceState(e,e.state,null)}function Vm(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=sx,l3(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=bi(o):(o=Hr(e)?$l:mr.current,i.context=Ru(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(Wm(t,e,o,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&j0.enqueueReplaceState(i,i.state,null),a0(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function Nc(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Oe(309));var r=n.stateNode}if(!r)throw Error(Oe(147,t));var i=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(a){var u=i.refs;u===sx&&(u=i.refs={}),a===null?delete u[o]:u[o]=a},e._stringRef=o,e)}if(typeof t!="string")throw Error(Oe(284));if(!n._owner)throw Error(Oe(290,t))}return t}function Op(t,e){throw t=Object.prototype.toString.call(e),Error(Oe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function v8(t){var e=t._init;return e(t._payload)}function cx(t){function e(b,E){if(t){var k=b.deletions;k===null?(b.deletions=[E],b.flags|=16):k.push(E)}}function n(b,E){if(!t)return null;for(;E!==null;)e(b,E),E=E.sibling;return null}function r(b,E){for(b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function i(b,E){return b=Da(b,E),b.index=0,b.sibling=null,b}function o(b,E,k){return b.index=k,t?(k=b.alternate,k!==null?(k=k.index,k<E?(b.flags|=2,E):k):(b.flags|=2,E)):(b.flags|=1048576,E)}function a(b){return t&&b.alternate===null&&(b.flags|=2),b}function u(b,E,k,T){return E===null||E.tag!==6?(E=S2(k,b.mode,T),E.return=b,E):(E=i(E,k),E.return=b,E)}function c(b,E,k,T){var L=k.type;return L===au?h(b,E,k.props.children,T,k.key):E!==null&&(E.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ba&&v8(L)===E.type)?(T=i(E,k.props),T.ref=Nc(b,E,k),T.return=b,T):(T=Lh(k.type,k.key,k.props,null,b.mode,T),T.ref=Nc(b,E,k),T.return=b,T)}function d(b,E,k,T){return E===null||E.tag!==4||E.stateNode.containerInfo!==k.containerInfo||E.stateNode.implementation!==k.implementation?(E=x2(k,b.mode,T),E.return=b,E):(E=i(E,k.children||[]),E.return=b,E)}function h(b,E,k,T,L){return E===null||E.tag!==7?(E=zl(k,b.mode,T,L),E.return=b,E):(E=i(E,k),E.return=b,E)}function m(b,E,k){if(typeof E=="string"&&E!==""||typeof E=="number")return E=S2(""+E,b.mode,k),E.return=b,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case hp:return k=Lh(E.type,E.key,E.props,null,b.mode,k),k.ref=Nc(b,null,E),k.return=b,k;case ou:return E=x2(E,b.mode,k),E.return=b,E;case ba:var T=E._init;return m(b,T(E._payload),k)}if(od(E)||Ac(E))return E=zl(E,b.mode,k,null),E.return=b,E;Op(b,E)}return null}function v(b,E,k,T){var L=E!==null?E.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return L!==null?null:u(b,E,""+k,T);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case hp:return k.key===L?c(b,E,k,T):null;case ou:return k.key===L?d(b,E,k,T):null;case ba:return L=k._init,v(b,E,L(k._payload),T)}if(od(k)||Ac(k))return L!==null?null:h(b,E,k,T,null);Op(b,k)}return null}function C(b,E,k,T,L){if(typeof T=="string"&&T!==""||typeof T=="number")return b=b.get(k)||null,u(E,b,""+T,L);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case hp:return b=b.get(T.key===null?k:T.key)||null,c(E,b,T,L);case ou:return b=b.get(T.key===null?k:T.key)||null,d(E,b,T,L);case ba:var A=T._init;return C(b,E,k,A(T._payload),L)}if(od(T)||Ac(T))return b=b.get(k)||null,h(E,b,T,L,null);Op(E,T)}return null}function w(b,E,k,T){for(var L=null,A=null,M=E,z=E=0,D=null;M!==null&&z<k.length;z++){M.index>z?(D=M,M=null):D=M.sibling;var B=v(b,M,k[z],T);if(B===null){M===null&&(M=D);break}t&&M&&B.alternate===null&&e(b,M),E=o(B,E,z),A===null?L=B:A.sibling=B,A=B,M=D}if(z===k.length)return n(b,M),an&&_l(b,z),L;if(M===null){for(;z<k.length;z++)M=m(b,k[z],T),M!==null&&(E=o(M,E,z),A===null?L=M:A.sibling=M,A=M);return an&&_l(b,z),L}for(M=r(b,M);z<k.length;z++)D=C(M,b,z,k[z],T),D!==null&&(t&&D.alternate!==null&&M.delete(D.key===null?z:D.key),E=o(D,E,z),A===null?L=D:A.sibling=D,A=D);return t&&M.forEach(function(X){return e(b,X)}),an&&_l(b,z),L}function x(b,E,k,T){var L=Ac(k);if(typeof L!="function")throw Error(Oe(150));if(k=L.call(k),k==null)throw Error(Oe(151));for(var A=L=null,M=E,z=E=0,D=null,B=k.next();M!==null&&!B.done;z++,B=k.next()){M.index>z?(D=M,M=null):D=M.sibling;var X=v(b,M,B.value,T);if(X===null){M===null&&(M=D);break}t&&M&&X.alternate===null&&e(b,M),E=o(X,E,z),A===null?L=X:A.sibling=X,A=X,M=D}if(B.done)return n(b,M),an&&_l(b,z),L;if(M===null){for(;!B.done;z++,B=k.next())B=m(b,B.value,T),B!==null&&(E=o(B,E,z),A===null?L=B:A.sibling=B,A=B);return an&&_l(b,z),L}for(M=r(b,M);!B.done;z++,B=k.next())B=C(M,b,z,B.value,T),B!==null&&(t&&B.alternate!==null&&M.delete(B.key===null?z:B.key),E=o(B,E,z),A===null?L=B:A.sibling=B,A=B);return t&&M.forEach(function(G){return e(b,G)}),an&&_l(b,z),L}function P(b,E,k,T){if(typeof k=="object"&&k!==null&&k.type===au&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case hp:e:{for(var L=k.key,A=E;A!==null;){if(A.key===L){if(L=k.type,L===au){if(A.tag===7){n(b,A.sibling),E=i(A,k.props.children),E.return=b,b=E;break e}}else if(A.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ba&&v8(L)===A.type){n(b,A.sibling),E=i(A,k.props),E.ref=Nc(b,A,k),E.return=b,b=E;break e}n(b,A);break}else e(b,A);A=A.sibling}k.type===au?(E=zl(k.props.children,b.mode,T,k.key),E.return=b,b=E):(T=Lh(k.type,k.key,k.props,null,b.mode,T),T.ref=Nc(b,E,k),T.return=b,b=T)}return a(b);case ou:e:{for(A=k.key;E!==null;){if(E.key===A)if(E.tag===4&&E.stateNode.containerInfo===k.containerInfo&&E.stateNode.implementation===k.implementation){n(b,E.sibling),E=i(E,k.children||[]),E.return=b,b=E;break e}else{n(b,E);break}else e(b,E);E=E.sibling}E=x2(k,b.mode,T),E.return=b,b=E}return a(b);case ba:return A=k._init,P(b,E,A(k._payload),T)}if(od(k))return w(b,E,k,T);if(Ac(k))return x(b,E,k,T);Op(b,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,E!==null&&E.tag===6?(n(b,E.sibling),E=i(E,k),E.return=b,b=E):(n(b,E),E=S2(k,b.mode,T),E.return=b,b=E),a(b)):n(b,E)}return P}var ju=cx(!0),dx=cx(!1),uf={},wo=Za(uf),Vd=Za(uf),Gd=Za(uf);function Ml(t){if(t===uf)throw Error(Oe(174));return t}function s3(t,e){switch(Yt(Gd,e),Yt(Vd,t),Yt(wo,uf),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:xm(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=xm(e,t)}Jt(wo),Yt(wo,e)}function Nu(){Jt(wo),Jt(Vd),Jt(Gd)}function fx(t){Ml(Gd.current);var e=Ml(wo.current),n=xm(e,t.type);e!==n&&(Yt(Vd,t),Yt(wo,n))}function u3(t){Vd.current===t&&(Jt(wo),Jt(Vd))}var dn=Za(0);function l0(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var g2=[];function c3(){for(var t=0;t<g2.length;t++)g2[t]._workInProgressVersionPrimary=null;g2.length=0}var Ph=ta.ReactCurrentDispatcher,m2=ta.ReactCurrentBatchConfig,Vl=0,pn=null,zn=null,Xn=null,s0=!1,Sd=!1,Ud=0,zT=0;function cr(){throw Error(Oe(321))}function d3(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Zi(t[n],e[n]))return!1;return!0}function f3(t,e,n,r,i,o){if(Vl=o,pn=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ph.current=t===null||t.memoizedState===null?BT:HT,t=n(r,i),Sd){o=0;do{if(Sd=!1,Ud=0,25<=o)throw Error(Oe(301));o+=1,Xn=zn=null,e.updateQueue=null,Ph.current=FT,t=n(r,i)}while(Sd)}if(Ph.current=u0,e=zn!==null&&zn.next!==null,Vl=0,Xn=zn=pn=null,s0=!1,e)throw Error(Oe(300));return t}function p3(){var t=Ud!==0;return Ud=0,t}function ho(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?pn.memoizedState=Xn=t:Xn=Xn.next=t,Xn}function Oi(){if(zn===null){var t=pn.alternate;t=t!==null?t.memoizedState:null}else t=zn.next;var e=Xn===null?pn.memoizedState:Xn.next;if(e!==null)Xn=e,zn=t;else{if(t===null)throw Error(Oe(310));zn=t,t={memoizedState:zn.memoizedState,baseState:zn.baseState,baseQueue:zn.baseQueue,queue:zn.queue,next:null},Xn===null?pn.memoizedState=Xn=t:Xn=Xn.next=t}return Xn}function Xd(t,e){return typeof e=="function"?e(t):e}function v2(t){var e=Oi(),n=e.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=t;var r=zn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var u=a=null,c=null,d=o;do{var h=d.lane;if((Vl&h)===h)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:t(r,d.action);else{var m={lane:h,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(u=c=m,a=r):c=c.next=m,pn.lanes|=h,Gl|=h}d=d.next}while(d!==null&&d!==o);c===null?a=r:c.next=u,Zi(r,e.memoizedState)||(Dr=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=c,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do o=i.lane,pn.lanes|=o,Gl|=o,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function y2(t){var e=Oi(),n=e.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=t(o,a.action),a=a.next;while(a!==i);Zi(o,e.memoizedState)||(Dr=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function px(){}function hx(t,e){var n=pn,r=Oi(),i=e(),o=!Zi(r.memoizedState,i);if(o&&(r.memoizedState=i,Dr=!0),r=r.queue,h3(vx.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||Xn!==null&&Xn.memoizedState.tag&1){if(n.flags|=2048,Zd(9,mx.bind(null,n,r,i,e),void 0,null),Zn===null)throw Error(Oe(349));Vl&30||gx(n,e,i)}return i}function gx(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=pn.updateQueue,e===null?(e={lastEffect:null,stores:null},pn.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function mx(t,e,n,r){e.value=n,e.getSnapshot=r,yx(e)&&wx(t)}function vx(t,e,n){return n(function(){yx(e)&&wx(t)})}function yx(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Zi(t,n)}catch{return!0}}function wx(t){var e=Ko(t,1);e!==null&&Ui(e,t,1,-1)}function y8(t){var e=ho();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xd,lastRenderedState:t},e.queue=t,t=t.dispatch=DT.bind(null,pn,t),[e.memoizedState,t]}function Zd(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=pn.updateQueue,e===null?(e={lastEffect:null,stores:null},pn.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Cx(){return Oi().memoizedState}function kh(t,e,n,r){var i=ho();pn.flags|=t,i.memoizedState=Zd(1|e,n,void 0,r===void 0?null:r)}function N0(t,e,n,r){var i=Oi();r=r===void 0?null:r;var o=void 0;if(zn!==null){var a=zn.memoizedState;if(o=a.destroy,r!==null&&d3(r,a.deps)){i.memoizedState=Zd(e,n,o,r);return}}pn.flags|=t,i.memoizedState=Zd(1|e,n,o,r)}function w8(t,e){return kh(8390656,8,t,e)}function h3(t,e){return N0(2048,8,t,e)}function Sx(t,e){return N0(4,2,t,e)}function xx(t,e){return N0(4,4,t,e)}function Ex(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function bx(t,e,n){return n=n!=null?n.concat([t]):null,N0(4,4,Ex.bind(null,e,t),n)}function g3(){}function Ox(t,e){var n=Oi();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&d3(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Px(t,e){var n=Oi();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&d3(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function kx(t,e,n){return Vl&21?(Zi(n,e)||(n=IS(),pn.lanes|=n,Gl|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Dr=!0),t.memoizedState=n)}function jT(t,e){var n=Rt;Rt=n!==0&&4>n?n:4,t(!0);var r=m2.transition;m2.transition={};try{t(!1),e()}finally{Rt=n,m2.transition=r}}function _x(){return Oi().memoizedState}function NT(t,e,n){var r=Na(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tx(t))Ix(e,n);else if(n=ax(t,e,n,r),n!==null){var i=Sr();Ui(n,t,r,i),Lx(n,e,r)}}function DT(t,e,n){var r=Na(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tx(t))Ix(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var a=e.lastRenderedState,u=o(a,n);if(i.hasEagerState=!0,i.eagerState=u,Zi(u,a)){var c=e.interleaved;c===null?(i.next=i,a3(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}n=ax(t,e,i,r),n!==null&&(i=Sr(),Ui(n,t,r,i),Lx(n,e,r))}}function Tx(t){var e=t.alternate;return t===pn||e!==null&&e===pn}function Ix(t,e){Sd=s0=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Lx(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Uv(t,n)}}var u0={readContext:bi,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},BT={readContext:bi,useCallback:function(t,e){return ho().memoizedState=[t,e===void 0?null:e],t},useContext:bi,useEffect:w8,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,kh(4194308,4,Ex.bind(null,e,t),n)},useLayoutEffect:function(t,e){return kh(4194308,4,t,e)},useInsertionEffect:function(t,e){return kh(4,2,t,e)},useMemo:function(t,e){var n=ho();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ho();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=NT.bind(null,pn,t),[r.memoizedState,t]},useRef:function(t){var e=ho();return t={current:t},e.memoizedState=t},useState:y8,useDebugValue:g3,useDeferredValue:function(t){return ho().memoizedState=t},useTransition:function(){var t=y8(!1),e=t[0];return t=jT.bind(null,t[1]),ho().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=pn,i=ho();if(an){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=e(),Zn===null)throw Error(Oe(349));Vl&30||gx(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,w8(vx.bind(null,r,o,t),[t]),r.flags|=2048,Zd(9,mx.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=ho(),e=Zn.identifierPrefix;if(an){var n=Vo,r=Wo;n=(r&~(1<<32-Gi(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ud++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=zT++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},HT={readContext:bi,useCallback:Ox,useContext:bi,useEffect:h3,useImperativeHandle:bx,useInsertionEffect:Sx,useLayoutEffect:xx,useMemo:Px,useReducer:v2,useRef:Cx,useState:function(){return v2(Xd)},useDebugValue:g3,useDeferredValue:function(t){var e=Oi();return kx(e,zn.memoizedState,t)},useTransition:function(){var t=v2(Xd)[0],e=Oi().memoizedState;return[t,e]},useMutableSource:px,useSyncExternalStore:hx,useId:_x,unstable_isNewReconciler:!1},FT={readContext:bi,useCallback:Ox,useContext:bi,useEffect:h3,useImperativeHandle:bx,useInsertionEffect:Sx,useLayoutEffect:xx,useMemo:Px,useReducer:y2,useRef:Cx,useState:function(){return y2(Xd)},useDebugValue:g3,useDeferredValue:function(t){var e=Oi();return zn===null?e.memoizedState=t:kx(e,zn.memoizedState,t)},useTransition:function(){var t=y2(Xd)[0],e=Oi().memoizedState;return[t,e]},useMutableSource:px,useSyncExternalStore:hx,useId:_x,unstable_isNewReconciler:!1};function Du(t,e){try{var n="",r=e;do n+=g_(r),r=r.return;while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:t,source:e,stack:i,digest:null}}function w2(t,e,n){return{value:t,source:null,stack:n!=null?n:null,digest:e!=null?e:null}}function Gm(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var $T=typeof WeakMap=="function"?WeakMap:Map;function Ax(t,e,n){n=Xo(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){d0||(d0=!0,tv=r),Gm(t,e)},n}function Mx(t,e,n){n=Xo(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Gm(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Gm(t,e),typeof r!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function C8(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new $T;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=nI.bind(null,t,e,n),e.then(t,t))}function S8(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function x8(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Xo(-1,1),e.tag=2,za(n,e,1))),n.lanes|=1),t)}var WT=ta.ReactCurrentOwner,Dr=!1;function Cr(t,e,n,r){e.child=t===null?dx(e,null,n,r):ju(e,t.child,n,r)}function E8(t,e,n,r,i){n=n.render;var o=e.ref;return bu(e,i),r=f3(t,e,n,r,o,i),n=p3(),t!==null&&!Dr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qo(t,e,i)):(an&&n&&e3(e),e.flags|=1,Cr(t,e,r,i),e.child)}function b8(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!E3(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,Rx(t,e,o,r,i)):(t=Lh(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hd,n(a,r)&&t.ref===e.ref)return qo(t,e,i)}return e.flags|=1,t=Da(o,r),t.ref=e.ref,t.return=e,e.child=t}function Rx(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(Hd(o,r)&&t.ref===e.ref)if(Dr=!1,e.pendingProps=r=o,(t.lanes&i)!==0)t.flags&131072&&(Dr=!0);else return e.lanes=t.lanes,qo(t,e,i)}return Um(t,e,n,r,i)}function zx(t,e,n){var r=e.pendingProps,i=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yt(mu,Kr),Kr|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Yt(mu,Kr),Kr|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Yt(mu,Kr),Kr|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,Yt(mu,Kr),Kr|=r;return Cr(t,e,i,n),e.child}function jx(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Um(t,e,n,r,i){var o=Hr(n)?$l:mr.current;return o=Ru(e,o),bu(e,i),n=f3(t,e,n,r,o,i),r=p3(),t!==null&&!Dr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,qo(t,e,i)):(an&&r&&e3(e),e.flags|=1,Cr(t,e,n,i),e.child)}function O8(t,e,n,r,i){if(Hr(n)){var o=!0;t0(e)}else o=!1;if(bu(e,i),e.stateNode===null)_h(t,e),ux(e,n,r),Vm(e,n,r,i),r=!0;else if(t===null){var a=e.stateNode,u=e.memoizedProps;a.props=u;var c=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=bi(d):(d=Hr(n)?$l:mr.current,d=Ru(e,d));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";m||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||c!==d)&&m8(e,a,r,d),Oa=!1;var v=e.memoizedState;a.state=v,a0(e,r,a,i),c=e.memoizedState,u!==r||v!==c||Br.current||Oa?(typeof h=="function"&&(Wm(e,n,h,r),c=e.memoizedState),(u=Oa||g8(e,n,u,r,v,c,d))?(m||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=d,r=u):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,lx(t,e),u=e.memoizedProps,d=e.type===e.elementType?u:Bi(e.type,u),a.props=d,m=e.pendingProps,v=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=bi(c):(c=Hr(n)?$l:mr.current,c=Ru(e,c));var C=n.getDerivedStateFromProps;(h=typeof C=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==m||v!==c)&&m8(e,a,r,c),Oa=!1,v=e.memoizedState,a.state=v,a0(e,r,a,i);var w=e.memoizedState;u!==m||v!==w||Br.current||Oa?(typeof C=="function"&&(Wm(e,n,C,r),w=e.memoizedState),(d=Oa||g8(e,n,d,r,v,w,c)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,w,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,w,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===t.memoizedProps&&v===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&v===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),a.props=r,a.state=w,a.context=c,r=d):(typeof a.componentDidUpdate!="function"||u===t.memoizedProps&&v===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&v===t.memoizedState||(e.flags|=1024),r=!1)}return Xm(t,e,n,r,o,i)}function Xm(t,e,n,r,i,o){jx(t,e);var a=(e.flags&128)!==0;if(!r&&!a)return i&&c8(e,n,!1),qo(t,e,o);r=e.stateNode,WT.current=e;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&a?(e.child=ju(e,t.child,null,o),e.child=ju(e,null,u,o)):Cr(t,e,u,o),e.memoizedState=r.state,i&&c8(e,n,!0),e.child}function Nx(t){var e=t.stateNode;e.pendingContext?u8(t,e.pendingContext,e.pendingContext!==e.context):e.context&&u8(t,e.context,!1),s3(t,e.containerInfo)}function P8(t,e,n,r,i){return zu(),n3(i),e.flags|=256,Cr(t,e,n,r),e.child}var Zm={dehydrated:null,treeContext:null,retryLane:0};function Ym(t){return{baseLanes:t,cachePool:null,transitions:null}}function Dx(t,e,n){var r=e.pendingProps,i=dn.current,o=!1,a=(e.flags&128)!==0,u;if((u=a)||(u=t!==null&&t.memoizedState===null?!1:(i&2)!==0),u?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Yt(dn,i&1),t===null)return Fm(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,t=r.fallback,o?(r=e.mode,o=e.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=H0(a,r,0,null),t=zl(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=Ym(n),e.memoizedState=Zm,t):m3(e,a));if(i=t.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return VT(t,e,a,r,u,i,n);if(o){o=r.fallback,a=e.mode,i=t.child,u=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=c,e.deletions=null):(r=Da(i,c),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=Da(u,o):(o=zl(o,a,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,a=t.child.memoizedState,a=a===null?Ym(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=t.childLanes&~n,e.memoizedState=Zm,r}return o=t.child,t=o.sibling,r=Da(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function m3(t,e){return e=H0({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Pp(t,e,n,r){return r!==null&&n3(r),ju(e,t.child,null,n),t=m3(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function VT(t,e,n,r,i,o,a){if(n)return e.flags&256?(e.flags&=-257,r=w2(Error(Oe(422))),Pp(t,e,a,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,i=e.mode,r=H0({mode:"visible",children:r.children},i,0,null),o=zl(o,i,a,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&ju(e,t.child,null,a),e.child.memoizedState=Ym(a),e.memoizedState=Zm,o);if(!(e.mode&1))return Pp(t,e,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(Oe(419)),r=w2(o,r,void 0),Pp(t,e,a,r)}if(u=(a&t.childLanes)!==0,Dr||u){if(r=Zn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ko(t,i),Ui(r,t,i,-1))}return x3(),r=w2(Error(Oe(421))),Pp(t,e,a,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=rI.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,Qr=Ra(i.nextSibling),Jr=e,an=!0,$i=null,t!==null&&(yi[wi++]=Wo,yi[wi++]=Vo,yi[wi++]=Wl,Wo=t.id,Vo=t.overflow,Wl=e),e=m3(e,r.children),e.flags|=4096,e)}function k8(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),$m(t.return,e,n)}function C2(t,e,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bx(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Cr(t,e,r.children,n),r=dn.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&k8(t,n,e);else if(t.tag===19)k8(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Yt(dn,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&l0(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),C2(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&l0(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}C2(e,!0,n,null,o);break;case"together":C2(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function _h(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function qo(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Gl|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Oe(153));if(e.child!==null){for(t=e.child,n=Da(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Da(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function GT(t,e,n){switch(e.tag){case 3:Nx(e),zu();break;case 5:fx(e);break;case 1:Hr(e.type)&&t0(e);break;case 4:s3(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Yt(i0,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Yt(dn,dn.current&1),e.flags|=128,null):n&e.child.childLanes?Dx(t,e,n):(Yt(dn,dn.current&1),t=qo(t,e,n),t!==null?t.sibling:null);Yt(dn,dn.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return Bx(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yt(dn,dn.current),r)break;return null;case 22:case 23:return e.lanes=0,zx(t,e,n)}return qo(t,e,n)}var Hx,Km,Fx,$x;Hx=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Km=function(){};Fx=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Ml(wo.current);var o=null;switch(n){case"input":i=ym(t,i),r=ym(t,r),o=[];break;case"select":i=hn({},i,{value:void 0}),r=hn({},r,{value:void 0}),o=[];break;case"textarea":i=Sm(t,i),r=Sm(t,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Jh)}Em(n,r);var a;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var u=i[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Md.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var c=r[d];if(u=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(c!=null||u!=null))if(d==="style")if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(o=o||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Md.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&qt("scroll",t),o||u===c||(o=[])):(o=o||[]).push(d,c))}n&&(o=o||[]).push("style",n);var d=o;(e.updateQueue=d)&&(e.flags|=4)}};$x=function(t,e,n,r){n!==r&&(e.flags|=4)};function Dc(t,e){if(!an)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function dr(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function UT(t,e,n){var r=e.pendingProps;switch(t3(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dr(e),null;case 1:return Hr(e.type)&&e0(),dr(e),null;case 3:return r=e.stateNode,Nu(),Jt(Br),Jt(mr),c3(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(bp(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,$i!==null&&(iv($i),$i=null))),Km(t,e),dr(e),null;case 5:u3(e);var i=Ml(Gd.current);if(n=e.type,t!==null&&e.stateNode!=null)Fx(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(Oe(166));return dr(e),null}if(t=Ml(wo.current),bp(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[go]=e,r[Wd]=o,t=(e.mode&1)!==0,n){case"dialog":qt("cancel",r),qt("close",r);break;case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(i=0;i<ld.length;i++)qt(ld[i],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"details":qt("toggle",r);break;case"input":j6(r,o),qt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qt("invalid",r);break;case"textarea":D6(r,o),qt("invalid",r)}Em(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];a==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Ep(r.textContent,u,t),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Ep(r.textContent,u,t),i=["children",""+u]):Md.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&qt("scroll",r)}switch(n){case"input":gp(r),N6(r,o,!0);break;case"textarea":gp(r),B6(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Jh)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=gS(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[go]=e,t[Wd]=r,Hx(t,e,!1,!1),e.stateNode=t;e:{switch(a=bm(n,r),n){case"dialog":qt("cancel",t),qt("close",t),i=r;break;case"iframe":case"object":case"embed":qt("load",t),i=r;break;case"video":case"audio":for(i=0;i<ld.length;i++)qt(ld[i],t);i=r;break;case"source":qt("error",t),i=r;break;case"img":case"image":case"link":qt("error",t),qt("load",t),i=r;break;case"details":qt("toggle",t),i=r;break;case"input":j6(t,r),i=ym(t,r),qt("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=hn({},r,{value:void 0}),qt("invalid",t);break;case"textarea":D6(t,r),i=Sm(t,r),qt("invalid",t);break;default:i=r}Em(n,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var c=u[o];o==="style"?yS(t,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&mS(t,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Rd(t,c):typeof c=="number"&&Rd(t,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Md.hasOwnProperty(o)?c!=null&&o==="onScroll"&&qt("scroll",t):c!=null&&Hv(t,o,c,a))}switch(n){case"input":gp(t),N6(t,r,!1);break;case"textarea":gp(t),B6(t);break;case"option":r.value!=null&&t.setAttribute("value",""+$a(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?Cu(t,!!r.multiple,o,!1):r.defaultValue!=null&&Cu(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Jh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return dr(e),null;case 6:if(t&&e.stateNode!=null)$x(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Oe(166));if(n=Ml(Gd.current),Ml(wo.current),bp(e)){if(r=e.stateNode,n=e.memoizedProps,r[go]=e,(o=r.nodeValue!==n)&&(t=Jr,t!==null))switch(t.tag){case 3:Ep(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ep(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[go]=e,e.stateNode=r}return dr(e),null;case 13:if(Jt(dn),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(an&&Qr!==null&&e.mode&1&&!(e.flags&128))ox(),zu(),e.flags|=98560,o=!1;else if(o=bp(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(Oe(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Oe(317));o[go]=e}else zu(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;dr(e),o=!1}else $i!==null&&(iv($i),$i=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||dn.current&1?jn===0&&(jn=3):x3())),e.updateQueue!==null&&(e.flags|=4),dr(e),null);case 4:return Nu(),Km(t,e),t===null&&Fd(e.stateNode.containerInfo),dr(e),null;case 10:return o3(e.type._context),dr(e),null;case 17:return Hr(e.type)&&e0(),dr(e),null;case 19:if(Jt(dn),o=e.memoizedState,o===null)return dr(e),null;if(r=(e.flags&128)!==0,a=o.rendering,a===null)if(r)Dc(o,!1);else{if(jn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=l0(t),a!==null){for(e.flags|=128,Dc(o,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,t=a.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Yt(dn,dn.current&1|2),e.child}t=t.sibling}o.tail!==null&&xn()>Bu&&(e.flags|=128,r=!0,Dc(o,!1),e.lanes=4194304)}else{if(!r)if(t=l0(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Dc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!an)return dr(e),null}else 2*xn()-o.renderingStartTime>Bu&&n!==1073741824&&(e.flags|=128,r=!0,Dc(o,!1),e.lanes=4194304);o.isBackwards?(a.sibling=e.child,e.child=a):(n=o.last,n!==null?n.sibling=a:e.child=a,o.last=a)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=xn(),e.sibling=null,n=dn.current,Yt(dn,r?n&1|2:n&1),e):(dr(e),null);case 22:case 23:return S3(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Kr&1073741824&&(dr(e),e.subtreeFlags&6&&(e.flags|=8192)):dr(e),null;case 24:return null;case 25:return null}throw Error(Oe(156,e.tag))}function XT(t,e){switch(t3(e),e.tag){case 1:return Hr(e.type)&&e0(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Nu(),Jt(Br),Jt(mr),c3(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return u3(e),null;case 13:if(Jt(dn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Oe(340));zu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Jt(dn),null;case 4:return Nu(),null;case 10:return o3(e.type._context),null;case 22:case 23:return S3(),null;case 24:return null;default:return null}}var kp=!1,gr=!1,ZT=typeof WeakSet=="function"?WeakSet:Set,He=null;function gu(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){vn(t,e,r)}else n.current=null}function qm(t,e,n){try{n()}catch(r){vn(t,e,r)}}var _8=!1;function YT(t,e){if(Rm=Kh,t=US(),Jv(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,u=-1,c=-1,d=0,h=0,m=t,v=null;t:for(;;){for(var C;m!==n||i!==0&&m.nodeType!==3||(u=a+i),m!==o||r!==0&&m.nodeType!==3||(c=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(C=m.firstChild)!==null;)v=m,m=C;for(;;){if(m===t)break t;if(v===n&&++d===i&&(u=a),v===o&&++h===r&&(c=a),(C=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=C}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(zm={focusedElem:t,selectionRange:n},Kh=!1,He=e;He!==null;)if(e=He,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,He=t;else for(;He!==null;){e=He;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,P=w.memoizedState,b=e.stateNode,E=b.getSnapshotBeforeUpdate(e.elementType===e.type?x:Bi(e.type,x),P);b.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var k=e.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(T){vn(e,e.return,T)}if(t=e.sibling,t!==null){t.return=e.return,He=t;break}He=e.return}return w=_8,_8=!1,w}function xd(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&qm(e,n,o)}i=i.next}while(i!==r)}}function D0(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Qm(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Wx(t){var e=t.alternate;e!==null&&(t.alternate=null,Wx(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[go],delete e[Wd],delete e[Dm],delete e[LT],delete e[AT])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Vx(t){return t.tag===5||t.tag===3||t.tag===4}function T8(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Vx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jm(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Jh));else if(r!==4&&(t=t.child,t!==null))for(Jm(t,e,n),t=t.sibling;t!==null;)Jm(t,e,n),t=t.sibling}function ev(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(ev(t,e,n),t=t.sibling;t!==null;)ev(t,e,n),t=t.sibling}var er=null,Fi=!1;function Ca(t,e,n){for(n=n.child;n!==null;)Gx(t,e,n),n=n.sibling}function Gx(t,e,n){if(yo&&typeof yo.onCommitFiberUnmount=="function")try{yo.onCommitFiberUnmount(I0,n)}catch{}switch(n.tag){case 5:gr||gu(n,e);case 6:var r=er,i=Fi;er=null,Ca(t,e,n),er=r,Fi=i,er!==null&&(Fi?(t=er,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):er.removeChild(n.stateNode));break;case 18:er!==null&&(Fi?(t=er,n=n.stateNode,t.nodeType===8?p2(t.parentNode,n):t.nodeType===1&&p2(t,n),Dd(t)):p2(er,n.stateNode));break;case 4:r=er,i=Fi,er=n.stateNode.containerInfo,Fi=!0,Ca(t,e,n),er=r,Fi=i;break;case 0:case 11:case 14:case 15:if(!gr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&qm(n,e,a),i=i.next}while(i!==r)}Ca(t,e,n);break;case 1:if(!gr&&(gu(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){vn(n,e,u)}Ca(t,e,n);break;case 21:Ca(t,e,n);break;case 22:n.mode&1?(gr=(r=gr)||n.memoizedState!==null,Ca(t,e,n),gr=r):Ca(t,e,n);break;default:Ca(t,e,n)}}function I8(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new ZT),e.forEach(function(r){var i=iI.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ji(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=t,a=e,u=a;e:for(;u!==null;){switch(u.tag){case 5:er=u.stateNode,Fi=!1;break e;case 3:er=u.stateNode.containerInfo,Fi=!0;break e;case 4:er=u.stateNode.containerInfo,Fi=!0;break e}u=u.return}if(er===null)throw Error(Oe(160));Gx(o,a,i),er=null,Fi=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(d){vn(i,e,d)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Ux(e,t),e=e.sibling}function Ux(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(ji(e,t),uo(t),r&4){try{xd(3,t,t.return),D0(3,t)}catch(x){vn(t,t.return,x)}try{xd(5,t,t.return)}catch(x){vn(t,t.return,x)}}break;case 1:ji(e,t),uo(t),r&512&&n!==null&&gu(n,n.return);break;case 5:if(ji(e,t),uo(t),r&512&&n!==null&&gu(n,n.return),t.flags&32){var i=t.stateNode;try{Rd(i,"")}catch(x){vn(t,t.return,x)}}if(r&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,a=n!==null?n.memoizedProps:o,u=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&pS(i,o),bm(u,a);var d=bm(u,o);for(a=0;a<c.length;a+=2){var h=c[a],m=c[a+1];h==="style"?yS(i,m):h==="dangerouslySetInnerHTML"?mS(i,m):h==="children"?Rd(i,m):Hv(i,h,m,d)}switch(u){case"input":wm(i,o);break;case"textarea":hS(i,o);break;case"select":var v=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var C=o.value;C!=null?Cu(i,!!o.multiple,C,!1):v!==!!o.multiple&&(o.defaultValue!=null?Cu(i,!!o.multiple,o.defaultValue,!0):Cu(i,!!o.multiple,o.multiple?[]:"",!1))}i[Wd]=o}catch(x){vn(t,t.return,x)}}break;case 6:if(ji(e,t),uo(t),r&4){if(t.stateNode===null)throw Error(Oe(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(x){vn(t,t.return,x)}}break;case 3:if(ji(e,t),uo(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dd(e.containerInfo)}catch(x){vn(t,t.return,x)}break;case 4:ji(e,t),uo(t);break;case 13:ji(e,t),uo(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(w3=xn())),r&4&&I8(t);break;case 22:if(h=n!==null&&n.memoizedState!==null,t.mode&1?(gr=(d=gr)||h,ji(e,t),gr=d):ji(e,t),uo(t),r&8192){if(d=t.memoizedState!==null,(t.stateNode.isHidden=d)&&!h&&t.mode&1)for(He=t,h=t.child;h!==null;){for(m=He=h;He!==null;){switch(v=He,C=v.child,v.tag){case 0:case 11:case 14:case 15:xd(4,v,v.return);break;case 1:gu(v,v.return);var w=v.stateNode;if(typeof w.componentWillUnmount=="function"){r=v,n=v.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(x){vn(r,n,x)}}break;case 5:gu(v,v.return);break;case 22:if(v.memoizedState!==null){A8(m);continue}}C!==null?(C.return=v,He=C):A8(m)}h=h.sibling}e:for(h=null,m=t;;){if(m.tag===5){if(h===null){h=m;try{i=m.stateNode,d?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=m.stateNode,c=m.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,u.style.display=vS("display",a))}catch(x){vn(t,t.return,x)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(x){vn(t,t.return,x)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===t)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:ji(e,t),uo(t),r&4&&I8(t);break;case 21:break;default:ji(e,t),uo(t)}}function uo(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Vx(n)){var r=n;break e}n=n.return}throw Error(Oe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Rd(i,""),r.flags&=-33);var o=T8(t);ev(t,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,u=T8(t);Jm(t,u,a);break;default:throw Error(Oe(161))}}catch(c){vn(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function KT(t,e,n){He=t,Xx(t)}function Xx(t,e,n){for(var r=(t.mode&1)!==0;He!==null;){var i=He,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||kp;if(!a){var u=i.alternate,c=u!==null&&u.memoizedState!==null||gr;u=kp;var d=gr;if(kp=a,(gr=c)&&!d)for(He=i;He!==null;)a=He,c=a.child,a.tag===22&&a.memoizedState!==null?M8(i):c!==null?(c.return=a,He=c):M8(i);for(;o!==null;)He=o,Xx(o),o=o.sibling;He=i,kp=u,gr=d}L8(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,He=o):L8(t)}}function L8(t){for(;He!==null;){var e=He;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:gr||D0(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!gr)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Bi(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&h8(e,o,r);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}h8(e,a,n)}break;case 5:var u=e.stateNode;if(n===null&&e.flags&4){n=u;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var d=e.alternate;if(d!==null){var h=d.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&Dd(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Oe(163))}gr||e.flags&512&&Qm(e)}catch(v){vn(e,e.return,v)}}if(e===t){He=null;break}if(n=e.sibling,n!==null){n.return=e.return,He=n;break}He=e.return}}function A8(t){for(;He!==null;){var e=He;if(e===t){He=null;break}var n=e.sibling;if(n!==null){n.return=e.return,He=n;break}He=e.return}}function M8(t){for(;He!==null;){var e=He;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{D0(4,e)}catch(c){vn(e,n,c)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(c){vn(e,i,c)}}var o=e.return;try{Qm(e)}catch(c){vn(e,o,c)}break;case 5:var a=e.return;try{Qm(e)}catch(c){vn(e,a,c)}}}catch(c){vn(e,e.return,c)}if(e===t){He=null;break}var u=e.sibling;if(u!==null){u.return=e.return,He=u;break}He=e.return}}var qT=Math.ceil,c0=ta.ReactCurrentDispatcher,v3=ta.ReactCurrentOwner,xi=ta.ReactCurrentBatchConfig,xt=0,Zn=null,kn=null,tr=0,Kr=0,mu=Za(0),jn=0,Yd=null,Gl=0,B0=0,y3=0,Ed=null,jr=null,w3=0,Bu=1/0,Ho=null,d0=!1,tv=null,ja=null,_p=!1,Ia=null,f0=0,bd=0,nv=null,Th=-1,Ih=0;function Sr(){return xt&6?xn():Th!==-1?Th:Th=xn()}function Na(t){return t.mode&1?xt&2&&tr!==0?tr&-tr:RT.transition!==null?(Ih===0&&(Ih=IS()),Ih):(t=Rt,t!==0||(t=window.event,t=t===void 0?16:NS(t.type)),t):1}function Ui(t,e,n,r){if(50<bd)throw bd=0,nv=null,Error(Oe(185));af(t,n,r),(!(xt&2)||t!==Zn)&&(t===Zn&&(!(xt&2)&&(B0|=n),jn===4&&ka(t,tr)),Fr(t,r),n===1&&xt===0&&!(e.mode&1)&&(Bu=xn()+500,z0&&Ya()))}function Fr(t,e){var n=t.callbackNode;R_(t,e);var r=Yh(t,t===Zn?tr:0);if(r===0)n!==null&&$6(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&$6(n),e===1)t.tag===0?MT(R8.bind(null,t)):nx(R8.bind(null,t)),TT(function(){!(xt&6)&&Ya()}),n=null;else{switch(LS(r)){case 1:n=Gv;break;case 4:n=_S;break;case 16:n=Zh;break;case 536870912:n=TS;break;default:n=Zh}n=tE(n,Zx.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Zx(t,e){if(Th=-1,Ih=0,xt&6)throw Error(Oe(327));var n=t.callbackNode;if(Ou()&&t.callbackNode!==n)return null;var r=Yh(t,t===Zn?tr:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=p0(t,r);else{e=r;var i=xt;xt|=2;var o=Kx();(Zn!==t||tr!==e)&&(Ho=null,Bu=xn()+500,Rl(t,e));do try{eI();break}catch(u){Yx(t,u)}while(!0);i3(),c0.current=o,xt=i,kn!==null?e=0:(Zn=null,tr=0,e=jn)}if(e!==0){if(e===2&&(i=Tm(t),i!==0&&(r=i,e=rv(t,i))),e===1)throw n=Yd,Rl(t,0),ka(t,r),Fr(t,xn()),n;if(e===6)ka(t,r);else{if(i=t.current.alternate,!(r&30)&&!QT(i)&&(e=p0(t,r),e===2&&(o=Tm(t),o!==0&&(r=o,e=rv(t,o))),e===1))throw n=Yd,Rl(t,0),ka(t,r),Fr(t,xn()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(Oe(345));case 2:Tl(t,jr,Ho);break;case 3:if(ka(t,r),(r&130023424)===r&&(e=w3+500-xn(),10<e)){if(Yh(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Sr(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Nm(Tl.bind(null,t,jr,Ho),e);break}Tl(t,jr,Ho);break;case 4:if(ka(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var a=31-Gi(r);o=1<<a,a=e[a],a>i&&(i=a),r&=~o}if(r=i,r=xn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qT(r/1960))-r,10<r){t.timeoutHandle=Nm(Tl.bind(null,t,jr,Ho),r);break}Tl(t,jr,Ho);break;case 5:Tl(t,jr,Ho);break;default:throw Error(Oe(329))}}}return Fr(t,xn()),t.callbackNode===n?Zx.bind(null,t):null}function rv(t,e){var n=Ed;return t.current.memoizedState.isDehydrated&&(Rl(t,e).flags|=256),t=p0(t,e),t!==2&&(e=jr,jr=n,e!==null&&iv(e)),t}function iv(t){jr===null?jr=t:jr.push.apply(jr,t)}function QT(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Zi(o(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ka(t,e){for(e&=~y3,e&=~B0,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Gi(e),r=1<<n;t[n]=-1,e&=~r}}function R8(t){if(xt&6)throw Error(Oe(327));Ou();var e=Yh(t,0);if(!(e&1))return Fr(t,xn()),null;var n=p0(t,e);if(t.tag!==0&&n===2){var r=Tm(t);r!==0&&(e=r,n=rv(t,r))}if(n===1)throw n=Yd,Rl(t,0),ka(t,e),Fr(t,xn()),n;if(n===6)throw Error(Oe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Tl(t,jr,Ho),Fr(t,xn()),null}function C3(t,e){var n=xt;xt|=1;try{return t(e)}finally{xt=n,xt===0&&(Bu=xn()+500,z0&&Ya())}}function Ul(t){Ia!==null&&Ia.tag===0&&!(xt&6)&&Ou();var e=xt;xt|=1;var n=xi.transition,r=Rt;try{if(xi.transition=null,Rt=1,t)return t()}finally{Rt=r,xi.transition=n,xt=e,!(xt&6)&&Ya()}}function S3(){Kr=mu.current,Jt(mu)}function Rl(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,_T(n)),kn!==null)for(n=kn.return;n!==null;){var r=n;switch(t3(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&e0();break;case 3:Nu(),Jt(Br),Jt(mr),c3();break;case 5:u3(r);break;case 4:Nu();break;case 13:Jt(dn);break;case 19:Jt(dn);break;case 10:o3(r.type._context);break;case 22:case 23:S3()}n=n.return}if(Zn=t,kn=t=Da(t.current,null),tr=Kr=e,jn=0,Yd=null,y3=B0=Gl=0,jr=Ed=null,Al!==null){for(e=0;e<Al.length;e++)if(n=Al[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Al=null}return t}function Yx(t,e){do{var n=kn;try{if(i3(),Ph.current=u0,s0){for(var r=pn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}s0=!1}if(Vl=0,Xn=zn=pn=null,Sd=!1,Ud=0,v3.current=null,n===null||n.return===null){jn=1,Yd=e,kn=null;break}e:{var o=t,a=n.return,u=n,c=e;if(e=tr,u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,h=u,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var v=h.alternate;v?(h.updateQueue=v.updateQueue,h.memoizedState=v.memoizedState,h.lanes=v.lanes):(h.updateQueue=null,h.memoizedState=null)}var C=S8(a);if(C!==null){C.flags&=-257,x8(C,a,u,o,e),C.mode&1&&C8(o,d,e),e=C,c=d;var w=e.updateQueue;if(w===null){var x=new Set;x.add(c),e.updateQueue=x}else w.add(c);break e}else{if(!(e&1)){C8(o,d,e),x3();break e}c=Error(Oe(426))}}else if(an&&u.mode&1){var P=S8(a);if(P!==null){!(P.flags&65536)&&(P.flags|=256),x8(P,a,u,o,e),n3(Du(c,u));break e}}o=c=Du(c,u),jn!==4&&(jn=2),Ed===null?Ed=[o]:Ed.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var b=Ax(o,c,e);p8(o,b);break e;case 1:u=c;var E=o.type,k=o.stateNode;if(!(o.flags&128)&&(typeof E.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(ja===null||!ja.has(k)))){o.flags|=65536,e&=-e,o.lanes|=e;var T=Mx(o,u,e);p8(o,T);break e}}o=o.return}while(o!==null)}Qx(n)}catch(L){e=L,kn===n&&n!==null&&(kn=n=n.return);continue}break}while(!0)}function Kx(){var t=c0.current;return c0.current=u0,t===null?u0:t}function x3(){(jn===0||jn===3||jn===2)&&(jn=4),Zn===null||!(Gl&268435455)&&!(B0&268435455)||ka(Zn,tr)}function p0(t,e){var n=xt;xt|=2;var r=Kx();(Zn!==t||tr!==e)&&(Ho=null,Rl(t,e));do try{JT();break}catch(i){Yx(t,i)}while(!0);if(i3(),xt=n,c0.current=r,kn!==null)throw Error(Oe(261));return Zn=null,tr=0,jn}function JT(){for(;kn!==null;)qx(kn)}function eI(){for(;kn!==null&&!O_();)qx(kn)}function qx(t){var e=eE(t.alternate,t,Kr);t.memoizedProps=t.pendingProps,e===null?Qx(t):kn=e,v3.current=null}function Qx(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=XT(n,e),n!==null){n.flags&=32767,kn=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{jn=6,kn=null;return}}else if(n=UT(n,e,Kr),n!==null){kn=n;return}if(e=e.sibling,e!==null){kn=e;return}kn=e=t}while(e!==null);jn===0&&(jn=5)}function Tl(t,e,n){var r=Rt,i=xi.transition;try{xi.transition=null,Rt=1,tI(t,e,n,r)}finally{xi.transition=i,Rt=r}return null}function tI(t,e,n,r){do Ou();while(Ia!==null);if(xt&6)throw Error(Oe(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Oe(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(z_(t,o),t===Zn&&(kn=Zn=null,tr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_p||(_p=!0,tE(Zh,function(){return Ou(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=xi.transition,xi.transition=null;var a=Rt;Rt=1;var u=xt;xt|=4,v3.current=null,YT(t,n),Ux(n,t),ST(zm),Kh=!!Rm,zm=Rm=null,t.current=n,KT(n),P_(),xt=u,Rt=a,xi.transition=o}else t.current=n;if(_p&&(_p=!1,Ia=t,f0=i),o=t.pendingLanes,o===0&&(ja=null),T_(n.stateNode),Fr(t,xn()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(d0)throw d0=!1,t=tv,tv=null,t;return f0&1&&t.tag!==0&&Ou(),o=t.pendingLanes,o&1?t===nv?bd++:(bd=0,nv=t):bd=0,Ya(),null}function Ou(){if(Ia!==null){var t=LS(f0),e=xi.transition,n=Rt;try{if(xi.transition=null,Rt=16>t?16:t,Ia===null)var r=!1;else{if(t=Ia,Ia=null,f0=0,xt&6)throw Error(Oe(331));var i=xt;for(xt|=4,He=t.current;He!==null;){var o=He,a=o.child;if(He.flags&16){var u=o.deletions;if(u!==null){for(var c=0;c<u.length;c++){var d=u[c];for(He=d;He!==null;){var h=He;switch(h.tag){case 0:case 11:case 15:xd(8,h,o)}var m=h.child;if(m!==null)m.return=h,He=m;else for(;He!==null;){h=He;var v=h.sibling,C=h.return;if(Wx(h),h===d){He=null;break}if(v!==null){v.return=C,He=v;break}He=C}}}var w=o.alternate;if(w!==null){var x=w.child;if(x!==null){w.child=null;do{var P=x.sibling;x.sibling=null,x=P}while(x!==null)}}He=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,He=a;else e:for(;He!==null;){if(o=He,o.flags&2048)switch(o.tag){case 0:case 11:case 15:xd(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,He=b;break e}He=o.return}}var E=t.current;for(He=E;He!==null;){a=He;var k=a.child;if(a.subtreeFlags&2064&&k!==null)k.return=a,He=k;else e:for(a=E;He!==null;){if(u=He,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:D0(9,u)}}catch(L){vn(u,u.return,L)}if(u===a){He=null;break e}var T=u.sibling;if(T!==null){T.return=u.return,He=T;break e}He=u.return}}if(xt=i,Ya(),yo&&typeof yo.onPostCommitFiberRoot=="function")try{yo.onPostCommitFiberRoot(I0,t)}catch{}r=!0}return r}finally{Rt=n,xi.transition=e}}return!1}function z8(t,e,n){e=Du(n,e),e=Ax(t,e,1),t=za(t,e,1),e=Sr(),t!==null&&(af(t,1,e),Fr(t,e))}function vn(t,e,n){if(t.tag===3)z8(t,t,n);else for(;e!==null;){if(e.tag===3){z8(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ja===null||!ja.has(r))){t=Du(n,t),t=Mx(e,t,1),e=za(e,t,1),t=Sr(),e!==null&&(af(e,1,t),Fr(e,t));break}}e=e.return}}function nI(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Sr(),t.pingedLanes|=t.suspendedLanes&n,Zn===t&&(tr&n)===n&&(jn===4||jn===3&&(tr&130023424)===tr&&500>xn()-w3?Rl(t,0):y3|=n),Fr(t,e)}function Jx(t,e){e===0&&(t.mode&1?(e=yp,yp<<=1,!(yp&130023424)&&(yp=4194304)):e=1);var n=Sr();t=Ko(t,e),t!==null&&(af(t,e,n),Fr(t,n))}function rI(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Jx(t,n)}function iI(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Oe(314))}r!==null&&r.delete(e),Jx(t,n)}var eE;eE=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Br.current)Dr=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Dr=!1,GT(t,e,n);Dr=!!(t.flags&131072)}else Dr=!1,an&&e.flags&1048576&&rx(e,r0,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;_h(t,e),t=e.pendingProps;var i=Ru(e,mr.current);bu(e,n),i=f3(null,e,r,t,i,n);var o=p3();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Hr(r)?(o=!0,t0(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,l3(e),i.updater=j0,e.stateNode=i,i._reactInternals=e,Vm(e,r,t,n),e=Xm(null,e,r,!0,o,n)):(e.tag=0,an&&o&&e3(e),Cr(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(_h(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=aI(r),t=Bi(r,t),i){case 0:e=Um(null,e,r,t,n);break e;case 1:e=O8(null,e,r,t,n);break e;case 11:e=E8(null,e,r,t,n);break e;case 14:e=b8(null,e,r,Bi(r.type,t),n);break e}throw Error(Oe(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Bi(r,i),Um(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Bi(r,i),O8(t,e,r,i,n);case 3:e:{if(Nx(e),t===null)throw Error(Oe(387));r=e.pendingProps,o=e.memoizedState,i=o.element,lx(t,e),a0(e,r,null,n);var a=e.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=Du(Error(Oe(423)),e),e=P8(t,e,r,n,i);break e}else if(r!==i){i=Du(Error(Oe(424)),e),e=P8(t,e,r,n,i);break e}else for(Qr=Ra(e.stateNode.containerInfo.firstChild),Jr=e,an=!0,$i=null,n=dx(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zu(),r===i){e=qo(t,e,n);break e}Cr(t,e,r,n)}e=e.child}return e;case 5:return fx(e),t===null&&Fm(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,a=i.children,jm(r,i)?a=null:o!==null&&jm(r,o)&&(e.flags|=32),jx(t,e),Cr(t,e,a,n),e.child;case 6:return t===null&&Fm(e),null;case 13:return Dx(t,e,n);case 4:return s3(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ju(e,null,r,n):Cr(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Bi(r,i),E8(t,e,r,i,n);case 7:return Cr(t,e,e.pendingProps,n),e.child;case 8:return Cr(t,e,e.pendingProps.children,n),e.child;case 12:return Cr(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,a=i.value,Yt(i0,r._currentValue),r._currentValue=a,o!==null)if(Zi(o.value,a)){if(o.children===i.children&&!Br.current){e=qo(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){a=o.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Xo(-1,n&-n),c.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?c.next=c:(c.next=h.next,h.next=c),d.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),$m(o.return,n,e),u.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===e.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Oe(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),$m(a,n,e),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===e){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Cr(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,bu(e,n),i=bi(i),r=r(i),e.flags|=1,Cr(t,e,r,n),e.child;case 14:return r=e.type,i=Bi(r,e.pendingProps),i=Bi(r.type,i),b8(t,e,r,i,n);case 15:return Rx(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Bi(r,i),_h(t,e),e.tag=1,Hr(r)?(t=!0,t0(e)):t=!1,bu(e,n),ux(e,r,i),Vm(e,r,i,n),Xm(null,e,r,!0,t,n);case 19:return Bx(t,e,n);case 22:return zx(t,e,n)}throw Error(Oe(156,e.tag))};function tE(t,e){return kS(t,e)}function oI(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 Si(t,e,n,r){return new oI(t,e,n,r)}function E3(t){return t=t.prototype,!(!t||!t.isReactComponent)}function aI(t){if(typeof t=="function")return E3(t)?1:0;if(t!=null){if(t=t.$$typeof,t===$v)return 11;if(t===Wv)return 14}return 2}function Da(t,e){var n=t.alternate;return n===null?(n=Si(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Lh(t,e,n,r,i,o){var a=2;if(r=t,typeof t=="function")E3(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case au:return zl(n.children,i,o,e);case Fv:a=8,i|=8;break;case hm:return t=Si(12,n,e,i|2),t.elementType=hm,t.lanes=o,t;case gm:return t=Si(13,n,e,i),t.elementType=gm,t.lanes=o,t;case mm:return t=Si(19,n,e,i),t.elementType=mm,t.lanes=o,t;case cS:return H0(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case sS:a=10;break e;case uS:a=9;break e;case $v:a=11;break e;case Wv:a=14;break e;case ba:a=16,r=null;break e}throw Error(Oe(130,t==null?t:typeof t,""))}return e=Si(a,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function zl(t,e,n,r){return t=Si(7,t,r,e),t.lanes=n,t}function H0(t,e,n,r){return t=Si(22,t,r,e),t.elementType=cS,t.lanes=n,t.stateNode={isHidden:!1},t}function S2(t,e,n){return t=Si(6,t,null,e),t.lanes=n,t}function x2(t,e,n){return e=Si(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function lI(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=n2(0),this.expirationTimes=n2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=n2(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function b3(t,e,n,r,i,o,a,u,c){return t=new lI(t,e,n,u,c),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Si(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},l3(o),t}function sI(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ou,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function nE(t){if(!t)return Wa;t=t._reactInternals;e:{if(Jl(t)!==t||t.tag!==1)throw Error(Oe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Hr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Oe(171))}if(t.tag===1){var n=t.type;if(Hr(n))return tx(t,n,e)}return e}function rE(t,e,n,r,i,o,a,u,c){return t=b3(n,r,!0,t,i,o,a,u,c),t.context=nE(null),n=t.current,r=Sr(),i=Na(n),o=Xo(r,i),o.callback=e!=null?e:null,za(n,o,i),t.current.lanes=i,af(t,i,r),Fr(t,r),t}function F0(t,e,n,r){var i=e.current,o=Sr(),a=Na(i);return n=nE(n),e.context===null?e.context=n:e.pendingContext=n,e=Xo(o,a),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=za(i,e,a),t!==null&&(Ui(t,i,a,o),Oh(t,i,a)),a}function h0(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function j8(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function O3(t,e){j8(t,e),(t=t.alternate)&&j8(t,e)}function uI(){return null}var iE=typeof reportError=="function"?reportError:function(t){console.error(t)};function P3(t){this._internalRoot=t}$0.prototype.render=P3.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Oe(409));F0(t,e,null,null)};$0.prototype.unmount=P3.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ul(function(){F0(null,t,null,null)}),e[Yo]=null}};function $0(t){this._internalRoot=t}$0.prototype.unstable_scheduleHydration=function(t){if(t){var e=RS();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Pa.length&&e!==0&&e<Pa[n].priority;n++);Pa.splice(n,0,t),n===0&&jS(t)}};function k3(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function W0(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function N8(){}function cI(t,e,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var d=h0(a);o.call(d)}}var a=rE(e,r,t,0,null,!1,!1,"",N8);return t._reactRootContainer=a,t[Yo]=a.current,Fd(t.nodeType===8?t.parentNode:t),Ul(),a}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var d=h0(c);u.call(d)}}var c=b3(t,0,!1,null,null,!1,!1,"",N8);return t._reactRootContainer=c,t[Yo]=c.current,Fd(t.nodeType===8?t.parentNode:t),Ul(function(){F0(e,c,n,r)}),c}function V0(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var u=i;i=function(){var c=h0(a);u.call(c)}}F0(e,a,t,i)}else a=cI(n,e,t,i,r);return h0(a)}AS=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=ad(e.pendingLanes);n!==0&&(Uv(e,n|1),Fr(e,xn()),!(xt&6)&&(Bu=xn()+500,Ya()))}break;case 13:Ul(function(){var r=Ko(t,1);if(r!==null){var i=Sr();Ui(r,t,1,i)}}),O3(t,1)}};Xv=function(t){if(t.tag===13){var e=Ko(t,134217728);if(e!==null){var n=Sr();Ui(e,t,134217728,n)}O3(t,134217728)}};MS=function(t){if(t.tag===13){var e=Na(t),n=Ko(t,e);if(n!==null){var r=Sr();Ui(n,t,e,r)}O3(t,e)}};RS=function(){return Rt};zS=function(t,e){var n=Rt;try{return Rt=t,e()}finally{Rt=n}};Pm=function(t,e,n){switch(e){case"input":if(wm(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=R0(r);if(!i)throw Error(Oe(90));fS(r),wm(r,i)}}}break;case"textarea":hS(t,n);break;case"select":e=n.value,e!=null&&Cu(t,!!n.multiple,e,!1)}};SS=C3;xS=Ul;var dI={usingClientEntryPoint:!1,Events:[sf,cu,R0,wS,CS,C3]},Bc={findFiberByHostInstance:Ll,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fI={bundleType:Bc.bundleType,version:Bc.version,rendererPackageName:Bc.rendererPackageName,rendererConfig:Bc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ta.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=OS(t),t===null?null:t.stateNode},findFiberByHostInstance:Bc.findFiberByHostInstance||uI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tp.isDisabled&&Tp.supportsFiber)try{I0=Tp.inject(fI),yo=Tp}catch{}}ri.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dI;ri.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!k3(e))throw Error(Oe(200));return sI(t,e,null,n)};ri.createRoot=function(t,e){if(!k3(t))throw Error(Oe(299));var n=!1,r="",i=iE;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=b3(t,1,!1,null,null,n,!1,r,i),t[Yo]=e.current,Fd(t.nodeType===8?t.parentNode:t),new P3(e)};ri.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Oe(188)):(t=Object.keys(t).join(","),Error(Oe(268,t)));return t=OS(e),t=t===null?null:t.stateNode,t};ri.flushSync=function(t){return Ul(t)};ri.hydrate=function(t,e,n){if(!W0(e))throw Error(Oe(200));return V0(null,t,e,!0,n)};ri.hydrateRoot=function(t,e,n){if(!k3(t))throw Error(Oe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=iE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=rE(e,null,t,1,n!=null?n:null,i,!1,o,a),t[Yo]=e.current,Fd(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new $0(e)};ri.render=function(t,e,n){if(!W0(e))throw Error(Oe(200));return V0(null,t,e,!1,n)};ri.unmountComponentAtNode=function(t){if(!W0(t))throw Error(Oe(40));return t._reactRootContainer?(Ul(function(){V0(null,null,t,!1,function(){t._reactRootContainer=null,t[Yo]=null})}),!0):!1};ri.unstable_batchedUpdates=C3;ri.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!W0(n))throw Error(Oe(200));if(t==null||t._reactInternals===void 0)throw Error(Oe(38));return V0(t,e,n,!1,r)};ri.version="18.2.0-next-9e3b772b8-20220608";function oE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oE)}catch(t){console.error(t)}}oE(),rS.exports=ri;var cf=rS.exports,ov,D8=cf;ov=D8.createRoot,D8.hydrateRoot;function pI(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function se(t,e){if(t==null)return{};var n=pI(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var aE={exports:{}},hI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gI=hI,mI=gI;function lE(){}function sE(){}sE.resetWarningCache=lE;var vI=function(){function t(r,i,o,a,u,c){if(c!==mI){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}t.isRequired=t;function e(){return t}var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:sE,resetWarningCache:lE};return n.PropTypes=n,n};aE.exports=vI();var yI=aE.exports;const I=rf(yI);var uE={exports:{}},zt={};/**
 * @license React
 * react-is.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 _3=Symbol.for("react.element"),T3=Symbol.for("react.portal"),G0=Symbol.for("react.fragment"),U0=Symbol.for("react.strict_mode"),X0=Symbol.for("react.profiler"),Z0=Symbol.for("react.provider"),Y0=Symbol.for("react.context"),wI=Symbol.for("react.server_context"),K0=Symbol.for("react.forward_ref"),q0=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),J0=Symbol.for("react.memo"),e1=Symbol.for("react.lazy"),CI=Symbol.for("react.offscreen"),cE;cE=Symbol.for("react.module.reference");function _i(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case _3:switch(t=t.type,t){case G0:case X0:case U0:case q0:case Q0:return t;default:switch(t=t&&t.$$typeof,t){case wI:case Y0:case K0:case e1:case J0:case Z0:return t;default:return e}}case T3:return e}}}zt.ContextConsumer=Y0;zt.ContextProvider=Z0;zt.Element=_3;zt.ForwardRef=K0;zt.Fragment=G0;zt.Lazy=e1;zt.Memo=J0;zt.Portal=T3;zt.Profiler=X0;zt.StrictMode=U0;zt.Suspense=q0;zt.SuspenseList=Q0;zt.isAsyncMode=function(){return!1};zt.isConcurrentMode=function(){return!1};zt.isContextConsumer=function(t){return _i(t)===Y0};zt.isContextProvider=function(t){return _i(t)===Z0};zt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===_3};zt.isForwardRef=function(t){return _i(t)===K0};zt.isFragment=function(t){return _i(t)===G0};zt.isLazy=function(t){return _i(t)===e1};zt.isMemo=function(t){return _i(t)===J0};zt.isPortal=function(t){return _i(t)===T3};zt.isProfiler=function(t){return _i(t)===X0};zt.isStrictMode=function(t){return _i(t)===U0};zt.isSuspense=function(t){return _i(t)===q0};zt.isSuspenseList=function(t){return _i(t)===Q0};zt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===G0||t===X0||t===U0||t===q0||t===Q0||t===CI||typeof t=="object"&&t!==null&&(t.$$typeof===e1||t.$$typeof===J0||t.$$typeof===Z0||t.$$typeof===Y0||t.$$typeof===K0||t.$$typeof===cE||t.getModuleId!==void 0)};zt.typeOf=_i;uE.exports=zt;var dE=uE.exports;function SI(t){function e(re,ee,ue,Ee,W){for(var Se=0,ae=0,ze=0,Ie=0,xe,ye,Ge=0,Ze=0,Ve,ot=Ve=xe=0,$e=0,dt=0,Ct=0,qe=0,St=ue.length,At=St-1,ft,Re="",Xe="",Ut="",Tn="",Ye;$e<St;){if(ye=ue.charCodeAt($e),$e===At&&ae+Ie+ze+Se!==0&&(ae!==0&&(ye=ae===47?10:47),Ie=ze=Se=0,St++,At++),ae+Ie+ze+Se===0){if($e===At&&(0<dt&&(Re=Re.replace(v,"")),0<Re.trim().length)){switch(ye){case 32:case 9:case 59:case 13:case 10:break;default:Re+=ue.charAt($e)}ye=59}switch(ye){case 123:for(Re=Re.trim(),xe=Re.charCodeAt(0),Ve=1,qe=++$e;$e<St;){switch(ye=ue.charCodeAt($e)){case 123:Ve++;break;case 125:Ve--;break;case 47:switch(ye=ue.charCodeAt($e+1)){case 42:case 47:e:{for(ot=$e+1;ot<At;++ot)switch(ue.charCodeAt(ot)){case 47:if(ye===42&&ue.charCodeAt(ot-1)===42&&$e+2!==ot){$e=ot+1;break e}break;case 10:if(ye===47){$e=ot+1;break e}}$e=ot}}break;case 91:ye++;case 40:ye++;case 34:case 39:for(;$e++<At&&ue.charCodeAt($e)!==ye;);}if(Ve===0)break;$e++}switch(Ve=ue.substring(qe,$e),xe===0&&(xe=(Re=Re.replace(m,"").trim()).charCodeAt(0)),xe){case 64:switch(0<dt&&(Re=Re.replace(v,"")),ye=Re.charCodeAt(1),ye){case 100:case 109:case 115:case 45:dt=ee;break;default:dt=te}if(Ve=e(ee,dt,Ve,ye,W+1),qe=Ve.length,0<Y&&(dt=n(te,Re,Ct),Ye=u(3,Ve,dt,ee,V,G,qe,ye,W,Ee),Re=dt.join(""),Ye!==void 0&&(qe=(Ve=Ye.trim()).length)===0&&(ye=0,Ve="")),0<qe)switch(ye){case 115:Re=Re.replace(A,a);case 100:case 109:case 45:Ve=Re+"{"+Ve+"}";break;case 107:Re=Re.replace(E,"$1 $2"),Ve=Re+"{"+Ve+"}",Ve=ve===1||ve===2&&o("@"+Ve,3)?"@-webkit-"+Ve+"@"+Ve:"@"+Ve;break;default:Ve=Re+Ve,Ee===112&&(Ve=(Xe+=Ve,""))}else Ve="";break;default:Ve=e(ee,n(ee,Re,Ct),Ve,Ee,W+1)}Ut+=Ve,Ve=Ct=dt=ot=xe=0,Re="",ye=ue.charCodeAt(++$e);break;case 125:case 59:if(Re=(0<dt?Re.replace(v,""):Re).trim(),1<(qe=Re.length))switch(ot===0&&(xe=Re.charCodeAt(0),xe===45||96<xe&&123>xe)&&(qe=(Re=Re.replace(" ",":")).length),0<Y&&(Ye=u(1,Re,ee,re,V,G,Xe.length,Ee,W,Ee))!==void 0&&(qe=(Re=Ye.trim()).length)===0&&(Re="\0\0"),xe=Re.charCodeAt(0),ye=Re.charCodeAt(1),xe){case 0:break;case 64:if(ye===105||ye===99){Tn+=Re+ue.charAt($e);break}default:Re.charCodeAt(qe-1)!==58&&(Xe+=i(Re,xe,ye,Re.charCodeAt(2)))}Ct=dt=ot=xe=0,Re="",ye=ue.charCodeAt(++$e)}}switch(ye){case 13:case 10:ae===47?ae=0:1+xe===0&&Ee!==107&&0<Re.length&&(dt=1,Re+="\0"),0<Y*ce&&u(0,Re,ee,re,V,G,Xe.length,Ee,W,Ee),G=1,V++;break;case 59:case 125:if(ae+Ie+ze+Se===0){G++;break}default:switch(G++,ft=ue.charAt($e),ye){case 9:case 32:if(Ie+Se+ae===0)switch(Ge){case 44:case 58:case 9:case 32:ft="";break;default:ye!==32&&(ft=" ")}break;case 0:ft="\\0";break;case 12:ft="\\f";break;case 11:ft="\\v";break;case 38:Ie+ae+Se===0&&(dt=Ct=1,ft="\f"+ft);break;case 108:if(Ie+ae+Se+ne===0&&0<ot)switch($e-ot){case 2:Ge===112&&ue.charCodeAt($e-3)===58&&(ne=Ge);case 8:Ze===111&&(ne=Ze)}break;case 58:Ie+ae+Se===0&&(ot=$e);break;case 44:ae+ze+Ie+Se===0&&(dt=1,ft+="\r");break;case 34:case 39:ae===0&&(Ie=Ie===ye?0:Ie===0?ye:Ie);break;case 91:Ie+ae+ze===0&&Se++;break;case 93:Ie+ae+ze===0&&Se--;break;case 41:Ie+ae+Se===0&&ze--;break;case 40:if(Ie+ae+Se===0){if(xe===0)switch(2*Ge+3*Ze){case 533:break;default:xe=1}ze++}break;case 64:ae+ze+Ie+Se+ot+Ve===0&&(Ve=1);break;case 42:case 47:if(!(0<Ie+Se+ze))switch(ae){case 0:switch(2*ye+3*ue.charCodeAt($e+1)){case 235:ae=47;break;case 220:qe=$e,ae=42}break;case 42:ye===47&&Ge===42&&qe+2!==$e&&(ue.charCodeAt(qe+2)===33&&(Xe+=ue.substring(qe,$e+1)),ft="",ae=0)}}ae===0&&(Re+=ft)}Ze=Ge,Ge=ye,$e++}if(qe=Xe.length,0<qe){if(dt=ee,0<Y&&(Ye=u(2,Xe,dt,re,V,G,qe,Ee,W,Ee),Ye!==void 0&&(Xe=Ye).length===0))return Tn+Xe+Ut;if(Xe=dt.join(",")+"{"+Xe+"}",ve*ne!==0){switch(ve!==2||o(Xe,2)||(ne=0),ne){case 111:Xe=Xe.replace(T,":-moz-$1")+Xe;break;case 112:Xe=Xe.replace(k,"::-webkit-input-$1")+Xe.replace(k,"::-moz-$1")+Xe.replace(k,":-ms-input-$1")+Xe}ne=0}}return Tn+Xe+Ut}function n(re,ee,ue){var Ee=ee.trim().split(P);ee=Ee;var W=Ee.length,Se=re.length;switch(Se){case 0:case 1:var ae=0;for(re=Se===0?"":re[0]+" ";ae<W;++ae)ee[ae]=r(re,ee[ae],ue).trim();break;default:var ze=ae=0;for(ee=[];ae<W;++ae)for(var Ie=0;Ie<Se;++Ie)ee[ze++]=r(re[Ie]+" ",Ee[ae],ue).trim()}return ee}function r(re,ee,ue){var Ee=ee.charCodeAt(0);switch(33>Ee&&(Ee=(ee=ee.trim()).charCodeAt(0)),Ee){case 38:return ee.replace(b,"$1"+re.trim());case 58:return re.trim()+ee.replace(b,"$1"+re.trim());default:if(0<1*ue&&0<ee.indexOf("\f"))return ee.replace(b,(re.charCodeAt(0)===58?"":"$1")+re.trim())}return re+ee}function i(re,ee,ue,Ee){var W=re+";",Se=2*ee+3*ue+4*Ee;if(Se===944){re=W.indexOf(":",9)+1;var ae=W.substring(re,W.length-1).trim();return ae=W.substring(0,re).trim()+ae+";",ve===1||ve===2&&o(ae,1)?"-webkit-"+ae+ae:ae}if(ve===0||ve===2&&!o(W,1))return W;switch(Se){case 1015:return W.charCodeAt(10)===97?"-webkit-"+W+W:W;case 951:return W.charCodeAt(3)===116?"-webkit-"+W+W:W;case 963:return W.charCodeAt(5)===110?"-webkit-"+W+W:W;case 1009:if(W.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+W+W;case 978:return"-webkit-"+W+"-moz-"+W+W;case 1019:case 983:return"-webkit-"+W+"-moz-"+W+"-ms-"+W+W;case 883:if(W.charCodeAt(8)===45)return"-webkit-"+W+W;if(0<W.indexOf("image-set(",11))return W.replace(X,"$1-webkit-$2")+W;break;case 932:if(W.charCodeAt(4)===45)switch(W.charCodeAt(5)){case 103:return"-webkit-box-"+W.replace("-grow","")+"-webkit-"+W+"-ms-"+W.replace("grow","positive")+W;case 115:return"-webkit-"+W+"-ms-"+W.replace("shrink","negative")+W;case 98:return"-webkit-"+W+"-ms-"+W.replace("basis","preferred-size")+W}return"-webkit-"+W+"-ms-"+W+W;case 964:return"-webkit-"+W+"-ms-flex-"+W+W;case 1023:if(W.charCodeAt(8)!==99)break;return ae=W.substring(W.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ae+"-webkit-"+W+"-ms-flex-pack"+ae+W;case 1005:return w.test(W)?W.replace(C,":-webkit-")+W.replace(C,":-moz-")+W:W;case 1e3:switch(ae=W.substring(13).trim(),ee=ae.indexOf("-")+1,ae.charCodeAt(0)+ae.charCodeAt(ee)){case 226:ae=W.replace(L,"tb");break;case 232:ae=W.replace(L,"tb-rl");break;case 220:ae=W.replace(L,"lr");break;default:return W}return"-webkit-"+W+"-ms-"+ae+W;case 1017:if(W.indexOf("sticky",9)===-1)break;case 975:switch(ee=(W=re).length-10,ae=(W.charCodeAt(ee)===33?W.substring(0,ee):W).substring(re.indexOf(":",7)+1).trim(),Se=ae.charCodeAt(0)+(ae.charCodeAt(7)|0)){case 203:if(111>ae.charCodeAt(8))break;case 115:W=W.replace(ae,"-webkit-"+ae)+";"+W;break;case 207:case 102:W=W.replace(ae,"-webkit-"+(102<Se?"inline-":"")+"box")+";"+W.replace(ae,"-webkit-"+ae)+";"+W.replace(ae,"-ms-"+ae+"box")+";"+W}return W+";";case 938:if(W.charCodeAt(5)===45)switch(W.charCodeAt(6)){case 105:return ae=W.replace("-items",""),"-webkit-"+W+"-webkit-box-"+ae+"-ms-flex-"+ae+W;case 115:return"-webkit-"+W+"-ms-flex-item-"+W.replace(z,"")+W;default:return"-webkit-"+W+"-ms-flex-line-pack"+W.replace("align-content","").replace(z,"")+W}break;case 973:case 989:if(W.charCodeAt(3)!==45||W.charCodeAt(4)===122)break;case 931:case 953:if(B.test(re)===!0)return(ae=re.substring(re.indexOf(":")+1)).charCodeAt(0)===115?i(re.replace("stretch","fill-available"),ee,ue,Ee).replace(":fill-available",":stretch"):W.replace(ae,"-webkit-"+ae)+W.replace(ae,"-moz-"+ae.replace("fill-",""))+W;break;case 962:if(W="-webkit-"+W+(W.charCodeAt(5)===102?"-ms-"+W:"")+W,ue+Ee===211&&W.charCodeAt(13)===105&&0<W.indexOf("transform",10))return W.substring(0,W.indexOf(";",27)+1).replace(x,"$1-webkit-$2")+W}return W}function o(re,ee){var ue=re.indexOf(ee===1?":":"{"),Ee=re.substring(0,ee!==3?ue:10);return ue=re.substring(ue+1,re.length-1),de(ee!==2?Ee:Ee.replace(D,"$1"),ue,ee)}function a(re,ee){var ue=i(ee,ee.charCodeAt(0),ee.charCodeAt(1),ee.charCodeAt(2));return ue!==ee+";"?ue.replace(M," or ($1)").substring(4):"("+ee+")"}function u(re,ee,ue,Ee,W,Se,ae,ze,Ie,xe){for(var ye=0,Ge=ee,Ze;ye<Y;++ye)switch(Ze=pe[ye].call(h,re,Ge,ue,Ee,W,Se,ae,ze,Ie,xe)){case void 0:case!1:case!0:case null:break;default:Ge=Ze}if(Ge!==ee)return Ge}function c(re){switch(re){case void 0:case null:Y=pe.length=0;break;default:if(typeof re=="function")pe[Y++]=re;else if(typeof re=="object")for(var ee=0,ue=re.length;ee<ue;++ee)c(re[ee]);else ce=!!re|0}return c}function d(re){return re=re.prefix,re!==void 0&&(de=null,re?typeof re!="function"?ve=1:(ve=2,de=re):ve=0),d}function h(re,ee){var ue=re;if(33>ue.charCodeAt(0)&&(ue=ue.trim()),me=ue,ue=[me],0<Y){var Ee=u(-1,ee,ue,ue,V,G,0,0,0,0);Ee!==void 0&&typeof Ee=="string"&&(ee=Ee)}var W=e(te,ue,ee,0,0);return 0<Y&&(Ee=u(-2,W,ue,ue,V,G,W.length,0,0,0),Ee!==void 0&&(W=Ee)),me="",ne=0,G=V=1,W}var m=/^\0+/g,v=/[\0\r\f]/g,C=/: */g,w=/zoo|gra/,x=/([,: ])(transform)/g,P=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,E=/@(k\w+)\s*(\S*)\s*/,k=/::(place)/g,T=/:(read-only)/g,L=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,M=/([\s\S]*?);/g,z=/-self|flex-/g,D=/[^]*?(:[rp][el]a[\w-]+)[^]*/,B=/stretch|:\s*\w+\-(?:conte|avail)/,X=/([^-])(image-set\()/,G=1,V=1,ne=0,ve=1,te=[],pe=[],Y=0,de=null,ce=0,me="";return h.use=c,h.set=d,t!==void 0&&d(t),h}var xI={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function EI(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var bI=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,B8=EI(function(t){return bI.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),fE={exports:{}},jt={};/** @license React v16.13.1
 * react-is.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 Yn=typeof Symbol=="function"&&Symbol.for,I3=Yn?Symbol.for("react.element"):60103,L3=Yn?Symbol.for("react.portal"):60106,t1=Yn?Symbol.for("react.fragment"):60107,n1=Yn?Symbol.for("react.strict_mode"):60108,r1=Yn?Symbol.for("react.profiler"):60114,i1=Yn?Symbol.for("react.provider"):60109,o1=Yn?Symbol.for("react.context"):60110,A3=Yn?Symbol.for("react.async_mode"):60111,a1=Yn?Symbol.for("react.concurrent_mode"):60111,l1=Yn?Symbol.for("react.forward_ref"):60112,s1=Yn?Symbol.for("react.suspense"):60113,OI=Yn?Symbol.for("react.suspense_list"):60120,u1=Yn?Symbol.for("react.memo"):60115,c1=Yn?Symbol.for("react.lazy"):60116,PI=Yn?Symbol.for("react.block"):60121,kI=Yn?Symbol.for("react.fundamental"):60117,_I=Yn?Symbol.for("react.responder"):60118,TI=Yn?Symbol.for("react.scope"):60119;function oi(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case I3:switch(t=t.type,t){case A3:case a1:case t1:case r1:case n1:case s1:return t;default:switch(t=t&&t.$$typeof,t){case o1:case l1:case c1:case u1:case i1:return t;default:return e}}case L3:return e}}}function pE(t){return oi(t)===a1}jt.AsyncMode=A3;jt.ConcurrentMode=a1;jt.ContextConsumer=o1;jt.ContextProvider=i1;jt.Element=I3;jt.ForwardRef=l1;jt.Fragment=t1;jt.Lazy=c1;jt.Memo=u1;jt.Portal=L3;jt.Profiler=r1;jt.StrictMode=n1;jt.Suspense=s1;jt.isAsyncMode=function(t){return pE(t)||oi(t)===A3};jt.isConcurrentMode=pE;jt.isContextConsumer=function(t){return oi(t)===o1};jt.isContextProvider=function(t){return oi(t)===i1};jt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===I3};jt.isForwardRef=function(t){return oi(t)===l1};jt.isFragment=function(t){return oi(t)===t1};jt.isLazy=function(t){return oi(t)===c1};jt.isMemo=function(t){return oi(t)===u1};jt.isPortal=function(t){return oi(t)===L3};jt.isProfiler=function(t){return oi(t)===r1};jt.isStrictMode=function(t){return oi(t)===n1};jt.isSuspense=function(t){return oi(t)===s1};jt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===t1||t===a1||t===r1||t===n1||t===s1||t===OI||typeof t=="object"&&t!==null&&(t.$$typeof===c1||t.$$typeof===u1||t.$$typeof===i1||t.$$typeof===o1||t.$$typeof===l1||t.$$typeof===kI||t.$$typeof===_I||t.$$typeof===TI||t.$$typeof===PI)};jt.typeOf=oi;fE.exports=jt;var II=fE.exports,M3=II,LI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R3={};R3[M3.ForwardRef]=MI;R3[M3.Memo]=hE;function H8(t){return M3.isMemo(t)?hE:R3[t.$$typeof]||LI}var RI=Object.defineProperty,zI=Object.getOwnPropertyNames,F8=Object.getOwnPropertySymbols,jI=Object.getOwnPropertyDescriptor,NI=Object.getPrototypeOf,$8=Object.prototype;function gE(t,e,n){if(typeof e!="string"){if($8){var r=NI(e);r&&r!==$8&&gE(t,r,n)}var i=zI(e);F8&&(i=i.concat(F8(e)));for(var o=H8(t),a=H8(e),u=0;u<i.length;++u){var c=i[u];if(!AI[c]&&!(n&&n[c])&&!(a&&a[c])&&!(o&&o[c])){var d=jI(e,c);try{RI(t,c,d)}catch{}}}}return t}var DI=gE;const BI=rf(DI);var vi={};function Vi(){return(Vi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var W8=function(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n},av=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!dE.typeOf(t)},g0=Object.freeze([]),Ba=Object.freeze({});function Hu(t){return typeof t=="function"}function V8(t){return t.displayName||t.name||"Component"}function z3(t){return t&&typeof t.styledComponentId=="string"}var Fu=typeof UC<"u"&&vi!==void 0&&(vi.REACT_APP_SC_ATTR||vi.SC_ATTR)||"data-styled",j3=typeof window<"u"&&"HTMLElement"in window,HI=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof UC<"u"&&vi!==void 0&&(vi.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&vi.REACT_APP_SC_DISABLE_SPEEDY!==""?vi.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&vi.REACT_APP_SC_DISABLE_SPEEDY:vi.SC_DISABLE_SPEEDY!==void 0&&vi.SC_DISABLE_SPEEDY!==""&&vi.SC_DISABLE_SPEEDY!=="false"&&vi.SC_DISABLE_SPEEDY)),FI={};function Xl(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var $I=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,i=0;i<n;i++)r+=this.groupSizes[i];return r},e.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;n>=a;)(a<<=1)<0&&Xl(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var c=this.indexOfGroup(n+1),d=0,h=r.length;d<h;d++)this.tag.insertRule(c,r[d])&&(this.groupSizes[n]++,c++)},e.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),o=i+r;this.groupSizes[n]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i,u=o;u<a;u++)r+=this.tag.getRule(u)+"/*!sc*/\n";return r},t}(),Ah=new Map,m0=new Map,Od=1,Ip=function(t){if(Ah.has(t))return Ah.get(t);for(;m0.has(Od);)Od++;var e=Od++;return Ah.set(t,e),m0.set(e,t),e},WI=function(t){return m0.get(t)},VI=function(t,e){e>=Od&&(Od=e+1),Ah.set(t,e),m0.set(e,t)},GI="style["+Fu+'][data-styled-version="5.3.11"]',UI=new RegExp("^"+Fu+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),XI=function(t,e,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&t.registerName(e,r)},ZI=function(t,e){for(var n=(e.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var u=a.match(UI);if(u){var c=0|parseInt(u[1],10),d=u[2];c!==0&&(VI(d,c),XI(t,d,u[3]),t.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},YI=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},mE=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=function(u){for(var c=u.childNodes,d=c.length;d>=0;d--){var h=c[d];if(h&&h.nodeType===1&&h.hasAttribute(Fu))return h}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Fu,"active"),r.setAttribute("data-styled-version","5.3.11");var a=YI();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},KI=function(){function t(n){var r=this.element=mE(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,u=o.length;a<u;a++){var c=o[a];if(c.ownerNode===i)return c}Xl(17)}(r),this.length=0}var e=t.prototype;return e.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},t}(),qI=function(){function t(n){var r=this.element=mE(n);this.nodes=r.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},t}(),QI=function(){function t(n){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},t}(),G8=j3,JI={isServer:!j3,useCSSOMInjection:!HI},v0=function(){function t(n,r,i){n===void 0&&(n=Ba),r===void 0&&(r={}),this.options=Vi({},JI,{},n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&j3&&G8&&(G8=!1,function(o){for(var a=document.querySelectorAll(GI),u=0,c=a.length;u<c;u++){var d=a[u];d&&d.getAttribute(Fu)!=="active"&&(ZI(o,d),d.parentNode&&d.parentNode.removeChild(d))}}(this))}t.registerId=function(n){return Ip(n)};var e=t.prototype;return e.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new t(Vi({},this.options,{},n),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(r=this.options).isServer,o=r.useCSSOMInjection,a=r.target,n=i?new QI(a):o?new KI(a):new qI(a),new $I(n)));var n,r,i,o,a},e.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.registerName=function(n,r){if(Ip(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},e.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(Ip(n),i)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(Ip(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(n){for(var r=n.getTag(),i=r.length,o="",a=0;a<i;a++){var u=WI(a);if(u!==void 0){var c=n.names.get(u),d=r.getGroup(a);if(c&&d&&c.size){var h=Fu+".g"+a+'[id="'+u+'"]',m="";c!==void 0&&c.forEach(function(v){v.length>0&&(m+=v+",")}),o+=""+d+h+'{content:"'+m+'"}/*!sc*/\n'}}}return o}(this)},t}(),eL=/(a)(d)/gi,U8=function(t){return String.fromCharCode(t+(t>25?39:97))};function lv(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=U8(e%52)+n;return(U8(e%52)+n).replace(eL,"$1-$2")}var vu=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},vE=function(t){return vu(5381,t)};function yE(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Hu(n)&&!z3(n))return!1}return!0}var tL=vE("5.3.11"),nL=function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&yE(e),this.componentId=n,this.baseHash=vu(tL,n),this.baseStyle=r,v0.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=Zl(this.rules,e,n,r).join(""),u=lv(vu(this.baseHash,a)>>>0);if(!n.hasNameForId(i,u)){var c=r(a,"."+u,void 0,i);n.insertRules(i,u,c)}o.push(u),this.staticRulesId=u}else{for(var d=this.rules.length,h=vu(this.baseHash,r.hash),m="",v=0;v<d;v++){var C=this.rules[v];if(typeof C=="string")m+=C;else if(C){var w=Zl(C,e,n,r),x=Array.isArray(w)?w.join(""):w;h=vu(h,x+v),m+=x}}if(m){var P=lv(h>>>0);if(!n.hasNameForId(i,P)){var b=r(m,"."+P,void 0,i);n.insertRules(i,P,b)}o.push(P)}}return o.join(" ")},t}(),rL=/^\s*\/\/.*$/gm,iL=[":","[",".","#"];function oL(t){var e,n,r,i,o=t===void 0?Ba:t,a=o.options,u=a===void 0?Ba:a,c=o.plugins,d=c===void 0?g0:c,h=new SI(u),m=[],v=function(x){function P(b){if(b)try{x(b+"}")}catch{}}return function(b,E,k,T,L,A,M,z,D,B){switch(b){case 1:if(D===0&&E.charCodeAt(0)===64)return x(E+";"),"";break;case 2:if(z===0)return E+"/*|*/";break;case 3:switch(z){case 102:case 112:return x(k[0]+E),"";default:return E+(B===0?"/*|*/":"")}case-2:E.split("/*|*/}").forEach(P)}}}(function(x){m.push(x)}),C=function(x,P,b){return P===0&&iL.indexOf(b[n.length])!==-1||b.match(i)?x:"."+e};function w(x,P,b,E){E===void 0&&(E="&");var k=x.replace(rL,""),T=P&&b?b+" "+P+" { "+k+" }":k;return e=E,n=P,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),h(b||!P?"":P,T)}return h.use([].concat(d,[function(x,P,b){x===2&&b.length&&b[0].lastIndexOf(n)>0&&(b[0]=b[0].replace(r,C))},v,function(x){if(x===-2){var P=m;return m=[],P}}])),w.hash=d.length?d.reduce(function(x,P){return P.name||Xl(15),vu(x,P.name)},5381).toString():"",w}var wE=p.createContext();wE.Consumer;var CE=p.createContext(),aL=(CE.Consumer,new v0),sv=oL();function SE(){return j.useContext(wE)||aL}function xE(){return j.useContext(CE)||sv}var EE=function(){function t(e,n){var r=this;this.inject=function(i,o){o===void 0&&(o=sv);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.toString=function(){return Xl(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=sv),this.name+e.hash},t}(),lL=/([A-Z])/,sL=/([A-Z])/g,uL=/^ms-/,cL=function(t){return"-"+t.toLowerCase()};function X8(t){return lL.test(t)?t.replace(sL,cL).replace(uL,"-ms-"):t}var Z8=function(t){return t==null||t===!1||t===""};function Zl(t,e,n,r){if(Array.isArray(t)){for(var i,o=[],a=0,u=t.length;a<u;a+=1)(i=Zl(t[a],e,n,r))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(Z8(t))return"";if(z3(t))return"."+t.styledComponentId;if(Hu(t)){if(typeof(d=t)!="function"||d.prototype&&d.prototype.isReactComponent||!e)return t;var c=t(e);return Zl(c,e,n,r)}var d;return t instanceof EE?n?(t.inject(n,r),t.getName(r)):t:av(t)?function h(m,v){var C,w,x=[];for(var P in m)m.hasOwnProperty(P)&&!Z8(m[P])&&(Array.isArray(m[P])&&m[P].isCss||Hu(m[P])?x.push(X8(P)+":",m[P],";"):av(m[P])?x.push.apply(x,h(m[P],P)):x.push(X8(P)+": "+(C=P,(w=m[P])==null||typeof w=="boolean"||w===""?"":typeof w!="number"||w===0||C in xI||C.startsWith("--")?String(w).trim():w+"px")+";"));return v?[v+" {"].concat(x,["}"]):x}(t):t.toString()}var Y8=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function F(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Hu(t)||av(t)?Y8(Zl(W8(g0,[t].concat(n)))):n.length===0&&t.length===1&&typeof t[0]=="string"?t:Y8(Zl(W8(t,n)))}var bE=function(t,e,n){return n===void 0&&(n=Ba),t.theme!==n.theme&&t.theme||e||n.theme},dL=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fL=/(^-|-$)/g;function E2(t){return t.replace(dL,"-").replace(fL,"")}var N3=function(t){return lv(vE(t)>>>0)};function Lp(t){return typeof t=="string"&&!0}var uv=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},pL=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function hL(t,e,n){var r=t[n];uv(e)&&uv(r)?OE(r,e):t[n]=e}function OE(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(uv(a))for(var u in a)pL(u)&&hL(t,a[u],u)}return t}var $u=p.createContext();$u.Consumer;function gL(t){var e=j.useContext($u),n=j.useMemo(function(){return function(r,i){if(!r)return Xl(14);if(Hu(r)){var o=r(i);return o}return Array.isArray(r)||typeof r!="object"?Xl(8):i?Vi({},i,{},r):r}(t.theme,e)},[t.theme,e]);return t.children?p.createElement($u.Provider,{value:n},t.children):null}var b2={};function PE(t,e,n){var r=z3(t),i=!Lp(t),o=e.attrs,a=o===void 0?g0:o,u=e.componentId,c=u===void 0?function(E,k){var T=typeof E!="string"?"sc":E2(E);b2[T]=(b2[T]||0)+1;var L=T+"-"+N3("5.3.11"+T+b2[T]);return k?k+"-"+L:L}(e.displayName,e.parentComponentId):u,d=e.displayName,h=d===void 0?function(E){return Lp(E)?"styled."+E:"Styled("+V8(E)+")"}(t):d,m=e.displayName&&e.componentId?E2(e.displayName)+"-"+e.componentId:e.componentId||c,v=r&&t.attrs?Array.prototype.concat(t.attrs,a).filter(Boolean):a,C=e.shouldForwardProp;r&&t.shouldForwardProp&&(C=e.shouldForwardProp?function(E,k,T){return t.shouldForwardProp(E,k,T)&&e.shouldForwardProp(E,k,T)}:t.shouldForwardProp);var w,x=new nL(n,m,r?t.componentStyle:void 0),P=x.isStatic&&a.length===0,b=function(E,k){return function(T,L,A,M){var z=T.attrs,D=T.componentStyle,B=T.defaultProps,X=T.foldedComponentIds,G=T.shouldForwardProp,V=T.styledComponentId,ne=T.target,ve=function(Ee,W,Se){Ee===void 0&&(Ee=Ba);var ae=Vi({},W,{theme:Ee}),ze={};return Se.forEach(function(Ie){var xe,ye,Ge,Ze=Ie;for(xe in Hu(Ze)&&(Ze=Ze(ae)),Ze)ae[xe]=ze[xe]=xe==="className"?(ye=ze[xe],Ge=Ze[xe],ye&&Ge?ye+" "+Ge:ye||Ge):Ze[xe]}),[ae,ze]}(bE(L,j.useContext($u),B)||Ba,L,z),te=ve[0],pe=ve[1],Y=function(Ee,W,Se,ae){var ze=SE(),Ie=xE(),xe=W?Ee.generateAndInjectStyles(Ba,ze,Ie):Ee.generateAndInjectStyles(Se,ze,Ie);return xe}(D,M,te),de=A,ce=pe.$as||L.$as||pe.as||L.as||ne,me=Lp(ce),re=pe!==L?Vi({},L,{},pe):L,ee={};for(var ue in re)ue[0]!=="$"&&ue!=="as"&&(ue==="forwardedAs"?ee.as=re[ue]:(G?G(ue,B8,ce):!me||B8(ue))&&(ee[ue]=re[ue]));return L.style&&pe.style!==L.style&&(ee.style=Vi({},L.style,{},pe.style)),ee.className=Array.prototype.concat(X,V,Y!==V?Y:null,L.className,pe.className).filter(Boolean).join(" "),ee.ref=de,j.createElement(ce,ee)}(w,E,k,P)};return b.displayName=h,(w=p.forwardRef(b)).attrs=v,w.componentStyle=x,w.displayName=h,w.shouldForwardProp=C,w.foldedComponentIds=r?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):g0,w.styledComponentId=m,w.target=r?t.target:t,w.withComponent=function(E){var k=e.componentId,T=function(A,M){if(A==null)return{};var z,D,B={},X=Object.keys(A);for(D=0;D<X.length;D++)z=X[D],M.indexOf(z)>=0||(B[z]=A[z]);return B}(e,["componentId"]),L=k&&k+"-"+(Lp(E)?E:E2(V8(E)));return PE(E,Vi({},T,{attrs:v,componentId:L}),n)},Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=r?OE({},t.defaultProps,E):E}}),Object.defineProperty(w,"toString",{value:function(){return"."+w.styledComponentId}}),i&&BI(w,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var $=function(t){return function e(n,r,i){if(i===void 0&&(i=Ba),!dE.isValidElementType(r))return Xl(1,String(r));var o=function(){return n(r,i,F.apply(void 0,arguments))};return o.withConfig=function(a){return e(n,r,Vi({},i,{},a))},o.attrs=function(a){return e(n,r,Vi({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(PE,t)};["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(t){$[t]=$(t)});var mL=function(){function t(n,r){this.rules=n,this.componentId=r,this.isStatic=yE(n),v0.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,r,i,o){var a=o(Zl(this.rules,r,i,o).join(""),""),u=this.componentId+n;i.insertRules(u,u,a)},e.removeStyles=function(n,r){r.clearRules(this.componentId+n)},e.renderStyles=function(n,r,i,o){n>2&&v0.registerId(this.componentId+n),this.removeStyles(n,i),this.createStyles(n,r,i,o)},t}();function d1(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=F.apply(void 0,[t].concat(n)),o="sc-global-"+N3(JSON.stringify(i)),a=new mL(i,o);function u(d){var h=SE(),m=xE(),v=j.useContext($u),C=j.useRef(h.allocateGSInstance(o)).current;return h.server&&c(C,d,h,v,m),j.useLayoutEffect(function(){if(!h.server)return c(C,d,h,v,m),function(){return a.removeStyles(C,h)}},[C,d,h,v,m]),null}function c(d,h,m,v,C){if(a.isStatic)a.renderStyles(d,FI,m,C);else{var w=Vi({},h,{theme:bE(h,v,u.defaultProps)});a.renderStyles(d,w,m,C)}}return p.memo(u)}function D3(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=F.apply(void 0,[t].concat(n)).join(""),o=N3(i);return new EE(o,i)}var vL=function(){return j.useContext($u)},y0={exports:{}};y0.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,u="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",h="[object Boolean]",m="[object Date]",v="[object Error]",C="[object Function]",w="[object GeneratorFunction]",x="[object Map]",P="[object Number]",b="[object Null]",E="[object Object]",k="[object Proxy]",T="[object RegExp]",L="[object Set]",A="[object String]",M="[object Undefined]",z="[object WeakMap]",D="[object ArrayBuffer]",B="[object DataView]",X="[object Float32Array]",G="[object Float64Array]",V="[object Int8Array]",ne="[object Int16Array]",ve="[object Int32Array]",te="[object Uint8Array]",pe="[object Uint8ClampedArray]",Y="[object Uint16Array]",de="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,me=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,ee={};ee[X]=ee[G]=ee[V]=ee[ne]=ee[ve]=ee[te]=ee[pe]=ee[Y]=ee[de]=!0,ee[u]=ee[c]=ee[D]=ee[h]=ee[B]=ee[m]=ee[v]=ee[C]=ee[x]=ee[P]=ee[E]=ee[T]=ee[L]=ee[A]=ee[z]=!1;var ue=typeof dp=="object"&&dp&&dp.Object===Object&&dp,Ee=typeof self=="object"&&self&&self.Object===Object&&self,W=ue||Ee||Function("return this")(),Se=e&&!e.nodeType&&e,ae=Se&&!0&&t&&!t.nodeType&&t,ze=ae&&ae.exports===Se,Ie=ze&&ue.process,xe=function(){try{var N=ae&&ae.require&&ae.require("util").types;return N||Ie&&Ie.binding&&Ie.binding("util")}catch{}}(),ye=xe&&xe.isTypedArray;function Ge(N,U,ie){switch(ie.length){case 0:return N.call(U);case 1:return N.call(U,ie[0]);case 2:return N.call(U,ie[0],ie[1]);case 3:return N.call(U,ie[0],ie[1],ie[2])}return N.apply(U,ie)}function Ze(N,U){for(var ie=-1,De=Array(N);++ie<N;)De[ie]=U(ie);return De}function Ve(N){return function(U){return N(U)}}function ot(N,U){return N==null?void 0:N[U]}function $e(N,U){return function(ie){return N(U(ie))}}var dt=Array.prototype,Ct=Function.prototype,qe=Object.prototype,St=W["__core-js_shared__"],At=Ct.toString,ft=qe.hasOwnProperty,Re=function(){var N=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),Xe=qe.toString,Ut=At.call(Object),Tn=RegExp("^"+At.call(ft).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=ze?W.Buffer:void 0,Ae=W.Symbol,at=W.Uint8Array,pt=Ye?Ye.allocUnsafe:void 0,Et=$e(Object.getPrototypeOf,Object),_t=Object.create,En=qe.propertyIsEnumerable,ln=dt.splice,In=Ae?Ae.toStringTag:void 0,Vr=function(){try{var N=da(Object,"defineProperty");return N({},"",{}),N}catch{}}(),Ji=Ye?Ye.isBuffer:void 0,Ti=Math.max,rt=Date.now,lt=da(W,"Map"),Nt=da(Object,"create"),Dt=function(){function N(){}return function(U){if(!ko(U))return{};if(_t)return _t(U);N.prototype=U;var ie=new N;return N.prototype=void 0,ie}}();function tn(N){var U=-1,ie=N==null?0:N.length;for(this.clear();++U<ie;){var De=N[U];this.set(De[0],De[1])}}function Hn(){this.__data__=Nt?Nt(null):{},this.size=0}function bo(N){var U=this.has(N)&&delete this.__data__[N];return this.size-=U?1:0,U}function eo(N){var U=this.__data__;if(Nt){var ie=U[N];return ie===r?void 0:ie}return ft.call(U,N)?U[N]:void 0}function ds(N){var U=this.__data__;return Nt?U[N]!==void 0:ft.call(U,N)}function fs(N,U){var ie=this.__data__;return this.size+=this.has(N)?0:1,ie[N]=Nt&&U===void 0?r:U,this}tn.prototype.clear=Hn,tn.prototype.delete=bo,tn.prototype.get=eo,tn.prototype.has=ds,tn.prototype.set=fs;function Gr(N){var U=-1,ie=N==null?0:N.length;for(this.clear();++U<ie;){var De=N[U];this.set(De[0],De[1])}}function ac(){this.__data__=[],this.size=0}function Oo(N){var U=this.__data__,ie=hs(U,N);if(ie<0)return!1;var De=U.length-1;return ie==De?U.pop():ln.call(U,ie,1),--this.size,!0}function Ln(N){var U=this.__data__,ie=hs(U,N);return ie<0?void 0:U[ie][1]}function Or(N){return hs(this.__data__,N)>-1}function lc(N,U){var ie=this.__data__,De=hs(ie,N);return De<0?(++this.size,ie.push([N,U])):ie[De][1]=U,this}Gr.prototype.clear=ac,Gr.prototype.delete=Oo,Gr.prototype.get=Ln,Gr.prototype.has=Or,Gr.prototype.set=lc;function aa(N){var U=-1,ie=N==null?0:N.length;for(this.clear();++U<ie;){var De=N[U];this.set(De[0],De[1])}}function ps(){this.size=0,this.__data__={hash:new tn,map:new(lt||Gr),string:new tn}}function R1(N){var U=sl(this,N).delete(N);return this.size-=U?1:0,U}function z1(N){return sl(this,N).get(N)}function j1(N){return sl(this,N).has(N)}function N1(N,U){var ie=sl(this,N),De=ie.size;return ie.set(N,U),this.size+=ie.size==De?0:1,this}aa.prototype.clear=ps,aa.prototype.delete=R1,aa.prototype.get=z1,aa.prototype.has=j1,aa.prototype.set=N1;function la(N){var U=this.__data__=new Gr(N);this.size=U.size}function D1(){this.__data__=new Gr,this.size=0}function B1(N){var U=this.__data__,ie=U.delete(N);return this.size=U.size,ie}function H1(N){return this.__data__.get(N)}function F1(N){return this.__data__.has(N)}function $1(N,U){var ie=this.__data__;if(ie instanceof Gr){var De=ie.__data__;if(!lt||De.length<n-1)return De.push([N,U]),this.size=++ie.size,this;ie=this.__data__=new aa(De)}return ie.set(N,U),this.size=ie.size,this}la.prototype.clear=D1,la.prototype.delete=B1,la.prototype.get=H1,la.prototype.has=F1,la.prototype.set=$1;function W1(N,U){var ie=dl(N),De=!ie&&pc(N),gt=!ie&&!De&&ws(N),Mt=!ie&&!De&&!gt&&Pf(N),wt=ie||De||gt||Mt,it=wt?Ze(N.length,String):[],kt=it.length;for(var Kn in N)(U||ft.call(N,Kn))&&!(wt&&(Kn=="length"||gt&&(Kn=="offset"||Kn=="parent")||Mt&&(Kn=="buffer"||Kn=="byteLength"||Kn=="byteOffset")||xf(Kn,kt)))&&it.push(Kn);return it}function sc(N,U,ie){(ie!==void 0&&!no(N[U],ie)||ie===void 0&&!(U in N))&&al(N,U,ie)}function V1(N,U,ie){var De=N[U];(!(ft.call(N,U)&&no(De,ie))||ie===void 0&&!(U in N))&&al(N,U,ie)}function hs(N,U){for(var ie=N.length;ie--;)if(no(N[ie][0],U))return ie;return-1}function al(N,U,ie){U=="__proto__"&&Vr?Vr(N,U,{configurable:!0,enumerable:!0,value:ie,writable:!0}):N[U]=ie}var ll=Cf();function sa(N){return N==null?N===void 0?M:b:In&&In in Object(N)?Sf(N):ys(N)}function gs(N){return nn(N)&&sa(N)==u}function G1(N){if(!ko(N)||vs(N))return!1;var U=Cs(N)?Tn:me;return U.test(fc(N))}function uc(N){return nn(N)&&Of(N.length)&&!!ee[sa(N)]}function ua(N){if(!ko(N))return cl(N);var U=ul(N),ie=[];for(var De in N)De=="constructor"&&(U||!ft.call(N,De))||ie.push(De);return ie}function Ii(N,U,ie,De,gt){N!==U&&ll(U,function(Mt,wt){if(gt||(gt=new la),ko(Mt))Ft(N,U,wt,ie,Ii,De,gt);else{var it=De?De(cc(N,wt),Mt,wt+"",N,U,gt):void 0;it===void 0&&(it=Mt),sc(N,wt,it)}},kf)}function Ft(N,U,ie,De,gt,Mt,wt){var it=cc(N,ie),kt=cc(U,ie),Kn=wt.get(kt);if(Kn){sc(N,ie,Kn);return}var $n=Mt?Mt(it,kt,ie+"",N,U,wt):void 0,Wn=$n===void 0;if(Wn){var or=dl(kt),Li=!or&&ws(kt),si=!or&&!Li&&Pf(kt);$n=kt,or||Li||si?dl(it)?$n=it:bf(it)?$n=ca(it):Li?(Wn=!1,$n=Fn(kt,!0)):si?(Wn=!1,$n=Po(kt,!0)):$n=[]:hc(kt)||pc(kt)?($n=it,pc(it)?$n=gc(it):(!ko(it)||Cs(it))&&($n=Ur(kt))):Wn=!1}Wn&&(wt.set(kt,$n),gt($n,kt,De,Mt,wt),wt.delete(kt)),sc(N,ie,$n)}function Bt(N,U){return dc(Z1(N,U,_f),N+"")}var to=Vr?function(N,U){return Vr(N,"toString",{configurable:!0,enumerable:!1,value:li(U),writable:!0})}:_f;function Fn(N,U){if(U)return N.slice();var ie=N.length,De=pt?pt(ie):new N.constructor(ie);return N.copy(De),De}function rr(N){var U=new N.constructor(N.byteLength);return new at(U).set(new at(N)),U}function Po(N,U){var ie=U?rr(N.buffer):N.buffer;return new N.constructor(ie,N.byteOffset,N.length)}function ca(N,U){var ie=-1,De=N.length;for(U||(U=Array(De));++ie<De;)U[ie]=N[ie];return U}function ir(N,U,ie,De){var gt=!ie;ie||(ie={});for(var Mt=-1,wt=U.length;++Mt<wt;){var it=U[Mt],kt=De?De(ie[it],N[it],it,ie,N):void 0;kt===void 0&&(kt=N[it]),gt?al(ie,it,kt):V1(ie,it,kt)}return ie}function ms(N){return Bt(function(U,ie){var De=-1,gt=ie.length,Mt=gt>1?ie[gt-1]:void 0,wt=gt>2?ie[2]:void 0;for(Mt=N.length>3&&typeof Mt=="function"?(gt--,Mt):void 0,wt&&U1(ie[0],ie[1],wt)&&(Mt=gt<3?void 0:Mt,gt=1),U=Object(U);++De<gt;){var it=ie[De];it&&N(U,it,De,Mt)}return U})}function Cf(N){return function(U,ie,De){for(var gt=-1,Mt=Object(U),wt=De(U),it=wt.length;it--;){var kt=wt[N?it:++gt];if(ie(Mt[kt],kt,Mt)===!1)break}return U}}function sl(N,U){var ie=N.__data__;return X1(U)?ie[typeof U=="string"?"string":"hash"]:ie.map}function da(N,U){var ie=ot(N,U);return G1(ie)?ie:void 0}function Sf(N){var U=ft.call(N,In),ie=N[In];try{N[In]=void 0;var De=!0}catch{}var gt=Xe.call(N);return De&&(U?N[In]=ie:delete N[In]),gt}function Ur(N){return typeof N.constructor=="function"&&!ul(N)?Dt(Et(N)):{}}function xf(N,U){var ie=typeof N;return U=U==null?a:U,!!U&&(ie=="number"||ie!="symbol"&&re.test(N))&&N>-1&&N%1==0&&N<U}function U1(N,U,ie){if(!ko(ie))return!1;var De=typeof U;return(De=="number"?mt(ie)&&xf(U,ie.length):De=="string"&&U in ie)?no(ie[U],N):!1}function X1(N){var U=typeof N;return U=="string"||U=="number"||U=="symbol"||U=="boolean"?N!=="__proto__":N===null}function vs(N){return!!Re&&Re in N}function ul(N){var U=N&&N.constructor,ie=typeof U=="function"&&U.prototype||qe;return N===ie}function cl(N){var U=[];if(N!=null)for(var ie in Object(N))U.push(ie);return U}function ys(N){return Xe.call(N)}function Z1(N,U,ie){return U=Ti(U===void 0?N.length-1:U,0),function(){for(var De=arguments,gt=-1,Mt=Ti(De.length-U,0),wt=Array(Mt);++gt<Mt;)wt[gt]=De[U+gt];gt=-1;for(var it=Array(U+1);++gt<U;)it[gt]=De[gt];return it[U]=ie(wt),Ge(N,this,it)}}function cc(N,U){if(!(U==="constructor"&&typeof N[U]=="function")&&U!="__proto__")return N[U]}var dc=Ef(to);function Ef(N){var U=0,ie=0;return function(){var De=rt(),gt=o-(De-ie);if(ie=De,gt>0){if(++U>=i)return arguments[0]}else U=0;return N.apply(void 0,arguments)}}function fc(N){if(N!=null){try{return At.call(N)}catch{}try{return N+""}catch{}}return""}function no(N,U){return N===U||N!==N&&U!==U}var pc=gs(function(){return arguments}())?gs:function(N){return nn(N)&&ft.call(N,"callee")&&!En.call(N,"callee")},dl=Array.isArray;function mt(N){return N!=null&&Of(N.length)&&!Cs(N)}function bf(N){return nn(N)&&mt(N)}var ws=Ji||Y1;function Cs(N){if(!ko(N))return!1;var U=sa(N);return U==C||U==w||U==d||U==k}function Of(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=a}function ko(N){var U=typeof N;return N!=null&&(U=="object"||U=="function")}function nn(N){return N!=null&&typeof N=="object"}function hc(N){if(!nn(N)||sa(N)!=E)return!1;var U=Et(N);if(U===null)return!0;var ie=ft.call(U,"constructor")&&U.constructor;return typeof ie=="function"&&ie instanceof ie&&At.call(ie)==Ut}var Pf=ye?Ve(ye):uc;function gc(N){return ir(N,kf(N))}function kf(N){return mt(N)?W1(N,!0):ua(N)}var Ss=ms(function(N,U,ie){Ii(N,U,ie)});function li(N){return function(){return N}}function _f(N){return N}function Y1(){return!1}t.exports=Ss})(y0,y0.exports);var yL=y0.exports;const K8=rf(yL);var Sl=function(e,n){return e.reduce(function(r,i){return Object.assign(r,S({},i,n))},{})};function cv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wL(t){if(Array.isArray(t))return cv(t)}function kE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function B3(t,e){if(t){if(typeof t=="string")return cv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cv(t,e)}}function CL(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function en(t){return wL(t)||kE(t)||B3(t)||CL()}function we(t,e){var n=function(o){return"Sfx".concat(t).concat(o?"-".concat(o):"")},r=[];return e&&(Array.isArray(e)?r.push.apply(r,en(e.filter(function(i){return typeof i=="string"}).map(function(i){return n(i)}))):typeof e=="string"&&r.push(n(e))),r.length===0&&r.push(n()),r.join(" ")}function ct(t,e){var n=j.forwardRef(t);return n.displayName=e||t.name,n}function SL(t){return Object.keys(t)}function ut(t){return Object.values(t)}function xL(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return typeof t=="function"?t.apply(void 0,n):t}function It(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return r.displayName="".concat(n),Object.assign(e,S({},n,r))},{})}function q8(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function _E(t,e){return j.useMemo(function(){return t==null&&e==null?null:function(n){q8(t,n),q8(e,n)}},[t,e])}function Ms(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=n||1e6,i=+t;return Math.min(Math.max(e,i),r)}function O2(t,e,n,r,i){return(t-e)*(i-r)/(n-e)+r}var H3=function(e){return e.replaceAll(/[^\d,]/gi,"").split(",").map(function(n){return+n})},Mh=function(e){return e?[Number.parseInt(e.slice(1,3),16),Number.parseInt(e.slice(3,5),16),Number.parseInt(e.slice(5,7),16)]:[0,0,0]},TE=function(e){return e.toString(16).padStart(2,"0")},IE=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return"#".concat(n.map(TE).join(""))},EL=function(e,n,r){var i=r/100,o=n*Math.min(i,1-i)/100,a=function(c){var d=(c+e/30)%12,h=i-o*Math.max(Math.min(d-3,9-d,1),-1);return TE(Math.round(255*h))};return"#".concat(a(0)).concat(a(8)).concat(a(4))},Q8=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2];i/=255,o/=255,a/=255;var u=Math.min(i,o,a),c=Math.max(i,o,a),d,h,m=(c+u)/2;if(c===u)d=0,h=0;else{var v=c-u;switch(h=m>.5?v/(2-c-u):v/(c+u),c){case i:d=(o-a)/v+(o<a?6:0);break;case o:d=(a-i)/v+2;break;case a:d=(i-o)/v+4;break;default:d=0}d/=6}return[Math.round(d*360),Math.round(h*100),Math.round(m*100)]},P2=function(e){if(e.startsWith("#")){var n=e;return e.length===4&&(n="#".concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]).concat(e[3]).concat(e[3])),Q8.apply(void 0,en(Mh(n)))}if(e.startsWith("rgb")){var r=H3(e);return Q8.apply(void 0,en(r))}return typeof e=="string"?[0,0,0]:e},J8=function(e){return e.startsWith("#")?e.length===7?e:"#".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]):e.startsWith("rgb")?IE.apply(void 0,en(H3(e))):typeof e=="string"?"#000000":e},LE=function(e,n){return n===0&&(e===0||e===1)},AE=function(e,n){return e===0&&n===1},bL=function(e,n,r){var i=n,o=(2-n)*r/2;o!==0&&(o===1?i=0:o<.5?i=i*r/(o*2):i=i*r/(2-o*2));var a=LE(i,o);return[a||AE(i,o)?0:e,a?0:Math.round(i*100),Math.round(o*100)]},OL=function(e,n,r){var i=n,o=r*2;i*=o<=1?o:2-o;var a=(o+i)/2;i=2*i/(o+i);var u=LE(i,r);return[u||AE(i,r)?0:e,u?0:Math.round(i*100),Math.round(a*100)]},e7=function(e){return/^#[\da-f]{6}$/i.test(e)};function xl(t){if(!t)return null;var e=t.getBoundingClientRect(),n=document,r=n.body,i=document.documentElement,o=window.pageYOffset||i.scrollTop||r.scrollTop,a=window.pageXOffset||i.scrollLeft||r.scrollLeft,u=i.clientTop||r.clientTop||0,c=i.clientLeft||r.clientLeft||0,d=e.top+o-u,h=e.left+a-c;return{top:Math.round(d),left:Math.round(h),width:e.width,height:e.height}}function ME(t,e){return t-e}function k2(t,e,n){return(t-e)*100/(n-e)}function PL(t,e,n){return(n-e)*t+e}function kL(t){if(Math.abs(t)<1){var e=t.toExponential().split("e-"),n=e[0].split(".")[1];return(n?n.length:0)+Number.parseInt(e[1],10)}var r=t.toString().split(".")[1];return r?r.length:0}function _L(t,e,n){var r=Math.round((t-n)/e)*e+n;return Number(r.toFixed(kL(e)))}function t7(t){var e=t.values,n=t.newValue,r=t.index,i=e.slice();return i[r]=n,i.sort(ME)}function TL(t,e){var n=t.reduce(function(i,o,a){var u=Math.abs(e-o);return i===null||u<i.distance||u===i.distance?{distance:u,index:a}:i},null),r=n.index;return r}function Rh(t){return t&&t.ownerDocument||document}function _2(t,e,n){return t==null?e:Math.min(Math.max(e,t),n)}function Ap(t,e){if(e.current!==void 0&&t.changedTouches){for(var n=0;n<t.changedTouches.length;n+=1){var r=t.changedTouches[n];if(r.identifier===e.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:t.clientX,y:t.clientY}}var T2={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}};function Mp(t){var e=t.sliderRef,n=t.activeIndex,r=t.setActive,i=Rh(e.current);if(!e.current.contains(i.activeElement)||Number(i.activeElement.getAttribute("data-index"))!==n){var o;(o=e.current.querySelector('[type="range"][data-index="'.concat(n,'"]')))===null||o===void 0||o.focus()}r&&r(n)}var _={TextPrimary:"txt-primary",TextSecondary:"txt-secondary",TextSecondaryInvert:"txt-secondary-invert",TextPlaceholder:"txt-placeholder",TextWarning:"txt-warning",TextError:"txt-error",TextInfo:"txt-info",AccentPrimary:"accent-primary",AccentPrimaryHover:"accent-primary-hover",AccentPrimaryActive:"accent-primary-active",AccentPrimaryDisabled:"accent-primary-disabled",AccentSecondaryDisabled:"accent-secondary-disabled",AccentStateless:"accent-stateless",AccentStateless_0_4_Opacity:"accent-stateless_0_4_opacity",Accent_0_5_Opacity:"accent_0_5_opacity",Accent_1_2_Opacity:"accent_1_2_opacity",Accent_1_8_Opacity:"accent_1_8_opacity",Accent_2_8_Opacity:"accent_2_8_opacity",Accent_4_0_Opacity:"accent_4_0_opacity",BackgroundGrey:"bg-grey",BackgroundStateless:"bg-stateless",BackgroundActive:"bg-active",BackgroundBaseLight:"bg-base-light",BackgroundBaseMedium:"bg-base-medium",BackgroundPrimary:"bg-primary",BackgroundPrimaryLight:"bg-primary-light",BackgroundPrimaryHover:"bg-primary-hover",BackgroundPrimaryActive:"bg-primary-active",BackgroundPrimaryStateless:"bg-primary-stateless",BackgroundPrimary_0_5_Opacity:"bg-primary-0-5-opacity",BackgroundSecondary:"bg-secondary",BackgroundHover:"bg-hover",BackgroundGreen:"bg-green",BackgroundGreenMedium:"bg-green-medium",BackgroundBlue:"bg-blue",BackgroundRed:"bg-red",BackgroundRedMedium:"background-red-medium",BackgroundOrange:"bg-orange",BackgroundTooltip:"bg-tooltip",IconsPrimary:"icon-primary",IconsPrimaryOpacity_0_6:"icons-primary-opacity-0-6",IconsSecondary:"icons-secondary",IconsPlaceholder:"icons-placeholder",IconsInvert:"icons-invert",IconsMuted:"icons-muted",IconsPrimaryHover:"icons-primary-hover",IconsSecondaryHover:"icons-secondary-hover",ButtonPrimaryText:"btn-primary-text",ButtonPrimaryText_0_6:"btn-primary-text-0-6",ButtonPrimaryText_0_4:"btn-primary-text-0-4",ButtonDisabledText:"btn-disabled-text",ButtonSecondaryText:"btn-secondary-text",LinkPrimary:"link-primary",LinkStateless:"link-stateless",LinkHover:"link-hover",LinkActive:"link-active",LinkMuted:"link-muted",LinkPressed:"link-pressed",BordersPrimary:"borders-primary",BordersPrimaryHover:"borders-primary-hover",BordersSecondary:"borders-secondary",BordersStrong:"borders-strong",BordersInvert:"borders-invert",BorderHoverBottom:"border-hover-bottom",BorderActiveBottom:"border-active-bottom",BorderPrimaryStateless:"border-primary-stateless",BordersDisabled:"borders-disabled",BordersButton:"borders-button",BordersItem:"borders-item",BordersBaseLight:"borders-base-light",BordersBaseMedium:"borders-base-medium",BordersGreen:"borders-green",BordersGreenMedium:"borders-green-medium",BordersRed:"borders-red",ActiveSecondary:"active-secondary",ActiveSecondaryHover:"active-secondary-hover",Tag:"tag",StatesErrorDisabledText:"states-error-disabled-text",Error:"error",Error_0_28_Opacity:"error-0-28-opacity",Error_0_12_Opacity:"error-0-12-opacity",ErrorHover:"error-hover",ErrorActive:"error-active",Success:"success",SuccessHover:"success-hover",SuccessActive:"success-Active",Warning:"warning",WarningHover:"warning-hover",WarningActive:"warning-active",Info:"info",Modified:"modified",Red:"red",Orange:"orange",Salad:"salad",Green:"green",Blue:"blue",Indigo:"indigo",Violet:"violet",Pink:"pink",GradientRight:"gradient-right",Extra_0_3_Overlay:"extra-0-3-overlay",GradientRightActive:"gradient-right-active",GradientRightHover:"gradient-right-hover",Extra_0_5_Overlay:"extra-0-5-overlay",Extra_0_7_Overlay:"extra-0-7-overlay",Extra_0_9_Overlay:"extra-0-9-overlay",Red_0_1_Overlay:"red-0-1-overlay",Orange_0_1_Overlay:"orange-0-1-overlay",Accent_0_8_Overlay:"accent-0-8-overlay",Link:"link",Camera:"camera",GoogleDrive:"google-drive",Dropbox:"dropbox",OneDrive:"one-drive",Device:"device",Instagram:"instagram",FreeImages:"free-images",FreeIcons:"free-icons",Canvas:"canvas",Box:"box",ScreenCast:"screen-cast",LightShadow:"light-shadow",MediumShadow:"medium-shadow",LargeShadow:"large-shadow",XLargeShadow:"x-large-shadow"},RE=function(e){var n=e.theme.palette;return F(["scrollbar-color:"," ",";scrollbar-width:thin;::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-track{margin-block:6px;}::-webkit-scrollbar-thumb{background:",";border:4px solid ",";border-radius:99px;padding:4px 6px;background-clip:padding-box;}"],n[_.IconsMuted],n[_.ActiveSecondary],n[_.Extra_0_3_Overlay],n[_.ActiveSecondary])},Cn={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg",Xl:"xl",Xxl:"xxl",Xxxl:"xxxl"},Rr={ShadowSm:"shadow-sm",ShadowMd:"shadow-md",ShadowLg:"shadow-lg",ShadowXl:"shadow-xl",Label:"label",Header:"header",HeaderPopup:"header-popup",FooterPopup:"footer-popup",LeftPanelMd:"left-panel-md",RightPanelMd:"right-panel-md",LeftPanelSm:"left-panel-sm",RightPanelSm:"right-panel-sm"},Xt={Thin:100,ExtraLight:200,Light:300,Regular:400,Medium:500,SemiBold:600,Bold:700,ExtraBold:800,Black:900},Pe={TextExtraSmall:"text-extra-small",TextSmall:"text-small",TextSmallUp:"text-small-up",TextMedium:"text-medium",TextLarge:"text-large",TextExtraLarge:"text-extra-large",TextXExtraLarge:"text-x-extra-large",TitleH6:"title-h6",TitleH5:"title-h5",TitleH4:"title-h4",TitleH3:"title-h3",TitleH2:"title-h2",TitleH1:"title-h1",LabelExtraSmall:"label-extra-small",LabelExtraSmallEmphasis:"label-extra-small-emphasis",LabelExtraSmallUp:"label-extra-small-up",LabelSmall:"label-small",LabelSmallEmphasis:"label-small-emphasis",LabelSmallUp:"label-small-up",LabelSmallUpEmphasis:"label-small-up-emphasis",LabelMedium:"label-medium",LabelMediumEmphasis:"label-medium-emphasis",LabelLarge:"label-large",LabelLargeEmphasis:"label-large-emphasis",LabelLargeUp:"label-large-up",LabelExtraLargeEmphasis:"label-extra-large-emphasis",LabelExtraLarge:"label-extra-large",LabelXExtraLargeEmphasis:"label-x-extra-large-emphasis",LabelXExtraLarge:"label-x-extra-large",LabelXXExtraLargeEmphasis:"label-x-x-extra-large-emphasis",LabelXXExtraLarge:"label-x-x-extra-large",LabelXXXExtraLarge:"label-x-x-x-extra-large",ButtonSmEmphasis:"btn-sm-emphasis",ButtonSm:"btn-sm",ButtonSmUpEmphasis:"btn-sm-up-emphasis",ButtonSmUp:"btn-sm-up",ButtonMdEmphasis:"btn-md-emphasis",ButtonMd:"btn-md",ButtonLgEmphasis:"btn-lg-emphasis",ButtonLg:"btn-lg",ButtonLgUpEmphasis:"btn-lg-up-emphasis",ButtonLgUp:"btn-lg-up",LinkSmall:"link-small",LinkSmallEmphasis:"link-small-emphasis",LinkSmallUp:"link-small-up",LinkSmallUpEmphasis:"link-small-up-emphasis",LinkMedium:"link-medium",LinkMediumEmphasis:"link-medium-emphasis",LinkLarge:"link-large",LinkLargeEmphasis:"link-large-emphasis",LinkLargeUp:"link-large-up",LinkLargeUpEmphasis:"link-large-up-emphasis",InputSm:"input-sm",InputSmUp:"input-sm-up",InputMd:"input-md",InputLg:"input-lg"},Xi={Sm:"sm",Md:"md",Lg:"lg"},IL=d1(["",";"],function(t){var e=t.theme,n=e.typography.baseLineHeight;return F(["h1,h2,h3,h4,h5,h6,p,small{line-height:",";}"],n)});const LL=IL;var wn,Mo,gi,mi,Rs,Sa;function n7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?n7(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):n7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zE='"Roboto"',Ue={fontFamily:zE,fontStyle:"normal",fontWeight:Xt.Regular},jE=(wn={},S(wn,Pe.LabelExtraSmall,Ce(Ce({},Ue),{},{fontSize:"10px",lineHeight:"12px"})),S(wn,Pe.LabelExtraSmallEmphasis,Ce(Ce({},Ue),{},{fontWeight:"Bold",fontSize:"10px",lineHeight:"12px"})),S(wn,Pe.LabelExtraSmallUp,Ce(Ce({},Ue),{},{fontSize:"11px",lineHeight:"12px"})),S(wn,Pe.LabelSmall,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"})),S(wn,Pe.LabelSmallEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"12px",lineHeight:"14px"})),S(wn,Pe.LabelSmallUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"})),S(wn,Pe.LabelSmallUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"13px",lineHeight:"16px"})),S(wn,Pe.LabelMedium,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"})),S(wn,Pe.LabelMediumEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"14px",lineHeight:"16px"})),S(wn,Pe.LabelLarge,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"})),S(wn,Pe.LabelLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"16px",lineHeight:"18px"})),S(wn,Pe.LabelLargeUp,Ce(Ce({},Ue),{},{fontWeight:Xt.Regular,fontSize:"18px",lineHeight:"20px"})),S(wn,Pe.LabelExtraLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"24px",lineHeight:"28px"})),S(wn,Pe.LabelExtraLarge,Ce(Ce({},Ue),{},{fontWeight:Xt.Regular,fontSize:"24px",lineHeight:"28px"})),S(wn,Pe.LabelXExtraLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"32px",lineHeight:"36px"})),S(wn,Pe.LabelXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"32px",lineHeight:"36px"})),S(wn,Pe.LabelXXExtraLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"48px",lineHeight:"54px"})),S(wn,Pe.LabelXXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"48px",lineHeight:"54px"})),S(wn,Pe.LabelXXXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"60px",lineHeight:"68px"})),wn),AL=(Mo={},S(Mo,Pe.TextExtraSmall,Ce(Ce({},jE[Pe.LabelExtraSmallUp]),{},{lineHeight:"14px"})),S(Mo,Pe.TextSmall,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"18px"})),S(Mo,Pe.TextSmallUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"18px"})),S(Mo,Pe.TextMedium,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"20px"})),S(Mo,Pe.TextLarge,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"22px"})),S(Mo,Pe.TextExtraLarge,Ce(Ce({},Ue),{},{fontSize:"18px",lineHeight:"26px"})),S(Mo,Pe.TextXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"28px",lineHeight:"40px"})),Mo),ML=(gi={},S(gi,Pe.ButtonSmEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"12px",lineHeight:"14px"})),S(gi,Pe.ButtonSm,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"})),S(gi,Pe.ButtonSmUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"13px",lineHeight:"16px"})),S(gi,Pe.ButtonSmUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"})),S(gi,Pe.ButtonMdEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"14px",lineHeight:"16px"})),S(gi,Pe.ButtonMd,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"})),S(gi,Pe.ButtonLgEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"16px",lineHeight:"18px"})),S(gi,Pe.ButtonLg,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"})),S(gi,Pe.ButtonLgUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"18px",lineHeight:"20px"})),S(gi,Pe.ButtonLgUp,Ce(Ce({},Ue),{},{fontSize:"18px",lineHeight:"20px"})),gi),RL=(mi={},S(mi,Pe.LinkSmall,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"})),S(mi,Pe.LinkSmallEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"12px",lineHeight:"14px"})),S(mi,Pe.LinkSmallUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"})),S(mi,Pe.LinkSmallUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"13px",lineHeight:"16px"})),S(mi,Pe.LinkMedium,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"})),S(mi,Pe.LinkMediumEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"14px",lineHeight:"16px"})),S(mi,Pe.LinkLarge,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"})),S(mi,Pe.LinkLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"16px",lineHeight:"18px"})),S(mi,Pe.LinkLargeUp,Ce(Ce({},Ue),{},{fontSize:"18px",lineHeight:"20px"})),S(mi,Pe.LinkLargeUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"18px",lineHeight:"20px"})),mi),zL=(Rs={},S(Rs,Pe.InputSm,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"})),S(Rs,Pe.InputSmUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"})),S(Rs,Pe.InputMd,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"})),S(Rs,Pe.InputLg,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"})),Rs),jL=(Sa={},S(Sa,Pe.TitleH6,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"12px",lineHeight:"18px"})),S(Sa,Pe.TitleH5,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"14px",lineHeight:"21px"})),S(Sa,Pe.TitleH4,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"16px",lineHeight:"24px"})),S(Sa,Pe.TitleH3,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"18px",lineHeight:"27px"})),S(Sa,Pe.TitleH2,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"20px",lineHeight:"30px"})),S(Sa,Pe.TitleH1,Ce(Ce({},Ue),{},{fontWeight:Xt.Medium,fontSize:"28px",lineHeight:"42px"})),Sa),f1={fontFamily:zE,baseLineHeight:1.375,font:Ce(Ce(Ce(Ce(Ce(Ce({},jE),AL),ML),RL),zL),jL)},NL=d1(["@keyframes spinner{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}.Menu-open{overflow:hidden;}.Modal-open{overflow:hidden;}"]);const DL=NL;var he,hr=(he={},S(he,_.TextPrimary,"rgba(55, 65, 75, 1)"),S(he,_.TextSecondary,"rgba(118, 138, 159, 1)"),S(he,_.TextSecondaryInvert,"rgba(213, 216, 220, 1)"),S(he,_.TextPlaceholder,"rgba(169, 182, 194, 1)"),S(he,_.TextWarning,"rgba(196, 110, 0, 1)"),S(he,_.TextError,"rgba(170, 32, 0, 1)"),S(he,_.TextInfo,"rgba(35, 117, 171, 1)"),S(he,_.AccentPrimary,"rgba(104, 121, 235, 1)"),S(he,_.AccentPrimaryHover,"rgba(96, 111, 209, 1)"),S(he,_.AccentPrimaryActive,"rgba(73, 88, 188, 1)"),S(he,_.AccentPrimaryDisabled,"rgba(233, 238, 242, 1)"),S(he,_.AccentSecondaryDisabled,"#F9FBFC"),S(he,_.AccentStateless,"rgba(104, 121, 235, 1)"),S(he,_.AccentStateless_0_4_Opacity,"rgba(104, 121, 235, 0.4)"),S(he,_.Accent_0_5_Opacity,"rgba(104, 121, 235, 0.05)"),S(he,_.Accent_1_2_Opacity,"rgba(104, 121, 235, 0.12)"),S(he,_.Accent_1_8_Opacity,"rgba(104, 121, 235, 0.18)"),S(he,_.Accent_2_8_Opacity,"rgba(104, 121, 235, 0.28)"),S(he,_.Accent_4_0_Opacity,"rgba(104, 121, 235, 0.4)"),S(he,_.BackgroundGrey,"rgba(216, 224, 232, 1)"),S(he,_.BackgroundStateless,"rgba(255, 255, 255, 1)"),S(he,_.BackgroundActive,"rgba(243, 247, 250, 1)"),S(he,_.BackgroundBaseLight,"rgba(235, 239, 252, 1)"),S(he,_.BackgroundBaseMedium,"rgba(227, 231, 251, 1)"),S(he,_.BackgroundPrimary,"rgba(248, 250, 251, 1)"),S(he,_.BackgroundPrimaryLight,"rgba(243, 245, 247, 1)"),S(he,_.BackgroundPrimaryHover,"rgba(239, 243, 246, 1)"),S(he,_.BackgroundPrimaryActive,"rgba(93, 109, 126, 1)"),S(he,_.BackgroundPrimary_0_5_Opacity,"rgba(255, 255, 255, 0.500)"),S(he,_.BackgroundPrimaryStateless,"#CCD6DE"),S(he,_.BackgroundSecondary,"rgba(255, 255, 255, 1)"),S(he,_.BackgroundHover,"rgba(249, 251, 252, 1)"),S(he,_.BackgroundGreen,"rgba(237, 250, 244, 1)"),S(he,_.BackgroundGreenMedium,"rgba(227, 250, 239, 1)"),S(he,_.BackgroundBlue,"rgba(244, 249, 255, 1)"),S(he,_.BackgroundRed,"rgba(253, 244, 242, 1)"),S(he,_.BackgroundRedMedium,"rgba(247, 228, 230, 1)"),S(he,_.BackgroundOrange,"rgba(255, 249, 242, 1)"),S(he,_.BackgroundTooltip,"rgba(79, 98, 118, 1)"),S(he,_.IconsPrimary,"rgba(118, 138, 159, 1)"),S(he,_.IconsPrimaryOpacity_0_6,"rgba(93, 109, 126, 0.600)"),S(he,_.IconsSecondary,"rgba(151, 166, 182, 1)"),S(he,_.IconsPlaceholder,"rgba(223, 231, 237, 1)"),S(he,_.IconsInvert,"rgba(255, 255, 255, 1)"),S(he,_.IconsMuted,"rgba(169, 182, 194, 1)"),S(he,_.IconsPrimaryHover,"rgba(79, 98, 118, 1)"),S(he,_.IconsSecondaryHover,"rgba(118, 138, 159, 1)"),S(he,_.ButtonPrimaryText,"rgba(255, 255, 255, 1)"),S(he,_.ButtonPrimaryText_0_6,"rgba(255, 255, 255, 0.6)"),S(he,_.ButtonPrimaryText_0_4,"rgba(255, 255, 255, 0.4)"),S(he,_.ButtonDisabledText,"rgba(169, 182, 194, 1)"),S(he,_.ButtonSecondaryText,"rgba(0, 0, 0, 1)"),S(he,_.LinkPrimary,"rgba(118, 138, 159, 1)"),S(he,_.LinkStateless,"rgba(118, 138, 159, 1)"),S(he,_.LinkHover,"rgba(79, 98, 118, 1)"),S(he,_.LinkActive,"rgba(55, 65, 75, 1)"),S(he,_.LinkPressed,"rgba(104, 121, 235, 1)"),S(he,_.LinkMuted,"rgba(169, 182, 194, 1)"),S(he,_.BordersPrimary,"rgba(204, 214, 222, 1)"),S(he,_.BordersPrimaryHover,"rgba(104, 118, 134, 1)"),S(he,_.BordersSecondary,"rgba(236, 240, 243, 1)"),S(he,_.BordersStrong,"rgba(204, 214, 222, 1)"),S(he,_.BordersInvert,"rgba(85, 99, 115, 1)"),S(he,_.BorderHoverBottom,"rgba(104, 121, 235, 0.18)"),S(he,_.BorderActiveBottom,"#4958BC"),S(he,_.BorderPrimaryStateless,"rgba(204, 214, 222, 1)"),S(he,_.BordersDisabled,"rgba(73, 88, 188, 0.4)"),S(he,_.BordersButton,"rgba(151, 166, 182, 1)"),S(he,_.BordersItem,"rgba(226, 232, 236, 1)"),S(he,_.BordersBaseLight,"rgba(211, 219, 250, 1)"),S(he,_.BordersBaseMedium,"rgba(164, 175, 227, 1)"),S(he,_.BordersGreen,"rgba(27, 161, 99, 0.22)"),S(he,_.BordersGreenMedium,"rgba(27, 161, 99, 0.4)"),S(he,_.BordersRed,"rgba(185, 33, 46, 0.4)"),S(he,_.ActiveSecondary,"#FFFFFF"),S(he,_.ActiveSecondaryHover,"rgba(104, 121, 235, 0.05)"),S(he,_.Error,"rgba(246, 61, 61, 1)"),S(he,_.Error_0_28_Opacity,"rgba(185, 33, 46, 0.28)"),S(he,_.Error_0_12_Opacity,"rgba(255, 86, 78, 0.1)"),S(he,_.ErrorHover,"rgba(216, 46, 46, 1)"),S(he,_.ErrorActive,"rgba(185, 33, 46, 1)"),S(he,_.Success,"rgba(38, 193, 122, 1)"),S(he,_.SuccessHover,"rgba(30, 154, 98, 1)"),S(he,_.SuccessActive,"rgba(23, 116, 73, 1)"),S(he,_.Warning,"rgba(255, 172, 74, 1)"),S(he,_.WarningHover,"rgba(237, 145, 7, 1)"),S(he,_.WarningActive,"rgba(224, 135, 0, 1)"),S(he,_.Info,"rgba(41, 127, 184, 1)"),S(he,_.Modified,"rgba(165, 166, 246, 1)"),S(he,_.Red,"rgba(219, 46, 50, 1)"),S(he,_.Orange,"rgba(255, 168, 0, 1)"),S(he,_.Salad,"rgba(143, 176, 33, 1)"),S(he,_.Green,"rgba(22, 160, 134, 1)"),S(he,_.Blue,"rgba(41, 127, 184, 1)"),S(he,_.Indigo,"rgba(91, 72, 162, 1)"),S(he,_.Violet,"rgba(141, 68, 173, 1)"),S(he,_.Pink,"rgba(211, 92, 158, 1)"),S(he,_.GradientRight,"linear-gradient(270deg, #FFFFFF 1.56%, rgba(255, 255, 255, 0.89) 52.4%, rgba(255, 255, 255, 0.532165) 76.04%, rgba(255, 255, 255, 0) 100%)"),S(he,_.Extra_0_3_Overlay,"rgba(79, 98, 118, 0.3)"),S(he,_.GradientRightActive,"linear-gradient(270deg, #F3F7FA 1.56%, #F3F7FA 52.4%, rgba(243, 247, 250, 0.53) 76.04%, rgba(243, 247, 250, 0) 100%)"),S(he,_.GradientRightHover,"linear-gradient(270deg, #F9FBFC 1.56%, #F9FBFC 52.4%, rgba(249, 251, 252, 0.53) 76.04%, rgba(249, 251, 252, 0) 100%)"),S(he,_.Extra_0_5_Overlay,"rgba(79, 98, 118, 0.5)"),S(he,_.Extra_0_7_Overlay,"rgba(79, 98, 118, 0.7)"),S(he,_.Extra_0_9_Overlay,"rgba(79, 98, 118, 0.9)"),S(he,_.Red_0_1_Overlay,"rgba(232, 91, 70, 0.1)"),S(he,_.Orange_0_1_Overlay,"rgba(250, 157, 47, 0.1)"),S(he,_.Accent_0_8_Overlay,"rgba(104, 121, 235, 0.08)"),S(he,_.Link,"rgba(250, 166, 68, 1)"),S(he,_.Camera,"rgba(73, 186, 224, 1)"),S(he,_.GoogleDrive,"rgba(81, 136, 238, 1)"),S(he,_.Dropbox,"rgba(17, 40, 124, 1)"),S(he,_.OneDrive,"rgba(40, 100, 186, 1)"),S(he,_.Device,"rgba(102, 73, 209, 1)"),S(he,_.Instagram,"rgba(173, 38, 220, 1)"),S(he,_.FreeImages,"rgba(16, 163, 135, 1)"),S(he,_.FreeIcons,"rgba(62, 207, 139, 1)"),S(he,_.Canvas,"rgba(36, 190, 202, 1)"),S(he,_.Box,"rgba(0, 97, 213, 1)"),S(he,_.ScreenCast,"rgba(48, 61, 78, 1)"),S(he,_.Tag,"#889AAC"),S(he,_.StatesErrorDisabledText,"rgba(185, 33, 46, 0.3)"),S(he,_.LightShadow,"rgba(146, 166, 188, 0.2)"),S(he,_.MediumShadow,"rgba(146, 166, 188, 0.24)"),S(he,_.LargeShadow,"rgba(146, 166, 188, 0.32)"),S(he,_.XLargeShadow,"rgba(146, 166, 188, 0.5)"),he),BL=hr,Ir,HL=(Ir={},S(Ir,Rr.ShadowSm,"0px 1px 2px 0px rgba(146, 166, 188, 0.2)"),S(Ir,Rr.ShadowMd," 0px 1px 4px 0px rgba(146, 166, 188, 0.24)"),S(Ir,Rr.ShadowLg," 0px 2px 6px 0px rgba(146, 166, 188, 0.32)"),S(Ir,Rr.ShadowXl," 0px 2px 6px 0px rgba(146, 166, 188, 0.5)"),S(Ir,Rr.Label," 0px 1px 3px 0px rgba(77, 78, 78, 0.15)"),S(Ir,Rr.Header," 0px 6px 10px 0px rgba(146, 166, 188, 0.2)"),S(Ir,Rr.HeaderPopup," 0px 3px 7px 0px rgba(146, 166, 188, 0.16)"),S(Ir,Rr.FooterPopup," 0px -4px 8px 0px rgba(208, 215, 220, 0.22)"),S(Ir,Rr.LeftPanelMd," 6px 8px 12px 0px rgba(146, 166, 188, 0.14)"),S(Ir,Rr.RightPanelMd,"-6px 8px 12px 0px rgba(146, 166, 188, 0.14)"),S(Ir,Rr.LeftPanelSm,"6px -4px 12px 0px rgba(146, 166, 188, 0.14)"),S(Ir,Rr.RightPanelSm,"-6px -4px 12px 0px rgba(146, 166, 188, 0.14)"),Ir),FL=HL,Ro,zo,r7={keys:[Cn.Xs,Cn.Sm,Cn.Md,Cn.Lg,Cn.Xl],values:(Ro={},S(Ro,Cn.Xs,0),S(Ro,Cn.Sm,576),S(Ro,Cn.Md,768),S(Ro,Cn.Lg,1084),S(Ro,Cn.Xl,1342),S(Ro,Cn.Xxl,1600),S(Ro,Cn.Xxxl,1920),Ro),classes:(zo={},S(zo,Cn.Xs,".sfx-breakpoint-xs"),S(zo,Cn.Sm,".sfx-breakpoint-sm"),S(zo,Cn.Md,".sfx-breakpoint-md"),S(zo,Cn.Lg,".sfx-breakpoint-lg"),S(zo,Cn.Xl,".sfx-breakpoint-xl"),S(zo,Cn.Xxl,".sfx-breakpoint-xxl"),S(zo,Cn.Xxxl,".sfx-breakpoint-xxxl"),zo),getBreakpointClass:function(){return""},up:function(){return""},down:function(){return""},between:function(){return""},only:function(){return""}},$L=function(e){var n=e.values,r=n===void 0?r7.values:n,i=e.classes,o=i===void 0?r7.classes:i,a="px",u=Object.keys(r),c=function(w){var x=typeof r[w]=="number"?r[w]:w;return"@media (min-width:".concat(x).concat(a,")")},d=function(w){var x=r[w];return"@media (max-width:".concat(x).concat(a,")")},h=function(w,x){var P=u.indexOf(x);return"@media (min-width:".concat(r[w]).concat(a,") and (max-width:").concat(r[u[P]]).concat(a,")")},m=function(w){return u.indexOf(w)+1<u.length?h(w,u[u.indexOf(w)+1]):c(w)},v=function(w,x){var P=function(E){return E.slice(1)};return w>=r.xs&&w<r.sm?x?P(o.xs):o.xs:w>=r.sm&&w<r.md?x?P(o.sm):o.sm:w>=r.md&&w<r.lg?x?P(o.md):o.md:w>=r.lg&&w<r.xl?x?P(o.lg):o.lg:w>=r.xl&&w<r.xxl?x?P(o.xl):o.xl:w>=r.xxl&&w<r.xxxl?x?P(o.xxl):o.xxl:w>=r.xxxl?x?P(o.xxxl):o.xxxl:x?P(o.md):o.md};return{keys:u,values:r,classes:o,getBreakpointClass:v,up:c,down:d,between:h,only:m}},Hc;function i7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Di(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?i7(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var WL={borderRadius:(Hc={},S(Hc,Xi.Sm,"2px"),S(Hc,Xi.Md,"4px"),S(Hc,Xi.Lg,"8px"),Hc)},NE=function(e){var n=e.children,r=e.theme,i=r===void 0?{}:r,o=i.palette,a=o===void 0?{}:o,u=i.breakpoints,c=u===void 0?{}:u,d=i.typography,h=d===void 0?{}:d,m=i.shape,v=m===void 0?{}:m,C=i.shadows,w=C===void 0?{}:C,x=j.useMemo(function(){var P=Di(Di({},BL),a),b=$L(c),E=Di(Di({},FL),w);return{palette:P,breakpoints:b,typography:Di({},K8(Di({},f1),Di({},h))),shape:Di({},K8(Di({},WL),Di({},v))),shadows:E}},[JSON.stringify(i)]);return p.createElement(gL,{theme:x},p.createElement(p.Fragment,null,xL(n,x),p.createElement(DL,null),p.createElement(LL,null)))};f1.baseLineHeight;f1.font;var VL=se(f1,["baseLineHeight","font"]);NE.propTypes={children:I.oneOfType([I.node,I.func,I.arrayOf(I.node)]).isRequired,theme:I.exact({breakpoints:I.exact({keys:I.arrayOf(I.string),values:I.exact(Sl(ut(Cn),I.number)),classes:I.exact(Sl(ut(Cn),I.string)),getBreakpointClass:I.func,up:I.func,down:I.func,between:I.func,only:I.func}),palette:I.exact(Sl(ut(_),I.string)),shadows:I.exact(Sl(ut(Rr),I.string)),shape:I.exact({borderRadius:I.exact(Sl(ut(Xi),I.string))}),typography:I.exact(Di({baseLineHeight:I.oneOfType([I.string,I.number]),font:I.exact(Sl(ut(Pe),I.object))},Sl(SL(VL),I.string)))})};const GL=NE;function DE(t){if(Array.isArray(t))return t}function UL(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,u=[],c=!0,d=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(h){d=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return u}}function BE(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Le(t,e){return DE(t)||UL(t,e)||B3(t,e)||BE()}function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},J.apply(this,arguments)}var XL=Math.PI/180;function ZL(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const Pu=typeof _6<"u"?_6:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Fe={_global:Pu,version:"8.4.3",isBrowser:ZL(),isUnminified:/param/.test((function(t){}).toString()),dblClickWindow:400,getAngle(t){return Fe.angleDeg?t*XL:t},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Fe.DD.isDragging},isDragReady(){return!!Fe.DD.node},releaseCanvasOnDestroy:!0,document:Pu.document,_injectGlobal(t){Pu.Konva=t}},mn=t=>{Fe[t.prototype.getClassName()]=t};Fe._injectGlobal(Fe);class qr{constructor(e=[1,0,0,1,0,0]){this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new qr(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){var n=this.m;return{x:n[0]*e.x+n[2]*e.y+n[4],y:n[1]*e.x+n[3]*e.y+n[5]}}translate(e,n){return this.m[4]+=this.m[0]*e+this.m[2]*n,this.m[5]+=this.m[1]*e+this.m[3]*n,this}scale(e,n){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=n,this.m[3]*=n,this}rotate(e){var n=Math.cos(e),r=Math.sin(e),i=this.m[0]*n+this.m[2]*r,o=this.m[1]*n+this.m[3]*r,a=this.m[0]*-r+this.m[2]*n,u=this.m[1]*-r+this.m[3]*n;return this.m[0]=i,this.m[1]=o,this.m[2]=a,this.m[3]=u,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,n){var r=this.m[0]+this.m[2]*n,i=this.m[1]+this.m[3]*n,o=this.m[2]+this.m[0]*e,a=this.m[3]+this.m[1]*e;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this}multiply(e){var n=this.m[0]*e.m[0]+this.m[2]*e.m[1],r=this.m[1]*e.m[0]+this.m[3]*e.m[1],i=this.m[0]*e.m[2]+this.m[2]*e.m[3],o=this.m[1]*e.m[2]+this.m[3]*e.m[3],a=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],u=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this.m[4]=a,this.m[5]=u,this}invert(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),n=this.m[3]*e,r=-this.m[1]*e,i=-this.m[2]*e,o=this.m[0]*e,a=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),u=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this.m[4]=a,this.m[5]=u,this}getMatrix(){return this.m}decompose(){var e=this.m[0],n=this.m[1],r=this.m[2],i=this.m[3],o=this.m[4],a=this.m[5],u=e*i-n*r;let c={x:o,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!=0||n!=0){var d=Math.sqrt(e*e+n*n);c.rotation=n>0?Math.acos(e/d):-Math.acos(e/d),c.scaleX=d,c.scaleY=u/d,c.skewX=(e*r+n*i)/u,c.skewY=0}else if(r!=0||i!=0){var h=Math.sqrt(r*r+i*i);c.rotation=Math.PI/2-(i>0?Math.acos(-r/h):-Math.acos(r/h)),c.scaleX=u/h,c.scaleY=h,c.skewX=0,c.skewY=(e*r+n*i)/u}return c.rotation=q._getRotation(c.rotation),c}}var YL="[object Array]",KL="[object Number]",qL="[object String]",QL="[object Boolean]",JL=Math.PI/180,eA=180/Math.PI,I2="#",tA="",nA="0",rA="Konva warning: ",o7="Konva error: ",iA="rgb(",L2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},oA=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,Rp=[];const aA=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(t){setTimeout(t,60)},q={_isElement(t){return!!(t&&t.nodeType==1)},_isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject(t){return!!t&&t.constructor===Object},_isArray(t){return Object.prototype.toString.call(t)===YL},_isNumber(t){return Object.prototype.toString.call(t)===KL&&!isNaN(t)&&isFinite(t)},_isString(t){return Object.prototype.toString.call(t)===qL},_isBoolean(t){return Object.prototype.toString.call(t)===QL},isObject(t){return t instanceof Object},isValidSelector(t){if(typeof t!="string")return!1;var e=t[0];return e==="#"||e==="."||e===e.toUpperCase()},_sign(t){return t===0||t>0?1:-1},requestAnimFrame(t){Rp.push(t),Rp.length===1&&aA(function(){const e=Rp;Rp=[],e.forEach(function(n){n()})})},createCanvasElement(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch{}return t},createImageElement(){return document.createElement("img")},_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,e){var n=q.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb(t){t=t.replace(I2,tA);var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:e&255}},getRandomColor(){for(var t=(Math.random()*16777215<<0).toString(16);t.length<6;)t=nA+t;return I2+t},getRGB(t){var e;return t in L2?(e=L2[t],{r:e[0],g:e[1],b:e[2]}):t[0]===I2?this._hexToRgb(t.substring(1)):t.substr(0,4)===iA?(e=oA.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA(t){return t=t||"black",q._namedColorToRBA(t)||q._hex3ColorToRGBA(t)||q._hex4ColorToRGBA(t)||q._hex6ColorToRGBA(t)||q._hex8ColorToRGBA(t)||q._rgbColorToRGBA(t)||q._rgbaColorToRGBA(t)||q._hslColorToRGBA(t)},_namedColorToRBA(t){var e=L2[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(t.indexOf("rgb(")===0){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(t.indexOf("rgba(")===0){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map((n,r)=>n.slice(-1)==="%"?r===3?parseInt(n)/100:parseInt(n)/100*255:Number(n));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex8ColorToRGBA(t){if(t[0]==="#"&&t.length===9)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:parseInt(t.slice(7,9),16)/255}},_hex6ColorToRGBA(t){if(t[0]==="#"&&t.length===7)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex4ColorToRGBA(t){if(t[0]==="#"&&t.length===5)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:parseInt(t[4]+t[4],16)/255}},_hex3ColorToRGBA(t){if(t[0]==="#"&&t.length===4)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){const[e,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),r=Number(n[0])/360,i=Number(n[1])/100,o=Number(n[2])/100;let a,u,c;if(i===0)return c=o*255,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};o<.5?a=o*(1+i):a=o+i-o*i;const d=2*o-a,h=[0,0,0];for(let m=0;m<3;m++)u=r+1/3*-(m-1),u<0&&u++,u>1&&u--,6*u<1?c=d+(a-d)*6*u:2*u<1?c=a:3*u<2?c=d+(a-d)*(2/3-u)*6:c=d,h[m]=c*255;return{r:Math.round(h[0]),g:Math.round(h[1]),b:Math.round(h[2]),a:1}}},haveIntersection(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray(t){return t.slice(0)},degToRad(t){return t*JL},radToDeg(t){return t*eA},_degToRad(t){return q.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),q.degToRad(t)},_radToDeg(t){return q.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),q.radToDeg(t)},_getRotation(t){return Fe.angleDeg?q.radToDeg(t):t},_capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw(t){throw new Error(o7+t)},error(t){console.error(o7+t)},warn(t){Fe.showWarnings&&console.warn(rA+t)},each(t,e){for(var n in t)e(n,t[n])},_inRange(t,e,n){return e<=t&&t<n},_getProjectionToSegment(t,e,n,r,i,o){var a,u,c,d=(t-n)*(t-n)+(e-r)*(e-r);if(d==0)a=t,u=e,c=(i-n)*(i-n)+(o-r)*(o-r);else{var h=((i-t)*(n-t)+(o-e)*(r-e))/d;h<0?(a=t,u=e,c=(t-i)*(t-i)+(e-o)*(e-o)):h>1?(a=n,u=r,c=(n-i)*(n-i)+(r-o)*(r-o)):(a=t+h*(n-t),u=e+h*(r-e),c=(a-i)*(a-i)+(u-o)*(u-o))}return[a,u,c]},_getProjectionToLine(t,e,n){var r=q.cloneObject(t),i=Number.MAX_VALUE;return e.forEach(function(o,a){if(!(!n&&a===e.length-1)){var u=e[(a+1)%e.length],c=q._getProjectionToSegment(o.x,o.y,u.x,u.y,t.x,t.y),d=c[0],h=c[1],m=c[2];m<i&&(r.x=d,r.y=h,i=m)}}),r},_prepareArrayForTween(t,e,n){var r,i=[],o=[];if(t.length>e.length){var a=e;e=t,t=a}for(r=0;r<t.length;r+=2)i.push({x:t[r],y:t[r+1]});for(r=0;r<e.length;r+=2)o.push({x:e[r],y:e[r+1]});var u=[];return o.forEach(function(c){var d=q._getProjectionToLine(c,i,n);u.push(d.x),u.push(d.y)}),u},_prepareToStringify(t){var e;t.visitedByCircularReferenceRemoval=!0;for(var n in t)if(t.hasOwnProperty(n)&&t[n]&&typeof t[n]=="object"){if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||q._isElement(t[n]))if(e.configurable)delete t[n];else return null;else if(q._prepareToStringify(t[n])===null)if(e.configurable)delete t[n];else return null}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(var n in e)t[n]=e[n];return t},_getFirstPointerId(t){return t.touches?t.changedTouches[0].identifier:t.pointerId||999},releaseCanvas(...t){Fe.releaseCanvasOnDestroy&&t.forEach(e=>{e.width=0,e.height=0})},drawRoundedRectPath(t,e,n,r){let i=0,o=0,a=0,u=0;typeof r=="number"?i=o=a=u=Math.min(r,e/2,n/2):(i=Math.min(r[0]||0,e/2,n/2),o=Math.min(r[1]||0,e/2,n/2),u=Math.min(r[2]||0,e/2,n/2),a=Math.min(r[3]||0,e/2,n/2)),t.moveTo(i,0),t.lineTo(e-o,0),t.arc(e-o,o,o,Math.PI*3/2,0,!1),t.lineTo(e,n-u),t.arc(e-u,n-u,u,0,Math.PI/2,!1),t.lineTo(a,n),t.arc(a,n-a,a,Math.PI/2,Math.PI,!1),t.lineTo(0,i),t.arc(i,i,i,Math.PI,Math.PI*3/2,!1)}};function Ka(t){return q._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||q._isBoolean(t)?t:Object.prototype.toString.call(t)}function HE(t){return t>255?255:t<0?0:Math.round(t)}function ke(){if(Fe.isUnminified)return function(t,e){return q._isNumber(t)||q.warn(Ka(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function F3(t){if(Fe.isUnminified)return function(e,n){let r=q._isNumber(e),i=q._isArray(e)&&e.length==t;return!r&&!i&&q.warn(Ka(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function $3(){if(Fe.isUnminified)return function(t,e){var n=q._isNumber(t),r=t==="auto";return n||r||q.warn(Ka(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function nc(){if(Fe.isUnminified)return function(t,e){return q._isString(t)||q.warn(Ka(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function FE(){if(Fe.isUnminified)return function(t,e){const n=q._isString(t),r=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return n||r||q.warn(Ka(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function lA(){if(Fe.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(q._isArray(t)?t.forEach(function(r){q._isNumber(r)||q.warn('"'+e+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):q.warn(Ka(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function Yi(){if(Fe.isUnminified)return function(t,e){var n=t===!0||t===!1;return n||q.warn(Ka(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function sA(t){if(Fe.isUnminified)return function(e,n){return e==null||q.isObject(e)||q.warn(Ka(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}var Fc="get",$c="set";const H={addGetterSetter(t,e,n,r,i){H.addGetter(t,e,n),H.addSetter(t,e,r,i),H.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){var r=Fc+q._capitalize(e);t.prototype[r]=t.prototype[r]||function(){var i=this.attrs[e];return i===void 0?n:i}},addSetter(t,e,n,r){var i=$c+q._capitalize(e);t.prototype[i]||H.overWriteSetter(t,e,n,r)},overWriteSetter(t,e,n,r){var i=$c+q._capitalize(e);t.prototype[i]=function(o){return n&&o!==void 0&&o!==null&&(o=n.call(this,o,e)),this._setAttr(e,o),r&&r.call(this),this}},addComponentsGetterSetter(t,e,n,r,i){var o=n.length,a=q._capitalize,u=Fc+a(e),c=$c+a(e),d,h;t.prototype[u]=function(){var v={};for(d=0;d<o;d++)h=n[d],v[h]=this.getAttr(e+a(h));return v};var m=sA(n);t.prototype[c]=function(v){var C=this.attrs[e],w;r&&(v=r.call(this,v)),m&&m.call(this,v,e);for(w in v)v.hasOwnProperty(w)&&this._setAttr(e+a(w),v[w]);return v||n.forEach(x=>{this._setAttr(e+a(x),void 0)}),this._fireChangeEvent(e,C,v),i&&i.call(this),this},H.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){var n=q._capitalize(e),r=$c+n,i=Fc+n;t.prototype[e]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(t,e,n,r){q.error("Adding deprecated "+e);var i=Fc+q._capitalize(e),o=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[i]=function(){q.error(o);var a=this.attrs[e];return a===void 0?n:a},H.addSetter(t,e,r,function(){q.error(o)}),H.addOverloadedGetterSetter(t,e)},backCompat(t,e){q.each(e,function(n,r){var i=t.prototype[r],o=Fc+q._capitalize(n),a=$c+q._capitalize(n);function u(){i.apply(this,arguments),q.error('"'+n+'" method is deprecated and will be removed soon. Use ""'+r+'" instead.')}t.prototype[n]=u,t.prototype[o]=u,t.prototype[a]=u})},afterSetFilter(){this._filterUpToDate=!1}};function uA(t){var e=[],n=t.length,r=q,i,o;for(i=0;i<n;i++)o=t[i],r._isNumber(o)?o=Math.round(o*1e3)/1e3:r._isString(o)||(o=o+""),e.push(o);return e}var a7=",",cA="(",dA=")",fA="([",pA="])",hA=";",gA="()",mA="=",l7=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],vA=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const yA=100;class p1{constructor(e){this.canvas=e,Fe.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,n){var r=this.traceArr,i=r.length,o="",a,u,c,d;for(a=0;a<i;a++)u=r[a],c=u.method,c?(d=u.args,o+=c,e?o+=gA:q._isArray(d[0])?o+=fA+d.join(a7)+pA:(n&&(d=d.map(h=>typeof h=="number"?Math.floor(h):h)),o+=cA+d.join(a7)+dA)):(o+=u.property,e||(o+=mA+u.val)),o+=hA;return o}clearTrace(){this.traceArr=[]}_trace(e){var n=this.traceArr,r;n.push(e),r=n.length,r>=yA&&n.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var n=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(e){const n=e.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(e){var n=e.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(e){const n=e.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(e,n){this._context[e]=n}arc(e,n,r,i,o,a){this._context.arc(e,n,r,i,o,a)}arcTo(e,n,r,i,o){this._context.arcTo(e,n,r,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(e,n,r,i,o,a){this._context.bezierCurveTo(e,n,r,i,o,a)}clearRect(e,n,r,i){this._context.clearRect(e,n,r,i)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(e,n){var r=arguments;if(r.length===2)return this._context.createImageData(e,n);if(r.length===1)return this._context.createImageData(e)}createLinearGradient(e,n,r,i){return this._context.createLinearGradient(e,n,r,i)}createPattern(e,n){return this._context.createPattern(e,n)}createRadialGradient(e,n,r,i,o,a){return this._context.createRadialGradient(e,n,r,i,o,a)}drawImage(e,n,r,i,o,a,u,c,d){var h=arguments,m=this._context;h.length===3?m.drawImage(e,n,r):h.length===5?m.drawImage(e,n,r,i,o):h.length===9&&m.drawImage(e,n,r,i,o,a,u,c,d)}ellipse(e,n,r,i,o,a,u,c){this._context.ellipse(e,n,r,i,o,a,u,c)}isPointInPath(e,n,r,i){return r?this._context.isPointInPath(r,e,n,i):this._context.isPointInPath(e,n,i)}fill(e){e?this._context.fill(e):this._context.fill()}fillRect(e,n,r,i){this._context.fillRect(e,n,r,i)}strokeRect(e,n,r,i){this._context.strokeRect(e,n,r,i)}fillText(e,n,r,i){i?this._context.fillText(e,n,r,i):this._context.fillText(e,n,r)}measureText(e){return this._context.measureText(e)}getImageData(e,n,r,i){return this._context.getImageData(e,n,r,i)}lineTo(e,n){this._context.lineTo(e,n)}moveTo(e,n){this._context.moveTo(e,n)}rect(e,n,r,i){this._context.rect(e,n,r,i)}putImageData(e,n,r){this._context.putImageData(e,n,r)}quadraticCurveTo(e,n,r,i){this._context.quadraticCurveTo(e,n,r,i)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,n){this._context.scale(e,n)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,n,r,i,o,a){this._context.setTransform(e,n,r,i,o,a)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,n,r,i){this._context.strokeText(e,n,r,i)}transform(e,n,r,i,o,a){this._context.transform(e,n,r,i,o,a)}translate(e,n){this._context.translate(e,n)}_enableTrace(){var e=this,n=l7.length,r=this.setAttr,i,o,a=function(u){var c=e[u],d;e[u]=function(){return o=uA(Array.prototype.slice.call(arguments,0)),d=c.apply(e,arguments),e._trace({method:u,args:o}),d}};for(i=0;i<n;i++)a(l7[i]);e.setAttr=function(){r.apply(e,arguments);var u=arguments[0],c=arguments[1];(u==="shadowOffsetX"||u==="shadowOffsetY"||u==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),e._trace({property:u,val:c})}}_applyGlobalCompositeOperation(e){const n=e.attrs.globalCompositeOperation;var r=!n||n==="source-over";r||this.setAttr("globalCompositeOperation",n)}}vA.forEach(function(t){Object.defineProperty(p1.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class wA extends p1{constructor(e){super(e),this._context=e._canvas.getContext("2d")}_fillColor(e){var n=e.fill();this.setAttr("fillStyle",n),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){var n=e._getLinearGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fillRadialGradient(e){const n=e._getRadialGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fill(e){const n=e.fill(),r=e.getFillPriority();if(n&&r==="color"){this._fillColor(e);return}const i=e.getFillPatternImage();if(i&&r==="pattern"){this._fillPattern(e);return}const o=e.getFillLinearGradientColorStops();if(o&&r==="linear-gradient"){this._fillLinearGradient(e);return}const a=e.getFillRadialGradientColorStops();if(a&&r==="radial-gradient"){this._fillRadialGradient(e);return}n?this._fillColor(e):i?this._fillPattern(e):o?this._fillLinearGradient(e):a&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const n=e.getStrokeLinearGradientStartPoint(),r=e.getStrokeLinearGradientEndPoint(),i=e.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(n.x,n.y,r.x,r.y);if(i){for(var a=0;a<i.length;a+=2)o.addColorStop(i[a],i[a+1]);this.setAttr("strokeStyle",o)}}_stroke(e){var n=e.dash(),r=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!r){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(e),n&&e.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var o=e.getStrokeLinearGradientColorStops();o?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),r||this.restore()}}_applyShadow(e){var n,r,i,o=(n=e.getShadowRGBA())!==null&&n!==void 0?n:"black",a=(r=e.getShadowBlur())!==null&&r!==void 0?r:5,u=(i=e.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=e.getAbsoluteScale(),d=this.canvas.getPixelRatio(),h=c.x*d,m=c.y*d;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",a*Math.min(Math.abs(h),Math.abs(m))),this.setAttr("shadowOffsetX",u.x*h),this.setAttr("shadowOffsetY",u.y*m)}}class CA extends p1{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const o=e.getStrokeScaleEnabled();if(!o){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(e);var r=e.hitStrokeWidth(),i=r==="auto"?e.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),o||this.restore()}}}var zp;function SA(){if(zp)return zp;var t=q.createCanvasElement(),e=t.getContext("2d");return zp=function(){var n=Fe._global.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/r}(),q.releaseCanvas(t),zp}class h1{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=e||{},r=n.pixelRatio||Fe.pixelRatio||SA();this.pixelRatio=r,this._canvas=q.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){var n=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,n){this.setWidth(e||0),this.setHeight(n||0)}toDataURL(e,n){try{return this._canvas.toDataURL(e,n)}catch{try{return this._canvas.toDataURL()}catch(i){return q.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}H.addGetterSetter(h1,"pixelRatio",void 0,ke());class ku extends h1{constructor(e={width:0,height:0}){super(e),this.context=new wA(this),this.setSize(e.width,e.height)}}class W3 extends h1{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new CA(this),this.setSize(e.width,e.height)}}const Pt={get isDragging(){var t=!1;return Pt._dragElements.forEach(e=>{e.dragStatus==="dragging"&&(t=!0)}),t},justDragged:!1,get node(){var t;return Pt._dragElements.forEach(e=>{t=e.node}),t},_dragElements:new Map,_drag(t){const e=[];Pt._dragElements.forEach((n,r)=>{const{node:i}=n,o=i.getStage();o.setPointersPositions(t),n.pointerId===void 0&&(n.pointerId=q._getFirstPointerId(t));const a=o._changedPointerPositions.find(d=>d.id===n.pointerId);if(a){if(n.dragStatus!=="dragging"){var u=i.dragDistance(),c=Math.max(Math.abs(a.x-n.startPointerPos.x),Math.abs(a.y-n.startPointerPos.y));if(c<u||(i.startDrag({evt:t}),!i.isDragging()))return}i._setDragPosition(t,n),e.push(i)}}),e.forEach(n=>{n.fire("dragmove",{type:"dragmove",target:n,evt:t},!0)})},_endDragBefore(t){const e=[];Pt._dragElements.forEach(n=>{const{node:r}=n,i=r.getStage();if(t&&i.setPointersPositions(t),!i._changedPointerPositions.find(u=>u.id===n.pointerId))return;(n.dragStatus==="dragging"||n.dragStatus==="stopped")&&(Pt.justDragged=!0,Fe._mouseListenClick=!1,Fe._touchListenClick=!1,Fe._pointerListenClick=!1,n.dragStatus="stopped");const a=n.node.getLayer()||n.node instanceof Fe.Stage&&n.node;a&&e.indexOf(a)===-1&&e.push(a)}),e.forEach(n=>{n.draw()})},_endDragAfter(t){Pt._dragElements.forEach((e,n)=>{e.dragStatus==="stopped"&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),e.dragStatus!=="dragging"&&Pt._dragElements.delete(n)})}};Fe.isBrowser&&(window.addEventListener("mouseup",Pt._endDragBefore,!0),window.addEventListener("touchend",Pt._endDragBefore,!0),window.addEventListener("mousemove",Pt._drag),window.addEventListener("touchmove",Pt._drag),window.addEventListener("mouseup",Pt._endDragAfter,!1),window.addEventListener("touchend",Pt._endDragAfter,!1));var zh="absoluteOpacity",jp="allEventListeners",Bo="absoluteTransform",s7="absoluteScale",El="canvas",xA="Change",EA="children",bA="konva",dv="listening",u7="mouseenter",c7="mouseleave",d7="set",f7="Shape",jh=" ",p7="stage",Ea="transform",OA="Stage",fv="visible",PA=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(jh);let kA=1;class Te{constructor(e){this._id=kA++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===Ea||e===Bo)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,n){var r=this._cache.get(e),i=e===Ea||e===Bo,o=r===void 0||i&&r.dirty===!0;return o&&(r=n.call(this),this._cache.set(e,r)),r}_calculate(e,n,r){if(!this._attachedDepsListeners.get(e)){const i=n.map(o=>o+"Change.konva").join(jh);this.on(i,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,r)}_getCanvasCache(){return this._cache.get(El)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===Bo&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(El)){const{scene:e,filter:n,hit:r}=this._cache.get(El);q.releaseCanvas(e,n,r),this._cache.delete(El)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var n=e||{},r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=Math.ceil(n.width||r.width),o=Math.ceil(n.height||r.height),a=n.pixelRatio,u=n.x===void 0?Math.floor(r.x):n.x,c=n.y===void 0?Math.floor(r.y):n.y,d=n.offset||0,h=n.drawBorder||!1,m=n.hitCanvasPixelRatio||1;if(!i||!o){q.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}i+=d*2+1,o+=d*2+1,u-=d,c-=d;var v=new ku({pixelRatio:a,width:i,height:o}),C=new ku({pixelRatio:a,width:0,height:0}),w=new W3({pixelRatio:m,width:i,height:o}),x=v.getContext(),P=w.getContext();return w.isCache=!0,v.isCache=!0,this._cache.delete(El),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(v.getContext()._context.imageSmoothingEnabled=!1,C.getContext()._context.imageSmoothingEnabled=!1),x.save(),P.save(),x.translate(-u,-c),P.translate(-u,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(zh),this._clearSelfAndDescendantCache(s7),this.drawScene(v,this),this.drawHit(w,this),this._isUnderCache=!1,x.restore(),P.restore(),h&&(x.save(),x.beginPath(),x.rect(0,0,i,o),x.closePath(),x.setAttr("strokeStyle","red"),x.setAttr("lineWidth",5),x.stroke(),x.restore()),this._cache.set(El,{scene:v,filter:C,hit:w,x:u,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(El)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,n){var r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],i,o,a,u,c=this.getAbsoluteTransform(n);return r.forEach(function(d){var h=c.point(d);i===void 0&&(i=a=h.x,o=u=h.y),i=Math.min(i,h.x),o=Math.min(o,h.y),a=Math.max(a,h.x),u=Math.max(u,h.y)}),{x:i,y:o,width:a-i,height:u-o}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();e.translate(n.x,n.y);var r=this._getCachedSceneCanvas(),i=r.pixelRatio;e.drawImage(r._canvas,0,0,r.width/i,r.height/i),e.restore()}_drawCachedHitCanvas(e){var n=this._getCanvasCache(),r=n.hit;e.save(),e.translate(n.x,n.y),e.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,o=i.getContext(),a,u,c,d;if(e){if(!this._filterUpToDate){var h=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(a=e.length,o.clear(),o.drawImage(r._canvas,0,0,r.getWidth()/h,r.getHeight()/h),u=o.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<a;c++){if(d=e[c],typeof d!="function"){q.error("Filter should be type of function, but got "+typeof d+" instead. Please check correct filters");continue}d.call(this,u),o.putImageData(u,0,0)}}catch(m){q.error("Unable to apply filter. "+m.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(e,n){if(this._cache&&this._cache.delete(jp),arguments.length===3)return this._delegate.apply(this,arguments);var r=e.split(jh),i=r.length,o,a,u,c,d;for(o=0;o<i;o++)a=r[o],u=a.split("."),c=u[0],d=u[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:d,handler:n});return this}off(e,n){var r=(e||"").split(jh),i=r.length,o,a,u,c,d,h;if(this._cache&&this._cache.delete(jp),!e)for(a in this.eventListeners)this._off(a);for(o=0;o<i;o++)if(u=r[o],c=u.split("."),d=c[0],h=c[1],d)this.eventListeners[d]&&this._off(d,h,n);else for(a in this.eventListeners)this._off(a,h,n);return this}dispatchEvent(e){var n={target:this,type:e.type,evt:e};return this.fire(e.type,n),this}addEventListener(e,n){return this.on(e,function(r){n.call(this,r.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,n,r){var i=this;this.on(e,function(o){for(var a=o.target.findAncestors(n,!0,i),u=0;u<a.length;u++)o=q.cloneObject(o),o.currentTarget=a[u],r.call(a[u],o)})}remove(){return this.isDragging()&&this.stopDrag(),Pt._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Bo),this._clearSelfAndDescendantCache(zh),this._clearSelfAndDescendantCache(s7),this._clearSelfAndDescendantCache(p7),this._clearSelfAndDescendantCache(fv),this._clearSelfAndDescendantCache(dv)}_remove(){this._clearCaches();var e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){var n="get"+q._capitalize(e);return q._isFunction(this[n])?this[n]():this.attrs[e]}getAncestors(){for(var e=this.getParent(),n=[];e;)n.push(e),e=e.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{var n,r;if(!e)return this;for(n in e)n!==EA&&(r=d7+q._capitalize(n),q._isFunction(this[r])?this[r](e[n]):this._setAttr(n,e[n]))}),this}isListening(){return this._getCache(dv,this._isListening)}_isListening(e){if(!this.listening())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isListening(e):!0}isVisible(){return this._getCache(fv,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isVisible(e):!0}shouldDrawHit(e,n=!1){if(e)return this._isVisible(e)&&this._isListening(e);var r=this.getLayer(),i=!1;Pt._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===r)&&(i=!0)});var o=!n&&!Fe.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e=this.getDepth(),n=this,r=0,i,o,a,u;function c(d){for(i=[],o=d.length,a=0;a<o;a++)u=d[a],r++,u.nodeType!==f7&&(i=i.concat(u.getChildren().slice())),u._id===n._id&&(a=o);i.length>0&&i[0].getDepth()<=e&&c(i)}return n.nodeType!==OA&&c(n.getStage().getChildren()),r}getDepth(){for(var e=0,n=this.parent;n;)e++,n=n.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Ea),this._clearSelfAndDescendantCache(Bo)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var e=this.getStage().getPointerPosition();if(!e)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(e)}getAbsolutePosition(e){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!e&&(e=!0);var i=this.getAbsoluteTransform(e).getMatrix(),o=new qr,a=this.offset();return o.m=i.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(e){var n=this._clearTransform();this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,this._clearCache(Ea);var r=this._getAbsoluteTransform().copy();return r.invert(),r.translate(e.x,e.y),e={x:this.attrs.x+r.getTranslation().x,y:this.attrs.y+r.getTranslation().y},this._setTransform(n),this.setPosition({x:e.x,y:e.y}),this._clearCache(Ea),this._clearSelfAndDescendantCache(Bo),this}_setTransform(e){var n;for(n in e)this.attrs[n]=e[n]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var n=e.x,r=e.y,i=this.x(),o=this.y();return n!==void 0&&(i+=n),r!==void 0&&(o+=r),this.setPosition({x:i,y:o}),this}_eachAncestorReverse(e,n){var r=[],i=this.getParent(),o,a;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(o=r.length,a=0;a<o;a++)e(r[a])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return q.warn("Node has no parent. moveToTop function is ignored."),!1;var e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return q.warn("Node has no parent. moveUp function is ignored."),!1;var e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return q.warn("Node has no parent. moveDown function is ignored."),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return q.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return q.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&q.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(zh,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),n=this.getParent();return n&&!n._isUnderCache&&(e*=n.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e={},n=this.getAttrs(),r,i,o,a,u;e.attrs={};for(r in n)i=n[r],u=q.isObject(i)&&!q._isPlainObject(i)&&!q._isArray(i),!u&&(o=typeof this[r]=="function"&&this[r],delete n[r],a=o?o.call(this):null,n[r]=i,a!==i&&(e.attrs[r]=i));return e.className=this.getClassName(),q._prepareToStringify(e)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,n,r){var i=[];n&&this._isMatch(e)&&i.push(this);for(var o=this.parent;o;){if(o===r)return i;o._isMatch(e)&&i.push(o),o=o.parent}return i}isAncestorOf(e){return!1}findAncestor(e,n,r){return this.findAncestors(e,n,r)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);var n=e.replace(/ /g,"").split(","),r=n.length,i,o;for(i=0;i<r;i++)if(o=n[i],q.isValidSelector(o)||(q.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),q.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),q.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){var e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(p7,this._getStage)}_getStage(){var e=this.getParent();if(e)return e.getStage()}fire(e,n={},r){return n.target=n.target||this,r?this._fireAndBubble(e,n):this._fire(e,n),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(Bo,this._getAbsoluteTransform)}_getAbsoluteTransform(e){var n;if(e)return n=new qr,this._eachAncestorReverse(function(i){var o=i.transformsEnabled();o==="all"?n.multiply(i.getTransform()):o==="position"&&n.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},e),n;n=this._cache.get(Bo)||new qr,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();var r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,o=this.attrs.y||0,a=this.attrs.offsetX||0,u=this.attrs.offsetY||0;n.translate(i-a,o-u)}return n.dirty=!1,n}getAbsoluteScale(e){for(var n=this;n;)n._isUnderCache&&(e=n),n=n.getParent();const i=this.getAbsoluteTransform(e).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Ea,this._getTransform)}_getTransform(){var e,n,r=this._cache.get(Ea)||new qr;r.reset();var i=this.x(),o=this.y(),a=Fe.getAngle(this.rotation()),u=(e=this.attrs.scaleX)!==null&&e!==void 0?e:1,c=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,d=this.attrs.skewX||0,h=this.attrs.skewY||0,m=this.attrs.offsetX||0,v=this.attrs.offsetY||0;return(i!==0||o!==0)&&r.translate(i,o),a!==0&&r.rotate(a),(d!==0||h!==0)&&r.skew(d,h),(u!==1||c!==1)&&r.scale(u,c),(m!==0||v!==0)&&r.translate(-1*m,-1*v),r.dirty=!1,r}clone(e){var n=q.cloneObject(this.attrs),r,i,o,a,u;for(r in e)n[r]=e[r];var c=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],o=i.length,a=0;a<o;a++)u=i[a],u.name.indexOf(bA)<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(u));return c}_toKonvaCanvas(e){e=e||{};var n=this.getClientRect(),r=this.getStage(),i=e.x!==void 0?e.x:Math.floor(n.x),o=e.y!==void 0?e.y:Math.floor(n.y),a=e.pixelRatio||1,u=new ku({width:e.width||Math.ceil(n.width)||(r?r.width():0),height:e.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:a}),c=u.getContext();return e.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||o)&&c.translate(-1*i,-1*o),this.drawScene(u),c.restore(),u}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e=e||{};var n=e.mimeType||null,r=e.quality||null,i=this._toKonvaCanvas(e).toDataURL(n,r);return e.callback&&e.callback(i),i}toImage(e){return new Promise((n,r)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,q._urlToImage(this.toDataURL(e),function(o){n(o),i==null||i(o)})}catch(i){r(i)}})}toBlob(e){return new Promise((n,r)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,this.toCanvas(e).toBlob(o=>{n(o),i==null||i(o)})}catch(i){r(i)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Fe.dragDistance}_off(e,n,r){var i=this.eventListeners[e],o,a,u;for(o=0;o<i.length;o++)if(a=i[o].name,u=i[o].handler,(a!=="konva"||n==="konva")&&(!n||a===n)&&(!r||r===u)){if(i.splice(o,1),i.length===0){delete this.eventListeners[e];break}o--}}_fireChangeEvent(e,n,r){this._fire(e+xA,{oldVal:n,newVal:r})}addName(e){if(!this.hasName(e)){var n=this.name(),r=n?n+" "+e:e;this.name(r)}return this}hasName(e){if(!e)return!1;const n=this.name();if(!n)return!1;var r=(n||"").split(/\s/g);return r.indexOf(e)!==-1}removeName(e){var n=(this.name()||"").split(/\s/g),r=n.indexOf(e);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(e,n){var r=this[d7+q._capitalize(e)];return q._isFunction(r)?r.call(this,n):this._setAttr(e,n),this}_requestDraw(){if(Fe.autoDrawEnabled){const e=this.getLayer()||this.getStage();e==null||e.batchDraw()}}_setAttr(e,n){var r=this.attrs[e];r===n&&!q.isObject(n)||(n==null?delete this.attrs[e]:this.attrs[e]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(e,r,n),this._requestDraw())}_setComponentAttr(e,n,r){var i;r!==void 0&&(i=this.attrs[e],i||(this.attrs[e]=this.getAttr(e)),this.attrs[e][n]=r,this._fireChangeEvent(e,i,r))}_fireAndBubble(e,n,r){n&&this.nodeType===f7&&(n.target=this);var i=(e===u7||e===c7)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!i){this._fire(e,n);var o=(e===u7||e===c7)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,e,n,r):this._fireAndBubble.call(this.parent,e,n))}}_getProtoListeners(e){let n=this._cache.get(jp);if(!n){n={};let i=Object.getPrototypeOf(this);for(;i;){if(!i.eventListeners){i=Object.getPrototypeOf(i);continue}for(var r in i.eventListeners){const o=i.eventListeners[r],a=n[r]||[];n[r]=o.concat(a)}i=Object.getPrototypeOf(i)}this._cache.set(jp,n)}return n[e]}_fire(e,n){n=n||{},n.currentTarget=this,n.type=e;const r=this._getProtoListeners(e);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const o=this.eventListeners[e];if(o)for(var i=0;i<o.length;i++)o[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){var n=e?e.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition(),o=r._getPointerById(n)||r._changedPointerPositions[0]||i;Pt._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-i.x,y:o.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(e,n=!0){Pt._dragElements.has(this._id)||this._createDragElement(e);const r=Pt._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},n)}_setDragPosition(e,n){const r=this.getStage()._getPointerById(n.pointerId);if(r){var i={x:r.x-n.offset.x,y:r.y-n.offset.y},o=this.dragBoundFunc();if(o!==void 0){const a=o.call(this,i,e);a?i=a:q.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(e){const n=Pt._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Pt._endDragBefore(e),Pt._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=Pt._dragElements.get(this._id);return e?e.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(e){var n=e.evt.button!==void 0,r=!n||Fe.dragButtons.indexOf(e.evt.button)>=0;if(r&&!this.isDragging()){var i=!1;Pt._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(i=!0)}),i||this._createDragElement(e)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var e=this.getStage();if(!e)return;const n=Pt._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";r?this.stopDrag():i&&Pt._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-e.x,y:-e.y,width:n.width()+2*e.x,height:n.height()+2*e.y};return q.haveIntersection(r,this.getClientRect())}static create(e,n){return q._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)}static _createNode(e,n){var r=Te.prototype.getClassName.call(e),i=e.children,o,a,u;n&&(e.attrs.container=n),Fe[r]||(q.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=Fe[r];if(o=new c(e.attrs),i)for(a=i.length,u=0;u<a;u++)o.add(Te._createNode(i[u]));return o}}Te.prototype.nodeType="Node";Te.prototype._attrsAffectingSize=[];Te.prototype.eventListeners={};Te.prototype.on.call(Te.prototype,PA,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Ea),this._clearSelfAndDescendantCache(Bo)});Te.prototype.on.call(Te.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(fv)});Te.prototype.on.call(Te.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(dv)});Te.prototype.on.call(Te.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(zh)});const Gt=H.addGetterSetter;Gt(Te,"zIndex");Gt(Te,"absolutePosition");Gt(Te,"position");Gt(Te,"x",0,ke());Gt(Te,"y",0,ke());Gt(Te,"globalCompositeOperation","source-over",nc());Gt(Te,"opacity",1,ke());Gt(Te,"name","",nc());Gt(Te,"id","",nc());Gt(Te,"rotation",0,ke());H.addComponentsGetterSetter(Te,"scale",["x","y"]);Gt(Te,"scaleX",1,ke());Gt(Te,"scaleY",1,ke());H.addComponentsGetterSetter(Te,"skew",["x","y"]);Gt(Te,"skewX",0,ke());Gt(Te,"skewY",0,ke());H.addComponentsGetterSetter(Te,"offset",["x","y"]);Gt(Te,"offsetX",0,ke());Gt(Te,"offsetY",0,ke());Gt(Te,"dragDistance",null,ke());Gt(Te,"width",0,ke());Gt(Te,"height",0,ke());Gt(Te,"listening",!0,Yi());Gt(Te,"preventDefault",!0,Yi());Gt(Te,"filters",null,function(t){return this._filterUpToDate=!1,t});Gt(Te,"visible",!0,Yi());Gt(Te,"transformsEnabled","all",nc());Gt(Te,"size");Gt(Te,"dragBoundFunc");Gt(Te,"draggable",!1,Yi());H.backCompat(Te,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});let ei=class extends Te{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const n=this.children||[];var r=[];return n.forEach(function(i){e(i)&&r.push(i)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(var n=0;n<e.length;n++)this.add(e[n]);return this}const r=e[0];return r.getParent()?(r.moveTo(this),this):(this._validateAdd(r),r.index=this.getChildren().length,r.parent=this,r._clearCaches(),this.getChildren().push(r),this._fire("add",{child:r}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){var n=this._generalFind(e,!0);return n.length>0?n[0]:void 0}_generalFind(e,n){var r=[];return this._descendants(i=>{const o=i._isMatch(e);return o&&r.push(i),!!(o&&n)}),r}_descendants(e){let n=!1;const r=this.getChildren();for(const i of r){if(n=e(i),n)return!0;if(i.hasChildren()&&(n=i._descendants(e),n))return!0}return!1}toObject(){var e=Te.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(n=>{e.children.push(n.toObject())}),e}isAncestorOf(e){for(var n=e.getParent();n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(e){var n=Te.prototype.clone.call(this,e);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(e){var n=[];return this.find("Shape").forEach(function(r){r.isVisible()&&r.intersects(e)&&n.push(r)}),n}_clearSelfAndDescendantCache(e){var n;super._clearSelfAndDescendantCache(e),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(e,n){var r=this.getLayer(),i=e||r&&r.getCanvas(),o=i&&i.getContext(),a=this._getCanvasCache(),u=a&&a.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(u){o.save();var d=this.getAbsoluteTransform(n).getMatrix();o.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",i,n);return this}drawHit(e,n){if(!this.shouldDrawHit(n))return this;var r=this.getLayer(),i=e||r&&r.hitCanvas,o=i&&i.getContext(),a=this._getCanvasCache(),u=a&&a.hit;if(u){o.save();var c=this.getAbsoluteTransform(n).getMatrix();o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(e,n,r){var i,o=n&&n.getContext(),a=this.clipWidth(),u=this.clipHeight(),c=this.clipFunc(),d=a&&u||c;const h=r===this;if(d){o.save();var m=this.getAbsoluteTransform(r),v=m.getMatrix();if(o.transform(v[0],v[1],v[2],v[3],v[4],v[5]),o.beginPath(),c)c.call(this,o,this);else{var C=this.clipX(),w=this.clipY();o.rect(C,w,a,u)}o.clip(),v=m.copy().invert().getMatrix(),o.transform(v[0],v[1],v[2],v[3],v[4],v[5])}var x=!h&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";x&&(o.save(),o._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(P){P[e](n,r)}),x&&o.restore(),d&&o.restore()}getClientRect(e){var n;e=e||{};var r=e.skipTransform,i=e.relativeTo,o,a,u,c,d={x:1/0,y:1/0,width:0,height:0},h=this;(n=this.children)===null||n===void 0||n.forEach(function(x){if(x.visible()){var P=x.getClientRect({relativeTo:h,skipShadow:e.skipShadow,skipStroke:e.skipStroke});P.width===0&&P.height===0||(o===void 0?(o=P.x,a=P.y,u=P.x+P.width,c=P.y+P.height):(o=Math.min(o,P.x),a=Math.min(a,P.y),u=Math.max(u,P.x+P.width),c=Math.max(c,P.y+P.height)))}});for(var m=this.find("Shape"),v=!1,C=0;C<m.length;C++){var w=m[C];if(w._isVisible(this)){v=!0;break}}return v&&o!==void 0?d={x:o,y:a,width:u-o,height:c-a}:d={x:0,y:0,width:0,height:0},r?d:this._transformedRect(d,i)}};H.addComponentsGetterSetter(ei,"clip",["x","y","width","height"]);H.addGetterSetter(ei,"clipX",void 0,ke());H.addGetterSetter(ei,"clipY",void 0,ke());H.addGetterSetter(ei,"clipWidth",void 0,ke());H.addGetterSetter(ei,"clipHeight",void 0,ke());H.addGetterSetter(ei,"clipFunc");const Kd=new Map,$E=Fe._global.PointerEvent!==void 0;function A2(t){return Kd.get(t)}function V3(t){return{evt:t,pointerId:t.pointerId}}function WE(t,e){return Kd.get(t)===e}function VE(t,e){Pd(t),e.getStage()&&(Kd.set(t,e),$E&&e._fire("gotpointercapture",V3(new PointerEvent("gotpointercapture"))))}function Pd(t,e){const n=Kd.get(t);if(!n)return;const r=n.getStage();r&&r.content,Kd.delete(t),$E&&n._fire("lostpointercapture",V3(new PointerEvent("lostpointercapture")))}var _A="Stage",TA="string",h7="px",IA="mouseout",GE="mouseleave",UE="mouseover",XE="mouseenter",ZE="mousemove",YE="mousedown",KE="mouseup",sd="pointermove",ud="pointerdown",yu="pointerup",cd="pointercancel",LA="lostpointercapture",Np="pointerout",Dp="pointerleave",Bp="pointerover",Hp="pointerenter",pv="contextmenu",qE="touchstart",QE="touchend",JE="touchmove",eb="touchcancel",hv="wheel",AA=5,MA=[[XE,"_pointerenter"],[YE,"_pointerdown"],[ZE,"_pointermove"],[KE,"_pointerup"],[GE,"_pointerleave"],[qE,"_pointerdown"],[JE,"_pointermove"],[QE,"_pointerup"],[eb,"_pointercancel"],[UE,"_pointerover"],[hv,"_wheel"],[pv,"_contextmenu"],[ud,"_pointerdown"],[sd,"_pointermove"],[yu,"_pointerup"],[cd,"_pointercancel"],[LA,"_lostpointercapture"]];const M2={mouse:{[Np]:IA,[Dp]:GE,[Bp]:UE,[Hp]:XE,[sd]:ZE,[ud]:YE,[yu]:KE,[cd]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Np]:"touchout",[Dp]:"touchleave",[Bp]:"touchover",[Hp]:"touchenter",[sd]:JE,[ud]:qE,[yu]:QE,[cd]:eb,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Np]:Np,[Dp]:Dp,[Bp]:Bp,[Hp]:Hp,[sd]:sd,[ud]:ud,[yu]:yu,[cd]:cd,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},dd=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",zs=t=>{const e=dd(t);if(e==="pointer")return Fe.pointerEventsEnabled&&M2.pointer;if(e==="touch")return M2.touch;if(e==="mouse")return M2.mouse};function g7(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&q.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}const RA="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",Nh=[];let g1=class extends ei{constructor(e){super(g7(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),Nh.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{g7(this.attrs)}),this._checkVisibility()}_validateAdd(e){const n=e.getType()==="Layer",r=e.getType()==="FastLayer";n||r||q.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if(typeof e===TA){if(e.charAt(0)==="."){var n=e.slice(1);e=document.getElementsByClassName(n)[0]}else{var r;e.charAt(0)!=="#"?r=e:r=e.slice(1),e=document.getElementById(r)}if(!e)throw"Can not find container in document with id "+r}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var e=this.children,n=e.length,r;for(r=0;r<n;r++)e[r].clear();return this}clone(e){return e||(e={}),e.container=typeof document<"u"&&document.createElement("div"),ei.prototype.clone.call(this,e)}destroy(){super.destroy();var e=this.content;e&&q._isInDocument(e)&&this.container().removeChild(e);var n=Nh.indexOf(this);return n>-1&&Nh.splice(n,1),q.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(q.warn(RA),null)}_getPointerById(e){return this._pointerPositions.find(n=>n.id===e)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){e=e||{},e.x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();var n=new ku({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),r=n.getContext()._context,i=this.children;return(e.x||e.y)&&r.translate(-1*e.x,-1*e.y),i.forEach(function(o){if(o.isVisible()){var a=o._toKonvaCanvas(e);r.drawImage(a._canvas,e.x,e.y,a.getWidth()/a.getPixelRatio(),a.getHeight()/a.getPixelRatio())}}),n}getIntersection(e){if(!e)return null;var n=this.children,r=n.length,i=r-1,o;for(o=i;o>=0;o--){const a=n[o].getIntersection(e);if(a)return a}return null}_resizeDOM(){var e=this.width(),n=this.height();this.content&&(this.content.style.width=e+h7,this.content.style.height=n+h7),this.bufferCanvas.setSize(e,n),this.bufferHitCanvas.setSize(e,n),this.children.forEach(r=>{r.setSize({width:e,height:n}),r.draw()})}add(e,...n){if(arguments.length>1){for(var r=0;r<arguments.length;r++)this.add(arguments[r]);return this}super.add(e);var i=this.children.length;return i>AA&&q.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),Fe.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return WE(e,this)}setPointerCapture(e){VE(e,this)}releaseCapture(e){Pd(e)}getLayers(){return this.children}_bindContentEvents(){Fe.isBrowser&&MA.forEach(([e,n])=>{this.content.addEventListener(e,r=>{this[n](r)},{passive:!1})})}_pointerenter(e){this.setPointersPositions(e);const n=zs(e.type);this._fire(n.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);const n=zs(e.type);this._fire(n.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let n=this[e+"targetShape"];return n&&!n.getStage()&&(n=null),n}_pointerleave(e){const n=zs(e.type),r=dd(e.type);if(n){this.setPointersPositions(e);var i=this._getTargetShape(r),o=!Pt.isDragging||Fe.hitOnDragEnabled;i&&o?(i._fireAndBubble(n.pointerout,{evt:e}),i._fireAndBubble(n.pointerleave,{evt:e}),this._fire(n.pointerleave,{evt:e,target:this,currentTarget:this}),this[r+"targetShape"]=null):o&&(this._fire(n.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(n.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(e){const n=zs(e.type),r=dd(e.type);if(n){this.setPointersPositions(e);var i=!1;this._changedPointerPositions.forEach(o=>{var a=this.getIntersection(o);if(Pt.justDragged=!1,Fe["_"+r+"ListenClick"]=!0,!(a&&a.isListening()))return;Fe.capturePointerEventsEnabled&&a.setPointerCapture(o.id),this[r+"ClickStartShape"]=a,a._fireAndBubble(n.pointerdown,{evt:e,pointerId:o.id}),i=!0;const c=e.type.indexOf("touch")>=0;a.preventDefault()&&e.cancelable&&c&&e.preventDefault()}),i||this._fire(n.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(e){const n=zs(e.type),r=dd(e.type);if(!n)return;Pt.isDragging&&Pt.node.preventDefault()&&e.cancelable&&e.preventDefault(),this.setPointersPositions(e);var i=!Pt.isDragging||Fe.hitOnDragEnabled;if(!i)return;var o={};let a=!1;var u=this._getTargetShape(r);this._changedPointerPositions.forEach(c=>{const d=A2(c.id)||this.getIntersection(c),h=c.id,m={evt:e,pointerId:h};var v=u!==d;if(v&&u&&(u._fireAndBubble(n.pointerout,Object.assign({},m),d),u._fireAndBubble(n.pointerleave,Object.assign({},m),d)),d){if(o[d._id])return;o[d._id]=!0}d&&d.isListening()?(a=!0,v&&(d._fireAndBubble(n.pointerover,Object.assign({},m),u),d._fireAndBubble(n.pointerenter,Object.assign({},m),u),this[r+"targetShape"]=d),d._fireAndBubble(n.pointermove,Object.assign({},m))):u&&(this._fire(n.pointerover,{evt:e,target:this,currentTarget:this,pointerId:h}),this[r+"targetShape"]=null)}),a||this._fire(n.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){const n=zs(e.type),r=dd(e.type);if(!n)return;this.setPointersPositions(e);const i=this[r+"ClickStartShape"],o=this[r+"ClickEndShape"];var a={};let u=!1;this._changedPointerPositions.forEach(c=>{const d=A2(c.id)||this.getIntersection(c);if(d){if(d.releaseCapture(c.id),a[d._id])return;a[d._id]=!0}const h=c.id,m={evt:e,pointerId:h};let v=!1;Fe["_"+r+"InDblClickWindow"]?(v=!0,clearTimeout(this[r+"DblTimeout"])):Pt.justDragged||(Fe["_"+r+"InDblClickWindow"]=!0,clearTimeout(this[r+"DblTimeout"])),this[r+"DblTimeout"]=setTimeout(function(){Fe["_"+r+"InDblClickWindow"]=!1},Fe.dblClickWindow),d&&d.isListening()?(u=!0,this[r+"ClickEndShape"]=d,d._fireAndBubble(n.pointerup,Object.assign({},m)),Fe["_"+r+"ListenClick"]&&i&&i===d&&(d._fireAndBubble(n.pointerclick,Object.assign({},m)),v&&o&&o===d&&d._fireAndBubble(n.pointerdblclick,Object.assign({},m)))):(this[r+"ClickEndShape"]=null,Fe["_"+r+"ListenClick"]&&this._fire(n.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:h}),v&&this._fire(n.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:h}))}),u||this._fire(n.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Fe["_"+r+"ListenClick"]=!1,e.cancelable&&r!=="touch"&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);var n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(pv,{evt:e}):this._fire(pv,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);var n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(hv,{evt:e}):this._fire(hv,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);const n=A2(e.pointerId)||this.getIntersection(this.getPointerPosition());n&&n._fireAndBubble(yu,V3(e)),Pd(e.pointerId)}_lostpointercapture(e){Pd(e.pointerId)}setPointersPositions(e){var n=this._getContentPosition(),r=null,i=null;e=e||window.event,e.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,o=>{this._pointerPositions.push({id:o.identifier,x:(o.clientX-n.left)/n.scaleX,y:(o.clientY-n.top)/n.scaleY})}),Array.prototype.forEach.call(e.changedTouches||e.touches,o=>{this._changedPointerPositions.push({id:o.identifier,x:(o.clientX-n.left)/n.scaleX,y:(o.clientY-n.top)/n.scaleY})})):(r=(e.clientX-n.left)/n.scaleX,i=(e.clientY-n.top)/n.scaleY,this.pointerPos={x:r,y:i},this._pointerPositions=[{x:r,y:i,id:q._getFirstPointerId(e)}],this._changedPointerPositions=[{x:r,y:i,id:q._getFirstPointerId(e)}])}_setPointerPosition(e){q.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new ku({width:this.width(),height:this.height()}),this.bufferHitCanvas=new W3({pixelRatio:1,width:this.width(),height:this.height()}),!!Fe.isBrowser){var e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}}cache(){return q.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(e){e.batchDraw()}),this}};g1.prototype.nodeType=_A;mn(g1);H.addGetterSetter(g1,"container");var tb="hasShadow",nb="shadowRGBA",rb="patternImage",ib="linearGradient",ob="radialGradient";let Fp;function R2(){return Fp||(Fp=q.createCanvasElement().getContext("2d"),Fp)}const kd={};function zA(t){t.fill()}function jA(t){t.stroke()}function NA(t){t.fill()}function DA(t){t.stroke()}function BA(){this._clearCache(tb)}function HA(){this._clearCache(nb)}function FA(){this._clearCache(rb)}function $A(){this._clearCache(ib)}function WA(){this._clearCache(ob)}class be extends Te{constructor(e){super(e);let n;for(;n=q.getRandomColor(),!(n&&!(n in kd)););this.colorKey=n,kd[n]=this}getContext(){return q.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return q.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(tb,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(rb,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var e=R2();const n=e.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(n&&n.setTransform){const r=new qr;r.translate(this.fillPatternX(),this.fillPatternY()),r.rotate(Fe.getAngle(this.fillPatternRotation())),r.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),r.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const i=r.getMatrix(),o=typeof DOMMatrix>"u"?{a:i[0],b:i[1],c:i[2],d:i[3],e:i[4],f:i[5]}:new DOMMatrix(i);n.setTransform(o)}return n}}_getLinearGradient(){return this._getCache(ib,this.__getLinearGradient)}__getLinearGradient(){var e=this.fillLinearGradientColorStops();if(e){for(var n=R2(),r=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),o=n.createLinearGradient(r.x,r.y,i.x,i.y),a=0;a<e.length;a+=2)o.addColorStop(e[a],e[a+1]);return o}}_getRadialGradient(){return this._getCache(ob,this.__getRadialGradient)}__getRadialGradient(){var e=this.fillRadialGradientColorStops();if(e){for(var n=R2(),r=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),o=n.createRadialGradient(r.x,r.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius()),a=0;a<e.length;a+=2)o.addColorStop(e[a],e[a+1]);return o}}getShadowRGBA(){return this._getCache(nb,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var e=q.colorToRGBA(this.shadowColor());if(e)return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const e=this.hitStrokeWidth();return e==="auto"?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){var n=this.getStage(),r=n.bufferHitCanvas,i;return r.getContext().clear(),this.drawHit(r,null,!0),i=r.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data,i[3]>0}destroy(){return Te.prototype.destroy.call(this),delete kd[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var n;if(!this.getStage()||!((n=this.attrs.perfectDrawEnabled)!==null&&n!==void 0?n:!0))return!1;const i=e||this.hasFill(),o=this.hasStroke(),a=this.getAbsoluteOpacity()!==1;if(i&&o&&a)return!0;const u=this.hasShadow(),c=this.shadowForStrokeEnabled();return!!(i&&o&&u&&c)}setStrokeHitEnabled(e){q.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(e={}){const n=e.skipTransform,r=e.relativeTo,i=this.getSelfRect(),a=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,u=i.width+a,c=i.height+a,d=!e.skipShadow&&this.hasShadow(),h=d?this.shadowOffsetX():0,m=d?this.shadowOffsetY():0,v=u+Math.abs(h),C=c+Math.abs(m),w=d&&this.shadowBlur()||0,x=v+w*2,P=C+w*2,b={width:x,height:P,x:-(a/2+w)+Math.min(h,0)+i.x,y:-(a/2+w)+Math.min(m,0)+i.y};return n?b:this._transformedRect(b,r)}drawScene(e,n){var r=this.getLayer(),i=e||r.getCanvas(),o=i.getContext(),a=this._getCanvasCache(),u=this.getSceneFunc(),c=this.hasShadow(),d,h,m,v=i.isCache,C=n===this;if(!this.isVisible()&&!C)return this;if(a){o.save();var w=this.getAbsoluteTransform(n).getMatrix();return o.transform(w[0],w[1],w[2],w[3],w[4],w[5]),this._drawCachedSceneCanvas(o),o.restore(),this}if(!u)return this;if(o.save(),this._useBufferCanvas()&&!v){d=this.getStage(),h=d.bufferCanvas,m=h.getContext(),m.clear(),m.save(),m._applyLineJoin(this);var x=this.getAbsoluteTransform(n).getMatrix();m.transform(x[0],x[1],x[2],x[3],x[4],x[5]),u.call(this,m,this),m.restore();var P=h.pixelRatio;c&&o._applyShadow(this),o._applyOpacity(this),o._applyGlobalCompositeOperation(this),o.drawImage(h._canvas,0,0,h.width/P,h.height/P)}else{if(o._applyLineJoin(this),!C){var x=this.getAbsoluteTransform(n).getMatrix();o.transform(x[0],x[1],x[2],x[3],x[4],x[5]),o._applyOpacity(this),o._applyGlobalCompositeOperation(this)}c&&o._applyShadow(this),u.call(this,o,this)}return o.restore(),this}drawHit(e,n,r=!1){if(!this.shouldDrawHit(n,r))return this;var i=this.getLayer(),o=e||i.hitCanvas,a=o&&o.getContext(),u=this.hitFunc()||this.sceneFunc(),c=this._getCanvasCache(),d=c&&c.hit;if(this.colorKey||q.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),d){a.save();var h=this.getAbsoluteTransform(n).getMatrix();return a.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!u)return this;if(a.save(),a._applyLineJoin(this),!(this===n)){var v=this.getAbsoluteTransform(n).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5])}return u.call(this,a,this),a.restore(),this}drawHitFromCache(e=0){var n=this._getCanvasCache(),r=this._getCachedSceneCanvas(),i=n.hit,o=i.getContext(),a=i.getWidth(),u=i.getHeight(),c,d,h,m,v,C;o.clear(),o.drawImage(r._canvas,0,0,a,u);try{for(c=o.getImageData(0,0,a,u),d=c.data,h=d.length,m=q._hexToRgb(this.colorKey),v=0;v<h;v+=4)C=d[v+3],C>e?(d[v]=m.r,d[v+1]=m.g,d[v+2]=m.b,d[v+3]=255):d[v+3]=0;o.putImageData(c,0,0)}catch(w){q.error("Unable to draw hit graph from cached scene canvas. "+w.message)}return this}hasPointerCapture(e){return WE(e,this)}setPointerCapture(e){VE(e,this)}releaseCapture(e){Pd(e)}}be.prototype._fillFunc=zA;be.prototype._strokeFunc=jA;be.prototype._fillFuncHit=NA;be.prototype._strokeFuncHit=DA;be.prototype._centroid=!1;be.prototype.nodeType="Shape";mn(be);be.prototype.eventListeners={};be.prototype.on.call(be.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",BA);be.prototype.on.call(be.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",HA);be.prototype.on.call(be.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",FA);be.prototype.on.call(be.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",$A);be.prototype.on.call(be.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",WA);H.addGetterSetter(be,"stroke",void 0,FE());H.addGetterSetter(be,"strokeWidth",2,ke());H.addGetterSetter(be,"fillAfterStrokeEnabled",!1);H.addGetterSetter(be,"hitStrokeWidth","auto",$3());H.addGetterSetter(be,"strokeHitEnabled",!0,Yi());H.addGetterSetter(be,"perfectDrawEnabled",!0,Yi());H.addGetterSetter(be,"shadowForStrokeEnabled",!0,Yi());H.addGetterSetter(be,"lineJoin");H.addGetterSetter(be,"lineCap");H.addGetterSetter(be,"sceneFunc");H.addGetterSetter(be,"hitFunc");H.addGetterSetter(be,"dash");H.addGetterSetter(be,"dashOffset",0,ke());H.addGetterSetter(be,"shadowColor",void 0,nc());H.addGetterSetter(be,"shadowBlur",0,ke());H.addGetterSetter(be,"shadowOpacity",1,ke());H.addComponentsGetterSetter(be,"shadowOffset",["x","y"]);H.addGetterSetter(be,"shadowOffsetX",0,ke());H.addGetterSetter(be,"shadowOffsetY",0,ke());H.addGetterSetter(be,"fillPatternImage");H.addGetterSetter(be,"fill",void 0,FE());H.addGetterSetter(be,"fillPatternX",0,ke());H.addGetterSetter(be,"fillPatternY",0,ke());H.addGetterSetter(be,"fillLinearGradientColorStops");H.addGetterSetter(be,"strokeLinearGradientColorStops");H.addGetterSetter(be,"fillRadialGradientStartRadius",0);H.addGetterSetter(be,"fillRadialGradientEndRadius",0);H.addGetterSetter(be,"fillRadialGradientColorStops");H.addGetterSetter(be,"fillPatternRepeat","repeat");H.addGetterSetter(be,"fillEnabled",!0);H.addGetterSetter(be,"strokeEnabled",!0);H.addGetterSetter(be,"shadowEnabled",!0);H.addGetterSetter(be,"dashEnabled",!0);H.addGetterSetter(be,"strokeScaleEnabled",!0);H.addGetterSetter(be,"fillPriority","color");H.addComponentsGetterSetter(be,"fillPatternOffset",["x","y"]);H.addGetterSetter(be,"fillPatternOffsetX",0,ke());H.addGetterSetter(be,"fillPatternOffsetY",0,ke());H.addComponentsGetterSetter(be,"fillPatternScale",["x","y"]);H.addGetterSetter(be,"fillPatternScaleX",1,ke());H.addGetterSetter(be,"fillPatternScaleY",1,ke());H.addComponentsGetterSetter(be,"fillLinearGradientStartPoint",["x","y"]);H.addComponentsGetterSetter(be,"strokeLinearGradientStartPoint",["x","y"]);H.addGetterSetter(be,"fillLinearGradientStartPointX",0);H.addGetterSetter(be,"strokeLinearGradientStartPointX",0);H.addGetterSetter(be,"fillLinearGradientStartPointY",0);H.addGetterSetter(be,"strokeLinearGradientStartPointY",0);H.addComponentsGetterSetter(be,"fillLinearGradientEndPoint",["x","y"]);H.addComponentsGetterSetter(be,"strokeLinearGradientEndPoint",["x","y"]);H.addGetterSetter(be,"fillLinearGradientEndPointX",0);H.addGetterSetter(be,"strokeLinearGradientEndPointX",0);H.addGetterSetter(be,"fillLinearGradientEndPointY",0);H.addGetterSetter(be,"strokeLinearGradientEndPointY",0);H.addComponentsGetterSetter(be,"fillRadialGradientStartPoint",["x","y"]);H.addGetterSetter(be,"fillRadialGradientStartPointX",0);H.addGetterSetter(be,"fillRadialGradientStartPointY",0);H.addComponentsGetterSetter(be,"fillRadialGradientEndPoint",["x","y"]);H.addGetterSetter(be,"fillRadialGradientEndPointX",0);H.addGetterSetter(be,"fillRadialGradientEndPointY",0);H.addGetterSetter(be,"fillPatternRotation",0);H.backCompat(be,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var VA="#",GA="beforeDraw",UA="draw",ab=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],XA=ab.length;let es=class extends ei{constructor(e){super(e),this.canvas=new ku,this.hitCanvas=new W3({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);var n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),e<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Te.prototype.moveToTop.call(this);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var e=Te.prototype.moveUp.call(this);if(!e)return!1;var n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Te.prototype.moveDown.call(this)){var e=this.getStage();if(e){var n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Te.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var e=this.getNativeCanvasElement();return Te.prototype.remove.call(this),e&&e.parentNode&&q._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:n}){return this.canvas.setSize(e,n),this.hitCanvas.setSize(e,n),this._setSmoothEnabled(),this}_validateAdd(e){var n=e.getType();n!=="Group"&&n!=="Shape"&&q.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e=e||{},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),Te.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){q.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){q.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,q.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;for(var n=1,r=!1;;){for(let i=0;i<XA;i++){const o=ab[i],a=this._getIntersection({x:e.x+o.x*n,y:e.y+o.y*n}),u=a.shape;if(u)return u;if(r=!!a.antialiased,!a.antialiased)break}if(r)n+=1;else return null}}_getIntersection(e){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(e.x*n),Math.round(e.y*n),1,1).data,i=r[3];if(i===255){const o=q._rgbToHex(r[0],r[1],r[2]),a=kd[VA+o];return a?{shape:a}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(e,n){var r=this.getLayer(),i=e||r&&r.getCanvas();return this._fire(GA,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),ei.prototype.drawScene.call(this,i,n),this._fire(UA,{node:this}),this}drawHit(e,n){var r=this.getLayer(),i=e||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),ei.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){q.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return q.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var e=this.parent,n=!!this.hitCanvas._canvas.parentNode;n?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}}destroy(){return q.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};es.prototype.nodeType="Layer";mn(es);H.addGetterSetter(es,"imageSmoothingEnabled",!0);H.addGetterSetter(es,"clearBeforeDraw",!0);H.addGetterSetter(es,"hitGraphEnabled",!0,Yi());class G3 extends es{constructor(e){super(e),this.listening(!1),q.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}G3.prototype.nodeType="FastLayer";mn(G3);let Wu=class extends ei{_validateAdd(e){var n=e.getType();n!=="Group"&&n!=="Shape"&&q.throw("You may only add groups and shapes to groups.")}};Wu.prototype.nodeType="Group";mn(Wu);var z2=function(){return Pu.performance&&Pu.performance.now?function(){return Pu.performance.now()}:function(){return new Date().getTime()}}();class Ci{constructor(e,n){this.id=Ci.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:z2(),frameRate:0},this.func=e,this.setLayers(n)}setLayers(e){var n=[];return e?e.length>0?n=e:n=[e]:n=[],this.layers=n,this}getLayers(){return this.layers}addLayer(e){var n=this.layers,r=n.length,i;for(i=0;i<r;i++)if(n[i]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){var e=Ci,n=e.animations,r=n.length,i;for(i=0;i<r;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=z2(),Ci._addAnimation(this),this}stop(){return Ci._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){var n=e.id,r=this.animations,i=r.length,o;for(o=0;o<i;o++)if(r[o].id===n){this.animations.splice(o,1);break}}static _runFrames(){var e={},n=this.animations,r,i,o,a,u,c,d,h,m;for(a=0;a<n.length;a++)if(r=n[a],i=r.layers,o=r.func,r._updateFrameObject(z2()),c=i.length,o?m=o.call(r,r.frame)!==!1:m=!0,!!m)for(u=0;u<c;u++)d=i[u],d._id!==void 0&&(e[d._id]=d);for(h in e)e.hasOwnProperty(h)&&e[h].batchDraw()}static _animationLoop(){var e=Ci;e.animations.length?(e._runFrames(),q.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,q.requestAnimFrame(this._animationLoop))}}Ci.animations=[];Ci.animIdCounter=0;Ci.animRunning=!1;var ZA={node:1,duration:1,easing:1,onFinish:1,yoyo:1},YA=1,m7=2,v7=3,KA=0,y7=["fill","stroke","shadowColor"];class qA{constructor(e,n,r,i,o,a,u){this.prop=e,this.propFunc=n,this.begin=i,this._pos=i,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=u,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=r,this._change=o-this.begin,this.pause()}fire(e){var n=this[e];n&&n()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return e===void 0&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=m7,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=v7,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var e=this.getTimer()-this._startTime;this.state===m7?this.setTime(e):this.state===v7&&this.setTime(this.duration-e)}pause(){this.state=YA,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Sn{constructor(e){var n=this,r=e.node,i=r._id,o,a=e.easing||_d.Linear,u=!!e.yoyo,c;typeof e.duration>"u"?o=.3:e.duration===0?o=.001:o=e.duration,this.node=r,this._id=KA++;var d=r.getLayer()||(r instanceof Fe.Stage?r.getLayers():null);d||q.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Ci(function(){n.tween.onEnterFrame()},d),this.tween=new qA(c,function(h){n._tweenFunc(h)},a,0,1,o*1e3,u),this._addListeners(),Sn.attrs[i]||(Sn.attrs[i]={}),Sn.attrs[i][this._id]||(Sn.attrs[i][this._id]={}),Sn.tweens[i]||(Sn.tweens[i]={});for(c in e)ZA[c]===void 0&&this._addAttr(c,e[c]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,n){var r=this.node,i=r._id,o,a,u,c,d,h,m,v;if(u=Sn.tweens[i][e],u&&delete Sn.attrs[i][u][e],o=r.getAttr(e),q._isArray(n))if(a=[],d=Math.max(n.length,o.length),e==="points"&&n.length!==o.length&&(n.length>o.length?(m=o,o=q._prepareArrayForTween(o,n,r.closed())):(h=n,n=q._prepareArrayForTween(n,o,r.closed()))),e.indexOf("fill")===0)for(c=0;c<d;c++)if(c%2===0)a.push(n[c]-o[c]);else{var C=q.colorToRGBA(o[c]);v=q.colorToRGBA(n[c]),o[c]=C,a.push({r:v.r-C.r,g:v.g-C.g,b:v.b-C.b,a:v.a-C.a})}else for(c=0;c<d;c++)a.push(n[c]-o[c]);else y7.indexOf(e)!==-1?(o=q.colorToRGBA(o),v=q.colorToRGBA(n),a={r:v.r-o.r,g:v.g-o.g,b:v.b-o.b,a:v.a-o.a}):a=n-o;Sn.attrs[i][this._id][e]={start:o,diff:a,end:n,trueEnd:h,trueStart:m},Sn.tweens[i][e]=this._id}_tweenFunc(e){var n=this.node,r=Sn.attrs[n._id][this._id],i,o,a,u,c,d,h,m;for(i in r){if(o=r[i],a=o.start,u=o.diff,m=o.end,q._isArray(a))if(c=[],h=Math.max(a.length,m.length),i.indexOf("fill")===0)for(d=0;d<h;d++)d%2===0?c.push((a[d]||0)+u[d]*e):c.push("rgba("+Math.round(a[d].r+u[d].r*e)+","+Math.round(a[d].g+u[d].g*e)+","+Math.round(a[d].b+u[d].b*e)+","+(a[d].a+u[d].a*e)+")");else for(d=0;d<h;d++)c.push((a[d]||0)+u[d]*e);else y7.indexOf(i)!==-1?c="rgba("+Math.round(a.r+u.r*e)+","+Math.round(a.g+u.g*e)+","+Math.round(a.b+u.b*e)+","+(a.a+u.a*e)+")":c=a+u*e;n.setAttr(i,c)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var e=this.node,n=Sn.attrs[e._id][this._id];n.points&&n.points.trueEnd&&e.setAttr("points",n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var e=this.node,n=Sn.attrs[e._id][this._id];n.points&&n.points.trueStart&&e.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(e*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var e=this.node._id,n=this._id,r=Sn.tweens[e],i;this.pause();for(i in r)delete Sn.tweens[e][i];delete Sn.attrs[e][n]}}Sn.attrs={};Sn.tweens={};Te.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};var n=new Sn(t);n.play()};const _d={BackEaseIn(t,e,n,r){var i=1.70158;return n*(t/=r)*t*((i+1)*t-i)+e},BackEaseOut(t,e,n,r){var i=1.70158;return n*((t=t/r-1)*t*((i+1)*t+i)+1)+e},BackEaseInOut(t,e,n,r){var i=1.70158;return(t/=r/2)<1?n/2*(t*t*(((i*=1.525)+1)*t-i))+e:n/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+e},ElasticEaseIn(t,e,n,r,i,o){var a=0;return t===0?e:(t/=r)===1?e+n:(o||(o=r*.3),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o))+e)},ElasticEaseOut(t,e,n,r,i,o){var a=0;return t===0?e:(t/=r)===1?e+n:(o||(o=r*.3),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*r-a)*(2*Math.PI)/o)+n+e)},ElasticEaseInOut(t,e,n,r,i,o){var a=0;return t===0?e:(t/=r/2)===2?e+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),t<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o))+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)*.5+n+e)},BounceEaseOut(t,e,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn(t,e,n,r){return n-_d.BounceEaseOut(r-t,0,n,r)+e},BounceEaseInOut(t,e,n,r){return t<r/2?_d.BounceEaseIn(t*2,0,n,r)*.5+e:_d.BounceEaseOut(t*2-r,0,n,r)*.5+n*.5+e},EaseIn(t,e,n,r){return n*(t/=r)*t+e},EaseOut(t,e,n,r){return-n*(t/=r)*(t-2)+e},EaseInOut(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn(t,e,n,r){return n*(t/=r)*t*t*t*t+e},StrongEaseOut(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},StrongEaseInOut(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear(t,e,n,r){return n*t/r+e}},Yl=q._assign(Fe,{Util:q,Transform:qr,Node:Te,Container:ei,Stage:g1,stages:Nh,Layer:es,FastLayer:G3,Group:Wu,DD:Pt,Shape:be,shapes:kd,Animation:Ci,Tween:Sn,Easings:_d,Context:p1,Canvas:h1});class na extends be{_sceneFunc(e){var n=Fe.getAngle(this.angle()),r=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,n,r),e.arc(0,0,this.innerRadius(),n,0,!r),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),n=this.outerRadius(),r=this.clockwise(),i=Fe.getAngle(r?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),a=1,u=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),d=o*(o>0?e:n),h=a*n,m=u*(u>0?e:n),v=c*(c>0?n:e);return{x:d,y:r?-1*v:m,width:h-d,height:v-m}}}na.prototype._centroid=!0;na.prototype.className="Arc";na.prototype._attrsAffectingSize=["innerRadius","outerRadius"];mn(na);H.addGetterSetter(na,"innerRadius",0,ke());H.addGetterSetter(na,"outerRadius",0,ke());H.addGetterSetter(na,"angle",0,ke());H.addGetterSetter(na,"clockwise",!1,Yi());function gv(t,e,n,r,i,o,a){var u=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),c=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),d=a*u/(u+c),h=a*c/(u+c),m=n-d*(i-t),v=r-d*(o-e),C=n+h*(i-t),w=r+h*(o-e);return[m,v,C,w]}function w7(t,e){var n=t.length,r=[],i,o;for(i=2;i<n-2;i+=2)o=gv(t[i-2],t[i-1],t[i],t[i+1],t[i+2],t[i+3],e),!isNaN(o[0])&&(r.push(o[0]),r.push(o[1]),r.push(t[i]),r.push(t[i+1]),r.push(o[2]),r.push(o[3]));return r}let ra=class extends be{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){var n=this.points(),r=n.length,i=this.tension(),o=this.closed(),a=this.bezier(),u,c,d;if(r){if(e.beginPath(),e.moveTo(n[0],n[1]),i!==0&&r>4){for(u=this.getTensionPoints(),c=u.length,d=o?0:4,o||e.quadraticCurveTo(u[0],u[1],u[2],u[3]);d<c-2;)e.bezierCurveTo(u[d++],u[d++],u[d++],u[d++],u[d++],u[d++]);o||e.quadraticCurveTo(u[c-2],u[c-1],n[r-2],n[r-1])}else if(a)for(d=2;d<r;)e.bezierCurveTo(n[d++],n[d++],n[d++],n[d++],n[d++],n[d++]);else for(d=2;d<r;d+=2)e.lineTo(n[d],n[d+1]);o?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():w7(this.points(),this.tension())}_getTensionPointsClosed(){var e=this.points(),n=e.length,r=this.tension(),i=gv(e[n-2],e[n-1],e[0],e[1],e[2],e[3],r),o=gv(e[n-4],e[n-3],e[n-2],e[n-1],e[0],e[1],r),a=w7(e,r),u=[i[2],i[3]].concat(a).concat([o[0],o[1],e[n-2],e[n-1],o[2],o[3],i[0],i[1],e[0],e[1]]);return u}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:e=this.points();for(var n=e[0],r=e[0],i=e[1],o=e[1],a,u,c=0;c<e.length/2;c++)a=e[c*2],u=e[c*2+1],n=Math.min(n,a),r=Math.max(r,a),i=Math.min(i,u),o=Math.max(o,u);return{x:n,y:i,width:r-n,height:o-i}}};ra.prototype.className="Line";ra.prototype._attrsAffectingSize=["points","bezier","tension"];mn(ra);H.addGetterSetter(ra,"closed",!1);H.addGetterSetter(ra,"bezier",!1);H.addGetterSetter(ra,"tension",0,ke());H.addGetterSetter(ra,"points",[],lA());class Ht extends be{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this.dataArray=Ht.parsePathData(this.data()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on("dataChange.konva",function(){this.dataArray=Ht.parsePathData(this.data()),this.pathLength=0;for(var r=0;r<this.dataArray.length;++r)this.pathLength+=this.dataArray[r].pathLength})}_sceneFunc(e){var n=this.dataArray;e.beginPath();for(var r=!1,i=0;i<n.length;i++){var o=n[i].command,a=n[i].points;switch(o){case"L":e.lineTo(a[0],a[1]);break;case"M":e.moveTo(a[0],a[1]);break;case"C":e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":e.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var u=a[0],c=a[1],d=a[2],h=a[3],m=a[4],v=a[5],C=a[6],w=a[7],x=d>h?d:h,P=d>h?1:d/h,b=d>h?h/d:1;e.translate(u,c),e.rotate(C),e.scale(P,b),e.arc(0,0,x,m,m+v,1-w),e.scale(1/P,1/b),e.rotate(-C),e.translate(-u,-c);break;case"z":r=!0,e.closePath();break}}!r&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){var e=[];this.dataArray.forEach(function(d){if(d.command==="A"){var h=d.points[4],m=d.points[5],v=d.points[4]+m,C=Math.PI/180;if(Math.abs(h-v)<C&&(C=Math.abs(h-v)),m<0)for(let w=h-C;w>v;w-=C){const x=Ht.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],w,0);e.push(x.x,x.y)}else for(let w=h+C;w<v;w+=C){const x=Ht.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],w,0);e.push(x.x,x.y)}}else if(d.command==="C")for(let w=0;w<=1;w+=.01){const x=Ht.getPointOnCubicBezier(w,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3],d.points[4],d.points[5]);e.push(x.x,x.y)}else e=e.concat(d.points)});for(var n=e[0],r=e[0],i=e[1],o=e[1],a,u,c=0;c<e.length/2;c++)a=e[c*2],u=e[c*2+1],isNaN(a)||(n=Math.min(n,a),r=Math.max(r,a)),isNaN(u)||(i=Math.min(i,u),o=Math.max(o,u));return{x:n,y:i,width:r-n,height:o-i}}getLength(){return this.pathLength}getPointAtLength(e){var n,r=0,i=this.dataArray.length;if(!i)return null;for(;r<i&&e>this.dataArray[r].pathLength;)e-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(e<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var o=this.dataArray[r],a=o.points;switch(o.command){case"L":return Ht.getPointOnLine(e,o.start.x,o.start.y,a[0],a[1]);case"C":return Ht.getPointOnCubicBezier(e/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return Ht.getPointOnQuadraticBezier(e/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3]);case"A":var u=a[0],c=a[1],d=a[2],h=a[3],m=a[4],v=a[5],C=a[6];return m+=v*e/o.pathLength,Ht.getPointOnEllipticalArc(u,c,d,h,m,C)}return null}static getLineLength(e,n,r,i){return Math.sqrt((r-e)*(r-e)+(i-n)*(i-n))}static getPointOnLine(e,n,r,i,o,a,u){a===void 0&&(a=n),u===void 0&&(u=r);var c=(o-r)/(i-n+1e-8),d=Math.sqrt(e*e/(1+c*c));i<n&&(d*=-1);var h=c*d,m;if(i===n)m={x:a,y:u+h};else if((u-r)/(a-n+1e-8)===c)m={x:a+d,y:u+h};else{var v,C,w=this.getLineLength(n,r,i,o),x=(a-n)*(i-n)+(u-r)*(o-r);x=x/(w*w),v=n+x*(i-n),C=r+x*(o-r);var P=this.getLineLength(a,u,v,C),b=Math.sqrt(e*e-P*P);d=Math.sqrt(b*b/(1+c*c)),i<n&&(d*=-1),h=c*d,m={x:v+d,y:C+h}}return m}static getPointOnCubicBezier(e,n,r,i,o,a,u,c,d){function h(P){return P*P*P}function m(P){return 3*P*P*(1-P)}function v(P){return 3*P*(1-P)*(1-P)}function C(P){return(1-P)*(1-P)*(1-P)}var w=c*h(e)+a*m(e)+i*v(e)+n*C(e),x=d*h(e)+u*m(e)+o*v(e)+r*C(e);return{x:w,y:x}}static getPointOnQuadraticBezier(e,n,r,i,o,a,u){function c(C){return C*C}function d(C){return 2*C*(1-C)}function h(C){return(1-C)*(1-C)}var m=a*c(e)+i*d(e)+n*h(e),v=u*c(e)+o*d(e)+r*h(e);return{x:m,y:v}}static getPointOnEllipticalArc(e,n,r,i,o,a){var u=Math.cos(a),c=Math.sin(a),d={x:r*Math.cos(o),y:i*Math.sin(o)};return{x:e+(d.x*u-d.y*c),y:n+(d.x*c+d.y*u)}}static parsePathData(e){if(!e)return[];var n=e,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);var o=n.split("|"),a=[],u=[],c=0,d=0,h=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,m;for(i=1;i<o.length;i++){var v=o[i],C=v.charAt(0);for(v=v.slice(1),u.length=0;m=h.exec(v);)u.push(m[0]);for(var w=[],x=0,P=u.length;x<P;x++){if(u[x]==="00"){w.push(0,0);continue}var b=parseFloat(u[x]);isNaN(b)?w.push(0):w.push(b)}for(;w.length>0&&!isNaN(w[0]);){var E=null,k=[],T=c,L=d,A,M,z,D,B,X,G,V,ne,ve;switch(C){case"l":c+=w.shift(),d+=w.shift(),E="L",k.push(c,d);break;case"L":c=w.shift(),d=w.shift(),k.push(c,d);break;case"m":var te=w.shift(),pe=w.shift();if(c+=te,d+=pe,E="M",a.length>2&&a[a.length-1].command==="z"){for(var Y=a.length-2;Y>=0;Y--)if(a[Y].command==="M"){c=a[Y].points[0]+te,d=a[Y].points[1]+pe;break}}k.push(c,d),C="l";break;case"M":c=w.shift(),d=w.shift(),E="M",k.push(c,d),C="L";break;case"h":c+=w.shift(),E="L",k.push(c,d);break;case"H":c=w.shift(),E="L",k.push(c,d);break;case"v":d+=w.shift(),E="L",k.push(c,d);break;case"V":d=w.shift(),E="L",k.push(c,d);break;case"C":k.push(w.shift(),w.shift(),w.shift(),w.shift()),c=w.shift(),d=w.shift(),k.push(c,d);break;case"c":k.push(c+w.shift(),d+w.shift(),c+w.shift(),d+w.shift()),c+=w.shift(),d+=w.shift(),E="C",k.push(c,d);break;case"S":M=c,z=d,A=a[a.length-1],A.command==="C"&&(M=c+(c-A.points[2]),z=d+(d-A.points[3])),k.push(M,z,w.shift(),w.shift()),c=w.shift(),d=w.shift(),E="C",k.push(c,d);break;case"s":M=c,z=d,A=a[a.length-1],A.command==="C"&&(M=c+(c-A.points[2]),z=d+(d-A.points[3])),k.push(M,z,c+w.shift(),d+w.shift()),c+=w.shift(),d+=w.shift(),E="C",k.push(c,d);break;case"Q":k.push(w.shift(),w.shift()),c=w.shift(),d=w.shift(),k.push(c,d);break;case"q":k.push(c+w.shift(),d+w.shift()),c+=w.shift(),d+=w.shift(),E="Q",k.push(c,d);break;case"T":M=c,z=d,A=a[a.length-1],A.command==="Q"&&(M=c+(c-A.points[0]),z=d+(d-A.points[1])),c=w.shift(),d=w.shift(),E="Q",k.push(M,z,c,d);break;case"t":M=c,z=d,A=a[a.length-1],A.command==="Q"&&(M=c+(c-A.points[0]),z=d+(d-A.points[1])),c+=w.shift(),d+=w.shift(),E="Q",k.push(M,z,c,d);break;case"A":D=w.shift(),B=w.shift(),X=w.shift(),G=w.shift(),V=w.shift(),ne=c,ve=d,c=w.shift(),d=w.shift(),E="A",k=this.convertEndpointToCenterParameterization(ne,ve,c,d,G,V,D,B,X);break;case"a":D=w.shift(),B=w.shift(),X=w.shift(),G=w.shift(),V=w.shift(),ne=c,ve=d,c+=w.shift(),d+=w.shift(),E="A",k=this.convertEndpointToCenterParameterization(ne,ve,c,d,G,V,D,B,X);break}a.push({command:E||C,points:k,start:{x:T,y:L},pathLength:this.calcLength(T,L,E||C,k)})}(C==="z"||C==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(e,n,r,i){var o,a,u,c,d=Ht;switch(r){case"L":return d.getLineLength(e,n,i[0],i[1]);case"C":for(o=0,a=d.getPointOnCubicBezier(0,e,n,i[0],i[1],i[2],i[3],i[4],i[5]),c=.01;c<=1;c+=.01)u=d.getPointOnCubicBezier(c,e,n,i[0],i[1],i[2],i[3],i[4],i[5]),o+=d.getLineLength(a.x,a.y,u.x,u.y),a=u;return o;case"Q":for(o=0,a=d.getPointOnQuadraticBezier(0,e,n,i[0],i[1],i[2],i[3]),c=.01;c<=1;c+=.01)u=d.getPointOnQuadraticBezier(c,e,n,i[0],i[1],i[2],i[3]),o+=d.getLineLength(a.x,a.y,u.x,u.y),a=u;return o;case"A":o=0;var h=i[4],m=i[5],v=i[4]+m,C=Math.PI/180;if(Math.abs(h-v)<C&&(C=Math.abs(h-v)),a=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),m<0)for(c=h-C;c>v;c-=C)u=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=d.getLineLength(a.x,a.y,u.x,u.y),a=u;else for(c=h+C;c<v;c+=C)u=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=d.getLineLength(a.x,a.y,u.x,u.y),a=u;return u=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],v,0),o+=d.getLineLength(a.x,a.y,u.x,u.y),o}return 0}static convertEndpointToCenterParameterization(e,n,r,i,o,a,u,c,d){var h=d*(Math.PI/180),m=Math.cos(h)*(e-r)/2+Math.sin(h)*(n-i)/2,v=-1*Math.sin(h)*(e-r)/2+Math.cos(h)*(n-i)/2,C=m*m/(u*u)+v*v/(c*c);C>1&&(u*=Math.sqrt(C),c*=Math.sqrt(C));var w=Math.sqrt((u*u*(c*c)-u*u*(v*v)-c*c*(m*m))/(u*u*(v*v)+c*c*(m*m)));o===a&&(w*=-1),isNaN(w)&&(w=0);var x=w*u*v/c,P=w*-c*m/u,b=(e+r)/2+Math.cos(h)*x-Math.sin(h)*P,E=(n+i)/2+Math.sin(h)*x+Math.cos(h)*P,k=function(B){return Math.sqrt(B[0]*B[0]+B[1]*B[1])},T=function(B,X){return(B[0]*X[0]+B[1]*X[1])/(k(B)*k(X))},L=function(B,X){return(B[0]*X[1]<B[1]*X[0]?-1:1)*Math.acos(T(B,X))},A=L([1,0],[(m-x)/u,(v-P)/c]),M=[(m-x)/u,(v-P)/c],z=[(-1*m-x)/u,(-1*v-P)/c],D=L(M,z);return T(M,z)<=-1&&(D=Math.PI),T(M,z)>=1&&(D=0),a===0&&D>0&&(D=D-2*Math.PI),a===1&&D<0&&(D=D+2*Math.PI),[b,E,u,c,A,D,h,a]}}Ht.prototype.className="Path";Ht.prototype._attrsAffectingSize=["data"];mn(Ht);H.addGetterSetter(Ht,"data");let ts=class extends ra{_sceneFunc(e){super._sceneFunc(e);var n=Math.PI*2,r=this.points(),i=r,o=this.tension()!==0&&r.length>4;o&&(i=this.getTensionPoints());var a=this.pointerLength(),u=r.length,c,d;if(o){const v=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],r[u-2],r[u-1]],C=Ht.calcLength(i[i.length-4],i[i.length-3],"C",v),w=Ht.getPointOnQuadraticBezier(Math.min(1,1-a/C),v[0],v[1],v[2],v[3],v[4],v[5]);c=r[u-2]-w.x,d=r[u-1]-w.y}else c=r[u-2]-r[u-4],d=r[u-1]-r[u-3];var h=(Math.atan2(d,c)+n)%n,m=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(r[u-2],r[u-1]),e.rotate(h),e.moveTo(0,0),e.lineTo(-a,m/2),e.lineTo(-a,-m/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(r[0],r[1]),o?(c=(i[0]+i[2])/2-r[0],d=(i[1]+i[3])/2-r[1]):(c=r[2]-r[0],d=r[3]-r[1]),e.rotate((Math.atan2(-d,-c)+n)%n),e.moveTo(0,0),e.lineTo(-a,m/2),e.lineTo(-a,-m/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),n=this.pointerWidth()/2;return{x:e.x-n,y:e.y-n,width:e.width+n*2,height:e.height+n*2}}};ts.prototype.className="Arrow";mn(ts);H.addGetterSetter(ts,"pointerLength",10,ke());H.addGetterSetter(ts,"pointerWidth",10,ke());H.addGetterSetter(ts,"pointerAtBeginning",!1);H.addGetterSetter(ts,"pointerAtEnding",!0);class rc extends be{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}rc.prototype._centroid=!0;rc.prototype.className="Circle";rc.prototype._attrsAffectingSize=["radius"];mn(rc);H.addGetterSetter(rc,"radius",0,ke());let qa=class extends be{_sceneFunc(e){var n=this.radiusX(),r=this.radiusY();e.beginPath(),e.save(),n!==r&&e.scale(1,r/n),e.arc(0,0,n,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};qa.prototype.className="Ellipse";qa.prototype._centroid=!0;qa.prototype._attrsAffectingSize=["radiusX","radiusY"];mn(qa);H.addComponentsGetterSetter(qa,"radius",["x","y"]);H.addGetterSetter(qa,"radiusX",0,ke());H.addGetterSetter(qa,"radiusY",0,ke());let xo=class lb extends be{constructor(e){super(e),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){const n=this.getWidth(),r=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let a;if(o){const u=this.attrs.cropWidth,c=this.attrs.cropHeight;u&&c?a=[o,this.cropX(),this.cropY(),u,c,0,0,n,r]:a=[o,0,0,n,r]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?q.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)),o&&(i&&e.clip(),e.drawImage.apply(e,a))}_hitFunc(e){var n=this.width(),r=this.height(),i=this.cornerRadius();e.beginPath(),i?q.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,n;return(e=this.attrs.width)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var e,n;return(e=this.attrs.height)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(e,n,r=null){var i=q.createImageElement();i.onload=function(){var o=new lb({image:i});n(o)},i.onerror=r,i.crossOrigin="Anonymous",i.src=e}};xo.prototype.className="Image";mn(xo);H.addGetterSetter(xo,"cornerRadius",0,F3(4));H.addGetterSetter(xo,"image");H.addComponentsGetterSetter(xo,"crop",["x","y","width","height"]);H.addGetterSetter(xo,"cropX",0,ke());H.addGetterSetter(xo,"cropY",0,ke());H.addGetterSetter(xo,"cropWidth",0,ke());H.addGetterSetter(xo,"cropHeight",0,ke());var sb=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],QA="Change.konva",JA="none",mv="up",vv="right",yv="down",wv="left",eM=sb.length;let U3=class extends Wu{constructor(e){super(e),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){var n=this,r,i=function(){n._sync()};for(r=0;r<eM;r++)e.on(sb[r]+QA,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var e=this.getText(),n=this.getTag(),r,i,o,a,u,c,d;if(e&&n){switch(r=e.width(),i=e.height(),o=n.pointerDirection(),a=n.pointerWidth(),d=n.pointerHeight(),u=0,c=0,o){case mv:u=r/2,c=-1*d;break;case vv:u=r+a,c=i/2;break;case yv:u=r/2,c=i+d;break;case wv:u=-1*a,c=i/2;break}n.setAttrs({x:-1*u,y:-1*c,width:r,height:i}),e.setAttrs({x:-1*u,y:-1*c})}}};U3.prototype.className="Label";mn(U3);class ns extends be{_sceneFunc(e){var n=this.width(),r=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),a=this.pointerHeight(),u=this.cornerRadius();let c=0,d=0,h=0,m=0;typeof u=="number"?c=d=h=m=Math.min(u,n/2,r/2):(c=Math.min(u[0]||0,n/2,r/2),d=Math.min(u[1]||0,n/2,r/2),m=Math.min(u[2]||0,n/2,r/2),h=Math.min(u[3]||0,n/2,r/2)),e.beginPath(),e.moveTo(c,0),i===mv&&(e.lineTo((n-o)/2,0),e.lineTo(n/2,-1*a),e.lineTo((n+o)/2,0)),e.lineTo(n-d,0),e.arc(n-d,d,d,Math.PI*3/2,0,!1),i===vv&&(e.lineTo(n,(r-a)/2),e.lineTo(n+o,r/2),e.lineTo(n,(r+a)/2)),e.lineTo(n,r-m),e.arc(n-m,r-m,m,0,Math.PI/2,!1),i===yv&&(e.lineTo((n+o)/2,r),e.lineTo(n/2,r+a),e.lineTo((n-o)/2,r)),e.lineTo(h,r),e.arc(h,r-h,h,Math.PI/2,Math.PI,!1),i===wv&&(e.lineTo(0,(r+a)/2),e.lineTo(-1*o,r/2),e.lineTo(0,(r-a)/2)),e.lineTo(0,c),e.arc(c,c,c,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){var e=0,n=0,r=this.pointerWidth(),i=this.pointerHeight(),o=this.pointerDirection(),a=this.width(),u=this.height();return o===mv?(n-=i,u+=i):o===yv?u+=i:o===wv?(e-=r*1.5,a+=r):o===vv&&(a+=r*1.5),{x:e,y:n,width:a,height:u}}}ns.prototype.className="Tag";mn(ns);H.addGetterSetter(ns,"pointerDirection",JA);H.addGetterSetter(ns,"pointerWidth",0,ke());H.addGetterSetter(ns,"pointerHeight",0,ke());H.addGetterSetter(ns,"cornerRadius",0,F3(4));let df=class extends be{_sceneFunc(e){var n=this.cornerRadius(),r=this.width(),i=this.height();e.beginPath(),n?q.drawRoundedRectPath(e,r,i,n):e.rect(0,0,r,i),e.closePath(),e.fillStrokeShape(this)}};df.prototype.className="Rect";mn(df);H.addGetterSetter(df,"cornerRadius",0,F3(4));let rs=class extends be{_sceneFunc(e){const n=this._getPoints();e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var r=1;r<n.length;r++)e.lineTo(n[r].x,n[r].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,n=this.attrs.radius||0,r=[];for(var i=0;i<e;i++)r.push({x:n*Math.sin(i*2*Math.PI/e),y:-1*n*Math.cos(i*2*Math.PI/e)});return r}getSelfRect(){const e=this._getPoints();var n=e[0].x,r=e[0].y,i=e[0].x,o=e[0].y;return e.forEach(a=>{n=Math.min(n,a.x),r=Math.max(r,a.x),i=Math.min(i,a.y),o=Math.max(o,a.y)}),{x:n,y:i,width:r-n,height:o-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};rs.prototype.className="RegularPolygon";rs.prototype._centroid=!0;rs.prototype._attrsAffectingSize=["radius"];mn(rs);H.addGetterSetter(rs,"radius",0,ke());H.addGetterSetter(rs,"sides",0,ke());var C7=Math.PI*2;class is extends be{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,C7,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),C7,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}is.prototype.className="Ring";is.prototype._centroid=!0;is.prototype._attrsAffectingSize=["innerRadius","outerRadius"];mn(is);H.addGetterSetter(is,"innerRadius",0,ke());H.addGetterSetter(is,"outerRadius",0,ke());class Eo extends be{constructor(e){super(e),this._updated=!0,this.anim=new Ci(()=>{var n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){var n=this.animation(),r=this.frameIndex(),i=r*4,o=this.animations()[n],a=this.frameOffsets(),u=o[i+0],c=o[i+1],d=o[i+2],h=o[i+3],m=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,d,h),e.closePath(),e.fillStrokeShape(this)),m)if(a){var v=a[n],C=r*2;e.drawImage(m,u,c,d,h,v[C+0],v[C+1],d,h)}else e.drawImage(m,u,c,d,h,0,0,d,h)}_hitFunc(e){var n=this.animation(),r=this.frameIndex(),i=r*4,o=this.animations()[n],a=this.frameOffsets(),u=o[i+2],c=o[i+3];if(e.beginPath(),a){var d=a[n],h=r*2;e.rect(d[h+0],d[h+1],u,c)}else e.rect(0,0,u,c);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),n=this.animation(),r=this.animations(),i=r[n],o=i.length/4;e<o-1?this.frameIndex(e+1):this.frameIndex(0)}}Eo.prototype.className="Sprite";mn(Eo);H.addGetterSetter(Eo,"animation");H.addGetterSetter(Eo,"animations");H.addGetterSetter(Eo,"frameOffsets");H.addGetterSetter(Eo,"image");H.addGetterSetter(Eo,"frameIndex",0,ke());H.addGetterSetter(Eo,"frameRate",17,ke());H.backCompat(Eo,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Qa extends be{_sceneFunc(e){var n=this.innerRadius(),r=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-r);for(var o=1;o<i*2;o++){var a=o%2===0?r:n,u=a*Math.sin(o*Math.PI/i),c=-1*a*Math.cos(o*Math.PI/i);e.lineTo(u,c)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}Qa.prototype.className="Star";Qa.prototype._centroid=!0;Qa.prototype._attrsAffectingSize=["innerRadius","outerRadius"];mn(Qa);H.addGetterSetter(Qa,"numPoints",5,ke());H.addGetterSetter(Qa,"innerRadius",0,ke());H.addGetterSetter(Qa,"outerRadius",0,ke());function ub(t){return Array.from(t)}var js="auto",tM="center",Wc="justify",nM="Change.konva",rM="2d",S7="-",cb="left",iM="text",oM="Text",aM="top",lM="bottom",x7="middle",db="normal",sM="px ",$p=" ",uM="right",cM="word",dM="char",E7="none",j2="…",fb=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],fM=fb.length;function pM(t){return t.split(",").map(e=>{e=e.trim();const n=e.indexOf(" ")>=0,r=e.indexOf('"')>=0||e.indexOf("'")>=0;return n&&!r&&(e='"'.concat(e,'"')),e}).join(", ")}var Wp;function N2(){return Wp||(Wp=q.createCanvasElement().getContext(rM),Wp)}function hM(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function gM(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function mM(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}let gn=class extends be{constructor(e){super(mM(e)),this._partialTextX=0,this._partialTextY=0;for(var n=0;n<fM;n++)this.on(fb[n]+nM,this._setTextData);this._setTextData()}_sceneFunc(e){var n=this.textArr,r=n.length;if(this.text()){var i=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,u=this.verticalAlign(),c=0,d=this.align(),h=this.getWidth(),m=this.letterSpacing(),v=this.fill(),C=this.textDecoration(),w=C.indexOf("underline")!==-1,x=C.indexOf("line-through")!==-1,P,b=0,b=a/2,E=0,k=0;for(e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",x7),e.setAttr("textAlign",cb),u===x7?c=(this.getHeight()-r*a-i*2)/2:u===lM&&(c=this.getHeight()-r*a-i*2),e.translate(i,c+i),P=0;P<r;P++){var E=0,k=0,T=n[P],L=T.text,A=T.width,M=T.lastInParagraph,z,D,B;if(e.save(),d===uM?E+=h-A-i*2:d===tM&&(E+=(h-A-i*2)/2),w){e.save(),e.beginPath(),e.moveTo(E,b+k+Math.round(o/2)),z=L.split(" ").length-1,D=z===0,B=d===Wc&&!M?h-i*2:A,e.lineTo(E+Math.round(B),b+k+Math.round(o/2)),e.lineWidth=o/15;const te=this._getLinearGradient();e.strokeStyle=te||v,e.stroke(),e.restore()}if(x){e.save(),e.beginPath(),e.moveTo(E,b+k),z=L.split(" ").length-1,D=z===0,B=d===Wc&&M&&!D?h-i*2:A,e.lineTo(E+Math.round(B),b+k),e.lineWidth=o/15;const te=this._getLinearGradient();e.strokeStyle=te||v,e.stroke(),e.restore()}if(m!==0||d===Wc){z=L.split(" ").length-1;for(var X=ub(L),G=0;G<X.length;G++){var V=X[G];V===" "&&!M&&d===Wc&&(E+=(h-i*2-A)/z),this._partialTextX=E,this._partialTextY=b+k,this._partialText=V,e.fillStrokeShape(this),E+=this.measureSize(V).width+m}}else this._partialTextX=E,this._partialTextY=b+k,this._partialText=L,e.fillStrokeShape(this);e.restore(),r>1&&(b+=a)}}}_hitFunc(e){var n=this.getWidth(),r=this.getHeight();e.beginPath(),e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}setText(e){var n=q._isString(e)?e:e==null?"":e+"";return this._setAttr(iM,n),this}getWidth(){var e=this.attrs.width===js||this.attrs.width===void 0;return e?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var e=this.attrs.height===js||this.attrs.height===void 0;return e?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return q.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var n=N2(),r=this.fontSize(),i;return n.save(),n.font=this._getContextFont(),i=n.measureText(e),n.restore(),{width:i.width,height:r}}_getContextFont(){return this.fontStyle()+$p+this.fontVariant()+$p+(this.fontSize()+sM)+pM(this.fontFamily())}_addTextLine(e){this.align()===Wc&&(e=e.trim());var r=this._getTextWidth(e);return this.textArr.push({text:e,width:r,lastInParagraph:!1})}_getTextWidth(e){var n=this.letterSpacing(),r=e.length;return N2().measureText(e).width+(r?n*(r-1):0)}_setTextData(){var e=this.text().split("\n"),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,u=o!==js&&o!==void 0,c=a!==js&&a!==void 0,d=this.padding(),h=o-d*2,m=a-d*2,v=0,C=this.wrap(),w=C!==E7,x=C!==dM&&w,P=this.ellipsis();this.textArr=[],N2().font=this._getContextFont();for(var b=P?this._getTextWidth(j2):0,E=0,k=e.length;E<k;++E){var T=e[E],L=this._getTextWidth(T);if(u&&L>h)for(;T.length>0;){for(var A=0,M=T.length,z="",D=0;A<M;){var B=A+M>>>1,X=T.slice(0,B+1),G=this._getTextWidth(X)+b;G<=h?(A=B+1,z=X,D=G):M=B}if(z){if(x){var V,ne=T[z.length],ve=ne===$p||ne===S7;ve&&D<=h?V=z.length:V=Math.max(z.lastIndexOf($p),z.lastIndexOf(S7))+1,V>0&&(A=V,z=z.slice(0,A),D=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,D),v+=i;var te=this._shouldHandleEllipsis(v);if(te){this._tryToAddEllipsisToLastLine();break}if(T=T.slice(A),T=T.trimLeft(),T.length>0&&(L=this._getTextWidth(T),L<=h)){this._addTextLine(T),v+=i,r=Math.max(r,L);break}}else break}else this._addTextLine(T),v+=i,r=Math.max(r,L),this._shouldHandleEllipsis(v)&&E<k-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&v+i>m)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(e){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==js&&i!==void 0,a=this.padding(),u=i-a*2,c=this.wrap(),d=c!==E7;return!d||o&&e+r>u}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,n=e!==js&&e!==void 0,r=this.padding(),i=e-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var u=this._getTextWidth(a.text+j2)<i;u||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+j2)}}getStrokeScaleEnabled(){return!0}};gn.prototype._fillFunc=hM;gn.prototype._strokeFunc=gM;gn.prototype.className=oM;gn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];mn(gn);H.overWriteSetter(gn,"width",$3());H.overWriteSetter(gn,"height",$3());H.addGetterSetter(gn,"fontFamily","Arial");H.addGetterSetter(gn,"fontSize",12,ke());H.addGetterSetter(gn,"fontStyle",db);H.addGetterSetter(gn,"fontVariant",db);H.addGetterSetter(gn,"padding",0,ke());H.addGetterSetter(gn,"align",cb);H.addGetterSetter(gn,"verticalAlign",aM);H.addGetterSetter(gn,"lineHeight",1,ke());H.addGetterSetter(gn,"wrap",cM);H.addGetterSetter(gn,"ellipsis",!1,Yi());H.addGetterSetter(gn,"letterSpacing",0,ke());H.addGetterSetter(gn,"text","",nc());H.addGetterSetter(gn,"textDecoration","");var vM="",pb="normal";function hb(t){t.fillText(this.partialText,0,0)}function gb(t){t.strokeText(this.partialText,0,0)}class Bn extends be{constructor(e){super(e),this.dummyCanvas=q.createCanvasElement(),this.dataArray=[],this.dataArray=Ht.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Ht.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&e.beginPath();for(var a=0;a<o.length;a++){e.save();var u=o[a].p0;e.translate(u.x,u.y),e.rotate(o[a].rotation),this.partialText=o[a].text,e.fillStrokeShape(this),n==="underline"&&(a===0&&e.moveTo(0,i/2+1),e.lineTo(i,i/2+1)),e.restore()}n==="underline"&&(e.strokeStyle=r,e.lineWidth=i/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;e.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;e.lineTo(o.x,o.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return q.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return gn.prototype.setText.call(this,e)}_getContextFont(){return gn.prototype._getContextFont.call(this)}_getTextSize(e){var n=this.dummyCanvas,r=n.getContext("2d");r.save(),r.font=this._getContextFont();var i=r.measureText(e);return r.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var e=this,n=this._getTextSize(this.attrs.text),r=this.letterSpacing(),i=this.align(),o=this.kerningFunc();this.textWidth=n.width,this.textHeight=n.height;var a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);this.glyphInfo=[];for(var u=0,c=0;c<e.dataArray.length;c++)e.dataArray[c].pathLength>0&&(u+=e.dataArray[c].pathLength);var d=0;i==="center"&&(d=Math.max(0,u/2-a/2)),i==="right"&&(d=Math.max(0,u-a));for(var h=ub(this.text()),m=this.text().split(" ").length-1,v,C,w,x=-1,P=0,b=function(){P=0;for(var G=e.dataArray,V=x+1;V<G.length;V++){if(G[V].pathLength>0)return x=V,G[V];G[V].command==="M"&&(v={x:G[V].points[0],y:G[V].points[1]})}return{}},E=function(G){var V=e._getTextSize(G).width+r;G===" "&&i==="justify"&&(V+=(u-a)/m);var ne=0,ve=0;for(C=void 0;Math.abs(V-ne)/V>.01&&ve<20;){ve++;for(var te=ne;w===void 0;)w=b(),w&&te+w.pathLength<V&&(te+=w.pathLength,w=void 0);if(Object.keys(w).length===0||v===void 0)return;var pe=!1;switch(w.command){case"L":Ht.getLineLength(v.x,v.y,w.points[0],w.points[1])>V?C=Ht.getPointOnLine(V,v.x,v.y,w.points[0],w.points[1],v.x,v.y):w=void 0;break;case"A":var Y=w.points[4],de=w.points[5],ce=w.points[4]+de;P===0?P=Y+1e-8:V>ne?P+=Math.PI/180*de/Math.abs(de):P-=Math.PI/360*de/Math.abs(de),(de<0&&P<ce||de>=0&&P>ce)&&(P=ce,pe=!0),C=Ht.getPointOnEllipticalArc(w.points[0],w.points[1],w.points[2],w.points[3],P,w.points[6]);break;case"C":P===0?V>w.pathLength?P=1e-8:P=V/w.pathLength:V>ne?P+=(V-ne)/w.pathLength/2:P=Math.max(P-(ne-V)/w.pathLength/2,0),P>1&&(P=1,pe=!0),C=Ht.getPointOnCubicBezier(P,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3],w.points[4],w.points[5]);break;case"Q":P===0?P=V/w.pathLength:V>ne?P+=(V-ne)/w.pathLength:P-=(ne-V)/w.pathLength,P>1&&(P=1,pe=!0),C=Ht.getPointOnQuadraticBezier(P,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3]);break}C!==void 0&&(ne=Ht.getLineLength(v.x,v.y,C.x,C.y)),pe&&(pe=!1,w=void 0)}},k="C",T=e._getTextSize(k).width+r,L=d/T-1,A=0;A<L&&(E(k),!(v===void 0||C===void 0));A++)v=C;for(var M=0;M<h.length&&(E(h[M]),!(v===void 0||C===void 0));M++){var z=Ht.getLineLength(v.x,v.y,C.x,C.y),D=0;if(o)try{D=o(h[M-1],h[M])*this.fontSize()}catch{D=0}v.x+=D,C.x+=D,this.textWidth+=D;var B=Ht.getPointOnLine(D+z/2,v.x,v.y,C.x,C.y),X=Math.atan2(C.y-v.y,C.x-v.x);this.glyphInfo.push({transposeX:B.x,transposeY:B.y,text:h[M],rotation:X,p0:v,p1:C}),v=C}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var e=[];this.glyphInfo.forEach(function(h){e.push(h.p0.x),e.push(h.p0.y),e.push(h.p1.x),e.push(h.p1.y)});for(var n=e[0]||0,r=e[0]||0,i=e[1]||0,o=e[1]||0,a,u,c=0;c<e.length/2;c++)a=e[c*2],u=e[c*2+1],n=Math.min(n,a),r=Math.max(r,a),i=Math.min(i,u),o=Math.max(o,u);var d=this.fontSize();return{x:n-d/2,y:i-d/2,width:r-n+d,height:o-i+d}}destroy(){return q.releaseCanvas(this.dummyCanvas),super.destroy()}}Bn.prototype._fillFunc=hb;Bn.prototype._strokeFunc=gb;Bn.prototype._fillFuncHit=hb;Bn.prototype._strokeFuncHit=gb;Bn.prototype.className="TextPath";Bn.prototype._attrsAffectingSize=["text","fontSize","data"];mn(Bn);H.addGetterSetter(Bn,"data");H.addGetterSetter(Bn,"fontFamily","Arial");H.addGetterSetter(Bn,"fontSize",12,ke());H.addGetterSetter(Bn,"fontStyle",pb);H.addGetterSetter(Bn,"align","left");H.addGetterSetter(Bn,"letterSpacing",0,ke());H.addGetterSetter(Bn,"textBaseline","middle");H.addGetterSetter(Bn,"fontVariant",pb);H.addGetterSetter(Bn,"text",vM);H.addGetterSetter(Bn,"textDecoration",null);H.addGetterSetter(Bn,"kerningFunc",null);var mb="tr-konva",yM=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map(t=>t+".".concat(mb)).join(" "),b7="nodesRect",wM=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],CM={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const SM="ontouchstart"in Fe._global;function xM(t,e){if(t==="rotater")return"crosshair";e+=q.degToRad(CM[t]||0);var n=(q.radToDeg(e)%360+360)%360;return q._inRange(n,315+22.5,360)||q._inRange(n,0,22.5)?"ns-resize":q._inRange(n,45-22.5,45+22.5)?"nesw-resize":q._inRange(n,90-22.5,90+22.5)?"ew-resize":q._inRange(n,135-22.5,135+22.5)?"nwse-resize":q._inRange(n,180-22.5,180+22.5)?"ns-resize":q._inRange(n,225-22.5,225+22.5)?"nesw-resize":q._inRange(n,270-22.5,270+22.5)?"ew-resize":q._inRange(n,315-22.5,315+22.5)?"nwse-resize":(q.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var w0=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],O7=1e8;function EM(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function vb(t,e,n){const r=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),i=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return Object.assign(Object.assign({},t),{rotation:t.rotation+e,x:r,y:i})}function bM(t,e){const n=EM(t);return vb(t,e,n)}function OM(t,e,n){let r=e;for(let i=0;i<t.length;i++){const o=Fe.getAngle(t[i]),a=Math.abs(o-e)%(Math.PI*2);Math.min(a,Math.PI*2-a)<n&&(r=o)}return r}let Lt=class extends Wu{constructor(e){super(e),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(yM,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return q.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return mb+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const n=e.filter(i=>i.isAncestorOf(this)?(q.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=e=n,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const o=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=i._attrsAffectingSize.map(u=>u+"Change."+this._getEventNamespace()).join(" ");i.on(a,o),i.on(wM.map(u=>u+".".concat(this._getEventNamespace())).join(" "),o),i.on("absoluteTransformChange.".concat(this._getEventNamespace()),o),this._proxyDrag(i)}),this._resetTransformCache();var r=!!this.findOne(".top-left");return r&&this.update(),this}_proxyDrag(e){let n;e.on("dragstart.".concat(this._getEventNamespace()),r=>{n=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(r,!1)}),e.on("dragmove.".concat(this._getEventNamespace()),r=>{if(!n)return;const i=e.getAbsolutePosition(),o=i.x-n.x,a=i.y-n.y;this.nodes().forEach(u=>{if(u===e||u.isDragging())return;const c=u.getAbsolutePosition();u.setAbsolutePosition({x:c.x+o,y:c.y+a}),u.startDrag(r)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(b7),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(b7,this.__getNodeRect)}__getNodeShape(e,n=this.rotation(),r){var i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=e.getAbsoluteScale(r),a=e.getAbsolutePosition(r),u=i.x*o.x-e.offsetX()*o.x,c=i.y*o.y-e.offsetY()*o.y;const d=(Fe.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),h={x:a.x+u*Math.cos(d)+c*Math.sin(-d),y:a.y+c*Math.cos(d)+u*Math.sin(d),width:i.width*o.x,height:i.height*o.y,rotation:d};return vb(h,-Fe.getAngle(n),{x:0,y:0})}__getNodeRect(){var e=this.getNode();if(!e)return{x:-O7,y:-O7,width:0,height:0,rotation:0};const n=[];this.nodes().map(d=>{const h=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var m=[{x:h.x,y:h.y},{x:h.x+h.width,y:h.y},{x:h.x+h.width,y:h.y+h.height},{x:h.x,y:h.y+h.height}],v=d.getAbsoluteTransform();m.forEach(function(C){var w=v.point(C);n.push(w)})});const r=new qr;r.rotate(-Fe.getAngle(this.rotation()));var i,o,a,u;n.forEach(function(d){var h=r.point(d);i===void 0&&(i=a=h.x,o=u=h.y),i=Math.min(i,h.x),o=Math.min(o,h.y),a=Math.max(a,h.x),u=Math.max(u,h.y)}),r.invert();const c=r.point({x:i,y:o});return{x:c.x,y:c.y,width:a-i,height:u-o,rotation:Fe.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),w0.forEach((function(e){this._createAnchor(e)}).bind(this)),this._createAnchor("rotater")}_createAnchor(e){var n=new df({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:SM?10:"auto"}),r=this;n.on("mousedown touchstart",function(i){r._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{var i=Fe.getAngle(this.rotation()),o=xM(e,i);n.getStage().content&&(n.getStage().content.style.cursor=o),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){var e=new be({name:"back",width:0,height:0,draggable:!0,sceneFunc(n){var r=this.getParent(),i=r.padding();n.beginPath(),n.rect(-i,-i,this.width()+i*2,this.height()+i*2),n.moveTo(this.width()/2,-i),r.rotateEnabled()&&n.lineTo(this.width()/2,-r.rotateAnchorOffset()*q._sign(this.height())-i),n.fillStrokeShape(this)},hitFunc:(n,r)=>{if(this.shouldOverdrawWholeArea()){var i=this.padding();n.beginPath(),n.rect(-i,-i,r.width()+i*2,r.height()+i*2),n.fillStrokeShape(r)}}});this.add(e),this._proxyDrag(e),e.on("dragstart",n=>{n.cancelBubble=!0}),e.on("dragmove",n=>{n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(e){this._movingAnchorName=e.target.name().split(" ")[0];var n=this._getNodeRect(),r=n.width,i=n.height,o=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));this.sin=Math.abs(i/o),this.cos=Math.abs(r/o),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var a=e.target.getAbsolutePosition(),u=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:u.x-a.x,y:u.y-a.y},this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:e.evt,target:c})})}_handleMouseMove(e){var n,r,i,o=this.findOne("."+this._movingAnchorName),a=o.getStage();a.setPointersPositions(e);const u=a.getPointerPosition();let c={x:u.x-this._anchorDragOffset.x,y:u.y-this._anchorDragOffset.y};const d=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(d,c,e)),o.setAbsolutePosition(c);const h=o.getAbsolutePosition();if(!(d.x===h.x&&d.y===h.y)){if(this._movingAnchorName==="rotater"){var m=this._getNodeRect();n=o.x()-m.width/2,r=-o.y()+m.height/2;let G=Math.atan2(-r,n)+Math.PI/2;m.height<0&&(G-=Math.PI);var v=Fe.getAngle(this.rotation());const V=v+G,ne=Fe.getAngle(this.rotationSnapTolerance()),te=OM(this.rotationSnaps(),V,ne)-m.rotation,pe=bM(m,te);this._fitNodesInto(pe,e);return}var C=this.keepRatio()||e.shiftKey,E=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(C){var w=E?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(w.x-o.x(),2)+Math.pow(w.y-o.y(),2));var x=this.findOne(".top-left").x()>w.x?-1:1,P=this.findOne(".top-left").y()>w.y?-1:1;n=i*this.cos*x,r=i*this.sin*P,this.findOne(".top-left").x(w.x-n),this.findOne(".top-left").y(w.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(C){var w=E?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(o.x()-w.x,2)+Math.pow(w.y-o.y(),2));var x=this.findOne(".top-right").x()<w.x?-1:1,P=this.findOne(".top-right").y()>w.y?-1:1;n=i*this.cos*x,r=i*this.sin*P,this.findOne(".top-right").x(w.x+n),this.findOne(".top-right").y(w.y-r)}var b=o.position();this.findOne(".top-left").y(b.y),this.findOne(".bottom-right").x(b.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(o.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(o.x());else if(this._movingAnchorName==="bottom-left"){if(C){var w=E?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(w.x-o.x(),2)+Math.pow(o.y()-w.y,2));var x=w.x<o.x()?-1:1,P=o.y()<w.y?-1:1;n=i*this.cos*x,r=i*this.sin*P,o.x(w.x-n),o.y(w.y+r)}b=o.position(),this.findOne(".top-left").x(b.x),this.findOne(".bottom-right").y(b.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(C){var w=E?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(o.x()-w.x,2)+Math.pow(o.y()-w.y,2));var x=this.findOne(".bottom-right").x()<w.x?-1:1,P=this.findOne(".bottom-right").y()<w.y?-1:1;n=i*this.cos*x,r=i*this.sin*P,this.findOne(".bottom-right").x(w.x+n),this.findOne(".bottom-right").y(w.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var E=this.centeredScaling()||e.altKey;if(E){var k=this.findOne(".top-left"),T=this.findOne(".bottom-right"),L=k.x(),A=k.y(),M=this.getWidth()-T.x(),z=this.getHeight()-T.y();T.move({x:-L,y:-A}),k.move({x:M,y:z})}var D=this.findOne(".top-left").getAbsolutePosition();n=D.x,r=D.y;var B=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),X=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:r,width:B,height:X,rotation:Fe.getAngle(this.rotation())},e)}}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var n=this.getNode();this._fire("transformend",{evt:e,target:n}),n&&this._nodes.forEach(r=>{r._fire("transformend",{evt:e,target:r})}),this._movingAnchorName=null}}_fitNodesInto(e,n){var r=this._getNodeRect();const i=1;if(q._inRange(e.width,-this.padding()*2-i,i)){this.update();return}if(q._inRange(e.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var a=new qr;if(a.rotate(Fe.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const m=a.point({x:-this.padding()*2,y:0});if(e.x+=m.x,e.y+=m.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,!o){this.update();return}}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const m=a.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,e.width+=this.padding()*2,!o){this.update();return}}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const m=a.point({x:0,y:-this.padding()*2});if(e.x+=m.x,e.y+=m.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,e.height+=this.padding()*2,!o){this.update();return}}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const m=a.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,e.height+=this.padding()*2,!o){this.update();return}}if(this.boundBoxFunc()){const m=this.boundBoxFunc()(r,e);m?e=m:q.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const u=1e7,c=new qr;c.translate(r.x,r.y),c.rotate(r.rotation),c.scale(r.width/u,r.height/u);const d=new qr;d.translate(e.x,e.y),d.rotate(e.rotation),d.scale(e.width/u,e.height/u);const h=d.multiply(c.invert());this._nodes.forEach(m=>{var v;const C=m.getParent().getAbsoluteTransform(),w=m.getTransform().copy();w.translate(m.offsetX(),m.offsetY());const x=new qr;x.multiply(C.copy().invert()).multiply(h).multiply(C).multiply(w);const P=x.decompose();m.setAttrs(P),this._fire("transform",{evt:n,target:m}),m._fire("transform",{evt:n,target:m}),(v=m.getLayer())===null||v===void 0||v.batchDraw()}),this.rotation(q._getRotation(e.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,n){this.findOne(e).setAttrs(n)}update(){var e,n=this._getNodeRect();this.rotation(q._getRotation(n.rotation));var r=n.width,i=n.height,o=this.enabledAnchors(),a=this.resizeEnabled(),u=this.padding(),c=this.anchorSize();this.find("._anchor").forEach(d=>{d.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:c/2+u,offsetY:c/2+u,visible:a&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:c/2+u,visible:a&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:c/2-u,offsetY:c/2+u,visible:a&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+u,visible:a&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:i/2,offsetX:c/2-u,visible:a&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+u,offsetY:c/2-u,visible:a&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:i,offsetY:c/2-u,visible:a&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:i,offsetX:c/2-u,offsetY:c/2-u,visible:a&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*q._sign(i)-u,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Wu.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Te.prototype.toObject.call(this)}clone(e){var n=Te.prototype.clone.call(this,e);return n}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};function PM(t){return t instanceof Array||q.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){w0.indexOf(e)===-1&&q.warn("Unknown anchor name: "+e+". Available names are: "+w0.join(", "))}),t||[]}Lt.prototype.className="Transformer";mn(Lt);H.addGetterSetter(Lt,"enabledAnchors",w0,PM);H.addGetterSetter(Lt,"flipEnabled",!0,Yi());H.addGetterSetter(Lt,"resizeEnabled",!0);H.addGetterSetter(Lt,"anchorSize",10,ke());H.addGetterSetter(Lt,"rotateEnabled",!0);H.addGetterSetter(Lt,"rotationSnaps",[]);H.addGetterSetter(Lt,"rotateAnchorOffset",50,ke());H.addGetterSetter(Lt,"rotationSnapTolerance",5,ke());H.addGetterSetter(Lt,"borderEnabled",!0);H.addGetterSetter(Lt,"anchorStroke","rgb(0, 161, 255)");H.addGetterSetter(Lt,"anchorStrokeWidth",1,ke());H.addGetterSetter(Lt,"anchorFill","white");H.addGetterSetter(Lt,"anchorCornerRadius",0,ke());H.addGetterSetter(Lt,"borderStroke","rgb(0, 161, 255)");H.addGetterSetter(Lt,"borderStrokeWidth",1,ke());H.addGetterSetter(Lt,"borderDash");H.addGetterSetter(Lt,"keepRatio",!0);H.addGetterSetter(Lt,"centeredScaling",!1);H.addGetterSetter(Lt,"ignoreStroke",!1);H.addGetterSetter(Lt,"padding",0,ke());H.addGetterSetter(Lt,"node");H.addGetterSetter(Lt,"nodes");H.addGetterSetter(Lt,"boundBoxFunc");H.addGetterSetter(Lt,"anchorDragBoundFunc");H.addGetterSetter(Lt,"shouldOverdrawWholeArea",!1);H.addGetterSetter(Lt,"useSingleNodeRotation",!0);H.backCompat(Lt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class ia extends be{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,Fe.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}ia.prototype.className="Wedge";ia.prototype._centroid=!0;ia.prototype._attrsAffectingSize=["radius"];mn(ia);H.addGetterSetter(ia,"radius",0,ke());H.addGetterSetter(ia,"angle",0,ke());H.addGetterSetter(ia,"clockwise",!1);H.backCompat(ia,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function P7(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var kM=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],_M=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function TM(t,e){var n=t.data,r=t.width,i=t.height,o,a,u,c,d,h,m,v,C,w,x,P,b,E,k,T,L,A,M,z,D,B,X,G,V=e+e+1,ne=r-1,ve=i-1,te=e+1,pe=te*(te+1)/2,Y=new P7,de=null,ce=Y,me=null,re=null,ee=kM[e],ue=_M[e];for(u=1;u<V;u++)ce=ce.next=new P7,u===te&&(de=ce);for(ce.next=Y,m=h=0,a=0;a<i;a++){for(T=L=A=M=v=C=w=x=0,P=te*(z=n[h]),b=te*(D=n[h+1]),E=te*(B=n[h+2]),k=te*(X=n[h+3]),v+=pe*z,C+=pe*D,w+=pe*B,x+=pe*X,ce=Y,u=0;u<te;u++)ce.r=z,ce.g=D,ce.b=B,ce.a=X,ce=ce.next;for(u=1;u<te;u++)c=h+((ne<u?ne:u)<<2),v+=(ce.r=z=n[c])*(G=te-u),C+=(ce.g=D=n[c+1])*G,w+=(ce.b=B=n[c+2])*G,x+=(ce.a=X=n[c+3])*G,T+=z,L+=D,A+=B,M+=X,ce=ce.next;for(me=Y,re=de,o=0;o<r;o++)n[h+3]=X=x*ee>>ue,X!==0?(X=255/X,n[h]=(v*ee>>ue)*X,n[h+1]=(C*ee>>ue)*X,n[h+2]=(w*ee>>ue)*X):n[h]=n[h+1]=n[h+2]=0,v-=P,C-=b,w-=E,x-=k,P-=me.r,b-=me.g,E-=me.b,k-=me.a,c=m+((c=o+e+1)<ne?c:ne)<<2,T+=me.r=n[c],L+=me.g=n[c+1],A+=me.b=n[c+2],M+=me.a=n[c+3],v+=T,C+=L,w+=A,x+=M,me=me.next,P+=z=re.r,b+=D=re.g,E+=B=re.b,k+=X=re.a,T-=z,L-=D,A-=B,M-=X,re=re.next,h+=4;m+=r}for(o=0;o<r;o++){for(L=A=M=T=C=w=x=v=0,h=o<<2,P=te*(z=n[h]),b=te*(D=n[h+1]),E=te*(B=n[h+2]),k=te*(X=n[h+3]),v+=pe*z,C+=pe*D,w+=pe*B,x+=pe*X,ce=Y,u=0;u<te;u++)ce.r=z,ce.g=D,ce.b=B,ce.a=X,ce=ce.next;for(d=r,u=1;u<=e;u++)h=d+o<<2,v+=(ce.r=z=n[h])*(G=te-u),C+=(ce.g=D=n[h+1])*G,w+=(ce.b=B=n[h+2])*G,x+=(ce.a=X=n[h+3])*G,T+=z,L+=D,A+=B,M+=X,ce=ce.next,u<ve&&(d+=r);for(h=o,me=Y,re=de,a=0;a<i;a++)c=h<<2,n[c+3]=X=x*ee>>ue,X>0?(X=255/X,n[c]=(v*ee>>ue)*X,n[c+1]=(C*ee>>ue)*X,n[c+2]=(w*ee>>ue)*X):n[c]=n[c+1]=n[c+2]=0,v-=P,C-=b,w-=E,x-=k,P-=me.r,b-=me.g,E-=me.b,k-=me.a,c=o+((c=a+te)<ve?c:ve)*r<<2,v+=T+=me.r=n[c],C+=L+=me.g=n[c+1],w+=A+=me.b=n[c+2],x+=M+=me.a=n[c+3],me=me.next,P+=z=re.r,b+=D=re.g,E+=B=re.b,k+=X=re.a,T-=z,L-=D,A-=B,M-=X,re=re.next,h+=r}}const IM=function(e){var n=Math.round(this.blurRadius());n>0&&TM(e,n)};H.addGetterSetter(Te,"blurRadius",0,ke(),H.afterSetFilter);const LM=function(t){var e=this.brightness()*255,n=t.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=e,n[i+1]+=e,n[i+2]+=e};H.addGetterSetter(Te,"brightness",0,ke(),H.afterSetFilter);const AM=function(t){var e=Math.pow((this.contrast()+100)/100,2),n=t.data,r=n.length,i=150,o=150,a=150,u;for(u=0;u<r;u+=4)i=n[u],o=n[u+1],a=n[u+2],i/=255,i-=.5,i*=e,i+=.5,i*=255,o/=255,o-=.5,o*=e,o+=.5,o*=255,a/=255,a-=.5,a*=e,a+=.5,a*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,n[u]=i,n[u+1]=o,n[u+2]=a};H.addGetterSetter(Te,"contrast",0,ke(),H.afterSetFilter);const MM=function(t){var e=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),o=0,a=0,u=t.data,c=t.width,d=t.height,h=c*4,m=d;switch(r){case"top-left":o=-1,a=-1;break;case"top":o=-1,a=0;break;case"top-right":o=-1,a=1;break;case"right":o=0,a=1;break;case"bottom-right":o=1,a=1;break;case"bottom":o=1,a=0;break;case"bottom-left":o=1,a=-1;break;case"left":o=0,a=-1;break;default:q.error("Unknown emboss direction: "+r)}do{var v=(m-1)*h,C=o;m+C<1&&(C=0),m+C>d&&(C=0);var w=(m-1+C)*c*4,x=c;do{var P=v+(x-1)*4,b=a;x+b<1&&(b=0),x+b>c&&(b=0);var E=w+(x-1+b)*4,k=u[P]-u[E],T=u[P+1]-u[E+1],L=u[P+2]-u[E+2],A=k,M=A>0?A:-A,z=T>0?T:-T,D=L>0?L:-L;if(z>M&&(A=T),D>M&&(A=L),A*=e,i){var B=u[P]+A,X=u[P+1]+A,G=u[P+2]+A;u[P]=B>255?255:B<0?0:B,u[P+1]=X>255?255:X<0?0:X,u[P+2]=G>255?255:G<0?0:G}else{var V=n-A;V<0?V=0:V>255&&(V=255),u[P]=u[P+1]=u[P+2]=V}}while(--x)}while(--m)};H.addGetterSetter(Te,"embossStrength",.5,ke(),H.afterSetFilter);H.addGetterSetter(Te,"embossWhiteLevel",.5,ke(),H.afterSetFilter);H.addGetterSetter(Te,"embossDirection","top-left",null,H.afterSetFilter);H.addGetterSetter(Te,"embossBlend",!1,null,H.afterSetFilter);function D2(t,e,n,r,i){var o=n-e,a=i-r,u;return o===0?r+a/2:a===0?r:(u=(t-e)/o,u=a*u+r,u)}const RM=function(t){var e=t.data,n=e.length,r=e[0],i=r,o,a=e[1],u=a,c,d=e[2],h=d,m,v,C=this.enhance();if(C!==0){for(v=0;v<n;v+=4)o=e[v+0],o<r?r=o:o>i&&(i=o),c=e[v+1],c<a?a=c:c>u&&(u=c),m=e[v+2],m<d?d=m:m>h&&(h=m);i===r&&(i=255,r=0),u===a&&(u=255,a=0),h===d&&(h=255,d=0);var w,x,P,b,E,k,T,L,A;for(C>0?(x=i+C*(255-i),P=r-C*(r-0),E=u+C*(255-u),k=a-C*(a-0),L=h+C*(255-h),A=d-C*(d-0)):(w=(i+r)*.5,x=i+C*(i-w),P=r+C*(r-w),b=(u+a)*.5,E=u+C*(u-b),k=a+C*(a-b),T=(h+d)*.5,L=h+C*(h-T),A=d+C*(d-T)),v=0;v<n;v+=4)e[v+0]=D2(e[v+0],r,i,P,x),e[v+1]=D2(e[v+1],a,u,k,E),e[v+2]=D2(e[v+2],d,h,A,L)}};H.addGetterSetter(Te,"enhance",0,ke(),H.afterSetFilter);const zM=function(t){var e=t.data,n=e.length,r,i;for(r=0;r<n;r+=4)i=.34*e[r]+.5*e[r+1]+.16*e[r+2],e[r]=i,e[r+1]=i,e[r+2]=i};H.addGetterSetter(Te,"hue",0,ke(),H.afterSetFilter);H.addGetterSetter(Te,"saturation",0,ke(),H.afterSetFilter);H.addGetterSetter(Te,"luminance",0,ke(),H.afterSetFilter);const jM=function(t){var e=t.data,n=e.length,r=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,a=this.luminance()*127,u,c=r*i*Math.cos(o*Math.PI/180),d=r*i*Math.sin(o*Math.PI/180),h=.299*r+.701*c+.167*d,m=.587*r-.587*c+.33*d,v=.114*r-.114*c-.497*d,C=.299*r-.299*c-.328*d,w=.587*r+.413*c+.035*d,x=.114*r-.114*c+.293*d,P=.299*r-.3*c+1.25*d,b=.587*r-.586*c-1.05*d,E=.114*r+.886*c-.2*d,k,T,L,A;for(u=0;u<n;u+=4)k=e[u+0],T=e[u+1],L=e[u+2],A=e[u+3],e[u+0]=h*k+m*T+v*L+a,e[u+1]=C*k+w*T+x*L+a,e[u+2]=P*k+b*T+E*L+a,e[u+3]=A},NM=function(t){var e=t.data,n=e.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,a,u=r*i*Math.cos(o*Math.PI/180),c=r*i*Math.sin(o*Math.PI/180),d=.299*r+.701*u+.167*c,h=.587*r-.587*u+.33*c,m=.114*r-.114*u-.497*c,v=.299*r-.299*u-.328*c,C=.587*r+.413*u+.035*c,w=.114*r-.114*u+.293*c,x=.299*r-.3*u+1.25*c,P=.587*r-.586*u-1.05*c,b=.114*r+.886*u-.2*c,E,k,T,L;for(a=0;a<n;a+=4)E=e[a+0],k=e[a+1],T=e[a+2],L=e[a+3],e[a+0]=d*E+h*k+m*T,e[a+1]=v*E+C*k+w*T,e[a+2]=x*E+P*k+b*T,e[a+3]=L};H.addGetterSetter(Te,"hue",0,ke(),H.afterSetFilter);H.addGetterSetter(Te,"saturation",0,ke(),H.afterSetFilter);H.addGetterSetter(Te,"value",0,ke(),H.afterSetFilter);const DM=function(t){var e=t.data,n=e.length,r;for(r=0;r<n;r+=4)e[r]=255-e[r],e[r+1]=255-e[r+1],e[r+2]=255-e[r+2]};var BM=function(t,e,n){var r=t.data,i=e.data,o=t.width,a=t.height,u=n.polarCenterX||o/2,c=n.polarCenterY||a/2,d,h,m,v=0,C=0,w=0,x=0,P,b=Math.sqrt(u*u+c*c);h=o-u,m=a-c,P=Math.sqrt(h*h+m*m),b=P>b?P:b;var E=a,k=o,T,L,A=360/k*Math.PI/180,M,z;for(L=0;L<k;L+=1)for(M=Math.sin(L*A),z=Math.cos(L*A),T=0;T<E;T+=1)h=Math.floor(u+b*T/E*z),m=Math.floor(c+b*T/E*M),d=(m*o+h)*4,v=r[d+0],C=r[d+1],w=r[d+2],x=r[d+3],d=(L+T*o)*4,i[d+0]=v,i[d+1]=C,i[d+2]=w,i[d+3]=x},HM=function(t,e,n){var r=t.data,i=e.data,o=t.width,a=t.height,u=n.polarCenterX||o/2,c=n.polarCenterY||a/2,d,h,m,v,C,w=0,x=0,P=0,b=0,E,k=Math.sqrt(u*u+c*c);h=o-u,m=a-c,E=Math.sqrt(h*h+m*m),k=E>k?E:k;var T=a,L=o,A,M,z=n.polarRotation||0,D,B;for(h=0;h<o;h+=1)for(m=0;m<a;m+=1)v=h-u,C=m-c,A=Math.sqrt(v*v+C*C)*T/k,M=(Math.atan2(C,v)*180/Math.PI+360+z)%360,M=M*L/360,D=Math.floor(M),B=Math.floor(A),d=(B*o+D)*4,w=r[d+0],x=r[d+1],P=r[d+2],b=r[d+3],d=(m*o+h)*4,i[d+0]=w,i[d+1]=x,i[d+2]=P,i[d+3]=b};const FM=function(t){var e=t.width,n=t.height,r,i,o,a,u,c,d,h,m,v,C=Math.round(this.kaleidoscopePower()),w=Math.round(this.kaleidoscopeAngle()),x=Math.floor(e*(w%360)/360);if(!(C<1)){var P=q.createCanvasElement();P.width=e,P.height=n;var b=P.getContext("2d").getImageData(0,0,e,n);q.releaseCanvas(P),BM(t,b,{polarCenterX:e/2,polarCenterY:n/2});for(var E=e/Math.pow(2,C);E<=8;)E=E*2,C-=1;E=Math.ceil(E);var k=E,T=0,L=k,A=1;for(x+E>e&&(T=k,L=0,A=-1),i=0;i<n;i+=1)for(r=T;r!==L;r+=A)o=Math.round(r+x)%e,m=(e*i+o)*4,u=b.data[m+0],c=b.data[m+1],d=b.data[m+2],h=b.data[m+3],v=(e*i+r)*4,b.data[v+0]=u,b.data[v+1]=c,b.data[v+2]=d,b.data[v+3]=h;for(i=0;i<n;i+=1)for(k=Math.floor(E),a=0;a<C;a+=1){for(r=0;r<k+1;r+=1)m=(e*i+r)*4,u=b.data[m+0],c=b.data[m+1],d=b.data[m+2],h=b.data[m+3],v=(e*i+k*2-r-1)*4,b.data[v+0]=u,b.data[v+1]=c,b.data[v+2]=d,b.data[v+3]=h;k*=2}HM(b,t,{polarRotation:0})}};H.addGetterSetter(Te,"kaleidoscopePower",2,ke(),H.afterSetFilter);H.addGetterSetter(Te,"kaleidoscopeAngle",0,ke(),H.afterSetFilter);function Vp(t,e,n){var r=(n*t.width+e)*4,i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function Vc(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function $M(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function WM(t,e){var n=Vp(t,0,0),r=Vp(t,t.width-1,0),i=Vp(t,0,t.height-1),o=Vp(t,t.width-1,t.height-1),a=e||10;if(Vc(n,r)<a&&Vc(r,o)<a&&Vc(o,i)<a&&Vc(i,n)<a){for(var u=$M([r,n,o,i]),c=[],d=0;d<t.width*t.height;d++){var h=Vc(u,[t.data[d*4],t.data[d*4+1],t.data[d*4+2]]);c[d]=h<a?0:255}return c}}function VM(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function GM(t,e,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],u=0;u<n;u++)for(var c=0;c<e;c++){for(var d=u*e+c,h=0,m=0;m<i;m++)for(var v=0;v<i;v++){var C=u+m-o,w=c+v-o;if(C>=0&&C<n&&w>=0&&w<e){var x=C*e+w,P=r[m*i+v];h+=t[x]*P}}a[d]=h===255*8?255:0}return a}function UM(t,e,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],u=0;u<n;u++)for(var c=0;c<e;c++){for(var d=u*e+c,h=0,m=0;m<i;m++)for(var v=0;v<i;v++){var C=u+m-o,w=c+v-o;if(C>=0&&C<n&&w>=0&&w<e){var x=C*e+w,P=r[m*i+v];h+=t[x]*P}}a[d]=h>=255*4?255:0}return a}function XM(t,e,n){for(var r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],u=0;u<n;u++)for(var c=0;c<e;c++){for(var d=u*e+c,h=0,m=0;m<i;m++)for(var v=0;v<i;v++){var C=u+m-o,w=c+v-o;if(C>=0&&C<n&&w>=0&&w<e){var x=C*e+w,P=r[m*i+v];h+=t[x]*P}}a[d]=h}return a}const ZM=function(t){var e=this.threshold(),n=WM(t,e);return n&&(n=GM(n,t.width,t.height),n=UM(n,t.width,t.height),n=XM(n,t.width,t.height),VM(t,n)),t};H.addGetterSetter(Te,"threshold",0,ke(),H.afterSetFilter);const YM=function(t){var e=this.noise()*255,n=t.data,r=n.length,i=e/2,o;for(o=0;o<r;o+=4)n[o+0]+=i-2*i*Math.random(),n[o+1]+=i-2*i*Math.random(),n[o+2]+=i-2*i*Math.random()};H.addGetterSetter(Te,"noise",.2,ke(),H.afterSetFilter);const KM=function(t){var e=Math.ceil(this.pixelSize()),n=t.width,r=t.height,i,o,a,u,c,d,h,m=Math.ceil(n/e),v=Math.ceil(r/e),C,w,x,P,b,E,k,T=t.data;if(e<=0){q.error("pixelSize value can not be <= 0");return}for(b=0;b<m;b+=1)for(E=0;E<v;E+=1){for(u=0,c=0,d=0,h=0,C=b*e,w=C+e,x=E*e,P=x+e,k=0,i=C;i<w;i+=1)if(!(i>=n))for(o=x;o<P;o+=1)o>=r||(a=(n*o+i)*4,u+=T[a+0],c+=T[a+1],d+=T[a+2],h+=T[a+3],k+=1);for(u=u/k,c=c/k,d=d/k,h=h/k,i=C;i<w;i+=1)if(!(i>=n))for(o=x;o<P;o+=1)o>=r||(a=(n*o+i)*4,T[a+0]=u,T[a+1]=c,T[a+2]=d,T[a+3]=h)}};H.addGetterSetter(Te,"pixelSize",8,ke(),H.afterSetFilter);const qM=function(t){var e=Math.round(this.levels()*254)+1,n=t.data,r=n.length,i=255/e,o;for(o=0;o<r;o+=1)n[o]=Math.floor(n[o]/i)*i};H.addGetterSetter(Te,"levels",.5,ke(),H.afterSetFilter);const QM=function(t){var e=t.data,n=e.length,r=this.red(),i=this.green(),o=this.blue(),a,u;for(a=0;a<n;a+=4)u=(.34*e[a]+.5*e[a+1]+.16*e[a+2])/255,e[a]=u*r,e[a+1]=u*i,e[a+2]=u*o,e[a+3]=e[a+3]};H.addGetterSetter(Te,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});H.addGetterSetter(Te,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});H.addGetterSetter(Te,"blue",0,HE,H.afterSetFilter);const JM=function(t){var e=t.data,n=e.length,r=this.red(),i=this.green(),o=this.blue(),a=this.alpha(),u,c;for(u=0;u<n;u+=4)c=1-a,e[u]=r*a+e[u]*c,e[u+1]=i*a+e[u+1]*c,e[u+2]=o*a+e[u+2]*c};H.addGetterSetter(Te,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});H.addGetterSetter(Te,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});H.addGetterSetter(Te,"blue",0,HE,H.afterSetFilter);H.addGetterSetter(Te,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});const eR=function(t){var e=t.data,n=e.length,r,i,o,a;for(r=0;r<n;r+=4)i=e[r+0],o=e[r+1],a=e[r+2],e[r+0]=Math.min(255,i*.393+o*.769+a*.189),e[r+1]=Math.min(255,i*.349+o*.686+a*.168),e[r+2]=Math.min(255,i*.272+o*.534+a*.131)},tR=function(t){var e=t.data,n=t.width,r=t.height,i=n*4,o=r;do{var a=(o-1)*i,u=n;do{var c=a+(u-1)*4,d=e[c],h=e[c+1],m=e[c+2];d>127&&(d=255-d),h>127&&(h=255-h),m>127&&(m=255-m),e[c]=d,e[c+1]=h,e[c+2]=m}while(--u)}while(--o)},nR=function(t){var e=this.threshold()*255,n=t.data,r=n.length,i;for(i=0;i<r;i+=1)n[i]=n[i]<e?0:255};H.addGetterSetter(Te,"threshold",.5,ke(),H.afterSetFilter);const fn=Yl.Util._assign(Yl,{Arc:na,Arrow:ts,Circle:rc,Ellipse:qa,Image:xo,Label:U3,Tag:ns,Line:ra,Path:Ht,Rect:df,RegularPolygon:rs,Ring:is,Sprite:Eo,Star:Qa,Text:gn,TextPath:Bn,Transformer:Lt,Wedge:ia,Filters:{Blur:IM,Brighten:LM,Contrast:AM,Emboss:MM,Enhance:RM,Grayscale:zM,HSL:jM,HSV:NM,Invert:DM,Kaleidoscope:FM,Mask:ZM,Noise:YM,Pixelate:KM,Posterize:qM,RGB:QM,RGBA:JM,Sepia:eR,Solarize:tR,Threshold:nR}});var yb={exports:{}};/**
 * @license React
 * react-reconciler.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 rR=function(e){var n={},r=j,i=gd,o=Object.assign;function a(l){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+l,f=1;f<arguments.length;f++)s+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+l+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=Symbol.for("react.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),L=Symbol.iterator;function A(l){return l===null||typeof l!="object"?null:(l=L&&l[L]||l["@@iterator"],typeof l=="function"?l:null)}function M(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case h:return"Fragment";case d:return"Portal";case v:return"Profiler";case m:return"StrictMode";case P:return"Suspense";case b:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case w:return(l.displayName||"Context")+".Consumer";case C:return(l._context.displayName||"Context")+".Provider";case x:var s=l.render;return l=l.displayName,l||(l=s.displayName||s.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case E:return s=l.displayName||null,s!==null?s:M(l.type)||"Memo";case k:s=l._payload,l=l._init;try{return M(l(s))}catch{}}return null}function z(l){var s=l.type;switch(l.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=s.render,l=l.displayName||l.name||"",s.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return M(s);case 8:return s===m?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function D(l){var s=l,f=l;if(l.alternate)for(;s.return;)s=s.return;else{l=s;do s=l,s.flags&4098&&(f=s.return),l=s.return;while(l)}return s.tag===3?f:null}function B(l){if(D(l)!==l)throw Error(a(188))}function X(l){var s=l.alternate;if(!s){if(s=D(l),s===null)throw Error(a(188));return s!==l?null:l}for(var f=l,g=s;;){var y=f.return;if(y===null)break;var O=y.alternate;if(O===null){if(g=y.return,g!==null){f=g;continue}break}if(y.child===O.child){for(O=y.child;O;){if(O===f)return B(y),l;if(O===g)return B(y),s;O=O.sibling}throw Error(a(188))}if(f.return!==g.return)f=y,g=O;else{for(var R=!1,Z=y.child;Z;){if(Z===f){R=!0,f=y,g=O;break}if(Z===g){R=!0,g=y,f=O;break}Z=Z.sibling}if(!R){for(Z=O.child;Z;){if(Z===f){R=!0,f=O,g=y;break}if(Z===g){R=!0,g=O,f=y;break}Z=Z.sibling}if(!R)throw Error(a(189))}}if(f.alternate!==g)throw Error(a(190))}if(f.tag!==3)throw Error(a(188));return f.stateNode.current===f?l:s}function G(l){return l=X(l),l!==null?V(l):null}function V(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var s=V(l);if(s!==null)return s;l=l.sibling}return null}function ne(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var s=ne(l);if(s!==null)return s}l=l.sibling}return null}var ve=Array.isArray,te=e.getPublicInstance,pe=e.getRootHostContext,Y=e.getChildHostContext,de=e.prepareForCommit,ce=e.resetAfterCommit,me=e.createInstance,re=e.appendInitialChild,ee=e.finalizeInitialChildren,ue=e.prepareUpdate,Ee=e.shouldSetTextContent,W=e.createTextInstance,Se=e.scheduleTimeout,ae=e.cancelTimeout,ze=e.noTimeout,Ie=e.isPrimaryRenderer,xe=e.supportsMutation,ye=e.supportsPersistence,Ge=e.supportsHydration,Ze=e.getInstanceFromNode,Ve=e.preparePortalMount,ot=e.getCurrentEventPriority,$e=e.detachDeletedInstance,dt=e.supportsMicrotasks,Ct=e.scheduleMicrotask,qe=e.supportsTestSelectors,St=e.findFiberRoot,At=e.getBoundingRect,ft=e.getTextContent,Re=e.isHiddenSubtree,Xe=e.matchAccessibilityRole,Ut=e.setFocusIfFocusable,Tn=e.setupIntersectionObserver,Ye=e.appendChild,Ae=e.appendChildToContainer,at=e.commitTextUpdate,pt=e.commitMount,Et=e.commitUpdate,_t=e.insertBefore,En=e.insertInContainerBefore,ln=e.removeChild,In=e.removeChildFromContainer,Vr=e.resetTextContent,Ji=e.hideInstance,Ti=e.hideTextInstance,rt=e.unhideInstance,lt=e.unhideTextInstance,Nt=e.clearContainer,Dt=e.cloneInstance,tn=e.createContainerChildSet,Hn=e.appendChildToContainerChildSet,bo=e.finalizeContainerChildren,eo=e.replaceContainerChildren,ds=e.cloneHiddenInstance,fs=e.cloneHiddenTextInstance,Gr=e.canHydrateInstance,ac=e.canHydrateTextInstance,Oo=e.canHydrateSuspenseInstance,Ln=e.isSuspenseInstancePending,Or=e.isSuspenseInstanceFallback,lc=e.getSuspenseInstanceFallbackErrorDetails,aa=e.registerSuspenseInstanceRetry,ps=e.getNextHydratableSibling,R1=e.getFirstHydratableChild,z1=e.getFirstHydratableChildWithinContainer,j1=e.getFirstHydratableChildWithinSuspenseInstance,N1=e.hydrateInstance,la=e.hydrateTextInstance,D1=e.hydrateSuspenseInstance,B1=e.getNextHydratableInstanceAfterSuspenseInstance,H1=e.commitHydratedContainer,F1=e.commitHydratedSuspenseInstance,$1=e.clearSuspenseBoundary,W1=e.clearSuspenseBoundaryFromContainer,sc=e.shouldDeleteUnhydratedTailInstances,V1=e.didNotMatchHydratedContainerTextInstance,hs=e.didNotMatchHydratedTextInstance,al;function ll(l){if(al===void 0)try{throw Error()}catch(f){var s=f.stack.trim().match(/\n( *(at )?)/);al=s&&s[1]||""}return"\n"+al+l}var sa=!1;function gs(l,s){if(!l||sa)return"";sa=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(_e){var g=_e}Reflect.construct(l,[],s)}else{try{s.call()}catch(_e){g=_e}l.call(s.prototype)}else{try{throw Error()}catch(_e){g=_e}l()}}catch(_e){if(_e&&g&&typeof _e.stack=="string"){for(var y=_e.stack.split("\n"),O=g.stack.split("\n"),R=y.length-1,Z=O.length-1;1<=R&&0<=Z&&y[R]!==O[Z];)Z--;for(;1<=R&&0<=Z;R--,Z--)if(y[R]!==O[Z]){if(R!==1||Z!==1)do if(R--,Z--,0>Z||y[R]!==O[Z]){var le="\n"+y[R].replace(" at new "," at ");return l.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",l.displayName)),le}while(1<=R&&0<=Z);break}}}finally{sa=!1,Error.prepareStackTrace=f}return(l=l?l.displayName||l.name:"")?ll(l):""}var G1=Object.prototype.hasOwnProperty,uc=[],ua=-1;function Ii(l){return{current:l}}function Ft(l){0>ua||(l.current=uc[ua],uc[ua]=null,ua--)}function Bt(l,s){ua++,uc[ua]=l.current,l.current=s}var to={},Fn=Ii(to),rr=Ii(!1),Po=to;function ca(l,s){var f=l.type.contextTypes;if(!f)return to;var g=l.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===s)return g.__reactInternalMemoizedMaskedChildContext;var y={},O;for(O in f)y[O]=s[O];return g&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=s,l.__reactInternalMemoizedMaskedChildContext=y),y}function ir(l){return l=l.childContextTypes,l!=null}function ms(){Ft(rr),Ft(Fn)}function Cf(l,s,f){if(Fn.current!==to)throw Error(a(168));Bt(Fn,s),Bt(rr,f)}function sl(l,s,f){var g=l.stateNode;if(s=s.childContextTypes,typeof g.getChildContext!="function")return f;g=g.getChildContext();for(var y in g)if(!(y in s))throw Error(a(108,z(l)||"Unknown",y));return o({},f,g)}function da(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||to,Po=Fn.current,Bt(Fn,l),Bt(rr,rr.current),!0}function Sf(l,s,f){var g=l.stateNode;if(!g)throw Error(a(169));f?(l=sl(l,s,Po),g.__reactInternalMemoizedMergedChildContext=l,Ft(rr),Ft(Fn),Bt(Fn,l)):Ft(rr),Bt(rr,f)}var Ur=Math.clz32?Math.clz32:X1,xf=Math.log,U1=Math.LN2;function X1(l){return l>>>=0,l===0?32:31-(xf(l)/U1|0)|0}var vs=64,ul=4194304;function cl(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function ys(l,s){var f=l.pendingLanes;if(f===0)return 0;var g=0,y=l.suspendedLanes,O=l.pingedLanes,R=f&268435455;if(R!==0){var Z=R&~y;Z!==0?g=cl(Z):(O&=R,O!==0&&(g=cl(O)))}else R=f&~y,R!==0?g=cl(R):O!==0&&(g=cl(O));if(g===0)return 0;if(s!==0&&s!==g&&!(s&y)&&(y=g&-g,O=s&-s,y>=O||y===16&&(O&4194240)!==0))return s;if(g&4&&(g|=f&16),s=l.entangledLanes,s!==0)for(l=l.entanglements,s&=g;0<s;)f=31-Ur(s),y=1<<f,g|=l[f],s&=~y;return g}function Z1(l,s){switch(l){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cc(l,s){for(var f=l.suspendedLanes,g=l.pingedLanes,y=l.expirationTimes,O=l.pendingLanes;0<O;){var R=31-Ur(O),Z=1<<R,le=y[R];le===-1?(!(Z&f)||Z&g)&&(y[R]=Z1(Z,s)):le<=s&&(l.expiredLanes|=Z),O&=~Z}}function dc(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Ef(){var l=vs;return vs<<=1,!(vs&4194240)&&(vs=64),l}function fc(l){for(var s=[],f=0;31>f;f++)s.push(l);return s}function no(l,s,f){l.pendingLanes|=s,s!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,s=31-Ur(s),l[s]=f}function pc(l,s){var f=l.pendingLanes&~s;l.pendingLanes=s,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=s,l.mutableReadLanes&=s,l.entangledLanes&=s,s=l.entanglements;var g=l.eventTimes;for(l=l.expirationTimes;0<f;){var y=31-Ur(f),O=1<<y;s[y]=0,g[y]=-1,l[y]=-1,f&=~O}}function dl(l,s){var f=l.entangledLanes|=s;for(l=l.entanglements;f;){var g=31-Ur(f),y=1<<g;y&s|l[g]&s&&(l[g]|=s),f&=~y}}var mt=0;function bf(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var ws=i.unstable_scheduleCallback,Cs=i.unstable_cancelCallback,Of=i.unstable_shouldYield,ko=i.unstable_requestPaint,nn=i.unstable_now,hc=i.unstable_ImmediatePriority,Pf=i.unstable_UserBlockingPriority,gc=i.unstable_NormalPriority,kf=i.unstable_IdlePriority,Ss=null,li=null;function _f(l){if(li&&typeof li.onCommitFiberRoot=="function")try{li.onCommitFiberRoot(Ss,l,void 0,(l.current.flags&128)===128)}catch{}}function Y1(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var N=typeof Object.is=="function"?Object.is:Y1,U=null,ie=!1,De=!1;function gt(l){U===null?U=[l]:U.push(l)}function Mt(l){ie=!0,gt(l)}function wt(){if(!De&&U!==null){De=!0;var l=0,s=mt;try{var f=U;for(mt=1;l<f.length;l++){var g=f[l];do g=g(!0);while(g!==null)}U=null,ie=!1}catch(y){throw U!==null&&(U=U.slice(l+1)),ws(hc,wt),y}finally{mt=s,De=!1}}return null}var it=[],kt=0,Kn=null,$n=0,Wn=[],or=0,Li=null,si=1,_o="";function fl(l,s){it[kt++]=$n,it[kt++]=Kn,Kn=l,$n=s}function J4(l,s,f){Wn[or++]=si,Wn[or++]=_o,Wn[or++]=Li,Li=l;var g=si;l=_o;var y=32-Ur(g)-1;g&=~(1<<y),f+=1;var O=32-Ur(s)+y;if(30<O){var R=y-y%5;O=(g&(1<<R)-1).toString(32),g>>=R,y-=R,si=1<<32-Ur(s)+y|f<<y|g,_o=O+l}else si=1<<O|f<<y|g,_o=l}function K1(l){l.return!==null&&(fl(l,1),J4(l,1,0))}function q1(l){for(;l===Kn;)Kn=it[--kt],it[kt]=null,$n=it[--kt],it[kt]=null;for(;l===Li;)Li=Wn[--or],Wn[or]=null,_o=Wn[--or],Wn[or]=null,si=Wn[--or],Wn[or]=null}var Xr=null,ui=null,rn=!1,mc=!1,Ai=null;function ey(l,s){var f=hi(5,null,null,0);f.elementType="DELETED",f.stateNode=s,f.return=l,s=l.deletions,s===null?(l.deletions=[f],l.flags|=16):s.push(f)}function ty(l,s){switch(l.tag){case 5:return s=Gr(s,l.type,l.pendingProps),s!==null?(l.stateNode=s,Xr=l,ui=R1(s),!0):!1;case 6:return s=ac(s,l.pendingProps),s!==null?(l.stateNode=s,Xr=l,ui=null,!0):!1;case 13:if(s=Oo(s),s!==null){var f=Li!==null?{id:si,overflow:_o}:null;return l.memoizedState={dehydrated:s,treeContext:f,retryLane:1073741824},f=hi(18,null,null,0),f.stateNode=s,f.return=l,l.child=f,Xr=l,ui=null,!0}return!1;default:return!1}}function Q1(l){return(l.mode&1)!==0&&(l.flags&128)===0}function J1(l){if(rn){var s=ui;if(s){var f=s;if(!ty(l,s)){if(Q1(l))throw Error(a(418));s=ps(f);var g=Xr;s&&ty(l,s)?ey(g,f):(l.flags=l.flags&-4097|2,rn=!1,Xr=l)}}else{if(Q1(l))throw Error(a(418));l.flags=l.flags&-4097|2,rn=!1,Xr=l}}}function ny(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;Xr=l}function Tf(l){if(!Ge||l!==Xr)return!1;if(!rn)return ny(l),rn=!0,!1;if(l.tag!==3&&(l.tag!==5||sc(l.type)&&!Ee(l.type,l.memoizedProps))){var s=ui;if(s){if(Q1(l))throw ry(),Error(a(418));for(;s;)ey(l,s),s=ps(s)}}if(ny(l),l.tag===13){if(!Ge)throw Error(a(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));ui=B1(l)}else ui=Xr?ps(l.stateNode):null;return!0}function ry(){for(var l=ui;l;)l=ps(l)}function xs(){Ge&&(ui=Xr=null,mc=rn=!1)}function eg(l){Ai===null?Ai=[l]:Ai.push(l)}var fk=u.ReactCurrentBatchConfig;function If(l,s){if(N(l,s))return!0;if(typeof l!="object"||l===null||typeof s!="object"||s===null)return!1;var f=Object.keys(l),g=Object.keys(s);if(f.length!==g.length)return!1;for(g=0;g<f.length;g++){var y=f[g];if(!G1.call(s,y)||!N(l[y],s[y]))return!1}return!0}function pk(l){switch(l.tag){case 5:return ll(l.type);case 16:return ll("Lazy");case 13:return ll("Suspense");case 19:return ll("SuspenseList");case 0:case 2:case 15:return l=gs(l.type,!1),l;case 11:return l=gs(l.type.render,!1),l;case 1:return l=gs(l.type,!0),l;default:return""}}function Mi(l,s){if(l&&l.defaultProps){s=o({},s),l=l.defaultProps;for(var f in l)s[f]===void 0&&(s[f]=l[f]);return s}return s}var Lf=Ii(null),Af=null,Es=null,tg=null;function ng(){tg=Es=Af=null}function iy(l,s,f){Ie?(Bt(Lf,s._currentValue),s._currentValue=f):(Bt(Lf,s._currentValue2),s._currentValue2=f)}function rg(l){var s=Lf.current;Ft(Lf),Ie?l._currentValue=s:l._currentValue2=s}function ig(l,s,f){for(;l!==null;){var g=l.alternate;if((l.childLanes&s)!==s?(l.childLanes|=s,g!==null&&(g.childLanes|=s)):g!==null&&(g.childLanes&s)!==s&&(g.childLanes|=s),l===f)break;l=l.return}}function bs(l,s){Af=l,tg=Es=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&s&&(Pr=!0),l.firstContext=null)}function ci(l){var s=Ie?l._currentValue:l._currentValue2;if(tg!==l)if(l={context:l,memoizedValue:s,next:null},Es===null){if(Af===null)throw Error(a(308));Es=l,Af.dependencies={lanes:0,firstContext:l}}else Es=Es.next=l;return s}var pl=null;function og(l){pl===null?pl=[l]:pl.push(l)}function oy(l,s,f,g){var y=s.interleaved;return y===null?(f.next=f,og(s)):(f.next=y.next,y.next=f),s.interleaved=f,ro(l,g)}function ro(l,s){l.lanes|=s;var f=l.alternate;for(f!==null&&(f.lanes|=s),f=l,l=l.return;l!==null;)l.childLanes|=s,f=l.alternate,f!==null&&(f.childLanes|=s),f=l,l=l.return;return f.tag===3?f.stateNode:null}var fa=!1;function ag(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ay(l,s){l=l.updateQueue,s.updateQueue===l&&(s.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function To(l,s){return{eventTime:l,lane:s,tag:0,payload:null,callback:null,next:null}}function pa(l,s,f){var g=l.updateQueue;if(g===null)return null;if(g=g.shared,ht&2){var y=g.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),g.pending=s,ro(l,f)}return y=g.interleaved,y===null?(s.next=s,og(g)):(s.next=y.next,y.next=s),g.interleaved=s,ro(l,f)}function Mf(l,s,f){if(s=s.updateQueue,s!==null&&(s=s.shared,(f&4194240)!==0)){var g=s.lanes;g&=l.pendingLanes,f|=g,s.lanes=f,dl(l,f)}}function ly(l,s){var f=l.updateQueue,g=l.alternate;if(g!==null&&(g=g.updateQueue,f===g)){var y=null,O=null;if(f=f.firstBaseUpdate,f!==null){do{var R={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};O===null?y=O=R:O=O.next=R,f=f.next}while(f!==null);O===null?y=O=s:O=O.next=s}else y=O=s;f={baseState:g.baseState,firstBaseUpdate:y,lastBaseUpdate:O,shared:g.shared,effects:g.effects},l.updateQueue=f;return}l=f.lastBaseUpdate,l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=s}function Rf(l,s,f,g){var y=l.updateQueue;fa=!1;var O=y.firstBaseUpdate,R=y.lastBaseUpdate,Z=y.shared.pending;if(Z!==null){y.shared.pending=null;var le=Z,_e=le.next;le.next=null,R===null?O=_e:R.next=_e,R=le;var We=l.alternate;We!==null&&(We=We.updateQueue,Z=We.lastBaseUpdate,Z!==R&&(Z===null?We.firstBaseUpdate=_e:Z.next=_e,We.lastBaseUpdate=le))}if(O!==null){var et=y.baseState;R=0,We=_e=le=null,Z=O;do{var je=Z.lane,Kt=Z.eventTime;if((g&je)===je){We!==null&&(We=We.next={eventTime:Kt,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var $t=l,Tr=Z;switch(je=s,Kt=f,Tr.tag){case 1:if($t=Tr.payload,typeof $t=="function"){et=$t.call(Kt,et,je);break e}et=$t;break e;case 3:$t.flags=$t.flags&-65537|128;case 0:if($t=Tr.payload,je=typeof $t=="function"?$t.call(Kt,et,je):$t,je==null)break e;et=o({},et,je);break e;case 2:fa=!0}}Z.callback!==null&&Z.lane!==0&&(l.flags|=64,je=y.effects,je===null?y.effects=[Z]:je.push(Z))}else Kt={eventTime:Kt,lane:je,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},We===null?(_e=We=Kt,le=et):We=We.next=Kt,R|=je;if(Z=Z.next,Z===null){if(Z=y.shared.pending,Z===null)break;je=Z,Z=je.next,je.next=null,y.lastBaseUpdate=je,y.shared.pending=null}}while(!0);if(We===null&&(le=et),y.baseState=le,y.firstBaseUpdate=_e,y.lastBaseUpdate=We,s=y.shared.interleaved,s!==null){y=s;do R|=y.lane,y=y.next;while(y!==s)}else O===null&&(y.shared.lanes=0);gl|=R,l.lanes=R,l.memoizedState=et}}function sy(l,s,f){if(l=s.effects,s.effects=null,l!==null)for(s=0;s<l.length;s++){var g=l[s],y=g.callback;if(y!==null){if(g.callback=null,g=f,typeof y!="function")throw Error(a(191,y));y.call(g)}}}var uy=new r.Component().refs;function lg(l,s,f,g){s=l.memoizedState,f=f(g,s),f=f==null?s:o({},s,f),l.memoizedState=f,l.lanes===0&&(l.updateQueue.baseState=f)}var zf={isMounted:function(l){return(l=l._reactInternals)?D(l)===l:!1},enqueueSetState:function(l,s,f){l=l._reactInternals;var g=ur(),y=ma(l),O=To(g,y);O.payload=s,f!=null&&(O.callback=f),s=pa(l,O,y),s!==null&&(pi(s,l,y,g),Mf(s,l,y))},enqueueReplaceState:function(l,s,f){l=l._reactInternals;var g=ur(),y=ma(l),O=To(g,y);O.tag=1,O.payload=s,f!=null&&(O.callback=f),s=pa(l,O,y),s!==null&&(pi(s,l,y,g),Mf(s,l,y))},enqueueForceUpdate:function(l,s){l=l._reactInternals;var f=ur(),g=ma(l),y=To(f,g);y.tag=2,s!=null&&(y.callback=s),s=pa(l,y,g),s!==null&&(pi(s,l,g,f),Mf(s,l,g))}};function cy(l,s,f,g,y,O,R){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(g,O,R):s.prototype&&s.prototype.isPureReactComponent?!If(f,g)||!If(y,O):!0}function dy(l,s,f){var g=!1,y=to,O=s.contextType;return typeof O=="object"&&O!==null?O=ci(O):(y=ir(s)?Po:Fn.current,g=s.contextTypes,O=(g=g!=null)?ca(l,y):to),s=new s(f,O),l.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=zf,l.stateNode=s,s._reactInternals=l,g&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=y,l.__reactInternalMemoizedMaskedChildContext=O),s}function fy(l,s,f,g){l=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(f,g),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(f,g),s.state!==l&&zf.enqueueReplaceState(s,s.state,null)}function sg(l,s,f,g){var y=l.stateNode;y.props=f,y.state=l.memoizedState,y.refs=uy,ag(l);var O=s.contextType;typeof O=="object"&&O!==null?y.context=ci(O):(O=ir(s)?Po:Fn.current,y.context=ca(l,O)),y.state=l.memoizedState,O=s.getDerivedStateFromProps,typeof O=="function"&&(lg(l,s,O,f),y.state=l.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(s=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),s!==y.state&&zf.enqueueReplaceState(y,y.state,null),Rf(l,f,y,g),y.state=l.memoizedState),typeof y.componentDidMount=="function"&&(l.flags|=4194308)}function vc(l,s,f){if(l=f.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(a(309));var g=f.stateNode}if(!g)throw Error(a(147,l));var y=g,O=""+l;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===O?s.ref:(s=function(R){var Z=y.refs;Z===uy&&(Z=y.refs={}),R===null?delete Z[O]:Z[O]=R},s._stringRef=O,s)}if(typeof l!="string")throw Error(a(284));if(!f._owner)throw Error(a(290,l))}return l}function jf(l,s){throw l=Object.prototype.toString.call(s),Error(a(31,l==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":l))}function py(l){var s=l._init;return s(l._payload)}function hy(l){function s(oe,K){if(l){var fe=oe.deletions;fe===null?(oe.deletions=[K],oe.flags|=16):fe.push(K)}}function f(oe,K){if(!l)return null;for(;K!==null;)s(oe,K),K=K.sibling;return null}function g(oe,K){for(oe=new Map;K!==null;)K.key!==null?oe.set(K.key,K):oe.set(K.index,K),K=K.sibling;return oe}function y(oe,K){return oe=ya(oe,K),oe.index=0,oe.sibling=null,oe}function O(oe,K,fe){return oe.index=fe,l?(fe=oe.alternate,fe!==null?(fe=fe.index,fe<K?(oe.flags|=2,K):fe):(oe.flags|=2,K)):(oe.flags|=1048576,K)}function R(oe){return l&&oe.alternate===null&&(oe.flags|=2),oe}function Z(oe,K,fe,Ne){return K===null||K.tag!==6?(K=Yg(fe,oe.mode,Ne),K.return=oe,K):(K=y(K,fe),K.return=oe,K)}function le(oe,K,fe,Ne){var Ke=fe.type;return Ke===h?We(oe,K,fe.props.children,Ne,fe.key):K!==null&&(K.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===k&&py(Ke)===K.type)?(Ne=y(K,fe.props),Ne.ref=vc(oe,K,fe),Ne.return=oe,Ne):(Ne=sp(fe.type,fe.key,fe.props,null,oe.mode,Ne),Ne.ref=vc(oe,K,fe),Ne.return=oe,Ne)}function _e(oe,K,fe,Ne){return K===null||K.tag!==4||K.stateNode.containerInfo!==fe.containerInfo||K.stateNode.implementation!==fe.implementation?(K=Kg(fe,oe.mode,Ne),K.return=oe,K):(K=y(K,fe.children||[]),K.return=oe,K)}function We(oe,K,fe,Ne,Ke){return K===null||K.tag!==7?(K=wl(fe,oe.mode,Ne,Ke),K.return=oe,K):(K=y(K,fe),K.return=oe,K)}function et(oe,K,fe){if(typeof K=="string"&&K!==""||typeof K=="number")return K=Yg(""+K,oe.mode,fe),K.return=oe,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case c:return fe=sp(K.type,K.key,K.props,null,oe.mode,fe),fe.ref=vc(oe,null,K),fe.return=oe,fe;case d:return K=Kg(K,oe.mode,fe),K.return=oe,K;case k:var Ne=K._init;return et(oe,Ne(K._payload),fe)}if(ve(K)||A(K))return K=wl(K,oe.mode,fe,null),K.return=oe,K;jf(oe,K)}return null}function je(oe,K,fe,Ne){var Ke=K!==null?K.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number")return Ke!==null?null:Z(oe,K,""+fe,Ne);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case c:return fe.key===Ke?le(oe,K,fe,Ne):null;case d:return fe.key===Ke?_e(oe,K,fe,Ne):null;case k:return Ke=fe._init,je(oe,K,Ke(fe._payload),Ne)}if(ve(fe)||A(fe))return Ke!==null?null:We(oe,K,fe,Ne,null);jf(oe,fe)}return null}function Kt(oe,K,fe,Ne,Ke){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number")return oe=oe.get(fe)||null,Z(K,oe,""+Ne,Ke);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case c:return oe=oe.get(Ne.key===null?fe:Ne.key)||null,le(K,oe,Ne,Ke);case d:return oe=oe.get(Ne.key===null?fe:Ne.key)||null,_e(K,oe,Ne,Ke);case k:var st=Ne._init;return Kt(oe,K,fe,st(Ne._payload),Ke)}if(ve(Ne)||A(Ne))return oe=oe.get(fe)||null,We(K,oe,Ne,Ke,null);jf(K,Ne)}return null}function $t(oe,K,fe,Ne){for(var Ke=null,st=null,tt=K,bt=K=0,Un=null;tt!==null&&bt<fe.length;bt++){tt.index>bt?(Un=tt,tt=null):Un=tt.sibling;var Ot=je(oe,tt,fe[bt],Ne);if(Ot===null){tt===null&&(tt=Un);break}l&&tt&&Ot.alternate===null&&s(oe,tt),K=O(Ot,K,bt),st===null?Ke=Ot:st.sibling=Ot,st=Ot,tt=Un}if(bt===fe.length)return f(oe,tt),rn&&fl(oe,bt),Ke;if(tt===null){for(;bt<fe.length;bt++)tt=et(oe,fe[bt],Ne),tt!==null&&(K=O(tt,K,bt),st===null?Ke=tt:st.sibling=tt,st=tt);return rn&&fl(oe,bt),Ke}for(tt=g(oe,tt);bt<fe.length;bt++)Un=Kt(tt,oe,bt,fe[bt],Ne),Un!==null&&(l&&Un.alternate!==null&&tt.delete(Un.key===null?bt:Un.key),K=O(Un,K,bt),st===null?Ke=Un:st.sibling=Un,st=Un);return l&&tt.forEach(function(wa){return s(oe,wa)}),rn&&fl(oe,bt),Ke}function Tr(oe,K,fe,Ne){var Ke=A(fe);if(typeof Ke!="function")throw Error(a(150));if(fe=Ke.call(fe),fe==null)throw Error(a(151));for(var st=Ke=null,tt=K,bt=K=0,Un=null,Ot=fe.next();tt!==null&&!Ot.done;bt++,Ot=fe.next()){tt.index>bt?(Un=tt,tt=null):Un=tt.sibling;var wa=je(oe,tt,Ot.value,Ne);if(wa===null){tt===null&&(tt=Un);break}l&&tt&&wa.alternate===null&&s(oe,tt),K=O(wa,K,bt),st===null?Ke=wa:st.sibling=wa,st=wa,tt=Un}if(Ot.done)return f(oe,tt),rn&&fl(oe,bt),Ke;if(tt===null){for(;!Ot.done;bt++,Ot=fe.next())Ot=et(oe,Ot.value,Ne),Ot!==null&&(K=O(Ot,K,bt),st===null?Ke=Ot:st.sibling=Ot,st=Ot);return rn&&fl(oe,bt),Ke}for(tt=g(oe,tt);!Ot.done;bt++,Ot=fe.next())Ot=Kt(tt,oe,bt,Ot.value,Ne),Ot!==null&&(l&&Ot.alternate!==null&&tt.delete(Ot.key===null?bt:Ot.key),K=O(Ot,K,bt),st===null?Ke=Ot:st.sibling=Ot,st=Ot);return l&&tt.forEach(function(Wk){return s(oe,Wk)}),rn&&fl(oe,bt),Ke}function Ao(oe,K,fe,Ne){if(typeof fe=="object"&&fe!==null&&fe.type===h&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case c:e:{for(var Ke=fe.key,st=K;st!==null;){if(st.key===Ke){if(Ke=fe.type,Ke===h){if(st.tag===7){f(oe,st.sibling),K=y(st,fe.props.children),K.return=oe,oe=K;break e}}else if(st.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===k&&py(Ke)===st.type){f(oe,st.sibling),K=y(st,fe.props),K.ref=vc(oe,st,fe),K.return=oe,oe=K;break e}f(oe,st);break}else s(oe,st);st=st.sibling}fe.type===h?(K=wl(fe.props.children,oe.mode,Ne,fe.key),K.return=oe,oe=K):(Ne=sp(fe.type,fe.key,fe.props,null,oe.mode,Ne),Ne.ref=vc(oe,K,fe),Ne.return=oe,oe=Ne)}return R(oe);case d:e:{for(st=fe.key;K!==null;){if(K.key===st)if(K.tag===4&&K.stateNode.containerInfo===fe.containerInfo&&K.stateNode.implementation===fe.implementation){f(oe,K.sibling),K=y(K,fe.children||[]),K.return=oe,oe=K;break e}else{f(oe,K);break}else s(oe,K);K=K.sibling}K=Kg(fe,oe.mode,Ne),K.return=oe,oe=K}return R(oe);case k:return st=fe._init,Ao(oe,K,st(fe._payload),Ne)}if(ve(fe))return $t(oe,K,fe,Ne);if(A(fe))return Tr(oe,K,fe,Ne);jf(oe,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"?(fe=""+fe,K!==null&&K.tag===6?(f(oe,K.sibling),K=y(K,fe),K.return=oe,oe=K):(f(oe,K),K=Yg(fe,oe.mode,Ne),K.return=oe,oe=K),R(oe)):f(oe,K)}return Ao}var Os=hy(!0),gy=hy(!1),yc={},di=Ii(yc),wc=Ii(yc),Ps=Ii(yc);function io(l){if(l===yc)throw Error(a(174));return l}function ug(l,s){Bt(Ps,s),Bt(wc,l),Bt(di,yc),l=pe(s),Ft(di),Bt(di,l)}function ks(){Ft(di),Ft(wc),Ft(Ps)}function my(l){var s=io(Ps.current),f=io(di.current);s=Y(f,l.type,s),f!==s&&(Bt(wc,l),Bt(di,s))}function cg(l){wc.current===l&&(Ft(di),Ft(wc))}var sn=Ii(0);function Nf(l){for(var s=l;s!==null;){if(s.tag===13){var f=s.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||Ln(f)||Or(f)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break;for(;s.sibling===null;){if(s.return===null||s.return===l)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var dg=[];function fg(){for(var l=0;l<dg.length;l++){var s=dg[l];Ie?s._workInProgressVersionPrimary=null:s._workInProgressVersionSecondary=null}dg.length=0}var Df=u.ReactCurrentDispatcher,pg=u.ReactCurrentBatchConfig,hl=0,un=null,An=null,Vn=null,Bf=!1,Cc=!1,Sc=0,hk=0;function ar(){throw Error(a(321))}function hg(l,s){if(s===null)return!1;for(var f=0;f<s.length&&f<l.length;f++)if(!N(l[f],s[f]))return!1;return!0}function gg(l,s,f,g,y,O){if(hl=O,un=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Df.current=l===null||l.memoizedState===null?yk:wk,l=f(g,y),Cc){O=0;do{if(Cc=!1,Sc=0,25<=O)throw Error(a(301));O+=1,Vn=An=null,s.updateQueue=null,Df.current=Ck,l=f(g,y)}while(Cc)}if(Df.current=$f,s=An!==null&&An.next!==null,hl=0,Vn=An=un=null,Bf=!1,s)throw Error(a(300));return l}function mg(){var l=Sc!==0;return Sc=0,l}function oo(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vn===null?un.memoizedState=Vn=l:Vn=Vn.next=l,Vn}function fi(){if(An===null){var l=un.alternate;l=l!==null?l.memoizedState:null}else l=An.next;var s=Vn===null?un.memoizedState:Vn.next;if(s!==null)Vn=s,An=l;else{if(l===null)throw Error(a(310));An=l,l={memoizedState:An.memoizedState,baseState:An.baseState,baseQueue:An.baseQueue,queue:An.queue,next:null},Vn===null?un.memoizedState=Vn=l:Vn=Vn.next=l}return Vn}function xc(l,s){return typeof s=="function"?s(l):s}function vg(l){var s=fi(),f=s.queue;if(f===null)throw Error(a(311));f.lastRenderedReducer=l;var g=An,y=g.baseQueue,O=f.pending;if(O!==null){if(y!==null){var R=y.next;y.next=O.next,O.next=R}g.baseQueue=y=O,f.pending=null}if(y!==null){O=y.next,g=g.baseState;var Z=R=null,le=null,_e=O;do{var We=_e.lane;if((hl&We)===We)le!==null&&(le=le.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),g=_e.hasEagerState?_e.eagerState:l(g,_e.action);else{var et={lane:We,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};le===null?(Z=le=et,R=g):le=le.next=et,un.lanes|=We,gl|=We}_e=_e.next}while(_e!==null&&_e!==O);le===null?R=g:le.next=Z,N(g,s.memoizedState)||(Pr=!0),s.memoizedState=g,s.baseState=R,s.baseQueue=le,f.lastRenderedState=g}if(l=f.interleaved,l!==null){y=l;do O=y.lane,un.lanes|=O,gl|=O,y=y.next;while(y!==l)}else y===null&&(f.lanes=0);return[s.memoizedState,f.dispatch]}function yg(l){var s=fi(),f=s.queue;if(f===null)throw Error(a(311));f.lastRenderedReducer=l;var g=f.dispatch,y=f.pending,O=s.memoizedState;if(y!==null){f.pending=null;var R=y=y.next;do O=l(O,R.action),R=R.next;while(R!==y);N(O,s.memoizedState)||(Pr=!0),s.memoizedState=O,s.baseQueue===null&&(s.baseState=O),f.lastRenderedState=O}return[O,g]}function vy(){}function yy(l,s){var f=un,g=fi(),y=s(),O=!N(g.memoizedState,y);if(O&&(g.memoizedState=y,Pr=!0),g=g.queue,wg(Sy.bind(null,f,g,l),[l]),g.getSnapshot!==s||O||Vn!==null&&Vn.memoizedState.tag&1){if(f.flags|=2048,Ec(9,Cy.bind(null,f,g,y,s),void 0,null),Gn===null)throw Error(a(349));hl&30||wy(f,s,y)}return y}function wy(l,s,f){l.flags|=16384,l={getSnapshot:s,value:f},s=un.updateQueue,s===null?(s={lastEffect:null,stores:null},un.updateQueue=s,s.stores=[l]):(f=s.stores,f===null?s.stores=[l]:f.push(l))}function Cy(l,s,f,g){s.value=f,s.getSnapshot=g,xy(s)&&Ey(l)}function Sy(l,s,f){return f(function(){xy(s)&&Ey(l)})}function xy(l){var s=l.getSnapshot;l=l.value;try{var f=s();return!N(l,f)}catch{return!0}}function Ey(l){var s=ro(l,1);s!==null&&pi(s,l,1,-1)}function by(l){var s=oo();return typeof l=="function"&&(l=l()),s.memoizedState=s.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xc,lastRenderedState:l},s.queue=l,l=l.dispatch=vk.bind(null,un,l),[s.memoizedState,l]}function Ec(l,s,f,g){return l={tag:l,create:s,destroy:f,deps:g,next:null},s=un.updateQueue,s===null?(s={lastEffect:null,stores:null},un.updateQueue=s,s.lastEffect=l.next=l):(f=s.lastEffect,f===null?s.lastEffect=l.next=l:(g=f.next,f.next=l,l.next=g,s.lastEffect=l)),l}function Oy(){return fi().memoizedState}function Hf(l,s,f,g){var y=oo();un.flags|=l,y.memoizedState=Ec(1|s,f,void 0,g===void 0?null:g)}function Ff(l,s,f,g){var y=fi();g=g===void 0?null:g;var O=void 0;if(An!==null){var R=An.memoizedState;if(O=R.destroy,g!==null&&hg(g,R.deps)){y.memoizedState=Ec(s,f,O,g);return}}un.flags|=l,y.memoizedState=Ec(1|s,f,O,g)}function Py(l,s){return Hf(8390656,8,l,s)}function wg(l,s){return Ff(2048,8,l,s)}function ky(l,s){return Ff(4,2,l,s)}function _y(l,s){return Ff(4,4,l,s)}function Ty(l,s){if(typeof s=="function")return l=l(),s(l),function(){s(null)};if(s!=null)return l=l(),s.current=l,function(){s.current=null}}function Iy(l,s,f){return f=f!=null?f.concat([l]):null,Ff(4,4,Ty.bind(null,s,l),f)}function Cg(){}function Ly(l,s){var f=fi();s=s===void 0?null:s;var g=f.memoizedState;return g!==null&&s!==null&&hg(s,g[1])?g[0]:(f.memoizedState=[l,s],l)}function Ay(l,s){var f=fi();s=s===void 0?null:s;var g=f.memoizedState;return g!==null&&s!==null&&hg(s,g[1])?g[0]:(l=l(),f.memoizedState=[l,s],l)}function My(l,s,f){return hl&21?(N(f,s)||(f=Ef(),un.lanes|=f,gl|=f,l.baseState=!0),s):(l.baseState&&(l.baseState=!1,Pr=!0),l.memoizedState=f)}function gk(l,s){var f=mt;mt=f!==0&&4>f?f:4,l(!0);var g=pg.transition;pg.transition={};try{l(!1),s()}finally{mt=f,pg.transition=g}}function Ry(){return fi().memoizedState}function mk(l,s,f){var g=ma(l);if(f={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null},zy(l))jy(s,f);else if(f=oy(l,s,f,g),f!==null){var y=ur();pi(f,l,g,y),Ny(f,s,g)}}function vk(l,s,f){var g=ma(l),y={lane:g,action:f,hasEagerState:!1,eagerState:null,next:null};if(zy(l))jy(s,y);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=s.lastRenderedReducer,O!==null))try{var R=s.lastRenderedState,Z=O(R,f);if(y.hasEagerState=!0,y.eagerState=Z,N(Z,R)){var le=s.interleaved;le===null?(y.next=y,og(s)):(y.next=le.next,le.next=y),s.interleaved=y;return}}catch{}finally{}f=oy(l,s,y,g),f!==null&&(y=ur(),pi(f,l,g,y),Ny(f,s,g))}}function zy(l){var s=l.alternate;return l===un||s!==null&&s===un}function jy(l,s){Cc=Bf=!0;var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}function Ny(l,s,f){if(f&4194240){var g=s.lanes;g&=l.pendingLanes,f|=g,s.lanes=f,dl(l,f)}}var $f={readContext:ci,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},yk={readContext:ci,useCallback:function(l,s){return oo().memoizedState=[l,s===void 0?null:s],l},useContext:ci,useEffect:Py,useImperativeHandle:function(l,s,f){return f=f!=null?f.concat([l]):null,Hf(4194308,4,Ty.bind(null,s,l),f)},useLayoutEffect:function(l,s){return Hf(4194308,4,l,s)},useInsertionEffect:function(l,s){return Hf(4,2,l,s)},useMemo:function(l,s){var f=oo();return s=s===void 0?null:s,l=l(),f.memoizedState=[l,s],l},useReducer:function(l,s,f){var g=oo();return s=f!==void 0?f(s):s,g.memoizedState=g.baseState=s,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:s},g.queue=l,l=l.dispatch=mk.bind(null,un,l),[g.memoizedState,l]},useRef:function(l){var s=oo();return l={current:l},s.memoizedState=l},useState:by,useDebugValue:Cg,useDeferredValue:function(l){return oo().memoizedState=l},useTransition:function(){var l=by(!1),s=l[0];return l=gk.bind(null,l[1]),oo().memoizedState=l,[s,l]},useMutableSource:function(){},useSyncExternalStore:function(l,s,f){var g=un,y=oo();if(rn){if(f===void 0)throw Error(a(407));f=f()}else{if(f=s(),Gn===null)throw Error(a(349));hl&30||wy(g,s,f)}y.memoizedState=f;var O={value:f,getSnapshot:s};return y.queue=O,Py(Sy.bind(null,g,O,l),[l]),g.flags|=2048,Ec(9,Cy.bind(null,g,O,f,s),void 0,null),f},useId:function(){var l=oo(),s=Gn.identifierPrefix;if(rn){var f=_o,g=si;f=(g&~(1<<32-Ur(g)-1)).toString(32)+f,s=":"+s+"R"+f,f=Sc++,0<f&&(s+="H"+f.toString(32)),s+=":"}else f=hk++,s=":"+s+"r"+f.toString(32)+":";return l.memoizedState=s},unstable_isNewReconciler:!1},wk={readContext:ci,useCallback:Ly,useContext:ci,useEffect:wg,useImperativeHandle:Iy,useInsertionEffect:ky,useLayoutEffect:_y,useMemo:Ay,useReducer:vg,useRef:Oy,useState:function(){return vg(xc)},useDebugValue:Cg,useDeferredValue:function(l){var s=fi();return My(s,An.memoizedState,l)},useTransition:function(){var l=vg(xc)[0],s=fi().memoizedState;return[l,s]},useMutableSource:vy,useSyncExternalStore:yy,useId:Ry,unstable_isNewReconciler:!1},Ck={readContext:ci,useCallback:Ly,useContext:ci,useEffect:wg,useImperativeHandle:Iy,useInsertionEffect:ky,useLayoutEffect:_y,useMemo:Ay,useReducer:yg,useRef:Oy,useState:function(){return yg(xc)},useDebugValue:Cg,useDeferredValue:function(l){var s=fi();return An===null?s.memoizedState=l:My(s,An.memoizedState,l)},useTransition:function(){var l=yg(xc)[0],s=fi().memoizedState;return[l,s]},useMutableSource:vy,useSyncExternalStore:yy,useId:Ry,unstable_isNewReconciler:!1};function _s(l,s){try{var f="",g=s;do f+=pk(g),g=g.return;while(g);var y=f}catch(O){y="\nError generating stack: "+O.message+"\n"+O.stack}return{value:l,source:s,stack:y,digest:null}}function Sg(l,s,f){return{value:l,source:null,stack:f!=null?f:null,digest:s!=null?s:null}}function xg(l,s){try{console.error(s.value)}catch(f){setTimeout(function(){throw f})}}var Sk=typeof WeakMap=="function"?WeakMap:Map;function Dy(l,s,f){f=To(-1,f),f.tag=3,f.payload={element:null};var g=s.value;return f.callback=function(){np||(np=!0,$g=g),xg(l,s)},f}function By(l,s,f){f=To(-1,f),f.tag=3;var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var y=s.value;f.payload=function(){return g(y)},f.callback=function(){xg(l,s)}}var O=l.stateNode;return O!==null&&typeof O.componentDidCatch=="function"&&(f.callback=function(){xg(l,s),typeof g!="function"&&(ha===null?ha=new Set([this]):ha.add(this));var R=s.stack;this.componentDidCatch(s.value,{componentStack:R!==null?R:""})}),f}function Hy(l,s,f){var g=l.pingCache;if(g===null){g=l.pingCache=new Sk;var y=new Set;g.set(s,y)}else y=g.get(s),y===void 0&&(y=new Set,g.set(s,y));y.has(f)||(y.add(f),l=zk.bind(null,l,s,f),s.then(l,l))}function Fy(l){do{var s;if((s=l.tag===13)&&(s=l.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return l;l=l.return}while(l!==null);return null}function $y(l,s,f,g,y){return l.mode&1?(l.flags|=65536,l.lanes=y,l):(l===s?l.flags|=65536:(l.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(s=To(-1,1),s.tag=2,pa(f,s,1))),f.lanes|=1),l)}var xk=u.ReactCurrentOwner,Pr=!1;function yr(l,s,f,g){s.child=l===null?gy(s,null,f,g):Os(s,l.child,f,g)}function Wy(l,s,f,g,y){f=f.render;var O=s.ref;return bs(s,y),g=gg(l,s,f,g,O,y),f=mg(),l!==null&&!Pr?(s.updateQueue=l.updateQueue,s.flags&=-2053,l.lanes&=~y,Io(l,s,y)):(rn&&f&&K1(s),s.flags|=1,yr(l,s,g,y),s.child)}function Vy(l,s,f,g,y){if(l===null){var O=f.type;return typeof O=="function"&&!Zg(O)&&O.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(s.tag=15,s.type=O,Gy(l,s,O,g,y)):(l=sp(f.type,null,g,s,s.mode,y),l.ref=s.ref,l.return=s,s.child=l)}if(O=l.child,!(l.lanes&y)){var R=O.memoizedProps;if(f=f.compare,f=f!==null?f:If,f(R,g)&&l.ref===s.ref)return Io(l,s,y)}return s.flags|=1,l=ya(O,g),l.ref=s.ref,l.return=s,s.child=l}function Gy(l,s,f,g,y){if(l!==null){var O=l.memoizedProps;if(If(O,g)&&l.ref===s.ref)if(Pr=!1,s.pendingProps=g=O,(l.lanes&y)!==0)l.flags&131072&&(Pr=!0);else return s.lanes=l.lanes,Io(l,s,y)}return Eg(l,s,f,g,y)}function Uy(l,s,f){var g=s.pendingProps,y=g.children,O=l!==null?l.memoizedState:null;if(g.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bt(Is,Zr),Zr|=f;else{if(!(f&1073741824))return l=O!==null?O.baseLanes|f:f,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:l,cachePool:null,transitions:null},s.updateQueue=null,Bt(Is,Zr),Zr|=l,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=O!==null?O.baseLanes:f,Bt(Is,Zr),Zr|=g}else O!==null?(g=O.baseLanes|f,s.memoizedState=null):g=f,Bt(Is,Zr),Zr|=g;return yr(l,s,y,f),s.child}function Xy(l,s){var f=s.ref;(l===null&&f!==null||l!==null&&l.ref!==f)&&(s.flags|=512,s.flags|=2097152)}function Eg(l,s,f,g,y){var O=ir(f)?Po:Fn.current;return O=ca(s,O),bs(s,y),f=gg(l,s,f,g,O,y),g=mg(),l!==null&&!Pr?(s.updateQueue=l.updateQueue,s.flags&=-2053,l.lanes&=~y,Io(l,s,y)):(rn&&g&&K1(s),s.flags|=1,yr(l,s,f,y),s.child)}function Zy(l,s,f,g,y){if(ir(f)){var O=!0;da(s)}else O=!1;if(bs(s,y),s.stateNode===null)Vf(l,s),dy(s,f,g),sg(s,f,g,y),g=!0;else if(l===null){var R=s.stateNode,Z=s.memoizedProps;R.props=Z;var le=R.context,_e=f.contextType;typeof _e=="object"&&_e!==null?_e=ci(_e):(_e=ir(f)?Po:Fn.current,_e=ca(s,_e));var We=f.getDerivedStateFromProps,et=typeof We=="function"||typeof R.getSnapshotBeforeUpdate=="function";et||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(Z!==g||le!==_e)&&fy(s,R,g,_e),fa=!1;var je=s.memoizedState;R.state=je,Rf(s,g,R,y),le=s.memoizedState,Z!==g||je!==le||rr.current||fa?(typeof We=="function"&&(lg(s,f,We,g),le=s.memoizedState),(Z=fa||cy(s,f,Z,g,je,le,_e))?(et||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(s.flags|=4194308)):(typeof R.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=g,s.memoizedState=le),R.props=g,R.state=le,R.context=_e,g=Z):(typeof R.componentDidMount=="function"&&(s.flags|=4194308),g=!1)}else{R=s.stateNode,ay(l,s),Z=s.memoizedProps,_e=s.type===s.elementType?Z:Mi(s.type,Z),R.props=_e,et=s.pendingProps,je=R.context,le=f.contextType,typeof le=="object"&&le!==null?le=ci(le):(le=ir(f)?Po:Fn.current,le=ca(s,le));var Kt=f.getDerivedStateFromProps;(We=typeof Kt=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(Z!==et||je!==le)&&fy(s,R,g,le),fa=!1,je=s.memoizedState,R.state=je,Rf(s,g,R,y);var $t=s.memoizedState;Z!==et||je!==$t||rr.current||fa?(typeof Kt=="function"&&(lg(s,f,Kt,g),$t=s.memoizedState),(_e=fa||cy(s,f,_e,g,je,$t,le)||!1)?(We||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(g,$t,le),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(g,$t,le)),typeof R.componentDidUpdate=="function"&&(s.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof R.componentDidUpdate!="function"||Z===l.memoizedProps&&je===l.memoizedState||(s.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||Z===l.memoizedProps&&je===l.memoizedState||(s.flags|=1024),s.memoizedProps=g,s.memoizedState=$t),R.props=g,R.state=$t,R.context=le,g=_e):(typeof R.componentDidUpdate!="function"||Z===l.memoizedProps&&je===l.memoizedState||(s.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||Z===l.memoizedProps&&je===l.memoizedState||(s.flags|=1024),g=!1)}return bg(l,s,f,g,O,y)}function bg(l,s,f,g,y,O){Xy(l,s);var R=(s.flags&128)!==0;if(!g&&!R)return y&&Sf(s,f,!1),Io(l,s,O);g=s.stateNode,xk.current=s;var Z=R&&typeof f.getDerivedStateFromError!="function"?null:g.render();return s.flags|=1,l!==null&&R?(s.child=Os(s,l.child,null,O),s.child=Os(s,null,Z,O)):yr(l,s,Z,O),s.memoizedState=g.state,y&&Sf(s,f,!0),s.child}function Yy(l){var s=l.stateNode;s.pendingContext?Cf(l,s.pendingContext,s.pendingContext!==s.context):s.context&&Cf(l,s.context,!1),ug(l,s.containerInfo)}function Ky(l,s,f,g,y){return xs(),eg(y),s.flags|=256,yr(l,s,f,g),s.child}var Og={dehydrated:null,treeContext:null,retryLane:0};function Pg(l){return{baseLanes:l,cachePool:null,transitions:null}}function qy(l,s,f){var g=s.pendingProps,y=sn.current,O=!1,R=(s.flags&128)!==0,Z;if((Z=R)||(Z=l!==null&&l.memoizedState===null?!1:(y&2)!==0),Z?(O=!0,s.flags&=-129):(l===null||l.memoizedState!==null)&&(y|=1),Bt(sn,y&1),l===null)return J1(s),l=s.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(s.mode&1?Or(l)?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(R=g.children,l=g.fallback,O?(g=s.mode,O=s.child,R={mode:"hidden",children:R},!(g&1)&&O!==null?(O.childLanes=0,O.pendingProps=R):O=up(R,g,0,null),l=wl(l,g,f,null),O.return=s,l.return=s,O.sibling=l,s.child=O,s.child.memoizedState=Pg(f),s.memoizedState=Og,l):kg(s,R));if(y=l.memoizedState,y!==null&&(Z=y.dehydrated,Z!==null))return Ek(l,s,R,g,Z,y,f);if(O){O=g.fallback,R=s.mode,y=l.child,Z=y.sibling;var le={mode:"hidden",children:g.children};return!(R&1)&&s.child!==y?(g=s.child,g.childLanes=0,g.pendingProps=le,s.deletions=null):(g=ya(y,le),g.subtreeFlags=y.subtreeFlags&14680064),Z!==null?O=ya(Z,O):(O=wl(O,R,f,null),O.flags|=2),O.return=s,g.return=s,g.sibling=O,s.child=g,g=O,O=s.child,R=l.child.memoizedState,R=R===null?Pg(f):{baseLanes:R.baseLanes|f,cachePool:null,transitions:R.transitions},O.memoizedState=R,O.childLanes=l.childLanes&~f,s.memoizedState=Og,g}return O=l.child,l=O.sibling,g=ya(O,{mode:"visible",children:g.children}),!(s.mode&1)&&(g.lanes=f),g.return=s,g.sibling=null,l!==null&&(f=s.deletions,f===null?(s.deletions=[l],s.flags|=16):f.push(l)),s.child=g,s.memoizedState=null,g}function kg(l,s){return s=up({mode:"visible",children:s},l.mode,0,null),s.return=l,l.child=s}function Wf(l,s,f,g){return g!==null&&eg(g),Os(s,l.child,null,f),l=kg(s,s.pendingProps.children),l.flags|=2,s.memoizedState=null,l}function Ek(l,s,f,g,y,O,R){if(f)return s.flags&256?(s.flags&=-257,g=Sg(Error(a(422))),Wf(l,s,R,g)):s.memoizedState!==null?(s.child=l.child,s.flags|=128,null):(O=g.fallback,y=s.mode,g=up({mode:"visible",children:g.children},y,0,null),O=wl(O,y,R,null),O.flags|=2,g.return=s,O.return=s,g.sibling=O,s.child=g,s.mode&1&&Os(s,l.child,null,R),s.child.memoizedState=Pg(R),s.memoizedState=Og,O);if(!(s.mode&1))return Wf(l,s,R,null);if(Or(y))return g=lc(y).digest,O=Error(a(419)),g=Sg(O,g,void 0),Wf(l,s,R,g);if(f=(R&l.childLanes)!==0,Pr||f){if(g=Gn,g!==null){switch(R&-R){case 4:y=2;break;case 16:y=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:y=32;break;case 536870912:y=268435456;break;default:y=0}y=y&(g.suspendedLanes|R)?0:y,y!==0&&y!==O.retryLane&&(O.retryLane=y,ro(l,y),pi(g,l,y,-1))}return Xg(),g=Sg(Error(a(421))),Wf(l,s,R,g)}return Ln(y)?(s.flags|=128,s.child=l.child,s=jk.bind(null,l),aa(y,s),null):(l=O.treeContext,Ge&&(ui=j1(y),Xr=s,rn=!0,Ai=null,mc=!1,l!==null&&(Wn[or++]=si,Wn[or++]=_o,Wn[or++]=Li,si=l.id,_o=l.overflow,Li=s)),s=kg(s,g.children),s.flags|=4096,s)}function Qy(l,s,f){l.lanes|=s;var g=l.alternate;g!==null&&(g.lanes|=s),ig(l.return,s,f)}function _g(l,s,f,g,y){var O=l.memoizedState;O===null?l.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:g,tail:f,tailMode:y}:(O.isBackwards=s,O.rendering=null,O.renderingStartTime=0,O.last=g,O.tail=f,O.tailMode=y)}function Jy(l,s,f){var g=s.pendingProps,y=g.revealOrder,O=g.tail;if(yr(l,s,g.children,f),g=sn.current,g&2)g=g&1|2,s.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=s.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Qy(l,f,s);else if(l.tag===19)Qy(l,f,s);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}g&=1}if(Bt(sn,g),!(s.mode&1))s.memoizedState=null;else switch(y){case"forwards":for(f=s.child,y=null;f!==null;)l=f.alternate,l!==null&&Nf(l)===null&&(y=f),f=f.sibling;f=y,f===null?(y=s.child,s.child=null):(y=f.sibling,f.sibling=null),_g(s,!1,y,f,O);break;case"backwards":for(f=null,y=s.child,s.child=null;y!==null;){if(l=y.alternate,l!==null&&Nf(l)===null){s.child=y;break}l=y.sibling,y.sibling=f,f=y,y=l}_g(s,!0,f,null,O);break;case"together":_g(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Vf(l,s){!(s.mode&1)&&l!==null&&(l.alternate=null,s.alternate=null,s.flags|=2)}function Io(l,s,f){if(l!==null&&(s.dependencies=l.dependencies),gl|=s.lanes,!(f&s.childLanes))return null;if(l!==null&&s.child!==l.child)throw Error(a(153));if(s.child!==null){for(l=s.child,f=ya(l,l.pendingProps),s.child=f,f.return=s;l.sibling!==null;)l=l.sibling,f=f.sibling=ya(l,l.pendingProps),f.return=s;f.sibling=null}return s.child}function bk(l,s,f){switch(s.tag){case 3:Yy(s),xs();break;case 5:my(s);break;case 1:ir(s.type)&&da(s);break;case 4:ug(s,s.stateNode.containerInfo);break;case 10:iy(s,s.type._context,s.memoizedProps.value);break;case 13:var g=s.memoizedState;if(g!==null)return g.dehydrated!==null?(Bt(sn,sn.current&1),s.flags|=128,null):f&s.child.childLanes?qy(l,s,f):(Bt(sn,sn.current&1),l=Io(l,s,f),l!==null?l.sibling:null);Bt(sn,sn.current&1);break;case 19:if(g=(f&s.childLanes)!==0,l.flags&128){if(g)return Jy(l,s,f);s.flags|=128}var y=s.memoizedState;if(y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Bt(sn,sn.current),g)break;return null;case 22:case 23:return s.lanes=0,Uy(l,s,f)}return Io(l,s,f)}function ao(l){l.flags|=4}function e6(l,s){if(l!==null&&l.child===s.child)return!0;if(s.flags&16)return!1;for(l=s.child;l!==null;){if(l.flags&12854||l.subtreeFlags&12854)return!1;l=l.sibling}return!0}var bc,Oc,Gf,Uf;if(xe)bc=function(l,s){for(var f=s.child;f!==null;){if(f.tag===5||f.tag===6)re(l,f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===s)break;for(;f.sibling===null;){if(f.return===null||f.return===s)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Oc=function(){},Gf=function(l,s,f,g,y){if(l=l.memoizedProps,l!==g){var O=s.stateNode,R=io(di.current);f=ue(O,f,l,g,y,R),(s.updateQueue=f)&&ao(s)}},Uf=function(l,s,f,g){f!==g&&ao(s)};else if(ye){bc=function(l,s,f,g){for(var y=s.child;y!==null;){if(y.tag===5){var O=y.stateNode;f&&g&&(O=ds(O,y.type,y.memoizedProps,y)),re(l,O)}else if(y.tag===6)O=y.stateNode,f&&g&&(O=fs(O,y.memoizedProps,y)),re(l,O);else if(y.tag!==4){if(y.tag===22&&y.memoizedState!==null)O=y.child,O!==null&&(O.return=y),bc(l,y,!0,!0);else if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===s)break;for(;y.sibling===null;){if(y.return===null||y.return===s)return;y=y.return}y.sibling.return=y.return,y=y.sibling}};var t6=function(l,s,f,g){for(var y=s.child;y!==null;){if(y.tag===5){var O=y.stateNode;f&&g&&(O=ds(O,y.type,y.memoizedProps,y)),Hn(l,O)}else if(y.tag===6)O=y.stateNode,f&&g&&(O=fs(O,y.memoizedProps,y)),Hn(l,O);else if(y.tag!==4){if(y.tag===22&&y.memoizedState!==null)O=y.child,O!==null&&(O.return=y),t6(l,y,!0,!0);else if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===s)break;for(;y.sibling===null;){if(y.return===null||y.return===s)return;y=y.return}y.sibling.return=y.return,y=y.sibling}};Oc=function(l,s){var f=s.stateNode;if(!e6(l,s)){l=f.containerInfo;var g=tn(l);t6(g,s,!1,!1),f.pendingChildren=g,ao(s),bo(l,g)}},Gf=function(l,s,f,g,y){var O=l.stateNode,R=l.memoizedProps;if((l=e6(l,s))&&R===g)s.stateNode=O;else{var Z=s.stateNode,le=io(di.current),_e=null;R!==g&&(_e=ue(Z,f,R,g,y,le)),l&&_e===null?s.stateNode=O:(O=Dt(O,_e,f,R,g,s,l,Z),ee(O,f,g,y,le)&&ao(s),s.stateNode=O,l?ao(s):bc(O,s,!1,!1))}},Uf=function(l,s,f,g){f!==g?(l=io(Ps.current),f=io(di.current),s.stateNode=W(g,l,f,s),ao(s)):s.stateNode=l.stateNode}}else Oc=function(){},Gf=function(){},Uf=function(){};function Pc(l,s){if(!rn)switch(l.tailMode){case"hidden":s=l.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?l.tail=null:f.sibling=null;break;case"collapsed":f=l.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?s||l.tail===null?l.tail=null:l.tail.sibling=null:g.sibling=null}}function lr(l){var s=l.alternate!==null&&l.alternate.child===l.child,f=0,g=0;if(s)for(var y=l.child;y!==null;)f|=y.lanes|y.childLanes,g|=y.subtreeFlags&14680064,g|=y.flags&14680064,y.return=l,y=y.sibling;else for(y=l.child;y!==null;)f|=y.lanes|y.childLanes,g|=y.subtreeFlags,g|=y.flags,y.return=l,y=y.sibling;return l.subtreeFlags|=g,l.childLanes=f,s}function Ok(l,s,f){var g=s.pendingProps;switch(q1(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lr(s),null;case 1:return ir(s.type)&&ms(),lr(s),null;case 3:return f=s.stateNode,ks(),Ft(rr),Ft(Fn),fg(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(l===null||l.child===null)&&(Tf(s)?ao(s):l===null||l.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,Ai!==null&&(Gg(Ai),Ai=null))),Oc(l,s),lr(s),null;case 5:cg(s),f=io(Ps.current);var y=s.type;if(l!==null&&s.stateNode!=null)Gf(l,s,y,g,f),l.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!g){if(s.stateNode===null)throw Error(a(166));return lr(s),null}if(l=io(di.current),Tf(s)){if(!Ge)throw Error(a(175));l=N1(s.stateNode,s.type,s.memoizedProps,f,l,s,!mc),s.updateQueue=l,l!==null&&ao(s)}else{var O=me(y,g,f,l,s);bc(O,s,!1,!1),s.stateNode=O,ee(O,y,g,f,l)&&ao(s)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return lr(s),null;case 6:if(l&&s.stateNode!=null)Uf(l,s,l.memoizedProps,g);else{if(typeof g!="string"&&s.stateNode===null)throw Error(a(166));if(l=io(Ps.current),f=io(di.current),Tf(s)){if(!Ge)throw Error(a(176));if(l=s.stateNode,f=s.memoizedProps,(g=la(l,f,s,!mc))&&(y=Xr,y!==null))switch(y.tag){case 3:V1(y.stateNode.containerInfo,l,f,(y.mode&1)!==0);break;case 5:hs(y.type,y.memoizedProps,y.stateNode,l,f,(y.mode&1)!==0)}g&&ao(s)}else s.stateNode=W(g,l,f,s)}return lr(s),null;case 13:if(Ft(sn),g=s.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(rn&&ui!==null&&s.mode&1&&!(s.flags&128))ry(),xs(),s.flags|=98560,y=!1;else if(y=Tf(s),g!==null&&g.dehydrated!==null){if(l===null){if(!y)throw Error(a(318));if(!Ge)throw Error(a(344));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(a(317));D1(y,s)}else xs(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;lr(s),y=!1}else Ai!==null&&(Gg(Ai),Ai=null),y=!0;if(!y)return s.flags&65536?s:null}return s.flags&128?(s.lanes=f,s):(f=g!==null,f!==(l!==null&&l.memoizedState!==null)&&f&&(s.child.flags|=8192,s.mode&1&&(l===null||sn.current&1?Mn===0&&(Mn=3):Xg())),s.updateQueue!==null&&(s.flags|=4),lr(s),null);case 4:return ks(),Oc(l,s),l===null&&Ve(s.stateNode.containerInfo),lr(s),null;case 10:return rg(s.type._context),lr(s),null;case 17:return ir(s.type)&&ms(),lr(s),null;case 19:if(Ft(sn),y=s.memoizedState,y===null)return lr(s),null;if(g=(s.flags&128)!==0,O=y.rendering,O===null)if(g)Pc(y,!1);else{if(Mn!==0||l!==null&&l.flags&128)for(l=s.child;l!==null;){if(O=Nf(l),O!==null){for(s.flags|=128,Pc(y,!1),l=O.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),s.subtreeFlags=0,l=f,f=s.child;f!==null;)g=f,y=l,g.flags&=14680066,O=g.alternate,O===null?(g.childLanes=0,g.lanes=y,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=O.childLanes,g.lanes=O.lanes,g.child=O.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=O.memoizedProps,g.memoizedState=O.memoizedState,g.updateQueue=O.updateQueue,g.type=O.type,y=O.dependencies,g.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext}),f=f.sibling;return Bt(sn,sn.current&1|2),s.child}l=l.sibling}y.tail!==null&&nn()>Fg&&(s.flags|=128,g=!0,Pc(y,!1),s.lanes=4194304)}else{if(!g)if(l=Nf(O),l!==null){if(s.flags|=128,g=!0,l=l.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Pc(y,!0),y.tail===null&&y.tailMode==="hidden"&&!O.alternate&&!rn)return lr(s),null}else 2*nn()-y.renderingStartTime>Fg&&f!==1073741824&&(s.flags|=128,g=!0,Pc(y,!1),s.lanes=4194304);y.isBackwards?(O.sibling=s.child,s.child=O):(l=y.last,l!==null?l.sibling=O:s.child=O,y.last=O)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=nn(),s.sibling=null,l=sn.current,Bt(sn,g?l&1|2:l&1),s):(lr(s),null);case 22:case 23:return Ug(),f=s.memoizedState!==null,l!==null&&l.memoizedState!==null!==f&&(s.flags|=8192),f&&s.mode&1?Zr&1073741824&&(lr(s),xe&&s.subtreeFlags&6&&(s.flags|=8192)):lr(s),null;case 24:return null;case 25:return null}throw Error(a(156,s.tag))}function Pk(l,s){switch(q1(s),s.tag){case 1:return ir(s.type)&&ms(),l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 3:return ks(),Ft(rr),Ft(Fn),fg(),l=s.flags,l&65536&&!(l&128)?(s.flags=l&-65537|128,s):null;case 5:return cg(s),null;case 13:if(Ft(sn),l=s.memoizedState,l!==null&&l.dehydrated!==null){if(s.alternate===null)throw Error(a(340));xs()}return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 19:return Ft(sn),null;case 4:return ks(),null;case 10:return rg(s.type._context),null;case 22:case 23:return Ug(),null;case 24:return null;default:return null}}var Xf=!1,sr=!1,kk=typeof WeakSet=="function"?WeakSet:Set,Be=null;function Ts(l,s){var f=l.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(g){on(l,s,g)}else f.current=null}function Tg(l,s,f){try{f()}catch(g){on(l,s,g)}}var n6=!1;function _k(l,s){for(de(l.containerInfo),Be=s;Be!==null;)if(l=Be,s=l.child,(l.subtreeFlags&1028)!==0&&s!==null)s.return=l,Be=s;else for(;Be!==null;){l=Be;try{var f=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var g=f.memoizedProps,y=f.memoizedState,O=l.stateNode,R=O.getSnapshotBeforeUpdate(l.elementType===l.type?g:Mi(l.type,g),y);O.__reactInternalSnapshotBeforeUpdate=R}break;case 3:xe&&Nt(l.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(Z){on(l,l.return,Z)}if(s=l.sibling,s!==null){s.return=l.return,Be=s;break}Be=l.return}return f=n6,n6=!1,f}function kc(l,s,f){var g=s.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var y=g=g.next;do{if((y.tag&l)===l){var O=y.destroy;y.destroy=void 0,O!==void 0&&Tg(s,f,O)}y=y.next}while(y!==g)}}function Zf(l,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var f=s=s.next;do{if((f.tag&l)===l){var g=f.create;f.destroy=g()}f=f.next}while(f!==s)}}function Ig(l){var s=l.ref;if(s!==null){var f=l.stateNode;switch(l.tag){case 5:l=te(f);break;default:l=f}typeof s=="function"?s(l):s.current=l}}function r6(l){var s=l.alternate;s!==null&&(l.alternate=null,r6(s)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(s=l.stateNode,s!==null&&$e(s)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function i6(l){return l.tag===5||l.tag===3||l.tag===4}function o6(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||i6(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Lg(l,s,f){var g=l.tag;if(g===5||g===6)l=l.stateNode,s?En(f,l,s):Ae(f,l);else if(g!==4&&(l=l.child,l!==null))for(Lg(l,s,f),l=l.sibling;l!==null;)Lg(l,s,f),l=l.sibling}function Ag(l,s,f){var g=l.tag;if(g===5||g===6)l=l.stateNode,s?_t(f,l,s):Ye(f,l);else if(g!==4&&(l=l.child,l!==null))for(Ag(l,s,f),l=l.sibling;l!==null;)Ag(l,s,f),l=l.sibling}var qn=null,Ri=!1;function lo(l,s,f){for(f=f.child;f!==null;)Mg(l,s,f),f=f.sibling}function Mg(l,s,f){if(li&&typeof li.onCommitFiberUnmount=="function")try{li.onCommitFiberUnmount(Ss,f)}catch{}switch(f.tag){case 5:sr||Ts(f,s);case 6:if(xe){var g=qn,y=Ri;qn=null,lo(l,s,f),qn=g,Ri=y,qn!==null&&(Ri?In(qn,f.stateNode):ln(qn,f.stateNode))}else lo(l,s,f);break;case 18:xe&&qn!==null&&(Ri?W1(qn,f.stateNode):$1(qn,f.stateNode));break;case 4:xe?(g=qn,y=Ri,qn=f.stateNode.containerInfo,Ri=!0,lo(l,s,f),qn=g,Ri=y):(ye&&(g=f.stateNode.containerInfo,y=tn(g),eo(g,y)),lo(l,s,f));break;case 0:case 11:case 14:case 15:if(!sr&&(g=f.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){y=g=g.next;do{var O=y,R=O.destroy;O=O.tag,R!==void 0&&(O&2||O&4)&&Tg(f,s,R),y=y.next}while(y!==g)}lo(l,s,f);break;case 1:if(!sr&&(Ts(f,s),g=f.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=f.memoizedProps,g.state=f.memoizedState,g.componentWillUnmount()}catch(Z){on(f,s,Z)}lo(l,s,f);break;case 21:lo(l,s,f);break;case 22:f.mode&1?(sr=(g=sr)||f.memoizedState!==null,lo(l,s,f),sr=g):lo(l,s,f);break;default:lo(l,s,f)}}function a6(l){var s=l.updateQueue;if(s!==null){l.updateQueue=null;var f=l.stateNode;f===null&&(f=l.stateNode=new kk),s.forEach(function(g){var y=Nk.bind(null,l,g);f.has(g)||(f.add(g),g.then(y,y))})}}function zi(l,s){var f=s.deletions;if(f!==null)for(var g=0;g<f.length;g++){var y=f[g];try{var O=l,R=s;if(xe){var Z=R;e:for(;Z!==null;){switch(Z.tag){case 5:qn=Z.stateNode,Ri=!1;break e;case 3:qn=Z.stateNode.containerInfo,Ri=!0;break e;case 4:qn=Z.stateNode.containerInfo,Ri=!0;break e}Z=Z.return}if(qn===null)throw Error(a(160));Mg(O,R,y),qn=null,Ri=!1}else Mg(O,R,y);var le=y.alternate;le!==null&&(le.return=null),y.return=null}catch(_e){on(y,s,_e)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)l6(s,l),s=s.sibling}function l6(l,s){var f=l.alternate,g=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(zi(s,l),so(l),g&4){try{kc(3,l,l.return),Zf(3,l)}catch(je){on(l,l.return,je)}try{kc(5,l,l.return)}catch(je){on(l,l.return,je)}}break;case 1:zi(s,l),so(l),g&512&&f!==null&&Ts(f,f.return);break;case 5:if(zi(s,l),so(l),g&512&&f!==null&&Ts(f,f.return),xe){if(l.flags&32){var y=l.stateNode;try{Vr(y)}catch(je){on(l,l.return,je)}}if(g&4&&(y=l.stateNode,y!=null)){var O=l.memoizedProps;if(f=f!==null?f.memoizedProps:O,g=l.type,s=l.updateQueue,l.updateQueue=null,s!==null)try{Et(y,s,g,f,O,l)}catch(je){on(l,l.return,je)}}}break;case 6:if(zi(s,l),so(l),g&4&&xe){if(l.stateNode===null)throw Error(a(162));y=l.stateNode,O=l.memoizedProps,f=f!==null?f.memoizedProps:O;try{at(y,f,O)}catch(je){on(l,l.return,je)}}break;case 3:if(zi(s,l),so(l),g&4){if(xe&&Ge&&f!==null&&f.memoizedState.isDehydrated)try{H1(s.containerInfo)}catch(je){on(l,l.return,je)}if(ye){y=s.containerInfo,O=s.pendingChildren;try{eo(y,O)}catch(je){on(l,l.return,je)}}}break;case 4:if(zi(s,l),so(l),g&4&&ye){O=l.stateNode,y=O.containerInfo,O=O.pendingChildren;try{eo(y,O)}catch(je){on(l,l.return,je)}}break;case 13:zi(s,l),so(l),y=l.child,y.flags&8192&&(O=y.memoizedState!==null,y.stateNode.isHidden=O,!O||y.alternate!==null&&y.alternate.memoizedState!==null||(Hg=nn())),g&4&&a6(l);break;case 22:var R=f!==null&&f.memoizedState!==null;if(l.mode&1?(sr=(f=sr)||R,zi(s,l),sr=f):zi(s,l),so(l),g&8192){if(f=l.memoizedState!==null,(l.stateNode.isHidden=f)&&!R&&l.mode&1)for(Be=l,g=l.child;g!==null;){for(s=Be=g;Be!==null;){R=Be;var Z=R.child;switch(R.tag){case 0:case 11:case 14:case 15:kc(4,R,R.return);break;case 1:Ts(R,R.return);var le=R.stateNode;if(typeof le.componentWillUnmount=="function"){var _e=R,We=R.return;try{var et=_e;le.props=et.memoizedProps,le.state=et.memoizedState,le.componentWillUnmount()}catch(je){on(_e,We,je)}}break;case 5:Ts(R,R.return);break;case 22:if(R.memoizedState!==null){c6(s);continue}}Z!==null?(Z.return=R,Be=Z):c6(s)}g=g.sibling}if(xe){e:if(g=null,xe)for(s=l;;){if(s.tag===5){if(g===null){g=s;try{y=s.stateNode,f?Ji(y):rt(s.stateNode,s.memoizedProps)}catch(je){on(l,l.return,je)}}}else if(s.tag===6){if(g===null)try{O=s.stateNode,f?Ti(O):lt(O,s.memoizedProps)}catch(je){on(l,l.return,je)}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===l)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;g===s&&(g=null),s=s.return}g===s&&(g=null),s.sibling.return=s.return,s=s.sibling}}}break;case 19:zi(s,l),so(l),g&4&&a6(l);break;case 21:break;default:zi(s,l),so(l)}}function so(l){var s=l.flags;if(s&2){try{if(xe){e:{for(var f=l.return;f!==null;){if(i6(f)){var g=f;break e}f=f.return}throw Error(a(160))}switch(g.tag){case 5:var y=g.stateNode;g.flags&32&&(Vr(y),g.flags&=-33);var O=o6(l);Ag(l,O,y);break;case 3:case 4:var R=g.stateNode.containerInfo,Z=o6(l);Lg(l,Z,R);break;default:throw Error(a(161))}}}catch(le){on(l,l.return,le)}l.flags&=-3}s&4096&&(l.flags&=-4097)}function Tk(l,s,f){Be=l,s6(l)}function s6(l,s,f){for(var g=(l.mode&1)!==0;Be!==null;){var y=Be,O=y.child;if(y.tag===22&&g){var R=y.memoizedState!==null||Xf;if(!R){var Z=y.alternate,le=Z!==null&&Z.memoizedState!==null||sr;Z=Xf;var _e=sr;if(Xf=R,(sr=le)&&!_e)for(Be=y;Be!==null;)R=Be,le=R.child,R.tag===22&&R.memoizedState!==null?d6(y):le!==null?(le.return=R,Be=le):d6(y);for(;O!==null;)Be=O,s6(O),O=O.sibling;Be=y,Xf=Z,sr=_e}u6(l)}else y.subtreeFlags&8772&&O!==null?(O.return=y,Be=O):u6(l)}}function u6(l){for(;Be!==null;){var s=Be;if(s.flags&8772){var f=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:sr||Zf(5,s);break;case 1:var g=s.stateNode;if(s.flags&4&&!sr)if(f===null)g.componentDidMount();else{var y=s.elementType===s.type?f.memoizedProps:Mi(s.type,f.memoizedProps);g.componentDidUpdate(y,f.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var O=s.updateQueue;O!==null&&sy(s,O,g);break;case 3:var R=s.updateQueue;if(R!==null){if(f=null,s.child!==null)switch(s.child.tag){case 5:f=te(s.child.stateNode);break;case 1:f=s.child.stateNode}sy(s,R,f)}break;case 5:var Z=s.stateNode;f===null&&s.flags&4&&pt(Z,s.type,s.memoizedProps,s);break;case 6:break;case 4:break;case 12:break;case 13:if(Ge&&s.memoizedState===null){var le=s.alternate;if(le!==null){var _e=le.memoizedState;if(_e!==null){var We=_e.dehydrated;We!==null&&F1(We)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}sr||s.flags&512&&Ig(s)}catch(et){on(s,s.return,et)}}if(s===l){Be=null;break}if(f=s.sibling,f!==null){f.return=s.return,Be=f;break}Be=s.return}}function c6(l){for(;Be!==null;){var s=Be;if(s===l){Be=null;break}var f=s.sibling;if(f!==null){f.return=s.return,Be=f;break}Be=s.return}}function d6(l){for(;Be!==null;){var s=Be;try{switch(s.tag){case 0:case 11:case 15:var f=s.return;try{Zf(4,s)}catch(le){on(s,f,le)}break;case 1:var g=s.stateNode;if(typeof g.componentDidMount=="function"){var y=s.return;try{g.componentDidMount()}catch(le){on(s,y,le)}}var O=s.return;try{Ig(s)}catch(le){on(s,O,le)}break;case 5:var R=s.return;try{Ig(s)}catch(le){on(s,R,le)}}}catch(le){on(s,s.return,le)}if(s===l){Be=null;break}var Z=s.sibling;if(Z!==null){Z.return=s.return,Be=Z;break}Be=s.return}}var Yf=0,Kf=1,qf=2,Qf=3,Jf=4;if(typeof Symbol=="function"&&Symbol.for){var _c=Symbol.for;Yf=_c("selector.component"),Kf=_c("selector.has_pseudo_class"),qf=_c("selector.role"),Qf=_c("selector.test_id"),Jf=_c("selector.text")}function Rg(l){var s=Ze(l);if(s!=null){if(typeof s.memoizedProps["data-testname"]!="string")throw Error(a(364));return s}if(l=St(l),l===null)throw Error(a(362));return l.stateNode.current}function zg(l,s){switch(s.$$typeof){case Yf:if(l.type===s.value)return!0;break;case Kf:e:{s=s.value,l=[l,0];for(var f=0;f<l.length;){var g=l[f++],y=l[f++],O=s[y];if(g.tag!==5||!Re(g)){for(;O!=null&&zg(g,O);)y++,O=s[y];if(y===s.length){s=!0;break e}else for(g=g.child;g!==null;)l.push(g,y),g=g.sibling}}s=!1}return s;case qf:if(l.tag===5&&Xe(l.stateNode,s.value))return!0;break;case Jf:if((l.tag===5||l.tag===6)&&(l=ft(l),l!==null&&0<=l.indexOf(s.value)))return!0;break;case Qf:if(l.tag===5&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===s.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function jg(l){switch(l.$$typeof){case Yf:return"<"+(M(l.value)||"Unknown")+">";case Kf:return":has("+(jg(l)||"")+")";case qf:return'[role="'+l.value+'"]';case Jf:return'"'+l.value+'"';case Qf:return'[data-testname="'+l.value+'"]';default:throw Error(a(365))}}function f6(l,s){var f=[];l=[l,0];for(var g=0;g<l.length;){var y=l[g++],O=l[g++],R=s[O];if(y.tag!==5||!Re(y)){for(;R!=null&&zg(y,R);)O++,R=s[O];if(O===s.length)f.push(y);else for(y=y.child;y!==null;)l.push(y,O),y=y.sibling}}return f}function Ng(l,s){if(!qe)throw Error(a(363));l=Rg(l),l=f6(l,s),s=[],l=Array.from(l);for(var f=0;f<l.length;){var g=l[f++];if(g.tag===5)Re(g)||s.push(g.stateNode);else for(g=g.child;g!==null;)l.push(g),g=g.sibling}return s}var Ik=Math.ceil,ep=u.ReactCurrentDispatcher,Dg=u.ReactCurrentOwner,yn=u.ReactCurrentBatchConfig,ht=0,Gn=null,bn=null,Qn=0,Zr=0,Is=Ii(0),Mn=0,Tc=null,gl=0,tp=0,Bg=0,Ic=null,kr=null,Hg=0,Fg=1/0,Lo=null;function Ls(){Fg=nn()+500}var np=!1,$g=null,ha=null,rp=!1,ga=null,ip=0,Lc=0,Wg=null,op=-1,ap=0;function ur(){return ht&6?nn():op!==-1?op:op=nn()}function ma(l){return l.mode&1?ht&2&&Qn!==0?Qn&-Qn:fk.transition!==null?(ap===0&&(ap=Ef()),ap):(l=mt,l!==0?l:ot()):1}function pi(l,s,f,g){if(50<Lc)throw Lc=0,Wg=null,Error(a(185));no(l,f,g),(!(ht&2)||l!==Gn)&&(l===Gn&&(!(ht&2)&&(tp|=f),Mn===4&&va(l,Qn)),_r(l,g),f===1&&ht===0&&!(s.mode&1)&&(Ls(),ie&&wt()))}function _r(l,s){var f=l.callbackNode;cc(l,s);var g=ys(l,l===Gn?Qn:0);if(g===0)f!==null&&Cs(f),l.callbackNode=null,l.callbackPriority=0;else if(s=g&-g,l.callbackPriority!==s){if(f!=null&&Cs(f),s===1)l.tag===0?Mt(h6.bind(null,l)):gt(h6.bind(null,l)),dt?Ct(function(){!(ht&6)&&wt()}):ws(hc,wt),f=null;else{switch(bf(g)){case 1:f=hc;break;case 4:f=Pf;break;case 16:f=gc;break;case 536870912:f=kf;break;default:f=gc}f=E6(f,p6.bind(null,l))}l.callbackPriority=s,l.callbackNode=f}}function p6(l,s){if(op=-1,ap=0,ht&6)throw Error(a(327));var f=l.callbackNode;if(yl()&&l.callbackNode!==f)return null;var g=ys(l,l===Gn?Qn:0);if(g===0)return null;if(g&30||g&l.expiredLanes||s)s=lp(l,g);else{s=g;var y=ht;ht|=2;var O=v6();(Gn!==l||Qn!==s)&&(Lo=null,Ls(),ml(l,s));do try{Mk();break}catch(Z){m6(l,Z)}while(!0);ng(),ep.current=O,ht=y,bn!==null?s=0:(Gn=null,Qn=0,s=Mn)}if(s!==0){if(s===2&&(y=dc(l),y!==0&&(g=y,s=Vg(l,y))),s===1)throw f=Tc,ml(l,0),va(l,g),_r(l,nn()),f;if(s===6)va(l,g);else{if(y=l.current.alternate,!(g&30)&&!Lk(y)&&(s=lp(l,g),s===2&&(O=dc(l),O!==0&&(g=O,s=Vg(l,O))),s===1))throw f=Tc,ml(l,0),va(l,g),_r(l,nn()),f;switch(l.finishedWork=y,l.finishedLanes=g,s){case 0:case 1:throw Error(a(345));case 2:vl(l,kr,Lo);break;case 3:if(va(l,g),(g&130023424)===g&&(s=Hg+500-nn(),10<s)){if(ys(l,0)!==0)break;if(y=l.suspendedLanes,(y&g)!==g){ur(),l.pingedLanes|=l.suspendedLanes&y;break}l.timeoutHandle=Se(vl.bind(null,l,kr,Lo),s);break}vl(l,kr,Lo);break;case 4:if(va(l,g),(g&4194240)===g)break;for(s=l.eventTimes,y=-1;0<g;){var R=31-Ur(g);O=1<<R,R=s[R],R>y&&(y=R),g&=~O}if(g=y,g=nn()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*Ik(g/1960))-g,10<g){l.timeoutHandle=Se(vl.bind(null,l,kr,Lo),g);break}vl(l,kr,Lo);break;case 5:vl(l,kr,Lo);break;default:throw Error(a(329))}}}return _r(l,nn()),l.callbackNode===f?p6.bind(null,l):null}function Vg(l,s){var f=Ic;return l.current.memoizedState.isDehydrated&&(ml(l,s).flags|=256),l=lp(l,s),l!==2&&(s=kr,kr=f,s!==null&&Gg(s)),l}function Gg(l){kr===null?kr=l:kr.push.apply(kr,l)}function Lk(l){for(var s=l;;){if(s.flags&16384){var f=s.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var g=0;g<f.length;g++){var y=f[g],O=y.getSnapshot;y=y.value;try{if(!N(O(),y))return!1}catch{return!1}}}if(f=s.child,s.subtreeFlags&16384&&f!==null)f.return=s,s=f;else{if(s===l)break;for(;s.sibling===null;){if(s.return===null||s.return===l)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function va(l,s){for(s&=~Bg,s&=~tp,l.suspendedLanes|=s,l.pingedLanes&=~s,l=l.expirationTimes;0<s;){var f=31-Ur(s),g=1<<f;l[f]=-1,s&=~g}}function h6(l){if(ht&6)throw Error(a(327));yl();var s=ys(l,0);if(!(s&1))return _r(l,nn()),null;var f=lp(l,s);if(l.tag!==0&&f===2){var g=dc(l);g!==0&&(s=g,f=Vg(l,g))}if(f===1)throw f=Tc,ml(l,0),va(l,s),_r(l,nn()),f;if(f===6)throw Error(a(345));return l.finishedWork=l.current.alternate,l.finishedLanes=s,vl(l,kr,Lo),_r(l,nn()),null}function g6(l){ga!==null&&ga.tag===0&&!(ht&6)&&yl();var s=ht;ht|=1;var f=yn.transition,g=mt;try{if(yn.transition=null,mt=1,l)return l()}finally{mt=g,yn.transition=f,ht=s,!(ht&6)&&wt()}}function Ug(){Zr=Is.current,Ft(Is)}function ml(l,s){l.finishedWork=null,l.finishedLanes=0;var f=l.timeoutHandle;if(f!==ze&&(l.timeoutHandle=ze,ae(f)),bn!==null)for(f=bn.return;f!==null;){var g=f;switch(q1(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&ms();break;case 3:ks(),Ft(rr),Ft(Fn),fg();break;case 5:cg(g);break;case 4:ks();break;case 13:Ft(sn);break;case 19:Ft(sn);break;case 10:rg(g.type._context);break;case 22:case 23:Ug()}f=f.return}if(Gn=l,bn=l=ya(l.current,null),Qn=Zr=s,Mn=0,Tc=null,Bg=tp=gl=0,kr=Ic=null,pl!==null){for(s=0;s<pl.length;s++)if(f=pl[s],g=f.interleaved,g!==null){f.interleaved=null;var y=g.next,O=f.pending;if(O!==null){var R=O.next;O.next=y,g.next=R}f.pending=g}pl=null}return l}function m6(l,s){do{var f=bn;try{if(ng(),Df.current=$f,Bf){for(var g=un.memoizedState;g!==null;){var y=g.queue;y!==null&&(y.pending=null),g=g.next}Bf=!1}if(hl=0,Vn=An=un=null,Cc=!1,Sc=0,Dg.current=null,f===null||f.return===null){Mn=1,Tc=s,bn=null;break}e:{var O=l,R=f.return,Z=f,le=s;if(s=Qn,Z.flags|=32768,le!==null&&typeof le=="object"&&typeof le.then=="function"){var _e=le,We=Z,et=We.tag;if(!(We.mode&1)&&(et===0||et===11||et===15)){var je=We.alternate;je?(We.updateQueue=je.updateQueue,We.memoizedState=je.memoizedState,We.lanes=je.lanes):(We.updateQueue=null,We.memoizedState=null)}var Kt=Fy(R);if(Kt!==null){Kt.flags&=-257,$y(Kt,R,Z,O,s),Kt.mode&1&&Hy(O,_e,s),s=Kt,le=_e;var $t=s.updateQueue;if($t===null){var Tr=new Set;Tr.add(le),s.updateQueue=Tr}else $t.add(le);break e}else{if(!(s&1)){Hy(O,_e,s),Xg();break e}le=Error(a(426))}}else if(rn&&Z.mode&1){var Ao=Fy(R);if(Ao!==null){!(Ao.flags&65536)&&(Ao.flags|=256),$y(Ao,R,Z,O,s),eg(_s(le,Z));break e}}O=le=_s(le,Z),Mn!==4&&(Mn=2),Ic===null?Ic=[O]:Ic.push(O),O=R;do{switch(O.tag){case 3:O.flags|=65536,s&=-s,O.lanes|=s;var oe=Dy(O,le,s);ly(O,oe);break e;case 1:Z=le;var K=O.type,fe=O.stateNode;if(!(O.flags&128)&&(typeof K.getDerivedStateFromError=="function"||fe!==null&&typeof fe.componentDidCatch=="function"&&(ha===null||!ha.has(fe)))){O.flags|=65536,s&=-s,O.lanes|=s;var Ne=By(O,Z,s);ly(O,Ne);break e}}O=O.return}while(O!==null)}w6(f)}catch(Ke){s=Ke,bn===f&&f!==null&&(bn=f=f.return);continue}break}while(!0)}function v6(){var l=ep.current;return ep.current=$f,l===null?$f:l}function Xg(){(Mn===0||Mn===3||Mn===2)&&(Mn=4),Gn===null||!(gl&268435455)&&!(tp&268435455)||va(Gn,Qn)}function lp(l,s){var f=ht;ht|=2;var g=v6();(Gn!==l||Qn!==s)&&(Lo=null,ml(l,s));do try{Ak();break}catch(y){m6(l,y)}while(!0);if(ng(),ht=f,ep.current=g,bn!==null)throw Error(a(261));return Gn=null,Qn=0,Mn}function Ak(){for(;bn!==null;)y6(bn)}function Mk(){for(;bn!==null&&!Of();)y6(bn)}function y6(l){var s=x6(l.alternate,l,Zr);l.memoizedProps=l.pendingProps,s===null?w6(l):bn=s,Dg.current=null}function w6(l){var s=l;do{var f=s.alternate;if(l=s.return,s.flags&32768){if(f=Pk(f,s),f!==null){f.flags&=32767,bn=f;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Mn=6,bn=null;return}}else if(f=Ok(f,s,Zr),f!==null){bn=f;return}if(s=s.sibling,s!==null){bn=s;return}bn=s=l}while(s!==null);Mn===0&&(Mn=5)}function vl(l,s,f){var g=mt,y=yn.transition;try{yn.transition=null,mt=1,Rk(l,s,f,g)}finally{yn.transition=y,mt=g}return null}function Rk(l,s,f,g){do yl();while(ga!==null);if(ht&6)throw Error(a(327));f=l.finishedWork;var y=l.finishedLanes;if(f===null)return null;if(l.finishedWork=null,l.finishedLanes=0,f===l.current)throw Error(a(177));l.callbackNode=null,l.callbackPriority=0;var O=f.lanes|f.childLanes;if(pc(l,O),l===Gn&&(bn=Gn=null,Qn=0),!(f.subtreeFlags&2064)&&!(f.flags&2064)||rp||(rp=!0,E6(gc,function(){return yl(),null})),O=(f.flags&15990)!==0,f.subtreeFlags&15990||O){O=yn.transition,yn.transition=null;var R=mt;mt=1;var Z=ht;ht|=4,Dg.current=null,_k(l,f),l6(f,l),ce(l.containerInfo),l.current=f,Tk(f),ko(),ht=Z,mt=R,yn.transition=O}else l.current=f;if(rp&&(rp=!1,ga=l,ip=y),O=l.pendingLanes,O===0&&(ha=null),_f(f.stateNode),_r(l,nn()),s!==null)for(g=l.onRecoverableError,f=0;f<s.length;f++)y=s[f],g(y.value,{componentStack:y.stack,digest:y.digest});if(np)throw np=!1,l=$g,$g=null,l;return ip&1&&l.tag!==0&&yl(),O=l.pendingLanes,O&1?l===Wg?Lc++:(Lc=0,Wg=l):Lc=0,wt(),null}function yl(){if(ga!==null){var l=bf(ip),s=yn.transition,f=mt;try{if(yn.transition=null,mt=16>l?16:l,ga===null)var g=!1;else{if(l=ga,ga=null,ip=0,ht&6)throw Error(a(331));var y=ht;for(ht|=4,Be=l.current;Be!==null;){var O=Be,R=O.child;if(Be.flags&16){var Z=O.deletions;if(Z!==null){for(var le=0;le<Z.length;le++){var _e=Z[le];for(Be=_e;Be!==null;){var We=Be;switch(We.tag){case 0:case 11:case 15:kc(8,We,O)}var et=We.child;if(et!==null)et.return=We,Be=et;else for(;Be!==null;){We=Be;var je=We.sibling,Kt=We.return;if(r6(We),We===_e){Be=null;break}if(je!==null){je.return=Kt,Be=je;break}Be=Kt}}}var $t=O.alternate;if($t!==null){var Tr=$t.child;if(Tr!==null){$t.child=null;do{var Ao=Tr.sibling;Tr.sibling=null,Tr=Ao}while(Tr!==null)}}Be=O}}if(O.subtreeFlags&2064&&R!==null)R.return=O,Be=R;else e:for(;Be!==null;){if(O=Be,O.flags&2048)switch(O.tag){case 0:case 11:case 15:kc(9,O,O.return)}var oe=O.sibling;if(oe!==null){oe.return=O.return,Be=oe;break e}Be=O.return}}var K=l.current;for(Be=K;Be!==null;){R=Be;var fe=R.child;if(R.subtreeFlags&2064&&fe!==null)fe.return=R,Be=fe;else e:for(R=K;Be!==null;){if(Z=Be,Z.flags&2048)try{switch(Z.tag){case 0:case 11:case 15:Zf(9,Z)}}catch(Ke){on(Z,Z.return,Ke)}if(Z===R){Be=null;break e}var Ne=Z.sibling;if(Ne!==null){Ne.return=Z.return,Be=Ne;break e}Be=Z.return}}if(ht=y,wt(),li&&typeof li.onPostCommitFiberRoot=="function")try{li.onPostCommitFiberRoot(Ss,l)}catch{}g=!0}return g}finally{mt=f,yn.transition=s}}return!1}function C6(l,s,f){s=_s(f,s),s=Dy(l,s,1),l=pa(l,s,1),s=ur(),l!==null&&(no(l,1,s),_r(l,s))}function on(l,s,f){if(l.tag===3)C6(l,l,f);else for(;s!==null;){if(s.tag===3){C6(s,l,f);break}else if(s.tag===1){var g=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(ha===null||!ha.has(g))){l=_s(f,l),l=By(s,l,1),s=pa(s,l,1),l=ur(),s!==null&&(no(s,1,l),_r(s,l));break}}s=s.return}}function zk(l,s,f){var g=l.pingCache;g!==null&&g.delete(s),s=ur(),l.pingedLanes|=l.suspendedLanes&f,Gn===l&&(Qn&f)===f&&(Mn===4||Mn===3&&(Qn&130023424)===Qn&&500>nn()-Hg?ml(l,0):Bg|=f),_r(l,s)}function S6(l,s){s===0&&(l.mode&1?(s=ul,ul<<=1,!(ul&130023424)&&(ul=4194304)):s=1);var f=ur();l=ro(l,s),l!==null&&(no(l,s,f),_r(l,f))}function jk(l){var s=l.memoizedState,f=0;s!==null&&(f=s.retryLane),S6(l,f)}function Nk(l,s){var f=0;switch(l.tag){case 13:var g=l.stateNode,y=l.memoizedState;y!==null&&(f=y.retryLane);break;case 19:g=l.stateNode;break;default:throw Error(a(314))}g!==null&&g.delete(s),S6(l,f)}var x6;x6=function(l,s,f){if(l!==null)if(l.memoizedProps!==s.pendingProps||rr.current)Pr=!0;else{if(!(l.lanes&f)&&!(s.flags&128))return Pr=!1,bk(l,s,f);Pr=!!(l.flags&131072)}else Pr=!1,rn&&s.flags&1048576&&J4(s,$n,s.index);switch(s.lanes=0,s.tag){case 2:var g=s.type;Vf(l,s),l=s.pendingProps;var y=ca(s,Fn.current);bs(s,f),y=gg(null,s,g,l,y,f);var O=mg();return s.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,ir(g)?(O=!0,da(s)):O=!1,s.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,ag(s),y.updater=zf,s.stateNode=y,y._reactInternals=s,sg(s,g,l,f),s=bg(null,s,g,!0,O,f)):(s.tag=0,rn&&O&&K1(s),yr(null,s,y,f),s=s.child),s;case 16:g=s.elementType;e:{switch(Vf(l,s),l=s.pendingProps,y=g._init,g=y(g._payload),s.type=g,y=s.tag=Bk(g),l=Mi(g,l),y){case 0:s=Eg(null,s,g,l,f);break e;case 1:s=Zy(null,s,g,l,f);break e;case 11:s=Wy(null,s,g,l,f);break e;case 14:s=Vy(null,s,g,Mi(g.type,l),f);break e}throw Error(a(306,g,""))}return s;case 0:return g=s.type,y=s.pendingProps,y=s.elementType===g?y:Mi(g,y),Eg(l,s,g,y,f);case 1:return g=s.type,y=s.pendingProps,y=s.elementType===g?y:Mi(g,y),Zy(l,s,g,y,f);case 3:e:{if(Yy(s),l===null)throw Error(a(387));g=s.pendingProps,O=s.memoizedState,y=O.element,ay(l,s),Rf(s,g,null,f);var R=s.memoizedState;if(g=R.element,Ge&&O.isDehydrated)if(O={element:g,isDehydrated:!1,cache:R.cache,pendingSuspenseBoundaries:R.pendingSuspenseBoundaries,transitions:R.transitions},s.updateQueue.baseState=O,s.memoizedState=O,s.flags&256){y=_s(Error(a(423)),s),s=Ky(l,s,g,f,y);break e}else if(g!==y){y=_s(Error(a(424)),s),s=Ky(l,s,g,f,y);break e}else for(Ge&&(ui=z1(s.stateNode.containerInfo),Xr=s,rn=!0,Ai=null,mc=!1),f=gy(s,null,g,f),s.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(xs(),g===y){s=Io(l,s,f);break e}yr(l,s,g,f)}s=s.child}return s;case 5:return my(s),l===null&&J1(s),g=s.type,y=s.pendingProps,O=l!==null?l.memoizedProps:null,R=y.children,Ee(g,y)?R=null:O!==null&&Ee(g,O)&&(s.flags|=32),Xy(l,s),yr(l,s,R,f),s.child;case 6:return l===null&&J1(s),null;case 13:return qy(l,s,f);case 4:return ug(s,s.stateNode.containerInfo),g=s.pendingProps,l===null?s.child=Os(s,null,g,f):yr(l,s,g,f),s.child;case 11:return g=s.type,y=s.pendingProps,y=s.elementType===g?y:Mi(g,y),Wy(l,s,g,y,f);case 7:return yr(l,s,s.pendingProps,f),s.child;case 8:return yr(l,s,s.pendingProps.children,f),s.child;case 12:return yr(l,s,s.pendingProps.children,f),s.child;case 10:e:{if(g=s.type._context,y=s.pendingProps,O=s.memoizedProps,R=y.value,iy(s,g,R),O!==null)if(N(O.value,R)){if(O.children===y.children&&!rr.current){s=Io(l,s,f);break e}}else for(O=s.child,O!==null&&(O.return=s);O!==null;){var Z=O.dependencies;if(Z!==null){R=O.child;for(var le=Z.firstContext;le!==null;){if(le.context===g){if(O.tag===1){le=To(-1,f&-f),le.tag=2;var _e=O.updateQueue;if(_e!==null){_e=_e.shared;var We=_e.pending;We===null?le.next=le:(le.next=We.next,We.next=le),_e.pending=le}}O.lanes|=f,le=O.alternate,le!==null&&(le.lanes|=f),ig(O.return,f,s),Z.lanes|=f;break}le=le.next}}else if(O.tag===10)R=O.type===s.type?null:O.child;else if(O.tag===18){if(R=O.return,R===null)throw Error(a(341));R.lanes|=f,Z=R.alternate,Z!==null&&(Z.lanes|=f),ig(R,f,s),R=O.sibling}else R=O.child;if(R!==null)R.return=O;else for(R=O;R!==null;){if(R===s){R=null;break}if(O=R.sibling,O!==null){O.return=R.return,R=O;break}R=R.return}O=R}yr(l,s,y.children,f),s=s.child}return s;case 9:return y=s.type,g=s.pendingProps.children,bs(s,f),y=ci(y),g=g(y),s.flags|=1,yr(l,s,g,f),s.child;case 14:return g=s.type,y=Mi(g,s.pendingProps),y=Mi(g.type,y),Vy(l,s,g,y,f);case 15:return Gy(l,s,s.type,s.pendingProps,f);case 17:return g=s.type,y=s.pendingProps,y=s.elementType===g?y:Mi(g,y),Vf(l,s),s.tag=1,ir(g)?(l=!0,da(s)):l=!1,bs(s,f),dy(s,g,y),sg(s,g,y,f),bg(null,s,g,!0,l,f);case 19:return Jy(l,s,f);case 22:return Uy(l,s,f)}throw Error(a(156,s.tag))};function E6(l,s){return ws(l,s)}function Dk(l,s,f,g){this.tag=l,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(l,s,f,g){return new Dk(l,s,f,g)}function Zg(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Bk(l){if(typeof l=="function")return Zg(l)?1:0;if(l!=null){if(l=l.$$typeof,l===x)return 11;if(l===E)return 14}return 2}function ya(l,s){var f=l.alternate;return f===null?(f=hi(l.tag,s,l.key,l.mode),f.elementType=l.elementType,f.type=l.type,f.stateNode=l.stateNode,f.alternate=l,l.alternate=f):(f.pendingProps=s,f.type=l.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=l.flags&14680064,f.childLanes=l.childLanes,f.lanes=l.lanes,f.child=l.child,f.memoizedProps=l.memoizedProps,f.memoizedState=l.memoizedState,f.updateQueue=l.updateQueue,s=l.dependencies,f.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},f.sibling=l.sibling,f.index=l.index,f.ref=l.ref,f}function sp(l,s,f,g,y,O){var R=2;if(g=l,typeof l=="function")Zg(l)&&(R=1);else if(typeof l=="string")R=5;else e:switch(l){case h:return wl(f.children,y,O,s);case m:R=8,y|=8;break;case v:return l=hi(12,f,s,y|2),l.elementType=v,l.lanes=O,l;case P:return l=hi(13,f,s,y),l.elementType=P,l.lanes=O,l;case b:return l=hi(19,f,s,y),l.elementType=b,l.lanes=O,l;case T:return up(f,y,O,s);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:R=10;break e;case w:R=9;break e;case x:R=11;break e;case E:R=14;break e;case k:R=16,g=null;break e}throw Error(a(130,l==null?l:typeof l,""))}return s=hi(R,f,s,y),s.elementType=l,s.type=g,s.lanes=O,s}function wl(l,s,f,g){return l=hi(7,l,g,s),l.lanes=f,l}function up(l,s,f,g){return l=hi(22,l,g,s),l.elementType=T,l.lanes=f,l.stateNode={isHidden:!1},l}function Yg(l,s,f){return l=hi(6,l,null,s),l.lanes=f,l}function Kg(l,s,f){return s=hi(4,l.children!==null?l.children:[],l.key,s),s.lanes=f,s.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},s}function Hk(l,s,f,g,y){this.tag=s,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ze,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fc(0),this.expirationTimes=fc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.identifierPrefix=g,this.onRecoverableError=y,Ge&&(this.mutableSourceEagerHydrationData=null)}function b6(l,s,f,g,y,O,R,Z,le){return l=new Hk(l,s,f,Z,le),s===1?(s=1,O===!0&&(s|=8)):s=0,O=hi(3,null,null,s),l.current=O,O.stateNode=l,O.memoizedState={element:g,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},ag(O),l}function O6(l){if(!l)return to;l=l._reactInternals;e:{if(D(l)!==l||l.tag!==1)throw Error(a(170));var s=l;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(ir(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(a(171))}if(l.tag===1){var f=l.type;if(ir(f))return sl(l,f,s)}return s}function P6(l){var s=l._reactInternals;if(s===void 0)throw typeof l.render=="function"?Error(a(188)):(l=Object.keys(l).join(","),Error(a(268,l)));return l=G(s),l===null?null:l.stateNode}function k6(l,s){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var f=l.retryLane;l.retryLane=f!==0&&f<s?f:s}}function cp(l,s){k6(l,s),(l=l.alternate)&&k6(l,s)}function Fk(l){return l=G(l),l===null?null:l.stateNode}function $k(){return null}return n.attemptContinuousHydration=function(l){if(l.tag===13){var s=ro(l,134217728);if(s!==null){var f=ur();pi(s,l,134217728,f)}cp(l,134217728)}},n.attemptDiscreteHydration=function(l){if(l.tag===13){var s=ro(l,1);if(s!==null){var f=ur();pi(s,l,1,f)}cp(l,1)}},n.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13){var s=ma(l),f=ro(l,s);if(f!==null){var g=ur();pi(f,l,s,g)}cp(l,s)}},n.attemptSynchronousHydration=function(l){switch(l.tag){case 3:var s=l.stateNode;if(s.current.memoizedState.isDehydrated){var f=cl(s.pendingLanes);f!==0&&(dl(s,f|1),_r(s,nn()),!(ht&6)&&(Ls(),wt()))}break;case 13:g6(function(){var g=ro(l,1);if(g!==null){var y=ur();pi(g,l,1,y)}}),cp(l,1)}},n.batchedUpdates=function(l,s){var f=ht;ht|=1;try{return l(s)}finally{ht=f,ht===0&&(Ls(),ie&&wt())}},n.createComponentSelector=function(l){return{$$typeof:Yf,value:l}},n.createContainer=function(l,s,f,g,y,O,R){return b6(l,s,!1,null,f,g,y,O,R)},n.createHasPseudoClassSelector=function(l){return{$$typeof:Kf,value:l}},n.createHydrationContainer=function(l,s,f,g,y,O,R,Z,le){return l=b6(f,g,!0,l,y,O,R,Z,le),l.context=O6(null),f=l.current,g=ur(),y=ma(f),O=To(g,y),O.callback=s!=null?s:null,pa(f,O,y),l.current.lanes=y,no(l,y,g),_r(l,g),l},n.createPortal=function(l,s,f){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:l,containerInfo:s,implementation:f}},n.createRoleSelector=function(l){return{$$typeof:qf,value:l}},n.createTestNameSelector=function(l){return{$$typeof:Qf,value:l}},n.createTextSelector=function(l){return{$$typeof:Jf,value:l}},n.deferredUpdates=function(l){var s=mt,f=yn.transition;try{return yn.transition=null,mt=16,l()}finally{mt=s,yn.transition=f}},n.discreteUpdates=function(l,s,f,g,y){var O=mt,R=yn.transition;try{return yn.transition=null,mt=1,l(s,f,g,y)}finally{mt=O,yn.transition=R,ht===0&&Ls()}},n.findAllNodes=Ng,n.findBoundingRects=function(l,s){if(!qe)throw Error(a(363));s=Ng(l,s),l=[];for(var f=0;f<s.length;f++)l.push(At(s[f]));for(s=l.length-1;0<s;s--){f=l[s];for(var g=f.x,y=g+f.width,O=f.y,R=O+f.height,Z=s-1;0<=Z;Z--)if(s!==Z){var le=l[Z],_e=le.x,We=_e+le.width,et=le.y,je=et+le.height;if(g>=_e&&O>=et&&y<=We&&R<=je){l.splice(s,1);break}else if(g!==_e||f.width!==le.width||je<O||et>R){if(!(O!==et||f.height!==le.height||We<g||_e>y)){_e>g&&(le.width+=_e-g,le.x=g),We<y&&(le.width=y-_e),l.splice(s,1);break}}else{et>O&&(le.height+=et-O,le.y=O),je<R&&(le.height=R-et),l.splice(s,1);break}}}return l},n.findHostInstance=P6,n.findHostInstanceWithNoPortals=function(l){return l=X(l),l=l!==null?ne(l):null,l===null?null:l.stateNode},n.findHostInstanceWithWarning=function(l){return P6(l)},n.flushControlled=function(l){var s=ht;ht|=1;var f=yn.transition,g=mt;try{yn.transition=null,mt=1,l()}finally{mt=g,yn.transition=f,ht=s,ht===0&&(Ls(),wt())}},n.flushPassiveEffects=yl,n.flushSync=g6,n.focusWithin=function(l,s){if(!qe)throw Error(a(363));for(l=Rg(l),s=f6(l,s),s=Array.from(s),l=0;l<s.length;){var f=s[l++];if(!Re(f)){if(f.tag===5&&Ut(f.stateNode))return!0;for(f=f.child;f!==null;)s.push(f),f=f.sibling}}return!1},n.getCurrentUpdatePriority=function(){return mt},n.getFindAllNodesFailureDescription=function(l,s){if(!qe)throw Error(a(363));var f=0,g=[];l=[Rg(l),0];for(var y=0;y<l.length;){var O=l[y++],R=l[y++],Z=s[R];if((O.tag!==5||!Re(O))&&(zg(O,Z)&&(g.push(jg(Z)),R++,R>f&&(f=R)),R<s.length))for(O=O.child;O!==null;)l.push(O,R),O=O.sibling}if(f<s.length){for(l=[];f<s.length;f++)l.push(jg(s[f]));return"findAllNodes was able to match part of the selector:\n  "+(g.join(" > ")+"\n\nNo matching component was found for:\n  ")+l.join(" > ")}return null},n.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return te(l.child.stateNode);default:return l.child.stateNode}},n.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:u.ReactCurrentDispatcher,findHostInstanceByFiber:Fk,findFiberByHostInstance:l.findFiberByHostInstance||$k,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(s.isDisabled||!s.supportsFiber)l=!0;else{try{Ss=s.inject(l),li=s}catch{}l=!!s.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,s,f,g){if(!qe)throw Error(a(363));l=Ng(l,s);var y=Tn(l,f,g).disconnect;return{disconnect:function(){y()}}},n.registerMutableSourceForHydration=function(l,s){var f=s._getVersion;f=f(s._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[s,f]:l.mutableSourceEagerHydrationData.push(s,f)},n.runWithPriority=function(l,s){var f=mt;try{return mt=l,s()}finally{mt=f}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,s,f,g){var y=s.current,O=ur(),R=ma(y);return f=O6(f),s.context===null?s.context=f:s.pendingContext=f,s=To(O,R),s.payload={element:l},g=g===void 0?null:g,g!==null&&(s.callback=g),l=pa(y,s,R),l!==null&&(pi(l,y,R,O),Mf(l,y,R)),R},n};yb.exports=rR;var iR=yb.exports;const oR=rf(iR);var wb={exports:{}},os={};/**
 * @license React
 * react-reconciler-constants.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.
 */os.ConcurrentRoot=1;os.ContinuousEventPriority=4;os.DefaultEventPriority=16;os.DiscreteEventPriority=1;os.IdleEventPriority=536870912;os.LegacyRoot=0;wb.exports=os;var Cb=wb.exports;const k7={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let _7=!1,T7=!1;const X3=".react-konva-event";let Sb=!1;function aR(t){Sb=t}const lR="ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n",sR='ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n',uR={};function m1(t,e,n=uR){if(!_7&&"zIndex"in e&&(console.warn(sR),_7=!0),!T7&&e.draggable){var r=e.x!==void 0||e.y!==void 0,i=e.onDragEnd||e.onDragMove;r&&!i&&(console.warn(lR),T7=!0)}for(var o in n)if(!k7[o]){var a=o.slice(0,2)==="on",u=n[o]!==e[o];if(a&&u){var c=o.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t.off(c,n[o])}var d=!e.hasOwnProperty(o);d&&t.setAttr(o,void 0)}var h=Sb||e._useStrictMode,m={},v=!1;const C={};for(var o in e)if(!k7[o]){var a=o.slice(0,2)==="on",w=n[o]!==e[o];if(a&&w){var c=o.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e[o]&&(C[c]=e[o])}!a&&(e[o]!==n[o]||h&&e[o]!==t.getAttr(o))&&(v=!0,m[o]=e[o])}v&&(t.setAttrs(m),Ja(t));for(var c in C)t.on(c+X3,C[c])}function Ja(t){if(!Fe.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}const xb={},cR={};Yl.Node.prototype._applyProps=m1;function dR(t,e){if(typeof e=="string"){console.error("Do not use plain text as child of Konva.Node. You are using text: ".concat(e));return}t.add(e),Ja(t)}function fR(t,e,n){let r=Yl[t];r||(console.error("Konva has no node with the type ".concat(t,'. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/').concat(t,'"  If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html')),r=Yl.Group);const i={},o={};for(var a in e){var u=a.slice(0,2)==="on";u?o[a]=e[a]:i[a]=e[a]}const c=new r(i);return m1(c,o),c}function pR(t,e,n){console.error('Text components are not supported for now in ReactKonva. Your text is: "'.concat(t,'"'))}function hR(t,e,n){return!1}function gR(t){return t}function mR(){return null}function vR(){return null}function yR(t,e,n,r){return cR}function wR(){}function CR(t){}function SR(t,e){return!1}function xR(){return xb}function ER(){return xb}const bR=setTimeout,OR=clearTimeout,PR=-1;function kR(t,e){return!1}const _R=!1,TR=!0,IR=!0;function LR(t,e){e.parent===t?e.moveToTop():t.add(e),Ja(t)}function AR(t,e){e.parent===t?e.moveToTop():t.add(e),Ja(t)}function Eb(t,e,n){e._remove(),t.add(e),e.setZIndex(n.getZIndex()),Ja(t)}function MR(t,e,n){Eb(t,e,n)}function RR(t,e){e.destroy(),e.off(X3),Ja(t)}function zR(t,e){e.destroy(),e.off(X3),Ja(t)}function jR(t,e,n){console.error('Text components are not yet supported in ReactKonva. You text is: "'.concat(n,'"'))}function NR(t,e,n){}function DR(t,e,n,r,i){m1(t,i,r)}function BR(t){t.hide(),Ja(t)}function HR(t){}function FR(t,e){(e.visible==null||e.visible)&&t.show()}function $R(t,e){}function WR(t){}function VR(){}const GR=()=>Cb.DefaultEventPriority,UR=Object.freeze(Object.defineProperty({__proto__:null,appendChild:LR,appendChildToContainer:AR,appendInitialChild:dR,cancelTimeout:OR,clearContainer:WR,commitMount:NR,commitTextUpdate:jR,commitUpdate:DR,createInstance:fR,createTextInstance:pR,detachDeletedInstance:VR,finalizeInitialChildren:hR,getChildHostContext:ER,getCurrentEventPriority:GR,getPublicInstance:gR,getRootHostContext:xR,hideInstance:BR,hideTextInstance:HR,idlePriority:gd.unstable_IdlePriority,insertBefore:Eb,insertInContainerBefore:MR,isPrimaryRenderer:_R,noTimeout:PR,now:gd.unstable_now,prepareForCommit:mR,preparePortalMount:vR,prepareUpdate:yR,removeChild:RR,removeChildFromContainer:zR,resetAfterCommit:wR,resetTextContent:CR,run:gd.unstable_runWithPriority,scheduleTimeout:bR,shouldDeprioritizeSubtree:SR,shouldSetTextContent:kR,supportsMutation:IR,unhideInstance:FR,unhideTextInstance:$R,warnsIfNotActing:TR},Symbol.toStringTag,{value:"Module"}));var XR=Object.defineProperty,ZR=Object.defineProperties,YR=Object.getOwnPropertyDescriptors,I7=Object.getOwnPropertySymbols,KR=Object.prototype.hasOwnProperty,qR=Object.prototype.propertyIsEnumerable,L7=(t,e,n)=>e in t?XR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,A7=(t,e)=>{for(var n in e||(e={}))KR.call(e,n)&&L7(t,n,e[n]);if(I7)for(var n of I7(e))qR.call(e,n)&&L7(t,n,e[n]);return t},QR=(t,e)=>ZR(t,YR(e));function bb(t,e,n){if(!t)return;if(n(t)===!0)return t;let r=e?t.return:t.child;for(;r;){const i=bb(r,e,n);if(i)return i;r=e?null:r.sibling}}function Ob(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const Z3=Ob(j.createContext(null));class Pb extends j.Component{render(){return j.createElement(Z3.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:M7,ReactCurrentDispatcher:R7}=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function JR(){const t=j.useContext(Z3);if(t===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const e=j.useId();return j.useMemo(()=>{for(const r of[M7==null?void 0:M7.current,t,t==null?void 0:t.alternate]){if(!r)continue;const i=bb(r,!1,o=>{let a=o.memoizedState;for(;a;){if(a.memoizedState===e)return!0;a=a.next}});if(i)return i}},[t,e])}function ez(){var t;const e=JR(),[n]=j.useState(()=>new Map);n.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const i="Provider"in r.type?r.type:r.type._context;i&&i!==Z3&&!n.has(i)&&n.set(i,(t=R7==null?void 0:R7.current)==null?void 0:t.readContext(Ob(i)))}r=r.return}return n}function tz(){const t=ez();return j.useMemo(()=>Array.from(t.keys()).reduce((e,n)=>r=>j.createElement(e,null,j.createElement(n.Provider,QR(A7({},r),{value:t.get(n)}))),e=>j.createElement(Pb,A7({},e))),[t])}function nz(t){const e=p.useRef({});return p.useLayoutEffect(()=>{e.current=t}),p.useLayoutEffect(()=>()=>{e.current={}},[]),e.current}const rz=t=>{const e=p.useRef(),n=p.useRef(),r=p.useRef(),i=nz(t),o=tz(),a=u=>{const{forwardedRef:c}=t;c&&(typeof c=="function"?c(u):c.current=u)};return p.useLayoutEffect(()=>(n.current=new Yl.Stage({width:t.width,height:t.height,container:e.current}),a(n.current),r.current=fd.createContainer(n.current,Cb.LegacyRoot,!1,null),fd.updateContainer(p.createElement(o,{},t.children),r.current),()=>{Yl.isBrowser&&(a(null),fd.updateContainer(null,r.current,null),n.current.destroy())}),[]),p.useLayoutEffect(()=>{a(n.current),m1(n.current,t,i),fd.updateContainer(p.createElement(o,{},t.children),r.current,null)}),p.createElement("div",{ref:e,id:t.id,accessKey:t.accessKey,className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})},Y3="Layer",iz="Group",kb="Rect",_b="Ellipse",oz="Line",v1="Image",az="Text",lz="RegularPolygon",sz="Arrow",Tb="Transformer",fd=oR(UR);fd.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:p.version,rendererPackageName:"react-konva"});const Ib=p.forwardRef((t,e)=>p.createElement(Pb,{},p.createElement(rz,{...t,forwardedRef:e}))),uz=aR;var Cv=function(t,e,n,r){return Math.min(t/n,e/r)||1},C0="FIE_root",cz="FIE_design-layer",Lb="FIE_transformers-layer",Ab="FIE_original-image",Mb="FIE_nodes-transformer",Va="watermark",Sv="353297d2-40b4-4684-a875-45a2178a8157",Rb=.92,Vt={FINETUNE:"Finetune",FILTERS:"Filters",ADJUST:"Adjust",WATERMARK:"Watermark",ANNOTATE:"Annotate",RESIZE:"Resize"},Q={CROP:"Crop",ROTATE:"Rotate",FLIP_X:"Flip_X",FLIP_Y:"Flip_Y",BRIGHTNESS:"Brightness",CONTRAST:"Contrast",HSV:"HueSaturationValue",WARMTH:"Warmth",BLUR:"Blur",THRESHOLD:"Threshold",POSTERIZE:"Posterize",PIXELATE:"Pixelate",NOISE:"Noise",FILTERS:"Filters",RECT:"Rect",ELLIPSE:"Ellipse",POLYGON:"Polygon",TEXT:"Text",LINE:"Line",IMAGE:"Image",ARROW:"Arrow",WATERMARK:"Watermark",PEN:"Pen",RESIZE:"Resize"},K3={X:"X",Y:"Y"},Qo=1,Vu=["png","jpeg","jpg","webp"],dz=[].concat(Vu,["svg","gif","avif","apng"]),z7=Vu[0],Go={DEFAULT:"default",DRAW:"crosshair",SELECT:"pointer",MOVE:"move",DRAG:"GRAB"},qd="Crop",zb="custom",as="ellipse",Pn={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},j7={WIDTH:14,HEIGHT:14},jb={AFTER_SAVE:"after-saving",CLOSE_BUTTON:"close-button-clicked",BACK_BUTTON:"back-button-clicked"},Gu={WARNING:"warning",ERROR:"error"},N7={top:"north",bottom:"south",left:"west",center:"center",right:"east"},fz={northwest:"top-left",northcenter:"top-center",northeast:"top-right",centerwest:"center-left",centercenter:"center-center",centereast:"center-right",southwest:"bottom-left",southcenter:"bottom-center",southeast:"bottom-right"},pz=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2];e.ratio!==as||n?t.rect(e.x,e.y,e.width,e.height):t.ellipse(e.x+e.width/2,e.y+e.height/2,e.width/2,e.height/2,0,0,2*Math.PI)};function D7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function B7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?D7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):D7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Nb="ADD_FILTER",hz=function(t,e){return B7(B7({},t),{},{isDesignState:!e.dismissHistory,filter:e.filter||null})};function H7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function F7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?H7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):H7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var y1="HIDE_LOADER",gz=function(t){return F7(F7({},t),{},{isLoadingGlobally:!1})};function Db(t){return DE(t)||kE(t)||B3(t)||BE()}var Ns;const Bb=(Ns={theme:{palette:{"bg-primary-active":"#ECF3FF"},typography:{fontFamily:"Roboto, Arial"}},annotationsCommon:{fill:"#000000",stroke:"#000000",strokeWidth:0,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"#000000",shadowOpacity:1,opacity:1}},S(S(S(S(S(S(S(S(S(S(Ns,Q.TEXT,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",fontFamily:"Arial",fonts:[{label:"Arial",value:"Arial"},"Tahoma","Sans-serif",{label:"Comic Sans",value:"Comic-sans"}],fontSize:14,letterSpacing:0,lineHeight:1,align:"left",fontStyle:"normal",onFontChange:void 0}),Q.IMAGE,{fill:void 0,disableUpload:!1,gallery:[]}),Q.RECT,{cornerRadius:0}),Q.ELLIPSE,{}),Q.POLYGON,{sides:3}),Q.PEN,{strokeWidth:1,tension:.5,lineCap:"round",selectAnnotationAfterDrawing:!0}),Q.LINE,{lineCap:"butt",strokeWidth:1}),Q.ARROW,{strokeWidth:6,lineCap:"butt",pointerLength:void 0,pointerWidth:void 0}),Q.WATERMARK,{gallery:[],textScalingRatio:.5,imageScalingRatio:.5,hideTextWatermark:!1,onUploadWatermarkImgClick:void 0}),Q.CROP,{minWidth:j7.WIDTH,minHeight:j7.HEIGHT,width:null,height:null,maxWidth:null,maxHeight:null,ratio:null,ratioTitleKey:void 0,noPresets:!1,autoResize:!1,presetsItems:[],presetsFolders:[],lockCropAreaAt:null}),S(S(S(S(S(S(S(S(S(S(Ns,Q.ROTATE,{angle:60,componentType:"slider"}),"tabsIds",[]),"defaultTabId",Vt.ADJUST),"defaultToolId",Q.CROP),"onClose",void 0),"onSave",void 0),"onBeforeSave",void 0),"closeAfterSave",!1),"defaultSavedImageName",void 0),"defaultSavedImageType",null),S(S(S(S(S(S(S(S(S(S(Ns,"defaultSavedImageQuality",.92),"forceToPngInEllipticalCrop",!1),"useBackendTranslations",!0),"translations",null),"language","en"),"avoidChangesNotSavedAlertOnLeave",!1),"loadableDesignState",null),"moreSaveOptions",[]),"savingPixelRatio",4),"previewPixelRatio",window&&window.devicePixelRatio||1),S(S(S(S(S(S(S(S(S(S(Ns,"showBackButton",!1),"useCloudimage",!1),"cloudimage",{token:"",dontPrefixUrl:!1,domain:"cloudimg.io",version:"",loadableQuery:"",secureProtocol:!0,imageSealing:{enable:!1,salt:"",charCount:10,includeParams:[]}}),"observePluginContainerSize",!1),"showCanvasOnly",!1),"getCurrentImgDataFnRef",void 0),"onModify",void 0),"useZoomPresetsMenu",!0),"disableZooming",!1),"noCrossOrigin",!1),S(S(Ns,"disableSaveIfNoChanges",!1),"removeSaveButton",!1));function mz(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vz(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},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=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0},f:function u(){try{o||n.return==null||n.return()}finally{if(a)throw u}}}}function vz(t,e){if(t){if(typeof t=="string")return $7(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$7(t,e):void 0}}function $7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ge={apply:function(e){for(var n=e.data,r=n.length,i=arguments.length,o=Array(1<i?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(var u=0;u<r;u+=4){var c,d=mz(o);try{for(d.s();!(c=d.n()).done;){var h=c.value,m=h([n[u],n[u+1],n[u+2]]),v=Le(m,3);n[u]=v[0],n[u+1]=v[1],n[u+2]=v[2]}}catch(C){d.e(C)}finally{d.f()}}},brightness:function(e){return function(n){var r=e;return r=1<r?1:r,r=-1>r?-1:r,r=~~(255*r),[n[0]+r,n[1]+r,n[2]+r]}},contrast:function(e){return function(n){var r=e;r*=255;var i=259*(r+255)/(255*(259-r));return[i*(n[0]-128)+128,i*(n[1]-128)+128,i*(n[2]-128)+128]}},saturation:function(e){return function(n){var r=e;r=-1>r?-1:r;var i=n[0],o=n[1],a=n[2],u=.2989*i+.587*o+.114*a;return[-u*r+i*(1+r),-u*r+o*(1+r),-u*r+a*(1+r)]}},grayscale:function(){return function(e){var n=e[0],r=e[1],i=e[2];return[,,,].fill(.2126*n+.7152*r+.0722*i)}},sepia:function(e){return function(n){var r=n[0],i=n[1],o=n[2];return[r*(1-.607*e)+.769*i*e+.189*o*e,.349*r*e+i*(1-.314*e)+.168*o*e,.272*r*e+.534*i*e+o*(1-.869*e)]}},adjustRGB:function(e){return function(n){return[n[0]*e[0],n[1]*e[1],n[2]*e[2]]}},colorFilter:function(e){return function(n){var r=n[0],i=n[1],o=n[2],a=e[3];return[r-(r-e[0])*a,i-(i-e[1])*a,o-(o-e[2])*a]}}};function q3(t){ge.apply(t,function(e){var n=(e[0]+e[1]+e[2])/3>100,r=n?255:0;return[r,r,r]})}q3.filterName="BlackAndWhite";var yz=.1,wz=.1,Cz=.15;function Q3(t){ge.apply(t,ge.brightness(yz),ge.contrast(wz),ge.saturation(Cz))}Q3.filterName="Clarendon";var Sz=.04,xz=-.15;function J3(t){ge.apply(t,ge.sepia(Sz),ge.contrast(xz))}J3.filterName="Gingham";var Ez=.1;function e5(t){ge.apply(t,ge.grayscale(),ge.brightness(Ez));var e=t.data;e.length}e5.filterName="Moon";var bz=.08,Oz=[1,1.03,1.05],Pz=.12;function t5(t){ge.apply(t,ge.brightness(bz),ge.adjustRGB(Oz),ge.saturation(Pz))}t5.filterName="Lark";var kz=.4,_z=.13,Tz=-.05;function n5(t){ge.apply(t,ge.sepia(kz),ge.brightness(_z),ge.contrast(Tz))}n5.filterName="Reyes";var Iz=[1.01,1.04,1],Lz=.3;function r5(t){ge.apply(t,ge.adjustRGB(Iz),ge.saturation(Lz))}r5.filterName="Juno";var Az=.1,Mz=-.5;function i5(t){ge.apply(t,ge.brightness(Az),ge.saturation(Mz))}i5.filterName="Slumber";var Rz=[1.04,1,1.02],zz=-.05;function o5(t){ge.apply(t,ge.adjustRGB(Rz),ge.saturation(zz))}o5.filterName="Crema";var jz=.05,Nz=-.03;function a5(t){ge.apply(t,ge.brightness(jz),ge.saturation(Nz))}a5.filterName="Ludwig";var Dz=[228,130,225,.13],Bz=-.2;function l5(t){ge.apply(t,ge.colorFilter(Dz),ge.saturation(Bz))}l5.filterName="Aden";var Hz=[1.05,1.1,1];function s5(t){ge.apply(t,ge.adjustRGB(Hz))}s5.filterName="Perpetua";var Fz=.3,$z=.15;function u5(t){ge.apply(t,ge.saturation(Fz),ge.brightness($z))}u5.filterName="Amaro";var Wz=[230,115,108,.05],Vz=.15;function c5(t){ge.apply(t,ge.colorFilter(Wz),ge.saturation(Vz))}c5.filterName="Mayfair";var Gz=[255,170,0,.1],Uz=.09,Xz=.1;function d5(t){ge.apply(t,ge.colorFilter(Gz),ge.brightness(Uz),ge.saturation(Xz))}d5.filterName="Rise";var Zz=[1,1,1.25],Yz=.1,Kz=.15;function f5(t){ge.apply(t,ge.adjustRGB(Zz),ge.contrast(Yz),ge.brightness(Kz))}f5.filterName="Hudson";var qz=[255,225,80,.08],Qz=.1,Jz=.05;function p5(t){ge.apply(t,ge.colorFilter(qz),ge.saturation(Qz),ge.contrast(Jz))}p5.filterName="Valencia";var ej=[255,255,0,.07],tj=.2,nj=.15;function h5(t){ge.apply(t,ge.colorFilter(ej),ge.saturation(tj),ge.contrast(nj))}h5.filterName="XPro2";var rj=-.15,ij=.1;function g5(t){ge.apply(t,ge.contrast(rj),ge.saturation(ij))}g5.filterName="Sierra";var oj=[100,28,210,.03],aj=.1;function m5(t){ge.apply(t,ge.grayscale(),ge.colorFilter(oj),ge.brightness(aj))}m5.filterName="Willow";var lj=.15,sj=.2;function v5(t){ge.apply(t,ge.contrast(lj),ge.saturation(sj))}v5.filterName="LoFi";var uj=.1,cj=.15;function y5(t){ge.apply(t,ge.contrast(uj),ge.saturation(cj))}y5.filterName="Hefe";var dj=[220,115,188,.12],fj=-.05;function w5(t){ge.apply(t,ge.colorFilter(dj),ge.contrast(fj))}w5.filterName="Nashville";var pj=.1,hj=.3;function C5(t){ge.apply(t,ge.brightness(pj),ge.sepia(hj))}C5.filterName="Stinson";var gj=[255,225,0,.05],mj=.06,vj=.06;function S5(t){ge.apply(t,ge.colorFilter(gj),ge.brightness(mj),ge.contrast(vj))}S5.filterName="Vesper";var yj=[255,165,40,.2];function x5(t){ge.apply(t,ge.colorFilter(yj))}x5.filterName="Earlybird";var wj=.2,Cj=[140,10,185,.1];function E5(t){ge.apply(t,ge.contrast(wj),ge.colorFilter(Cj))}E5.filterName="Brannan";var Sj=-.1,xj=-.1;function b5(t){ge.apply(t,ge.brightness(Sj),ge.saturation(xj))}b5.filterName="Sutro";var Ej=.1,bj=[255,145,0,.2];function O5(t){ge.apply(t,ge.sepia(Ej),ge.colorFilter(bj))}O5.filterName="Toaster";var Oj=.1,Pj=[255,255,0,.2];function P5(t){ge.apply(t,ge.brightness(Oj),ge.colorFilter(Pj))}P5.filterName="Walden";var kj=[255,25,0,.15],_j=.1;function k5(t){ge.apply(t,ge.colorFilter(kj),ge.brightness(_j))}k5.filterName="NinteenSeventySeven";var Tj=[255,140,0,.1],Ij=[1.15,1.05,1],Lj=.35;function _5(t){ge.apply(t,ge.colorFilter(Tj),ge.adjustRGB(Ij),ge.saturation(Lj))}_5.filterName="Kelvin";var Aj=[225,240,0,.1],Mj=.25,Rj=.05;function T5(t){ge.apply(t,ge.colorFilter(Aj),ge.saturation(Mj),ge.contrast(Rj))}T5.filterName="Maven";var zj=.06,jj=.1;function I5(t){ge.apply(t,ge.sepia(zj),ge.brightness(jj))}I5.filterName="Ginza";var Nj=.35,Dj=.1;function L5(t){ge.apply(t,ge.saturation(Nj),ge.brightness(Dj))}L5.filterName="Skyline";var Bj=.15,Hj=.1;function A5(t){ge.apply(t,ge.contrast(Bj),ge.brightness(Hj))}A5.filterName="Dogpatch";var Fj=[25,240,252,.05],$j=.3;function M5(t){ge.apply(t,ge.colorFilter(Fj),ge.sepia($j))}M5.filterName="Brooklyn";var Wj=[208,208,86,.2],Vj=.15;function R5(t){ge.apply(t,ge.colorFilter(Wj),ge.contrast(Vj))}R5.filterName="Helena";var Gj=[255,160,25,.1],Uj=.1;function z5(t){ge.apply(t,ge.colorFilter(Gj),ge.brightness(Uj))}z5.filterName="Ashby";var Xj=[255,50,80,.12],Zj=.05;function j5(t){ge.apply(t,ge.colorFilter(Xj),ge.contrast(Zj))}j5.filterName="Charmes";const Yj=Object.freeze(Object.defineProperty({__proto__:null,Aden:l5,Amaro:u5,Ashby:z5,BlackAndWhite:q3,Brannan:E5,Brooklyn:M5,Charmes:j5,Clarendon:Q3,Crema:o5,Dogpatch:A5,Earlybird:x5,Gingham:J3,Ginza:I5,Hefe:y5,Helena:R5,Hudson:f5,Juno:r5,Kelvin:_5,Lark:t5,LoFi:v5,Ludwig:a5,Maven:T5,Mayfair:c5,Moon:e5,Nashville:w5,NinteenSeventySeven:k5,Perpetua:s5,Reyes:n5,Rise:d5,Sierra:g5,Skyline:L5,Slumber:i5,Stinson:C5,Sutro:b5,Toaster:O5,Valencia:p5,Vesper:S5,Walden:P5,Willow:m5,XPro2:h5},Symbol.toStringTag,{value:"Module"}));var Hb=function(t){return t?Yj[t]||fn.Filters[t]:null};function N5(t){for(var e=this.warmth(),n=t.data,r=n.length,i=0;i<r;i+=4)n[i]+=e,n[i+2]-=e}N5.finetuneName="Warmth";H.addGetterSetter(fn.Image,"warmth",0,ke(),H.afterSetFilter);function Fb(t){for(var e=this.threshold(),n=t.data,r=n.length,i=0;i<r;i+=4)e===0||(n[i]=n[i]>=e?255:0,n[i+1]=n[i+1]>=e?255:0,n[i+2]=n[i+2]>=e?255:0)}Fb.finetuneName="CustomThreshold";H.addGetterSetter(fn.Image,"threshold",0,ke,H.afterSetFilter);const Kj=Object.freeze(Object.defineProperty({__proto__:null,CustomThreshold:Fb,Warmth:N5},Symbol.toStringTag,{value:"Module"}));var $b=function(t){return Array.isArray(t)&&0<t.length?t.map(function(e){return fn.Filters[e]||Kj[e]}):[]};function W7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function B2(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?W7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):W7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Wb=function(){var t,e,n,r,i=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},o=B2({},i.loadableDesignState);Array.isArray(o.finetunes)&&(o.finetunes=$b(o.finetunes)),o.filter&&(o.filter=Hb(o.filter));var a=!!i.loadableDesignState||!!(i.useCloudimage&&(!((t=i.cloudimage)===null||t===void 0)&&t.loadableQuery));return B2(B2({imgSrc:typeof i.source=="string"?i.source:((e=i.source)===null||e===void 0?void 0:e.src)||"",finetunes:[],finetunesProps:{},filter:null,adjustments:{crop:{ratio:i[Q.CROP].ratio,ratioTitleKey:(n=i[Q.CROP].ratioTitleKey)!==null&&n!==void 0?n:i[Q.CROP].ratio,width:null,height:null,x:0,y:0},isFlippedX:!1,isFlippedY:!1,rotation:0},annotations:{},resize:{},shownImageDimensions:{}},o),{},{pointerCssIcon:Go.DEFAULT,canvasScale:1,zoom:{factor:Qo,x:null,y:null},isLoadingGlobally:!0,selectionsIds:[],tabId:i.defaultTabId||null,toolId:i.defaultToolId||null,feedback:{},pastDesignStates:[],futureDesignStates:[],isResetted:(r=!a)===null||r===void 0||r,haveNotSavedChanges:!1,latestColors:{},showTabsMenu:!1})},Uu=function(t,e){var n=Wb(e?t:Bb);return{imgSrc:t.imgSrc||n.imgSrc,finetunes:t.finetunes||n.finetunes,finetunesProps:t.finetunesProps||n.finetunesProps,filter:t.filter||n.filter,adjustments:t.adjustments||n.adjustments,annotations:t.annotations||n.annotations,resize:t.resize||n.resize}};function V7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function H2(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?V7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):V7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var D5="REDO",qj=function(t){if(t.futureDesignStates&&0<t.futureDesignStates.length){var e=Uu(t),n=Db(t.futureDesignStates),r=n[0],i=n.slice(1),o=[e].concat(en(t.pastDesignStates||[]));return H2(H2(H2({},t),r),{},{selectionsIds:[],pastDesignStates:o,futureDesignStates:i,hasUndo:!0,hasRedo:0<i.length,haveNotSavedChanges:!0})}return t};function G7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gc(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?G7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):G7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var B5="RESET",Qj=function(t,e){var n=Uu(Gc(Gc({},e.config),{},{imgSrc:t.imgSrc}),!0);return Gc(Gc(Gc({},t),n),{},{selectionsIds:[],isResetted:!0,pastDesignStates:[],futureDesignStates:[],hasUndo:!1,hasRedo:!1,haveNotSavedChanges:!1})};function U7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function X7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?U7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):U7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var el="SET_FEEDBACK",Jj=function(t,e){return X7(X7({},t),{},{isLoadingGlobally:!1,feedback:e.feedback||{}})};function Z7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Y7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Z7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Z7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var H5="SHOW_LOADER",eN=function(t){return Y7(Y7({},t),{},{isLoadingGlobally:!0})};function Me(t,e){var n=j.forwardRef(t);return n.displayName=e||t.name,n}var tN=["color","stroke","size"],nN=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.stroke,o=i===void 0?"currentColor":i,a=t.size,u=a===void 0?14:a,c=se(t,tN);return p.createElement("svg",J({ref:e,width:u,height:u,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),p.createElement("path",{d:"M23.54 1.53186C23.54 0.96198 24.002 0.5 24.5719 0.5C25.1417 0.5 25.6037 0.961981 25.6037 1.53186V5.82108C25.6037 6.39096 25.1417 6.85294 24.5719 6.85294C24.002 6.85294 23.54 6.39096 23.54 5.82108V1.53186ZM23.54 43.1985C23.54 42.6287 24.002 42.1667 24.5719 42.1667C25.1417 42.1667 25.6037 42.6287 25.6037 43.1985V47.4877C25.6037 48.0576 25.1417 48.5196 24.5719 48.5196C24.002 48.5196 23.54 48.0576 23.54 47.4877V43.1985ZM47.4876 23.5397C48.0574 23.5397 48.5194 24.0017 48.5194 24.5716C48.5194 25.1415 48.0574 25.6034 47.4876 25.6034H43.1983C42.6285 25.6034 42.1665 25.1415 42.1665 24.5716C42.1665 24.0017 42.6285 23.5397 43.1984 23.5397H47.4876ZM5.8209 23.5397C6.39078 23.5397 6.85276 24.0017 6.85276 24.5716C6.85276 25.1415 6.39078 25.6034 5.82089 25.6034H1.53168C0.961798 25.6034 0.499817 25.1415 0.499817 24.5716C0.499817 24.0017 0.961797 23.5397 1.53168 23.5397H5.8209ZM41.6177 39.8976C42.0207 40.3006 42.0207 40.9539 41.6177 41.3569C41.2147 41.7599 40.5614 41.7599 40.1584 41.3569L37.1255 38.324C36.7225 37.921 36.7225 37.2677 37.1255 36.8647C37.5285 36.4617 38.1818 36.4617 38.5848 36.8647L41.6177 39.8976ZM12.1551 10.4347C12.558 10.8377 12.558 11.491 12.1551 11.894C11.7521 12.297 11.0988 12.297 10.6958 11.894L7.66285 8.86105C7.25989 8.45808 7.25989 7.80474 7.66286 7.40178C8.06582 6.99881 8.71916 6.99881 9.12213 7.40178L12.1551 10.4347ZM9.12179 41.617C8.71882 42.0199 8.06548 42.0199 7.66251 41.617C7.25955 41.214 7.25955 40.5607 7.66251 40.1577L10.6954 37.1248C11.0984 36.7218 11.7518 36.7218 12.1547 37.1248C12.5577 37.5277 12.5577 38.1811 12.1547 38.584L9.12179 41.617ZM38.5862 12.1549C38.1832 12.5579 37.5299 12.5579 37.1269 12.1549C36.724 11.752 36.724 11.0986 37.1269 10.6957L40.1599 7.66274C40.5628 7.25977 41.2162 7.25977 41.6191 7.66274C42.0221 8.06571 42.0221 8.71905 41.6191 9.12201L38.5862 12.1549ZM38.7161 24.5098C38.7161 32.3555 32.3559 38.7157 24.5102 38.7157C16.6645 38.7157 10.3043 32.3555 10.3043 24.5098C10.3043 16.6641 16.6645 10.3039 24.5102 10.3039C32.3559 10.3039 38.7161 16.6641 38.7161 24.5098ZM24.5102 36.652C31.2161 36.652 36.6524 31.2157 36.6524 24.5098C36.6524 17.8039 31.2161 12.3676 24.5102 12.3676C17.8043 12.3676 12.3681 17.8039 12.3681 24.5098C12.3681 31.2157 17.8043 36.652 24.5102 36.652Z",fill:r,stroke:o}))}),F5=j.createContext({});function Vb(){return vL()}function rN(t){var e=t.replace(/^@media( ?)/m,""),n=j.useState(function(){return window.matchMedia(e).matches}),r=Le(n,2),i=r[0],o=r[1];return j.useEffect(function(){var a=!0,u=window.matchMedia(e),c=function(){a&&o(u.matches)};return c(),u.addEventListener("change",c),function(){a=!1,u.removeEventListener("change",c)}},[e,matchMedia]),i}const xv={name:"Name",save:"Save",saveAs:"Save as",back:"Back",loading:"Loading...",resetOperations:"Reset/delete all operations",changesLoseWarningHint:"If you press button “reset” your changes will lost. Would you like to continue?",discardChangesWarningHint:"If you close modal, your last change will not be saved.",cancel:"Cancel",apply:"Apply",warning:"Warning",confirm:"Confirm",discardChanges:"Discard changes",undoTitle:"Undo last operation",redoTitle:"Redo last operation",showImageTitle:"Show original image",zoomInTitle:"Zoom in",zoomOutTitle:"Zoom out",toggleZoomMenuTitle:"Toggle zoom menu",adjustTab:"Adjust",finetuneTab:"Finetune",filtersTab:"Filters",watermarkTab:"Watermark",annotateTabLabel:"Annotate",resize:"Resize",resizeTab:"Resize",imageName:"Image name",invalidImageError:"Invalid image provided.",uploadImageError:"Error while uploading the image.",areNotImages:"are not images",isNotImage:"is not image",toBeUploaded:"to be uploaded",cropTool:"Crop",original:"Original",custom:"Custom",square:"Square",landscape:"Landscape",portrait:"Portrait",ellipse:"Ellipse",classicTv:"Classic TV",cinemascope:"Cinemascope",arrowTool:"Arrow",blurTool:"Blur",brightnessTool:"Brightness",contrastTool:"Contrast",ellipseTool:"Ellipse",unFlipX:"Un-Flip X",flipX:"Flip X",unFlipY:"Un-Flip Y",flipY:"Flip Y",hsvTool:"HSV",hue:"Hue",brightness:"Brightness",saturation:"Saturation",value:"Value",imageTool:"Image",importing:"Importing...",addImage:"+ Add image",uploadImage:"Upload image",fromGallery:"From gallery",lineTool:"Line",penTool:"Pen",polygonTool:"Polygon",sides:"Sides",rectangleTool:"Rectangle",cornerRadius:"Corner Radius",resizeWidthTitle:"Width in pixels",resizeHeightTitle:"Height in pixels",toggleRatioLockTitle:"Toggle ratio lock",resetSize:"Reset to original image size",rotateTool:"Rotate",textTool:"Text",textSpacings:"Text spacings",textAlignment:"Text alignment",fontFamily:"Font family",size:"Size",letterSpacing:"Letter Spacing",lineHeight:"Line height",warmthTool:"Warmth",addWatermark:"+ Add watermark",addTextWatermark:"+ Add text watermark",addWatermarkTitle:"Choose the watermark type",uploadWatermark:"Upload watermark",addWatermarkAsText:"Add as text",padding:"Padding",paddings:"Paddings",shadow:"Shadow",horizontal:"Horizontal",vertical:"Vertical",blur:"Blur",opacity:"Opacity",transparency:"Transparency",position:"Position",stroke:"Stroke",saveAsModalTitle:"Save as",extension:"Extension",format:"Format",nameIsRequired:"Name is required.",quality:"Quality",imageDimensionsHoverTitle:"Saved image size (width x height)",cropSizeLowerThanResizedWarning:"Note, the selected crop area is lower than the applied resize which might cause quality decrease",actualSize:"Actual size (100%)",fitSize:"Fit size",addImageTitle:"Select image to add...",mutualizedFailedToLoadImg:"Failed to load image.",tabsMenu:"Menu",download:"Download",width:"Width",height:"Height",plus:"+",cropItemNoEffect:"No preview available for this crop item"};function K7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ev(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?K7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):K7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Dh={},$5=Ev({},xv),q7="Error while loading translations from backend.",Gb=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"en";return Object.assign($5,Dh[e==null?void 0:e.toLowerCase()]||{},t)},iN=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[];return new Promise(function(e,n){var r=new XMLHttpRequest;r.responseType="json",r.onload=function(){if(200<=r.status&&300>r.status)e(r.response);else{var i;console.warn("Error in sending translation key to backend ".concat((i=r.response)===null||i===void 0?void 0:i.hint,", ").concat(r.status)),n()}},r.onerror=function(){var i;console.warn("Error in sending translation key to backend ".concat((i=r.response)===null||i===void 0?void 0:i.hint,", ").concat(r.status)),n()},r.open("POST","https://neo.wordplex.io/api/import/request-translations?grid_uuid=".concat(Sv)),r.send(JSON.stringify({grid_uuid:Sv,translations_requests:t}))})},oN=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"en",e=1<arguments.length?arguments[1]:void 0;return new Promise(function(n,r){var i=t.toLowerCase(),o=new XMLHttpRequest;o.responseType="json",o.onload=function(){if(200<=o.status&&300>o.status){(o.response||[]).forEach(function(h){Dh[i]=Ev(Ev({},Dh[i]),{},S({},h.translation_key,h.translations[i]))});var a=[];Object.keys(xv).forEach(function(h){var m;h&&!((m=Dh[i])!==null&&m!==void 0&&m[h])&&a.push({key:h,lang:i,default:xv[h]})}),0<a.length&&iN(a),Gb(e,i),n($5)}else{var u,c,d;console.error("Status code: ".concat(o.status)),console.error(((u=o.response)===null||u===void 0?void 0:u.msg)||((c=o.response)===null||c===void 0?void 0:c.msg)||((d=o.response)===null||d===void 0?void 0:d.details)||q7),r()}},o.onerror=function(){console.error("Status code ".concat(o.status,", error: ").concat(q7)),r()},o.open("GET","https://i18n.ultrafast.io/api/export?grid=".concat(Sv)),o.send()})},aN=function(t){return $5[t]||t||""},lN=function(t,e){return pC[e.type]&&pC[e.type](t,e.payload)||t};function Q7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function J7(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Q7(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Q7(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var F2=!0,Ub=function(t){var e=t.children,n=t.config,r=n===void 0?{}:n,i=SN(lN,Wb(r),r),o=Le(i,2),a=o[0],u=o[1];j.useEffect(function(){return F2=!0,function(){F2=!1}},[]);var c=j.useCallback(function(){F2&&u.apply(void 0,arguments)},[u]);j.useEffect(function(){Gb(r.translations,r.language)},[r.useBackendTranslations,r.language,r.translations]);var d=Vb(),h=j.useMemo(function(){return J7(J7({},a),{},{config:r,theme:d,dispatch:c,t:aN})},[r,a]);return p.createElement(F5.Provider,{value:h},e)};Ub.defaultProps={config:{}};var sN=function(t){var e=t.children,n=t.overridingValue;return p.createElement(F5.Provider,{value:n},e)},Qe=function(){return j.useContext(F5)};function e9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function t9(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?e9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):e9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ff=function(t,e){var n=Qe(),r=n.dispatch,i=n.finetunes,o=n.finetunesProps,a=j.useCallback(function(u){r({type:NP,payload:{finetune:t,finetuneProps:u}})},[]);return j.useEffect(function(){i.includes(t)||a(t9(t9({},e),o))},[]),j.useMemo(function(){return[o,a]},[o])},uN=function(){var t=Qe(),e=t.dispatch,n=t.filter,r=j.useCallback(function(i){e({type:Nb,payload:{filter:i}})},[]);return j.useMemo(function(){return[n,r]},[n])},w1=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return"".concat(t).concat(t?"-":"").concat(parseInt(Date.now()*Math.random(),10))},C1=function(t){var e,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:300;return function(){var r,i;clearTimeout(e);for(var o=arguments.length,a=Array(o),u=0;u<o;u++)a[u]=arguments[u];var c=a[0],d=a.slice(1);e=setTimeout(t.bind.apply(t,[null,(r=c==null||(i=c.target)===null||i===void 0?void 0:i.value)!==null&&r!==void 0?r:c].concat(en(d))),n)}},bv=function(){var t,e,n=document,r=n.body,i=document.documentElement,o=((t=window)===null||t===void 0?void 0:t.pageYOffset)||i.scrollTop||r.scrollTop,a=((e=window)===null||e===void 0?void 0:e.pageXOffset)||i.scrollLeft||r.scrollLeft;return{topOffset:o,leftOffset:a}},Xb=function(t){if(!t)return null;var e=t.getBoundingClientRect(),n=document,r=n.body,i=bv(),o=i.topOffset,a=i.leftOffset,u=document.documentElement,c=u.clientTop||r.clientTop||0,d=u.clientLeft||r.clientLeft||0,h=e.top+o-c,m=e.left+a-d;return{top:Math.round(h),left:Math.round(m),width:e.width,height:e.height}},_n=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=2<arguments.length?arguments[2]:void 0;return Math.min(Math.max(e,+t),n||1e6)},Bh=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.parent,r=n.getStage(),i=r.attrs.zoomFactor,o=n.getRelativePointerPosition();return{offsetX:_n(o.x,0,e.width/(r.scaleX()/i))+n.attrs.xPadding,offsetY:_n(o.y,0,e.height/(r.scaleY()/i))+n.attrs.yPadding}},n9=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0,r={},i=n.parent.attrs;return r.x=Math.min(t.offsetX,e.startedX)-i.xPadding||0,r.y=Math.min(t.offsetY,e.startedY)-i.yPadding||0,r.width=t.offsetX-e.startedX,r.height=t.offsetY-e.startedY,r.startedX=e.startedX-i.xPadding||0,r.startedY=e.startedY-i.yPadding||0,r},cN=["width","height","startedX","startedY"];function r9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function i9(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?r9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var dN=S(S(S(S(S(S(S({},Q.RECT,fn.Rect),Q.ELLIPSE,fn.Ellipse),Q.POLYGON,fn.RegularPolygon),Q.LINE,fn.Line),Q.IMAGE,fn.Image),Q.TEXT,fn.Text),Q.ARROW,fn.Arrow),Zb=[Q.LINE,Q.ARROW],fN=[].concat(Zb,[Q.ELLIPSE,Q.POLYGON]),o9=function(t){var e,n,r;return new dN[t.name](i9(i9({},t),{},{opacity:(e=t.opacity)!==null&&e!==void 0?e:.7,x:(n=t.x)!==null&&n!==void 0?n:0,y:(r=t.y)!==null&&r!==void 0?r:0,width:Math.abs(t.width)||0,height:Math.abs(t.height)||0},Zb.includes(t.name)?{stroke:t.stroke||"#000000"}:{}))},pN=function(t,e,n){var r=t.width,i=t.height,o=t.startedX,a=t.startedY,u=se(t,cN),c=Math.abs(r),d=Math.abs(i),h=0>r,m=0>i;switch(e){case Q.RECT:n?(u.width=Math.sqrt(c*c+d*d),u.height=u.width,u.x-=h?u.width-c:0,u.y-=m?u.height-d:0):(u.width=c,u.height=d);break;case Q.ELLIPSE:n?(u.radiusX=Math.sqrt(c*c+d*d)/2,u.radiusY=u.radiusX,u.x-=h?2*u.radiusX-c:0,u.y-=m?2*u.radiusY-d:0):(u.radiusX=c/2,u.radiusY=d/2),u.offsetX=-u.radiusX,u.offsetY=-u.radiusY;break;case Q.POLYGON:u.radius=(c+d)/2,u.x-=h?2*u.radius-c:0,u.y-=m?2*u.radius-d:0,u.offsetX=-u.radius,u.offsetY=-u.radius;break;case Q.LINE:case Q.ARROW:u.x=o,u.y=a,u.points=[0,0],n?u.points.push(c>=d?r:0,d>c?i:0):u.points=[0,0,r,i];break;default:u.width=c,u.height=d}return u},hN=["id","x","y","points"],gN=["startedX","startedY","offsetX","offsetY","width","height"];function a9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ds(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?a9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var co={startedX:void 0,startedY:void 0,isOutOfCanvas:!1},Lr={passive:!0},Uc=1,Bs=null,Xc=null,Ar=null,mN=function(t,e,n,r){var i=function(){return Xb(t.content)},o=function(x){Xc=o9(Ds(Ds({},x),{},{name:Q.RECT,fill:"",stroke:"#000000",strokeWidth:2,shadowColor:"#ffffff",shadowBlur:1,shadowOpacity:.7})),n.add(Xc)},a=function(x){Bs=o9(x),n.add(Bs),x.name===Q.TEXT&&o(x),Ar=x},u=function(x,P){var b=pN(x,Ar.name,P);Xc&&Xc.setAttrs(b),Bs.setAttrs(b),Ar=Ds(Ds({},Ar),b)},c=function(x){var P=Bh(n,i());u(n9(P,co,n),x.shiftKey)},d=function(){n&&Bs&&n.destroyChildren()},h=function(x){var P;if(!(1<((P=x.evt.touches)===null||P===void 0?void 0:P.length))){var b=Bh(n,i());co.isOutOfCanvas&&(document.removeEventListener("mousemove",c,Lr),document.removeEventListener("touchmove",c,Lr),co.isOutOfCanvas=!1);var E=n9(b,co,n);if(Bs)u(E,x.evt.shiftKey);else{e.id,e.x,e.y,e.points;var k=se(e,hN);a(Ds(Ds({},k),E))}t.setAttrs({isDrawing:!0})}},m=function(){co.isOutOfCanvas||(document.addEventListener("mousemove",c,Lr),document.addEventListener("touchmove",c,Lr),co.isOutOfCanvas=!0)},v=function(){var x,P;if(d(),Ar&&(Ar.width>=Uc&&Ar.height>=Uc||Ar.radiusX>=Uc&&Ar.radiusY>=Uc||(x=Ar.points)!==null&&x!==void 0&&x[2]||(P=Ar.points)!==null&&P!==void 0&&P[3]||Ar.radius>=Uc)){var b=Ar;b.startedX,b.startedY,b.offsetX,b.offsetY;var E=b.width,k=b.height,T=se(b,gN);fN.includes(e.name)||(T.width=E,T.height=k),r(T,!0)}Bs=null,Xc=null,Ar=null,t.setAttrs({isDrawing:!1}),t.off("mousemove touchmove",h),t.off("mouseleave touchcancel",m),document.removeEventListener("mouseup",v,Lr),document.removeEventListener("touchend",v,Lr),document.removeEventListener("mouseleave",v,Lr),document.removeEventListener("touchcancel",v,Lr),document.removeEventListener("mousemove",c,Lr),document.removeEventListener("touchmove",c,Lr),co.isOutOfCanvas=!1},C=function(x){var P;if(x.evt.preventDefault(),!(x.target.attrs.draggable||1<((P=x.evt.touches)===null||P===void 0?void 0:P.length))){d();var b=Bh(n,i());co.startedX=b.offsetX,co.startedY=b.offsetY,co.isOutOfCanvas=!1,t.on("mousemove touchmove",h),t.on("mouseleave touchcancel",m),document.addEventListener("mouseup",v,Lr),document.addEventListener("touchend",v,Lr),document.addEventListener("mouseleave",v,Lr),document.addEventListener("touchcancel",v,Lr)}};return t.on("mousedown touchstart",C),function(){d(),t.off("mousedown touchstart",C)}},Yb=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:[];return j.useCallback(C1(t,e),n)},vN=["fonts","onFontChange"],yN=["x","y","width","height","radius","radiusX","radiusY","points","image","text","scaleX","scaleY","rotation"],wN=["shouldSave","neverSave"];function l9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function cn(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?l9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var tl=function(){var t,e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},n=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1],r=Qe(),i=r.dispatch,o=r.previewGroup,a=r.annotations,u=r.selectionsIds,c=u===void 0?[]:u,d=r.config,h=cn(cn({},d.annotationsCommon),d[((t=a[c[0]])===null||t===void 0?void 0:t.name)||e.name]),m=j.useState(function(){return cn(cn(cn({},h),e),a[c[0]])}),v=Le(m,2),C=v[0],w=v[1],x=j.useRef(),P=o==null?void 0:o.getStage(),b=j.useCallback(function(L){L.fonts,L.onFontChange;var A=se(L,vN);i({type:Fl,payload:A}),A.id&&e.name!==Q.PEN&&C1(function(){i({type:qu,payload:{annotationId:A.id}})},30)()},[]),E=Yb(function(L){w(function(A){return cn(cn({},A),{},{shouldSave:!1,neverSave:!1},typeof L=="function"?L(A):L)})},15),k=j.useCallback(function(L,A){if(L.name===A){L.x,L.y,L.width,L.height,L.radius,L.radiusX,L.radiusY,L.points,L.image,L.text,L.scaleX,L.scaleY,L.rotation;var M=se(L,yN);return cn(cn(cn({},h),e),M)}return cn(cn({},h),e)},[]),T=j.useCallback(function(L){w(function(A){var M=k(A,L.name||e.name);return cn(cn(cn({},M),L),{},{id:L.id||w1(L.name||A.name),shouldSave:!0,neverSave:!1})})},[]);return j.useEffect(function(){var L=C.shouldSave,A=C.neverSave,M=se(C,wN),z=c.length===1&&a[c[0]];!A&&(L||z)&&b(cn(cn({},M),{},{id:L?M.id:z.id}))},[C]),j.useEffect(function(){setTimeout(function(){c.length===1?(x.current=C,w(cn(cn({},a[c[0]]),{},{neverSave:!0}))):x.current&&(w(cn(cn({},x.current),{},{neverSave:!0})),x.current=null)})},[c,a]),j.useEffect(function(){var L=null;if(P&&n){var A=k(C,e.name);L=mN(P,cn(cn({},A),{},{name:e.name}),o,T)}return function(){L&&L()}},[P,C,o]),j.useMemo(function(){return[C,E,T]},[C,E,T])},CN=["isDesignState"];function s9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gp(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?s9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var u9,SN=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},r=Gp(Gp({},e),{},{pastDesignStates:[],futureDesignStates:[],hasRedo:!1,hasUndo:!1});return j.useReducer(function(o,a){var u=t(o,a)||r;if([W4,D5,B5].includes(a.type))return u;if(u.isDesignState){var c=Uu(o);u.isDesignState;var d=se(u,CN),h=Gp(Gp({},d),{},{pastDesignStates:[c].concat(en(o.pastDesignStates)),hasUndo:!0,hasRedo:!1,futureDesignStates:[],isResetted:!1,haveNotSavedChanges:!0});return u9=setTimeout(function(){clearTimeout(u9),typeof n.onModify=="function"&&n.onModify(h)}),h}return u},r)},xN=function(){var t=Qe(),e=t.tabId,n=t.dispatch,r=j.useMemo(function(){return e!==Vt.ANNOTATE&&e!==Vt.WATERMARK},[e]),i=j.useCallback(function(h){n({type:Fl,payload:h})},[]),o=j.useCallback(function(h){i({id:h.target.id(),x:h.target.x(),y:h.target.y()})},[]),a=j.useCallback(function(h){var m={id:h.target.id(),rotation:h.target.rotation(),x:h.target.x(),y:h.target.y()};return h.target.name()===Q.TEXT?(m.width=h.target.width()*h.target.scaleX(),m.height=h.target.height()*h.target.scaleY(),m.scaleX=1,m.scaleY=1):(m.scaleX=h.target.scaleX(),m.scaleY=h.target.scaleY()),m},[]),u=j.useCallback(function(h){i(a(h))},[]),c=j.useCallback(function(h){h.target.name()===Q.TEXT&&h.target.setAttrs(a(h))}),d=j.useCallback(function(h){if(!(h.target.id()===Va||h.target.getStage().attrs.isDrawing)){var m=h.evt.ctrlKey||h.evt.shiftKey||h.evt.metaKey;n({type:qu,payload:{annotationId:h.target.id(),multiple:m}}),n({type:T0,payload:{toolId:h.target.name(),keepSelections:m}})}},[]);return j.useMemo(function(){return r?{}:{onTransform:c,onTransformEnd:u,onDragEnd:o,onClick:d,onTap:d}},[r])},W5=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){},e=j.useRef(t),n=j.useRef(),r=j.useCallback(function(d){d.forEach(function(h){if(h.contentRect){var m=h.contentRect,v=m.width,C=m.height;e.current({entry:h,width:v,height:C})}})},[]),i=j.useCallback(function(d){e.current=d},[]),o=j.useCallback(function(){n.current||(n.current=new ResizeObserver(r))},[]),a=j.useCallback(function(d,h){d&&(!n.current&&o(),n.current.observe(d),h&&(e.current=h))},[]),u=j.useCallback(function(d,h){n.current&&d&&(n.current.unobserve(d),h&&(e.current=h))},[]),c=j.useCallback(function(){n.current&&n.current.disconnect()},[]);return j.useEffect(function(){return o(),c},[]),j.useMemo(function(){return[a,u,i]},[])},Ki=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:438;return window.matchMedia("(max-width: ".concat(t,"px)")).matches},mo=function(t,e,n,r,i){return(t-e)*(i-r)/(n-e)+r};function c9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $2(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?c9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var S0=function(t,e,n){var r,i;return $2($2($2({},t.x||t.x===0?{x:Math.round(mo(t.x,0,e.width,0,n.width))}:{}),t.y||t.y===0?{y:Math.round(mo(t.y,0,e.height,0,n.height))}:{}),{},{width:Math.round(mo((r=t.width)!==null&&r!==void 0?r:e.width,0,e.width,0,n.width)),height:Math.round(mo((i=t.height)!==null&&i!==void 0?i:e.height,0,e.height,0,n.height))})},Ga=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,r=Math.abs(n),i=Math.round(n),o=90<r,a=o?r-90:r,u=o?e:t,c=o?t:e,d=a*Math.PI/180,h=Math.abs(Math.sin(d)),m=Math.abs(Math.cos(d));return{width:Math.round(u*m)+Math.round(c*h),height:Math.round(u*h)+Math.round(c*m),offsetTop:0<=i&&90>=i?0:function(){return 0>i&&-90<i||90<i?u*h:c*m+u*h}(),offsetLeft:0>=i&&-90<=i?0:function(){return 90<i?u*m+c*h:c*h}()}},EN=function(t){if(t instanceof HTMLImageElement){var e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.width,e.height=t.height,n.drawImage(t,0,0),e.toDataURL()}return""},Kb=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,n=e,r=t;if(!n&&dz.some(function(a){return t.lastIndexOf(".".concat(a))===t.length-".".concat(a).length})){var i,o=(i=t.slice(t.lastIndexOf(".")+1))===null||i===void 0?void 0:i.toLowerCase();n=o&&Vu.includes(o)?o:z7,r=t.slice(0,t.lastIndexOf("."))}return n=n||z7,{fullName:"".concat(r,".").concat(n),name:r,extension:n}},jo=function(t,e){return t<<e|t>>>32-e},Zc=function(t){var e,n,r="";for(e=7;0<=e;e--)n=15&t>>>4*e,r+=n.toString(16);return r},bN=function(t){for(var e,n=t.replace(/\r\n/g,"\n"),r="",i=0;i<n.length;i++)e=n.charCodeAt(i),128>e?r+=String.fromCharCode(e):127<e&&2048>e?(r+=String.fromCharCode(192|e>>6),r+=String.fromCharCode(128|63&e)):(r+=String.fromCharCode(224|e>>12),r+=String.fromCharCode(128|63&e>>6),r+=String.fromCharCode(128|63&e));return r},ON=function(t){var e,n,r,i,o,a,u,c,d,h=t,m=Array(80),v=1732584193,C=4023233417,w=2562383102,x=271733878,P=3285377520;h=bN(h);var b=h.length,E=[];for(n=0;n<b-3;n+=4)r=h.charCodeAt(n)<<24|h.charCodeAt(n+1)<<16|h.charCodeAt(n+2)<<8|h.charCodeAt(n+3),E.push(r);switch(b%4){case 0:n=2147483648;break;case 1:n=8388608|h.charCodeAt(b-1)<<24;break;case 2:n=32768|(h.charCodeAt(b-2)<<24|h.charCodeAt(b-1)<<16);break;case 3:n=128|(h.charCodeAt(b-3)<<24|h.charCodeAt(b-2)<<16|h.charCodeAt(b-1)<<8);break}for(E.push(n);E.length%16!=14;)E.push(0);for(E.push(b>>>29),E.push(4294967295&b<<3),e=0;e<E.length;e+=16){for(n=0;16>n;n++)m[n]=E[e+n];for(n=16;79>=n;n++)m[n]=jo(m[n-3]^m[n-8]^m[n-14]^m[n-16],1);for(i=v,o=C,a=w,u=x,c=P,n=0;19>=n;n++)d=4294967295&jo(i,5)+(o&a|~o&u)+c+m[n]+1518500249,c=u,u=a,a=jo(o,30),o=i,i=d;for(n=20;39>=n;n++)d=4294967295&jo(i,5)+(o^a^u)+c+m[n]+1859775393,c=u,u=a,a=jo(o,30),o=i,i=d;for(n=40;59>=n;n++)d=4294967295&jo(i,5)+(o&a|o&u|a&u)+c+m[n]+2400959708,c=u,u=a,a=jo(o,30),o=i,i=d;for(n=60;79>=n;n++)d=4294967295&jo(i,5)+(o^a^u)+c+m[n]+3395469782,c=u,u=a,a=jo(o,30),o=i,i=d;v=4294967295&v+i,C=4294967295&C+o,w=4294967295&w+a,x=4294967295&x+u,P=4294967295&P+c}return d=Zc(v)+Zc(C)+Zc(w)+Zc(x)+Zc(P),d.toLowerCase()},PN=function(t){return btoa(t).replace(/=*$/g,"")},kN=function(t,e){return ON(t).slice(0,e)},_N=function(t,e,n,r){var i=PN(t),o=kN(e+i+n,r);return[o?"ci_seal=".concat(o):"",i?"ci_eqs=".concat(i):""].filter(function(a){return a}).join("&")},TN=function(t,e,n){var r=e||{},i=r.salt,o=r.charCount,a=r.includeParams,u=a===void 0?[]:a,c=!u||(u==null?void 0:u.length)===0,d="",h="",m=[],v=[];return t.split("&").forEach(function(C){var w=C.split("="),x=Le(w,1),P=x[0];-1<(u==null?void 0:u.indexOf(P))||c?m.push(C):v.push(C)}),0<v.length&&(h=v.join("&")),d=_N(m.join("&"),n,i,o),[d,h].filter(function(C){return C}).join("&")},IN=function(){var t,e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",n={hex:"000000",opacity:1};if(!e)return n;if(e.startsWith("#"))return{hex:e.replace("#",""),opacity:1};var r=e.split(","),i=Le(r,4),o=i[0],a=i[1],u=i[2],c=i[3];return o&&a&&u?(o=parseFloat(o.replace(/rgba?\(/,"").trim()).toString(16),a=parseFloat(a.trim()).toString(16),u=parseFloat(u.trim()).toString(16),c=c?parseFloat((t=c.trim())!==null&&t!==void 0?t:1):void 0,o.length===1&&(o="0".concat(o)),a.length===1&&(a="0".concat(a)),u.length===1&&(u="0".concat(u)),{hex:"".concat(o).concat(a).concat(u),opacity:c}):n},Zt=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:5;return t&&+parseFloat(t).toFixed(e)},LN=["width","height","x","y","opacity","scaleX","scaleY"];function d9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function f9(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?d9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var AN=function(t,e,n,r){if(t.noEffect)return t.ratio.includes("=")?t.ratio:"gravity=".concat(t.ratio);var i=(r||{}).lockCropAreaAt,o=S0(t,e,n),a=o.x,u=o.y,c=o.width,d=o.height,h=t.ratio===as?"&radius=".concat(Math.max(c,d),"&force_format=png"):"";if(i){var m=i.split("-"),v=Le(m,2),C=v[0],w=v[1],x="".concat(N7[C]).concat(N7[w]);return"gravity=".concat(x,"&aspect_ratio=").concat(Zt(typeof t.ratio=="string"?c/d:t.ratio,2)).concat(h)}return"tl_px=".concat(a,",").concat(u,"&br_px=").concat(a+c,",").concat(u+d).concat(h)},MN=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=t.width,n=t.height;return"w=".concat(e,"&h=").concat(n)},RN=function(t){return"r=".concat(-t)},zN=function(t,e){return"flip=".concat(t?"x":"").concat(e?"y":"")},jN=function(t){var e,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},i=n.width,o=n.height,a=n.x,u=n.y,c=n.opacity,d=n.scaleX,h=d===void 0?1:d,m=n.scaleY,v=m===void 0?1:m,C=se(n,LN),w=t.width*t.scaledBy,x=t.height*t.scaledBy,P="wat=1&wat_gravity=absolute&wat_pos=".concat(Math.floor(100*((a-(r.x||0))/w),2),"p,").concat(Math.floor(100*((u-(r.y||0))/x),2),"p");if(n.name===Q.TEXT){var b,E=IN(C.fill),k=E.hex,T=E.opacity;return"".concat(P,"&wat_text=").concat(C.text.replaceAll("\n",""),"&wat_font=").concat(C.fontFamily,"&wat_color=").concat(k,"&wat_opacity=").concat((b=T!=null?T:c)!==null&&b!==void 0?b:1,"&wat_fontsize=").concat(C.fontSize,"max")}var L=((e=C.image)===null||e===void 0?void 0:e.src)||C.image,A=!L.startsWith("blob:")&&L;return"".concat(P,"&wat_opacity=").concat(c,"&wat_scale=").concat(Zt(100*(i*h/w),2),"p,").concat(Zt(100*(o*v/x),2),"p").concat(A?"&wat_url=".concat(encodeURIComponent(A)):"")},Hh={Brighten:{cloudimage:{name:"bright",min:-100,max:100},internal:{propName:"brightness",min:-1,max:1}},Contrast:{cloudimage:{name:"contrast",min:-100,max:100},internal:{propName:"contrast",min:-100,max:100}},Blur:{cloudimage:{name:"blur",min:0,max:100},internal:{propName:"blurRadius",min:0,max:100}}},NN=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=[];return t.forEach(function(r){var i=(r.finetuneName||r.name)&&Hh[r.finetuneName||r.name];if(i){var o=Zt(mo(e[i.internal.propName],i.internal.min,i.internal.max,i.cloudimage.min,i.cloudimage.max),2);n.push("".concat(i.cloudimage.name,"=").concat(o))}}),n.join("&")},DN=function(t,e,n,r,i){var o=t.token,a=t.domain,u=t.dontPrefixUrl,c=t.version,d=t.imageSealing,h=t.secureProtocol,m=e.imgSrc,v=e.adjustments,C=v.crop,w=v.rotation,x=v.isFlippedX,P=v.isFlippedY,b=e.resize,E=b===void 0?{}:b,k=e.finetunes,T=k===void 0?{}:k,L=e.finetunesProps,A=e.annotations,M=A===void 0?{}:A,z=u?"":"http".concat(h?"s":"","://").concat(o,".").concat(a.replace(/^(https?:\/\/)?(www\.)?|^\.|\/$/g,""),"/").concat(c?"".concat(c,"/"):""),D=[];C.width&&C.height&&(C.x||C.x===0)&&(C.y||C.y===0)&&D.push(AN(C,n,r,i)),(E.width||E.height)&&D.push(MN(f9(f9({},r),E))),w&&D.push(RN(w)),(x||P)&&D.push(zN(x,P)),0<T.length&&L&&D.push(NN(T,L)),M[Va]&&D.push(jN(n,M[Va],C)),D.push("ci_url_encoded=1");var B=D.join("&");d.enable&&(B=TN(B,d,m)),B=B.replaceAll(" ","+");var X=!u||m.indexOf("?")===-1?"?":"&";return"".concat(z).concat(u?m:encodeURIComponent(m)).concat(B?"".concat(X).concat(B.replace(/&$/,"")):"")},BN=["filter"];function p9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bl(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?p9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var qb=function(){var t=Qe(),e=t.dispatch,n=t.designLayer,r=t.shownImageDimensions,i=t.originalImage,o=t.resize,a=t.adjustments,u=a.crop,c=a.rotation,d=c===void 0?0:c,h=a.isFlippedX,m=a.isFlippedY,v=t.config,C=v.savingPixelRatio,w=v.previewPixelRatio,x=v.forceToPngInEllipticalCrop,P=v.defaultSavedImageType,b=v.useCloudimage,E=v.cloudimage,k=v[Q.CROP];return b?function(){var L,A,M=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},z=Uu(t);z.filter;var D=se(z,BN),B=DN(E,D,r,i,k),X=S0({x:u.x,y:u.y,width:u.width,height:u.height},r,i),G={cloudimageUrl:B,width:(M==null||(L=M.size)===null||L===void 0?void 0:L.width)||X.width,height:(M==null||(A=M.size)===null||A===void 0?void 0:A.height)||X.height};return{imageData:G,designState:D}}:function(){var L=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=1<arguments.length&&arguments[1]!==void 0&&arguments[1],M=2<arguments.length&&arguments[2]!==void 0&&arguments[2],z=bl({size:o},L);fn.pixelRatio=A||C;var D=n.attrs,B=D.clipWidth,X=D.clipHeight,G=D.clipX,V=D.clipY;n.setAttr("isSaving",!0);var ne=n.getStage().clone({width:i.width,height:i.height,scaleX:h?-1:1,scaleY:m?-1:1}),ve=Le(ne.children,1),te=ve[0];ne.children[1].destroy();var pe=ne.findOne("#".concat(Ab));pe.cache();var Y={x:ne.width()/r.width,y:ne.height()/r.height};te.setAttrs({rotation:0,offsetX:0,offsetY:0,x:0,y:0,scaleX:Y.x,scaleY:Y.y});var de=bl(bl({},(!z.name||!z.extension)&&Kb(i.name,x&&u.ratio===as?"png":Vu.includes(P==null?void 0:P.toLowerCase())&&P)),z),ce=de.name,me=de.extension,re=de.quality,ee=re===void 0?92:re,ue=de.size,Ee=ue===void 0?{}:ue,W=["jpeg","jpg","webp"].includes(me),Se=S0(u.noEffect?{x:0,y:0}:{x:u.x||G,y:u.y||V,width:u.width||B,height:u.height||X},r,ne.attrs),ae=Ga(Se.width,Se.height,d);if(ne.setAttrs({offsetX:Se.width/2+Se.x,offsetY:Se.height/2+Se.y,width:ae.width,height:ae.height,x:ae.width/2,y:ae.height/2,rotation:d}),Ee.width){var ze=(h?-1:1)*(Ee.width/ne.width());ne.setAttrs({scaleX:ze,width:Ee.width,x:ne.x()*Math.abs(ze)})}if(Ee.height){var Ie=(m?-1:1)*(Ee.height/ne.height());ne.setAttrs({scaleY:Ie,height:Ee.height,y:ne.y()*Math.abs(Ie)})}var xe=bl({mimeType:"image/".concat(me==="jpg"?"jpeg":me)},W?{quality:ee}:{}),ye=ne.toCanvas(xe),Ge=ne.toDataURL(xe),Ze=bl(bl({},Uu(t)),{},{shownImageDimensions:{width:t.shownImageDimensions.width,height:t.shownImageDimensions.height,scaledBy:t.shownImageDimensions.scaledBy}});Ze.filter&&(Ze.filter=Ze.filter.filterName||Ze.filter.name),Ze.finetunes=Ze.finetunes.map(function($e){return $e.finetuneName||$e.name}),Object.keys(Ze.annotations).forEach(function($e){var dt,Ct=Ze.annotations[$e],qe=Ct.name===Q.IMAGE&&((dt=Ct.image)===null||dt===void 0?void 0:dt.src);qe&&qe.startsWith("blob:")?Ze.annotations[$e].image=EN(Ct.image):Ct.image instanceof HTMLImageElement&&(Ze.annotations[$e].image=qe)});var Ve=bl({fullName:"".concat(ce,".").concat(me),name:ce,extension:me,mimeType:"image/".concat(me),imageCanvas:ye,imageBase64:Ge,width:Ee.width||Se.width,height:Ee.height||Se.height},W?{quality:ee}:{});n.setAttr("isSaving",!1),e({type:VP}),pe.clearCache(),fn.pixelRatio=w;var ot=function(){e({type:y1})};return M||ot(),{imageData:Ve,designState:Ze,hideLoadingSpinner:ot}}},Uo={Left:"left",Right:"right",Top:"top",Bottom:"bottom"},Td={Primary:"primary",Secondary:"secondary",White:"white"},On={Primary:"primary",Secondary:"secondary",Basic:"basic",LinkPrimary:"link-primary",LinkSecondary:"link-secondary",LinkBasicPrimary:"link-basic-primary",LinkBasicSecondary:"link-basic-secondary",ErrorPrimary:"error-primary",ErrorSecondary:"error-secondary",ErrorBasic:"error-basic",WarningPrimary:"warning-primary",WarningSecondary:"warning-secondary",WarningBasic:"warning-basic"},_u={Primary:"primary",Secondary:"secondary",Basic:"basic"},nt={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg"},vt={Sm:"sm",Md:"md"},Qb={Default:"default",Localization:"localization"},HN=function(e){var n=e.theme.palette;return F(["color:"," !important;"],n[_.Error])},Up,Xp,Zp,Yp,FN=(Up={},S(Up,vt.Sm,"\n    padding: 8px 12px;\n    height: 32px;\n  "),S(Up,vt.Md,"\n    padding: 11px 16px;\n    height: 40px;\n  "),Up);Xp={},S(Xp,vt.Sm,"\n    padding: 4px 6px 4px 12px;\n    max-height: 32px;\n  "),S(Xp,vt.Md,"\n    padding: 0px 4px 0px 16px;\n    max-height: 40px;\n  ");var Jb=(Zp={},S(Zp,vt.Sm,function(t){var e=t.theme.typography.font;return F(["",""],e[Pe.InputMd])}),S(Zp,vt.Md,function(t){var e=t.theme.typography.font;return F(["",""],e[Pe.InputLg])}),Zp),$N=(Yp={},S(Yp,vt.Sm,function(t){var e=t.theme.typography.font;return F(e[Pe.LabelSmall])}),S(Yp,vt.Md,function(t){var e=t.theme.typography.font;return F(e[Pe.LabelMedium])}),Yp),WN=function(e){var n=e.theme.palette;return F(["background:"," !important;border:1px solid "," !important;"],n[_.BackgroundSecondary],n[_.Error])},V5="Label",VN=$.label.attrs({className:we(V5,"root")}).withConfig({componentId:"sc-16k2ql4-0"})(function(t){var e=t.size,n=e===void 0?vt.Md:e,r=t.error,i=r===void 0?!1:r,o=t.disabled,a=o===void 0?!1:o,u=t.htmlFor,c=t.theme;return F(["display:flex;align-items:center;color:",";font-style:normal;font-weight:normal;"," "," cursor:",";",";"],c.palette[_.TextSecondary],a&&F(["color:",";","{color:",";}"],c.palette[_.ButtonDisabledText],eO,c.palette[_.IconsMuted]),$N[n],u&&"pointer",i&&HN)}),GN=$.span.attrs({className:we(V5,"text")}).withConfig({componentId:"sc-16k2ql4-1"})(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),eO=$.span.attrs({className:we(V5,"Icon")}).withConfig({componentId:"sc-16k2ql4-2"})(function(t){var e=t.theme.palette,n=t.$end,r=n===void 0?!1:n;return F(["display:flex;",";color:",";"],r?"margin-left: 4px":"margin-right: 4px",e[_.IconsSecondary])}),UN=It({Label:VN,Icon:eO,Text:GN});const Fh=UN;var XN=["children","iconStart","iconEnd","error","disabled","size","type"],G5=ct(function(t,e){var n=t.children,r=t.iconStart,i=t.iconEnd,o=t.error,a=t.disabled,u=t.size,c=t.type,d=se(t,XN),h=j.useRef(null),m=j.useState(!1),v=Le(m,2),C=v[0],w=v[1],x=function(k,T){return p.createElement(Fh.Icon,{$end:T},typeof k=="function"?k({size:u==="md"?14:12}):k)},P=function(){if(typeof n=="string"&&C)return n},b=function(){if(h.current!==null&&h.current){var k,T;w((h==null||(k=h.current)===null||k===void 0?void 0:k.offsetWidth)<(h==null||(T=h.current)===null||T===void 0?void 0:T.scrollWidth))}};return p.createElement(Fh.Label,J({ref:e,error:o,disabled:a,size:u,type:c},d),r&&x(r,!1),p.createElement(Fh.Text,{title:P(),onMouseOver:b,ref:h},n),i&&x(i,!0))});G5.defaultProps={type:Qb.Default,error:!1};var U5={type:I.oneOf(ut(Qb)),iconStart:I.oneOfType([I.node,I.func]),iconEnd:I.oneOfType([I.node,I.func]),error:I.bool,size:I.oneOf(ut(vt)),htmlFor:I.string};G5.propTypes=U5;const Qt=G5;var ZN=$.div.withConfig({componentId:"sc-dwg14p-0"})(["width:fit-content;margin:0 auto;max-width:99.5%;max-height:170px;[data-phone='true'] &{padding:0;margin-top:8px;max-height:initial;}"]),YN=$.div.withConfig({componentId:"sc-dwg14p-1"})(["padding:8px 16px 16px 16px;display:flex;gap:12px;align-items:center;overflow:hidden;",""],function(t){var e=t.isPhoneScreen;return e&&"\n    justify-content: space-between;\n    padding: 12px;\n    gap: 8px;\n  "}),KN=$.div.withConfig({componentId:"sc-dwg14p-2"})(function(t){var e=t.theme,n=t.isPhoneScreen;return"\n    display: flex;\n    gap: 6px;\n    border-radius: 2px;\n    align-items: center;\n    justify-content: center;\n    padding: 8px 12px;\n\n    svg {\n      color: ".concat(e.palette[_.IconsPrimary],";\n    }\n\n    &,\n    * {\n      cursor: pointer;\n    }\n\n    &:hover {\n      ").concat(!n&&"background: ".concat(e.palette["bg-primary-active"],";"),"\n    }\n\n    &[aria-selected='true'] {\n      ").concat(!n&&"background: ".concat(e.palette["bg-primary-active"],";"),"\n      border-radius: 4px;\n\n      * {\n        color: ").concat(e.palette["accent-primary-active"],";\n      }\n    }\n\n    ").concat(n&&F(["display:flex;flex-direction:column;min-width:52px;min-height:52px;padding:8px;gap:4px;"]),"\n  ")}),X5=$(Qt).withConfig({componentId:"sc-dwg14p-3"})(function(t){var e=t.theme,n=t.isPhoneScreen;return F(["color:",";",";"],e.palette[_.TextPrimary],n&&e.typography.font[Pe.LabelExtraSmallUp])}),qN=$.div.withConfig({componentId:"sc-dwg14p-4"})(["position:relative;width:100%;transition:max-height 100ms ease-in-out;display:flex;justify-content:center;align-items:center;gap:24px;",";",""],function(t){return"\n      max-height: ".concat(t.hasChildren?"56px":0,";\n      margin: ").concat(t.hasChildren?"0 auto 8px":0,";\n    ")},function(t){var e=t.isPhoneScreen;return e&&"\n    max-height: unset;\n    flex-direction: column;\n    padding: 0 12px 8px 12px;\n    gap: 8px;\n    margin: 0;\n  "}),tO=function(t){var e=t.id,n=t.label,r=t.onClick,i=t.Icon,o=t.isSelected,a=t.children,u=t.className,c=Ki(320);return p.createElement(KN,{className:u,onClick:function(h){r(e,h)},"aria-selected":o,isPhoneScreen:c},p.createElement(i,{size:c?20:16}),n&&p.createElement(X5,{isPhoneScreen:c},n),a)};tO.defaultProps={isSelected:!1,id:void 0,children:null,label:""};const Dn=j.memo(tO);var nO=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_brightness-tool-button",id:Q.BRIGHTNESS,label:r("brightnessTool"),Icon:nN,onClick:e,isSelected:n})};nO.defaultProps={isSelected:!1};function QN(t){var e=t.controlled,n=t.default,r=j.useRef(e!==void 0),i=r.current,o=j.useState(n),a=Le(o,2),u=a[0],c=a[1],d=i?e:u,h=j.useCallback(function(m){i||c(m)},[]);return[d,h]}var JN=typeof window<"u"?j.useLayoutEffect:j.useEffect;function Hs(t){var e=j.useRef(t);return JN(function(){e.current=t}),j.useCallback(function(){return e.current.apply(void 0,arguments)},[])}var ic={Auto:"auto",On:"on",Off:"off"},oc="Slider",eD=$.span.attrs({className:we(oc,"root")}).withConfig({componentId:"sc-jjink6-0"})(function(t){var e=t.theme,n=t.disabled,r=n===void 0?!1:n;return F(["display:inline-block;border-radius:2px;position:relative;cursor:pointer;touch-action:none;color:",";height:4px;width:100%;padding:12px 0;"],r?e.palette[_.AccentPrimaryDisabled]:e.palette[_.BorderActiveBottom])}),tD=$.span.attrs({className:we(oc,"rail")}).withConfig({componentId:"sc-jjink6-1"})(["display:block;position:absolute;border-radius:inherit;background-color:currentColor;opacity:0.38;width:100%;height:inherit;top:50%;transform:translateY(-50%);"]),nD=$.span.attrs({className:we(oc,"Track")}).withConfig({componentId:"sc-jjink6-2"})(["display:block;position:absolute;border-radius:inherit;border:1px solid currentColor;background-color:currentColor;height:inherit;top:50%;transform:translateY(-50%);"]),rD=$.span.attrs({className:we(oc,"thumb")}).withConfig({componentId:"sc-jjink6-3"})(["position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:0;background-color:currentColor;display:flex;align-items:center;justify-content:center;top:50%;transform:translate(-50%,-50%);& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"]),iD=$.span.attrs({className:we(oc,"label")}).withConfig({componentId:"sc-jjink6-4"})(function(t){var e=t.theme,n=t.open,r=n===void 0?!1:n,i=t.disabled,o=i===void 0?!1:i;return F(["display:flex;align-items:center;justify-content:center;padding:6px 6px;border-radius:2px;position:absolute;top:-10px;font-size:10px;z-index:1;white-space:nowrap;transition:transform 150ms cubic-bezier(0.4,0,0.2,1) 0ms;transform-origin:bottom center;transform:",";background-color:",";color:#fff;cursor:pointer;transition:all 100ms ease-out;&::before{position:absolute;content:'';background-color:inherit;width:8px;height:8px;bottom:0px;left:50%;transform:translate(-50%,50%) rotate(45deg);}"],r?"translateY(-100%) scale(1)":"translateY(-100%) scale(0)",o?e.palette[_.AccentPrimaryDisabled]:e.palette[_.LinkStateless])}),oD=$.div.attrs({className:we(oc,"annotation")}).withConfig({componentId:"sc-jjink6-5"})(function(t){var e=t.theme;return F(["display:flex;justify-content:space-between;margin-top:12px;color:",";"],e.palette[_.TextSecondary])}),aD=It({Slider:eD,Rail:tD,Track:nD,Thumb:rD,SliderAnnotation:oD,LabelTooltip:iD});const Fs=aD;var lD=["defaultValue","disabled","disableSwap","hideTrack","hideAnnotation","value","min","max","onChange","onMouseDown","onMouseUp","step","labelTooltip","annotation","components","componentsProps"];function h9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ni(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?h9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var sD=2,g9="data-index",Z5=ct(function(t,e){var n=t.defaultValue,r=t.disabled,i=r===void 0?!1:r,o=t.disableSwap,a=o===void 0?!1:o,u=t.hideTrack,c=u===void 0?!1:u,d=t.hideAnnotation,h=d===void 0?!1:d,m=t.value,v=t.min,C=v===void 0?0:v,w=t.max,x=w===void 0?100:w,P=t.onChange,b=t.onMouseDown,E=t.onMouseUp,k=t.step,T=k===void 0?1:k,L=t.labelTooltip,A=L===void 0?ic.Off:L,M=t.annotation,z=M===void 0?"":M,D=t.components,B=D===void 0?{}:D,X=t.componentsProps,G=X===void 0?{}:X,V=se(t,lD),ne=j.useState(-1),ve=Le(ne,2),te=ve[0],pe=ve[1],Y=j.useState(-1),de=Le(Y,2),ce=de[0],me=de[1],re=j.useState(!1),ee=Le(re,2),ue=ee[0],Ee=ee[1],W=j.useRef(0),Se=j.useRef(0),ae=j.useRef(),ze=j.useRef(null),Ie=_E(e,ze),xe=QN({controlled:m,default:n!=null?n:C}),ye=Le(xe,2),Ge=ye[0],Ze=ye[1],Ve="horizontal",ot=Array.isArray(Ge),$e=ot?Ge.slice().sort(ME):[Ge],dt=function(lt){var Nt=lt.finger,Dt=lt.move,tn=Dt===void 0?!1:Dt,Hn=lt.values,bo=ze.current;if(bo){var eo=bo.getBoundingClientRect(),ds=eo.width,fs=eo.height,Gr=eo.bottom,ac=eo.left,Oo;Ve.indexOf("vertical")===0?Oo=(Gr-Nt.y)/fs:Oo=(Nt.x-ac)/ds,Ve.includes("-reverse")&&(Oo=1-Oo);var Ln;Ln=PL(Oo,C,x),T&&(Ln=_L(Ln,T,C)),Ln=_2(Ln,C,x);var Or=0;if(ot){tn?Or=Se.current:Or=TL(Hn,Ln),a&&(Ln=_2(Ln,Hn[Or-1]||-1/0,Hn[Or+1]||1/0));var lc=Ln;Ln=t7({values:Hn,newValue:Ln,index:Or}),!(a&&tn)&&Array.isArray(Ln)&&(Or=Ln.indexOf(lc),Se.current=Or)}return{newValue:Ln,activeIndex:Or}}return null},Ct=function(lt,Nt,Dt){P&&P(lt,Nt,Dt)},qe=function(lt){var Nt=Number(lt.currentTarget.getAttribute(g9)),Dt=lt.target.valueAsNumber;if(ot){a&&(Dt=_2(Dt,$e[Nt-1]||-1/0,$e[Nt+1]||1/0));var tn=Dt;Dt=t7({values:$e,newValue:Dt,index:Nt});var Hn=Nt;a||(Hn=Dt.indexOf(tn)),Mp({sliderRef:ze,activeIndex:Hn})}Ze(Dt),Ct(lt,Dt,Nt),E&&E(lt)},St=Hs(function(rt){var lt=Ap(rt,ae);if(lt){if(W.current+=1,rt.type==="mousemove"&&rt.buttons===0){At(rt);return}var Nt=dt({finger:lt,move:!0,values:$e}),Dt=Nt.newValue,tn=Nt.activeIndex;Mp({sliderRef:ze,activeIndex:tn,setActive:pe}),Ze(Dt),!ue&&W.current>sD&&Ee(!0),Ct(rt,Dt,tn)}}),At=Hs(function(rt){var lt=Ap(rt,ae);Ee(!1),lt&&(pe(-1),rt.type==="touchend"&&me(-1),E&&E(rt),ae.current=void 0,Tn())}),ft=Hs(function(rt){var lt=rt.changedTouches[0];lt!=null&&(ae.current=lt.identifier);var Nt=Ap(rt,ae),Dt=dt({finger:Nt,values:$e}),tn=Dt.newValue,Hn=Dt.activeIndex;Mp({sliderRef:ze,activeIndex:Hn,setActive:pe}),Ze(tn),Ct(rt,tn,Hn),W.current=0;var bo=Rh(ze.current);bo.addEventListener("touchmove",St),bo.addEventListener("touchend",At)}),Re=Hs(function(rt){var lt=Number(rt.currentTarget.getAttribute(g9));me(lt)}),Xe=Hs(function(){me(-1)}),Ut=Hs(function(rt){if(i)rt.preventDefault();else{if(b&&b(rt),rt.button!==0)return;rt.preventDefault();var lt=Ap(rt,ae),Nt=dt({finger:lt,values:$e}),Dt=Nt.newValue,tn=Nt.activeIndex;Mp({sliderRef:ze,activeIndex:tn,setActive:pe}),Ze(Dt),Ct(rt,Dt,tn),W.current=0;var Hn=Rh(ze.current);Hn.addEventListener("mousemove",St),Hn.addEventListener("mouseup",At)}}),Tn=j.useCallback(function(){var rt=Rh(ze.current);rt.removeEventListener("mousemove",St),rt.removeEventListener("mouseup",At),rt.removeEventListener("touchmove",St),rt.removeEventListener("touchend",At)},[At,St]);j.useEffect(function(){var rt=ze.current;if(rt)return function(){Tn()}},[Tn,ft]),j.useEffect(function(){i&&Tn()},[i,Tn]),i&&te!==-1&&pe(-1);var Ye=k2(ot?$e[0]:C,C,x),Ae=k2($e[$e.length-1],C,x)-Ye,at=Ni(Ni({},T2[Ve].offset(Ye)),T2[Ve].leap(Ae)),pt=G.rail,Et=typeof B.Rail=="function"?p.createElement(B.Rail,J({},pt,{style:Ni({},pt==null?void 0:pt.style)})):p.createElement(Fs.Rail,J({},pt,{style:Ni({},pt==null?void 0:pt.style)})),_t=G.track,En=!c&&(typeof B.Track=="function"?p.createElement(B.Track,J({},_t,{style:Ni(Ni({},at),_t==null?void 0:_t.style)})):p.createElement(Fs.Track,J({},_t,{style:Ni(Ni({},at),_t==null?void 0:_t.style)}))),ln=G.thumb,In=B.Thumb||Fs.Thumb,Vr=B.LabelTooltip||Fs.LabelTooltip,Ji=G.labelTooltip,Ti=z?" ".concat(z):"";return p.createElement(Fs.Slider,J({ref:Ie,disabled:i,onTouchStart:ft,onMouseDown:Ut},V),Et,En,$e.map(function(rt,lt){var Nt=k2(rt,C,x),Dt=T2[Ve].offset(Nt);return p.createElement(p.Fragment,{key:lt},p.createElement(In,J({"data-index":lt,onMouseOver:Re,onMouseLeave:Xe},ln,{style:Ni(Ni({},Dt),{},{pointerEvents:a&&te!==lt?"none":void 0},ln==null?void 0:ln.style)}),p.createElement("input",{"data-index":lt,type:"range",min:C,max:x,value:$e[lt],step:T,disabled:i,onChange:qe}),p.createElement(Vr,{open:(ce===lt||te===lt||A==="on")&&A!=="off",disabled:i,style:Ni({},Ji==null?void 0:Ji.style)},$e[lt],Ti)))}),!h&&p.createElement(Fs.SliderAnnotation,null,p.createElement("span",null,C,Ti),p.createElement("span",null,x,Ti)))});Z5.defaultProps={annotation:"MB",min:0,max:100,step:1,labelTooltip:ic.Off};Z5.propTypes={defaultValue:I.oneOfType([I.array,I.number]),value:I.oneOfType([I.array,I.number]),min:I.number,max:I.number,onChange:I.func,onMouseDown:I.func,onMouseUp:I.func,step:I.number,annotation:I.string,disabled:I.bool,disableSwap:I.bool,hideTrack:I.bool,hideAnnotation:I.bool,labelTooltip:I.oneOf(ut(ic)),components:I.shape({Rail:I.elementType,Track:I.elementType,Thumb:I.elementType,LabelTooltip:I.elementType}),componentsProps:I.object};const rO=Z5;var uD=$(rO).withConfig({componentId:"sc-1wort0h-0"})(["width:",";max-width:",";user-select:none;padding:0;margin-bottom:",";.SfxSlider-annotation{display:none;}.SfxSlider-thumb{background-color:",";}.SfxSlider-Track{height:2px;color:",";}.SfxSlider-rail{height:2px;background-color:",";}"],function(t){var e=t.width;return e||"104px"},function(t){var e=t.width;return e||"104px"},function(t){var e=t.noMargin;return e?"":"16px"},function(t){var e=t.theme.palette;return e[_.AccentStateless]},function(t){var e=t.theme.palette;return e[_.AccentStateless]},function(t){var e=t.theme.palette;return e[_.BordersItem]}),cD=["onChange"],Nn=function(t){var e=t.onChange,n=se(t,cD);return p.createElement(uD,J({annotation:"",onChange:function(i,o){return e?e(o):void 0}},n))},Y5={size:I.number,width:I.oneOfType([I.string,I.number]),height:I.oneOfType([I.string,I.number]),color:I.string,color2:I.string,stroke:I.string,stroke2:I.string,viewBox:I.string},dD=["color","size"],fD=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,dD);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8468 3.13984C11.0457 3.33138 11.0517 3.64791 10.8602 3.84682L6.04534 8.84682C5.95332 8.94238 5.82709 8.99746 5.69445 8.99991C5.5618 9.00237 5.43362 8.95201 5.33812 8.85992L0.152931 3.85992C-0.0458479 3.66824 -0.0516033 3.35171 0.140078 3.15293C0.331758 2.95415 0.648288 2.9484 0.847067 3.14008L5.67208 7.79277L10.1398 3.15318C10.3314 2.95427 10.6479 2.9483 10.8468 3.13984Z",fill:r}))});const pD=fD;var $s,hD=($s={},S($s,Uo.Right,F(["svg{transform:rotate(-90deg);transition:transform 150ms ease-out;}"])),S($s,Uo.Left,F(["svg{transform:rotate(90deg);transition:transform 150ms ease-out;}"])),S($s,Uo.Top,F(["svg{transform:rotate(180deg);transition:transform 150ms ease-out;}"])),S($s,Uo.Bottom,F(["svg{transform:rotate(0);transition:transform 150ms ease-out;}"])),$s),gD="ArrowTick",mD=$.span.attrs({className:we(gD,"root")}).withConfig({componentId:"sc-tlypde-0"})(function(t){var e=t.type,n=e===void 0?Uo.Right:e;return F(["display:inline-flex;",""],hD[n])}),vD=It({ArrowTick:mD});const yD=vD;var wD=["IconProps"],K5=ct(function(t,e){var n=t.IconProps,r=se(t,wD);return p.createElement(yD.ArrowTick,J({},r,{ref:e}),p.createElement(pD,n))});K5.defaultProps={type:Uo.Right};K5.propTypes={type:I.oneOf(ut(Uo)),IconProps:I.exact(Y5)};const iO=K5;var S1="AccordionHeader",CD=$.span.attrs({className:we(S1,"icon")}).withConfig({componentId:"sc-1dtjsgt-0"})(function(){return F(["display:inline-flex;padding-left:8px;"])}),SD=$.span.attrs({className:we(S1,"label")}).withConfig({componentId:"sc-1dtjsgt-1"})(function(t){var e=t.theme;return F(["",""],e.typography.font[Pe.ButtonSm])}),xD=$.div.attrs({className:we(S1,"root")}).withConfig({componentId:"sc-1dtjsgt-2"})(function(t){var e=t.theme,n=t.fullWidth;return F(["display:inline-flex;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:pointer;width:",";color:",";user-select:none;"],n?"100%":"auto",e.palette[_.LinkPrimary])}),ED=$.div.attrs({className:we(S1,"wrapper")}).withConfig({componentId:"sc-1dtjsgt-3"})(function(t){var e=t.theme;return F(["color:",";"],e.palette[_.LinkPrimary])}),bD=It({Header:xD,Wrapper:ED,Icon:CD,Label:SD});const Tu=bD;var OD=["expanded","label","onChange","onClick","onContextMenu","hideIcon","fullWidth","iconProps"];function m9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function PD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?m9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var q5=ct(function(t,e){var n=t.expanded,r=t.label,i=t.onChange,o=t.onClick,a=t.onContextMenu,u=t.hideIcon,c=t.fullWidth,d=t.iconProps,h=se(t,OD);return p.createElement(Tu.Header,J({ref:e,onClick:function(v){typeof i=="function"&&i(!n),typeof o=="function"&&o(v)},fullWidth:c},h),p.createElement(Tu.Label,{onContextMenu:a},r),!u&&p.createElement(Tu.Icon,{onContextMenu:a},p.createElement(iO,{type:n?Uo.Top:Uo.Bottom,IconProps:PD({size:11},d)})))});q5.defaultProps={expanded:!1,hideIcon:!1,fullWidth:!1};q5.propTypes={label:I.node.isRequired,expanded:I.bool,hideIcon:I.bool,fullWidth:I.bool,onChange:I.func,iconProps:I.exact(Y5)};const kD=q5;var _D="AccordionDetails",TD=$.div.attrs({className:we(_D,"root")}).withConfig({componentId:"sc-1wr6wpr-0"})(["margin:16px 0;"]),ID=It({AccordionDetails:TD});const oO=ID;var LD=["expanded","children"],Q5=ct(function(t,e){var n=t.expanded,r=t.children,i=se(t,LD);return p.createElement(p.Fragment,null,n&&p.createElement(oO.AccordionDetails,J({ref:e},i),r))});Q5.defaultProps={expanded:!1};Q5.propTypes={expanded:I.bool};const AD=Q5;var MD="Accordion",RD=$.div.attrs({className:we(MD,"root")}).withConfig({componentId:"sc-1g4tz7s-0"})([""]),zD=It({Accordion:RD});const jD=zD;var ND=["label","expanded","children","detailStyle","headerStyle","fullWidth","iconProps","onClick","onChange","onContextMenu","hideIcon"];function v9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function y9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var J5=ct(function(t,e){var n=t.label,r=t.expanded,i=t.children,o=t.detailStyle,a=t.headerStyle,u=t.fullWidth,c=t.iconProps,d=t.onClick,h=t.onChange,m=t.onContextMenu,v=t.hideIcon,C=se(t,ND);return p.createElement(jD.Accordion,J({ref:e},C),p.createElement(kD,{label:n,expanded:r,style:y9({},a),hideIcon:v,onClick:function(x){typeof h=="function"&&h(!r,x),typeof d=="function"&&d(x)},onContextMenu:m,iconProps:c,fullWidth:u}),p.createElement(AD,{expanded:r,style:y9({},o)},i))});J5.defaultProps={expanded:!1,hideIcon:!1};J5.propTypes={label:I.node.isRequired,expanded:I.bool,detailStyle:I.object,headerStyle:I.object,onChange:I.func,onContextMenu:I.func,hideIcon:I.bool,fullWidth:I.bool,iconProps:I.exact(Y5)};const aO=J5;var DD=["stroke","size"],BD=Me(function(t,e){var n=t.stroke,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?10:i,a=se(t,DD);return p.createElement("svg",J({ref:e,width:o*(51/56),height:o,viewBox:"0 0 51 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M12.2754 3L37.2754 27.0741L12.2754 53",stroke:r,strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}))});const HD=BD;var FD=["color","size"],lO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,FD);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M12.9783 2.30184C12.7972 2.12074 12.586 2 12.3143 2C12.0728 2 11.8314 2.09055 11.6503 2.30184L4.73816 9.84779L2.29327 7.34254C2.11217 7.16143 1.8707 7.07088 1.62923 7.07088C1.38776 7.07088 1.14629 7.19162 0.995367 7.37272C0.663345 7.76511 0.663345 8.36879 1.02555 8.73099L4.13448 11.9003C4.31559 12.0814 4.52687 12.1719 4.76835 12.1719C5.00982 12.1719 5.25129 12.0814 5.43239 11.8701L12.9783 3.62993C13.3406 3.2979 13.3406 2.66404 12.9783 2.30184Z",fill:r}))}),$D=["color","size"],WD=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,$D);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33984 12.111V2.04761C2.33984 1.49532 2.78756 1.04761 3.33984 1.04761H10.8182C11.3705 1.04761 11.8182 1.49532 11.8182 2.04761V12.111C11.8182 12.6633 11.3705 13.111 10.8182 13.111H3.33984C2.78756 13.111 2.33984 12.6633 2.33984 12.111ZM3.33984 12.111V2.04761L10.8182 2.04761L10.8182 12.111L3.33984 12.111Z",fill:r}),p.createElement("path",{d:"M13.66 4.97388C13.66 4.69774 13.4361 4.47388 13.16 4.47388C12.8838 4.47388 12.66 4.69774 12.66 4.97388V13.9523H5.40491C5.12876 13.9523 4.90491 14.1761 4.90491 14.4523C4.90491 14.7284 5.12876 14.9523 5.40491 14.9523H13.16C13.4361 14.9523 13.66 14.7284 13.66 14.4523V4.97388Z",fill:r}))});const sO=WD;var VD=["color","size"],GD=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,VD);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M25 31.625C8.64336 31.625 0.533984 17.3656 0.196875 16.759C-0.065625 16.2867 -0.065625 15.7129 0.196875 15.2406C0.533984 14.6344 8.64336 0.375 25 0.375C41.3566 0.375 49.466 14.6344 49.8031 15.241C50.0656 15.7133 50.0656 16.2871 49.8031 16.7594C49.466 17.3656 41.3566 31.625 25 31.625ZM3.40117 15.9977C5.25977 18.8145 12.557 28.5 25 28.5C37.4824 28.5 44.7473 18.8223 46.5988 16.0023C44.7402 13.1855 37.443 3.5 25 3.5C12.5176 3.5 5.25273 13.1777 3.40117 15.9977ZM25 25.375C19.8305 25.375 15.625 21.1695 15.625 16C15.625 10.8305 19.8305 6.625 25 6.625C30.1695 6.625 34.375 10.8305 34.375 16C34.375 21.1695 30.1695 25.375 25 25.375ZM25 9.75C21.5539 9.75 18.75 12.5539 18.75 16C18.75 19.4461 21.5539 22.25 25 22.25C28.4461 22.25 31.25 19.4461 31.25 16C31.25 12.5539 28.4461 9.75 25 9.75Z",fill:r}))});const UD=GD;var XD=["color","size"],ZD=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,XD);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.2553 6.05501C36.5966 5.71376 37.1514 5.71376 37.4926 6.05501C37.8339 6.39626 37.8339 6.95103 37.4926 7.29228L32.3765 12.4084C38.3601 15.8067 42.6046 20.7607 42.7917 20.9825C43.0682 21.3097 43.0699 21.7874 42.7936 22.113C42.3893 22.5908 32.7818 33.7978 22.0001 33.7978C18.9909 33.7978 15.9678 33.1203 13.0065 31.7785L7.74272 37.0423C7.57292 37.2121 7.34897 37.2978 7.12495 37.2978C6.90092 37.2978 6.67698 37.212 6.50545 37.0423C6.1642 36.701 6.1642 36.1462 6.50545 35.805L17.0426 25.2678C17.0453 25.265 17.0481 25.2622 17.0509 25.2595C17.0531 25.2573 17.0553 25.2551 17.0575 25.2529L25.7063 16.6041C25.7081 16.6023 25.7098 16.6005 25.7116 16.5987C25.7134 16.5969 25.7152 16.5952 25.717 16.5934L30.2895 12.0208C30.3028 12.0067 30.3164 11.9931 30.3304 11.9799L36.2553 6.05501ZM31.0895 13.6954L27.5301 17.2548C28.4835 18.476 28.9998 19.9721 28.9998 21.5478C28.9998 25.4083 25.8603 28.5478 21.9999 28.5478C20.4242 28.5478 18.9281 28.0314 17.7069 27.078L14.3353 30.4497C16.8728 31.5113 19.445 32.0478 22 32.0478C30.6537 32.0478 38.863 23.8071 40.9489 21.5478C39.6267 20.1195 35.855 16.3016 31.0895 13.6954ZM18.9574 25.8276C19.8392 26.458 20.8929 26.7977 21.9999 26.7977C24.8943 26.7977 27.2499 24.4422 27.2499 21.5477C27.2499 20.4409 26.9092 19.3873 26.2793 18.5056L18.9574 25.8276Z",fill:r}),p.createElement("path",{d:"M27.7418 10.3057C25.7504 9.63545 23.8184 9.29773 22.0001 9.29773C11.2183 9.29773 1.61084 20.5047 1.20659 20.9825C0.951064 21.2835 0.930064 21.721 1.15762 22.0482C1.27837 22.2215 4.17111 26.3287 9.18485 29.659C9.33358 29.7587 9.49985 29.806 9.66785 29.806C9.94963 29.806 10.2279 29.6695 10.3959 29.4122C10.6636 29.0115 10.5534 28.4672 10.1509 28.2012C6.46889 25.753 3.94889 22.7973 3.00561 21.595C5.01989 19.4075 13.2834 11.0478 22.0001 11.0478C23.6293 11.0478 25.3741 11.3558 27.1835 11.963C27.642 12.1275 28.139 11.8738 28.2913 11.4135C28.4453 10.955 28.2003 10.4598 27.7418 10.3057Z",fill:r}),p.createElement("path",{d:"M23.2197 14.6685C22.8224 14.5985 22.4164 14.5477 22 14.5477C18.1395 14.5477 15 17.6872 15 21.5477C15 21.9642 15.0508 22.3702 15.1225 22.7674C15.1977 23.1909 15.567 23.4902 15.9817 23.4902C16.0325 23.4902 16.0832 23.4867 16.1357 23.4762C16.6099 23.3922 16.9285 22.9371 16.8445 22.4629C16.7902 22.1654 16.75 21.8627 16.75 21.5477C16.75 18.6532 19.1055 16.2977 22 16.2977C22.315 16.2977 22.6177 16.338 22.9152 16.3905C23.3807 16.485 23.8444 16.1559 23.9284 15.6817C24.0124 15.2075 23.694 14.7525 23.2197 14.6685Z",fill:r}))});const YD=ZD;var uO=function(e,n){return e||n?hr[_.BackgroundHover]:hr[_.BackgroundStateless]},cO=function(e,n){return e?hr[_.AccentPrimaryHover]:n?hr[_.TextPlaceholder]:hr[_.TextPrimary]},dO=function(e,n){return e?hr[_.BordersItem]:n?hr[_.BordersSecondary]:hr[_.BorderPrimaryStateless]},fO=function(e,n){navigator.clipboard.writeText(e),n(!0)},Kp={Text:"text",Password:"password"},qi="Input",pd=$.span.attrs({className:we(qi,"Icon")}).withConfig({componentId:"sc-150k0cz-0"})(function(t){var e=t.iconClickStart,n=t.iconClickEnd,r=t.disabled,i=t.readOnly,o=t.iconType,a=t.theme.palette;return F(["display:flex;color:",";cursor:",";",""],a[_.IconsPrimary],(e||n)&&!r&&!i?"pointer":"default",o==="end"&&F(["color:",";"],a[_.IconsSecondary]))}),pO=$.span.attrs({className:we(qi,"CopyIcon")}).withConfig({componentId:"sc-150k0cz-1"})(function(t){var e=t.theme.palette;return F(["display:flex;color:",";cursor:pointer;"],e[_.IconsSecondary])}),KD=$(pO).attrs({className:we(qi,"PasswordIcon")}).withConfig({componentId:"sc-150k0cz-2"})([""]),qD=$.div.attrs({className:we(qi,"Container")}).withConfig({componentId:"sc-150k0cz-3"})(function(){return F(["display:block;color:inherit;font-size:inherit;width:100%;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;"])}),Ov=$.input.attrs({className:we(qi,"Base")}).withConfig({componentId:"sc-150k0cz-4"})(function(t){var e=t.theme.palette,n=t.isEllipsis,r=n===void 0?!1:n;return F(["display:block;color:inherit;width:100%;min-width:fit-content;margin:0;padding:0;border:0;background-color:transparent;outline:none;"," &::placeholder{color:",";}"],r&&F(["text-overflow:ellipsis;"]),e[_.TextPlaceholder])}),QD=$.div.attrs({className:we(qi,"root")}).withConfig({componentId:"sc-150k0cz-5"})(function(t){var e=t.size,n=e===void 0?vt.Md:e,r=t.error,i=r===void 0?!1:r,o=t.fullWidth,a=o===void 0?!1:o,u=t.readOnly,c=u===void 0?!1:u,d=t.disabled,h=d===void 0?!1:d,m=t.isHovering,v=m===void 0?!1:m,C=t.isSelectedItems,w=C===void 0?!1:C,x=t.theme;return F(["position:relative;display:inline-flex;align-items:center;box-sizing:border-box;column-gap:8px;cursor:text;transition:all 100ms ease-out;width:",";pointer-events:",";background-color:",";border-radius:",";border:1px solid ",";color:",";"," ",";","{","}"," "," &:hover{color:",";}",""],a?"100%":"300px",h?"none":"auto",uO(c,h),x.shape.borderRadius[Xi.Md],dO(c,h),h?x.palette[_.TextPlaceholder]:x.palette[_.TextPrimary],FN[n],w&&"\n      height: fit-content;\n\n      ".concat(Ov," {\n        max-width: fit-content;\n        min-width: 20px;\n        flex-grow: 1;\n        width: 40px;\n      }\n    "),Ov,Jb[n],!c&&!h&&F(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";","{color:",";}}}"," &:hover{background-color:",";border:1px solid ",";","{color:",";}}"],x.palette[_.BackgroundSecondary],x.palette[_.AccentStateless],x.palette[_.AccentStateless],pd,x.palette[_.IconsPrimary],v&&F(["","{color:",";}"],pd,x.palette[_.IconsPrimaryHover]),x.palette[_.BackgroundStateless],x.palette[_.BordersPrimaryHover],pd,x.palette[_.IconsPrimaryHover]),h&&F(["","{color:",";}"],pd,x.palette[_.IconsMuted]),cO(c,h),i&&WN)}),JD=$.span.attrs({className:we(qi,"ClearIcon")}).withConfig({componentId:"sc-150k0cz-6"})(function(t){var e=t.theme.palette;return F(["display:flex;cursor:pointer;color:",";"],e[_.IconsPrimary])}),eB=$.div.attrs({className:we(qi,"NotificationBox")}).withConfig({componentId:"sc-150k0cz-7"})(function(t){var e=t.size,n=e===void 0?vt.Md:e,r=t.theme.palette;return F(["display:flex;position:absolute;align-items:center;max-height:34px;right:0px;padding:8px 12px;column-gap:6px;bottom:",";box-shadow:0px 2px 6px ",";background-color:",";border-radius:4px;"],n===vt.Md?"45px":"35px",r[_.LargeShadow],r[_.BackgroundStateless])}),tB=$.span.attrs({className:we(qi,"NotificationIcon")}).withConfig({componentId:"sc-150k0cz-8"})(function(t){var e=t.theme.palette;return F(["color:",";"],e[_.IconsPrimary])}),nB=$.span.attrs({className:we(qi,"NotificationText")}).withConfig({componentId:"sc-150k0cz-9"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font;return F(["white-space:nowrap;",";color:",";"],r[Pe.TextSmall],n[_.TextPrimary])}),rB=$.div.attrs({className:we(qi,"fieldWrapper")}).withConfig({componentId:"sc-150k0cz-10"})(function(t){var e=t.isSelectedItems;return F(["width:100%;height:100%;display:inline-flex;flex-wrap:wrap;gap:8px;max-height:120px;",";::-webkit-scrollbar{display:none;}"],e&&"\n      overflow-y: auto;\n    ")}),iB=It({Input:QD,Container:qD,Base:Ov,Icon:pd,CopyIcon:pO,PasswordIcon:KD,ClearIcon:JD,NotificationBox:eB,NotificationIcon:tB,NotificationText:nB,FieldWrapper:rB});const zr=iB;var oB=["inputType","children","iconStart","iconEnd","iconChange","clearIcon","iconClickStart","iconClickEnd","clearIconClick","size","className","style","fullWidth","readOnly","disabled","hideCopyIcon","focusOnMount","focusOnClick","isEllipsis","copyTextMessage","copySuccessIcon","error","renderTags","showPlaceholder"],W2=function(e,n){switch(e){case vt.Md:return n==="start"?15:14;case vt.Sm:default:return n==="start"?13:10}},w9=function(e){switch(e){case vt.Md:return 16;case vt.Sm:default:return 14}},e4=ct(function(t,e){var n,r=t.inputType,i=t.children,o=t.iconStart,a=t.iconEnd,u=t.iconChange,c=t.clearIcon,d=t.iconClickStart,h=t.iconClickEnd,m=t.clearIconClick,v=t.size,C=v===void 0?vt.Md:v,w=t.className,x=t.style,P=t.fullWidth,b=t.readOnly,E=t.disabled,k=t.hideCopyIcon,T=k===void 0?!1:k,L=t.focusOnMount,A=L===void 0?!1:L,M=t.focusOnClick,z=M===void 0?!0:M,D=t.isEllipsis,B=D===void 0?!1:D,X=t.copyTextMessage,G=t.copySuccessIcon,V=t.error,ne=t.renderTags,ve=t.showPlaceholder,te=se(t,oB),pe=j.useState(!1),Y=Le(pe,2),de=Y[0],ce=Y[1],me=j.useState(!1),re=Le(me,2),ee=re[0],ue=re[1],Ee=j.useState(!1),W=Le(Ee,2),Se=W[0],ae=W[1],ze=j.useRef(null),Ie=(n=te.selectedItems)===null||n===void 0?void 0:n.length,xe=te.value||Ie?"":te.placeholder,ye=function(){var Xe;E||b||(ve==null||ve(!1),(Xe=ze.current)===null||Xe===void 0||Xe.focus())};j.useEffect(function(){A&&ye()},[]),j.useEffect(function(){setTimeout(function(){return ue(!1)},2e3)},[ee]);var Ge=function(){setTimeout(function(){ce(!0)},150)},Ze=function(){setTimeout(function(){ce(!1)},200)},Ve=function(Xe,Ut){E||b||(z&&ye(),Ut==="start"?d&&d(Xe):Ut==="end"?h&&h(Xe):m&&m(Xe))},ot=function(Xe,Ut){return Xe?p.createElement(zr.Icon,{onClick:function(Ye){return Ve(Ye,Ut)},iconClickStart:d,iconClickEnd:h,iconType:Ut,disabled:E,readOnly:b},typeof Xe=="function"?Xe({size:W2(C,Ut)}):Xe):void 0},$e=function(){return E||b||!c?void 0:p.createElement(zr.ClearIcon,{onClick:function(Ut){return Ve(Ut,"clear")}},typeof c=="function"?c({size:W2(C,"clear")}):c)},dt=function(Xe){return de&&b&&!T?p.createElement(zr.CopyIcon,{onClick:function(){return fO(te.value,ue)}},typeof Xe=="function"?Xe():Xe):void 0},Ct=function(Xe){Xe.stopPropagation(),ae(!Se)},qe=function(){return p.createElement(zr.PasswordIcon,{onClick:function(Ut){return Ct(Ut)}},Se?p.createElement(YD,{size:w9(C)}):p.createElement(UD,{size:w9(C)}))},St=function(){return!r&&te!==null&&te!==void 0&&te.type?te==null?void 0:te.type:r===Kp.Password&&!Se?Kp.Password:Kp.Text},At=function(){return p.createElement(zr.FieldWrapper,{isSelectedItems:!!Ie},ne&&ne(),p.createElement(zr.Base,J({},te,{placeholder:xe,ref:ze,readOnly:!!b,type:St(),isEllipsis:B})))},ft=function(){return p.createElement(zr.NotificationBox,{size:C},p.createElement(zr.NotificationIcon,null,G),p.createElement(zr.NotificationText,null,X))};return p.createElement(zr.Input,{onClick:z?ye:void 0,ref:e,size:C,onMouseEnter:Ge,onMouseLeave:Ze,className:w,style:x,readOnly:b,disabled:E,fullWidth:!!P,error:V,clearIcon:c,isHovering:te.isHovering,isSelectedItems:!!Ie},ot(o,"start"),At(),dt(p.createElement(sO,{size:W2(C,"copy")})),ee&&ft(),$e(),r===Kp.Password&&qe(),ot(a,"end"),ot(u,""),i&&p.createElement(p.Fragment,null,i))}),aB={size:vt.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1,copyTextMessage:"Copied!"};e4.defaultProps=aB;var hO={size:I.oneOf(ut(vt)),iconStart:I.oneOfType([I.node,I.func]),iconEnd:I.oneOfType([I.node,I.func]),iconChange:I.oneOfType([I.node,I.func]),copySuccessIcon:I.oneOfType([I.node,I.func]),clearIcon:I.node,error:I.bool,fullWidth:I.bool,value:I.any,readOnly:I.bool,disabled:I.bool,iconClickStart:I.func,showPlaceholder:I.func,iconClickEnd:I.func,clearIconClick:I.func,focusOnMount:I.bool,focusOnClick:I.bool,copyTextMessage:I.string,inputType:I.string,renderTags:I.func};e4.propTypes=hO;const Qd=e4;var qp,lB=(qp={},S(qp,vt.Sm,function(t){var e=t.theme.typography.font;return F(e[Pe.LabelExtraSmallUp])}),S(qp,vt.Md,function(t){var e=t.theme.typography.font;return F(e[Pe.LabelSmall])}),qp),sB="FormHint",uB=$.span.attrs({className:we(sB,"root")}).withConfig({componentId:"sc-1vu99sv-0"})(function(t){var e=t.size,n=e===void 0?vt.Md:e,r=t.error,i=r===void 0?!1:r,o=t.disabled,a=o===void 0?!1:o,u=t.theme;return F(["display:flex;align-items:center;color:",";"," ",""],i?u.palette[_.Error]:u.palette[_.TextSecondary],a&&F(["color:",";"],u.palette[_.ButtonDisabledText]),lB[n])}),gO=It({FormHint:uB}),t4=ct(function(t,e){return p.createElement(gO.FormHint,J({ref:e},t))});t4.defaultProps={error:!1};t4.propTypes={error:I.bool,size:I.oneOf(ut(vt))};const mO=t4;var $r="top",Pi="bottom",ki="right",Wr="left",n4="auto",pf=[$r,Pi,ki,Wr],Xu="start",Jd="end",cB="clippingParents",vO="viewport",Yc="popper",dB="reference",C9=pf.reduce(function(t,e){return t.concat([e+"-"+Xu,e+"-"+Jd])},[]),yO=[].concat(pf,[n4]).reduce(function(t,e){return t.concat([e,e+"-"+Xu,e+"-"+Jd])},[]),fB="beforeRead",pB="read",hB="afterRead",gB="beforeMain",mB="main",vB="afterMain",yB="beforeWrite",wB="write",CB="afterWrite",SB=[fB,pB,hB,gB,mB,vB,yB,wB,CB];function So(t){return t?(t.nodeName||"").toLowerCase():null}function ni(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Kl(t){var e=ni(t).Element;return t instanceof e||t instanceof Element}function Ei(t){var e=ni(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function r4(t){if(typeof ShadowRoot>"u")return!1;var e=ni(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function xB(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!Ei(o)||!So(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function EB(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),u=a.reduce(function(c,d){return c[d]="",c},{});!Ei(i)||!So(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const bB={name:"applyStyles",enabled:!0,phase:"write",fn:xB,effect:EB,requires:["computeStyles"]};function Co(t){return t.split("-")[0]}var jl=Math.max,x0=Math.min,Zu=Math.round;function Pv(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wO(){return!/^((?!chrome|android).)*safari/i.test(Pv())}function Yu(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&Ei(t)&&(i=t.offsetWidth>0&&Zu(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Zu(r.height)/t.offsetHeight||1);var a=Kl(t)?ni(t):window,u=a.visualViewport,c=!wO()&&n,d=(r.left+(c&&u?u.offsetLeft:0))/i,h=(r.top+(c&&u?u.offsetTop:0))/o,m=r.width/i,v=r.height/o;return{width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h}}function i4(t){var e=Yu(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function CO(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&r4(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jo(t){return ni(t).getComputedStyle(t)}function OB(t){return["table","td","th"].indexOf(So(t))>=0}function nl(t){return((Kl(t)?t.ownerDocument:t.document)||window.document).documentElement}function x1(t){return So(t)==="html"?t:t.assignedSlot||t.parentNode||(r4(t)?t.host:null)||nl(t)}function S9(t){return!Ei(t)||Jo(t).position==="fixed"?null:t.offsetParent}function PB(t){var e=/firefox/i.test(Pv()),n=/Trident/i.test(Pv());if(n&&Ei(t)){var r=Jo(t);if(r.position==="fixed")return null}var i=x1(t);for(r4(i)&&(i=i.host);Ei(i)&&["html","body"].indexOf(So(i))<0;){var o=Jo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function hf(t){for(var e=ni(t),n=S9(t);n&&OB(n)&&Jo(n).position==="static";)n=S9(n);return n&&(So(n)==="html"||So(n)==="body"&&Jo(n).position==="static")?e:n||PB(t)||e}function o4(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Id(t,e,n){return jl(t,x0(e,n))}function kB(t,e,n){var r=Id(t,e,n);return r>n?n:r}function SO(){return{top:0,right:0,bottom:0,left:0}}function xO(t){return Object.assign({},SO(),t)}function EO(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var _B=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,xO(typeof e!="number"?e:EO(e,pf))};function TB(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,u=Co(n.placement),c=o4(u),d=[Wr,ki].indexOf(u)>=0,h=d?"height":"width";if(!(!o||!a)){var m=_B(i.padding,n),v=i4(o),C=c==="y"?$r:Wr,w=c==="y"?Pi:ki,x=n.rects.reference[h]+n.rects.reference[c]-a[c]-n.rects.popper[h],P=a[c]-n.rects.reference[c],b=hf(o),E=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,k=x/2-P/2,T=m[C],L=E-v[h]-m[w],A=E/2-v[h]/2+k,M=Id(T,A,L),z=c;n.modifiersData[r]=(e={},e[z]=M,e.centerOffset=M-A,e)}}function IB(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||CO(e.elements.popper,i)&&(e.elements.arrow=i))}const LB={name:"arrow",enabled:!0,phase:"main",fn:TB,effect:IB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(t){return t.split("-")[1]}var AB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MB(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Zu(n*i)/i||0,y:Zu(r*i)/i||0}}function x9(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,u=t.position,c=t.gpuAcceleration,d=t.adaptive,h=t.roundOffsets,m=t.isFixed,v=a.x,C=v===void 0?0:v,w=a.y,x=w===void 0?0:w,P=typeof h=="function"?h({x:C,y:x}):{x:C,y:x};C=P.x,x=P.y;var b=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),k=Wr,T=$r,L=window;if(d){var A=hf(n),M="clientHeight",z="clientWidth";if(A===ni(n)&&(A=nl(n),Jo(A).position!=="static"&&u==="absolute"&&(M="scrollHeight",z="scrollWidth")),A=A,i===$r||(i===Wr||i===ki)&&o===Jd){T=Pi;var D=m&&A===L&&L.visualViewport?L.visualViewport.height:A[M];x-=D-r.height,x*=c?1:-1}if(i===Wr||(i===$r||i===Pi)&&o===Jd){k=ki;var B=m&&A===L&&L.visualViewport?L.visualViewport.width:A[z];C-=B-r.width,C*=c?1:-1}}var X=Object.assign({position:u},d&&AB),G=h===!0?MB({x:C,y:x},ni(n)):{x:C,y:x};if(C=G.x,x=G.y,c){var V;return Object.assign({},X,(V={},V[T]=E?"0":"",V[k]=b?"0":"",V.transform=(L.devicePixelRatio||1)<=1?"translate("+C+"px, "+x+"px)":"translate3d("+C+"px, "+x+"px, 0)",V))}return Object.assign({},X,(e={},e[T]=E?x+"px":"",e[k]=b?C+"px":"",e.transform="",e))}function RB(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,u=n.roundOffsets,c=u===void 0?!0:u,d={placement:Co(e.placement),variation:Ku(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,x9(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,x9(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const zB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:RB,data:{}};var Qp={passive:!0};function jB(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,u=a===void 0?!0:a,c=ni(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",n.update,Qp)}),u&&c.addEventListener("resize",n.update,Qp),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Qp)}),u&&c.removeEventListener("resize",n.update,Qp)}}const NB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jB,data:{}};var DB={left:"right",right:"left",bottom:"top",top:"bottom"};function $h(t){return t.replace(/left|right|bottom|top/g,function(e){return DB[e]})}var BB={start:"end",end:"start"};function E9(t){return t.replace(/start|end/g,function(e){return BB[e]})}function a4(t){var e=ni(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function l4(t){return Yu(nl(t)).left+a4(t).scrollLeft}function HB(t,e){var n=ni(t),r=nl(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,c=0;if(i){o=i.width,a=i.height;var d=wO();(d||!d&&e==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:u+l4(t),y:c}}function FB(t){var e,n=nl(t),r=a4(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=jl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=jl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+l4(t),c=-r.scrollTop;return Jo(i||n).direction==="rtl"&&(u+=jl(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:c}}function s4(t){var e=Jo(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function bO(t){return["html","body","#document"].indexOf(So(t))>=0?t.ownerDocument.body:Ei(t)&&s4(t)?t:bO(x1(t))}function Ld(t,e){var n;e===void 0&&(e=[]);var r=bO(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=ni(r),a=i?[o].concat(o.visualViewport||[],s4(r)?r:[]):r,u=e.concat(a);return i?u:u.concat(Ld(x1(a)))}function kv(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $B(t,e){var n=Yu(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function b9(t,e,n){return e===vO?kv(HB(t,n)):Kl(e)?$B(e,n):kv(FB(nl(t)))}function WB(t){var e=Ld(x1(t)),n=["absolute","fixed"].indexOf(Jo(t).position)>=0,r=n&&Ei(t)?hf(t):t;return Kl(r)?e.filter(function(i){return Kl(i)&&CO(i,r)&&So(i)!=="body"}):[]}function VB(t,e,n,r){var i=e==="clippingParents"?WB(t):[].concat(e),o=[].concat(i,[n]),a=o[0],u=o.reduce(function(c,d){var h=b9(t,d,r);return c.top=jl(h.top,c.top),c.right=x0(h.right,c.right),c.bottom=x0(h.bottom,c.bottom),c.left=jl(h.left,c.left),c},b9(t,a,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function OO(t){var e=t.reference,n=t.element,r=t.placement,i=r?Co(r):null,o=r?Ku(r):null,a=e.x+e.width/2-n.width/2,u=e.y+e.height/2-n.height/2,c;switch(i){case $r:c={x:a,y:e.y-n.height};break;case Pi:c={x:a,y:e.y+e.height};break;case ki:c={x:e.x+e.width,y:u};break;case Wr:c={x:e.x-n.width,y:u};break;default:c={x:e.x,y:e.y}}var d=i?o4(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case Xu:c[d]=c[d]-(e[h]/2-n[h]/2);break;case Jd:c[d]=c[d]+(e[h]/2-n[h]/2);break}}return c}function ef(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,a=o===void 0?t.strategy:o,u=n.boundary,c=u===void 0?cB:u,d=n.rootBoundary,h=d===void 0?vO:d,m=n.elementContext,v=m===void 0?Yc:m,C=n.altBoundary,w=C===void 0?!1:C,x=n.padding,P=x===void 0?0:x,b=xO(typeof P!="number"?P:EO(P,pf)),E=v===Yc?dB:Yc,k=t.rects.popper,T=t.elements[w?E:v],L=VB(Kl(T)?T:T.contextElement||nl(t.elements.popper),c,h,a),A=Yu(t.elements.reference),M=OO({reference:A,element:k,strategy:"absolute",placement:i}),z=kv(Object.assign({},k,M)),D=v===Yc?z:A,B={top:L.top-D.top+b.top,bottom:D.bottom-L.bottom+b.bottom,left:L.left-D.left+b.left,right:D.right-L.right+b.right},X=t.modifiersData.offset;if(v===Yc&&X){var G=X[i];Object.keys(B).forEach(function(V){var ne=[ki,Pi].indexOf(V)>=0?1:-1,ve=[$r,Pi].indexOf(V)>=0?"y":"x";B[V]+=G[ve]*ne})}return B}function GB(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?yO:c,h=Ku(r),m=h?u?C9:C9.filter(function(w){return Ku(w)===h}):pf,v=m.filter(function(w){return d.indexOf(w)>=0});v.length===0&&(v=m);var C=v.reduce(function(w,x){return w[x]=ef(t,{placement:x,boundary:i,rootBoundary:o,padding:a})[Co(x)],w},{});return Object.keys(C).sort(function(w,x){return C[w]-C[x]})}function UB(t){if(Co(t)===n4)return[];var e=$h(t);return[E9(t),e,E9(e)]}function XB(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,h=n.boundary,m=n.rootBoundary,v=n.altBoundary,C=n.flipVariations,w=C===void 0?!0:C,x=n.allowedAutoPlacements,P=e.options.placement,b=Co(P),E=b===P,k=c||(E||!w?[$h(P)]:UB(P)),T=[P].concat(k).reduce(function(ue,Ee){return ue.concat(Co(Ee)===n4?GB(e,{placement:Ee,boundary:h,rootBoundary:m,padding:d,flipVariations:w,allowedAutoPlacements:x}):Ee)},[]),L=e.rects.reference,A=e.rects.popper,M=new Map,z=!0,D=T[0],B=0;B<T.length;B++){var X=T[B],G=Co(X),V=Ku(X)===Xu,ne=[$r,Pi].indexOf(G)>=0,ve=ne?"width":"height",te=ef(e,{placement:X,boundary:h,rootBoundary:m,altBoundary:v,padding:d}),pe=ne?V?ki:Wr:V?Pi:$r;L[ve]>A[ve]&&(pe=$h(pe));var Y=$h(pe),de=[];if(o&&de.push(te[G]<=0),u&&de.push(te[pe]<=0,te[Y]<=0),de.every(function(ue){return ue})){D=X,z=!1;break}M.set(X,de)}if(z)for(var ce=w?3:1,me=function(Ee){var W=T.find(function(Se){var ae=M.get(Se);if(ae)return ae.slice(0,Ee).every(function(ze){return ze})});if(W)return D=W,"break"},re=ce;re>0;re--){var ee=me(re);if(ee==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}const ZB={name:"flip",enabled:!0,phase:"main",fn:XB,requiresIfExists:["offset"],data:{_skip:!1}};function O9(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function P9(t){return[$r,ki,Pi,Wr].some(function(e){return t[e]>=0})}function YB(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=ef(e,{elementContext:"reference"}),u=ef(e,{altBoundary:!0}),c=O9(a,r),d=O9(u,i,o),h=P9(c),m=P9(d);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const KB={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YB};function qB(t,e,n){var r=Co(t),i=[Wr,$r].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[Wr,ki].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function QB(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=yO.reduce(function(h,m){return h[m]=qB(m,e.rects,o),h},{}),u=a[e.placement],c=u.x,d=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=a}const JB={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QB};function eH(t){var e=t.state,n=t.name;e.modifiersData[n]=OO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const tH={name:"popperOffsets",enabled:!0,phase:"read",fn:eH,data:{}};function nH(t){return t==="x"?"y":"x"}function rH(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,m=n.padding,v=n.tether,C=v===void 0?!0:v,w=n.tetherOffset,x=w===void 0?0:w,P=ef(e,{boundary:c,rootBoundary:d,padding:m,altBoundary:h}),b=Co(e.placement),E=Ku(e.placement),k=!E,T=o4(b),L=nH(T),A=e.modifiersData.popperOffsets,M=e.rects.reference,z=e.rects.popper,D=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,B=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),X=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(A){if(o){var V,ne=T==="y"?$r:Wr,ve=T==="y"?Pi:ki,te=T==="y"?"height":"width",pe=A[T],Y=pe+P[ne],de=pe-P[ve],ce=C?-z[te]/2:0,me=E===Xu?M[te]:z[te],re=E===Xu?-z[te]:-M[te],ee=e.elements.arrow,ue=C&&ee?i4(ee):{width:0,height:0},Ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:SO(),W=Ee[ne],Se=Ee[ve],ae=Id(0,M[te],ue[te]),ze=k?M[te]/2-ce-ae-W-B.mainAxis:me-ae-W-B.mainAxis,Ie=k?-M[te]/2+ce+ae+Se+B.mainAxis:re+ae+Se+B.mainAxis,xe=e.elements.arrow&&hf(e.elements.arrow),ye=xe?T==="y"?xe.clientTop||0:xe.clientLeft||0:0,Ge=(V=X==null?void 0:X[T])!=null?V:0,Ze=pe+ze-Ge-ye,Ve=pe+Ie-Ge,ot=Id(C?x0(Y,Ze):Y,pe,C?jl(de,Ve):de);A[T]=ot,G[T]=ot-pe}if(u){var $e,dt=T==="x"?$r:Wr,Ct=T==="x"?Pi:ki,qe=A[L],St=L==="y"?"height":"width",At=qe+P[dt],ft=qe-P[Ct],Re=[$r,Wr].indexOf(b)!==-1,Xe=($e=X==null?void 0:X[L])!=null?$e:0,Ut=Re?At:qe-M[St]-z[St]-Xe+B.altAxis,Tn=Re?qe+M[St]+z[St]-Xe-B.altAxis:ft,Ye=C&&Re?kB(Ut,qe,Tn):Id(C?Ut:At,qe,C?Tn:ft);A[L]=Ye,G[L]=Ye-qe}e.modifiersData[r]=G}}const iH={name:"preventOverflow",enabled:!0,phase:"main",fn:rH,requiresIfExists:["offset"]};function oH(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function aH(t){return t===ni(t)||!Ei(t)?a4(t):oH(t)}function lH(t){var e=t.getBoundingClientRect(),n=Zu(e.width)/t.offsetWidth||1,r=Zu(e.height)/t.offsetHeight||1;return n!==1||r!==1}function sH(t,e,n){n===void 0&&(n=!1);var r=Ei(e),i=Ei(e)&&lH(e),o=nl(e),a=Yu(t,i,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(e)!=="body"||s4(o))&&(u=aH(e)),Ei(e)?(c=Yu(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=l4(o))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function uH(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var c=e.get(u);c&&i(c)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function cH(t){var e=uH(t);return SB.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function dH(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function fH(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var k9={placement:"bottom",modifiers:[],strategy:"absolute"};function _9(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function pH(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?k9:i;return function(u,c,d){d===void 0&&(d=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},k9,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],v=!1,C={state:h,setOptions:function(b){var E=typeof b=="function"?b(h.options):b;x(),h.options=Object.assign({},o,h.options,E),h.scrollParents={reference:Kl(u)?Ld(u):u.contextElement?Ld(u.contextElement):[],popper:Ld(c)};var k=cH(fH([].concat(r,h.options.modifiers)));return h.orderedModifiers=k.filter(function(T){return T.enabled}),w(),C.update()},forceUpdate:function(){if(!v){var b=h.elements,E=b.reference,k=b.popper;if(_9(E,k)){h.rects={reference:sH(E,hf(k),h.options.strategy==="fixed"),popper:i4(k)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(B){return h.modifiersData[B.name]=Object.assign({},B.data)});for(var T=0;T<h.orderedModifiers.length;T++){if(h.reset===!0){h.reset=!1,T=-1;continue}var L=h.orderedModifiers[T],A=L.fn,M=L.options,z=M===void 0?{}:M,D=L.name;typeof A=="function"&&(h=A({state:h,options:z,name:D,instance:C})||h)}}}},update:dH(function(){return new Promise(function(P){C.forceUpdate(),P(h)})}),destroy:function(){x(),v=!0}};if(!_9(u,c))return C;C.setOptions(d).then(function(P){!v&&d.onFirstUpdate&&d.onFirstUpdate(P)});function w(){h.orderedModifiers.forEach(function(P){var b=P.name,E=P.options,k=E===void 0?{}:E,T=P.effect;if(typeof T=="function"){var L=T({state:h,name:b,instance:C,options:k}),A=function(){};m.push(L||A)}})}function x(){m.forEach(function(P){return P()}),m=[]}return C}}var hH=[NB,tH,zB,bB,JB,ZB,iH,LB,KB],gH=pH({defaultModifiers:hH});function mH(t){var e=document.createElement("div");return e.setAttribute("id",t),e}function vH(t){document.body.append(t)}function PO(t){var e=j.useRef(null);j.useEffect(function(){var r=document.querySelector("#".concat(t)),i=r||mH(t);return r||vH(i),e.current&&i.append(e.current),function(){e.current&&e.current.remove(),i.childNodes.length===-1&&i.remove()}},[]);function n(){return e.current||(e.current=document.createElement("div")),e.current}return n()}var Rn={AutoStart:"auto-start",Auto:"auto",AutoEnd:"auto-end",TopStart:"top-start",Top:"top",TopEnd:"top-end",BottomStart:"bottom-start",Bottom:"bottom",BottomEnd:"bottom-end",LeftStart:"left-start",Left:"left",LeftEnd:"left-end",RightStart:"right-start",Right:"right",RightEnd:"right-end"},yH={Absloute:"absolute",Fixed:"fixed"},Jn,wH=(Jn={},S(Jn,Rn.Auto,F(["top:0px;bottom:0px;left:0px;right:0px;"])),S(Jn,Rn.AutoEnd,F(["top:0px;bottom:0px;left:0px;right:0px;"])),S(Jn,Rn.AutoStart,F(["top:0px;bottom:0px;left:0px;right:0px;"])),S(Jn,Rn.Right,F(["left:-4px;"])),S(Jn,Rn.RightEnd,F(["left:-4px;"])),S(Jn,Rn.RightStart,F(["left:-4px;"])),S(Jn,Rn.Left,F(["right:-4px;"])),S(Jn,Rn.LeftEnd,F(["right:-4px;"])),S(Jn,Rn.LeftStart,F(["right:-4px;"])),S(Jn,Rn.Top,F(["bottom:-4px;"])),S(Jn,Rn.TopEnd,F(["bottom:-4px;"])),S(Jn,Rn.TopStart,F(["bottom:-4px;"])),S(Jn,Rn.Bottom,F(["top:-4px;"])),S(Jn,Rn.BottomEnd,F(["top:-4px;"])),S(Jn,Rn.BottomStart,F(["top:-4px;"])),Jn),E1="Popper",CH=$.div.attrs({className:we(E1,"root")}).withConfig({componentId:"sc-1373tsp-0"})([""]),SH=$.div.attrs({className:we(E1,"wrapper")}).withConfig({componentId:"sc-1373tsp-1"})(function(t){var e=t.zIndex;return F(["position:relative;z-index:",";"],e)}),xH=$.div.attrs({className:we(E1,"arrow")}).withConfig({componentId:"sc-1373tsp-2"})(function(t){var e=t.warning,n=e===void 0?!1:e,r=t.position,i=r===void 0?Rn.Right:r,o=t.theme;return F(["width:8px;height:8px;position:absolute;&::before{content:'';background:",";width:8px;height:8px;transform:rotate(45deg);position:absolute;top:0;left:0;z-index:-1;}",""],n?o.palette[_.BackgroundOrange]:o.palette[_.BackgroundGrey],wH[i])}),EH=$.div.attrs({className:we(E1,"Overlay")}).withConfig({componentId:"sc-1373tsp-3"})(function(){return F(["position:fixed;right:0;bottom:0;top:0;left:0;background-color:transparent;"])}),bH=It({Popper:CH,Overlay:EH,Arrow:xH,PopperWrapper:SH});const Jp=bH;var OH=["anchorEl","children","open","warning","position","arrow","popperOptions","onClick","overlay","zIndex","enableUnderlayingEvent","wrapperStyles"];function T9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function V2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?T9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var u4=ct(function(t,e){var n=t.anchorEl,r=t.children,i=t.open,o=t.warning,a=o===void 0?!1:o,u=t.position,c=u===void 0?"bottom":u,d=t.arrow,h=d===void 0?!1:d,m=t.popperOptions,v=t.onClick,C=t.overlay,w=C===void 0?!1:C,x=t.zIndex,P=x===void 0?1300:x,b=t.enableUnderlayingEvent,E=t.wrapperStyles,k=E===void 0?{}:E,T=se(t,OH),L=PO(we("Popper")),A=j.useRef(null),M=_E(A,e);j.useEffect(function(){if(!(!n||!i||A.current===null)){var G=[{name:"arrow",options:{element:"[data-popper-arrow]"}},{name:"offset",options:{offset:[0,10]}}],V=h?G:[];m&&m.modifiers!=null&&(V=V.concat(m.modifiers));var ne=gH(n,A.current,V2(V2({placement:c},m),{},{modifiers:V}));return M.current=ne,function(){ne.destroy(),M.current=null}}},[n,i,m,c,h]);var z=function(V){setTimeout(function(){if(V.clientX&&V.clientY){var ne=document.elementFromPoint(V.clientX,V.clientY);ne&&ne.dispatchEvent(V.nativeEvent)}},0)},D=function(V){V.persist(),V.preventDefault(),V.stopPropagation(),v&&v(V),b&&z(V)},B=function(){return p.createElement(Jp.Overlay,{onClick:D,onContextMenu:D})};if(!i)return p.createElement("div",{ref:M});var X=function(){var V;return p.createElement(Jp.PopperWrapper,{zIndex:P,style:V2({},k)},w&&B(),p.createElement(Jp.Popper,J({ref:M},T),r,h&&p.createElement(Jp.Arrow,{warning:a,"data-popper-arrow":!0,position:(M==null||(V=M.state)===null||V===void 0?void 0:V.placement)||c})))};return cf.createPortal(X(),L)});u4.defaultProps={};var kO={anchorEl:I.oneOfType([I.instanceOf(Element),I.object]),popperOptions:I.shape({modifiers:I.arrayOf(I.shape({data:I.object,effect:I.func,enabled:I.bool,fn:I.func,name:I.any.isRequired,options:I.object,phase:I.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:I.arrayOf(I.string),requiresIfExists:I.arrayOf(I.string)})),onFirstUpdate:I.func,placement:I.oneOf(ut(Rn)),strategy:I.oneOf(ut(yH))}),overlay:I.bool,warning:I.bool,arrow:I.bool,zIndex:I.number,enableUnderlayingEvent:I.bool,wrapperStyles:I.object};u4.propTypes=kO;const _O=u4;var TO="Menu",PH=$.div.attrs({className:we(TO,"Overlay")}).withConfig({componentId:"sc-10okxhw-0"})(function(){return F(["position:fixed;right:0;bottom:0;top:0;left:0;background-color:transparent;z-index:-1;"])}),kH=D3(["from{opacity:0;}to{opacity:1;}"]),_H=D3(["from{transform:scale(0.97);margin-top:0px;}to{transform:scale(1);margin-top:4px;}"]),TH=F(["animation:"," 250ms 0ms cubic-bezier(0.4,0,0.2,1),"," 250ms cubic-bezier(0.4,0,0.2,1);"],kH,_H),IH=$.div.attrs({className:we(TO,"root")}).withConfig({componentId:"sc-10okxhw-1"})(function(t){var e=t.rect,n=t.theme,r=t.scroll,i=t.maxHeight,o=i===void 0?"":i;return F(["min-width:","px;width:195px;min-height:16px;overflow-x:hidden;overflow-y:auto;transition:opacity 250ms cubic-bezier(0.4,0,0,1),transform 250ms cubic-bezier(0.4,0,0,1),margin-top 250ms cubic-bezier(0.4,0,0,1);outline:0;box-shadow:0 2px 4px ",";border-radius:",";"," "," margin-top:4px;",""],e.width,n.palette[_.MediumShadow],n.shape.borderRadius[Xi.Md],r&&RE,o&&F(["max-height:",";"],Number.isNaN(+o)?o:"".concat(o,"px")),TH)}),LH=It({Menu:IH,Overlay:PH});const AH=LH;var MH=["id","children","open","fullWidth","anchorElPosition","anchorEl","onClose","containerProps","alignCenter","maxHeight","position","popperOptions","enableOverlay","zIndex","hideScroll","scroll","enableUnderlayingEvent","popperWrapperStyles"];function I9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function RH(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?I9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var c4=ct(function(t,e){t.id;var n=t.children,r=t.open;t.fullWidth;var i=t.anchorElPosition,o=t.anchorEl,a=t.onClose,u=t.containerProps,c=t.alignCenter,d=t.maxHeight,h=t.position,m=t.popperOptions,v=t.enableOverlay,C=v===void 0?!0:v,w=t.zIndex,x=t.hideScroll,P=x===void 0?!0:x,b=t.scroll,E=b===void 0?!0:b,k=t.enableUnderlayingEvent,T=k===void 0?!1:k,L=t.popperWrapperStyles,A=L===void 0?{}:L,M=se(t,MH),z=j.useState(null),D=Le(z,2),B=D[0],X=D[1],G=j.useState(new DOMRect),V=Le(G,2),ne=V[0],ve=V[1],te=j.useRef(null),pe=j.useCallback(function(){var ce,me=RH({top:0,left:0,height:0,width:0},i||{}),re=new DOMRect(me.left,me.top,me.width,me.height);ve((ce=o==null?void 0:o.getBoundingClientRect())!==null&&ce!==void 0?ce:re)},[r,B,o]),Y=j.useCallback(function(){r&&(B&&clearTimeout(B),X(setTimeout(pe,300)))},[r,B]);j.useEffect(function(){return window.addEventListener("resize",Y),function(){window.removeEventListener("resize",Y)}},[Y]),j.useEffect(function(){pe()},[i,pe]),j.useEffect(function(){if(P)return r?(document.body.classList.add("Menu-open"),pe()):document.body.classList.remove("Menu-open"),function(){document.body.classList.remove("Menu-open")}},[r,pe]);var de=function(me){typeof a=="function"&&a(me)};return p.createElement(p.Fragment,null,p.createElement(_O,{ref:te,position:h||"bottom-start",open:!!o,anchorEl:o,overlay:!!C,onClick:de,popperOptions:m,zIndex:w,enableUnderlayingEvent:T,wrapperStyles:A},p.createElement(AH.Menu,J({},u,{alignCenter:!!c,scroll:E,rect:ne},M,{ref:e,maxHeight:d}),n)))}),zH={open:!1,containerProps:{},maxHeight:250,position:Rn.BottomStart,enableOverlay:!0,hideScroll:!0,scroll:!0};c4.defaultProps=zH;var IO={anchorElPosition:I.shape({left:I.number,right:I.number,top:I.number,bottom:I.number}),anchorEl:I.instanceOf(Element),open:I.bool,fullWidth:I.bool,onClose:I.func,id:I.string,containerProps:I.object,alignCenter:I.bool,maxHeight:I.oneOfType([I.string,I.number]),popperOptions:kO.popperOptions,position:I.oneOf(ut(Rn)),enableOverlay:I.bool,zIndex:I.number,hideScroll:I.bool,scroll:I.bool,enableUnderlayingEvent:I.bool,popperWrapperStyles:I.object};c4.propTypes=IO;const ls=c4;var vr={Sm:"sm",Md:"md"},eh,jH=(eh={},S(eh,vr.Sm,function(t){var e=t.theme.typography.font;return F(["padding:8px 16px;min-height:32px;",""],e[Pe.LabelMedium])}),S(eh,vr.Md,function(t){var e=t.theme.typography.font;return F(["padding:11px 16px;min-height:40px;",""],e[Pe.LabelLarge])}),eh),rl="MenuItem",LO=$.span.attrs({className:we(rl,"Icon")}).withConfig({componentId:"sc-rrzye0-0"})(function(t){var e=t.theme.palette,n=t.disabled;return F(["flex-shrink:0;margin-right:10px;color:",";"],n?e[_.TextPlaceholder]:e[_.IconsPrimary])}),NH=$(LO).attrs({className:we(rl,"Actions")}).withConfig({componentId:"sc-rrzye0-1"})(function(){return F(["margin-right:0px;margin-left:16px;"])}),DH=$.span.attrs({className:we(rl,"Label")}).withConfig({componentId:"sc-rrzye0-2"})(["align-items:center;column-gap:4px;flex-grow:1;"]),BH=$.div.attrs({className:we(rl,"wrapper")}).withConfig({componentId:"sc-rrzye0-3"})(function(t){var e=t.divider,n=e===void 0?!1:e,r=t.noOptionsText,i=r===void 0?!1:r,o=t.disabled,a=o===void 0?!1:o,u=t.theme;return F([""," ",""],n&&F(["width:100%;height:1px;background:",";box-sizing:border-box;"],u.palette[_.BordersSecondary]),(i||a)&&F(["color:",";"],u.palette[_.ButtonDisabledText]))}),HH=$.div.attrs({className:we(rl,"root")}).withConfig({componentId:"sc-rrzye0-4"})(function(t){var e=t.size,n=e===void 0?vr.Sm:e,r=t.active,i=t.theme,o=t.disableHover,a=o===void 0?!1:o,u=t.noOptionsText,c=t.disabled;return F(["display:flex;justify-content:space-between;flex-direction:row;align-items:center;width:100%;background:",";color:",";cursor:pointer;box-sizing:border-box;transition:all 100ms ease-out;"," &:focus-within,&:focus,&:hover{",";","}",""],i.palette[r?_.BackgroundActive:_.BackgroundSecondary],i.palette[_.TextPrimary],jH[n],!a&&"background-color: ".concat(i.palette[_.BackgroundHover]),(u||c)&&F(["cursor:default;background-color:white;"]),(u||c)&&F(["& > svg{path{fill:",";}}color:",";"],i.palette[_.ButtonDisabledText],i.palette[_.ButtonDisabledText]))}),FH=$.div.attrs({className:we(rl,"prefix")}).withConfig({componentId:"sc-rrzye0-5"})(function(){return F(["display:flex;"])}),$H=$.div.attrs({className:we(rl,"content")}).withConfig({componentId:"sc-rrzye0-6"})(function(){return F(["flex-grow:1;line-height:16px;"])}),WH=$.div.attrs({className:we(rl,"suffix")}).withConfig({componentId:"sc-rrzye0-7"})(function(){return F(["display:flex;margin-left:8px;"])}),VH=It({MenuItemWrapper:BH,MenuItem:HH,MenuPrefix:FH,MenuContent:$H,MenuSuffix:WH,Label:DH,Icon:LO,Actions:NH});const Hi=VH;var GH=["list","depth","children","disableHover","noOptionsText","disabled","enableScrollIntoView"];function L9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function UH(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var gf=ct(function(t,e){var n=t.list,r=t.depth,i=r===void 0?0:r,o=t.children,a=t.disableHover,u=t.noOptionsText,c=t.disabled,d=t.enableScrollIntoView,h=se(t,GH),m=j.useRef(null),v=p.useState(null),C=Le(v,2),w=C[0],x=C[1],P=p.useState([]),b=Le(P,2),E=b[0],k=b[1],T=function(B){x(B.currentTarget)},L=function(){var B;(B=m.current)===null||B===void 0||B.scrollIntoView({behavior:"auto",block:"nearest"})};j.useEffect(function(){h.active&&d&&L()},[h.active]);var A=function(B,X,G){var V=E.slice(0);V[G]=X,k(V),T(B)},M=function(B){var X=E.slice(0);X[B]="",k(X),x(null)},z=function(B){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return B.map(function(G){var V=G.subList&&G.subList.length>0,ne;if(E[X]===G.key&&V){var ve=X+1;ne=p.createElement(ls,J({key:G.key,position:"right",open:!!w,anchorEl:w,enableOverlay:!1},G.subMenuProps),p.createElement(gf,J({list:G.subList,depth:ve},h)))}return G.content==="divider"?p.createElement(Hi.MenuItemWrapper,{divider:!0,key:G.key}):p.createElement(Hi.MenuItemWrapper,J({disabled:!1,key:G.key,onMouseLeave:function(){return M(X)}},h),p.createElement(Hi.MenuItem,J({},h,{className:G.className,ref:e,active:!!G.active,onClick:G.onClick?function(te){return G.onClick(UH({event:te},h))}:void 0,onMouseEnter:function(pe){return A(pe,G.key,X)},disableHover:a||G.disableHover}),G.prefix&&p.createElement(Hi.MenuPrefix,null,typeof G.prefix=="function"?G.prefix(h):G.prefix),G.content&&p.createElement(Hi.MenuContent,null,typeof G.content=="function"?G.content(h):G.content),(G.suffix||G.subList)&&p.createElement(Hi.MenuSuffix,null,typeof G.suffix=="function"?G.suffix(h):G.suffix,G.subList&&p.createElement(HD,{size:10,color:"#768A9F"}))),ne)})};return n?p.createElement(p.Fragment,null,z(n,i)):p.createElement(Hi.MenuItemWrapper,{noOptionsText:!!u,disabled:!!c},p.createElement(Hi.MenuItem,J({},h,{ref:m,disableHover:a,noOptionsText:u,disabled:c}),o))});gf.displayName="MenuItem";var XH={size:vr.Sm,active:!1};gf.defaultProps=XH;gf.propTypes={size:I.oneOf(ut(vr)),children:I.oneOfType([I.node,I.func]),active:I.bool,value:I.oneOfType([I.string,I.number,I.oneOf([null])]),depth:I.number,disableHover:I.bool,noOptionsText:I.bool,disabled:I.bool,enableScrollIntoView:I.bool};const ql=gf;var ZH=["children","disabled","size"],YH=function(e){switch(e){case vr.Md:return 16;case vr.Sm:default:return 14}},d4=ct(function(t,e){var n=t.children,r=t.disabled,i=t.size,o=i===void 0?vr.Md:i,a=se(t,ZH);return p.createElement(Hi.Icon,J({disabled:r},a,{ref:e}),n&&typeof n=="function"?n({size:YH(o)}):n)});d4.defaultProps={size:vr.Md};d4.propTypes={size:I.oneOf(ut(vr)),children:I.oneOfType([I.node,I.func]).isRequired,disabled:I.bool};const KH=d4;var qH=["children"],AO=ct(function(t,e){var n=t.children,r=se(t,qH);return p.createElement(Hi.Label,J({},r,{ref:e}),n)});AO.displayName="MenuItemLabel";const f4=AO;var QH=["children"],b1=ct(function(t,e){var n=t.children,r=se(t,QH);return p.createElement(Hi.Actions,J({},r,{ref:e}),n&&typeof n=="function"?n({size:r.size}):n)});b1.displayName="MenuItemActions";b1.defaultProps={size:vr.Md};b1.propTypes={size:I.oneOf(ut(vr)),children:I.oneOfType([I.node,I.func]).isRequired};const JH=b1;var eF=["color","size"],tF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,eF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M43.3196 40.0403C44.2253 40.9461 44.2253 42.4146 43.3196 43.3204C42.4138 44.2262 40.9453 44.2262 40.0396 43.3204L21.9997 25.2802L3.95952 43.3207C3.05376 44.2264 1.58525 44.2264 0.679494 43.3207C-0.226258 42.4149 -0.226258 40.9464 0.679495 40.0406L18.7197 22.0001L0.679313 3.95941C-0.226437 3.05364 -0.226439 1.5851 0.679314 0.679328C1.58507 -0.226442 3.05358 -0.226443 3.95934 0.679328L21.9997 18.72L40.0398 0.679604C40.9455 -0.226163 42.414 -0.226165 43.3198 0.679605C44.2255 1.58537 44.2255 3.05392 43.3198 3.95969L25.2797 22.0001L43.3196 40.0403Z",fill:r}))});const MO=tF;var Kc,nF=(Kc={},S(Kc,Td.Primary,function(t){var e=t.theme.palette;return F(["background-color:",";color:",";"],e[_.AccentPrimary],e[_.ButtonPrimaryText])}),S(Kc,Td.White,function(t){var e=t.theme.palette;return F(["background-color:",";color:",";"],e[_.ButtonPrimaryText],e[_.AccentPrimary])}),S(Kc,Td.Secondary,function(t){var e=t.theme.palette;return F(["background-color:",";color:",";"],e[_.Accent_1_2_Opacity],e[_.TextPrimary])}),Kc),RO="Badge",G2=20,rF=$.span.attrs({className:we(RO,"root")}).withConfig({componentId:"sc-1rfm40m-0"})(["position:relative;display:inline-flex;flex-shrink:0;vertical-align:middle;"]),iF=$.span.attrs({className:we(RO)}).withConfig({componentId:"sc-1rfm40m-1"})(function(t){var e=t.size,n=t.color,r=n===void 0?"secondary":n,i=t.fontSize,o=t.padding,a=o===void 0?"0 6px":o,u=t.inline;return F([""," display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:center;align-content:center;height:","px;min-width:","px;line-height:1;padding:",";font-size:",";box-sizing:border-box;transition:transform 225ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:","px;z-index:1;",""],u?"":"position: absolute;",e||G2,e||G2,typeof a=="number"?"".concat(a,"px"):a,typeof i=="number"?"".concat(i,"px"):i,(e||G2)/2,nF[r])}),oF=It({BadgeRoot:rF,Badge:iF});const Wt=oF;var aF=["badgeContent"],p4=ct(function(t,e){var n=t.badgeContent,r=se(t,aF);return p.createElement(Wt.BadgeRoot,{ref:e},p.createElement(Wt.Badge,r,n))});p4.defaultProps={color:Td.Secondary,inline:!1};p4.propTypes={color:I.oneOf(ut(Td)),badgeContent:I.node,size:I.oneOfType([I.number]),fontSize:I.oneOfType([I.number,I.string]),padding:I.oneOfType([I.number,I.string]),inline:I.bool};const lF=p4;var sF=["color","size"],uF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?28:i,a=se(t,sF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M41.3465 44.355C33.5656 50.7844 22.9687 51.6268 14.3708 47.3665L17.8949 44.4545C24.754 47.117 32.7424 46.1093 38.709 41.1792C44.6755 36.249 47.1546 28.6071 45.8085 21.3893L49.3325 18.4773C51.9291 27.6967 49.1274 37.9256 41.3465 44.355Z",fill:r}),p.createElement("path",{d:"M36.1749 2.63356L32.6509 5.54555C25.821 2.91828 17.838 3.86187 11.8366 8.82088C5.87009 13.7511 3.42028 21.4282 4.7372 28.6107L1.21311 31.5227C-1.38344 22.3034 1.45314 12.0456 9.19916 5.64502C16.9801 -0.784402 27.5768 -1.62682 36.1749 2.63356Z",fill:r}))});const U2=uF;var cF=["color","size"],dF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,cF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M5.74299 0.152553C5.95998 -0.056404 6.30528 -0.0498885 6.51424 0.167105C6.7232 0.384099 6.71668 0.7294 6.49969 0.938357L1.43832 5.81227L6.51398 11.0759C6.72309 11.2928 6.71681 11.6381 6.49996 11.8472C6.28311 12.0563 5.9378 12.05 5.7287 11.8332L0.274151 6.1766C0.17369 6.07242 0.118752 5.93258 0.121433 5.78788C0.124113 5.64317 0.184193 5.50547 0.288444 5.40508L5.74299 0.152553Z",fill:r}),p.createElement("path",{d:"M10.9549 0.152554C11.1719 -0.0564031 11.5172 -0.0498876 11.7262 0.167106C11.9351 0.3841 11.9286 0.729401 11.7116 0.938357L6.65023 5.81227L11.7259 11.0759C11.935 11.2928 11.9287 11.6381 11.7119 11.8472C11.495 12.0563 11.1497 12.05 10.9406 11.8332L5.48606 6.1766C5.3856 6.07242 5.33067 5.93258 5.33335 5.78788C5.33603 5.64317 5.39611 5.50547 5.50036 5.40508L10.9549 0.152554Z",fill:r}))});const A9=dF;var fF=["color","size"],pF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,fF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M6.25714 11.8474C6.04014 12.0564 5.69484 12.0499 5.48588 11.8329C5.27693 11.6159 5.28344 11.2706 5.50043 11.0616L10.5618 6.18773L5.48614 0.924074C5.27704 0.707224 5.28331 0.361919 5.50016 0.152813C5.71701 -0.0562931 6.06232 -0.0500145 6.27143 0.166835L11.726 5.8234C11.8264 5.92758 11.8814 6.06742 11.8787 6.21212C11.876 6.35683 11.8159 6.49453 11.7117 6.59492L6.25714 11.8474Z",fill:r}),p.createElement("path",{d:"M1.04522 11.8474C0.828227 12.0564 0.482925 12.0499 0.273969 11.8329C0.065012 11.6159 0.0715275 11.2706 0.288521 11.0616L5.34989 6.18773L0.274227 0.924074C0.0651226 0.707224 0.0714006 0.361919 0.28825 0.152813C0.5051 -0.0562931 0.850407 -0.0500145 1.05951 0.166835L6.51406 5.8234C6.61452 5.92758 6.66946 6.06742 6.66678 6.21212C6.6641 6.35683 6.60402 6.49453 6.49977 6.59492L1.04522 11.8474Z",fill:r}))});const M9=pF;var Iu={Default:"default",Sidebar:"sidebar"},$o={Left:"left",Right:"right"},ru=function(e){switch(e){case nt.Lg:return 18;case nt.Md:return 16;case nt.Sm:return 14;case nt.Xs:return 12;default:return 16}},hF=function(e){switch(e){case nt.Lg:return 12;case nt.Md:return 11;case nt.Sm:return 10;default:return 11}},wr,Ws,Vs,Gs,Us,Xs,Zs,gF=(wr={},S(wr,On.Primary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{color:",";background:",";cursor:default;","{color:",";background:transparent;}}"],e[_.AccentStateless],e[_.ButtonPrimaryText],Wt.Badge,e[_.ButtonPrimaryText],e[_.AccentPrimaryHover],e[_.AccentPrimaryActive],n&&F(["background-color:",";&:hover,&:focus{background-color:",";}"],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive]),e[_.BordersDisabled],e[_.Accent_1_2_Opacity],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.Secondary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";border:1px solid ",";","{color:",";background:transparent;}&:hover{color:",";background-color:",";","{color:",";}}&:focus{color:",";background-color:",";border:1px solid ",";","{color:",";}}&:active{color:",";background-color:",";","{color:",";}}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],e[_.BackgroundStateless],e[_.AccentStateless],e[_.AccentStateless],Wt.Badge,e[_.AccentStateless],e[_.ButtonPrimaryText],e[_.AccentPrimaryHover],Wt.Badge,e[_.ButtonPrimaryText],e[_.AccentPrimaryActive],e[_.Accent_1_2_Opacity],e[_.AccentPrimaryActive],Wt.Badge,e[_.AccentPrimaryActive],e[_.ButtonPrimaryText],e[_.AccentPrimaryActive],Wt.Badge,e[_.ButtonPrimaryText],n&&F(["color:",";background-color:",";","{color:",";}&:hover,&:focus{color:",";background-color:",";","{color:",";}}"],e[_.ButtonPrimaryText],e[_.AccentPrimaryActive],Wt.Badge,e[_.ButtonPrimaryText],e[_.ButtonPrimaryText],e[_.AccentPrimaryActive],Wt.Badge,e[_.ButtonPrimaryText]),e[_.BordersDisabled],e[_.Accent_1_2_Opacity],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.Basic,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:transparent;border:1px solid ",";color:",";","{background-color:transparent;color:",";}&:hover{background-color:",";color:",";","{color:",";}}&:active{background-color:",";color:",";","{color:",";}}"," &:disabled{background-color:",";color:",";cursor:default;border:none;","{color:",";}}"],e[_.BordersButton],e[_.LinkStateless],Wt.Badge,e[_.LinkStateless],e[_.BackgroundHover],e[_.LinkHover],Wt.Badge,e[_.LinkHover],e[_.BackgroundActive],e[_.LinkHover],Wt.Badge,e[_.LinkHover],n&&F(["background-color:",";color:",";","{color:",";}&:hover,&:focus{background-color:",";color:",";}"],e[_.BackgroundActive],e[_.LinkHover],Wt.Badge,e[_.LinkHover],e[_.BackgroundActive],e[_.LinkHover]),e[_.Accent_1_2_Opacity],e[_.BordersDisabled],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.LinkPrimary,function(t){var e=t.theme.palette,n=t.active;return F(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[_.AccentStateless],e[_.AccentPrimaryHover],e[_.AccentPrimaryActive],n&&F(["color:",";&:hover,&:focus{color:",";"],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive]),e[_.BordersDisabled])}),S(wr,On.LinkSecondary,function(t){var e=t.theme.palette,n=t.active;return F(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[_.LinkStateless],e[_.AccentPrimaryHover],e[_.AccentPrimaryActive],n&&F(["color:",";&:hover,&:focus{color:",";}"],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive]),e[_.BordersDisabled])}),S(wr,On.LinkBasicPrimary,function(t){var e=t.theme.palette,n=t.active;return F(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[_.AccentStateless],e[_.AccentPrimaryHover],e[_.AccentPrimaryActive],n&&F(["color:",";&:hover,&:focus{color:",";}"],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive]),e[_.BordersDisabled])}),S(wr,On.LinkBasicSecondary,function(t){var e=t.theme.palette,n=t.active;return F(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[_.LinkStateless],e[_.AccentPrimaryHover],e[_.AccentPrimaryActive],n&&F(["color:",";&:hover,&:focus{color:",";}"],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive]),e[_.BordersDisabled])}),S(wr,On.ErrorPrimary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{background-color:",";color:",";cursor:default;","{color:",";background:transparent;}}"],e[_.Error],e[_.ButtonPrimaryText],Wt.Badge,e[_.ButtonPrimaryText],e[_.ErrorHover],e[_.ErrorActive],n&&F(["background-color:",";&:hover,&:focus{background-color:",";}"],e[_.ErrorActive],e[_.ErrorActive]),e[_.Accent_1_2_Opacity],e[_.BordersDisabled],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.ErrorSecondary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";border:1px solid ",";","{color:",";background-color:transparent;}&:hover{background-color:",";color:",";border:none;","{color:",";}}&:active{background-color:",";color:",";border:none;}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],e[_.BackgroundStateless],e[_.LinkStateless],e[_.BordersButton],Wt.Badge,e[_.LinkStateless],e[_.ErrorHover],e[_.ButtonPrimaryText],Wt.Badge,e[_.ButtonPrimaryText],e[_.ErrorActive],e[_.ButtonPrimaryText],n&&F(["background-color:",";color:",";border:none;&:hover,&:focus{background-color:",";}"],e[_.ErrorActive],e[_.ButtonPrimaryText],e[_.ErrorActive]),e[_.BordersDisabled],e[_.Accent_1_2_Opacity],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.ErrorBasic,function(t){var e=t.theme.palette,n=t.active;return F(["color:",";background-color:transparent;&:hover{color:",";}&:active{color:",";}"," &:disabled{color:",";cursor:default;}"],e[_.LinkStateless],e[_.ErrorHover],e[_.ErrorActive],n&&F(["color:",";&:hover,&:focus{color:",";}"],e[_.ErrorActive],e[_.ErrorActive]),e[_.BordersDisabled])}),S(wr,On.WarningPrimary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{background-color:",";color:",";cursor:default;","{color:",";background:transparent;}}"],e[_.Warning],e[_.ButtonPrimaryText],Wt.Badge,e[_.ButtonPrimaryText],e[_.WarningHover],e[_.WarningActive],n&&F(["background-color:",";&:hover,&:focus{background-color:",";}"],e[_.WarningActive],e[_.WarningActive]),e[_.Accent_1_2_Opacity],e[_.BordersDisabled],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.WarningSecondary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";border:1px solid ",";","{color:",";background-color:transparent;}&:hover{background-color:",";color:",";border:none;","{color:",";}}&:active{background-color:",";color:",";border:none;}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],e[_.BackgroundStateless],e[_.LinkStateless],e[_.BordersButton],Wt.Badge,e[_.LinkStateless],e[_.WarningHover],e[_.ButtonPrimaryText],Wt.Badge,e[_.ButtonPrimaryText],e[_.WarningActive],e[_.ButtonPrimaryText],n&&F(["background-color:",";color:",";border:none;","{color:",";background-color:transparent;}&:hover,&:focus{background-color:",";}"],e[_.WarningActive],e[_.ButtonPrimaryText],Wt.Badge,e[_.ButtonPrimaryText],e[_.WarningActive]),e[_.BordersDisabled],e[_.Accent_1_2_Opacity],Wt.Badge,e[_.BordersDisabled])}),S(wr,On.WarningBasic,function(t){var e=t.theme.palette,n=t.active;return F(["color:",";background-color:transparent;&:hover{color:",";}&:active{color:",";}"," &:disabled{color:",";cursor:default;}"],e[_.LinkStateless],e[_.WarningHover],e[_.WarningActive],n&&F(["color:",";&:hover,&:focus{color:",";}"],e[_.WarningActive],e[_.WarningActive]),e[_.BordersDisabled])}),wr),mF=(Ws={},S(Ws,nt.Xs,F(["padding:5px 10px;"])),S(Ws,nt.Sm,F(["padding:8px 12px;"])),S(Ws,nt.Md,F(["padding:11px 16px;"])),S(Ws,nt.Lg,F(["padding:14px 24px;"])),Ws),vF=(Vs={},S(Vs,nt.Xs,F(["padding:4px 10px;"])),S(Vs,nt.Sm,F(["padding:7px 12px;"])),S(Vs,nt.Md,F(["padding:10px 16px;"])),S(Vs,nt.Lg,F(["padding:13px 24px;"])),Vs),yF=(Gs={},S(Gs,nt.Xs,F(["padding:5px 10px;"])),S(Gs,nt.Sm,F(["padding:8px 12px;"])),S(Gs,nt.Md,F(["padding:11px 14px;"])),S(Gs,nt.Lg,F(["padding:14px 16px;"])),Gs),wF=(Us={},S(Us,nt.Xs,F(["height:14px;"])),S(Us,nt.Sm,F(["height:16px;"])),S(Us,nt.Md,F(["height:18px;"])),S(Us,nt.Lg,F(["height:20px;"])),Us),CF=(Xs={},S(Xs,nt.Xs,F(["margin-right:5px;"])),S(Xs,nt.Sm,F(["margin-right:6px;"])),S(Xs,nt.Md,F(["margin-right:7px;"])),S(Xs,nt.Lg,F(["margin-right:8px;"])),Xs),R9=(Zs={},S(Zs,nt.Xs,function(t){var e=t.theme.typography.font;return F(e[Pe.ButtonSm])}),S(Zs,nt.Sm,function(t){var e=t.theme.typography.font;return F(e[Pe.ButtonMd])}),S(Zs,nt.Md,function(t){var e=t.theme.typography.font;return F(e[Pe.ButtonLg])}),S(Zs,nt.Lg,function(t){var e=t.theme.typography.font;return F(e[Pe.ButtonLgUp])}),Zs),il="Button",zO=$.span.attrs({className:we(il,"Label")}).withConfig({componentId:"sc-lxwit0-0"})(["display:flex;"]),jO=$.span.attrs({className:we(il,"Badge")}).withConfig({componentId:"sc-lxwit0-1"})(["display:flex;margin-left:5px;"]),SF=$.span.attrs({className:we(il,"Body")}).withConfig({componentId:"sc-lxwit0-2"})(function(){return F(["display:flex;align-items:center;"])}),xF=$.button.attrs({className:we(il,"root")}).withConfig({componentId:"sc-lxwit0-3"})(function(t){var e=t.color,n=e===void 0?On.Secondary:e,r=t.size,i=r===void 0?nt.Md:r,o=t.buttonType,a=t.active,u=t.theme;return F(["display:inline-flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center;border-radius:",";transition:all 100ms ease-out;border:0;cursor:pointer;outline:none;"," "," "," ","{"," ","}","{","}",""],u.shape.borderRadius[Xi.Md],o!==Iu.Sidebar&&gF[n],o===Iu.Sidebar?yF[i]:mF[i],n===On.Secondary&&vF[i],zO,R9[i],(n===On.LinkBasicPrimary||n===On.LinkBasicSecondary)&&"font-weight: 400",jO,R9[i],o===Iu.Sidebar&&F(["background-color:",";color:",";border:1px solid ",";"," "," &:disabled{color:",";background:",";border:none;cursor:default;}"],u.palette[_.ButtonPrimaryText],u.palette[_.LinkStateless],u.palette[_.BordersButton],!a&&F(["&:hover{color:",";background-color:",";border:none;}&:active{color:",";background-color:",";border:none;}"],u.palette[_.ButtonPrimaryText],u.palette[_.AccentPrimaryHover],u.palette[_.ButtonPrimaryText],u.palette[_.AccentPrimaryActive]),a&&F(["background-color:",";color:",";border:1px solid ",";"],u.palette[_.Accent_1_2_Opacity],u.palette[_.AccentPrimaryActive],u.palette[_.AccentPrimaryActive]),u.palette[_.BordersDisabled],u.palette[_.AccentPrimaryDisabled]))}),EF=$.span.attrs({className:we(il,"StartIcon")}).withConfig({componentId:"sc-lxwit0-4"})(function(t){var e=t.$loading,n=t.size,r=n===void 0?nt.Md:n;return F(["display:flex;svg{animation:",";}",""],e?"spinner 1.2s linear infinite":"1.2s",CF[r])}),bF=$.span.attrs({className:we(il,"SideBar")}).withConfig({componentId:"sc-lxwit0-5"})(function(t){var e=t.sideBarType;return F(["display:flex;",":12px;"],"margin-".concat(e===$o.Left?"right":"left"))}),OF=$.span.attrs({className:we(il,"Divider")}).withConfig({componentId:"sc-lxwit0-6"})(function(t){var e=t.sideBarType,n=t.size,r=n===void 0?nt.Md:n;return F(["border-left-style:solid;border-width:1px;"," ",":12px;"],wF[r],"margin-".concat(e===$o.Left?"right":"left"))}),PF=$.span.attrs({className:we(il,"EndIcon")}).withConfig({componentId:"sc-lxwit0-7"})(["display:flex;margin-left:6px;"]),kF=It({Button:xF,Wrapper:SF,Label:zO,SideArrows:bF,Divider:OF,StartIcon:EF,EndIcon:PF,Badge:jO});const po=kF;var _F=["children","startIcon","endIcon","badge","color","active","buttonType","sideBarType","size","loading","disabled"],h4=ct(function(t,e){var n=t.children,r=t.startIcon,i=t.endIcon,o=t.badge,a=t.color,u=t.active,c=t.buttonType,d=t.sideBarType,h=d===void 0?$o.Left:d,m=t.size,v=t.loading,C=t.disabled,w=se(t,_F),x=function(E){switch(h){case $o.Right:return u?p.createElement(M9,E):p.createElement(A9,E);case $o.Left:return u?p.createElement(A9,E):p.createElement(M9,E)}},P=function(){var E=[p.createElement(po.SideArrows,{key:"arrows",sideBarType:h},x({size:hF(m)}))],k=p.createElement(po.Divider,{key:"divider",size:m,sideBarType:h});return h===$o.Right?E.unshift(k):E.push(k),c===Iu.Sidebar&&E};return p.createElement(po.Button,J({type:"button",buttonType:c},w,{disabled:v||C,sideBarType:h,color:a,active:u,size:m,ref:e}),h===$o.Left&&P(),p.createElement(po.Wrapper,null,r&&p.createElement(po.StartIcon,{$loading:v,size:m},typeof r=="function"?v?p.createElement(U2,{size:ru(m)}):r({size:ru(m)}):v?p.createElement(U2,{size:ru(m)}):r),v&&!r&&p.createElement(po.StartIcon,{$loading:v},p.createElement(U2,{size:ru(m)})),p.createElement(po.Label,null,n),i&&p.createElement(po.EndIcon,null,typeof i=="function"?i({size:ru(m)}):i)),h===$o.Right&&P(),o&&p.createElement(po.Badge,null,p.createElement(lF,{inline:!0,size:14,padding:"0 1px",badgeContent:o,color:a===On.Primary?"white":"secondary"})))});h4.defaultProps={size:nt.Md,color:On.Secondary,buttonType:Iu.Default,active:!1};h4.propTypes={size:I.oneOf(ut(nt)),color:I.oneOf(ut(On)),buttonType:I.oneOf(ut(Iu)),sideBarType:I.oneOf(ut($o)),startIcon:I.oneOfType([I.node,I.func]),endIcon:I.oneOfType([I.node,I.func]),badge:I.node,active:I.bool,loading:I.bool,disabled:I.bool};const ea=h4;var TF=["color","size"],IF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,TF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M0.483002 4.49014V37.5097C0.483002 38.5725 0.90519 39.5917 1.65669 40.3432C2.40819 41.0947 3.42745 41.5169 4.49023 41.5169H37.5098C38.5726 41.5169 39.5918 41.0947 40.3433 40.3432C41.0948 39.5917 41.517 38.5725 41.517 37.5097V4.49014C41.517 3.42735 41.0948 2.4081 40.3433 1.6566C39.5918 0.905099 38.5726 0.48291 37.5098 0.48291H4.49023C3.42745 0.48291 2.40819 0.905099 1.65669 1.6566C0.90519 2.4081 0.483002 3.42735 0.483002 4.49014ZM38.9272 5.87776V31.3044L26.3817 19.5446L21.8068 22.3356L14.8048 15.3337L3.07279 23.0543V6.06233C3.07279 5.2695 3.38775 4.50913 3.94836 3.94851C4.50898 3.38789 5.26935 3.07294 6.06218 3.07294H36.1222C36.8661 3.07294 37.5795 3.36844 38.1055 3.89444C38.6316 4.42044 38.9272 5.13385 38.9272 5.87776Z",fill:r}),p.createElement("path",{d:"M30.4602 15.6943C33.066 15.6943 35.1784 13.5819 35.1784 10.976C35.1784 8.37021 33.066 6.25777 30.4602 6.25777C27.8543 6.25777 25.7419 8.37021 25.7419 10.976C25.7419 13.5819 27.8543 15.6943 30.4602 15.6943Z",fill:r}))}),LF=["color","size"],AF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,LF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 40 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M39.5112 31.2036C39.5112 41.568 31.0785 50 20.7148 50H14.0613C12.9587 50 12.0652 49.1066 12.0652 48.004V47.3386C12.0652 46.2359 12.9586 45.3425 14.0613 45.3425H20.7148C28.5107 45.3425 34.8537 38.9995 34.8537 31.2036C34.8537 23.4078 28.5107 17.0648 20.7148 17.0648H8.4394L16.8935 25.5189C17.8015 26.4266 17.8015 27.9042 16.8935 28.8119C16.0124 29.6923 14.479 29.691 13.5999 28.8119L1.17111 16.3828C0.731285 15.943 0.488892 15.3581 0.488892 14.7359C0.488892 14.1142 0.731285 13.529 1.17111 13.0894L13.6006 0.65976C14.4797 -0.220001 16.0144 -0.220001 16.8936 0.65976C17.8016 1.56722 17.8016 3.04511 16.8936 3.95246L8.43951 12.4072H20.7148C31.0785 12.4072 39.5112 20.8395 39.5112 31.2036Z",fill:r}))});const MF=AF;var RF=["color","size"],zF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,RF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 40 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M0.98 31.2037C0.98 41.568 9.41216 50 19.7752 50H26.4284C27.5309 50 28.4244 49.1066 28.4244 48.004V47.3386C28.4244 46.2359 27.531 45.3425 26.4284 45.3425H19.7752C11.9798 45.3425 5.6372 38.9995 5.6372 31.2037C5.6372 23.4079 11.9798 17.0648 19.7752 17.0648H32.05L23.5964 25.5189C22.6884 26.4266 22.6884 27.9043 23.5964 28.812C24.4774 29.6924 26.0107 29.6911 26.8897 28.812L39.3178 16.3828C39.7576 15.943 40 15.3582 40 14.736C40 14.1142 39.7576 13.5291 39.3178 13.0895L26.8891 0.659821C26.01 -0.21994 24.4754 -0.21994 23.5962 0.659821C22.6883 1.56728 22.6883 3.04517 23.5962 3.95252L32.0498 12.4073H19.7752C9.41216 12.4073 0.98 20.8396 0.98 31.2037Z",fill:r}))});const jF=zF;var NF=["color","size"],DF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,NF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M40.1901 7.27549L7.59689 39.8687C6.83412 40.6315 6.83412 41.8681 7.59689 42.6308C8.35965 43.3936 9.59626 43.3936 10.359 42.6308L42.9522 10.0376C43.715 9.27486 43.715 8.03825 42.9522 7.27549C42.1895 6.51272 40.9529 6.51272 40.1901 7.27549Z",fill:r}))});const BF=DF;var HF=["color","size"],FF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,HF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M41.2229 16.7653C41.3215 12.426 39.7436 8.284 36.6864 5.02956C33.6292 1.77513 29.4872 -2.09808e-05 25.0493 -2.09808e-05C20.6114 -2.09808e-05 16.3708 1.77513 13.3136 5.02956C10.2564 8.18538 8.6785 12.3274 8.77712 16.7653C3.45168 19.5266 0 25.1479 0 31.1637C0 37.2781 3.25444 42.6035 8.57988 45.4635C11.0454 46.7455 13.7081 47.4359 16.2722 47.4359C19.3294 47.4359 22.288 46.5483 24.9507 44.8718C29.9803 48.1262 36.0947 48.3234 41.4201 45.4635C46.7456 42.6035 50 37.2781 50 31.1637C50 25.0493 46.6469 19.5266 41.2229 16.7653ZM22.7811 43.0966C18.6391 45.3649 13.7081 45.3649 9.56607 42.998C5.22682 40.5325 2.66272 36.1933 2.66272 31.1637C2.66272 26.43 5.12821 22.0907 9.1716 19.6252C10.1578 24.359 13.3136 28.501 17.6529 30.6706C17.4556 35.4043 19.3294 39.8422 22.7811 43.0966ZM32.1499 27.8106C31.4596 24.5562 29.783 21.499 27.3176 19.2307C30.6706 17.357 34.8126 17.0611 38.4615 18.3432C37.7712 22.2879 35.503 25.7396 32.1499 27.8106ZM20.6114 28.1065C21.3018 25.2465 22.8797 22.6824 25.0493 20.8087C27.5148 22.8797 29.1913 25.8382 29.6844 28.9941C26.7258 30.0789 23.4714 30.0789 20.4142 28.9941C20.4142 28.6982 20.5128 28.4023 20.6114 28.1065ZM25.0493 17.4556C23.57 16.4694 21.8935 15.7791 20.1183 15.3846C19.428 15.1874 18.6391 15.6805 18.5404 16.3708C18.4418 16.7653 18.5404 17.0611 18.7377 17.357C18.9349 17.6528 19.2308 17.8501 19.5266 17.9487C20.7101 18.2446 21.7949 18.639 22.7811 19.2307C20.3156 21.499 18.6391 24.4576 17.9487 27.8106C14.5957 25.7396 12.2288 22.2879 11.6371 18.3432C11.9329 18.2446 12.1302 18.1459 12.426 18.0473C12.7219 17.9487 13.0178 17.7515 13.215 17.357C13.4122 17.0611 13.4122 16.6666 13.3136 16.3708C13.1164 15.6805 12.3274 15.286 11.6371 15.4832C11.5385 15.4832 11.5385 15.4832 11.4398 15.5818C11.8343 8.48124 17.7515 2.6627 25.0493 2.6627C32.3471 2.6627 38.2643 8.38262 38.6588 15.5818C34.0237 14.2012 28.9941 14.8915 25.0493 17.4556ZM29.783 31.7554C29.5858 35.5029 27.9093 39.0532 25.0493 41.5187C22.1893 39.0532 20.4142 35.6016 20.3156 31.7554C23.3728 32.7416 26.7258 32.7416 29.783 31.7554ZM32.4458 30.6706C36.785 28.4023 39.8422 24.359 40.927 19.6252C44.9704 22.0907 47.4359 26.43 47.4359 31.1637C47.4359 36.0947 44.8718 40.5325 40.5325 42.998C36.3905 45.3649 31.4596 45.3649 27.3176 43.0966C30.7692 39.8422 32.643 35.4043 32.4458 30.6706Z",fill:r}),p.createElement("path",{d:"M15.5819 14.8915C14.9901 14.9901 14.497 15.5818 14.497 16.1735C14.497 16.8639 15.0888 17.5542 15.8777 17.5542C16.6667 17.5542 17.2584 16.9625 17.2584 16.1735C17.2584 15.7791 17.0611 15.3846 16.7653 15.1874C16.3708 14.9901 15.9763 14.8915 15.5819 14.8915Z",fill:r}))}),$F=["color","size"],WF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,$F);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2.00049C3.34315 2.00049 2 3.34364 2 5.00049V16.7505H5.5V5.50049H16.75V2.00049H5ZM45 2.00049H33.25V5.50049H44.5V16.7505H48V5.00049C48 3.34363 46.6569 2.00049 45 2.00049ZM5.5 33.2505H2V45.0005C2 46.6573 3.34315 48.0005 5 48.0005H16.75V44.5005H5.5V33.2505ZM48 33.2505H44.5V44.5005H33.25V48.0005H45C46.6569 48.0005 48 46.6573 48 45.0005V33.2505Z",fill:r}))}),VF=["color","size"],GF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,VF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 53 37",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11841 3.93799V32.063H47.8684V3.93799H4.11841ZM3.49341 0.812988C2.1127 0.812988 0.993408 1.91229 0.993408 3.26835V32.7326C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7326V3.26835C50.9934 1.91229 49.8741 0.812988 48.4934 0.812988H3.49341Z",fill:r}))}),UF=["color","size"],XF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,UF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M0.5 0.5H3V2.375H2.375V3H0.5V0.5Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 21.125H3V21.2693H24.7308V43H24.875V45.5L0.5 45.5001V21.125ZM22.2308 43L3 43.0001V23.7693H22.2308V43Z",fill:r}),p.createElement("path",{d:"M43 45.5H45.5V43H43.625V43.625H43V45.5Z",fill:r}),p.createElement("path",{d:"M45.5 3V0.5H43V2.375H43.625V3H45.5Z",fill:r}),p.createElement("path",{d:"M6.125 0.5V3H9.875V0.5H6.125Z",fill:r}),p.createElement("path",{d:"M13.625 0.5V3H17.375V0.5H13.625Z",fill:r}),p.createElement("path",{d:"M21.125 0.5V3H24.875V0.5H21.125Z",fill:r}),p.createElement("path",{d:"M28.625 0.5V3H32.375V0.5H28.625Z",fill:r}),p.createElement("path",{d:"M36.125 0.5V3H39.875V0.5H36.125Z",fill:r}),p.createElement("path",{d:"M45.5 6.125H43V9.875H45.5V6.125Z",fill:r}),p.createElement("path",{d:"M45.5 13.625H43V17.375H45.5V13.625Z",fill:r}),p.createElement("path",{d:"M45.5 21.125H43V24.875H45.5V21.125Z",fill:r}),p.createElement("path",{d:"M45.5 28.625H43V32.375H45.5V28.625Z",fill:r}),p.createElement("path",{d:"M45.5 36.125H43V39.875H45.5V36.125Z",fill:r}),p.createElement("path",{d:"M39.875 45.5V43H36.125V45.5H39.875Z",fill:r}),p.createElement("path",{d:"M32.375 45.5V43H28.625V45.5H32.375Z",fill:r}),p.createElement("path",{d:"M0.5 17.375H3V13.625H0.5V17.375Z",fill:r}),p.createElement("path",{d:"M0.5 9.875H3V6.125H0.5V9.875Z",fill:r}),p.createElement("path",{d:"M35.1391 9.23718L26.3209 17.8619C25.8274 18.3446 25.8186 19.136 26.3013 19.6295C26.784 20.1231 27.5754 20.1319 28.069 19.6492L37.1012 10.815V16.9907C37.1012 17.681 37.6609 18.2407 38.3512 18.2407C39.0416 18.2407 39.6012 17.681 39.6012 16.9907V7.98718C39.6012 7.29683 39.0416 6.73718 38.3512 6.73718L29.3477 6.73718C28.6574 6.73718 28.0977 7.29683 28.0977 7.98718C28.0977 8.67754 28.6574 9.23718 29.3477 9.23718L35.1391 9.23718Z",fill:r}))}),ZF=["color","size"],YF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,ZF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M42.1323 0.500031H2.73399C1.42693 0.500031 0.399963 1.527 0.399963 2.83406V43.166C0.399963 44.4731 1.42693 45.5 2.73399 45.5H42.1323C43.4394 45.5 44.4664 44.4731 44.4664 43.166V2.83406C44.4664 1.527 43.4394 0.500031 42.1323 0.500031ZM41.6655 3.30086V25.8942L36.624 21.693C36.1572 21.2262 35.4103 21.2262 34.8502 21.5996L28.595 26.2677L15.5244 11.2365C15.3377 10.9565 14.9643 10.7697 14.5908 10.7697C14.2174 10.7697 13.8439 10.9565 13.5639 11.1432L3.20079 21.693V3.30086H41.6655ZM3.20079 42.6992V39.8984C4.22776 40.3652 5.72154 40.832 7.58876 40.832C9.36262 40.832 10.483 40.2718 11.3232 39.805C12.0701 39.4316 12.5369 39.1515 13.3771 39.2448C14.3108 39.3382 14.8709 39.5249 15.4311 39.805C16.2713 40.0851 17.2049 40.4585 18.9788 40.4585V38.3112C17.6717 38.3112 17.0182 38.0312 16.178 37.7511C15.5244 37.471 14.6842 37.1909 13.5639 37.0975C12.0701 36.9108 11.1365 37.471 10.2962 37.8444C9.54934 38.2179 8.80245 38.5913 7.4954 38.5913C5.06801 38.5913 3.6676 37.7511 3.10743 37.2843V35.0436C4.1344 35.5104 5.62818 35.9772 7.4954 35.9772C9.26926 35.9772 10.3896 35.417 11.2298 34.9502C11.9767 34.5768 12.4435 34.2967 13.2838 34.3901C14.2174 34.4834 14.7776 34.6702 15.3377 34.9502C16.178 35.2303 17.1116 35.6038 18.8854 35.6038V33.4565C17.5784 33.4565 16.9249 33.1764 16.0846 32.8963C15.4311 32.6162 14.5908 32.3361 13.4705 32.2428C11.9767 32.056 11.0431 32.6162 10.2029 32.9897C9.45598 33.3631 8.70909 33.7365 7.40204 33.7365C4.97465 33.7365 3.57424 32.8963 3.01407 32.4295V30.1888C4.04104 30.6556 5.53482 31.1224 7.40204 31.1224C9.1759 31.1224 10.2962 30.5623 11.1365 30.0955C11.8834 29.722 12.3502 29.4419 13.1904 29.5353C14.124 29.6287 14.6842 29.8154 15.2444 30.0955C16.0846 30.3755 17.0182 30.749 18.7921 30.749V28.6017C17.485 28.6017 16.8315 28.3216 15.9912 28.0415C15.3377 27.7614 14.4975 27.4814 13.3771 27.388C11.8834 27.2013 10.9498 27.7614 10.1095 28.1349C9.36262 28.5083 8.61573 28.8818 7.30868 28.8818C4.88129 28.8818 3.48088 28.0415 2.92071 27.5747V25.7075L14.124 14.2241L27.1012 29.0685C27.568 29.6287 28.4083 29.722 28.9684 29.2552L35.4103 24.4004L41.3854 29.4419V42.6058H3.20079V42.6992Z",fill:r}),p.createElement("path",{d:"M32.7029 15.7179C35.4103 15.7179 37.651 13.4772 37.651 10.7697C37.651 8.06227 35.4103 5.82161 32.7029 5.82161C29.9954 5.82161 27.7547 8.06227 27.7547 10.7697C27.7547 13.4772 29.9954 15.7179 32.7029 15.7179ZM32.7029 8.15563C34.1966 8.15563 35.317 9.36933 35.317 10.7697C35.317 12.1702 34.1033 13.3838 32.7029 13.3838C31.3025 13.3838 30.0888 12.1702 30.0888 10.7697C30.0888 9.36933 31.2091 8.15563 32.7029 8.15563Z",fill:r}))}),KF=["color","size"],qF=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,KF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M43.4164 5.98527H1.06762C0.533808 5.98527 0 6.53674 0 7.08821V49C0 49.7353 0.533808 50.1029 1.06762 50.1029H43.4164C44.1281 50.1029 44.484 49.7353 44.484 49V7.08821C44.484 6.53674 44.1281 5.98527 43.4164 5.98527ZM35.7651 13.1544C37.9004 13.1544 39.5 15.0809 39.5 17.1029C39.5 19.3088 37.7224 20.6029 35.7651 20.6029C33.8078 20.6029 32 19.125 32 17.1029C31.8221 14.897 33.6299 13.1544 35.7651 13.1544ZM1.9573 45.875C2.13523 45.6912 14.2349 30.9853 16.548 27.8603C16.726 27.4926 17.2598 27.4926 17.4377 27.8603L29.7153 43.4853L35.0534 37.4191C35.4093 37.0514 35.7651 37.2353 35.9431 37.4191L42.5267 45.875H1.9573Z",fill:r}),p.createElement("path",{d:"M48.9164 -3.8147e-06H6.74555C6.03381 -3.8147e-06 5.5 0.367643 5.5 1.10294V4.29294H7.5V2.20588H47.6892V39H46.2473V44.1176H48.9164C49.6281 44.1176 49.984 43.75 49.984 43.0147V1.10294C49.984 0.367643 49.6281 -3.8147e-06 48.9164 -3.8147e-06Z",fill:r}))}),QF=["color","size"],NO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,QF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M25 0C38.8071 0 50 11.1929 50 25C50 38.807 38.8071 50 25 50C14.111 50 4.854 43.0397 1.42326 33.333C0.963005 32.0312 1.6455 30.603 2.94725 30.143C4.249 29.6828 5.67725 30.365 6.1375 31.667C8.88425 39.4382 16.2957 45 25 45C36.0457 45 45 36.0457 45 25C45 13.9543 36.0457 5 25 5C21.121 5 17.8345 6.40292 14.7095 8.6015C12.6078 10.0803 10.663 11.8526 8.6895 13.75H16.25C17.6308 13.75 18.75 14.8693 18.75 16.25C18.75 17.6307 17.6308 18.75 16.25 18.75H2.5C1.11926 18.75 0 17.6307 0 16.25V2.5C0 1.1193 1.11926 0 2.5 0C3.88075 0 5 1.1193 5 2.5V10.3593C7.12075 8.31457 9.38601 6.23342 11.8325 4.51222C15.5128 1.9229 19.7882 0 25 0Z",fill:r}))}),JF=["color","size"],DO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,JF);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M39.4229 8.89453L39.7891 16.6582H38.8613C38.6823 15.291 38.4382 14.3145 38.1289 13.7285C37.6243 12.7845 36.9489 12.0928 36.1025 11.6533C35.2725 11.1976 34.1738 10.9697 32.8066 10.9697H28.1436V36.2627C28.1436 38.2972 28.3633 39.5667 28.8027 40.0713C29.4212 40.7549 30.3734 41.0967 31.6592 41.0967H32.8066V42H18.7686V41.0967H19.9404C21.3402 41.0967 22.333 40.6735 22.9189 39.8271C23.277 39.3063 23.4561 38.1182 23.4561 36.2627V10.9697H19.4766C17.9303 10.9697 16.8317 11.0837 16.1807 11.3115C15.3343 11.6208 14.61 12.2148 14.0078 13.0938C13.4056 13.9727 13.0475 15.1608 12.9336 16.6582H12.0059L12.3965 8.89453H39.4229Z",fill:r}))});const e$=DO;var t$=["color","size"],z9=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,t$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 45 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M0 1.89502C0 1.20466 0.559644 0.64502 1.25 0.64502H28.75C29.4404 0.64502 30 1.20466 30 1.89502C30 2.58538 29.4404 3.14502 28.75 3.14502H1.25C0.559645 3.14502 0 2.58538 0 1.89502Z",fill:r}),p.createElement("path",{d:"M0 14.395C0 13.7047 0.559644 13.145 1.25 13.145H43.75C44.4404 13.145 45 13.7047 45 14.395C45 15.0854 44.4404 15.645 43.75 15.645H1.25C0.559645 15.645 0 15.0854 0 14.395Z",fill:r}),p.createElement("path",{d:"M1.25 25.645C0.559644 25.645 0 26.2047 0 26.895C0 27.5854 0.559645 28.145 1.25 28.145H28.75C29.4404 28.145 30 27.5854 30 26.895C30 26.2047 29.4404 25.645 28.75 25.645H1.25Z",fill:r}))}),n$=["color","size"],BO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,n$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 46 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M38 1.50049C38 0.810132 37.4404 0.250488 36.75 0.250488H9.25C8.55964 0.250488 8 0.810132 8 1.50049C8 2.19084 8.55964 2.75049 9.25 2.75049H36.75C37.4404 2.75049 38 2.19084 38 1.50049Z",fill:r}),p.createElement("path",{d:"M45.5 14.0005C45.5 13.3101 44.9404 12.7505 44.25 12.7505H1.75C1.05964 12.7505 0.5 13.3101 0.5 14.0005C0.5 14.6908 1.05964 15.2505 1.75 15.2505H44.25C44.9404 15.2505 45.5 14.6908 45.5 14.0005Z",fill:r}),p.createElement("path",{d:"M36.75 25.2505C37.4404 25.2505 38 25.8101 38 26.5005C38 27.1908 37.4404 27.7505 36.75 27.7505H9.25C8.55964 27.7505 8 27.1908 8 26.5005C8 25.8101 8.55964 25.2505 9.25 25.2505H36.75Z",fill:r}))}),r$=["color","size"],HO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,r$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 45 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M2.66027 14.6997L3.59752 14.4437L3.09232 3.93218C3.05918 3.24262 2.47331 2.71049 1.78375 2.74363C1.09419 2.77677 0.562061 3.36263 0.595202 4.05219L1.16041 15.8123C1.19355 16.5018 1.77942 17.034 2.46898 17.0008L14.2291 16.4356C14.9186 16.4025 15.4508 15.8166 15.4176 15.1271C15.3845 14.4375 14.7986 13.9054 14.1091 13.9385L5.48447 14.353C8.23224 7.41077 15.0052 2.50049 22.925 2.50049C33.2802 2.50049 41.6748 10.8951 41.6748 21.2503C41.6748 22.4035 41.5706 23.5324 41.3713 24.6281L43.7968 25.261C44.0449 23.9622 44.1748 22.6214 44.1748 21.2503C44.1748 9.51435 34.6609 0.000488281 22.925 0.000488281C15.0467 0.000488281 8.16974 4.28779 4.50001 10.6566L2.66027 14.6997Z",fill:r}),p.createElement("path",{d:"M9.88491 34.708L8.27773 36.6309C8.82614 37.1539 9.40248 37.6479 10.0043 38.1103L11.5276 36.128C10.9528 35.6863 10.4043 35.2121 9.88491 34.708Z",fill:r}),p.createElement("path",{d:"M12.3142 39.6567C13.9038 40.5764 15.6235 41.2961 17.439 41.7814L18.0846 39.3662C16.4846 38.9385 14.9685 38.3041 13.5662 37.4928L12.3142 39.6567Z",fill:r}),p.createElement("path",{d:"M20.1654 42.3209C21.0738 42.4394 22.0002 42.5005 22.9408 42.5005C23.8815 42.5005 24.8079 42.4394 25.7162 42.3209L25.3929 39.8419C24.5915 39.9465 23.7731 40.0005 22.9408 40.0005C22.1086 40.0005 21.2902 39.9465 20.4888 39.8419L20.1654 42.3209Z",fill:r}),p.createElement("path",{d:"M28.4427 41.7814C30.2582 41.2961 31.9779 40.5764 33.5674 39.6567L32.3154 37.4928C30.9132 38.3041 29.397 38.9385 27.7971 39.3662L28.4427 41.7814Z",fill:r}),p.createElement("path",{d:"M35.8774 38.1103C37.3494 36.9791 38.6692 35.6594 39.8004 34.1873L37.8181 32.664C36.8193 33.9638 35.6538 35.1292 34.354 36.128L35.8774 38.1103Z",fill:r}),p.createElement("path",{d:"M41.3468 31.8773C42.2665 30.2878 42.9862 28.5681 43.4715 26.7526L41.0563 26.107C40.6286 27.707 39.9942 29.2231 39.1829 30.6253L41.3468 31.8773Z",fill:r}))});const i$=HO;var o$=["color","size"],a$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,o$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("g",{clipPath:"url(#clip0)"},p.createElement("path",{d:"M50.2753 26.8064H24.4689L36.5656 14.7096C32.735 11.0806 28.7027 9.66933 23.6624 9.66933C13.3802 9.66933 6.32372 15.3145 3.50118 25.5967L0.275391 24.7903C3.50118 13.0968 11.9689 6.44355 23.6625 6.44355C29.7109 6.44355 34.348 8.25806 38.9851 12.2903L50.2754 1L50.2753 26.8064Z",fill:r}),p.createElement("path",{d:"M34.5495 46.3628L33.1382 44.3467C33.743 43.9435 34.3479 43.3386 34.9527 42.9355L36.5656 44.75C35.9608 45.1532 35.3559 45.758 34.5495 46.3628Z",fill:r}),p.createElement("path",{d:"M27.2913 49.387C26.6865 49.5886 26.0817 49.5886 25.4768 49.7903L25.0736 47.3709C26.4848 47.1693 27.8962 46.7661 29.3074 46.3628L30.1139 48.5806C29.1058 48.9838 28.2994 49.1854 27.2913 49.387ZM20.4365 49.9919C18.8235 49.7903 17.2107 49.5886 15.5978 48.9838L16.4042 46.766C17.8155 47.1693 19.2268 47.5724 20.6381 47.5724L20.4365 49.9919ZM11.1623 46.9677C9.75104 46.1612 8.33971 45.1532 7.13003 43.9435L8.74296 42.129C9.75104 43.137 10.9607 43.9435 12.372 44.7499L11.1623 46.9677ZM3.90425 40.3144C2.89617 38.9032 2.08974 37.2903 1.6865 35.879L3.90425 35.0726C4.50909 36.4838 5.11393 37.6935 5.92036 38.9032L3.90425 40.3144Z",fill:r}),p.createElement("path",{d:"M3.2996 30.0322L0.880241 30.2338C0.678647 29.2257 0.678647 28.4193 0.678647 27.4112H3.09801C3.09801 28.4193 3.2996 29.2258 3.2996 30.0322Z",fill:r})),p.createElement("defs",null,p.createElement("rect",{width:"50",height:"50",fill:"white",transform:"translate(0.275391)"})))});const l$=a$;var s$=["color","size"],u$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,s$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 51 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M40.5 20H38V12.5C38 5.6 32.4 0 25.5 0C18.6 0 13 5.6 13 12.5V20H10.5C9.1 20 8 21.1 8 22.5V47.5C8 48.9 9.1 50 10.5 50H40.5C41.9 50 43 48.9 43 47.5V22.5C43 21.1 41.9 20 40.5 20ZM15.5 12.5C15.5 7 20 2.5 25.5 2.5C31 2.5 35.5 7 35.5 12.5V20H15.5V12.5ZM40.5 47.5H10.5V22.5H40.5V47.5Z",fill:r}),p.createElement("path",{d:"M24.3 37.3V41.3H26.8V37.3C28.3 36.8 29.3 35.4 29.3 33.8C29.3 31.7 27.6 30 25.5 30C23.4 30 21.7 31.7 21.7 33.8C21.8 35.4 22.8 36.8 24.3 37.3ZM25.5 32.5C26.2 32.5 26.8 33.1 26.8 33.8C26.8 34.5 26.2 35.1 25.5 35.1C24.8 35.1 24.2 34.5 24.2 33.8C24.3 33.1 24.8 32.5 25.5 32.5Z",fill:r}))});const c$=u$;var d$=["color","size"],f$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,d$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M36.2754 7.5C34.2754 3.1 29.8754 0 24.7754 0C17.8754 0 12.2754 5.6 12.2754 12.5V20H9.77539C8.37539 20 7.27539 21.1 7.27539 22.5V47.5C7.27539 48.9 8.37539 50 9.77539 50H39.7754C41.1754 50 42.2754 48.9 42.2754 47.5V22.5C42.2754 21.1 41.1754 20 39.7754 20H14.7754V12.5C14.7754 7 19.2754 2.5 24.7754 2.5C28.4754 2.5 31.7754 4.5 33.4754 7.6L36.2754 7.5ZM39.7754 47.5H9.77539V22.5H39.7754V47.5Z",fill:r}),p.createElement("path",{d:"M24.7754 30C22.6754 30 20.9754 31.7 20.9754 33.7C20.9754 35.3 21.9754 36.7 23.4754 37.2V41.2H25.9754V37.2C27.4754 36.7 28.4754 35.3 28.4754 33.7C28.5754 31.7 26.8754 30 24.7754 30ZM24.7754 35C24.0754 35 23.4754 34.4 23.4754 33.7C23.4754 33 24.0754 32.4 24.7754 32.4C25.4754 32.4 25.9754 33 25.9754 33.7C25.9754 34.4 25.4754 35 24.7754 35Z",fill:r}))});const p$=f$;var h$=["color","size"],g$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,h$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("circle",{cx:"25",cy:"25",r:"8.33333",fill:r}))}),m$=["color","size"],v$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,m$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M42.6793 7.32203C32.916 -2.44013 17.0863 -2.44122 7.32197 7.32203C-2.44128 17.0853 -2.4402 32.915 7.32197 42.6793C17.0852 52.4404 32.9149 52.4415 42.6793 42.6793C52.4414 32.915 52.4403 17.0864 42.6793 7.32203ZM28.2605 35.8705C28.2605 37.6716 26.8007 39.1314 24.9995 39.1314C23.1984 39.1314 21.7386 37.6716 21.7386 35.8705V22.8267C21.7386 21.0256 23.1984 19.5658 24.9995 19.5658C26.8007 19.5658 28.2605 21.0256 28.2605 22.8267V35.8705ZM24.9419 17.2527C23.0636 17.2527 21.8114 15.9222 21.8506 14.2798C21.8114 12.558 23.0636 11.2678 24.98 11.2678C26.8974 11.2678 28.1105 12.5591 28.1507 14.2798C28.1496 15.9222 26.8985 17.2527 24.9419 17.2527Z",fill:r}))}),y$=["color","size"],FO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,y$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M48.9856 38.314L31.3034 3.80423C29.9688 1.42247 27.6118 0 24.9985 0C22.3852 0 20.0282 1.42247 18.6936 3.80423C18.6836 3.82245 18.6751 3.84067 18.665 3.8589L1.04158 38.2594C-0.321602 40.6914 -0.347383 43.612 0.971367 46.0713C2.29314 48.5321 4.67439 50 7.345 50H42.5544C45.225 50 47.7041 48.5321 49.0258 46.0713C50.3445 43.6121 50.3188 40.6913 48.9856 38.314ZM22.0659 15.8013C22.0659 14.0842 23.3789 12.6924 24.9985 12.6924C26.6182 12.6924 27.9311 14.0843 27.9311 15.8013V28.2372C27.9311 29.9541 26.6181 31.3462 24.9985 31.3462C23.3789 31.3462 22.0659 29.954 22.0659 28.2372V15.8013ZM24.9985 43.7821C22.5728 43.7821 20.5995 41.6902 20.5995 39.1186C20.5995 36.5471 22.5727 34.4552 24.9985 34.4552C27.4242 34.4552 29.3974 36.5471 29.3974 39.1186C29.3975 41.6901 27.4243 43.7821 24.9985 43.7821Z",fill:r}))}),w$=["color","size"],C$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,w$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M25 50C11.2033 50 0 38.7967 0 25C0 11.2033 11.2033 0 25 0C38.7967 0 50 11.2033 50 25C50 38.7967 38.6929 50 25 50ZM25 3.52697C13.1743 3.52697 3.63071 13.1743 3.63071 24.8963C3.63071 36.6183 13.278 46.2656 25 46.2656C36.8257 46.2656 46.3693 36.6183 46.3693 24.8963C46.3693 13.1743 36.8257 3.52697 25 3.52697Z",fill:r}),p.createElement("path",{d:"M28.3755 13.125C28.3755 11.3992 26.9765 10 25.2505 10C23.5245 10 22.1255 11.3992 22.1255 13.125C22.1255 14.8516 23.5245 16.25 25.2505 16.25C26.9765 16.25 28.3755 14.8516 28.3755 13.125Z",fill:r}),p.createElement("path",{d:"M20.563 38.5H29.938C30.8009 38.5 31.5005 37.8012 31.5005 36.9375C31.5005 36.0746 30.8009 35.375 29.938 35.375H28.3755V20.9375C28.3755 20.0746 27.6759 19.375 26.813 19.375H20.563C19.7001 19.375 19.0005 20.0746 19.0005 20.9375C19.0005 21.8012 19.7001 22.5 20.563 22.5H22.1255V35.375H20.563C19.7001 35.375 19.0005 36.0746 19.0005 36.9375C19.0005 37.8012 19.7001 38.5 20.563 38.5Z",fill:r}))}),S$=["color","size"],$O=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,S$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.3032 17.8662C34.0646 17.8662 36.3032 15.6276 36.3032 12.8662C36.3032 10.1048 34.0646 7.86618 31.3032 7.86618C28.5418 7.86618 26.3032 10.1048 26.3032 12.8662C26.3032 15.6276 28.5418 17.8662 31.3032 17.8662ZM31.3032 15.3662C32.6839 15.3662 33.8032 14.2469 33.8032 12.8662C33.8032 11.4855 32.6839 10.3662 31.3032 10.3662C29.9225 10.3662 28.8032 11.4855 28.8032 12.8662C28.8032 14.2469 29.9225 15.3662 31.3032 15.3662Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9372 15.1063C16.3967 15.0794 16.8338 15.3071 17.075 15.6991L25.0831 28.7141L29.8357 24.4289C30.0935 24.1966 30.4362 24.0818 30.7819 24.1121C31.1276 24.1424 31.4452 24.3151 31.6586 24.5887L40.2822 35.6497C40.5759 36.0264 40.6292 36.5376 40.4196 36.9668C40.21 37.396 39.7741 37.6683 39.2964 37.6683H6.70331C6.2766 37.6683 5.87937 37.4506 5.64974 37.091C5.42011 36.7313 5.38981 36.2794 5.56937 35.8923L14.8765 15.8282C15.0702 15.4106 15.4777 15.1333 15.9372 15.1063ZM16.1652 18.991L8.66108 35.1683H36.7368L30.5126 27.1848L25.6422 31.5761C25.3666 31.8246 24.9947 31.9378 24.6274 31.885C24.26 31.8322 23.9351 31.6189 23.7406 31.3027L16.1652 18.991Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z",fill:r}))});const x$=$O;var E$=["color","size"],b$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,E$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.562515 0.562512H3.68752V2.90626H2.90627V3.68751H0.562515V0.562512ZM0.562515 44.3125V47.4375H3.68752V45.0938H2.90627V44.3125H0.562515ZM44.3125 47.4375H47.4375V44.3125H45.0938V45.0938H44.3125V47.4375ZM47.4375 3.68751V0.562512H44.3125V2.90626H45.0938V3.68751H47.4375ZM7.59376 0.562512V3.68751H12.2813V0.562512H7.59376ZM16.9688 0.562512V3.68751H21.6563V0.562512H16.9688ZM26.3438 0.562512V3.68751H31.0313V0.562512H26.3438ZM35.7188 0.562512V3.68751H40.4063V0.562512H35.7188ZM47.4375 7.59376H44.3125V12.2813H47.4375V7.59376ZM47.4375 16.9688H44.3125V21.6563H47.4375V16.9688ZM47.4375 26.3438H44.3125V31.0313H47.4375V26.3438ZM47.4375 35.7188H44.3125V40.4063H47.4375V35.7188ZM40.4063 47.4375V44.3125H35.7188V47.4375H40.4063ZM31.0313 47.4375V44.3125H26.3438V47.4375H31.0313ZM21.6563 47.4375V44.3125H16.9688V47.4375H21.6563ZM12.2813 47.4375V44.3125H7.59377V47.4375H12.2813ZM0.562515 40.4063H3.68752V35.7188H0.562515V40.4063ZM0.562515 31.0313H3.68752V26.3438H0.562515V31.0313ZM0.562515 21.6563H3.68752V16.9688H0.562515V21.6563ZM0.562515 12.2813H3.68752V7.59376H0.562515V12.2813Z",fill:r}))});const O$=b$;var P$=["color","size"],k$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,P$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.5001 24.0625C38.2086 24.0625 38.8284 23.5858 39.0102 22.901C39.1921 22.2162 38.8904 21.4948 38.2753 21.1433L3.27531 1.14333C2.79171 0.866989 2.19757 0.868973 1.71583 1.14854C1.23409 1.4281 0.937592 1.94298 0.937592 2.49996V22.5C0.937592 23.3629 1.63715 24.0625 2.50009 24.0625L37.5001 24.0625ZM4.06259 20.9375L4.06259 5.19243L31.6164 20.9375L4.06259 20.9375Z",fill:r}),p.createElement("path",{d:"M38.2753 28.8566C38.8904 28.5051 39.1921 27.7837 39.0102 27.0989C38.8284 26.4142 38.2086 25.9375 37.5001 25.9375H35.3126V26.9504L34.5374 27.3933L35.3126 28.75V29.0625H35.4912L36.0878 30.1066L38.2753 28.8566Z",fill:r}),p.createElement("path",{d:"M27.3378 35.1066L31.7128 32.6066L30.1624 29.8933L25.7874 32.3933L27.3378 35.1066Z",fill:r}),p.createElement("path",{d:"M30.9376 25.9375H26.5626L26.5626 29.0625H30.9376L30.9376 25.9375Z",fill:r}),p.createElement("path",{d:"M18.5878 40.1066L22.9628 37.6066L21.4124 34.8933L17.0374 37.3933L18.5878 40.1066Z",fill:r}),p.createElement("path",{d:"M22.1876 25.9375H17.8126V29.0625H22.1876V25.9375Z",fill:r}),p.createElement("path",{d:"M9.83781 45.1066L14.2128 42.6066L12.6624 39.8933L8.28738 42.3933L9.83781 45.1066Z",fill:r}),p.createElement("path",{d:"M13.4376 25.9375H9.0626V29.0625H13.4376V25.9375Z",fill:r}),p.createElement("path",{d:"M3.27531 48.8566L5.46281 47.6066L4.06259 45.1562V45H3.97331L3.91238 44.8933L3.72578 45H0.937592V47.5C0.937592 48.0569 1.23409 48.5718 1.71583 48.8514C2.19758 49.1309 2.79171 49.1329 3.27531 48.8566Z",fill:r}),p.createElement("path",{d:"M4.6876 25.9375L2.50009 25.9375C1.63715 25.9375 0.937592 26.637 0.937592 27.5V30H4.06259V29.0625H4.6876V25.9375Z",fill:r}),p.createElement("path",{d:"M0.937592 35V40L4.06259 40V35H0.937592Z",fill:r}))}),_$=["color","size"],T$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,_$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0625 1.93758C24.0625 1.22909 23.5858 0.609274 22.901 0.427427C22.2163 0.245581 21.4949 0.547225 21.1434 1.16237L1.14337 39.2874C0.867028 39.771 0.869012 40.3651 1.14858 40.8468C1.42814 41.3286 1.94302 41.6251 2.5 41.6251H22.5C23.3629 41.6251 24.0625 40.9255 24.0625 40.0626V1.93758ZM20.9375 38.5001H5.19247L20.9375 7.82128V38.5001Z",fill:r}),p.createElement("path",{d:"M28.8566 1.16237C28.5051 0.547225 27.7837 0.245581 27.099 0.427428C26.4142 0.609274 25.9375 1.22909 25.9375 1.93758V4.12508H26.9504L27.3934 4.9003L28.75 4.12508H29.0625V3.94651L30.1066 3.34986L28.8566 1.16237Z",fill:r}),p.createElement("path",{d:"M35.1066 12.0999L32.6066 7.72486L29.8934 9.2753L32.3934 13.6503L35.1066 12.0999Z",fill:r}),p.createElement("path",{d:"M25.9375 8.50008V12.8751H29.0625V8.50008H25.9375Z",fill:r}),p.createElement("path",{d:"M40.1066 23.9749L37.6066 19.5999L34.8934 21.1503L37.3934 25.5253L40.1066 23.9749Z",fill:r}),p.createElement("path",{d:"M25.9375 20.3751V24.7501H29.0625V20.3751H25.9375Z",fill:r}),p.createElement("path",{d:"M45.1066 32.7249L42.6066 28.3499L39.8934 29.9003L42.3934 34.2753L45.1066 32.7249Z",fill:r}),p.createElement("path",{d:"M25.9375 29.1251V33.5001H29.0625V29.1251H25.9375Z",fill:r}),p.createElement("path",{d:"M48.8566 39.2874L47.6066 37.0999L45.1562 38.5001H45V38.5894L44.8934 38.6503L45 38.8369V41.6251H47.5C48.057 41.6251 48.5719 41.3286 48.8514 40.8468C49.131 40.3651 49.133 39.771 48.8566 39.2874Z",fill:r}),p.createElement("path",{d:"M25.9375 37.8751V40.0626C25.9375 40.9255 26.6371 41.6251 27.5 41.6251H30V38.5001H29.0625V37.8751H25.9375Z",fill:r}),p.createElement("path",{d:"M35 41.6251H40V38.5001H35V41.6251Z",fill:r}))}),I$=["color","size"],WO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,I$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.2047 46.875C37.2859 46.875 47.0797 37.0812 47.0797 25C47.0797 12.9188 37.2859 3.125 25.2047 3.125C13.1235 3.125 3.32968 12.9188 3.32968 25C3.32968 37.0812 13.1235 46.875 25.2047 46.875ZM25.2047 50C39.0118 50 50.2047 38.8071 50.2047 25C50.2047 11.1929 39.0118 0 25.2047 0C11.3976 0 0.204681 11.1929 0.204681 25C0.204681 38.8071 11.3976 50 25.2047 50Z",fill:r}))});const L$=WO;var A$=["color","size"],M$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,A$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 51 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11841 3.93805V32.063H47.8684V3.93805H4.11841ZM3.49341 0.813049C2.1127 0.813049 0.993408 1.91235 0.993408 3.26841V32.7327C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7327V3.26841C50.9934 1.91235 49.8741 0.813049 48.4934 0.813049H3.49341Z",fill:r}))});const R$=M$;var z$=["color","size"],j$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,z$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50015 7.9997C5.50015 6.61898 6.61944 5.49969 8.00015 5.49969H38.0002C39.3809 5.49969 40.5002 6.61898 40.5002 7.99969V37.9997C40.5002 39.3804 39.3809 40.4997 38.0002 40.4997H8.00015C6.61944 40.4997 5.50015 39.3804 5.50015 37.9997V7.9997ZM8.00015 7.99969H38.0002V37.9997H8.00015V7.99969Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z",fill:r}))});const N$=j$;var D$=["color","size"],B$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,D$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M0.166672 0.166664H8.50001V8.5H0.166672V0.166664Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8333 8.5H8.50001V16.8333H0.166672V25.1667H8.50001V33.5H0.166672V41.8333H8.50001V33.5H16.8333V41.8333H25.1667V33.5H33.5V41.8333H41.8333V33.5H33.5V25.1667H41.8333V16.8333H33.5V8.5H41.8333V0.166664H33.5V8.5H25.1667V0.166664H16.8333V8.5ZM16.8333 16.8333V8.5H25.1667V16.8333H16.8333ZM16.8333 25.1667V33.5H25.1667V25.1667H33.5V16.8333H25.1667V25.1667H16.8333ZM16.8333 25.1667H8.50001V16.8333H16.8333V25.1667Z",fill:r}))});const H$=B$;var F$=["color","size"],$$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,F$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.95831 0.458374C1.5776 0.458374 0.458313 1.57766 0.458313 2.95837V35.4584C0.458313 36.8391 1.5776 37.9584 2.95831 37.9584H7.54167V43.7917C7.54167 45.8627 9.2206 47.5417 11.2917 47.5417H43.7917C45.8627 47.5417 47.5417 45.8627 47.5417 43.7917V11.2917C47.5417 9.22059 45.8627 7.54166 43.7917 7.54166H37.9583V2.95837C37.9583 1.57766 36.839 0.458374 35.4583 0.458374H2.95831ZM35.4583 2.95837H2.95831L2.95831 35.4584H35.4583V2.95837ZM15.7267 37.9584L10.0417 43.746V37.9584H15.7267ZM11.5135 45.0417L18.4712 37.9584H28.5529L21.4696 45.0417H11.5135ZM24.4159 45.0417H34.2932L45.0417 34.1339V24.0207L37.9583 31.3242V35.4584C37.9583 36.8391 36.839 37.9584 35.4583 37.9584H31.4912C31.4689 37.9859 31.445 38.0126 31.4194 38.0382L24.4159 45.0417ZM45.0417 21.3515L37.9583 28.655V18.9107L45.0417 11.8338V21.3515ZM37.0311 45.0417H43.7917C44.482 45.0417 45.0417 44.482 45.0417 43.7917V36.9124L37.0311 45.0417ZM43.8844 10.045C43.8538 10.0428 43.8229 10.0417 43.7917 10.0417H37.9583V15.9657L43.8844 10.045Z",fill:r}))});const W$=$$;var V$=["color","size"],G$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,V$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M3 3H23V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V23H43V43H3V3Z",fill:r}),p.createElement("path",{d:"M45.5 7.25076H43V5.50076C43 5.15718 42.9321 4.83576 42.8113 4.54446L45.1206 3.58682C45.3651 4.17636 45.5 4.82281 45.5 5.50076V7.25076Z",fill:r}),p.createElement("path",{d:"M24.75 0.500763V3.00076H28.25V0.500763H24.75Z",fill:r}),p.createElement("path",{d:"M31.75 0.500763V3.00076H35.25V0.500763H31.75Z",fill:r}),p.createElement("path",{d:"M38.75 0.500763V3.00076H40.5C40.8436 3.00076 41.165 3.06868 41.4563 3.18948L42.414 0.880166C41.8244 0.635694 41.178 0.500763 40.5 0.500763H38.75Z",fill:r}),p.createElement("path",{d:"M45.5 10.7508H43V14.2508H45.5V10.7508Z",fill:r}),p.createElement("path",{d:"M45.5 17.7508H43V21.2508H45.5V17.7508Z",fill:r}))});const U$=G$;var X$=["color","size"],Z$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,X$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M9.25008 9.24878H11.7501V10.9675H10.9688V11.7488H9.25008V9.24878Z",fill:r}),p.createElement("path",{d:"M9.25008 34.2488V36.7488H11.7501V35.03H10.9688V34.2488H9.25008Z",fill:r}),p.createElement("path",{d:"M34.2501 36.7488H36.7501V34.2488H35.0313V35.03H34.2501V36.7488Z",fill:r}),p.createElement("path",{d:"M36.7501 11.7488V9.24878H34.2501V10.9675H35.0313V11.7488H36.7501Z",fill:r}),p.createElement("path",{d:"M14.4063 9.24878V11.7488H17.8438V9.24878H14.4063Z",fill:r}),p.createElement("path",{d:"M21.2813 9.24878V11.7488H24.7188V9.24878H21.2813Z",fill:r}),p.createElement("path",{d:"M28.1563 9.24878V11.7488H31.5938V9.24878H28.1563Z",fill:r}),p.createElement("path",{d:"M36.7501 14.405H34.2501V17.8425H36.7501V14.405Z",fill:r}),p.createElement("path",{d:"M36.7501 21.28H34.2501V24.7175H36.7501V21.28Z",fill:r}),p.createElement("path",{d:"M36.7501 28.155H34.2501V31.5925H36.7501V28.155Z",fill:r}),p.createElement("path",{d:"M31.5938 36.7488V34.2488H28.1563V36.7488H31.5938Z",fill:r}),p.createElement("path",{d:"M24.7188 36.7488V34.2488H21.2813V36.7488H24.7188Z",fill:r}),p.createElement("path",{d:"M17.8438 36.7488V34.2488H14.4063V36.7488H17.8438Z",fill:r}),p.createElement("path",{d:"M9.25008 31.5925H11.7501V28.155H9.25008V31.5925Z",fill:r}),p.createElement("path",{d:"M9.25008 24.7175H11.7501V21.28H9.25008V24.7175Z",fill:r}),p.createElement("path",{d:"M9.25008 17.8425H11.7501V14.405H9.25008V17.8425Z",fill:r}),p.createElement("path",{d:"M23.0002 26.7497C25.0712 26.7497 26.7502 25.0708 26.7502 22.9997C26.7502 20.9286 25.0712 19.2497 23.0002 19.2497C20.9291 19.2497 19.2502 20.9286 19.2502 22.9997C19.2502 25.0708 20.9291 26.7497 23.0002 26.7497Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z",fill:r}))});const Y$=Z$;var K$=["color","size"],q$=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,K$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29986 0.991788C4.78802 0.503633 5.57947 0.503633 6.06763 0.991788L9.367 4.29116C9.85516 4.77932 9.85516 5.57077 9.367 6.05893C8.87885 6.54708 8.08739 6.54708 7.59924 6.05893L6.43374 4.89344V34.0829L7.59924 32.9174C8.08739 32.4293 8.87885 32.4293 9.367 32.9174C9.85516 33.4056 9.85516 34.197 9.367 34.6852L6.06763 37.9846C5.8332 38.219 5.51524 38.3507 5.18371 38.3507C4.85217 38.3507 4.53422 38.219 4.29981 37.9845L1.00084 34.6851C0.512712 34.1969 0.512761 33.4055 1.00095 32.9174C1.48913 32.4292 2.28059 32.4293 2.76871 32.9175L3.93374 34.0827V4.89344L2.76825 6.05893C2.2801 6.54708 1.48864 6.54708 1.00049 6.05893C0.51233 5.57077 0.51233 4.77932 1.00049 4.29116L4.29986 0.991788ZM13.1588 8.34109V1.49725H46.3156V8.34102H43.398V7.19776C43.398 5.54595 42.0562 4.20442 40.4047 4.20442H31.8516V26.0992C31.8516 28.1387 33.5088 29.7957 35.5481 29.7957H36.5137V32.4599H23.01V29.7957H23.9756C26.0151 29.7957 27.6721 28.1387 27.6721 26.0992V4.20448H19.0697C17.418 4.20448 16.0763 5.54604 16.0763 7.19783V8.34109H13.1588ZM46.9995 39.7088C47.4877 39.2207 47.4877 38.4292 46.9995 37.9411L43.7001 34.6417C43.212 34.1535 42.4205 34.1535 41.9324 34.6417C41.4442 35.1298 41.4442 35.9213 41.9324 36.4095L43.0979 37.5749L15.0832 37.5749L16.2484 36.4099C16.7366 35.9218 16.7366 35.1303 16.2485 34.6421C15.7604 34.154 14.9689 34.1539 14.4807 34.642L11.1814 37.941C10.9469 38.1754 10.8152 38.4934 10.8152 38.8249C10.8152 39.1564 10.9469 39.4744 11.1813 39.7088L14.4807 43.0082C14.9688 43.4964 15.7603 43.4964 16.2485 43.0082C16.7366 42.5201 16.7366 41.7286 16.2485 41.2404L15.083 40.0749L43.0979 40.0749L41.9324 41.2404C41.4442 41.7286 41.4442 42.5201 41.9324 43.0082C42.4205 43.4964 43.212 43.4964 43.7001 43.0082L46.9995 39.7088Z",fill:r}))});const Q$=q$;var J$=["color","size"],eW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,J$);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M13.8334 9.19949C13.8334 8.50914 14.3931 7.94949 15.0834 7.94949H31.3334C32.0238 7.94949 32.5834 8.50914 32.5834 9.19949C32.5834 9.88985 32.0238 10.4495 31.3334 10.4495H15.0834C14.3931 10.4495 13.8334 9.88985 13.8334 9.19949Z",fill:r}),p.createElement("path",{d:"M15.0834 35.5496C14.3931 35.5496 13.8334 36.1092 13.8334 36.7996C13.8334 37.4899 14.3931 38.0496 15.0834 38.0496H31.3334C32.0238 38.0496 32.5834 37.4899 32.5834 36.7996C32.5834 36.1092 32.0238 35.5496 31.3334 35.5496H15.0834Z",fill:r}),p.createElement("path",{d:"M36.8001 13.4163C37.4905 13.4163 38.0501 13.9759 38.0501 14.6663V30.9163C38.0501 31.6066 37.4905 32.1663 36.8001 32.1663C36.1098 32.1663 35.5501 31.6066 35.5501 30.9163V14.6663C35.5501 13.9759 36.1098 13.4163 36.8001 13.4163Z",fill:r}),p.createElement("path",{d:"M10.45 14.6663C10.45 13.9759 9.89038 13.4163 9.20003 13.4163C8.50967 13.4163 7.95003 13.9759 7.95003 14.6663L7.95003 30.9163C7.95003 31.6066 8.50967 32.1663 9.20003 32.1663C9.89038 32.1663 10.45 31.6066 10.45 30.9163L10.45 14.6663Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z",fill:r}))});const tW=eW;var nW=["color","size"],rW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,nW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.103 18.4866L24.0002 3.8811L3.89749 18.4866L11.5761 42.1188H36.4244L44.103 18.4866ZM25.8371 1.35293C24.7418 0.557164 23.2587 0.557162 22.1634 1.35292L2.06066 15.9584C0.96539 16.7542 0.507082 18.1647 0.925439 19.4523L8.604 43.0845C9.02236 44.372 10.2222 45.2438 11.5761 45.2438H36.4244C37.7782 45.2438 38.9781 44.372 39.3965 43.0845L47.075 19.4523C47.4934 18.1647 47.0351 16.7542 45.9398 15.9584L25.8371 1.35293Z",fill:r}))}),iW=["color","size"],oW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,iW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0078 29.9669H25.835L24.7803 35.9727H27.4609L28.5156 29.9669H32.2363V27.4473H28.9551L29.6875 23.2872H33.3496V20.7383H30.1416L31.2109 14.6446H28.5303L27.4609 20.7383H24.6191L25.6885 14.6446H23.0225L21.9531 20.7383H18.1006V23.2872H21.499L20.7666 27.4473H17.002V29.9669H20.3271L19.2725 35.9727H21.9531L23.0078 29.9669ZM26.2744 27.4473H23.4473L24.165 23.2872H27.0068L26.2744 27.4473Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5448 0.821208C24.421 0.184598 25.6075 0.184597 26.4837 0.821207L48.4803 16.8026C49.3565 17.4392 49.7231 18.5677 49.3885 19.5977L40.9865 45.4562C40.6518 46.4862 39.692 47.1836 38.6089 47.1836H11.4197C10.3366 47.1836 9.37672 46.4862 9.04204 45.4562L0.640107 19.5977C0.305422 18.5677 0.672067 17.4392 1.54829 16.8026L23.5448 0.821208ZM25.0143 2.84375L47.0108 18.8252L38.6089 44.6836H11.4197L3.01775 18.8252L25.0143 2.84375Z",fill:r}))});const aW=oW;var lW=["color","size"],sW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,lW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 46 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.5 15.0005C45.5 15.7079 45.2003 16.3822 44.6753 16.8562L30.8291 29.3562C29.8042 30.2814 28.2234 30.2006 27.2982 29.1758C26.373 28.1509 26.4537 26.57 27.4786 25.6448L36.5 17.5005L3 17.5005C1.61928 17.5005 0.499999 16.3812 0.499999 15.0005C0.499999 13.6198 1.61929 12.5005 3 12.5005L36.5 12.5005L27.4786 4.35618C26.4537 3.43096 26.373 1.85011 27.2982 0.82525C28.2234 -0.199608 29.8042 -0.280382 30.8291 0.644837L44.6753 13.1448C45.2003 13.6189 45.5 14.2931 45.5 15.0005Z",fill:r}))}),uW=["color","size"],cW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,uW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 48L26.9931 2H31.2019L23.2087 48H19Z",fill:r}))});const dW=cW;var fW=["color","size"],pW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,fW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M0.214966 17.4813V0.518677H6.61123C8.82693 0.518677 10.5075 0.914783 11.653 1.70699C12.7985 2.49144 13.3712 3.64481 13.3712 5.16709C13.3712 5.99814 13.1413 6.7321 12.6814 7.36898C12.2216 7.99809 11.5819 8.46021 10.7625 8.75535C11.699 8.97282 12.4348 9.41164 12.9699 10.0718C13.5133 10.732 13.7851 11.5397 13.7851 12.4951C13.7851 14.1261 13.2249 15.361 12.1045 16.1998C10.9841 17.0386 9.38713 17.4658 7.31357 17.4813H0.214966ZM3.97748 10.0951V14.6736H7.20069C8.08697 14.6736 8.77677 14.4795 9.27007 14.0911C9.77174 13.695 10.0226 13.1513 10.0226 12.4601C10.0226 10.9067 9.1572 10.1184 7.42644 10.0951H3.97748ZM3.97748 7.62528H6.76173C8.65971 7.59421 9.6087 6.89132 9.6087 5.5166C9.6087 4.74769 9.36623 4.19625 8.88128 3.86228C8.4047 3.52054 7.64801 3.34967 6.61123 3.34967H3.97748V7.62528Z",fill:r}))});const hW=pW;var gW=["color","size"],VO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,gW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M17.5911 1.54582C16.7075 0.680052 15.2937 0.680014 14.4101 1.54573L4.05296 11.6925C3.15635 12.5709 3.14159 14.0098 4.01999 14.9064C4.89839 15.8031 6.33733 15.8178 7.23394 14.9394L13.7278 8.57741V30.4419C13.7278 31.6971 14.7454 32.7147 16.0006 32.7147C17.2558 32.7147 18.2733 31.6971 18.2733 30.4419V8.57782L24.766 14.9393C25.6625 15.8178 27.1015 15.8031 27.9799 14.9065C28.8584 14.01 28.8437 12.571 27.9471 11.6926L17.5911 1.54582Z",fill:r}),p.createElement("path",{d:"M2.78827 36.5543C1.53308 36.5543 0.515541 37.5719 0.515541 38.827C0.515541 40.0822 1.53308 41.0998 2.78827 41.0998H29.1519C30.4071 41.0998 31.4246 40.0822 31.4246 38.827C31.4246 37.5719 30.4071 36.5543 29.1519 36.5543H2.78827Z",fill:r}))});const mW=VO;var vW=["color","size"],GO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,vW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 28 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.907 0.71085C25.7493 -0.292553 23.9445 -0.224769 22.8758 0.862251L0.931376 23.1837C-0.0773525 24.2097 -0.0773525 25.7913 0.931376 26.8173L22.8758 49.1388C23.9445 50.2258 25.7493 50.2936 26.907 49.2902C28.0647 48.2868 28.1369 46.5921 27.0683 45.5051L6.90997 25.0005L27.0683 4.49589C28.1369 3.40888 28.0647 1.71425 26.907 0.71085Z",fill:r}))}),yW=["color","size"],wW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,yW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 28 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.09286 0.71085C2.25057 -0.292553 4.05541 -0.224769 5.12407 0.862251L27.0685 23.1837C28.0772 24.2097 28.0772 25.7913 27.0685 26.8173L5.12407 49.1388C4.05541 50.2258 2.25057 50.2936 1.09286 49.2902C-0.0648579 48.2868 -0.137051 46.5921 0.93161 45.5051L21.0899 25.0005L0.93161 4.49589C-0.137051 3.40888 -0.0648579 1.71425 1.09286 0.71085Z",fill:r}))}),CW=["color","size"],SW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,CW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M16.9167 21.0838L16.9167 35.6672C16.9167 36.8177 17.8494 37.7505 19 37.7505C20.1506 37.7505 21.0833 36.8177 21.0833 35.6672L21.0833 21.0838H35.6667C36.8173 21.0838 37.75 20.1511 37.75 19.0005C37.75 17.8499 36.8173 16.9172 35.6667 16.9172L21.0833 16.9172L21.0833 2.33382C21.0833 1.18323 20.1506 0.250488 19 0.250488C17.8494 0.250488 16.9167 1.18323 16.9167 2.33382L16.9167 16.9172H2.33333C1.18274 16.9172 0.25 17.8499 0.25 19.0005C0.25 20.1511 1.18274 21.0838 2.33333 21.0838H16.9167Z",fill:r}))}),xW=["color","size"],EW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,xW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.04757 38.9503C0.437373 38.3401 0.437373 37.3508 1.04757 36.7406L33.9229 3.86697L23.8354 3.33584C22.9736 3.29047 22.3118 2.5551 22.3572 1.69335C22.4026 0.831601 23.138 0.169794 23.9997 0.215167L37.5909 0.930759C38.3892 0.972794 39.027 1.61063 39.0691 2.40894L39.7846 16.0001C39.83 16.8619 39.1682 17.5972 38.3065 17.6426C37.4447 17.688 36.7093 17.0262 36.664 16.1644L36.1328 6.07651L3.25728 38.9503C2.64708 39.5605 1.65776 39.5605 1.04757 38.9503Z",fill:r}))}),bW=["color","size"],OW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,bW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.1607 4.16667V2.08333C27.1607 0.93274 26.2279 0 25.0773 0C23.9267 0 22.994 0.932741 22.994 2.08333V4.16667H4.244C1.94281 4.16667 0.0773315 6.03215 0.0773315 8.33333V41.6667C0.0773315 43.9679 1.94281 45.8333 4.244 45.8333H22.994V47.9167C22.994 49.0673 23.9267 50 25.0773 50C26.2279 50 27.1607 49.0673 27.1607 47.9167V45.8333H45.9107C48.2118 45.8333 50.0773 43.9678 50.0773 41.6667V8.33333C50.0773 6.03215 48.2119 4.16667 45.9107 4.16667H27.1607ZM22.994 8.33333H4.244L4.244 41.6667H22.994V8.33333ZM27.1607 41.6667V8.33333H45.9107V41.6667H27.1607Z",fill:r}))});const PW=OW;var kW=["color","size"],_W=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,kW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 38 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.835 5.0769L2.16498 5.0769C1.00277 5.0769 0.0606079 4.14726 0.0606079 3.00048C0.060608 1.85371 1.00277 0.924072 2.16498 0.924072L35.835 0.924074C36.9972 0.924074 37.9394 1.85372 37.9394 3.00049C37.9394 4.14726 36.9972 5.0769 35.835 5.0769Z",fill:r}))}),TW=["color","size"],IW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,TW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.48799 3.125H17.0311L17.0311 24.4063C17.0311 26.6148 18.1889 28.4084 19.5429 29.5401C21.7011 31.3438 23.0656 34.0456 23.0656 37.069C23.0656 42.4847 18.6753 46.875 13.2595 46.875C7.84382 46.875 3.45351 42.4847 3.45351 37.069C3.45351 34.0456 4.81799 31.3438 6.97617 29.5401C8.33021 28.4084 9.48799 26.6148 9.48799 24.4063V3.125ZM20.1561 3.125C20.1561 1.39911 18.757 0 17.0311 0H9.48799C7.7621 0 6.36299 1.39911 6.36299 3.125V24.4063C6.36299 25.4785 5.79482 26.4547 4.97216 27.1423C2.13398 29.5143 0.328506 33.0808 0.328506 37.069C0.328506 44.2106 6.11793 50 13.2595 50C20.4012 50 26.1906 44.2106 26.1906 37.069C26.1906 33.0808 24.3851 29.5143 21.5469 27.1423C20.7243 26.4547 20.1561 25.4785 20.1561 24.4063V3.125ZM35.6715 1.25C35.6715 0.559645 35.1119 0 34.4215 0H28.1715C27.4812 0 26.9215 0.559644 26.9215 1.25C26.9215 1.94036 27.4812 2.5 28.1715 2.5L34.4215 2.5C35.1119 2.5 35.6715 1.94036 35.6715 1.25ZM35.6715 8.24951C35.6715 7.55916 35.1119 6.99951 34.4215 6.99951H28.1715C27.4812 6.99951 26.9215 7.55916 26.9215 8.24951C26.9215 8.93987 27.4812 9.49951 28.1715 9.49951H34.4215C35.1119 9.49951 35.6715 8.93987 35.6715 8.24951ZM34.4215 13.999C35.1119 13.999 35.6715 14.5587 35.6715 15.249C35.6715 15.9394 35.1119 16.499 34.4215 16.499H28.1715C27.4812 16.499 26.9215 15.9394 26.9215 15.249C26.9215 14.5587 27.4812 13.999 28.1715 13.999H34.4215ZM13.2594 43.7501C16.366 43.7501 18.8844 41.2317 18.8844 38.1251C18.8844 35.4037 16.9519 33.1337 14.3844 32.6126V10.3662C14.3844 9.67582 13.8247 9.11617 13.1344 9.11617C12.444 9.11617 11.8844 9.67582 11.8844 10.3662V32.6694C9.44245 33.2829 7.63441 35.4928 7.63441 38.1251C7.63441 41.2317 10.1528 43.7501 13.2594 43.7501Z",fill:r}))}),LW=["color","size"],AW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,LW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4376 40.6858V38.5625V4.18746V3.31418C10.8133 4.10816 3.25006 12.1708 3.25006 22C3.25006 31.8292 10.8133 39.8918 20.4376 40.6858ZM40.7501 22C40.7501 31.8292 33.1868 39.8918 23.5626 40.6858V38.5625V4.18746V3.31418C33.1868 4.10816 40.7501 12.1708 40.7501 22ZM43.8751 22C43.8751 34.0812 34.0813 43.875 22.0001 43.875C9.91883 43.875 0.125061 34.0812 0.125061 22C0.125061 9.91877 9.91883 0.125 22.0001 0.125C34.0813 0.125 43.8751 9.91877 43.8751 22Z",fill:r}))}),MW=["color","size"],RW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,MW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3679 7.50003C15.7995 10.005 13.5592 11.875 10.8823 11.875C8.20528 11.875 5.96506 10.005 5.39665 7.50003H1.5448C0.854444 7.50003 0.2948 6.94039 0.2948 6.25003C0.2948 5.55967 0.854444 5.00003 1.5448 5.00003H5.39665C5.96506 2.49504 8.20528 0.625031 10.8823 0.625031C13.5592 0.625031 15.7995 2.49504 16.3679 5.00003H48.4557C49.1461 5.00003 49.7057 5.55967 49.7057 6.25003C49.7057 6.94039 49.1461 7.50003 48.4557 7.50003H16.3679ZM14.0073 6.25003C14.0073 7.97592 12.6082 9.37503 10.8823 9.37503C9.15637 9.37503 7.75726 7.97592 7.75726 6.25003C7.75726 4.52414 9.15637 3.12503 10.8823 3.12503C12.6082 3.12503 14.0073 4.52414 14.0073 6.25003Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5715 27.625C37.2485 27.625 39.4887 25.755 40.0571 23.25H48.4554C49.1458 23.25 49.7054 22.6904 49.7054 22C49.7054 21.3096 49.1458 20.75 48.4554 20.75H40.0571C39.4887 18.245 37.2485 16.375 34.5715 16.375C31.8946 16.375 29.6543 18.245 29.0859 20.75H1.5448C0.854444 20.75 0.2948 21.3096 0.2948 22C0.2948 22.6904 0.854444 23.25 1.5448 23.25H29.0859C29.6543 25.755 31.8946 27.625 34.5715 27.625ZM34.5715 25.125C36.2974 25.125 37.6965 23.7259 37.6965 22C37.6965 20.2741 36.2974 18.875 34.5715 18.875C32.8456 18.875 31.4465 20.2741 31.4465 22C31.4465 23.7259 32.8456 25.125 34.5715 25.125Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.7702 39C22.2018 41.505 19.9615 43.375 17.2845 43.375C14.6076 43.375 12.3673 41.505 11.7989 39H1.5448C0.854444 39 0.2948 38.4403 0.2948 37.75C0.2948 37.0596 0.854444 36.5 1.5448 36.5H11.7989C12.3673 33.995 14.6076 32.125 17.2845 32.125C19.9615 32.125 22.2018 33.995 22.7702 36.5H48.4554C49.1458 36.5 49.7054 37.0596 49.7054 37.75C49.7054 38.4403 49.1458 39 48.4554 39H22.7702ZM20.4095 37.75C20.4095 39.4759 19.0104 40.875 17.2845 40.875C15.5587 40.875 14.1595 39.4759 14.1595 37.75C14.1595 36.0241 15.5587 34.625 17.2845 34.625C19.0104 34.625 20.4095 36.0241 20.4095 37.75Z",fill:r}))}),zW=["color","size"],jW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,zW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.2341 37.6984H37.5121V37.4237C41.4447 33.4687 43.875 28.0182 43.875 22C43.875 15.9819 41.4447 10.5314 37.5121 6.57632V6.30045H37.2328C33.2942 2.47819 27.9219 0.125031 22 0.125031C9.91877 0.125031 0.125 9.9188 0.125 22C0.125 34.0813 9.91877 43.875 22 43.875C24.718 43.875 27.3203 43.3793 29.7213 42.4733H30.5303V42.1494C33.0389 41.0861 35.308 39.5679 37.2341 37.6984ZM20.4257 3.31519C10.807 4.1148 3.25 12.1749 3.25 22C3.25 31.8252 10.807 39.8853 20.4257 40.6849V3.31519ZM34.3871 36.0759C33.221 37.1029 31.9263 37.9873 30.5303 38.7017V5.29836C31.9263 6.01281 33.221 6.89715 34.3871 7.92411V36.0759ZM37.5121 11.4641C39.5556 14.4669 40.75 18.094 40.75 22C40.75 25.9061 39.5556 29.5332 37.5121 32.536V11.4641ZM23.5507 40.6868C24.8796 40.578 26.1693 40.3307 27.4053 39.9592V4.04089C26.1693 3.66941 24.8796 3.42203 23.5507 3.31324V40.6868Z",fill:r}))}),NW=["color","size"],DW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,NW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M46.1442 31.379C45.4585 31.379 44.8974 31.9429 44.8974 32.6321V43.7349C44.8974 45.8025 43.2267 47.4817 41.157 47.4943H6.22156C4.16433 47.4943 2.49361 45.8151 2.48114 43.7349V11.1283C2.48114 9.06067 4.15186 7.38147 6.22156 7.36894H17.2807C17.9665 7.36894 18.5275 6.80503 18.5275 6.1158C18.5275 5.42658 17.9665 4.86267 17.2807 4.86267H6.22156C2.79284 4.8752 0 7.66969 0 11.1283V43.7349C0 47.1935 2.79284 50.0005 6.22156 50.0005H41.157C44.5982 50.0005 47.3786 47.1935 47.3786 43.7474V32.6321C47.391 31.9429 46.83 31.379 46.1442 31.379Z",fill:r}),p.createElement("path",{d:"M46.8923 1.65462C44.698 -0.55089 41.157 -0.55089 38.9627 1.65462L16.7571 23.9729C16.6075 24.1233 16.4953 24.3113 16.4329 24.5243L13.5154 35.1258C13.3907 35.5644 13.5154 36.0281 13.8396 36.3413C14.1513 36.6546 14.6251 36.7799 15.049 36.6672L25.5969 33.7348C25.8089 33.6722 25.9959 33.5719 26.1455 33.409L48.3636 11.0782C50.5455 8.87267 50.5455 5.31377 48.3636 3.10826L46.8923 1.65462ZM19.4751 24.7875L37.6535 6.51678L43.5135 12.4065L25.3351 30.6897L19.4751 24.7875ZM18.3031 27.1559L22.9911 31.8677L16.5077 33.6722L18.3031 27.1559ZM46.5931 9.31127L45.2715 10.6396L39.4115 4.74986L40.7331 3.42154C41.9425 2.206 43.9249 2.206 45.1343 3.42154L46.5931 4.88771C47.815 6.11578 47.815 8.09573 46.5931 9.31127Z",fill:r}))}),BW=["color","size"],HW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,BW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M18.3626 41.293C17.5103 41.4285 16.7096 40.8474 16.5742 39.9952C16.4387 39.143 17.0198 38.3423 17.872 38.2068C18.2902 38.1403 18.6988 38.0456 19.0958 37.9246C21.9368 37.059 24.1957 34.8468 25.1254 32.0335C25.2671 31.6049 25.378 31.1621 25.4555 30.7076C25.6005 29.857 26.4076 29.2849 27.2583 29.4299C28.109 29.5749 28.681 30.3821 28.536 31.2327C28.432 31.8429 28.283 32.4379 28.0926 33.0142C26.8449 36.7893 23.8206 39.7519 20.0065 40.914C19.4728 41.0766 18.9239 41.2038 18.3626 41.293Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.9356 31.0645C33.9356 23.9644 24.1764 8.59028 19.4747 1.59549C18.2785 -0.184172 15.7216 -0.184172 14.5254 1.59548C9.82374 8.59028 0.0645752 23.9644 0.0645752 31.0645C0.0645752 40.4177 7.64685 48 17.0001 48C26.3533 48 33.9356 40.4177 33.9356 31.0645ZM30.8106 31.0645C30.8106 29.8836 30.375 28.0316 29.4236 25.578C28.5 23.1959 27.1988 20.5159 25.7187 17.7756C22.8106 12.3913 19.3287 6.98743 17.0001 3.51586C14.6715 6.98743 11.1895 12.3913 8.28145 17.7756C6.80135 20.5159 5.50017 23.1959 4.57655 25.578C3.62517 28.0316 3.18958 29.8836 3.18958 31.0645C3.18958 38.6918 9.37274 44.875 17.0001 44.875C24.6274 44.875 30.8106 38.6918 30.8106 31.0645Z",fill:r}))}),FW=["color","size"],$W=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,FW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.0081 15.2287L36.7869 17.6214L28.935 29.9601C30.5809 33.9266 30.3662 38.0903 27.1408 41.3158L26.5656 41.8909C25.9554 42.5011 24.9661 42.5011 24.3559 41.8909L14.4122 31.9472L2.99211 43.3673C2.38192 43.9775 1.3926 43.9775 0.782403 43.3673C0.17221 42.7571 0.172211 41.7678 0.782403 41.1576L12.2025 29.7375L2.25883 19.7938C1.64864 19.1836 1.64864 18.1943 2.25883 17.5841L2.50512 17.3378C5.73058 14.1123 10.2231 13.5688 14.1897 15.2147L26.5283 7.36283L28.9211 1.14165C29.327 0.0863053 30.6847 -0.201832 31.4843 0.597706L43.552 12.6655C44.3516 13.465 44.0634 14.8228 43.0081 15.2287ZM29.0752 9.44618L30.9747 4.50752L39.6422 13.1751L34.7035 15.0745L25.4251 29.655L26.0486 31.1577C27.234 34.0146 27.0773 36.5309 25.4342 38.5498L5.64209 18.7576C7.75439 17.2384 10.4304 17.0382 12.992 18.1011L14.4948 18.7246L29.0752 9.44618Z",fill:r}))}),WW=["color","size"],VW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,WW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.312012 34.847V3.39883C0.312012 1.67294 1.71112 0.273834 3.43701 0.273834H26.807C28.5329 0.273834 29.932 1.67294 29.932 3.39883V34.847C29.932 36.5729 28.5329 37.972 26.807 37.972H3.43701C1.71112 37.972 0.312012 36.5729 0.312012 34.847ZM3.43701 34.847V3.39883L26.807 3.39883L26.807 34.847L3.43701 34.847Z",fill:r}),p.createElement("path",{d:"M35.6874 12.5434C35.6874 11.6805 34.9878 10.9809 34.1249 10.9809C33.2619 10.9809 32.5624 11.6805 32.5624 12.5434V40.6009H9.89033C9.02739 40.6009 8.32783 41.3005 8.32783 42.1634C8.32783 43.0263 9.02739 43.7259 9.89033 43.7259H34.1249C34.9878 43.7259 35.6874 43.0263 35.6874 42.1634V12.5434Z",fill:r}))});const GW=VW;var UW=["color","size"],UO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,UW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M15.75 17.3125C15.75 16.4496 16.4496 15.75 17.3125 15.75C18.1754 15.75 18.875 16.4496 18.875 17.3125L18.875 32.9375C18.875 33.8005 18.1754 34.5 17.3125 34.5C16.4496 34.5 15.75 33.8005 15.75 32.9375L15.75 17.3125Z",fill:r}),p.createElement("path",{d:"M26.6875 15.75C25.8246 15.75 25.125 16.4496 25.125 17.3125L25.125 32.9375C25.125 33.8005 25.8246 34.5 26.6875 34.5C27.5504 34.5 28.25 33.8005 28.25 32.9375V17.3125C28.25 16.4496 27.5504 15.75 26.6875 15.75Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.625 6.37503V3.25003C12.625 1.52414 14.0241 0.125031 15.75 0.125031H28.25C29.9759 0.125031 31.375 1.52414 31.375 3.25003V6.37503H42.3125C43.1754 6.37503 43.875 7.07459 43.875 7.93753C43.875 8.80048 43.1754 9.50003 42.3125 9.50003H39.1875V40.75C39.1875 42.4759 37.7884 43.875 36.0625 43.875H7.9375C6.21161 43.875 4.8125 42.4759 4.8125 40.75V9.50003L1.6875 9.50003C0.824554 9.50003 0.125 8.80048 0.125 7.93753C0.125 7.07459 0.824555 6.37503 1.6875 6.37503H12.625ZM15.75 3.25003H28.25V6.37503H15.75V3.25003ZM7.9375 9.50003L7.9375 40.75H36.0625V9.50003H7.9375Z",fill:r}))});const XW=UO;var ZW=["color","size"],YW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,ZW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M43 3H31.75V0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V14.25H43V3Z",fill:r}),p.createElement("path",{d:"M3 14.25V3H14.25V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V14.25H3Z",fill:r}),p.createElement("path",{d:"M0.5 31.75V43C0.5 44.3807 1.61929 45.5 3 45.5H14.25V43H3V31.75H0.5Z",fill:r}),p.createElement("path",{d:"M43 31.75H45.5V43C45.5 44.3807 44.3807 45.5 43 45.5H31.75V43H43V31.75Z",fill:r}))}),KW=["color","size"],qW=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,KW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 36 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0559 46.8755L32.0559 3.12555L3.93091 3.12555L3.93091 46.8755H32.0559ZM35.1809 3.12555C35.1809 1.39966 33.7818 0.000549316 32.0559 0.000549316H3.93091C2.20502 0.000549316 0.805908 1.39966 0.805908 3.12555V46.8755C0.805908 48.6014 2.20502 50.0005 3.93091 50.0005H32.0559C33.7818 50.0005 35.1809 48.6014 35.1809 46.8755L35.1809 3.12555Z",fill:r}))});const QW=qW;var JW=["color","size"],eV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,JW);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.961 39.0119L28.2837 7.27185C27.5934 6.17538 26.3971 5.5 24.9981 5.5C23.5956 5.5 22.3967 6.17887 21.7073 7.28034L4.06571 38.9613L4.03009 39.0197C3.33595 40.159 3.32316 41.4697 3.9939 42.6216C4.67405 43.786 5.89 44.5 7.34459 44.5H42.554C44.0596 44.5 45.3464 43.7436 46.0016 42.6231C46.6817 41.4564 46.652 40.1455 45.9968 39.0706L45.961 39.0119ZM49.0254 44.3856C47.7038 46.6495 45.2246 48 42.554 48H7.34459C4.67398 48 2.29272 46.6495 0.970942 44.3856C-0.347811 42.1231 -0.322029 39.4361 1.04116 37.1987L18.6646 5.55018C18.6697 5.5418 18.6743 5.53342 18.6789 5.52504C18.6836 5.51666 18.6882 5.50828 18.6932 5.49989C20.0278 3.30867 22.3849 2 24.9981 2C27.6114 2 29.9685 3.30867 31.303 5.49989L48.9853 37.2489C50.3185 39.436 50.3442 42.1232 49.0254 44.3856Z",fill:r}),p.createElement("path",{d:"M22.0001 16C22.0001 14.3431 23.3433 13 25.0001 13C26.657 13 28.0001 14.3431 28.0001 16V28C28.0001 29.6569 26.657 31 25.0001 31C23.3433 31 22.0001 29.6569 22.0001 28V16Z",fill:r}),p.createElement("path",{d:"M28.0001 37C28.0001 38.6569 26.657 40 25.0001 40C23.3433 40 22.0001 38.6569 22.0001 37C22.0001 35.3431 23.3433 34 25.0001 34C26.657 34 28.0001 35.3431 28.0001 37Z",fill:r}))}),tV=["color","size"],nV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,tV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 10.5001C20.5 16.023 16.0228 20.5001 10.5 20.5001C4.97714 20.5001 0.5 16.023 0.5 10.5001C0.5 4.97727 4.97714 0.500122 10.5 0.500122C16.0228 0.500122 20.5 4.97727 20.5 10.5001ZM7.88239 9.56904C8.00439 9.62145 8.11473 9.69763 8.20698 9.79314L9.49998 11.0861L12.793 7.79314C12.8852 7.69763 12.9956 7.62145 13.1176 7.56904C13.2396 7.51663 13.3708 7.48905 13.5036 7.48789C13.6363 7.48674 13.768 7.51204 13.8909 7.56232C14.0138 7.6126 14.1255 7.68686 14.2194 7.78075C14.3133 7.87464 14.3875 7.98629 14.4378 8.10919C14.4881 8.23208 14.5134 8.36376 14.5122 8.49654C14.5111 8.62932 14.4835 8.76054 14.4311 8.88255C14.3787 9.00455 14.3025 9.1149 14.207 9.20714L10.207 13.2071C10.0194 13.3946 9.76514 13.4999 9.49998 13.4999C9.23482 13.4999 8.98051 13.3946 8.79298 13.2071L6.79298 11.2071C6.69747 11.1149 6.62129 11.0046 6.56888 10.8825C6.51647 10.7605 6.48889 10.6293 6.48773 10.4965C6.48658 10.3638 6.51188 10.2321 6.56216 10.1092C6.61244 9.98629 6.6867 9.87464 6.78059 9.78075C6.87448 9.68686 6.98613 9.6126 7.10903 9.56232C7.23193 9.51204 7.3636 9.48674 7.49638 9.48789C7.62916 9.48905 7.76038 9.51663 7.88239 9.56904Z",fill:r}))}),rV=["color","size"],iV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,rV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 20.5001C16.0228 20.5001 20.5 16.023 20.5 10.5001C20.5 4.97727 16.0228 0.500122 10.5 0.500122C4.97715 0.500122 0.5 4.97727 0.5 10.5001C0.5 16.023 4.97715 20.5001 10.5 20.5001ZM15.4375 7.0912L11.8155 10.7132L15.4638 14.309C15.6213 14.4665 15.7 14.6503 15.7 14.8865C15.7 15.1227 15.6213 15.3064 15.4638 15.4639C15.3063 15.6214 15.1226 15.7001 14.8864 15.7001C14.6501 15.7001 14.4664 15.6214 14.3089 15.4639L10.6869 11.8419L7.06483 15.4639C6.77612 15.7789 6.25118 15.7789 5.93622 15.4639C5.77874 15.3064 5.7 15.0964 5.7 14.8865C5.7 14.6765 5.77874 14.4928 5.93622 14.3353L9.55827 10.7132L5.93622 7.0912C5.77874 6.93372 5.7 6.72374 5.7 6.51377C5.7 6.3038 5.77874 6.12007 5.93622 5.96259C6.25118 5.64763 6.74987 5.64763 7.06483 5.96259L10.6869 9.58464L14.3089 5.93634C14.5976 5.62138 15.1226 5.62138 15.4375 5.93634C15.595 6.09382 15.6738 6.27755 15.6738 6.51377C15.6738 6.74999 15.595 6.93372 15.4375 7.0912Z",fill:r}))}),oV=["color","size"],aV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,oV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M37.3438 16.4782L28.2887 25.5333L37.4095 34.5228C37.8032 34.9165 38 35.3758 38 35.9664C38 36.5569 37.8032 37.0162 37.4095 37.4099C37.0158 37.8036 36.5564 38.0005 35.9659 38.0005C35.3753 38.0005 34.916 37.8036 34.5223 37.4099L25.4672 28.3548L16.4121 37.4099C15.6903 38.1973 14.378 38.1973 13.5906 37.4099C13.1969 37.0162 13 36.4913 13 35.9664C13 35.4414 13.1969 34.9821 13.5906 34.5884L22.6457 25.5333L13.5906 16.4782C13.1969 16.0845 13 15.5595 13 15.0346C13 14.5097 13.1969 14.0504 13.5906 13.6567C14.378 12.8693 15.6247 12.8693 16.4121 13.6567L25.4672 22.7118L34.5223 13.591C35.2441 12.8036 36.5564 12.8036 37.3438 13.591C37.7375 13.9847 37.9344 14.4441 37.9344 15.0346C37.9344 15.6252 37.7375 16.0845 37.3438 16.4782Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-0.000488281 25.0005C-0.000488281 38.7972 11.2028 50.0005 24.9995 50.0005C38.6925 50.0005 49.9995 38.7972 49.9995 25.0005C49.9995 11.2038 38.7962 0.000488281 24.9995 0.000488281C11.2028 0.000488281 -0.000488281 11.2038 -0.000488281 25.0005ZM3.63022 24.8968C3.63022 13.1748 13.1738 3.52746 24.9995 3.52746C36.8252 3.52746 46.3688 13.1748 46.3688 24.8968C46.3688 36.6187 36.8252 46.266 24.9995 46.266C13.2775 46.266 3.63022 36.6187 3.63022 24.8968Z",fill:r}))}),lV=["color","size"],sV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,lV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M29.9338 5.26853C27.8524 4.75154 25.7006 4.56814 23.5381 4.72351C22.4874 4.799 21.4379 4.95535 20.4183 5.18855L19.3724 0.636496C20.6245 0.350265 21.9128 0.158175 23.2017 0.065597C25.8579 -0.125223 28.5034 0.100753 31.0653 0.737277L29.9338 5.26853Z",fill:r}),p.createElement("path",{opacity:"0.9",d:"M40.6131 11.9278C38.5498 9.48098 35.9044 7.52805 32.963 6.2805L34.7952 1.98303C38.4106 3.51633 41.6615 5.91575 44.1962 8.922L40.6131 11.9278Z",fill:r}),p.createElement("path",{opacity:"0.8",d:"M45.3329 23.5739L45.3303 23.5392C45.097 20.3085 44.1359 17.275 42.4734 14.5227L46.4838 12.1129C48.5302 15.501 49.7133 19.2325 50 23.2036L45.3329 23.5739Z",fill:r}),p.createElement("path",{opacity:"0.7",d:"M46.2688 38.2308L42.2981 35.7565C43.9958 33.0458 45.0372 29.9357 45.3095 26.7618L49.9744 27.1604C49.639 31.0674 48.3577 34.8958 46.2688 38.2308Z",fill:r}),p.createElement("path",{opacity:"0.6",d:"M34.4209 48.1735L32.6626 43.8456C35.6192 42.6505 38.2938 40.7405 40.3975 38.3222L43.9338 41.3828C41.3483 44.3551 38.0588 46.7033 34.4209 48.1735V48.1735Z",fill:r}),p.createElement("path",{opacity:"0.5",d:"M26.8033 49.9345C24.1593 50.1242 21.5262 49.9011 18.9766 49.2716L20.1013 44.7386C22.1729 45.25 24.3148 45.4309 26.4673 45.2766C27.5283 45.2004 28.5879 45.0416 29.6165 44.8049L30.6697 49.3551C29.4061 49.6459 28.1052 49.841 26.8033 49.9345V49.9345Z",fill:r}),p.createElement("path",{opacity:"0.4",d:"M15.2449 48.0311C11.6272 46.5033 8.37276 44.1086 5.83362 41.1063L9.412 38.0952C11.479 40.5388 14.1272 42.4877 17.0704 43.7306L15.2449 48.0311Z",fill:r}),p.createElement("path",{opacity:"0.3",d:"M3.54069 37.9198C1.48217 34.5223 0.292537 30.78 0.00479729 26.7959L0 26.7274L4.66972 26.3918L4.67579 26.478C4.90861 29.7017 5.87511 32.7443 7.54751 35.504L3.54069 37.9198Z",fill:r}),p.createElement("path",{opacity:"0.2",d:"M4.69761 23.2075L0.0335693 22.802C0.374666 18.8955 1.66191 15.0691 3.75587 11.7373L7.72274 14.2175C6.02088 16.9257 4.97478 20.0344 4.69761 23.2075V23.2075Z",fill:r}))}),uV=["color","color2","size"],cV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n;t.color2;var i=t.size,o=i===void 0?14:i,a=se(t,uV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M42.0001 6.11477C42.0001 4.48089 41.3639 2.94468 40.2086 1.78931C37.8238 -0.595528 33.9433 -0.595878 31.5582 1.78931L25.666 7.68191L22.9908 5.00654C22.5351 4.5509 21.7965 4.5509 21.3407 5.00654L17.8405 8.50695C17.3849 8.96259 17.3849 9.70141 17.8405 10.1572L20.5157 12.8325L3.63971 29.7097C3.5116 29.8378 3.41511 29.9939 3.35783 30.1658L2.27826 33.4048L1.30626 34.3769C-0.435198 36.1186 -0.435314 38.9525 1.30626 40.6943C3.04783 42.436 5.88157 42.4359 7.62314 40.6943L8.59514 39.7223L11.834 38.6426C12.0058 38.5853 12.1619 38.4888 12.29 38.3607L29.1661 21.4835L31.8413 24.1588C32.297 24.6145 33.0357 24.6145 33.4914 24.1588L36.9916 20.6584C37.4472 20.2028 37.4472 19.464 36.9916 19.0082L34.3164 16.3328L40.2086 10.4402C41.3639 9.28486 42.0001 7.74876 42.0001 6.11477ZM20.5157 26.8341H9.81507L22.1658 14.4826L27.516 19.8333L20.5157 26.8341ZM32.6663 21.6836L20.3156 9.332L22.1657 7.48168L34.5163 19.8333L32.6663 21.6836ZM38.5585 8.79014L32.6663 14.6827L27.316 9.332L33.2081 3.4394C34.6833 1.96421 37.0835 1.96409 38.5584 3.4394C40.0263 4.84774 40.0261 7.3818 38.5585 8.79014Z",fill:r}))});const dV=cV;var fV=["color","size"],XO=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,fV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.75049C0 6.92206 0.671573 6.25049 1.5 6.25049H48.5C49.3284 6.25049 50 6.92206 50 7.75049V9.43806C50 10.2665 49.3284 10.9381 48.5 10.9381H1.5C0.671571 10.9381 0 10.2665 0 9.43806V7.75049ZM0 24.1567C0 23.3283 0.671573 22.6567 1.5 22.6567H48.5C49.3284 22.6567 50 23.3283 50 24.1567V25.8443C50 26.6727 49.3284 27.3443 48.5 27.3443H1.5C0.671571 27.3443 0 26.6727 0 25.8443V24.1567ZM1.5 39.0629C0.671573 39.0629 0 39.7345 0 40.5629V42.2505C0 43.0789 0.671571 43.7505 1.5 43.7505H48.5C49.3284 43.7505 50 43.0789 50 42.2505V40.5629C50 39.7345 49.3284 39.0629 48.5 39.0629H1.5Z",fill:r}))}),pV=["color","size"],hV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,pV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 46 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.23229 1.23267C2.20863 0.256387 3.79154 0.256434 4.76782 1.23277L22.9989 19.465L41.2323 1.23267C42.2086 0.256387 43.7915 0.256434 44.7678 1.23277C45.7441 2.20911 45.7441 3.79203 44.7677 4.76831L24.7665 24.7683C24.2977 25.2371 23.6618 25.5005 22.9987 25.5005C22.3357 25.5005 21.6998 25.2371 21.231 24.7682L1.23218 4.7682C0.255899 3.79186 0.255946 2.20895 1.23229 1.23267Z",fill:r}))}),gV=["color","size"],mV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,gV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 46 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2326 1.23271C22.2089 0.256404 23.7918 0.256417 24.7681 1.23274L44.7678 21.2327C45.7441 22.2091 45.7441 23.792 44.7678 24.7683C43.7914 25.7446 42.2085 25.7446 41.2322 24.7682L23.0003 6.53602L4.76775 24.7683C3.79143 25.7446 2.20852 25.7446 1.23222 24.7682C0.255916 23.7919 0.255928 22.209 1.23225 21.2327L21.2326 1.23271Z",fill:r}))}),vV=["color","size"],yV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,vV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 47.5006C37.4264 47.5006 47.5 37.427 47.5 25.0006C47.5 12.5742 37.4264 2.50061 25 2.50061C12.5736 2.50061 2.5 12.5742 2.5 25.0006C2.5 37.427 12.5736 47.5006 25 47.5006ZM25 50.0006C38.8071 50.0006 50 38.8077 50 25.0006C50 11.1935 38.8071 0.000610352 25 0.000610352C11.1929 0.000610352 0 11.1935 0 25.0006C0 38.8077 11.1929 50.0006 25 50.0006Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.7355 35.1357C27.1751 35.7705 26.2217 35.7926 25.6359 35.1773L17.3026 26.423C17.0301 26.1368 16.8819 25.755 16.8752 25.3647C16.8686 24.9745 17.0037 24.5881 17.2652 24.2923L25.5985 14.8647C26.1593 14.2302 27.1128 14.2089 27.6981 14.8247C28.2539 15.4093 28.2679 16.3516 27.7348 16.9546L20.36 25.2978L27.6974 33.0057C28.2536 33.59 28.2681 34.5323 27.7355 35.1357ZM26.6695 34.3756C26.7058 34.3748 26.753 34.3599 26.7984 34.3085C26.9042 34.1886 26.8989 33.9798 26.792 33.8676L19.0594 25.7444C18.8357 25.5095 18.829 25.1425 19.0438 24.8995L26.7983 16.1268C26.9041 16.007 26.899 15.7983 26.7921 15.6859C26.7464 15.6377 26.7001 15.6249 26.6639 15.6256C26.6276 15.6263 26.5805 15.6412 26.5351 15.6926L18.2017 25.1202C18.1562 25.1717 18.1235 25.2514 18.1251 25.3435C18.1266 25.4356 18.1619 25.5128 18.208 25.5612L26.5413 34.3154C26.5871 34.3635 26.6334 34.3763 26.6695 34.3756Z",fill:r}),p.createElement("path",{d:"M26.7984 34.3085C26.753 34.3599 26.7058 34.3748 26.6695 34.3756C26.6334 34.3763 26.5871 34.3635 26.5413 34.3154L18.208 25.5612C18.1619 25.5128 18.1266 25.4356 18.1251 25.3435C18.1235 25.2514 18.1562 25.1717 18.2017 25.1202L26.5351 15.6926C26.5805 15.6412 26.6276 15.6263 26.6639 15.6256C26.7001 15.6249 26.7464 15.6377 26.7921 15.6859C26.899 15.7983 26.9041 16.007 26.7983 16.1268L19.0438 24.8995C18.829 25.1425 18.8357 25.5095 19.0594 25.7444L26.792 33.8676C26.8989 33.9798 26.9042 34.1886 26.7984 34.3085Z",fill:r}))});const wV=yV;var CV=["color","size"],SV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,CV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 47.5006C37.4264 47.5006 47.5 37.427 47.5 25.0006C47.5 12.5742 37.4264 2.50061 25 2.50061C12.5736 2.50061 2.5 12.5742 2.5 25.0006C2.5 37.427 12.5736 47.5006 25 47.5006ZM25 50.0006C38.8071 50.0006 50 38.8077 50 25.0006C50 11.1935 38.8071 0.000610352 25 0.000610352C11.1929 0.000610352 0 11.1935 0 25.0006C0 38.8077 11.1929 50.0006 25 50.0006Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.2645 14.8655C22.8249 14.2307 23.7783 14.2086 24.3641 14.8239L32.6974 23.5781C32.9699 23.8644 33.1181 24.2461 33.1248 24.6364C33.1314 25.0267 32.9963 25.4131 32.7348 25.7089L24.4015 35.1365C23.8406 35.7709 22.8872 35.7923 22.3019 35.1765C21.7461 34.5919 21.7321 33.6496 22.2652 33.0465L29.6399 24.7034L22.3026 16.9954C21.7464 16.4112 21.7319 15.4689 22.2645 14.8655ZM23.3305 15.6256C23.2942 15.6264 23.247 15.6413 23.2016 15.6927C23.0958 15.8126 23.1011 16.0214 23.208 16.1336L30.9406 24.2568C31.1643 24.4917 31.171 24.8586 30.9562 25.1016L23.2017 33.8744C23.0959 33.9942 23.101 34.2029 23.2079 34.3153C23.2536 34.3634 23.2999 34.3763 23.3361 34.3756C23.3724 34.3748 23.4195 34.36 23.4649 34.3086L31.7983 24.881C31.8438 24.8295 31.8765 24.7497 31.8749 24.6577C31.8734 24.5656 31.838 24.4883 31.792 24.44L23.4587 15.6858C23.4129 15.6377 23.3666 15.6249 23.3305 15.6256Z",fill:r}),p.createElement("path",{d:"M23.2016 15.6927C23.247 15.6413 23.2942 15.6264 23.3305 15.6256C23.3666 15.6249 23.4129 15.6377 23.4587 15.6858L31.792 24.44C31.838 24.4883 31.8734 24.5656 31.8749 24.6577C31.8765 24.7497 31.8438 24.8295 31.7983 24.881L23.4649 34.3086C23.4195 34.36 23.3724 34.3748 23.3361 34.3756C23.2999 34.3763 23.2536 34.3634 23.2079 34.3153C23.101 34.2029 23.0959 33.9942 23.2017 33.8744L30.9562 25.1016C31.171 24.8586 31.1643 24.4917 30.9406 24.2568L23.208 16.1336C23.1011 16.0214 23.0958 15.8126 23.2016 15.6927Z",fill:r}))});const xV=SV;var EV=["color","size"],bV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,EV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M48.5577 38.9423H34.8557C31.8069 38.9423 29.327 41.4224 29.327 44.4712C29.327 45.9293 28.1406 47.1157 26.6827 47.1157H5.52902C4.07066 47.1157 2.88467 45.9293 2.88467 44.4712V42.5459C2.88467 41.0886 4.07028 39.9025 5.5275 39.9018L9.33952 39.8999C9.34067 39.8999 9.34219 39.8995 9.34334 39.8995C9.38683 39.8995 9.43031 39.8968 9.47418 39.893C9.49211 39.8915 9.50966 39.8884 9.52759 39.8861C9.54628 39.8835 9.56535 39.8819 9.58405 39.8789L19.7636 38.1229C19.7689 38.1217 19.7739 38.1206 19.7788 38.1195C19.7948 38.1164 19.8105 38.113 19.8261 38.1095C19.8517 38.1038 19.8769 38.0981 19.9017 38.0908C19.9192 38.0863 19.9368 38.0809 19.9543 38.0756C19.9776 38.068 20.0008 38.0599 20.0241 38.0512C20.0409 38.0447 20.0581 38.039 20.0748 38.0321C20.1107 38.0168 20.1458 38.0008 20.1805 37.9829C20.1942 37.9756 20.208 37.9672 20.2217 37.9596C20.2461 37.9459 20.2702 37.9321 20.2938 37.9169C20.3083 37.9077 20.3228 37.8978 20.3373 37.8879C20.3602 37.8719 20.3831 37.8551 20.4052 37.8375C20.417 37.8284 20.4292 37.8192 20.4411 37.8093C20.4746 37.7815 20.5074 37.7525 20.5383 37.7212L46.2479 12.0109C48.3097 9.94895 48.3097 6.59377 46.2479 4.53146L43.2632 1.54708C41.2014 -0.515234 37.846 -0.514853 35.7841 1.54708L10.075 27.2574C10.0437 27.2883 10.0147 27.3215 9.9865 27.355C9.97696 27.3665 9.9678 27.3783 9.95865 27.3901C9.9411 27.4127 9.92432 27.4355 9.90829 27.4588C9.89838 27.4729 9.88846 27.4874 9.8793 27.5019C9.86443 27.5252 9.85069 27.5488 9.83734 27.5729C9.82857 27.5885 9.81941 27.6042 9.81102 27.6198C9.79424 27.653 9.77898 27.6862 9.76448 27.7205C9.75723 27.7377 9.75113 27.7556 9.74426 27.7732C9.73625 27.7953 9.72824 27.8178 9.72099 27.8403C9.71527 27.8586 9.70993 27.8769 9.70497 27.8952C9.69849 27.9189 9.69276 27.9429 9.68742 27.9673C9.68361 27.9841 9.67979 28.0009 9.67674 28.0177C9.6756 28.0226 9.67445 28.0272 9.67369 28.0318L8.12378 37.0158L5.52597 37.017C2.47879 37.0185 0 39.4989 0 42.5459V44.4712C0 47.5201 2.48032 50.0005 5.52902 50.0005H26.6827C29.7314 50.0005 32.2117 47.5201 32.2117 44.4712C32.2117 43.0132 33.3977 41.8267 34.8557 41.8267H48.5577C49.3542 41.8267 50 41.1813 50 40.3847C50 39.5878 49.3542 38.9423 48.5577 38.9423ZM12.043 31.2653L16.5306 35.7531L11.1076 36.6885L12.043 31.2653ZM33.5567 7.85382L35.7288 10.026L15.3065 30.4493L13.1344 28.2771L33.5567 7.85382ZM19.5183 34.6613L17.3462 32.4891L37.7689 12.0658L39.941 14.238L19.5183 34.6613ZM37.8239 3.58651C38.7611 2.64958 40.2859 2.64958 41.2235 3.58651L44.2078 6.57126C45.145 7.50858 45.145 9.03376 44.2078 9.97108L41.9804 12.1986L35.5965 5.81401L37.8239 3.58651Z",fill:r}))}),OV=["color","size"],PV=Me(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?14:i,a=se(t,OV);return p.createElement("svg",J({ref:e,width:o,height:o,viewBox:"0 0 52 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),p.createElement("path",{d:"M46.4326 40.0282C46.1217 40.5666 45.6098 40.9595 45.0093 41.1204C44.4088 41.2813 43.7691 41.197 43.2307 40.8862C42.6923 40.5754 42.2995 40.0634 42.1386 39.463C41.9777 38.8625 42.0619 38.2227 42.3727 37.6843C45.2819 32.6454 46.0703 26.6571 44.5644 21.0369C43.0584 15.4167 39.3816 10.6249 34.3426 7.71563C25.1427 2.4043 13.7736 4.38306 6.93632 12.1744L14.5457 12.0831H14.5744C15.196 12.0795 15.7937 12.3229 16.2358 12.7599C16.678 13.1969 16.9284 13.7916 16.9321 14.4133C16.9357 15.0349 16.6923 15.6326 16.2553 16.0747C15.8183 16.5169 15.2236 16.7673 14.6019 16.771L2.37222 16.9175H2.34409C2.03391 16.9175 1.72681 16.856 1.44059 16.7364C1.15437 16.6169 0.894721 16.4417 0.676697 16.2211C0.458674 16.0004 0.28661 15.7387 0.170478 15.4511C0.0543471 15.1635 -0.00354164 14.8557 0.000167612 14.5455L0.147346 2.31591C0.151046 2.00811 0.215338 1.70404 0.336549 1.42108C0.457761 1.13812 0.633519 0.881802 0.853788 0.666765C1.07406 0.451728 1.33453 0.282182 1.62032 0.167807C1.90611 0.0534328 2.21164 -0.00353076 2.51944 0.000169355C2.82725 0.00386947 3.13132 0.0681609 3.41428 0.189372C3.69724 0.310584 3.95356 0.486342 4.16859 0.706611C4.38363 0.926881 4.55318 1.18735 4.66755 1.47314C4.78193 1.75894 4.83889 2.06446 4.83519 2.37227L4.77171 7.65586C9.37537 3.16334 15.4496 0.489016 21.8718 0.127065C28.2941 -0.234886 34.6303 1.74001 39.7096 5.6868C44.7889 9.63359 48.2679 15.2855 49.5038 21.5981C50.7397 27.9107 49.6485 34.4574 46.4326 40.0282Z",fill:r}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 28C26.6569 28 28 26.6569 28 25C28 23.3431 26.6569 22 25 22C23.3431 22 22 23.3431 22 25C22 26.6569 23.3431 28 25 28ZM25 32C28.866 32 32 28.866 32 25C32 21.134 28.866 18 25 18C21.134 18 18 21.134 18 25C18 28.866 21.134 32 25 32Z",fill:r}))}),ss="Select",kV=$.span.attrs({className:we(ss,"Icon")}).withConfig({componentId:"sc-mfrapg-0"})(function(t){var e=t.theme.palette,n=t.size;return F(["display:flex;flex-shrink:0;color:",";padding:",";margin-left:6px;"],e[_.IconsPrimary],n===vr.Md?"2.5px":"2px")}),_V=$.span.attrs({className:we(ss,"tickIcon")}).withConfig({componentId:"sc-mfrapg-1"})(function(t){var e=t.theme.palette;return F(["color:",";"],e[_.AccentStateless])}),TV=$.div.attrs({className:we(ss,"Container")}).withConfig({componentId:"sc-mfrapg-2"})(function(t){var e=t.fullWidth,n=e===void 0?!1:e;return F(["position:relative;display:inline-flex;",""],n?"width: 100%":"")}),IV=$(zr.Input).attrs({className:we(ss,"root")}).withConfig({componentId:"sc-mfrapg-3"})(function(t){var e=t.theme.palette,n=t.disabled,r=t.readOnly,i=t.size,o=i===void 0?"sm":i;return F(["cursor:",";user-select:none;background:",";",";"],n||r?"default":"pointer",n?e[_.BackgroundHover]:e[_.BackgroundStateless],Jb[o])}),LV=$.label.attrs({className:we(ss,"Label")}).withConfig({componentId:"sc-mfrapg-4"})(["flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),AV=$.span.attrs({className:we(ss,"Placeholder")}).withConfig({componentId:"sc-mfrapg-5"})(function(t){var e=t.theme.palette,n=t.size;return F(["width:100%;color:",";margin-right:","px;"],e[_.TextPlaceholder],n===vr.Md?10:6)}),MV=$.input.attrs({className:we(ss,"Input"),"aria-hidden":"true",tabindex:"-1"}).withConfig({componentId:"sc-mfrapg-6"})(["left:0;width:100%;bottom:0;opacity:0;position:absolute;pointer-events:none;box-sizing:border-box;"]),RV=It({Container:TV,Select:IV,Label:LV,Icon:kV,TickIcon:_V,Input:MV,Placeholder:AV});const Il=RV;function j9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function zV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jV=function(e){switch(e){case vt.Md:return 11;case vt.Sm:default:return 10}},NV=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=p.createElement(f4,null,e);if(n&&e){var a=p.createElement(JH,null,p.createElement(Il.TickIcon,null,p.createElement(lO,{size:jV(r)})));if(p.Children.count(e)===1)return p.createElement(p.Fragment,null,o,!i&&a);if(p.Children.count(e)>1&&!p.Children.toArray(e).some(function(u){var c;return(u==null||(c=u.type)===null||c===void 0?void 0:c.displayName)==="MenuItemActions"}))return p.createElement(p.Fragment,null,e,a)}return o},DV=function(e,n){var r,i,o,a,u=n.value,c=n.multiple,d=c===void 0?!1:c,h=n.size,m=h===void 0?vt.Md:h,v=n.hideMenuItemsActions,C=v===void 0?!1:v,w=n.onClose,x=n.onChange;if(!p.isValidElement(e))return e;if(((r=e.type)===null||r===void 0?void 0:r.displayName)!=="MenuItem")return p.cloneElement(e);var P=e==null||(i=e.props)===null||i===void 0?void 0:i.value,b=d?Array.isArray(u)?u:[]:[u],E=b.length>0&&b.includes(P),k=e==null||(o=e.props)===null||o===void 0?void 0:o.disabled;return p.cloneElement(e,{active:E,size:m,children:NV(e==null||(a=e.props)===null||a===void 0?void 0:a.children,E,m,C),onClick:function(){var L;if(!d&&typeof w=="function"&&w(),typeof x=="function"&&!k&&(P!=null&&(L=P.toString())!==null&&L!==void 0&&L.length)){var A=P;if(d){A=en(Array.isArray(u)?u:[]);var M=A.indexOf(P);M>-1?A.splice(M,1):A.push(P)}x(A)}}})},N9=function t(e){var n=e.props?e.props.children:e;return Array.isArray(n)?n.map(function(r){return t(r)}).join(" "):xr(n)==="object"?t(n.props.children):n},BV=function(e,n){if(e&&e.children){for(var r=n?e.value:e.children;typeof r!="string";)Array.isArray(r)?r=N9(r[1]):r=N9(r);return r}},HV=function(e){var n=e.value,r=e.multiple,i=r===void 0?!1:r,o=e.children,a=e.showSelectionKey,u=a===void 0?!1:a,c=[];p.Children.forEach(o,function(h){if(p.isValidElement(h)){var m=h==null?void 0:h.type,v=m.displayName;v==="MenuItem"&&h.props&&c.push(zV({},h.props))}});var d=i?c.filter(function(h){return Array.isArray(n)&&n.includes(h.value)}):[c.find(function(h){return h.value===n})];return d.length>0?d.map(function(h){return BV(h,u)}).join(", "):Array.isArray(n)?n.join(", "):n},FV=["children","size","error","multiple","onChange","value","fullWidth","selectProps","MenuProps","readOnly","disabled","scroll","placeholder","showSelectionKey","hideMenuItemsActions","renderLabel","onRequestClose"],g4=ct(function(t,e){var n,r=t.children,i=t.size,o=t.error,a=t.multiple,u=t.onChange,c=t.value,d=t.fullWidth,h=t.selectProps,m=t.MenuProps,v=t.readOnly,C=t.disabled,w=t.scroll,x=w===void 0?!0:w,P=t.placeholder,b=t.showSelectionKey,E=t.hideMenuItemsActions,k=t.renderLabel,T=t.onRequestClose,L=se(t,FV),A=j.useState(void 0),M=Le(A,2),z=M[0],D=M[1],B=!!z,X=function(ve){return D(ve.currentTarget)},G=Array.isArray(c)?!!c.length:!!(c!=null&&(n=c.toString())!==null&&n!==void 0&&n.length),V=function(){T&&T(),D(void 0)};return p.createElement(Il.Container,{ref:e,fullWidth:!!d},p.createElement(Il.Select,J({},L,{disabled:C,size:i,error:o,fullWidth:!!d,readOnly:v,showSelectionKey:b,onClick:v||C?void 0:X}),G&&p.createElement(Il.Label,null,typeof k=="function"?k(c):HV({value:c,multiple:a,children:r,showSelectionKey:b})),!G&&p.createElement(Il.Placeholder,{size:i},P),p.createElement(Il.Icon,{size:i},p.createElement(iO,{type:B?"top":"bottom",IconProps:{size:i===vr.Md?11:10}})),p.createElement(Il.Input,h)),p.createElement(ls,J({onClose:V,scroll:x,open:B,anchorEl:z},m),p.Children.map(r,function(ne){return DV(ne,{value:c,multiple:a,size:i,hideMenuItemsActions:E,onClose:V,onChange:v||C?void 0:u})})))}),$V={size:vt.Md,error:!1,multiple:!1,fullWidth:!1,readOnly:!1,disabled:!1,scroll:!0,hideMenuItemsActions:!1};g4.defaultProps=$V;var WV=I.oneOfType([I.string,I.number,I.oneOf([null])]),O1={size:I.oneOf(ut(vt)),error:I.bool,multiple:I.bool,fullWidth:I.bool,children:I.oneOfType([I.element,I.arrayOf(I.element)]),value:I.oneOfType([I.string,I.number,I.oneOf([null]),I.arrayOf(WV)]),onChange:I.func,MenuProps:I.exact(IO),selectProps:I.object,readOnly:I.bool,disabled:I.bool,hideMenuItemsActions:I.bool,showSelectionKey:I.bool,scroll:I.bool,renderLabel:I.func,onRequestClose:I.func};g4.propTypes=O1;const m4=g4;function D9(t,e,n){var r=function(u){if(typeof t=="function"){var c;t(((c=u.touches)===null||c===void 0?void 0:c[0])||u)}},i=function a(u){if(document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a),document.removeEventListener("mouseleave",a),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",a),document.removeEventListener("touchcancel",a),typeof n=="function"){var c;n(((c=u.touches)===null||c===void 0?void 0:c[0])||u)}},o=function(u){if(document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("mouseleave",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),document.addEventListener("touchcancel",i),typeof e=="function"){var c;e(((c=u.touches)===null||c===void 0?void 0:c[0])||u)}};return{onMouseDown:o,onTouchStart:o}}function B9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function VV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Qi="ColorPicker",GV="ColorItem",UV=$.div.attrs({className:we(Qi,"root")}).withConfig({componentId:"sc-qj4xo5-0"})(["background-color:",";box-shadow:0px 1px 2px rgba(78,77,77,0.15);border-radius:2px;padding:12px;max-width:300px;"],function(t){var e=t.theme;return e.palette[_.BackgroundSecondary]}),XV=$.div.attrs({className:we(Qi,"icon")}).withConfig({componentId:"sc-qj4xo5-1"})(["display:flex;justify-content:space-between;align-items:center;cursor:pointer;"]),ZV=$.div.attrs({className:we(Qi,"range-picker")}).withConfig({componentId:"sc-qj4xo5-2"})(function(t){var e=t.color;return F(["position:relative;border-radius:2px;width:100%;height:180px;user-select:none;cursor:crosshair;background-color:",";"],e)}),YV=$.div.attrs({className:we(Qi,"white-gradient")}).withConfig({componentId:"sc-qj4xo5-3"})(["background:linear-gradient(to right,white 0%,rgba(255,255,255,0) 100%);z-index:0;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;top:-1px;"]),KV=$.div.attrs({className:we(Qi,"black-gradient")}).withConfig({componentId:"sc-qj4xo5-4"})(["background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black 100%);z-index:1;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;"]),qV=$.span.attrs(function(t){var e=t.left,n=e===void 0?0:e,r=t.top,i=r===void 0?0:r,o=t.considerTopWidth,a=o===void 0?!1:o,u=t.style;return{className:we(Qi,"pointer"),style:VV({left:n-7,top:i-(a?7:0)},u)}}).withConfig({componentId:"sc-qj4xo5-5"})(function(t){var e=t.theme,n=t.pointerColor;return F(["display:inline-block;box-sizing:border-box;width:15px;height:15px;border-radius:20px;box-shadow:0px 1px 2px rgba(78,77,77,0.15);border:2px solid ",";background-color:",";position:absolute;cursor:pointer;z-index:11;user-select:none;outline:none;"],e.palette[_.BackgroundSecondary],n)}),QV=$.div.attrs({className:we(Qi,"bar-wrapper")}).withConfig({componentId:"sc-qj4xo5-6"})(["margin-top:8px;position:relative;width:100%;height:12px;"]),JV=$.table.attrs({className:we(Qi,"bar")}).withConfig({componentId:"sc-qj4xo5-7"})(["border-radius:4px;width:100%;height:8px;border-collapse:collapse;"]),eG=$.td.attrs(function(t){var e=t.$color;return{className:we(Qi,"stop"),style:{backgroundColor:e}}}).withConfig({componentId:"sc-qj4xo5-8"})(["padding:0;user-select:none;pointer-events:none;&:first-child{width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;}&:last-child{width:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;}"]),tG=$.div.attrs({className:we(Qi,"action")}).withConfig({componentId:"sc-qj4xo5-9"})(["display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;"]),nG=$.label.attrs({className:we(GV,"label")}).withConfig({componentId:"sc-qj4xo5-10"})(function(t){var e=t.theme,n=t.size,r=t.color,i=t.stroke,o=t.value;return F(["border-radius:2px;border:",";box-sizing:border-box;width:","px;height:","px;background-color:",";user-select:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 300ms;margin-bottom:8px;background:",";input{display:none;}"],"1px solid ".concat(i),n,n,r,o==="rgba(0,0,0,0)"&&"repeating-conic-gradient(".concat(e.palette[_.LinkPrimary]," 0% 25%, transparent 0% 50%) 50% / 8px 8px"))}),rG=$.div.withConfig({componentId:"sc-qj4xo5-11"})(["display:flex;flex-wrap:wrap;align-content:space-between;margin-top:14px;margin-left:12px;& > .item{margin-right:8px;display:flex;justify-content:center;}"]),iG=$.div.attrs({className:we(Qi,"select")}).withConfig({componentId:"sc-qj4xo5-12"})(function(t){var e=t.value;return F(["width:",";"],e==="rgb"?"25%":"35%")}),oG=It({ColorPickerWrapper:UV,RangePickerWrapper:ZV,WhiteGradient:YV,BlackGradient:KV,ColorPointer:qV,BarWrapper:QV,Bar:JV,BarColorStop:eG,ColorPickerAction:tG,ColorPickerIcon:XV,ColorItemsContainer:rG,ColorItemWrapper:nG,Select:iG});const Mr=oG;var v4=ct(function(t,e){var n=t.value,r=t.onChange,i=t.checked,o=t.size,a=o===void 0?24:o,u=j.useMemo(function(){return n==="#ffffff"||n==="rgba(0,0,0,0)"?"black":"white"},[n]);return p.createElement(Mr.ColorItemWrapper,{ref:e,color:n,size:a,stroke:n==="rgba(0,0,0,0)"?"#a8a8a8":"#E9EEF2",value:n},p.createElement("input",{type:"radio",value:n,checked:i,onChange:r}),i&&p.createElement(lO,{color:u}))});v4.defaultProps={};v4.propTypes={value:I.string.isRequired,checked:I.bool,onChange:I.func.isRequired,size:I.number};const aG=v4;var lG=["defaultColor","onChange","pinnedColors","showTransparentColor","containerProps"];function H9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function X2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var th=["rgba(0,0,0,0)"],nh="#00000000",Z2=360,y4=ct(function(t,e){var n=t.defaultColor,r=n===void 0?"#000000":n,i=t.onChange,o=t.pinnedColors,a=o===void 0?[]:o,u=t.showTransparentColor,c=u===void 0?!1:u,d=t.containerProps,h=se(t,lG),m=c?th.concat(a):a,v=function(Ae){return Ae===nh||Ae===th[0]},C=j.useState({color:"#ff0000",pointerLeft:0}),w=Le(C,2),x=w[0],P=w[1],b=j.useState({color:v(r)?"#00000000":J8(r)||"#000000",pointer:{left:0,top:0}}),E=Le(b,2),k=E[0],T=E[1],L=j.useState(m),A=Le(L,2),M=A[0],z=A[1],D=j.useState("hex"),B=Le(D,2),X=B[0],G=B[1],V=j.useState([]),ne=Le(V,2),ve=ne[0],te=ne[1],pe=j.useState(J8(k.color)),Y=Le(pe,2),de=Y[0],ce=Y[1],me=j.useState(null),re=Le(me,2),ee=re[0],ue=re[1],Ee=j.useState(null),W=Le(Ee,2),Se=W[0],ae=W[1],ze=function(Ae){return Ae===th[0]&&k.color===nh?!0:Ae===k.color},Ie=function(Ae){return Ae.filter(function(at){return at!=="rgba(0,0,0,0)"})},xe=function(Ae){return v(Ae)?th[0]:"rgb(".concat(Mh(Ae).join(", "),")")},ye=function(Ae,at){if(at==="add"){var pt=[].concat(en(M),[Ae]);z(pt),typeof i=="function"&&i(k.color,xe(Ae),Ie(pt))}else{var Et=M.filter(function(_t){return _t!==k.color});z(Et),typeof i=="function"&&i(k.color,xe(Ae),Ie(Et))}},Ge=function(Ae){if(ee!==null){var at=xl(ee),pt=at.left,Et=P2(Ae||k.color),_t=Le(Et,1),En=_t[0],ln=ee.querySelector("[data-hue='".concat(En,"']"));if(ln!==null){var In=ln.style.backgroundColor||x.color;P({color:In,pointerLeft:xl(ln).left-pt||x.pointerLeft})}}},Ze=function(Ae,at){if(!(Ae>255||Number.isNaN(Ae))){var pt=ve;pt[at]=Ae;var Et=IE.apply(void 0,en(pt));te(en(pt)),e7(Et)&&(T(X2(X2({},k),{},{color:Et})),Ge(Et))}},Ve=function(Ae){Ae.includes("rgb")?te(H3(Ae)):te(Mh(Ae))},ot=function(Ae){return v(Ae)?nh:Ae},$e=function(Ae){if(Se!==null){var at=xl(Se),pt=at.width,Et=at.height,_t=P2(Ae),En=OL(_t[0],_t[1]/100,_t[2]/100),ln=O2(En[1],0,100,0,pt),In=Et-O2(En[2],0,100,0,Et);T({color:ot(Ae),pointer:{left:ln,top:In}}),Ge(Ae),Ve(Ae),typeof i=="function"&&i(ot(Ae),xe(Ae),Ie(M))}},dt=function(Ae,at,pt){if(Se!==null){var Et=xl(Se),_t=Et.width,En=Et.height,ln=P2(pt),In=Le(ln,1),Vr=In[0],Ji=Ms(Ae,0,_t)||0,Ti=Ms(at,0,En)||0,rt=bL(Vr,Ji/_t,(En-Ti)/En),lt=EL(rt[0],rt[1],rt[2]);T({color:lt,pointer:{left:Ji,top:Ti}}),typeof i=="function"&&i(lt,"rgb(".concat(Mh(lt).join(", "),")"),Ie(M))}},Ct=function(Ae){var at=ee;if(at!==null){var pt=xl(at),Et=pt.width,_t=Ms(Math.round(O2(Ae,0,Et,0,Z2)),0,Z2),En=at.querySelector("[data-hue='".concat(_t,"']")),ln=En.style.backgroundColor;return P({color:ln,pointerLeft:Ms(Ae,0,Et)}),ln}return x.color},qe=function(Ae){var at=ee;if(at!==null){var pt,Et=xl(at),_t=Et.left,En=((pt=Ae.touches)===null||pt===void 0?void 0:pt[0])||Ae,ln=Ct(En.pageX-_t);dt(k.pointer.left,k.pointer.top,ln)}},St=function(Ae){var at=Se;if(at!==null){var pt=xl(at),Et=pt.left,_t=pt.top,En=pt.height,ln=pt.width,In=Ae?Ms(Ae.pageX-Et,0,ln):k.pointer.left||0,Vr=Ae?Ms(Ae.pageY-_t,0,En):k.pointer.left||0;dt(In,Vr,x.color)}},At=function(Ae){Ae.key!=="ArrowLeft"&&Ae.key!=="ArrowRight"||Ct(x.pointerLeft+(Ae.key==="ArrowLeft"?-1:1))},ft=function(Ae){var at=0;Ae.key==="ArrowLeft"||Ae.key==="ArrowUp"?at=-1:(Ae.key==="ArrowRight"||Ae.key==="ArrowDown")&&(at=1),at&&dt((k.pointer.left||0)+(["ArrowLeft","ArrowRight"].includes(Ae.key)?at:0),(k.pointer.top||0)+(["ArrowUp","ArrowDown"].includes(Ae.key)?at:0),x.color)},Re=function(Ae){var at=e7(Ae);at&&$e(Ae),ce(Ae)};j.useEffect(function(){Ge(k.color),$e(k.color)},[ee]),j.useEffect(function(){ce(k.color),Ve(k.color)},[k.color]);var Xe=j.useMemo(function(){return en(new Array(Z2+1)).map(function(Ye,Ae){return p.createElement(Mr.BarColorStop,{key:Ae,$color:"hsl(".concat(Ae,", 100%, 50%)"),"data-hue":Ae})})},[]),Ut=D9(qe,qe,null),Tn=D9(St,St,null);return p.createElement(Mr.ColorPickerWrapper,J({ref:e},h),p.createElement(Mr.ColorPickerAction,null,p.createElement(Mr.Select,{value:X},p.createElement(m4,{size:"sm",value:X,MenuProps:X2({zIndex:11112},d),onChange:function(Ae){return G(Ae)},fullWidth:!0},p.createElement(ql,{value:"hex"},"Hex"),p.createElement(ql,{value:"rgb"},"RGB"))),X==="hex"?p.createElement(Qd,{size:"sm",error:!/^#([\da-f]{3}){1,2}$/i.test(k.color),value:de,onChange:function(Ae){return Re(Ae.target.value)},style:{width:"45%"}}):ve.map(function(Ye,Ae){return p.createElement(Qd,{key:Ae,size:"sm",value:Ye,onChange:function(pt){var Et;return Ze(Number((Et=pt.target)===null||Et===void 0?void 0:Et.value),Ae)},style:{width:"20%"}})}),k.color!==nh&&p.createElement(Mr.ColorPickerIcon,{onClick:function(){return M.some(function(Ae){return ze(Ae)})?ye(k.color,"delete"):ye(k.color,"add")}},M.some(function(Ye){return ze(Ye)})?p.createElement(UO,null):p.createElement($W,null))),p.createElement(Mr.RangePickerWrapper,J({ref:ae,color:x.color},Tn),p.createElement(Mr.WhiteGradient,null),p.createElement(Mr.BlackGradient,null),p.createElement(Mr.ColorPointer,{tabIndex:-1,left:k.pointer.left||0,top:k.pointer.top||0,onKeyDown:ft,pointerColor:de,considerTopWidth:!0})),p.createElement(Mr.BarWrapper,Ut,p.createElement(Mr.Bar,{ref:ue},p.createElement("tbody",null,p.createElement("tr",null,Xe))),p.createElement(Mr.ColorPointer,{tabIndex:-1,left:x.pointerLeft,onKeyDown:At,considerTopWidth:!1,pointerColor:de,style:{top:-3}})),p.createElement(Mr.ColorItemsContainer,null,M.map(function(Ye){return p.createElement("div",{className:"item",key:Ye},p.createElement(aG,{value:Ye,checked:ze(Ye),onChange:function(at){return $e(at.target.value)}}))})))});y4.defaultProps={defaultColor:"#000000",pinnedColors:[],showTransparentColor:!1};y4.propTypes={defaultColor:I.string,onChange:I.func,pinnedColors:I.array,showTransparentColor:I.bool};const sG=y4;var qc,Ys,uG=(qc={},S(qc,_u.Primary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";&:hover{background-color:",";}&:focus{background-color:",";}&:active{background-color:",";}"," &:disabled{color:",";background:",";cursor:default;}"],e[_.AccentStateless],e[_.IconsInvert],e[_.AccentPrimaryHover],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive],n&&F(["background-color:",";&:hover,&:focus{background-color:",";}"],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive]),e[_.BordersDisabled],e[_.Accent_1_2_Opacity])}),S(qc,_u.Secondary,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:",";color:",";border:1px solid ",";&:hover{color:",";background-color:",";}&:focus{background-color:",";color:",";border:1px solid ",";}&:active{color:",";background-color:",";}"," &:disabled{color:",";background:",";border:none;cursor:default;}"],e[_.BackgroundStateless],e[_.AccentStateless],e[_.AccentStateless],e[_.IconsInvert],e[_.AccentPrimaryHover],e[_.Accent_1_2_Opacity],e[_.AccentPrimaryActive],e[_.AccentPrimaryActive],e[_.IconsInvert],e[_.AccentPrimaryActive],n&&F(["color:",";background-color:",";&:hover,&:focus{color:",";background-color:",";}"],e[_.IconsInvert],e[_.AccentPrimaryActive],e[_.IconsInvert],e[_.AccentPrimaryActive]),e[_.BordersDisabled],e[_.Accent_1_2_Opacity])}),S(qc,_u.Basic,function(t){var e=t.theme.palette,n=t.active;return F(["background-color:transparent;color:",";border:none;&:hover{background-color:",";color:",";}&:focus{background-color:",";color:",";}&:active{background-color:",";color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],e[_.IconsPrimary],e[_.BackgroundHover],e[_.IconsPrimaryHover],e[_.BackgroundActive],e[_.LinkActive],e[_.BackgroundActive],e[_.LinkActive],n&&F(["background-color:",";color:",";&:hover,&:focus{background-color:",";color:",";}"],e[_.BackgroundActive],e[_.LinkActive],e[_.BackgroundActive],e[_.LinkActive]),e[_.BordersDisabled])}),qc),cG=(Ys={},S(Ys,nt.Xs,F(["padding:6px;"])),S(Ys,nt.Sm,F(["padding:9px;"])),S(Ys,nt.Md,F(["padding:12px;"])),S(Ys,nt.Lg,F(["padding:11px;"])),Ys),dG="IconButton",fG=$(po.Button).attrs({className:we(dG,"root")}).withConfig({componentId:"sc-10edh45-0"})(function(t){var e=t.color,n=e===void 0?_u.Secondary:e,r=t.size,i=r===void 0?nt.Md:r;return F([""," ",""],cG[i],uG[n])}),pG=It({IconButton:fG});const hG=pG;var gG=["children"],w4=ct(function(t,e){var n=t.children,r=se(t,gG);return p.createElement(hG.IconButton,J({},r,{ref:e}),n&&(typeof n=="function"?n({size:ru(r.size)}):n))});w4.defaultProps={size:nt.Md,color:_u.Secondary,active:!1};w4.propTypes={children:I.oneOfType([I.node,I.func]).isRequired,size:I.oneOf(ut(nt)),color:I.oneOf(ut(_u)),disabled:I.bool,active:I.bool};const Ua=w4;var rh,mG=function(e){var n=e.theme.palette;return F(["background:"," !important;border:1px solid "," !important;"],n[_.BackgroundSecondary],n[_.Error])},vG=(rh={},S(rh,vt.Sm,function(t){var e=t.theme.typography.font;return F(["padding:6px 12px;height:64px;",""],e[Pe.InputMd])}),S(rh,vt.Md,function(t){var e=t.theme.typography.font;return F(["padding:9px 16px;height:80px;",""],e[Pe.InputLg])}),rh),C4="Textarea",yG=$.div.attrs({className:we(C4,"root")}).withConfig({componentId:"sc-1usif6k-0"})(function(t){var e=t.size,n=e===void 0?vt.Md:e,r=t.error,i=r===void 0?!1:r,o=t.fullWidth,a=o===void 0?!1:o,u=t.readOnly,c=u===void 0?!1:u,d=t.disabled,h=d===void 0?!1:d,m=t.autoSize,v=m===void 0?!1:m,C=t.theme;return F(["position:relative;display:inline-flex;flex-direction:column;align-items:flex-end;justify-content:space-between;cursor:text;box-sizing:border-box;transition:all 100ms ease-out;width:",";pointer-events:",";background-color:",";border-radius:",";border:1px solid ",";color:",";"," "," &:hover{color:",";}"," ",""],a?"100%":"300px",h?"none":"auto",uO(c,h),C.shape.borderRadius[Xi.Md],dO(c,h),h?C.palette[_.TextPlaceholder]:C.palette[_.TextPrimary],vG[n],!c&&!h&&F(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";}}&:hover{background-color:",";border:1px solid ",";}"],C.palette[_.BackgroundSecondary],C.palette[_.AccentStateless],C.palette[_.AccentStateless],C.palette[_.BackgroundStateless],C.palette[_.BordersPrimaryHover]),cO(c,h),i&&mG,v&&F(["width:auto;height:auto;"]))}),wG=$.textarea.attrs({className:we(C4,"Base")}).withConfig({componentId:"sc-1usif6k-1"})(function(t){var e=t.theme.palette;return F(["display:block;width:100%;height:100%;color:inherit;outline:none;resize:none;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;font-size:inherit;line-height:inherit;color:inherit;font-weight:inherit;font-family:inherit;&::placeholder{color:",";}"],e[_.TextPlaceholder])}),CG=$.span.attrs({className:we(C4,"CopyIcon")}).withConfig({componentId:"sc-1usif6k-2"})(function(t){var e=t.theme.palette;return F(["display:flex;color:",";cursor:pointer;"],e[_.IconsPrimary])}),SG=It({Textarea:yG,CopyIcon:CG,Base:wG});const Y2=SG;var xG=["fullWidth","size","value","readOnly","disabled","error","cols","rows","copyTextMessage","copySuccessIcon"],S4=ct(function(t,e){var n=t.fullWidth,r=t.size,i=t.value,o=t.readOnly,a=t.disabled,u=t.error,c=t.cols,d=t.rows,h=t.copyTextMessage,m=h===void 0?"":h,v=t.copySuccessIcon,C=se(t,xG),w=j.useState(!1),x=Le(w,2),P=x[0],b=x[1],E=j.useState(!1),k=Le(E,2),T=k[0],L=k[1];j.useEffect(function(){setTimeout(function(){return L(!1)},2e3)},[T]);var A=function(){setTimeout(function(){b(!0)},150)},M=function(){setTimeout(function(){b(!1)},200)},z=function(){return p.createElement(zr.NotificationBox,{size:r,style:{bottom:r===vr.Md?83:68}},p.createElement(zr.NotificationIcon,null,v),p.createElement(zr.NotificationText,null,m))};return p.createElement(Y2.Textarea,{size:r,value:i,onMouseEnter:A,onMouseLeave:M,readOnly:o,disabled:a,fullWidth:!!n,error:u,autoSize:!!c||!!d},p.createElement(Y2.Base,J({},C,{value:i,ref:e,readOnly:o,disabled:a})),P&&o?p.createElement(Y2.CopyIcon,{onClick:function(){return fO(i,L)}},p.createElement(sO,{size:16})):void 0,T&&z())});S4.defaultProps={size:vt.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1};var ZO={error:I.bool,readOnly:I.bool,disabled:I.bool,fullWidth:I.bool,value:I.any,size:I.oneOf(ut(vt)),copySuccessIcon:I.oneOfType([I.node,I.func]),copyTextMessage:I.string,cols:I.number,rows:I.number};S4.propTypes=ZO;var E0={Input:"input",Textarea:"textarea"},EG="InputGroup",bG=$.div.attrs({className:we(EG,"root")}).withConfig({componentId:"sc-zhtjwh-0"})(["","{margin-top:4px;}","{margin-bottom:4px;}"],gO.FormHint,Fh.Label),OG=It({InputGroup:bG});const YO=OG;var PG=["children","type","error","label","hint","LabelProps","InputProps","inputProps","inputRef","TextareaProps","readOnly","disabled","size","value"];function F9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var x4=ct(function(t,e){t.children;var n=t.type,r=t.error,i=t.label,o=t.hint,a=t.LabelProps,u=t.InputProps,c=t.inputProps,d=t.inputRef,h=t.TextareaProps,m=t.readOnly,v=t.disabled,C=t.size,w=t.value,x=se(t,PG),P=function(){return i?typeof i=="function"?i({error:r}):xr(i)==="object"?i:p.createElement(Qt,J({size:C,error:r,disabled:v},a||{}),i):null},b=function(){var T=kG({value:w,readOnly:m,disabled:v,size:C,error:r},x);return n===E0.Input?p.createElement(Qd,J({},T,u||{},c,{ref:(d==null?void 0:d.ref)||d,readOnly:m,disabled:v})):n===E0.Textarea?p.createElement(S4,J({},T,h||{})):null},E=function(){return o?typeof o=="function"?o({error:r}):xr(o)==="object"?o:p.createElement(mO,{size:C,error:r,disabled:v},o):null};return p.createElement(YO.InputGroup,{ref:e},P(),b(),E())});x4.defaultProps={type:E0.Input,error:!1,readOnly:!1};x4.propTypes={type:I.oneOf(ut(E0)),size:I.oneOf(ut(vt)),label:I.node,hint:I.node,error:I.bool,value:I.any,LabelProps:I.exact(U5),InputProps:I.exact(hO),inputProps:I.object,inputRef:I.oneOfType([I.func,I.object]),TextareaProps:I.exact(ZO),readOnly:I.bool,disabled:I.bool};const KO=x4;function qO(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var _a={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg",Xl:"xl"},_G=j.createContext({modalOpened:!1});const TG=_G;var Ol,IG=(Ol={},S(Ol,_a.Xs,F(["max-width:300px;"])),S(Ol,_a.Sm,F(["max-width:600px;"])),S(Ol,_a.Md,F(["max-width:960px;"])),S(Ol,_a.Lg,F(["max-width:1280px;"])),S(Ol,_a.Xl,F(["max-width:1920px;"])),Ol),P1="Modal",LG=$.div.attrs({className:we(P1,"Wrapper")}).withConfig({componentId:"sc-80m07l-0"})(function(t){var e=t.open;return F(["position:fixed;right:0px;bottom:0px;top:0px;left:0px;z-index:1200;visibility:",";"],e?"visible":"hidden")}),AG=$.div.attrs({className:we(P1,"Overlay")}).withConfig({componentId:"sc-80m07l-1"})(function(t){var e=t.open;return F(["position:fixed;right:0px;bottom:0px;top:0px;left:0px;background-color:rgba(0,0,0,0.5);z-index:-1;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:",";"],e?"1":"0")}),MG=$.div.attrs({className:we(P1,"Container")}).withConfig({componentId:"sc-80m07l-2"})(function(t){var e=t.theme,n=t.open,r=n===void 0?!1:n,i=t.fullWidth,o=i===void 0?!1:i,a=t.maxWidth,u=a===void 0?_a.Sm:a;return F(["position:absolute;overflow-x:hidden;overflow-y:auto;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms,transform 167ms cubic-bezier(0.4,0,0.2,1) 0ms;outline:0;border-radius:",";background-color:",";box-shadow:0px 2px 4px ",";visibility:",";opacity:",";display:flex;max-height:calc(100% - 64px);flex-direction:column;"," "," top:50%;left:50%;transform:translate(-50%,-50%);"],e.shape.borderRadius[Xi.Lg],e.palette[_.BackgroundSecondary],e.palette[_.LightShadow],r?"visible":"hidden",r?"1":"0",o&&F(["width:calc(100% - 64px);"]),IG[u])}),RG=$.div.attrs({className:we(P1,"root")}).withConfig({componentId:"sc-80m07l-3"})(function(){return F(["position:relative;padding-top:8px;padding-bottom:8px;margin:0;padding:0;outline:0;display:flex;flex-direction:column;"])}),zG=It({Modal:RG,Wrapper:LG,Overlay:AG,Container:MG});const ih=zG;var jG=["children","open","onClose","maxWidth","fullWidth","modalStyles"];function $9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function W9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var NG=function(e){return e&&j.isValidElement(e)&&p.Children.count(e)===1&&e.type===p.Fragment},E4=ct(function(t,e){var n=t.children,r=t.open,i=t.onClose,o=t.maxWidth,a=t.fullWidth,u=t.modalStyles,c=se(t,jG),d=NG(n)?n.props.children:n,h=document.querySelector("body");j.useEffect(function(){return r?document.body.classList.add("Modal-open"):document.body.classList.remove("Modal-open"),function(){document.body.classList.remove("Modal-open")}},[r]);var m=function(){typeof i=="function"&&i()};j.useEffect(function(){var C=function(x){x.key==="Escape"&&m()};return document.addEventListener("keydown",C),function(){return document.removeEventListener("keydown",C)}});var v=function(){return p.createElement(TG.Provider,{value:{modalOpened:!!r}},p.createElement(ih.Wrapper,{style:W9({},u),open:!!r,ref:e},p.createElement(ih.Overlay,{onClick:m,open:!!r}),p.createElement(ih.Container,J({},c,{maxWidth:o,fullWidth:a,open:!!r}),p.createElement(ih.Modal,null,p.Children.map(d,function(w){return j.isValidElement(w)&&w.type.displayName==="ModalTitle"?p.cloneElement(w,W9({onClose:m},w.props||{})):w})))))};return cf.createPortal(v(),h)}),DG={open:!1,fullWidth:!1,maxWidth:_a.Xs};E4.defaultProps=DG;var BG={onClose:I.func,modalStyles:I.object,children:I.node.isRequired,maxWidth:I.oneOf(ut(_a)),open:I.bool,fullWidth:I.bool};E4.propTypes=BG;const QO=E4;var b0={Left:"left",Center:"center",Right:"right"},HG="ModalActions",FG=$.div.attrs({className:we(HG,"root")}).withConfig({componentId:"sc-1wg6u00-0"})(function(t){var e=t.align,n=e===void 0?b0.Center:e;return F(["position:relative;display:flex;align-items:center;padding:24px;justify-content:",";> *:not(:first-child){margin-left:8px;}"],n===b0.Right?"flex-end":n)}),$G=It({ModalActions:FG});const WG=$G;var VG=["children"],k1=ct(function(t,e){var n=t.children,r=se(t,VG);return p.createElement(WG.ModalActions,J({},r,{ref:e}),n)});k1.defaultProps={align:b0.Center};k1.propTypes={children:I.node.isRequired,align:I.oneOf(ut(b0))};k1.displayName="ModalActions";const JO=k1;var GG="ModalContent",UG=$.div.attrs({className:we(GG,"root")}).withConfig({componentId:"sc-1ng1w0v-0"})(function(){return F(["position:relative;padding:12px 24px 0px;"])}),XG=It({ModalContent:UG});const ZG=XG;var YG=["children"],_1=ct(function(t,e){var n=t.children,r=se(t,YG);return p.createElement(ZG.ModalContent,J({},r,{ref:e}),n)});_1.defaultProps={};_1.propTypes={children:I.node.isRequired};_1.displayName="ModalContent";const eP=_1;var Ha={Sm:"sm",Md:"md",Lg:"lg"},Qc,KG="CrossButton",qG=(Qc={},S(Qc,Ha.Sm,F(["padding:6px;"])),S(Qc,Ha.Md,F(["padding:9px;"])),S(Qc,Ha.Lg,F(["padding:12px;"])),Qc),QG=$.button.attrs({className:we(KG,"root")}).withConfig({componentId:"sc-ygfku-0"})(function(t){var e=t.size,n=e===void 0?Ha.Lg:e,r=t.theme;return F(["display:flex;justify-content:center;align-items:center;cursor:pointer;"," color:",";background:transparent;border:none;transition:all 100ms ease-out;&:hover{color:",";background:",";;}&:active{color:",";background:",";}"],qG[n],r.palette[_.IconsSecondary],r.palette[_.IconsPrimary],r.palette[_.BackgroundHover],r.palette[_.IconsPrimaryHover],r.palette[_.BackgroundActive])}),JG=It({CrossButton:QG});const eU=JG;var tU=function(e){switch(e){case Ha.Lg:return 16;case Ha.Sm:default:return 12}},b4=ct(function(t,e){var n=J({},(qO(t),t));return p.createElement(eU.CrossButton,J({},n,{ref:e}),p.createElement(MO,{size:tU(n.size)}))});b4.defaultProps={size:Ha.Lg};b4.propTypes={size:I.oneOf(ut(Ha))};const O4=b4;var Nr={Default:"default",WithIcon:"with-icon"},mf="ModalTitle",nU=$.div.attrs({className:we(mf,"Icon")}).withConfig({componentId:"sc-l3tf49-0"})(function(t){var e=t.theme.palette;return F(["display:flex;margin-bottom:8px;padding:14.5px;border-radius:50%;background:",";color:",";"],e[_.Accent_1_2_Opacity],e[_.AccentStateless])}),rU=$.div.attrs({className:we(mf,"LabelPrimary")}).withConfig({componentId:"sc-l3tf49-1"})(function(t){var e=t.variant,n=e===void 0?Nr.Default:e;return F(["font-size:18px;line-height:27px;font-weight:",";"],n===Nr.Default?400:500)}),iU=$.div.attrs({className:we(mf,"LabelSecondary")}).withConfig({componentId:"sc-l3tf49-2"})(["font-size:12px;line-height:14px;margin-top:4px;"]),oU=$.div.attrs({className:we(mf,"Close")}).withConfig({componentId:"sc-l3tf49-3"})(function(t){var e=t.variant,n=e===void 0?Nr.Default:e,r=t.theme.palette;return F(["position:absolute;display:flex;top:","px;right:","px;color:",";&:hover{color:",";}cursor:pointer;"],n===Nr.WithIcon?2:8,n===Nr.WithIcon?2:8,r[_.IconsSecondary],r[_.AccentPrimary])}),aU=$.div.attrs({className:we(mf,"root")}).withConfig({componentId:"sc-l3tf49-4"})(function(t){var e=t.variant,n=e===void 0?Nr.Default:e,r=t.theme,i=r.palette,o=r.shape.borderRadius;return F(["position:relative;color:",";border-radius:"," "," 0px 0px;"," "," ",""],i[_.TextPrimary],o[Xi.Md],o[Xi.Md],function(){var a=n===Nr.WithIcon?26:14,u=n===Nr.WithIcon?12:14,c=18,d=n===Nr.WithIcon?c:40;return F(["padding:","px ","px ","px ","px;"],a,d,u,c)},n===Nr.Default&&F(["background:",";border-bottom:1px solid ",";"],i[_.BackgroundPrimary],i[_.BordersSecondary]),n===Nr.WithIcon&&F(["display:flex;align-items:center;flex-direction:column;"]))}),lU=It({ModalTitle:aU,LabelPrimary:rU,LabelSecondary:iU,Close:oU,Icon:nU});const Jc=lU;var sU=["secondary","onClose"],T1=ct(function(t,e){var n=t.secondary,r=t.onClose,i=se(t,sU);return p.createElement(Jc.ModalTitle,J({},i,{ref:e}),i.icon&&p.createElement(Jc.Icon,{iconShadow:!!i.iconShadow},i.icon),p.createElement(Jc.LabelPrimary,i,i.primary),i.variant===Nr.WithIcon&&n&&p.createElement(Jc.LabelSecondary,null,n),p.createElement(Jc.Close,{variant:i.variant},p.createElement(O4,{size:"lg",onClick:r})))});T1.defaultProps={iconShadow:!0,variant:Nr.Default};T1.propTypes={primary:I.node.isRequired,secondary:I.node,icon:I.node,iconShadow:I.bool,onClose:I.func,variant:I.oneOf(ut(Nr))};T1.displayName="ModalTitle";const tP=T1;var vo={Success:"success",Info:"info",Error:"error",Warning:"warning"},uU="PopupStatus",cU=$.span.attrs({className:we(uU,"root")}).withConfig({componentId:"sc-qash56-0"})(function(){return F(["display:flex;"])}),dU=It({PopupStatus:cU});const fU=dU;var pU=["status","notificationBackground"],hU=function(e,n){switch(e){case vo.Warning:return n?p.createElement(FO,{color:hr[_.Warning],size:20}):p.createElement(eV,{color:hr[_.Warning],size:12});case vo.Error:return n?p.createElement(iV,{color:hr[_.Error],size:20}):p.createElement(aV,{color:hr[_.Error],size:12});case vo.Info:return n?p.createElement(v$,{color:hr[_.Info],size:20}):p.createElement(C$,{color:hr[_.Info],size:12});case vo.Success:default:return p.createElement(nV,{color:hr[_.Success],size:20})}},P4=ct(function(t,e){var n=t.status,r=t.notificationBackground,i=r===void 0?!0:r,o=se(t,pU);return p.createElement(fU.PopupStatus,J({status:n},o,{ref:e}),hU(n,i))}),nP={status:vo.Success};P4.defaultProps=nP;var rP={status:I.oneOf(ut(vo))};P4.propTypes=rP;const gU=P4;var Ks,mU=(Ks={},S(Ks,vo.Success,function(t){var e=t.theme.palette;return F(["background-color:",";"],e[_.BackgroundGreen])}),S(Ks,vo.Info,function(t){var e=t.theme.palette;return F(["background-color:",";"],e[_.BackgroundBlue])}),S(Ks,vo.Error,function(t){var e=t.theme.palette;return F(["background-color:",";"],e[_.BackgroundRed])}),S(Ks,vo.Warning,function(t){var e=t.theme.palette;return F(["background-color:",";"],e[_.BackgroundOrange])}),Ks),vf="PopupContent",vU=$.span.attrs({className:we(vf,"LabelWrapper")}).withConfig({componentId:"sc-njbmnt-0"})(function(t){var e=t.theme.palette;return F(["display:flex;flex-grow:1;margin-left:44px;margin-right:28px;padding:16px;padding-right:0;overflow:hidden;background:",";"],e[_.ButtonPrimaryText])}),yU=$.span.attrs({className:we(vf,"Label")}).withConfig({componentId:"sc-njbmnt-1"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font;return F(["max-width:100%;overflow:hidden;text-overflow:ellipsis;color:",";",""],n[_.TextPrimary],r[Pe.TextSmallUp])}),wU=$.div.attrs({className:we(vf,"PopupContent")}).withConfig({componentId:"sc-njbmnt-2"})(function(t){var e=t.theme;return F(["position:relative;display:flex;align-items:center;width:360px;border-radius:4px;box-shadow:0px 2px 6px ",";"],e.palette[_.LargeShadow])}),CU=$.div.attrs({className:we(vf,"PopupContent")}).withConfig({componentId:"sc-njbmnt-3"})(function(t){var e=t.theme;return F(["position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:flex-start;box-sizing:border-box;padding:2px;height:fit-content;cursor:pointer;background:",";border-radius:0 4px 4px 0;"],e.palette[_.BackgroundStateless])}),SU=$.div.attrs({className:we(vf,"PopupStatus")}).withConfig({componentId:"sc-njbmnt-4"})(function(t){var e=t.status,n=e===void 0?"success":e;return F(["position:absolute;display:flex;left:0;z-index:1;height:100%;min-width:44px;align-items:center;justify-content:center;box-sizing:border-box;border-radius:4px 0 0 4px;",""],mU[n])}),xU=It({PopupContent:wU,PopupStatus:SU,LabelWrapper:vU,CloseWrapper:CU,Label:yU});const ed=xU;var EU=["onClose","message","status"];function V9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _v(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?V9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var k4=ct(function(t,e){var n=t.onClose,r=t.message,i=t.status,o=se(t,EU);return p.createElement(ed.PopupContent,J({},o,{ref:e}),p.createElement(ed.PopupStatus,J({status:i,message:r},o),p.createElement(gU,{status:i})),p.createElement(ed.LabelWrapper,null,p.createElement(ed.Label,null,r)),p.createElement(ed.CloseWrapper,null,p.createElement(O4,{size:"sm",onClick:n})))}),iP=_v({},nP);k4.defaultProps=iP;var oP=_v(_v({},rP),{},{message:I.node.isRequired,onClose:I.func});k4.propTypes=oP;var Lu={Center:"center",Left:"left",Right:"right"},tf={Top:"top",Bottom:"bottom"},td,oh,bU=(td={},S(td,Lu.Left,F(["left:25px;right:auto;"])),S(td,Lu.Center,F(["left:50%;right:auto;transform:translateX(-50%);"])),S(td,Lu.Right,F(["left:auto;right:25px;"])),td),OU=(oh={},S(oh,tf.Top,F(["top:25px;bottom:auto;"])),S(oh,tf.Bottom,F(["top:auto;bottom:25px;"])),oh),PU="Popup",kU=$.div.attrs({className:we(PU,"root")}).withConfig({componentId:"sc-jmtjri-0"})(function(t){var e=t.anchorOrigin;return F(["position:fixed;display:flex;align-items:center;justify-content:center;z-index:1400;"," ",""],bU[(e==null?void 0:e.horizontal)||Lu.Left],OU[(e==null?void 0:e.vertical)||tf.Bottom])}),_U=It({Popup:kU});const TU=_U;var IU=["autoHideDuration","anchorOrigin","open","onClose"];function G9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function O0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _4=ct(function(t,e){var n=t.autoHideDuration;t.anchorOrigin;var r=t.open,i=t.onClose,o=se(t,IU),a=PO(we("Popup")),u=j.useState(n),c=Le(u,2),d=c[0],h=c[1],m=j.useState(!1),v=Le(m,2),C=v[0],w=v[1],x=function(){w(!1),h(1e3)};j.useEffect(function(){r&&h(n)},[r]),j.useEffect(function(){var b=null;return r&&!C&&d&&typeof i=="function"&&(b=setTimeout(i,d)),function(){b&&clearTimeout(b)}},[d,C,r,i]);var P=function(){return r?p.createElement(TU.Popup,J({onMouseEnter:function(){return w(!0)},onMouseLeave:x},t),p.createElement(k4,J({onClose:i},o,{ref:e}))):null};return cf.createPortal(P(),a)});_4.defaultProps=O0(O0({},iP),{},{open:!1,autoHideDuration:5e3,anchorOrigin:{vertical:tf.Bottom,horizontal:Lu.Left}});_4.propTypes=O0(O0({},oP),{},{anchorOrigin:I.exact({vertical:I.oneOf(ut(tf)),horizontal:I.oneOf(ut(Lu))}),open:I.bool,autoHideDuration:I.number,onClose:I.func});const LU=_4;var us="RotationSlider",AU=$.ul.attrs({className:we(us,"list")}).withConfig({componentId:"sc-1xuruq0-0"})(["display:flex;align-items:center;position:relative;padding:0;width:100%;list-style:none;"]),MU=$.li.attrs({className:we(us,"big-dot")}).withConfig({componentId:"sc-1xuruq0-1"})(function(t){var e=t.theme.palette;return F(["width:8px;height:8px;border-radius:50%;background-color:",";cursor:pointer;"],e[_.LinkPrimary])}),RU=$.div.attrs({className:we(us,"small-dot-wrapper")}).withConfig({componentId:"sc-1xuruq0-2"})(["padding:2px;"]),zU=$.li.attrs({className:we(us,"small-dot")}).withConfig({componentId:"sc-1xuruq0-3"})(function(t){var e=t.theme.palette;return F(["width:2px;height:2px;border-radius:50%;background-color:",";cursor:pointer;"],e[_.LinkPrimary])}),jU=$.span.attrs({className:we(us,"control")}).withConfig({componentId:"sc-1xuruq0-4"})(function(t){var e=t.theme.palette;return F(["display:flex;justify-content:center;align-items:center;position:absolute;height:18px;width:2px;transform:translate(-50%,-50%);top:50%;background-color:",";& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"],e[_.LinkActive])}),NU=$.div.attrs({className:we(us,"mark")}).withConfig({componentId:"sc-1xuruq0-5"})(["padding:4px;"]),DU=$.span.attrs({className:we(us,"mark-text")}).withConfig({componentId:"sc-1xuruq0-6"})(function(t){var e=t.theme.palette;return F(["position:absolute;top:20px;font-size:14px;transform:translateX(-10%);color:",";"],e[_.TextPrimary])}),BU=It({RotationSliderList:AU,RotationSliderBigDot:MU,RotationSliderSmallDotWrapper:RU,RotationSliderSmallDot:zU,RotationSliderControl:jU,RotationSliderMark:NU,RotationSliderMarkText:DU});const Pl=BU;var HU=["min","max","angle","onChange","onMouseDown","onMouseUp","step","labelTooltipOptions","annotation","hideMarkText","showCurrentMarkText","value","railProps","trackProps","thumbProps","labelTooltipProps","markStyles","markTextStyles"];function U9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var T4=ct(function(t,e){var n=t.min,r=n===void 0?0:n,i=t.max,o=i===void 0?100:i,a=t.angle,u=a===void 0?10:a,c=t.onChange;t.onMouseDown,t.onMouseUp;var d=t.step,h=d===void 0?1:d,m=t.labelTooltipOptions,v=m===void 0?ic.Off:m,C=t.annotation,w=C===void 0?"°":C,x=t.hideMarkText,P=x===void 0?!1:x,b=t.showCurrentMarkText,E=b===void 0?!1:b,k=t.value,T=t.railProps,L=T===void 0?{}:T,A=t.trackProps,M=A===void 0?{}:A,z=t.thumbProps,D=z===void 0?{}:z,B=t.labelTooltipProps,X=B===void 0?{}:B,G=t.markStyles,V=G===void 0?{}:G,ne=t.markTextStyles,ve=ne===void 0?{}:ne,te=se(t,HU),pe=function(re,ee){c&&c(re,ee)},Y=function(){return k||k===0?k>o?o:k<r?r:k:r},de=function(re){return P?!1:E?Y()===re:!0},ce=function(){for(var re=[],ee,ue=r;ue<=o;ue+=h)ee=[],ue%u===0||ue===o?ee=p.createElement(Pl.RotationSliderMark,{key:ue,style:fr({},V)},de(ue)&&p.createElement(Pl.RotationSliderMarkText,{style:fr({},ve)},ue===r+1?o:ue,p.createElement("sup",null,w)),p.createElement(Pl.RotationSliderBigDot,null)):ue%10===0&&(ee=p.createElement(Pl.RotationSliderSmallDotWrapper,{key:ue},p.createElement(Pl.RotationSliderSmallDot,null))),Array.isArray(ee)||re.push(ee);return re};return p.createElement(rO,J({min:r,max:o,step:h,value:Y(),hideTrack:!0,hideAnnotation:!0,annotation:w,onChange:pe,labelTooltip:v,ref:e,components:{Rail:function(re,ee){return p.createElement(Pl.RotationSliderList,J({},re,{styles:fr({},ee)}),ce())},Thumb:Pl.RotationSliderControl},componentsProps:{rail:fr(fr({},L),{},{style:fr({},L.style)}),track:fr(fr({},M),{},{style:fr({},M.style)}),thumb:fr(fr({},D),{},{style:fr({top:"15%"},D.style)}),labelTooltip:fr(fr({},X),{},{style:fr({},X.style)})}},te,{defaultValue:Number(te.defaultValue),style:fr({width:"auto",height:"auto"},te.style)}))});T4.defaultProps={annotation:"°",min:0,max:100,step:1,labelTooltipOptions:ic.Off};T4.propTypes={value:I.oneOfType([I.array,I.number]),min:I.number,max:I.number,angle:I.number,onChange:I.func,onMouseDown:I.func,onMouseUp:I.func,step:I.number,annotation:I.string,hideMarkText:I.bool,showCurrentMarkText:I.bool,railProps:I.object,trackProps:I.object,thumbProps:I.object,labelTooltipProps:I.object,markStyles:I.object,markTextStyles:I.object,labelTooltipOptions:I.oneOf(ut(ic))};const FU=T4;var $U="SelectGroup",WU=$(YO.InputGroup).attrs({className:we($U,"root")}).withConfig({componentId:"sc-1uvutwe-0"})([""]),VU=It({SelectGroup:WU});const GU=VU;var UU=["children","size","error","label","placeholder","hint","LabelProps","SelectProps","selectProps","scroll","fullWidth","showSelectionKey","value","multiple","hideMenuItemsActions","onChange","readOnly","disabled"];function X9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Z9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var I4=ct(function(t,e){var n=t.children,r=t.size,i=t.error,o=t.label,a=t.placeholder,u=t.hint,c=t.LabelProps,d=t.SelectProps,h=t.selectProps,m=t.scroll,v=m===void 0?!0:m,C=t.fullWidth,w=t.showSelectionKey,x=t.value,P=t.multiple,b=t.hideMenuItemsActions,E=t.onChange,k=t.readOnly,T=t.disabled,L=se(t,UU),A=function(){return o?typeof o=="function"?o({error:i}):xr(o)==="object"?o:p.createElement(Qt,J({error:i},c||{}),o):null},M=function(){return u?typeof u=="function"?u({error:i}):xr(u)==="object"?u:p.createElement(mO,{error:i},u):null};return p.createElement(GU.SelectGroup,J({},L,{ref:e}),A(),p.createElement(m4,J({error:i,value:x,size:r,scroll:v,onChange:E,multiple:P,fullWidth:!!C},d||{},{selectProps:h,readOnly:k,disabled:T,placeholder:a,showSelectionKey:w,hideMenuItemsActions:b}),n),M())});I4.defaultProps={error:!1,fullWidth:!1,readOnly:!1,disabled:!1,scroll:!0,hideMenuItemsActions:!1};O1.size;var XU=se(O1,["size"]);I4.propTypes=Z9(Z9({},XU),{},{fullWidth:I.bool,size:I.oneOf(ut(vt)),label:I.node,hint:I.node,LabelProps:I.exact(U5),SelectProps:I.exact(O1),selectProps:I.object,readOnly:I.bool,scroll:I.bool,showSelectionKey:I.bool,disabled:I.bool});const ZU=I4;var YU="Backdrop",KU=$.div.attrs({className:we(YU,"root")}).withConfig({componentId:"sc-txa5a-0"})(function(t){var e=t.theme.palette;return F(["position:fixed;display:flex;align-items:center;justify-content:center;inset:0px;background-color:",";transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:1;z-index:-1;"],e[_.Extra_0_3_Overlay])}),qU=It({Backdrop:KU});const QU=qU;var L4=ct(function(t,e){var n=J({},(qO(t),t));return p.createElement(QU.Backdrop,J({},n,{ref:e}))});L4.defaultProps={};L4.propTypes={};const JU=L4;var ai="Drawer",eX=$.div.attrs({className:we(ai,"temporary")}).withConfig({componentId:"sc-1riasfx-0"})(function(t){var e=t.open;return F(["position:absolute;inset:0px;z-index:1200;visibility:",";"],!e&&"hidden")}),tX=$.div.attrs({className:we(ai,"persistent")}).withConfig({componentId:"sc-1riasfx-1"})([""]),nX=$.div.attrs({className:we(ai,"root")}).withConfig({componentId:"sc-1riasfx-2"})(function(t){var e=t.open,n=t.isCollapsed,r=t.top,i=r===void 0?0:r,o=t.theme,a=o.palette,u=o.shadows,c=o.breakpoints;return F(["display:flex;flex-direction:column;flex:1 0 auto;background-color:",";box-shadow:",";overflow-y:overlay;overflow-x:hidden;transform:",";visibility:",";transition:200ms;height:calc(100% - ","px);","{margin-top:0px;height:100%;}"," &{margin-top:0px;height:100%;}box-sizing:border-box;width:",";padding:",";",""],a[_.BackgroundStateless],u[Rr.LeftPanelMd],e?"none":"translateX(-100%)",!e&&"hidden",i,c.down("md"),c.classes.sm,n?"68px":"302px",n&&"0px 12px",RE)}),rX=$.div.attrs({className:we(ai,"header")}).withConfig({componentId:"sc-1riasfx-3"})(function(t){var e=t.isCollapsed;return F(["display:",";justify-content:flex-start;align-items:center;position:relative;text-decoration:none;width:100%;box-sizing:border-box;text-align:left;margin-top:12px;transition:background-color 100ms ease-out;"],e?"none":"flex")}),iX=$.div.attrs({className:we(ai,"body")}).withConfig({componentId:"sc-1riasfx-4"})(["flex:1 1 auto;.SfxAccordionDetails-root{margin:0;}"]),oX=$.div.attrs({className:we(ai,"footer")}).withConfig({componentId:"sc-1riasfx-5"})(function(t){var e=t.isCollapsed;return F(["display:flex;flex-direction:column;width:100%;padding:",";"],e?"0px":"0px 8px")}),aX=$.ul.attrs({className:we(ai,"list")}).withConfig({componentId:"sc-1riasfx-6"})(function(){return F(["list-style:none;margin:12px 0;padding:0;position:relative;"])}),lX=$.li.attrs({className:we(ai,"item")}).withConfig({componentId:"sc-1riasfx-7"})(function(t){var e=t.theme.palette,n=t.isCollapsed,r=t.selected;return F(["display:",";justify-content:flex-start;align-items:center;position:relative;text-decoration:none;width:100%;box-sizing:border-box;text-align:left;padding:13px 16px;transition:background-color 100ms ease-out;margin-bottom:4px;cursor:pointer;&:hover{background-color:",";& > *{color:",";}}",""],n?"none":"flex",e[_.BackgroundActive],e[_.AccentStateless],r&&F(["background-color:",";& > *{color:"," !important;}"],e[_.BackgroundActive],e[_.AccentStateless]))}),sX=$.div.attrs({className:we(ai,"text")}).withConfig({componentId:"sc-1riasfx-8"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font,i=t.font,o=t.isCollapsed;return F(["flex:1 1 auto;color:",";",";transition:color 100ms ease-out;display:",";user-select:none;"],n[_.TextPrimary],r[i||Pe.LabelLarge],o&&"none")}),uX=$.div.attrs({className:we(ai,"icon")}).withConfig({componentId:"sc-1riasfx-9"})(function(t){var e=t.theme.palette,n=t.isCollapsed;return F(["display:flex;flex-shrink:0;color:",";margin-right:",";transition:color 100ms ease-out;"],e[_.IconsPrimary],n?"0px":"12px")}),aP=$.div.attrs({className:we(ai,"item-button")}).withConfig({componentId:"sc-1riasfx-10"})(function(t){var e=t.theme.palette,n=t.isCollapsed,r=t.selected;return F(["display:flex;justify-content:",";align-items:center;border-radius:4px;box-sizing:border-box;text-align:left;padding:",";transition:background-color 150ms cubic-bezier(0.4,0,0.2,1) 0ms;margin-bottom:8px;cursor:pointer;&:hover{background-color:",";& > *{color:",";}}",""],n?"center":"flex-start",n?"13px":"13px 16px",e[_.BackgroundActive],e[_.AccentStateless],r&&F(["background-color:",";& > *{color:",";}"],e[_.BackgroundActive],e[_.AccentStateless]))}),cX=$(aP).attrs({className:we(ai,"item-button")}).withConfig({componentId:"sc-1riasfx-11"})(function(t){var e=t.isCollapsed;return F(["",""],!e&&F(["padding:13px 24px;"]))}),dX=$(aO).attrs({className:we(ai,"accordion")}).withConfig({componentId:"sc-1riasfx-12"})(function(t){var e=t.theme,n=e.palette,r=e.typography.font,i=t.selected;return F(["","{padding:13px 16px;transition:background-color 100ms ease-out;","{",";color:",";}&:hover{background-color:",";& > *{color:",";}}","}","{padding:0px 16px;}"],Tu.Header,Tu.Label,r[Pe.LabelLargeEmphasis],n[_.TextPrimary],n[_.BackgroundActive],n[_.AccentStateless],i&&F(["","{color:",";}"],Tu.Label,n[_.AccentStateless]),oO.AccordionDetails)}),fX=It({TemporaryDrawer:eX,PersistentDrawer:tX,Drawer:nX,Header:rX,Body:iX,Footer:oX,List:aX,Item:lX,ItemButton:aP,Icon:uX,ItemText:sX,DrawerAccordion:dX,CollapsedButton:cX});const Wi=fX;var pX=j.createContext({isCollapsed:!1,size:20});const yf=pX;var hX=["children","font"],A4=ct(function(t,e){var n=t.children,r=t.font,i=se(t,hX),o=j.useContext(yf),a=o.isCollapsed;return p.createElement(Wi.ItemText,J({font:r,isCollapsed:a},i,{ref:e}),n)});A4.defaultProps={};A4.propTypes={font:I.oneOf(ut(Pe))};const gX=A4;var mX=["children","size"],M4=ct(function(t,e){var n=t.children,r=t.size,i=se(t,mX),o=j.useContext(yf),a=o.isCollapsed,u=o.size;return p.createElement(Wi.Icon,J({},i,{isCollapsed:a,ref:e}),n&&typeof n=="function"?n({size:u||r}):n)});M4.defaultProps={size:20};M4.propTypes={size:I.number,children:I.oneOfType([I.node,I.func]).isRequired};const vX=M4;var wu={Auto:"auto",Temporary:"temporary",Persistent:"persistent"},yX=["children","open","iconsSize","collapsed","top","hideBackdrop","disablePortal","collapseButtonLabel","persistentDrawerStyles","temproryDrawerStyles","variant","onClose","onCollapse","onCollapseClick"];function Y9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function K2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y9(Object(n),!0).forEach(function(r){S(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var R4=ct(function(t,e){var n=t.children,r=t.open,i=t.iconsSize,o=i===void 0?20:i,a=t.collapsed,u=a===void 0?!1:a,c=t.top,d=t.hideBackdrop,h=t.disablePortal,m=t.collapseButtonLabel,v=m===void 0?"Collapse menu":m,C=t.persistentDrawerStyles,w=C===void 0?{}:C,x=t.temproryDrawerStyles,P=x===void 0?{}:x,b=t.variant,E=b===void 0?wu.Auto:b,k=t.onClose,T=t.onCollapse,L=t.onCollapseClick,A=se(t,yX),M=Vb(),z=rN(M.breakpoints.down("xl")),D=j.useState(u),B=Le(D,2),X=B[0],G=B[1],V=j.useRef(null),ne=j.useMemo(function(){return o},[o]),ve=document.querySelector("body");j.useEffect(function(){G(u)},[u]),j.useEffect(function(){T&&T(X)},[X]);var te=function(){var Ee=!X;G(Ee),L&&L(Ee)},pe=function(){typeof k=="function"&&k()},Y=function(Ee){var W=!1;if(V!=null&&V.current){var Se;W=(V==null||(Se=V.current)===null||Se===void 0?void 0:Se.offsetWidth)>0}Ee.key==="Escape"&&W&&pe()};j.useEffect(function(){return document.addEventListener("keydown",Y),function(){return document.removeEventListener("keydown",Y)}},[]);var de=function(Ee){return p.createElement(Wi.Drawer,J({open:r,top:c},A,{isCollapsed:Ee?X:!1,ref:e}),n,Ee&&p.createElement(Wi.CollapsedButton,{onClick:te,isCollapsed:X},p.createElement(vX,null,X?function(W){return p.createElement(xV,J({},W,{size:o}))}:function(W){return p.createElement(wV,J({},W,{size:o}))}),p.createElement(gX,null,v)))},ce=function(){return!d&&r?p.createElement(JU,{onClick:k}):null},me=function(){return h?p.createElement(Wi.TemporaryDrawer,{ref:V,style:K2({},P),open:r},ce(),de(!1)):cf.createPortal(p.createElement(Wi.TemporaryDrawer,{ref:V,style:K2({},P),open:r},ce(),de(!1)),ve)},re=function(){return p.createElement(Wi.PersistentDrawer,{style:K2({},w)},de(!0))},ee=function(){switch(E){case wu.Auto:return z?me():re();case wu.Temporary:return me();case wu.Persistent:return re();default:return z?me():re()}};return p.createElement(yf.Provider,{value:{isCollapsed:z?!1:X,size:ne}},ee())}),wX={open:!1,hideBackdrop:!1,iconsSize:20,variant:wu.Auto};R4.defaultProps=wX;var CX={onClose:I.func.isRequired,onCollapse:I.func,onCollapseClick:I.func,children:I.node.isRequired,top:I.number,iconsSize:I.number,open:I.bool,hideBackdrop:I.bool,collapsed:I.bool,disablePortal:I.bool,collapseButtonLabel:I.string,persistentDrawerStyles:I.object,temproryDrawerStyles:I.object,variant:I.oneOf(ut(wu))};R4.propTypes=CX;const SX=R4;var xX=["children"],z4=ct(function(t,e){var n=t.children,r=se(t,xX),i=j.useContext(yf),o=i.isCollapsed;return p.createElement(Wi.Header,J({},r,{isCollapsed:o,ref:e}),n)});z4.defaultProps={};z4.propTypes={};const EX=z4;var bX=["children"],j4=ct(function(t,e){var n=t.children,r=se(t,bX);return p.createElement(Wi.Body,J({},r,{ref:e}),n)});j4.defaultProps={};j4.propTypes={};const OX=j4;var PX=["children"],N4=ct(function(t,e){var n=t.children,r=se(t,PX);return p.createElement(Wi.List,J({},r,{ref:e}),n)});N4.defaultProps={};N4.propTypes={};const kX=N4;var _X=["children","selected"],D4=ct(function(t,e){var n=t.children,r=t.selected,i=se(t,_X),o=j.useContext(yf),a=o.isCollapsed;return p.createElement(Wi.Item,J({selected:r,isCollapsed:a},i,{ref:e}),n)});D4.defaultProps={selected:!1};D4.propTypes={selected:I.bool};const TX=D4;var IX=$.div.withConfig({componentId:"sc-1rfxjvn-0"})(["display:flex;width:100%;justify-content:space-between;gap:10px;.SfxSlider-root{min-width:100px;}",""],function(t){var e=t.isPhoneScreen;return e&&"\n      flex-direction: column;\n\n      .SfxSlider-root {\n        min-width: 230px;\n      }\n    "}),Nl=$.div.withConfig({componentId:"sc-1rfxjvn-1"})(["display:flex;flex-direction:column;"]),Dl=$(Qt).withConfig({componentId:"sc-1rfxjvn-2"})(["",";"],function(t){var e=t.theme;return e.typography.font[Pe.LabelExtraSmallUp]}),Bl=$.div.withConfig({componentId:"sc-1rfxjvn-3"})(["display:flex;align-items:center;"]),Hl=$(Qd).withConfig({componentId:"sc-1rfxjvn-4"})(["display:inline-block;width:40px;height:28px;padding:6px 2px;margin-left:10px;border:none;.SfxInput-Base{text-align:center;}"]),K9=-1,q2={brightness:0},q9=1,LX={width:150,padding:0,margin:0},AX=function(t){var e,n,r=t.t,i=ff(fn.Filters.Brighten,q2),o=Le(i,2),a=o[0],u=o[1],c=function(d){u({brightness:_n(d,K9,q9)})};return p.createElement(Nl,{className:"FIE_brightness-option-wrapper"},p.createElement(Dl,{className:"FIE_brightness-option-label"},r("brightness")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_brightness-option",min:K9,step:.05,max:q9,width:"124px",value:(e=a.brightness)!==null&&e!==void 0?e:q2.brightness,onChange:c,style:LX}),p.createElement(Hl,{value:(n=a.brightness)!==null&&n!==void 0?n:q2.brightness,onChange:function(h){var m=h.target.value;return c(m)}})))},P0=function(t,e){return Math.min(t.width/e.width,t.height/e.height)||Qo},Q9=[{titleKey:"custom",ratio:zb,icon:O$,hide:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},n=e.lockCropAreaAt;return n}},{titleKey:"original",ratio:qd,icon:x$},{titleKey:"landscape",descriptionKey:"16:9",ratio:Zt(16/9),icon:R$},{titleKey:"portrait",descriptionKey:"9:16",ratio:Zt(9/16),icon:QW},{titleKey:"ellipse",ratio:as,icon:L$}],MX=$.div.withConfig({componentId:"sc-ldar2z-0"})(["display:flex;"]),RX=$(ea).withConfig({componentId:"sc-ldar2z-1"})(["margin:0 0 0 6px;padding:0;"]),lP=$.div.withConfig({componentId:"sc-ldar2z-2"})(["svg,span{vertical-align:middle;}"]),zX=$(Qt).withConfig({componentId:"sc-ldar2z-3"})(["cursor:pointer;",""],function(t){var e=t.theme.typography;return e.font[Pe.InputSm]}),jX=$.div.withConfig({componentId:"sc-ldar2z-4"})(["min-width:270px;border-radius:4px;overflow:hidden;background-color:",";"],function(t){var e=t.theme.palette;return e[_.BackgroundStateless]}),sP=$(ql).withConfig({componentId:"sc-ldar2z-5"})(["display:flex;gap:10px;justify-content:flex-start;align-items:center;border-radius:4px;padding:8px 16px;"," ",""],function(t){var e=t.isAccordion;return e&&"padding-left: 22px;"},function(t){var e=t.isListItem;return e&&"padding: 0;"}),NX=$(Qt).withConfig({componentId:"sc-ldar2z-6"})(function(t){var e=t.theme;return F(["color:",";",";"],e.palette[_.TextPrimary],e.typography.font[Pe.InputMd])}),DX=$(aO).withConfig({componentId:"sc-ldar2z-7"})(function(t){var e=t.theme;return F([".SfxAccordionHeader-icon{padding-left:0;}.SfxAccordionHeader-label{",";color:",";}.SfxAccordionHeader-root{display:flex;flex-direction:row-reverse;width:fit-content;gap:10px;}"],e.typography.font[Pe.LabelMediumEmphasis],e.palette[_.TextPrimary])}),B4=function(t){var e=t.titleKey,n=t.description,r=t.ratio,i=t.onClick,o=t.Icon,a=t.isActive,u=t.isAccordion,c=t.theme,d=t.width,h=t.height,m=t.t,v=t.disableManualResize,C=t.noEffect;return p.createElement(sP,{active:a,onClick:function(x){return i(x,r,{ratioTitleKey:e,width:d,height:h,disableManualResize:v,noEffect:C})},isAccordion:u},o&&p.createElement(lP,null,typeof o=="string"?p.createElement("span",{dangerouslySetInnerHTML:{__html:o}}):p.createElement(o,{color:c.palette["icon-primary"]})),p.createElement(NX,null,m(e)),n&&p.createElement(zX,null,n))};B4.defaultProps={Icon:void 0,width:void 0,height:void 0,disableManualResize:!1,isAccordion:!1,noEffect:!1};function J9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ew(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?J9(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):J9(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var BX=function(t){var e=t.groupTitleKey,n=t.items,r=t.onItemSelect,i=t.t,o=t.isExpanded,a=t.setExpandedGroup,u=Qe(),c=u.adjustments.crop,d=c.ratio,h=c.ratioGroupKey,m=c.ratioTitleKey,v=u.theme,C=function(w,x,P){r(w,x,ew(ew({},P),{},{ratioGroupKey:e}))};return p.createElement(DX,{label:i(e),onChange:function(){a(o?null:e)},expanded:o},n.map(function(w){var x=w.titleKey,P=w.ratio,b=w.width,E=w.height,k=w.descriptionKey,T=w.icon,L=w.disableManualResize,A=w.noEffect,M=P!=null?P:Zt(b/E);return p.createElement(B4,{key:x,titleKey:x,t:i,description:i(k),size:"sm",onClick:C,width:b,height:E,ratio:M,Icon:T,theme:v,isAccordion:!0,disableManualResize:L,isActive:d===M&&m===x&&h===e,noEffect:A})}))};function tw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?tw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):tw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var uP=function(t){var e=t.titleKey,n=t.Icon,r=t.theme,i=t.groups,o=t.onItemSelect,a=t.t,u=Qe(),c=u.adjustments.crop,d=c.ratioFolderKey,h=c.ratioGroupKey,m=j.useState(""),v=Le(m,2),C=v[0],w=v[1],x=function(P,b,E){o(P,b,nw(nw({},E),{},{ratioFolderKey:e}))};return p.createElement(sP,{isListItem:!0,list:[{content:a(e),key:e,active:e===d,prefix:n&&p.createElement(lP,null,typeof n=="string"?p.createElement("span",{dangerouslySetInnerHTML:{__html:n}}):p.createElement(n,{color:r.palette["icon-primary"]})),subList:i.map(function(P){var b=P.titleKey,E=P.items;return{content:p.createElement(BX,{groupTitleKey:b,setExpandedGroup:w,isExpanded:C===""?h===b:C===b,t:a,items:E,onItemSelect:x}),key:b,disableHover:!0}}),subMenuProps:{style:{backgroundColor:r.palette[_.BackgroundStateless]}}}]})};uP.defaultProps={Icon:void 0};var cP=function(t){var e=t.anchorEl,n=t.onClose,r=Qe(),i=r.dispatch,o=r.t,a=r.adjustments,u=a===void 0?{}:a,c=u.crop,d=c===void 0?{}:c,h=d.ratio,m=d.ratioTitleKey,v=d.ratioFolderKey,C=r.shownImageDimensions,w=r.config,x=r.theme,P=w[Q.CROP],b=Ki(),E=j.useMemo(function(){var T=P.presetsItems,L=T===void 0?[]:T,A=P.presetsFolders,M=A===void 0?[]:A,z=P.lockCropAreaAt,D=z?Q9.filter(function(B){var X;return!((X=B.hide)!==null&&X!==void 0&&X.call(B,{lockCropAreaAt:z}))}):Q9;return[].concat(en(M),en(D),en(L))},[P]),k=function(T,L,A){T.stopPropagation();var M={ratio:L,ratioTitleKey:A.ratioTitleKey,ratioGroupKey:A.ratioGroupKey,ratioFolderKey:A.ratioFolderKey,noEffect:A.noEffect};i({type:U4,payload:M}),P.autoResize&&(i({type:Au,payload:{width:A.width,height:A.height,manualChangeDisabled:A.disableManualResize}}),i({type:Qu,payload:{factor:A.width>C.width||A.height>C.height?P0(C,A):Qo}})),n()};return p.createElement(p.Fragment,null,p.createElement(MX,null,p.createElement(X5,{className:"FIE_crop-tool-label FIE_selected-crop-preset-label",isPhoneScreen:b},o(m||"cropTool")),p.createElement(RX,{className:"FIE_crop-presets-opener-button",color:"link-secondary",size:"lg"},e?p.createElement(mV,{size:10}):p.createElement(hV,{size:10}))),p.createElement(ls,{className:"FIE_crop-presets-menu",anchorEl:e,enableOverlay:!0,onClose:n,open:!!e,position:"top",popperOptions:{modifiers:[{name:"offset",options:{offset:[0,4]}}]},maxHeight:"100%"},p.createElement(jX,null,E.map(function(L){var A=L.titleKey,M=L.descriptionKey,z=L.ratio,D=L.width,B=L.height,X=L.groups,G=L.icon,V=L.disableManualResize,ne=L.noEffect;return X?p.createElement(uP,{key:A,titleKey:A,groups:X,Icon:G,theme:x,onItemSelect:k,t:o,disableManualResize:V}):p.createElement(B4,{key:z,ratio:z!=null?z:Zt(D/B),titleKey:A,t:o,description:o(M),Icon:G,isActive:(h||qd)===(z!=null?z:Zt(D/B))&&!v,theme:x,width:D,height:B,onClick:k,disableManualResize:V,noEffect:ne})}))))};cP.defaultProps={anchorEl:null};var dP=function(t){var e=t.selectTool,n=t.isSelected,r=Qe(),i=r.config,o=r.t,a=j.useState(),u=Le(a,2),c=u[0],d=u[1];return p.createElement(Dn,{className:"FIE_crop-tool",id:Q.CROP,Icon:WF,onClick:function(m,v){e(m),d(v.currentTarget)},isSelected:n},i[Q.CROP].noPresets?p.createElement(X5,{className:"FIE_crop-tool-label"},o("cropTool")):p.createElement(cP,{anchorEl:c,onClose:function(){d(null)}}))};dP.defaultProps={isSelected:!1};var HX={transform:"scaleX(-1)"},fP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t,i=Qe(),o=i.dispatch,a=i.adjustments.isFlippedX,u=Ki(320),c=j.useMemo(function(){return{reverseLabelOfCurrXFlipDir:r(a?"unFlipX":"flipX"),reverseIconOfCurrXFlipDir:function(){return p.createElement(T$,{size:u?20:16,style:a?HX:void 0})}}},[a]),d=c.reverseLabelOfCurrXFlipDir,h=c.reverseIconOfCurrXFlipDir,m=j.useCallback(function(){o({type:G4,payload:{direction:K3.X}})},[]),v=j.useCallback(function(C){e(C),m()},[]);return p.createElement(Dn,{className:"FIE_flip-x-tool-button",id:Q.FLIP_X,label:d,Icon:h,onClick:v,isSelected:n})};fP.defaultProps={isSelected:!1};var FX={transform:"scaleY(-1)"},pP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t,i=Qe(),o=i.dispatch,a=i.adjustments.isFlippedY,u=Ki(320),c=j.useMemo(function(){return{reverseLabelOfCurrXFlipDir:r(a?"unFlipY":"flipY"),reverseIconOfCurrXFlipDir:function(){return p.createElement(k$,{size:u?20:16,style:a?FX:void 0})}}},[a]),d=c.reverseLabelOfCurrXFlipDir,h=c.reverseIconOfCurrXFlipDir,m=j.useCallback(function(){o({type:G4,payload:{direction:K3.Y}})},[]),v=j.useCallback(function(C){e(C),m()},[]);return p.createElement(Dn,{className:"FIE_flip-y-tool-button",id:Q.FLIP_Y,label:d,Icon:h,onClick:v,isSelected:n})};pP.defaultProps={isSelected:!1};var hP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_rotate-tool-button",id:Q.ROTATE,label:r("rotateTool"),Icon:HO,onClick:e,isSelected:n})};hP.defaultProps={isSelected:!1};var $X=$.div.withConfig({componentId:"sc-wbx58r-0"})(["display:flex;align-items:center;gap:16px;"]),WX=$(FU).withConfig({componentId:"sc-wbx58r-1"})([".SfxRotationSlider-control{width:1px;height:10px;background-color:",";&:before{box-shadow:unset;}}.SfxRotationSlider-mark,.SfxRotationSlider-small-dot-wrapper{padding:0;.SfxRotationSlider-mark-text{top:10px;}.SfxRotationSlider-big-dot{width:4px;height:4px;}.SfxRotationSlider-small-dot{width:1px;height:1px;}}.SfxRotationSlider-list{gap:4px;}"],function(t){var e=t.theme.palette;return e[_.IconsSecondary]}),VX=$(Ua).withConfig({componentId:"sc-wbx58r-2"})([""]),GX=function(){var t=Qe(),e=t.dispatch,n=t.adjustments.rotation,r=n===void 0?0:n,i=t.resize,o=i===void 0?{}:i,a=t.config,u=a[Q.ROTATE],c=Ki(),d=Yb(function(h,m){var v=_n(m,-180,180);if(e({type:DP,payload:{rotation:v}}),o.width&&o.height){var C=Ga(o.width,o.height,v);e({type:Au,payload:{width:C.width,height:C.height}})}},20);return u.componentType==="buttons"?p.createElement(p.Fragment,null,p.createElement(Dn,{className:"FIE_rotate_button_left",id:Q.IMAGE,label:"-".concat(u.angle,"°"),Icon:i$,onClick:function(m){var v=r-u.angle;d(m,v)}}),p.createElement(Dn,{className:"FIE_rotate_button_right",id:Q.IMAGE,label:"+".concat(u.angle,"°"),Icon:l$,onClick:function(m){var v=r+u.angle;d(m,v)}})):p.createElement($X,null,p.createElement(WX,{className:"FIE_rotate-slider",showCurrentMarkText:!0,min:-180,max:180,step:c?u.angle/3:1,value:r,angle:u.angle||90,onChange:d}),p.createElement(VX,{size:"sm",color:"basic",onClick:function(m){return d(m,r+90)}},p.createElement(PV,{width:15})))},gP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_contrast-tool-button",id:Q.CONTRAST,label:r("contrastTool"),Icon:AW,onClick:e,isSelected:n})};gP.defaultProps={isSelected:!1};var rw=-100,Q2={contrast:0},iw=100,UX={width:150,padding:0,margin:0},XX=function(t){var e,n,r=t.t,i=ff(fn.Filters.Contrast,Q2),o=Le(i,2),a=o[0],u=o[1],c=function(d){u({contrast:_n(d,rw,iw)})};return p.createElement(Nl,{className:"FIE_contrast-option-wrapper"},p.createElement(Dl,{className:"FIE_contrast-option-label"},r("contrastTool")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_contrast-option",min:rw,max:iw,width:"124px",value:(e=a.contrast)!==null&&e!==void 0?e:Q2.contrast,onChange:c,style:UX}),p.createElement(Hl,{value:(n=a.contrast)!==null&&n!==void 0?n:Q2.contrast,onChange:function(h){var m=h.target.value;return c(m)}})))},mP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_hsv-tool-button",id:Q.HSV,label:r("hsvTool"),Icon:jW,onClick:e,isSelected:n})};mP.defaultProps={isSelected:!1};var kl={hue:0,saturation:0,value:0},ow={hue:259,saturation:10,value:2},J2={padding:0,margin:0},ZX=Ki(),YX=function(t){var e,n,r,i,o,a,u=t.t,c=ff(fn.Filters.HSV,kl),d=Le(c,2),h=d[0],m=d[1],v=function(C,w){m(S({},C,w>ow[C]?ow[C]:+w))};return p.createElement(IX,{isPhoneScreen:ZX},p.createElement(Nl,{className:"FIE_hue-option-wrapper"},p.createElement(Dl,{className:"FIE_hue-option-label"},u("hue")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_hue-option",min:0,step:1,max:259,value:(e=h.hue)!==null&&e!==void 0?e:kl.hue,onChange:function(w){return v("hue",w)},style:J2}),p.createElement(Hl,{value:(n=h.hue)!==null&&n!==void 0?n:kl.hue,onChange:function(w){var x=w.target.value;return v("hue",x)}}))),p.createElement(Nl,{className:"FIE_saturation-option-wrapper"},p.createElement(Dl,{className:"FIE_saturation-option-label"},u("saturation")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_saturation-option",min:-2,step:.5,max:10,value:(r=h.saturation)!==null&&r!==void 0?r:kl.saturation,onChange:function(w){return v("saturation",w)},style:J2}),p.createElement(Hl,{value:(i=h.saturation)!==null&&i!==void 0?i:kl.saturation,onChange:function(w){var x=w.target.value;return v("saturation",x)}}))),p.createElement(Nl,{className:"FIE_value-option-wrapper"},p.createElement(Dl,{className:"FIE_value-option-label"},u("value")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_value-option",min:-2,step:.1,max:2,value:(o=h.value)!==null&&o!==void 0?o:kl.value,onChange:function(w){return v("value",w)},style:J2}),p.createElement(Hl,{value:(a=h.value)!==null&&a!==void 0?a:kl.value,onChange:function(w){var x=w.target.value;return v("value",x)}}))))},vP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_blur-tool-button",id:Q.BLUR,label:r("blurTool"),Icon:HW,onClick:e,isSelected:n})};vP.defaultProps={isSelected:!1};var aw=0,em={blurRadius:0},lw=100,KX={width:150,padding:0,margin:0},qX=function(t){var e,n,r=t.t,i=ff(fn.Filters.Blur,em),o=Le(i,2),a=o[0],u=o[1],c=function(d){u({blurRadius:_n(d,aw,lw)})};return p.createElement(Nl,{className:"FIE_blur-option-wrapper"},p.createElement(Dl,{className:"FIE_blur-option-label"},r("blur")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_blur-option",min:aw,max:lw,width:"124px",value:(e=a.blurRadius)!==null&&e!==void 0?e:em.blurRadius,onChange:c,style:KX}),p.createElement(Hl,{value:(n=a.blurRadius)!==null&&n!==void 0?n:em.blurRadius,onChange:function(h){var m=h.target.value;return c(m)}})))},yP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_warmth-tool-button",id:Q.WARMTH,label:r("warmthTool"),Icon:IW,onClick:e,isSelected:n})};yP.defaultProps={isSelected:!1};var sw=0,tm={warmth:0},uw=200,QX={width:150,padding:0,margin:0},JX=function(t){var e,n,r=t.t,i=ff(N5,tm),o=Le(i,2),a=o[0],u=o[1],c=function(d){u({warmth:_n(d,sw,uw)})};return p.createElement(Nl,{className:"FIE_warmth-option-wrapper"},p.createElement(Dl,{className:"FIE_warmth-option-label"},r("warmthTool")),p.createElement(Bl,null,p.createElement(Nn,{className:"FIE_warmth-option",min:sw,max:uw,width:"124px",value:(e=a.warmth)!==null&&e!==void 0?e:tm.warmth,onChange:c,style:QX}),p.createElement(Hl,{value:(n=a.warmth)!==null&&n!==void 0?n:tm.warmth,onChange:function(h){var m=h.target.value;return c(m)}})))},eZ=$.div.withConfig({componentId:"sc-1nr0bka-0"})(["max-width:680px;min-width:150px;position:relative;overflow:hidden;touch-action:pan-y pinch-zoom;"]),tZ=$.ul.withConfig({componentId:"sc-1nr0bka-1"})(["padding:0;margin:0;white-space:nowrap;overflow:hidden;"]),nZ=$.li.withConfig({componentId:"sc-1nr0bka-2"})(["padding:4px;display:inline-block;list-style-type:none;user-select:none;"]),wP=F(["position:absolute;top:0;height:100%;width:60px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:1;svg{color:",";}"],function(t){var e=t.theme.palette;return e[_.IconsSecondary]}),rZ=$.div.withConfig({componentId:"sc-1nr0bka-3"})([""," left:0;justify-content:flex-start;background:linear-gradient( 90deg,#ffffff 1.56%,rgba(255,255,255,0.89) 52.4%,rgba(255,255,255,0.532165) 76.04%,rgba(255,255,255,0) 100% );"],wP),iZ=$.div.withConfig({componentId:"sc-1nr0bka-4"})([""," right:0;justify-content:flex-end;background:linear-gradient( 270deg,#ffffff 1.56%,rgba(255,255,255,0.89) 52.4%,rgba(255,255,255,0.532165) 76.04%,rgba(255,255,255,0) 100% );"],wP),I1=function(t){var e=t.children,n=t.style,r=t.className,i=j.useRef(!1),o=j.useRef(),a=W5(),u=Le(a,1),c=u[0],d=j.useState(!1),h=Le(d,2),m=h[0],v=h[1],C=j.useState(!1),w=Le(C,2),x=w[0],P=w[1],b=j.Children.toArray(e),E=function(){if(o.current){var M=o.current,z=M.scrollWidth,D=M.offsetWidth,B=M.scrollLeft,X=Math.round(z-D),G=Math.round(X-B);v(0<B),P(0<G)}},k=function(M,z){var D=M.findIndex(function(B){return B.classList.contains("FIE_carousel-item")});D!==-1&&(M[D].scrollIntoView({inline:z,behavior:"smooth",block:"nearest"}),setTimeout(function(){E()},500))},T=function(M){if(i.current){var z,D=(((z=M.touches)===null||z===void 0?void 0:z[0])||M).pageX;o.current.scrollBy(i.current-D,0),i.current=D,C1(E,30)()}},L=function(){i.current=null,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",T),document.removeEventListener("touchcancel",L),document.removeEventListener("touchend",L)},A=function(M){var z;i.current=(((z=M.touches)===null||z===void 0?void 0:z[0])||M).pageX,document.addEventListener("mousemove",T),document.addEventListener("mouseup",L),document.addEventListener("touchmove",T),document.addEventListener("touchcancel",L),document.addEventListener("touchend",L)};return j.useEffect(function(){o.current&&c(o.current,E)},[]),p.createElement(eZ,{className:"".concat(r,"-wrapper"),style:n,onMouseDown:A,onTouchStart:A},m&&p.createElement(rZ,{className:"FIE_carousel-prev-button",onClick:function(z){var D=bv(),B=D.topOffset,X=D.leftOffset,G=document.elementsFromPoint(z.pageX+z.currentTarget.offsetWidth-X,z.pageY-B);k(G,"end")}},p.createElement(GO,null)),p.createElement(tZ,{className:"".concat(r,"-items"),ref:o},b.map(function(M){return p.createElement(nZ,{className:"".concat(r,"-item-wrapper FIE_carousel-item"),key:M.key},M)})),x&&p.createElement(iZ,{className:"FIE_carousel-next-button",onClick:function(z){var D=bv(),B=D.topOffset,X=D.leftOffset,G=document.elementsFromPoint(z.pageX-z.currentTarget.offsetWidth-X,z.pageY-B);k(G,"start")}},p.createElement(wW,null)))};I1.defaultProps={style:null};var oZ=$.div.withConfig({componentId:"sc-oxugzy-0"})(["display:inline-flex;flex-direction:column;align-items:center;justify-content:center;padding:0px 2px;gap:6px;cursor:pointer;border-radius:2px;canvas{border-radius:2px;}"]),aZ=$(Ib).withConfig({componentId:"sc-oxugzy-1"})(["[aria-selected='true'] &{padding:1px;border:1px solid ",";border-radius:2px;}"],function(t){var e=t.theme;return e.palette["accent-primary-active"]}),lZ=$(Qt).withConfig({componentId:"sc-oxugzy-2"})(function(t){var e=t.theme;return F(["color:",";",";[aria-selected='true'] &{color:",";}"],e.palette[_.TextPrimary],e.typography.font[Pe.LabelExtraSmallUp],e.palette["accent-primary-active"])}),ah=60,lh=45,CP=function(t){var e=t.filterLabel,n=t.filterFn,r=t.applyFilter,i=t.isActive,o=t.image,a=j.useRef(),u=j.useCallback(function(){r(n)},[n]),c=j.useCallback(function(){a.current?a.current.cache():setTimeout(c,0)},[]);j.useEffect(function(){return o&&c(),function(){var C;(C=a.current)===null||C===void 0||C.clearCache()}},[o]);var d=o.width/o.height,h=1>d,m=h?ah:lh*d,v=h?ah/d:lh;return p.createElement(oZ,{className:"FIE_filters-item",onClick:u,"aria-selected":i},p.createElement(aZ,{className:"FIE_filters-item-preview",width:ah,height:lh},p.createElement(Y3,{onTap:u},p.createElement(v1,{image:o,filters:n?[n]:[],width:m,height:v,x:-(m-ah)/2,y:-(v-lh)/2,ref:a}))),p.createElement(lZ,{className:"FIE_filters-item-label"},e))};CP.defaultProps={filterFn:void 0};const sZ=j.memo(CP);var sh=fn.Filters,uZ=[{label:"Original",filterFn:null},{label:"Invert",filterFn:sh.Invert},{label:"Black & White",filterFn:q3},{label:"Sepia",filterFn:sh.Sepia},{label:"Solarize",filterFn:sh.Solarize},{label:"Clarendon",filterFn:Q3},{label:"Gingham",filterFn:J3},{label:"Moon",filterFn:e5},{label:"Lark",filterFn:t5},{label:"Reyes",filterFn:n5},{label:"Juno",filterFn:r5},{label:"Slumber",filterFn:i5},{label:"Crema",filterFn:o5},{label:"Ludwig",filterFn:a5},{label:"Aden",filterFn:l5},{label:"Perpetua",filterFn:s5},{label:"Amaro",filterFn:u5},{label:"Mayfair",filterFn:c5},{label:"Rise",filterFn:d5},{label:"Hudson",filterFn:f5},{label:"Valencia",filterFn:p5},{label:"X-Pro II",filterFn:h5},{label:"Sierra",filterFn:g5},{label:"Willow",filterFn:m5},{label:"Lo-Fi",filterFn:v5},{label:"Inkwell",filterFn:sh.Grayscale},{label:"Hefe",filterFn:y5},{label:"Nashville",filterFn:w5},{label:"Stinson",filterFn:C5},{label:"Vesper",filterFn:S5},{label:"Earlybird",filterFn:x5},{label:"Brannan",filterFn:E5},{label:"Sutro",filterFn:b5},{label:"Toaster",filterFn:O5},{label:"Walden",filterFn:P5},{label:"1977",filterFn:k5},{label:"Kelvin",filterFn:_5},{label:"Maven",filterFn:T5},{label:"Ginza",filterFn:I5},{label:"Skyline",filterFn:L5},{label:"Dogpatch",filterFn:A5},{label:"Brooklyn",filterFn:M5},{label:"Helena",filterFn:R5},{label:"Ashby",filterFn:z5},{label:"Charmes",filterFn:j5}],cZ={maxWidth:"100%",width:"100%"},dZ=function(){var t=Qe(),e=t.originalImage,n=uN(),r=Le(n,2),i=r[0],o=r[1];return p.createElement(I1,{className:"FIE_filters",style:cZ},uZ.map(function(a){return p.createElement(sZ,{key:a.label,filterLabel:a.label,filterFn:a.filterFn,applyFilter:o,isActive:i===a.filterFn,image:e})}))},SP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_text-tool-button",id:Q.TEXT,label:r("textTool"),Icon:DO,onClick:e,isSelected:n})};SP.defaultProps={isSelected:!1};var fZ=$.div.withConfig({componentId:"sc-qvjmv1-0"})(["display:flex;align-items:center;justify-content:center;padding:8px 16px;margin-top:4px;gap:8px;flex-wrap:wrap;"," svg{color:",";}"],function(t){var e=t.isPhoneScreen;return e&&"\n    max-width: 315px;\n    padding: 0;\n  "},function(t){var e=t.theme.palette;return e[_.IconsPrimary]}),pZ=$.div.withConfig({componentId:"sc-qvjmv1-1"})(["display:flex;flex-wrap:wrap;margin-left:-4px;gap:4px;.FIE_annotation-option-triggerer{padding:6px;}"]),k0=$.div.withConfig({componentId:"sc-qvjmv1-2"})(["background:",";border-radius:4px;display:flex;flex-direction:column;padding:8px 12px;overflow:visible;"," "," *{font-family:'Roboto',sans-serif;}"],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.position;return e&&"\n    display: grid;\n    grid-template-columns: repeat(4, auto);\n    padding: 0;\n    margin-top: 8px;\n    box-shadow: 0px 1px 2px ".concat(function(n){var r=n.theme;return r.palette["light-shadow"]},";\n    ")},function(t){var e=t.disablePadding;return e&&"\n      padding: 0;\n    "}),ol=$.div.withConfig({componentId:"sc-qvjmv1-3"})(["display:flex;align-items:center;gap:8px;",""],function(t){var e=t.preventFlex;return e&&"\n      display: block;\n  \n      label {\n        margin-bottom: 8px;\n      }\n  "}),cw=$.div.withConfig({componentId:"sc-qvjmv1-4"})(["display:flex;align-items:center;justify-content:space-between;"]),uh=$.div.withConfig({componentId:"sc-qvjmv1-5"})(["&:not(:first-child){margin-left:12px;}"]),Fa=$.div.withConfig({componentId:"sc-qvjmv1-6"})(function(t){var e=t.theme,n=t.addThinBorder,r=t.secondaryIconColor,i=t.active,o=t.watermarkTool;return"\n    cursor: pointer;\n    padding: ".concat(o?"6px":"8px 12px",";\n    border-radius: 2px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    gap: 6px;\n\n    svg {\n      vertical-align: middle;\n      margin: 0 auto;\n    }\n\n    ").concat(n?"border: 0.5px solid ".concat(e.palette["borders-secondary"],";\n        padding: 8px 8px;"):"",";\n    color: ").concat(r?e.palette[_.IconsSecondary]:"",";\n\n    ").concat(i&&"\n      border-radius: 4px;\n      border-color: ".concat(e.palette[_.AccentStateless],";\n      background-color: ").concat(e.palette[_.BackgroundActive],";\n\n        * {\n          color: ").concat(e.palette[_.AccentStateless],";\n        }\n      "),"\n\n    :hover {\n      background: ").concat(e.palette["bg-primary-active"],";\n    }\n  ")}),xP=$(Qt).withConfig({componentId:"sc-qvjmv1-7"})(["color:",";"],function(t){var e=t.theme.palette;return e[_.TextPrimary]}),hZ=0,gZ=1,mZ=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,i=e.opacity,o=Math.round(100*i);return p.createElement(k0,{disablePadding:!0},p.createElement(Qt,null,r("transparency")),p.createElement(ol,null,p.createElement(Nn,{annotation:"%",onChange:function(u){n({opacity:_n(u/100,hZ,gZ)})},value:o,noMargin:!0}),p.createElement(xP,null,"".concat(o,"%"))))},vZ=$(QO).withConfig({componentId:"sc-7tf41j-0"})(["max-width:350px;"]),yZ=$.div.withConfig({componentId:"sc-7tf41j-1"})([".SfxColorPicker-root{max-width:100%;padding:0;box-shadow:none;border:none;","}.SfxColorPicker-action{display:flex;gap:12px;.SfxColorPicker-select{width:100px;}.SfxInput-root{width:190px !important;}}.SfxColorPicker-icon{color:",";}.SfxColorPicker-range-picker,.SfxColorPicker-bar-wrapper{width:100%;}"],function(t){var e=t.hideModalTitle;return e&&"padding-top: 12px;"},function(t){var e=t.theme.palette;return e[_.IconsPrimary]}),wZ=$(JO).withConfig({componentId:"sc-7tf41j-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),nm={ColorPickerModal:vZ,ColorPickerWrap:yZ,ModalActions:wZ},CZ={zIndex:1301},EP=function(t){var e=t.hideModalTitle,n=t.defaultColor,r=n===void 0?"":n,i=t.onChange,o=t.open,a=t.pinnedColors,u=t.onClose,c=Qe(),d=c.t;return o?p.createElement(nm.ColorPickerModal,{onClose:u,open:o,fullWidth:!0,modalStyles:CZ},!e&&p.createElement(tP,{onClose:u,primary:d("colorPickerModalTitleLabel","Pick color"),icon:p.createElement(dV,{size:29}),iconShadow:!0,variant:"with-icon"}),p.createElement(eP,null,p.createElement(nm.ColorPickerWrap,{hideModalTitle:e},p.createElement(sG,{onChange:i,pinnedColors:a,defaultColor:r,showTransparentColor:!0}))),p.createElement(nm.ModalActions,null,p.createElement(ea,{color:"basic",onClick:u},d("cancel")),p.createElement(ea,{color:"primary",onClick:u},d("apply")))):null};EP.defaultProps={defaultColor:"",pinnedColors:[],onChange:function(){},open:!1,hideModalTitle:!1,onClose:function(){}};var SZ=$.div.attrs(function(t){var e=t.$color;return{style:{background:e==="rgba(0,0,0,0)"?"repeating-conic-gradient(#5d6d7e 0% 25%, transparent 0% 50%) 50% / 8px 8px":e}}}).withConfig({componentId:"sc-zmv0gj-0"})(["background:",";border-radius:4px;width:32px;height:32px;border:1px solid ",";cursor:pointer;box-sizing:border-box;"],function(t){var e=t.theme;return e.palette["icons-primary"]},function(t){var e=t.theme;return e.palette[_.BorderPrimaryStateless]}),rm="FIE_pinnedColors",L1=function(t){var e,n=t.onChange,r=t.color,i=t.colorFor,o=Qe(),a=o.selectionsIds,u=a===void 0?[]:a,c=o.config.annotationsCommon,d=c===void 0?{}:c,h=o.dispatch,m=o.latestColors,v=m===void 0?{}:m,C=v[i],w=j.useState(),x=Le(w,2),P=x[0],b=x[1],E=j.useState(function(){return C||r||d.fill}),k=Le(E,2),T=k[0],L=k[1],A=j.useState((e=window)!==null&&e!==void 0&&e.localStorage?JSON.parse(localStorage.getItem(rm)||"[]"):[]),M=Le(A,2),z=M[0],D=M[1],B=function(G){var V;if((V=window)!==null&&V!==void 0&&V.localStorage){var ne=window.localStorage.getItem(rm);if(JSON.stringify(G)!==ne){var ve=G.slice(-9);window.localStorage.setItem(rm,JSON.stringify(ve)),D(ve)}}},X=function(G){b(P?null:G.currentTarget)};return j.useEffect(function(){var G=u.length===0&&C||r;L(G),n(G)},[r,u]),p.createElement(p.Fragment,null,p.createElement(SZ,{className:"FIE_color-picker-triggerer",onClick:X,$color:T,onChange:n}),p.createElement(EP,{hideModalTitle:!0,onChange:function(V,ne,ve){L(ne),n(ne),B(ve),C!==ne&&h({type:GP,payload:{latestColors:S({},i,ne)}})},defaultColor:T,pinnedColors:z,open:!!P,onClose:X}))};L1.defaultProps={color:void 0};var xZ=0,EZ=100,bZ=function(t){var e=t.annotation,n=t.updateAnnotation,r=e.stroke,i=e.strokeWidth;return p.createElement(ol,null,p.createElement(Nn,{annotation:"px",onChange:function(a){n({strokeWidth:_n(a,xZ,EZ)})},value:i,noMargin:!0}),p.createElement(L1,{color:r,onChange:function(a){n({stroke:a})},colorFor:"stroke"}))},OZ=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,i=e.shadowOffsetX,o=e.shadowOffsetY,a=e.shadowBlur,u=e.shadowColor,c=e.shadowOpacity,d=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:100;n(S({},h,_n(m,v,C)))};return p.createElement(ol,{preventFlex:!0},p.createElement(Qt,null,r("shadow")),p.createElement(cw,null,p.createElement(uh,null,p.createElement(Qt,null,r("horizontal")),p.createElement(Nn,{annotation:"px",min:-100,max:100,onChange:function(m){return d("shadowOffsetX",m,-100,100)},value:i||0,hideTrack:!0})),p.createElement(uh,null,p.createElement(Qt,null,r("vertical")),p.createElement(Nn,{annotation:"px",min:-100,max:100,onChange:function(m){return d("shadowOffsetY",m,-100,100)},value:o||0,hideTrack:!0}))),p.createElement(cw,null,p.createElement(uh,null,p.createElement(Qt,null,r("blur")),p.createElement(Nn,{annotation:"%",onChange:function(m){return d("shadowBlur",m)},value:a})),p.createElement(uh,null,p.createElement(Qt,null,r("opacity")),p.createElement(Nn,{annotation:"%",onChange:function(m){return d("shadowOpacity",m/100,0,1)},value:Math.round(100*c)}))),p.createElement(L1,{color:u,onChange:function(m){n({shadowColor:m})},colorFor:"shadow"}))},PZ=function(t,e,n){var r=t.width,i=t.height,o=t.scaleX,a=o===void 0?1:o,u=t.scaleY,c=u===void 0?1:u,d=t.rotation,h=d===void 0?0:d,m=t.padding,v=m===void 0?0:m,C=t.radius,w=t.radiusX,x=t.radiusY,P=Ga((r||2*(C||w))*a,(i||2*(C||x))*c,h),b=e.attrs,E=b.clipWidth,k=b.clipHeight,T=b.clipX,L=T===void 0?0:T,A=b.clipY,M=A===void 0?0:A,z={left:L+P.offsetLeft+v,center:L+E/2-(P.width/2-P.offsetLeft)+v,right:L+E-P.width-v+P.offsetLeft},D={top:M+P.offsetTop+v,middle:M+k/2-(P.height/2-P.offsetTop)+v,bottom:M+k-P.height-v+P.offsetTop},B=S(S(S(S(S(S(S(S(S({},Pn.TOP_LEFT,function(){return{x:z.left,y:D.top}}),Pn.TOP_CENTER,function(){return{x:z.center,y:D.top}}),Pn.TOP_RIGHT,function(){return{x:z.right,y:D.top}}),Pn.MIDDLE_LEFT,function(){return{x:z.left,y:D.middle}}),Pn.MIDDLE_CENTER,function(){return{x:z.center,y:D.middle}}),Pn.MIDDLE_RIGHT,function(){return{x:z.right,y:D.middle}}),Pn.BOTTOM_LEFT,function(){return{x:z.left,y:D.bottom}}),Pn.BOTTOM_CENTER,function(){return{x:z.center,y:D.bottom}}),Pn.BOTTOM_RIGHT,function(){return{x:z.right,y:D.bottom}});return B[n]()},dw=Object.values(Pn),kZ=S(S(S(S(S(S(S(S(S({},Pn.TOP_LEFT,-145),Pn.TOP_CENTER,-90),Pn.TOP_RIGHT,-45),Pn.MIDDLE_LEFT,180),Pn.MIDDLE_CENTER,0),Pn.MIDDLE_RIGHT,0),Pn.BOTTOM_LEFT,135),Pn.BOTTOM_CENTER,90),Pn.BOTTOM_RIGHT,45),No={OPACITY:"opacity",STROKE:"stroke",SHADOW:"shadow",POSITION:"position"},_Z=function(t){var e=t.annotation,n=t.updateAnnotation,r=j.useState(null),i=Le(r,2),o=i[0],a=i[1],u=Qe(),c=u.designLayer,d=function(m){n(PZ(e,c,m)),a(m)},h=dw.length;return dw.map(function(m,v){return p.createElement(j.Fragment,{key:m},p.createElement(Fa,{onClick:function(){return d(m)},active:o===m,secondaryIconColor:!0,addThinBorder:!0},m===Pn.MIDDLE_CENTER?p.createElement(g$,null):p.createElement(sW,{style:{transform:"rotate(".concat(kZ[m],"deg)")}})),(v+1)%3==0&&v+1!==h&&p.createElement("div",null))})},TZ=["children","morePoppableOptionsPrepended","moreOptionsPopupComponentsObj","morePoppableOptionsAppended","annotation","updateAnnotation","hideFillOption","hidePositionField","className"];function fw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?fw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):fw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var oa=function(t){var e=t.children,n=t.morePoppableOptionsPrepended,r=t.moreOptionsPopupComponentsObj,i=t.morePoppableOptionsAppended,o=t.annotation,a=t.updateAnnotation,u=t.hideFillOption,c=t.hidePositionField,d=t.className,h=se(t,TZ),m=j.useState(null),v=Le(m,2),C=v[0],w=v[1],x=j.useState(null),P=Le(x,2),b=P[0],E=P[1],k=Qe(),T=k.config.useCloudimage,L=k.t,A=Ki(320),M=j.useMemo(function(){return[].concat(en(n),[{titleKey:"opacity",name:No.OPACITY,Icon:H$}],en(T?[]:[{titleKey:"stroke",name:No.STROKE,Icon:N$},{titleKey:"shadow",name:No.SHADOW,Icon:W$}]),[c?void 0:{titleKey:"position",name:No.POSITION,Icon:Y$}])},[n]),z=j.useMemo(function(){return pw(pw({},r),{},S(S(S(S({},No.OPACITY,mZ),No.STROKE,bZ),No.SHADOW,OZ),No.POSITION,_Z),i)},[r]),D=j.useCallback(function(G,V){var ne=G==null?void 0:G.currentTarget;w(ne),E(V)},[]),B=j.useCallback(function(G){a({fill:G})},[a]),X=C&&b&&z[b];return p.createElement(fZ,{className:"FIE_annotations-options".concat(d?" ".concat(d):""),isPhoneScreen:A},!u&&p.createElement(L1,{color:o.fill,onChange:B,colorFor:"fill"}),e,p.createElement(pZ,null,M.map(function(G){return G&&p.createElement(Fa,{className:"FIE_annotation-option-triggerer",key:G.name,title:L(G.titleKey),onClick:function(ne){return D(ne,G.name)},active:b===G.name},p.createElement(G.Icon,{size:20}))})),X&&p.createElement(ls,{className:"FIE_annotation-option-popup",anchorEl:C,open:!!C,onClose:D,position:"top"},p.createElement(k0,null,b===No.POSITION?function(){return p.createElement(p.Fragment,null,p.createElement(Qt,null,L("position")),p.createElement(k0,{position:!0},p.createElement(X,J({annotation:o,updateAnnotation:a},h))))}():p.createElement(X,J({annotation:o,updateAnnotation:a},h)))))};oa.defaultProps={children:void 0,morePoppableOptionsPrepended:[],moreOptionsPopupComponentsObj:{},morePoppableOptionsAppended:[],hideFillOption:!1,hidePositionField:!1,className:void 0};var IZ=$(m4).withConfig({componentId:"sc-1cwdnjz-0"})(["width:160px;"]),LZ=$(Qd).withConfig({componentId:"sc-1cwdnjz-1"})(["width:72px;"]),AZ=$.div.withConfig({componentId:"sc-1cwdnjz-2"})(["display:flex;"]),MZ=0,RZ=100,hw=1,zZ=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,i=e.letterSpacing,o=e.lineHeight,a=function(u,c){n(S({},u,_n(c,MZ,RZ)))};return p.createElement(ol,{preventFlex:!0},p.createElement(Qt,null,r("letterSpacing")),p.createElement(Nn,{annotation:"px",isActive:!!i,onChange:function(c){return a("letterSpacing",c)},value:i,step:hw}),p.createElement(Qt,null,r("lineHeight")),p.createElement(Nn,{annotation:"px",isActive:!!o,onChange:function(c){return a("lineHeight",c)},value:o,step:hw}))},jZ={transform:"scaleX(-1)"},NZ=function(t){var e=t.annotation,n=t.updateAnnotation,r=e.align,i=function(o){n({align:o})};return p.createElement(ol,null,p.createElement(Fa,{onClick:function(){return i("left")},active:r==="left"},p.createElement(z9,null)),p.createElement(Fa,{onClick:function(){return i("center")},active:r==="center"},p.createElement(BO,null)),p.createElement(Fa,{onClick:function(){return i("right")},active:r==="right"},p.createElement(z9,{style:jZ})))},DZ=[{titleKey:"textAlignment",name:"text-alignment",Icon:BO},{titleKey:"textSpacings",name:"text-spacings",Icon:Q$}],BZ=S(S({},"text-alignment",NZ),"text-spacings",zZ),Je,Tt,Ad,Tv,Iv,bP=function(t){if(t.target!==Je){var e=Je.value;_0(),Tv(e)}},_0=function(){Je&&Je.remove(Je),window&&window.removeEventListener("click",bP),Tt&&Tt.show(),Ad&&Ad.show(),typeof Iv=="function"&&Iv(),Tt=null,Je=null,Ad=null},HZ=function(t,e,n,r,i){function o(m){var v=m;v||(v=Tt.placeholder.length*Tt.fontSize());var C=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);(C||h)&&(v=Math.ceil(v));var w=document.documentMode||/Edge/.test(navigator.userAgent);w&&(v+=1),Je.style.width="".concat(v,"px")}Tv=r,Iv=i,Ad=n,Tt=e.findOne("#".concat(t)),Tt.hide(),Ad.hide();var a=Tt.absolutePosition();Je=document.createElement("textarea"),e.container().parentNode.appendChild(Je),Je.value=Tt.text(),Je.style.position="absolute",Je.style.top="".concat(a.y,"px"),Je.style.left="".concat(a.x,"px"),Je.style.width="".concat(Tt.width()-2*Tt.padding(),"px"),Je.style.height="".concat(Tt.height()-2*Tt.padding()+5,"px"),Je.style.maxWidth="".concat(Tt.width()-2*Tt.padding(),"px"),Je.style.maxHeight="".concat(Tt.height()-2*Tt.padding()+5,"px"),Je.style.fontSize="".concat(Tt.fontSize(),"px"),Je.style.border="1px solid rgba(0, 0, 0, 0.5)",Je.style.padding="0px",Je.style.margin="0px",Je.style.overflow="hidden",Je.style.background="none",Je.style.outline="none",Je.style.resize="none",Je.style.lineHeight=Tt.lineHeight(),Je.style.fontFamily=Tt.fontFamily(),Je.style.transformOrigin="left top",Je.style.textAlign=Tt.align(),Je.style.fontStyle=Tt.fontStyle(),Je.style.letterSpacing=Tt.letterSpacing(),Je.style.lineHeight=Tt.lineHeight(),Je.style.color=Tt.fill();var u=Tt.rotation(),c="";u&&(c+="rotateZ(".concat(u,"deg)"));var d=0,h=-1<navigator.userAgent.toLowerCase().indexOf("firefox");h&&(d+=2+Math.round(Tt.fontSize()/20)),c+="translateY(-".concat(d,"px)"),Je.style.transform=c,Je.style.height="auto",Je.style.height="".concat(Je.scrollHeight+3,"px"),Je.focus(),Je.addEventListener("keydown",function(m){if(m.key==="Enter"&&!m.shiftKey){var v=Je.value;_0(),Tv(v)}m.key==="Escape"&&_0()}),Je.addEventListener("keydown",function(m){if(m.key!=="Enter"&&m.key!=="Escape"){var v=Tt.getAbsoluteScale().x;o(Tt.width()*v),Je.style.height="auto",Je.style.height="".concat(Je.scrollHeight+Tt.fontSize(),"px")}}),window&&setTimeout(function(){window.addEventListener("click",bP)})},H4=function(t){var e=t.text,n=t.saveText,r=t.children,i=Qe(),o=i.dispatch,a=i.textIdOfEditableContent,u=i.designLayer,c=i.t,d=i.config,h=d.useCloudimage,m=d[Q.TEXT],v=m.fonts,C=v===void 0?[]:v,w=m.onFontChange,x=j.useCallback(function(T){var L=T.target,A=L.name,M=L.value,z=L.type;n(function(D){return S({id:D.id},A,z==="number"?_n(M,1,500):M)})},[n]),P=j.useCallback(function(T){if(x({target:{name:"fontFamily",value:T}}),e.fontFamily!==T&&typeof w=="function"){var L=u.draw.bind(u);w(T,L)}},[x,e,u]),b=j.useCallback(function(T){var L,A=((L=e.fontStyle)===null||L===void 0?void 0:L.replace("normal","").split(" "))||[];0<Object.keys(A).length&&A.includes(T)?A=A.filter(function(M){return M!==T}):A.push(T),x({target:{name:"fontStyle",value:A.join(" ").trim()||"normal"}})},[e]),E=j.useCallback(function(){o({type:X4,payload:{textIdOfEditableContent:null}})},[]),k=j.useCallback(function(T){x({target:{name:"text",value:T}}),E()},[]);return j.useEffect(function(){var T;if(a&&e.id===a){var L=u.getStage(),A=Le(L.findOne("#".concat(Lb)).children,1);T=A[0],HZ(a,L,T,k,E)}return function(){T&&a&&_0()}},[a]),p.createElement(oa,{className:"FIE_text-tool-options",annotation:e,updateAnnotation:n,morePoppableOptionsPrepended:h?[]:DZ,moreOptionsPopupComponentsObj:h?{}:BZ,t:c},Array.isArray(C)&&1<C.length&&p.createElement(IZ,{className:"FIE_text-font-family-option",onChange:P,value:e.fontFamily,placeholder:c("fontFamily"),size:"sm"},C.map(function(){var T,L,A,M=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return p.createElement(ql,{className:"FIE_text-font-family-item",key:(T=M.value)!==null&&T!==void 0?T:M,value:(L=M.value)!==null&&L!==void 0?L:M},(A=M.label)!==null&&A!==void 0?A:M)})),p.createElement(LZ,{className:"FIE_text-size-option",value:e.fontSize||"",name:"fontSize",onChange:x,inputMode:"numeric",type:"number",size:"sm",placeholder:c("size")}),p.createElement(AZ,null,!h&&p.createElement(p.Fragment,null,p.createElement(Fa,{className:"FIE_text-bold-option",active:(e.fontStyle||"").includes("bold"),onClick:function(){return b("bold")},watermarkTool:!0},p.createElement(hW,{size:20})),p.createElement(Fa,{className:"FIE_text-italic-option",active:(e.fontStyle||"").includes("italic"),onClick:function(){return b("italic")},watermarkTool:!0},p.createElement(dW,{size:20}))),r))};H4.defaultProps={children:null};var FZ=function(t){var e=t.t,n=tl({name:Q.TEXT}),r=Le(n,2),i=r[0],o=r[1];return p.createElement(H4,{text:i,saveText:o,t:e})},OP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_image-tool-button",id:Q.IMAGE,label:r("imageTool"),Icon:$O,onClick:e,isSelected:n})};OP.defaultProps={isSelected:!1};var $Z=$.input.withConfig({componentId:"sc-h20emh-0"})(["display:none;width:1px;height:1px;position:absolute;z-index:-1;"]),WZ=function(t,e){return p.createElement($Z,J({type:"file",ref:e},t))};const PP=j.forwardRef(WZ);var VZ=$.div.withConfig({componentId:"sc-m9ezm7-0"})(["display:flex;align-items:center;margin-left:",";flex-shrink:0;"],function(t){var e=t.noMargin;return e?"0":"12px"}),GZ=$(ea).withConfig({componentId:"sc-m9ezm7-1"})(["flex-grow:1;justify-content:center;align-items:center;"]),UZ=$(ls).withConfig({componentId:"sc-m9ezm7-2"})(["padding:8px;background-color:",";"],function(t){var e=t.theme.palette;return e[_.BackgroundStateless]}),XZ=$(ql).withConfig({componentId:"sc-m9ezm7-3"})(["border-radius:4px;"]),ZZ=$(KH).withConfig({componentId:"sc-m9ezm7-4"})(["display:flex;align-items:center;"]),A1=function(t){var e=t.onClick,n=t.title,r=t.label,i=t.color,o=t.menuFromBtn,a=t.menuItems,u=t.menuPosition,c=u===void 0?"bottom":u,d=t.disabled,h=d!==void 0&&d,m=t.className,v=t.menuStyle,C=t.wrapperStyle,w=t.buttonRef,x=t.noMargin,P=Qe(),b=P.t,E=j.useRef(!0),k=j.useState(null),T=Le(k,2),L=T[0],A=T[1],M="sm",z=a.filter(Boolean),D=1<z.length,B=function(V){E.current&&A(V.currentTarget)},X=function(){E.current&&A(null)},G=function(V){typeof V=="function"&&V(),X()};return j.useEffect(function(){return E.current=!0,function(){E.current=!1}},[]),p.createElement(p.Fragment,null,p.createElement(VZ,{className:"".concat(m,"-wrapper"),style:C,ref:w,noMargin:x},p.createElement(GZ,{className:"".concat(m,"-button"),color:i,size:M,title:n,onClick:h?void 0:function(ne){var ve;return o&&D?void B(ne):void(typeof e=="function"?e():(ve=z[0])!==null&&ve!==void 0&&ve.onClick&&z[0].onClick())},disabled:h},r||b("saveAs"))),D&&p.createElement(UZ,{className:"".concat(m,"-menu"),anchorEl:L,onClose:X,open:!0,style:v,position:c},a.map(function(V){return V&&p.createElement(XZ,{className:"".concat(m,"-menu-item"),key:V.key,active:V.isActive,onClick:function(){return G(V.onClick)},size:M},V.icon&&p.createElement(ZZ,{size:M},typeof V.icon=="string"?p.createElement("span",{dangerouslySetInnerHTML:{__html:V.icon}}):p.createElement(V.icon,null)),p.createElement(f4,null,V.label))})))};A1.defaultProps={title:"",label:"",color:"primary",menuFromBtn:!1,noMargin:!1,menuPosition:"bottom",onClick:void 0,disabled:!1,menuStyle:void 0,wrapperStyle:void 0,buttonRef:void 0};var F4=function(t){var e=t.image,n=t.saveImage,r=t.children,i=t.t;return p.createElement(oa,{className:"FIE_image-tool-options",annotation:e,updateAnnotation:n,t:i,hideFillOption:!0},r)};F4.defaultProps={children:null};var YZ=$.div.withConfig({componentId:"sc-dqni47-0"})(["background:",";box-shadow:0px 1px 2px ",";border-radius:4px;padding:8px;overflow-y:auto;max-height:350px;max-width:300px;"],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.theme;return e.palette["light-shadow"]}),KZ=$.div.withConfig({componentId:"sc-dqni47-1"})(["display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;margin:4px;padding:4px;cursor:pointer;border-radius:4px;border:2px solid ",";user-select:none;:hover{border-color:",";}img{width:100%;height:100%;object-fit:contain;}"],function(t){var e=t.theme;return e.palette["bg-primary-active"]},function(t){var e=t.theme;return e.palette["accent-primary-active"]}),kP=function(t){var e=t.gallery,n=t.anchorEl,r=t.onClose,i=t.onSelect;return p.createElement(_O,{className:"FIE_image-tool-gallery",anchorEl:n,open:!!n,position:"top",onClick:r,overlay:!0},p.createElement(YZ,null,e.map(function(o){var a=o.originalUrl,u=o.previewUrl;return p.createElement(KZ,{key:a,onClick:function(){return i(a)}},p.createElement("img",{src:u,alt:u,crossOrigin:"Anonymous",draggable:!1}))})))};kP.defaultProps={gallery:[],anchorEl:null};var gw=.15,qZ=function(){var t=j.useState(),e=Le(t,2),n=e[0],r=e[1],i=j.useState(null),o=Le(i,2),a=o[0],u=o[1],c=j.useRef(),d=j.useRef(),h=Qe(),m=h.shownImageDimensions,v=h.dispatch,C=h.adjustments.crop,w=C===void 0?{}:C,x=h.t,P=h.config,b=P===void 0?{}:P,E=b[Q.IMAGE],k=!E.disableUpload,T=Array.isArray(E.gallery)&&0<E.gallery.length,L=tl({name:Q.IMAGE,opacity:1},!1),A=Le(L,3),M=A[0],z=A[1],D=A[2],B=j.useRef(0),X=function(pe){var Y=w.width||m.width,de=w.height||m.height,ce=w.x||0,me=w.y||0,re=Math.min(1,Y/(pe.width+pe.width*gw),de/(pe.height+pe.height*gw));D({image:pe,x:ce+Y/2-pe.width*re/2,y:me+de/2-pe.height*re/2,width:pe.width*re,height:pe.height*re})},G=function(pe){B.current+=1,B.current===pe&&(B.current=0,r(!1))},V=function(pe){v({type:el,payload:{feedback:{message:pe,status:Gu.WARNING}}})},ne=function(){c.current&&c.current.click()},ve=function(){u(d.current)},te=j.useMemo(function(){return[k&&{key:"add-by-upload-image",label:x(n?"importing":"uploadImage"),icon:VO,onClick:n?void 0:ne},T&&{key:"add-from-gallery",label:x("fromGallery"),icon:qF,onClick:ve}]},[E,n,x]);return p.createElement(F4,{image:M,saveImage:z,t:x},p.createElement(A1,{className:"FIE_image-tool-add-option",color:"secondary",label:x("addImage"),title:x("addImageTitle"),menuPosition:"top",menuItems:te,size:"sm",style:{maxHeight:24},buttonRef:d,menuFromBtn:!0}),k&&p.createElement(PP,{ref:c,onChange:n?void 0:function(Y){if(Y.target.files){r(!0);var de=[],ce=Array.from(Y.target.files),me=ce.length;if(ce.forEach(function(ee){if(ee.type.startsWith("image/")){var ue=new Image;ue.onload=function(){X(ue),URL.revokeObjectURL(ee),G(me)},ue.onerror=function(){V(x("uploadImageError")),G(me)},ue.src=URL.createObjectURL(ee)}else de.push(ee.name),G(me)}),0<de.length){var re=1<de.length?x("areNotImages"):x("isNotImage");V("".concat(de.join(", ")," ").concat(re," ").concat(x("toBeUploaded"),"."))}}Y.target.value=""},disabled:n,multiple:!0}),T&&p.createElement(kP,{gallery:E.gallery,onSelect:function(Y){r(!0);var de=new Image;de.onload=function(){X(de),G(1)},de.onerror=function(){V(x("uploadImageError")),G(1)},de.crossOrigin="Anonymous",de.src=Y},onClose:function(){u(null)},anchorEl:a}))},_P=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_rect-tool-button",id:Q.RECT,label:r("rectangleTool"),Icon:GF,onClick:e,isSelected:n})};_P.defaultProps={isSelected:!1};var mw=0,vw=150,QZ=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,i=e.cornerRadius;return p.createElement(ol,null,p.createElement(Qt,null,r("cornerRadius")),p.createElement(Nn,{annotation:"px",onChange:function(a){n({cornerRadius:_n(a,mw,vw)})},value:i,min:mw,max:vw}))},JZ=[{titleKey:"cornerRadius",name:"corner-radius",Icon:U$}],eY=S({},"corner-radius",QZ),tY=function(t){var e=t.t,n=tl({name:Q.RECT}),r=Le(n,2),i=r[0],o=r[1];return p.createElement(oa,{className:"FIE_rect-tool-options",moreOptionsPopupComponentsObj:eY,morePoppableOptionsPrepended:JZ,annotation:i,updateAnnotation:o,t:e})},TP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_ellipse-tool-button",id:Q.ELLIPSE,label:r("ellipseTool"),Icon:WO,onClick:e,isSelected:n})};TP.defaultProps={isSelected:!1};var nY=function(t){var e=t.t,n=tl({name:Q.ELLIPSE}),r=Le(n,2),i=r[0],o=r[1];return p.createElement(oa,{className:"FIE_ellipse-tool-options",annotation:i,updateAnnotation:o,t:e})},IP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_pen-tool-button",id:Q.PEN,label:r("penTool"),Icon:bV,onClick:e,isSelected:n})};IP.defaultProps={isSelected:!1};function yw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function im(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?yw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):yw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var xa={passive:!0},rY=function(t){var e=t.t,n=Qe(),r=n.dispatch,i=n.designLayer,o=n.previewGroup,a=n.config,u=tl(im(im(im({},a.annotationsCommon),a[Q.PEN]),{},{name:Q.PEN}),!1),c=Le(u,3),d=c[0],h=c[1],m=c[2],v=j.useRef(null),C=j.useRef({points:[],moved:!1,id:""}),w=j.useCallback(function(){var E=Xb(v.current.content),k=Bh(o,E);return[k.offsetX-(i.attrs.xPadding||0),k.offsetY-(i.attrs.yPadding||0)]},[i]),x=j.useCallback(function(){C.current.moved?(C.current.points=C.current.points.concat(w()),r({type:Fl,payload:{id:C.current.id,points:C.current.points,dismissHistory:!0}})):(C.current={moved:!0,id:w1(Q.PEN),points:[].concat(en(C.current.points),en(w()))},m({id:C.current.id,name:Q.PEN,points:C.current.points}))},[w]),P=j.useCallback(function(){C.current.id&&a[Q.PEN].selectAnnotationAfterDrawing&&r({type:qu,payload:{annotationId:C.current.id}}),C.current=null,v.current.off("mousemove touchmove",x),v.current.off("mouseleave touchcancel",P),document.removeEventListener("mouseup",P,xa),document.removeEventListener("touchend",P,xa),document.removeEventListener("mouseleave",P,xa),document.removeEventListener("touchcancel",P,xa)},[x]),b=j.useCallback(function(E){E.target.attrs.draggable||(E.evt.preventDefault(),C.current={points:w()},v.current.on("mousemove touchmove",x),v.current.on("mouseleave touchcancel",P),document.addEventListener("mouseup",P,xa),document.addEventListener("touchend",P,xa),document.addEventListener("mouseleave",P,xa),document.addEventListener("touchcancel",P,xa))},[w,x,P]);return j.useEffect(function(){return v.current=i==null?void 0:i.getStage(),v.current&&v.current.on("mousedown touchstart",b),function(){v.current&&v.current.off("mousedown touchstart",b)}},[i]),p.createElement(oa,{className:"FIE_pen-tool-options",annotation:d,updateAnnotation:h,t:e,hidePositionField:!0,hideFillOption:!0})},LP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_line-tool-button",id:Q.LINE,label:r("lineTool"),Icon:BF,onClick:e,isSelected:n})};LP.defaultProps={isSelected:!1};var iY=function(t){var e=t.t,n=tl({name:Q.LINE}),r=Le(n,2),i=r[0],o=r[1];return p.createElement(oa,{className:"FIE_line-tool-options",annotation:i,updateAnnotation:o,t:e,hidePositionField:!0,hideFillOption:!0})},AP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_arrow-tool-button",id:Q.ARROW,label:r("arrowTool"),Icon:EW,onClick:e,isSelected:n})};AP.defaultProps={isSelected:!1};var oY=function(t){var e=t.t,n=tl({name:Q.ARROW}),r=Le(n,2),i=r[0],o=r[1];return p.createElement(oa,{className:"FIE_arrow-tool-options",annotation:i,updateAnnotation:o,t:e,hidePositionField:!0,hideFillOption:!0})},MP=function(t){var e=t.selectTool,n=t.isSelected,r=t.t;return p.createElement(Dn,{className:"FIE_polygon-tool-button",id:Q.POLYGON,label:r("polygonTool"),Icon:rW,onClick:e,isSelected:n})};MP.defaultProps={isSelected:!1};var ww=3,Cw=25,aY=function(t){var e=t.annotation,n=t.updateAnnotation,r=t.t,i=e.sides;return p.createElement(ol,null,p.createElement(Qt,null,r("sides")),p.createElement(Nn,{annotation:"",onChange:function(a){n({sides:_n(a,ww,Cw)})},value:i,min:ww,max:Cw}))},lY=[{titleKey:"sides",name:"sides-number",Icon:aW}],sY=S({},"sides-number",aY),uY=function(t){var e=t.t,n=tl({name:Q.POLYGON}),r=Le(n,2),i=r[0],o=r[1];return p.createElement(oa,{className:"FIE_polygon-tool-options",morePoppableOptionsPrepended:lY,moreOptionsPopupComponentsObj:sY,annotation:i,updateAnnotation:o,t:e,hidePositionField:!0})};function Sw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Sw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Sw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var RP=function(t,e,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0;if(t.width&&t.height)return t;var o=S0(e,n,r),a=Ga(o.width,o.height,i);return t.width||t.height?{width:t.width||a.width,height:t.height||a.height}:a.width&&a.height&&a||xw(xw({},r),Ga(r.width,r.height,i))},cY=$.div.withConfig({componentId:"sc-17otqpz-0"})(["display:flex;justify-content:",";align-items:flex-end;gap:3px;flex-wrap:",";"],function(t){var e=t.alignment;return e||"center"},function(t){var e=t.disableWrap;return e?"no-wrap":"wrap"}),Ew=$(KO).withConfig({componentId:"sc-17otqpz-1"})(function(t){var e=t.theme;return F(["width:",";margin-top:'4px';span{color:",";",";}"],function(n){var r=n.disableWrap;return r?"100%":"100px"},e.palette[_.TextSecondary],e.typography.font[Pe.LabelMedium])}),dY=$(Ua).withConfig({componentId:"sc-17otqpz-2"})(["svg{margin-bottom:1px;}"]),fY=$(Ua).withConfig({componentId:"sc-17otqpz-3"})(["margin-left:12px;"]);function bw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ow(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?bw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):bw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var $4=function(t){var e=t.onChange,n=t.currentSize,r=t.hideResetButton,i=t.alignment,o=t.disableWrap,a=Qe(),u=a.dispatch,c=a.originalImage,d=a.resize,h=a.shownImageDimensions,m=a.adjustments,v=m.crop,C=m.rotation,w=C===void 0?0:C,x=a.theme,P=a.t,b=function(M){var z,D=M.target,B=D.name,X=D.value;if(!(1>parseFloat(X))){var G=Math.min(10*c.width,10*c.height),V=Ga(c.width,c.height,w),ne=S({},B,X&&_n(X,0,G)),ve=B==="height",te=ve?"width":"height",pe=(z=n.ratioUnlocked)!==null&&z!==void 0?z:d.ratioUnlocked;if(!pe){var Y=V.width/V.height;ne[te]=Math.round(ve?ne[B]*Y:ne[B]/Y)}if(ne[B]!==d[B]||ne[te]!==d[te]){if(typeof e=="function")return void e(ne);u({type:Au,payload:ne});var de=v.width&&v.height&&v||h,ce=Ow(Ow({},d),ne);u({type:Qu,payload:{factor:ce.width&&ce.height?P0(de,ce):Qo,isAbsoluteZoom:!0}})}}},E=typeof d.width>"u"&&typeof d.height>"u"||c.width===d.width&&c.height===d.height,k=RP((n.width||n.height)&&n||d,v,h,c,w),T=d.manualChangeDisabled,L=typeof d.width<"u"&&!d.width,A=typeof d.height<"u"&&!d.height;return p.createElement(cY,{className:"FIE_resize-tool-options",alignment:i,disableWrap:o},p.createElement(Ew,{className:"FIE_resize-width-option",value:L?"":k.width,name:"width",onChange:T?void 0:b,inputMode:"numeric",title:P("resizeWidthTitle"),label:P("width"),inputProps:{type:"number"},size:"sm",iconEnd:"px",placeholder:"Width",disableWrap:o,disabled:T}),p.createElement(dY,{className:"FIE_resize-ratio-locker",title:P("toggleRatioLockTitle"),onClick:T?void 0:function(){return typeof e=="function"?void e({ratioUnlocked:!n.ratioUnlocked}):void u({type:Au,payload:{ratioUnlocked:!d.ratioUnlocked}})},color:"basic",size:"sm",disabled:T},n.ratioUnlocked||d.ratioUnlocked?p.createElement(p$,{size:16,color:x.palette.success}):p.createElement(c$,{size:16,color:x.palette.error})),p.createElement(Ew,{className:"FIE_resize-height-option",value:A?"":k.height,name:"height",onChange:T?void 0:b,inputMode:"numeric",title:P("resizeHeightTitle"),label:P("height"),inputProps:{type:"number"},size:"sm",iconEnd:"px",placeholder:"Height",disableWrap:o,disabled:T}),!r&&p.createElement(fY,{className:"FIE_resize-reset-button",size:"sm",color:"basic",onClick:E||T?void 0:function(){u({type:Au,payload:{width:void 0,height:void 0,ratioUnlocked:!1}});var z=v.width&&v.height&&v||h;u({type:Qu,payload:{factor:P0(z,z)}})},disabled:E||T},p.createElement(NO,null)))};$4.defaultProps={onChange:void 0,currentSize:{},hideResetButton:!1,alignment:"center",disableWrap:!1};var pY=$.div.withConfig({componentId:"sc-fvaj5j-0"})(["display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;overflow:hidden;",";"],function(t){var e=t.noWrap;return e?"flex-wrap: nowrap;":""}),Pw=$.div.withConfig({componentId:"sc-fvaj5j-1"})(["margin-bottom:8px;"]),hY=$.div.withConfig({componentId:"sc-fvaj5j-2"})(function(t){var e=t.theme;return"\n    padding: 6px 4px;\n    border: 1px solid ".concat(e.palette["borders-secondary"],";\n    width: fit-content;\n    height: 32px;\n    border-radius: 2px;\n    overflow: hidden;\n    cursor: pointer;\n    border-radius: 4px;\n\n    :hover {\n      background: ").concat(e.palette["bg-primary-active"],";\n    }\n\n    &[aria-selected='true'] {\n      background: ").concat(e.palette["bg-primary-active"],";\n      border-color: ").concat(e.palette["accent-primary-active"],";\n    }\n\n    img {\n      max-width: 100%;\n      max-height: 100%;\n    }\n  ")}),zP=function(t){var e=t.addImgWatermark,n=t.loadAndSetWatermarkImg,r=t.style,i=Qe(),o=i.config,a=i.annotations,u=i.dispatch,c=i.t,d=j.useMemo(function(){var w;return(w=(a[Va]||{}).image)===null||w===void 0?void 0:w.src},[a[Va]]),h=function(w){var x=w.currentTarget.children[0];if(x.complete){if(!x.naturalWidth)return void u({type:el,payload:{feedback:{message:c("mutualizedFailedToLoadImg"),duration:2e3}}});e(x)}},m=o[Q.WATERMARK]||{},v=m.gallery,C=v===void 0?[]:v;return C.length===0?null:p.createElement(I1,{className:"FIE_watermark-gallery",style:r},C.map(function(w){var x=(w==null?void 0:w.url)||w,P=(w==null?void 0:w.previewUrl)||x;return p.createElement(hY,{className:"FIE_watermark-selected-item",onClick:function(E){return x===P?h(E):n(x)},key:x,"aria-selected":x===d},p.createElement("img",{src:P,alt:"Failed to load.",crossOrigin:"Anonymous",draggable:!1}))}))};zP.defaultProps={style:void 0};var gY=function(t){var e=t.watermark,n=t.saveWatermark,r=t.t,i=j.useState(null),o=Le(i,2),a=o[0],u=o[1],c=e.padding||0;return p.createElement(p.Fragment,null,p.createElement(Fa,{className:"FIE_watermark-padding-triggerer",title:r("padding"),onClick:function(h){u(h.currentTarget)},active:a},p.createElement(tW,{size:20})),p.createElement(ls,{className:"FIE_watermark-padding-popup",anchorEl:a,open:!!a,onClose:function(){u(null)},position:"top"},p.createElement(k0,null,p.createElement(Qt,null,r("padding")),p.createElement(ol,null,p.createElement(Nn,{annotation:"px",onChange:function(h){n({padding:_n(h,0,100)})},value:c,noMargin:!0}),p.createElement(xP,null,"".concat(c,"px"))))))};function kw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fo(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?kw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):kw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var _w=.33,qs="watermark",mY=function(){var t=Qe(),e=t.annotations,n=t.shownImageDimensions,r=t.selectionsIds,i=t.config,o=t.dispatch,a=t.t,u=t.adjustments.crop,c=u===void 0?{}:u,d=Ki(),h=j.useState(!1),m=Le(h,2),v=m[0],C=m[1],w=j.useRef(),x=i[Q.WATERMARK],P=j.useMemo(function(){return e[qs]},[e[qs]]),b=c.width||n.width,E=c.height||n.height,k=c.x||0,T=c.y||0,L=x.textScalingRatio||_w,A=x.imageScalingRatio||_w,M=function(V){var ne=V.width/V.height,ve={};if(E>b){var te=E*A/V.height;ve.height=V.height*te,ve.width=ve.height*ne}else{var pe=b*A/V.width;ve.width=V.width*pe,ve.height=ve.width/ne}var Y=fo(fo(fo(fo({},i.annotationsCommon),i[Q.IMAGE]),ve),{},{padding:1,image:V,x:k+b/2-ve.width/2,y:T+E/2-ve.height/2,id:qs,name:Q.IMAGE,replaceCurrent:!0});o({type:Fl,payload:Y})},z=function(V){o({type:Fl,payload:fo(fo({},typeof V=="function"?V(P):V),{},{id:qs})})},D=function(V){o({type:el,payload:{feedback:{message:V,status:Gu.WARNING}}})},B=function(V,ne){if(V){C(!0);var ve=new Image;ve.onload=function(){M(ve),ne&&URL.revokeObjectURL(V),C(!1)},ve.onerror=function(){D(a("mutualizedFailedToLoadImg")),ne&&URL.revokeObjectURL(V),C(!1)},ve.src=V}};j.useEffect(function(){P&&(o({type:V4}),o({type:qu,payload:{annotationId:"watermark"}}))},[P]),j.useEffect(function(){P&&(r.length===0||r[0].id!==qs)&&o({type:qu,payload:{annotationId:"watermark"}})},[r]);var X=[(!i.useCloudimage||typeof x.onUploadWatermarkImgClick=="function")&&{key:"upload-watermark",label:a("uploadWatermark"),icon:mW,onClick:function(){if(typeof x.onUploadWatermarkImgClick=="function"){var ne=x.onUploadWatermarkImgClick(B);return void(ne instanceof Promise&&ne.then(function(){var ve=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},te=ve.url,pe=ve.revokeObjectUrl;return B(te,pe!==void 0&&pe)}))}w.current&&w.current.click()}},!x.hideTextWatermark&&{key:"add-text-watermark",label:a("addWatermarkAsText"),icon:e$,onClick:function(){var ne={height:E*L,width:b*L},ve=fo(fo(fo(fo({},i.annotationsCommon),i[Q.TEXT]),ne),{},{padding:1,x:k+b/2-ne.width/2,y:T+E/2-ne.height/2,fill:"#000000",id:qs,name:Q.TEXT,replaceCurrent:!0});o({type:Fl,payload:ve})}}],G=function(){return p.createElement(gY,{watermark:P,saveWatermark:z,t:a})};return p.createElement("div",{className:"FIE_watermark-tool-wrapper"},(P==null?void 0:P.name)===Q.TEXT&&p.createElement(Pw,{className:"FIE_watermark-options-wrapper"},p.createElement(H4,{text:P,saveText:z,t:a},G())),(P==null?void 0:P.name)===Q.IMAGE&&p.createElement(Pw,{className:"FIE_watermark-options-wrapper"},p.createElement(F4,{image:P,saveImage:z,t:a},G())),p.createElement(pY,{className:"FIE_watermark-add-wrapper",noWrap:!0},p.createElement(A1,{className:"FIE_watermark-add",color:"secondary",label:function(){return d?a("plus"):X[0]?a("addWatermark"):a("addTextWatermark")}(),title:a("addWatermarkTitle"),menuPosition:"top",menuItems:X,menuFromBtn:!0,noMargin:!0}),p.createElement(zP,{loadAndSetWatermarkImg:B,addImgWatermark:M,style:d&&!(P==null||!P.name)?{width:"55%"}:void 0}),p.createElement(PP,{onChange:v?void 0:function(ne){if(ne.target.files){var ve=ne.target.files[0];ve.type.startsWith("image/")&&B(URL.createObjectURL(ve),!0)}ne.target.value=""},disabled:v,ref:w})))},om,nd=(om={},S(S(S(S(S(S(S(S(S(S(om,Q.CROP,{id:Q.CROP,Item:dP}),Q.ROTATE,{id:Q.ROTATE,Item:hP,ItemOptions:GX}),Q.FLIP_X,{id:Q.FLIP_X,Item:fP}),Q.FLIP_Y,{id:Q.FLIP_Y,Item:pP}),Q.BRIGHTNESS,{id:Q.BRIGHTNESS,Item:nO,ItemOptions:AX}),Q.CONTRAST,{id:Q.CONTRAST,Item:gP,ItemOptions:XX}),Q.HSV,{id:Q.HSV,Item:mP,ItemOptions:YX,hideFn:function(e){var n=e.useCloudimage;return n}}),Q.BLUR,{id:Q.BLUR,Item:vP,ItemOptions:qX}),Q.WARMTH,{id:Q.WARMTH,Item:yP,ItemOptions:JX,hideFn:function(e){var n=e.useCloudimage;return n}}),Q.FILTERS,{id:Q.FILTERS,Item:dZ}),S(S(S(S(S(S(S(S(S(S(om,Q.WATERMARK,{id:Q.WATERMARK,Item:mY}),Q.TEXT,{id:Q.TEXT,Item:SP,ItemOptions:FZ}),Q.IMAGE,{id:Q.IMAGE,Item:OP,ItemOptions:qZ}),Q.RECT,{id:Q.RECT,Item:_P,ItemOptions:tY}),Q.POLYGON,{id:Q.POLYGON,Item:MP,ItemOptions:uY}),Q.ELLIPSE,{id:Q.ELLIPSE,Item:TP,ItemOptions:nY}),Q.PEN,{id:Q.PEN,Item:IP,ItemOptions:rY}),Q.LINE,{id:Q.LINE,Item:LP,ItemOptions:iY}),Q.ARROW,{id:Q.ARROW,Item:AP,ItemOptions:oY}),Q.RESIZE,{id:Q.RESIZE,Item:$4})),Wh=S(S(S(S(S(S({},Vt.ADJUST,[Q.CROP,Q.ROTATE,Q.FLIP_X,Q.FLIP_Y]),Vt.FINETUNE,[Q.BRIGHTNESS,Q.CONTRAST,Q.HSV,Q.BLUR,Q.WARMTH]),Vt.FILTERS,[Q.FILTERS]),Vt.WATERMARK,[Q.WATERMARK]),Vt.ANNOTATE,[Q.TEXT,Q.IMAGE,Q.RECT,Q.ELLIPSE,Q.POLYGON,Q.PEN,Q.LINE,Q.ARROW]),Vt.RESIZE,[Q.RESIZE]);function Tw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Iw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Tw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Tw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var jP="SELECT_TAB",vY=function(t,e){return e.tabId===t.tabId?t:Iw(Iw({},t),{},{tabId:e.tabId,toolId:Wh[e.tabId][0],selectionsIds:[],pointerCssIcon:e.tabId===Vt.ANNOTATE?Go.DRAW:Go.DEFAULT})};function Lw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function am(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Lw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Lw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var W4="UNDO",yY=function(t){if(t.pastDesignStates&&0<t.pastDesignStates.length){var e=Uu(t),n=Db(t.pastDesignStates),r=n[0],i=n.slice(1),o=[e].concat(en(t.futureDesignStates||[]));return am(am(am({},t),r),{},{selectionsIds:[],pastDesignStates:i,futureDesignStates:o,hasUndo:0<i.length,hasRedo:!0,haveNotSavedChanges:0<i.length})}return t};function Aw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ch(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Aw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Aw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var NP="SET_FINETUNE",wY=function(t,e){return ch(ch({},t),{},{isDesignState:!e.dismissHistory,finetunes:!e.finetune||t.finetunes.includes(e.finetune)?t.finetunes:[].concat(en(t.finetunes),[e.finetune]),finetunesProps:ch(ch({},t.finetunesProps),e.finetuneProps)})},CY=["dismissHistory","replaceCurrent"];function Mw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qs(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Mw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Mw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Fl="SET_ANNOTATION",SY=function(t){var e,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=n.dismissHistory,i=n.replaceCurrent,o=se(n,CY),a=(e=o.id)!==null&&e!==void 0?e:w1(o.name),u=t.annotations[a];return u&&!Object.keys(o).some(function(c){return(o[c]||o[c]===0)&&o[c]!==u[c]})?t:Qs(Qs({},t),{},{isDesignState:!(r!==void 0&&r),annotations:Qs(Qs({},t.annotations),{},S({},a,Qs(Qs({},i!==void 0&&i?{}:u),o)))})};function Rw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function zw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Rw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Rw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var nf="CHANGE_POINTER_ICON",xY=function(t,e){return t.pointerCssIcon===e.pointerCssIcon?t:zw(zw({},t),{},{pointerCssIcon:e.pointerCssIcon})};function jw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Nw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?jw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):jw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var qu="SELECT_ANNOTATION",EY=function(t,e){if(t.selectionsIds.length===1&&t.selectionsIds[0]===e.annotationId)return t;var n;if(e.multiple){n=t.selectionsIds.filter(function(i){return i!==e.annotationId});var r=n.length!==t.selectionsIds.length;r||n.push(e.annotationId)}else n=[e.annotationId];return Nw(Nw({},t),{},{selectionsIds:n})};function Dw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Bw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Dw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Dw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var V4="CLEAR_ANNOTATIONS_SELECTIONS",bY=function(t){return t.selectionsIds.length===0?t:Bw(Bw({},t),{},{selectionsIds:[]})};function Hw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Hw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Hw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Lv="TOGGLE_ORIGINAL_IMAGE_DISPLAY",OY=function(t,e){return Fw(Fw({},t),{},{isShowOriginalImage:e.isShow})};function $w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ww(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?$w(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$w(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var T0="SELECT_TOOL",PY=function(t,e){return t.toolId===e.toolId?t:Ww(Ww({},t),{},{toolId:e.toolId,selectionsIds:e.keepSelections?t.selectionsIds:[]})};function Vw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dh(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Vw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Vw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var G4="TOGGLE_FLIP",kY=function(t,e){var n="isFlipped".concat(e.direction===K3.X?"X":"Y");return dh(dh({},t),{},{isDesignState:!e.dismissHistory,adjustments:dh(dh({},t.adjustments),{},S({},n,!t.adjustments[n]))})};function Gw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Js(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Gw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var U4="SET_CROP",_Y=function(t,e){var n,r,i,o,a,u,c,d=(n=t.adjustments.crop)!==null&&n!==void 0?n:{},h={x:(r=Zt(e.x))!==null&&r!==void 0?r:d.x,y:(i=Zt(e.y))!==null&&i!==void 0?i:d.y,ratio:typeof e.ratio=="string"?e.ratio:(o=Zt(e.ratio))!==null&&o!==void 0?o:d.ratio,width:(a=Zt(e.width))!==null&&a!==void 0?a:d.width,height:(u=Zt(e.height))!==null&&u!==void 0?u:d.height,ratioTitleKey:(c=e.ratioTitleKey)!==null&&c!==void 0?c:d.ratioTitleKey,ratioGroupKey:e.ratioGroupKey,ratioFolderKey:e.ratioFolderKey,noEffect:e.noEffect};return d.x===h.x&&d.y===h.y&&(d.width===h.width||h.width===Zt(t.shownImageDimensions.width)&&!d.width!==null&&h.ratio!==qd)&&(d.height===h.height||h.height===Zt(t.shownImageDimensions.height)&&d.height!==null&&h.ratio!==qd)&&d.ratio===h.ratio&&d.ratioTitleKey===h.ratioTitleKey&&d.ratioGroupKey===h.ratioGroupKey&&d.ratioFolderKey===h.ratioFolderKey?t:Js(Js({},t),{},{isDesignState:!e.dismissHistory,adjustments:Js(Js({},t.adjustments),{},{crop:Js(Js({},d),h)})})};function Uw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fh(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Uw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Uw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var DP="CHANGE_ROTATION",TY=function(t,e){return t.adjustments.rotation===e.rotation?t:fh(fh({},t),{},{isDesignState:!e.dismissHistory,adjustments:fh(fh({},t.adjustments),{},{rotation:e.rotation})})};function Xw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Zw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Xw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Xw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var IY=function(t,e,n,r){if(t.factor===Qo)return{x:0,y:0,factor:Qo};var i=t.factor>e.factor,o={x:(t.x-e.x||0)/e.factor,y:(t.y-e.y||0)/e.factor},a={x:t.x-o.x*t.factor,y:t.y-o.y*t.factor};if(i&&e.factor===1||(a.x=Math.min(0,Math.max(a.x,n*(1-e.factor))),a.y=Math.min(0,Math.max(a.y,r*(1-e.factor)))),1>t.factor){var u=n-n*t.factor,c=r-r*t.factor;a.x+=u/2,a.y+=c/2}return Zw(Zw({},a),{},{factor:t.factor})},LY=["preparedDimensions"];function Yw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function eu(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Yw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Yw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Qu="ZOOM_CANVAS",AY=.03,MY=60,RY=function(t,e){var n,r=_n(parseFloat(e.factor).toFixed(2),AY,MY);if(e.preparedDimensions){e.preparedDimensions;var i=se(e,LY);n=i}else{var o,a,u={x:e.x||e.x===0?(o=e.x)!==null&&o!==void 0?o:t.zoom.x:t.canvasWidth/2,y:e.y||e.y===0?(a=e.y)!==null&&a!==void 0?a:t.zoom.y:t.canvasHeight/2};n=IY(eu(eu({},u),{},{factor:r}),e.isAbsoluteZoom?{factor:Qo,x:null,y:null}:t.zoom,t.canvasWidth,t.canvasHeight)}return n.factor===t.zoom.factor&&n.x===t.zoom.x&&n.y===t.zoom.y?t:eu(eu({},t),{},{zoom:eu(eu({},t.zoom),n)})};function Kw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Kw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Kw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var BP="SET_CANVAS_SIZE",zY=function(t,e){if(t.canvasWidth===e.canvasWidth&&t.canvasHeight===e.canvasHeight)return t;var n=t.initialCanvasWidth,r=n===void 0?e.canvasWidth:n,i=t.initialCanvasHeight,o=i===void 0?e.canvasHeight:i,a=Cv(t.initialCanvasWidth,t.initialCanvasHeight,t.originalImage.width,t.originalImage.height),u=a*t.originalImage.width,c=a*t.originalImage.height,d=1;if(r!==e.canvasWidth||o!==e.canvasHeight){var h=e.canvasWidth/u,m=e.canvasHeight/c;d=Math.min(h,m)}return qw(qw({},t),{},{initialCanvasWidth:r,initialCanvasHeight:o,canvasWidth:e.canvasWidth,canvasHeight:e.canvasHeight,canvasScale:d})};function Qw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Jw(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?Qw(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Qw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var HP="SET_ORIGINAL_IMAGE",jY=function(t,e){return Jw(Jw({},t),{},{feedback:{},originalImage:e.originalImage,imgSrc:e.originalImage.src})};function eC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ph(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?eC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):eC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var FP="SET_SHOWN_IMAGE_DIMENSIONS",NY=function(t,e){return ph(ph({},t),{},{shownImageDimensions:ph(ph({},t.shownImageDimensions),e.shownImageDimensions),designLayer:e.designLayer||t.designLayer,previewGroup:e.previewGroup||t.previewGroup})};function tC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?tC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):tC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var $P="REMOVE_ANNOTATIONS",DY=function(t,e){var n=t.annotations,r=t.selectionsIds;return e.annotationsIds.forEach(function(i){if(r=r.filter(function(a){return a!==i}),t.designLayer&&n[i]){var o=t.designLayer.findOne("#".concat(i));o&&o.destroy(),delete n[i]}}),nC(nC({},t),{},{isDesignState:e.isDesignState||!0,annotations:n,selectionsIds:[]})};function rC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tu(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?rC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):rC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var WP="DUPLICATE_ANNOTATIONS",BY=function(t,e){var n=t.annotations,r={};return e.annotationsIds.forEach(function(i){var o=n[i];if(o){var a=w1(o.name);r[a]=tu(tu({},o),{},{id:a,x:o.x+20,y:o.y+20})}}),tu(tu({},t),{},{isDesignState:!e.dismissHistory,annotations:tu(tu({},n),r)})};function iC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function oC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?iC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):iC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var X4="ENABLE_TEXT_CONTENT_EDIT",HY=function(t,e){return oC(oC({},t),{},{textIdOfEditableContent:e.textIdOfEditableContent||null})};function aC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rd(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?aC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):aC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Au="SET_RESIZE",FY=function(t,e){var n;return rd(rd({},t),{},{isDesignState:!e.dismissHistory,resize:rd(rd(rd({},t.resize),e),{},{manualChangeDisabled:!((n=e.manualChangeDisabled)===null||n===void 0)&&n})})};function lC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?lC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):lC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var VP="SET_SAVED",$Y=function(t){return t.haveNotSavedChanges?sC(sC({},t),{},{haveNotSavedChanges:!1}):t};function uC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function WY(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?uC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):uC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var wf=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length&&arguments[2]!==void 0&&arguments[2],r=WY({},t),i=Object.keys(e);return i.forEach(function(o){var a=e[o];if(a!==void 0){var u=xr(a);if(u!=="object"||a instanceof HTMLElement||a===null||Array.isArray(a)||!t[o]||xr(t[o])!=="object")return void(r[o]=n&&Array.isArray(r[o])&&Array.isArray(a)?[].concat(en(r[o]),en(a)):a);r[o]=wf(t[o],a)}}),r},Vh="UPDATE_STATE",VY=function(t,e){var n=e&&typeof e=="function"?e(t):e;return n?wf(t,n):t};function cC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hh(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?cC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):cC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var GP="SET_LATEST_COLOR",GY=function(t,e){return hh(hh({},t),{},{latestColors:hh(hh({},t.latestColors),e.latestColors)})};function dC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?dC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):dC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var UP="SET_SHOWN_TABS_MENU",UY=function(t,e){return fC(fC({},t),{},{showTabsMenu:e.opened})},gh;const pC=(gh={},S(S(S(S(S(S(S(S(S(S(gh,HP,jY),el,Jj),H5,eN),y1,gz),nf,xY),qu,EY),V4,bY),Lv,OY),jP,vY),T0,PY),S(S(S(S(S(S(S(S(S(S(gh,Qu,RY),BP,zY),FP,NY),X4,HY),GP,GY),UP,UY),Nb,hz),NP,wY),Fl,SY),U4,_Y),S(S(S(S(S(S(S(S(S(S(gh,DP,TY),G4,kY),Au,FY),$P,DY),WP,BY),W4,yY),D5,qj),B5,Qj),VP,$Y),Vh,VY));var XY=.05,ZY=12,YY=function(){return 2*(window?Math.min(window.innerHeight,window.innerWidth)*XY:ZY)},hC=function(t,e){var n=t.x,r=t.y,i=e*Math.PI/180,o=Math.cos(i),a=Math.sin(i);return{x:n*o-r*a,y:r*o+n*a}},KY=function(t,e,n){if(!t||!e||!n&&n!==0)return{x:0,y:0,rotation:n};var r={x:-t/2,y:-e/2},i=hC(r,0),o=hC(r,n),a=o.x-i.x,u=o.y-i.y;return{x:a,y:u,rotation:n}},cs={definitions:{id:I.string.isRequired,name:I.string.isRequired,rotation:I.number,scaleX:I.number,scaleY:I.number,stroke:I.string,strokeWidth:I.number,shadowOffsetX:I.number,shadowOffsetY:I.number,shadowBlur:I.number,shadowColor:I.string,shadowOpacity:I.number,opacity:I.number},defaults:{rotation:0,scaleX:1,scaleY:1,stroke:void 0,strokeWidth:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,shadowBlur:void 0,shadowColor:void 0,shadowOpacity:void 0,opacity:1}},qY=["id","name","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","cornerRadius"];function gC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?gC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):gC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var XP=function(t){var e=t.id,n=t.name,r=t.fill,i=t.x,o=t.y,a=t.width,u=t.height,c=t.scaleX,d=t.scaleY,h=t.rotation,m=t.annotationEvents,v=t.stroke,C=t.strokeWidth,w=t.shadowOffsetX,x=t.shadowOffsetY,P=t.shadowBlur,b=t.shadowColor,E=t.shadowOpacity,k=t.opacity,T=t.cornerRadius,L=se(t,qY);return p.createElement(kb,J({id:e,name:n,rotation:h,scaleX:c,scaleY:d,stroke:v,strokeWidth:C,shadowOffsetX:w,shadowOffsetY:x,shadowBlur:P,shadowColor:b,shadowOpacity:E,fill:r,x:i,y:o,width:a,height:u,opacity:k,cornerRadius:T},m,L))};XP.defaultProps=mC(mC({},cs.defaults),{},{fill:"#000",cornerRadius:0,width:0,height:0});var QY=["id","name","fill","x","y","radiusX","radiusY","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function vC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?vC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):vC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var ZP=function(t){var e=t.id,n=t.name,r=t.fill,i=t.x,o=t.y,a=t.radiusX,u=t.radiusY,c=t.scaleX,d=t.scaleY,h=t.rotation,m=t.annotationEvents,v=t.stroke,C=t.strokeWidth,w=t.shadowOffsetX,x=t.shadowOffsetY,P=t.shadowBlur,b=t.shadowColor,E=t.shadowOpacity,k=t.opacity,T=se(t,QY);return p.createElement(_b,J({id:e,name:n,rotation:h,scaleX:c,scaleY:d,stroke:v,strokeWidth:C,shadowOffsetX:w,shadowOffsetY:x,shadowBlur:P,shadowColor:b,shadowOpacity:E,fill:r,x:i,y:o,radiusX:a,radiusY:u,offsetX:-a,offsetY:-u,opacity:k},m,T))};ZP.defaultProps=yC(yC({},cs.defaults),{},{fill:"#000",radiusX:0,radiusY:0});var JY=["id","name","fill","x","y","radius","scaleX","scaleY","rotation","sides","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function wC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function CC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?wC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):wC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var YP=function(t){var e=t.id,n=t.name,r=t.fill,i=t.x,o=t.y,a=t.radius,u=t.scaleX,c=t.scaleY,d=t.rotation,h=t.sides,m=t.annotationEvents,v=t.stroke,C=t.strokeWidth,w=t.shadowOffsetX,x=t.shadowOffsetY,P=t.shadowBlur,b=t.shadowColor,E=t.shadowOpacity,k=t.opacity,T=se(t,JY);return p.createElement(lz,J({id:e,name:n,rotation:d,scaleX:u,scaleY:c,stroke:v,strokeWidth:C,shadowOffsetX:w,shadowOffsetY:x,shadowBlur:P,shadowColor:b,shadowOpacity:E,fill:r,x:i,y:o,radius:a,offsetX:-a,offsetY:-a,sides:h,opacity:k},m,T))};YP.defaultProps=CC(CC({},cs.defaults),{},{fill:"#000",sides:3});var eK=["id","name","text","fontFamily","fontSize","fontStyle","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","letterSpacing","lineHeight","align"];function SC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?SC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):SC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Z4=function(t){var e=t.id,n=t.name,r=t.text,i=t.fontFamily,o=t.fontSize,a=t.fontStyle,u=t.fill,c=t.x,d=t.y,h=t.width,m=t.height,v=t.scaleX,C=t.scaleY,w=t.rotation,x=t.annotationEvents,P=t.stroke,b=t.strokeWidth,E=t.shadowOffsetX,k=t.shadowOffsetY,T=t.shadowBlur,L=t.shadowColor,A=t.shadowOpacity,M=t.opacity,z=t.letterSpacing,D=t.lineHeight,B=t.align,X=se(t,eK);return p.createElement(az,J({id:e,name:n,rotation:w,scaleX:v,scaleY:C,stroke:P,strokeWidth:b,shadowOffsetX:E,shadowOffsetY:k,shadowBlur:T,shadowColor:L,shadowOpacity:A,opacity:M,fill:u,text:r,fontFamily:i,fontStyle:a,fontSize:o,letterSpacing:z,lineHeight:D,align:B,x:c,y:d,width:h,height:m},x,X))};Z4.defaultProps=xC(xC({},cs.defaults),{},{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet tortor quis odio facilisis, id aliquet nulla facilisis. Etiam tincidunt tempor odio nec placerat.",fontFamily:"Arial",fontSize:14,fill:"#000",width:0,height:0,letterSpacing:void 0,lineHeight:void 0,align:"left"});var tK=function(t){var e=t.split("/");return e[e.length-1].split("?")[0]},KP=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return new Promise(function(r,i){var o=new Image;n||(o.crossOrigin="Anonymous"),o.src=t,o.name=e!=null?e:tK(t),o.onload=function(){r(o)},o.onerror=function(){i(new Error("Error in loading the image with the provided url: ".concat(t)))}})},nK=["id","name","image","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function EC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?EC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):EC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var qP=function(t){var e=t.id,n=t.name,r=t.image,i=t.x,o=t.y,a=t.width,u=t.height,c=t.scaleX,d=t.scaleY,h=t.rotation,m=t.annotationEvents,v=t.stroke,C=t.strokeWidth,w=t.shadowOffsetX,x=t.shadowOffsetY,P=t.shadowBlur,b=t.shadowColor,E=t.shadowOpacity,k=t.opacity,T=se(t,nK),L=j.useState(null),A=Le(L,2),M=A[0],z=A[1];j.useEffect(function(){typeof r=="string"&&KP(r).then(z)},[r]);var D=r instanceof HTMLImageElement;if(!D&&!M)return null;var B=D?r:M;return p.createElement(v1,J({id:e,name:n,rotation:h,scaleX:c,scaleY:d,stroke:v,strokeWidth:C,shadowOffsetX:w,shadowOffsetY:x,shadowBlur:P,shadowColor:b,shadowOpacity:E,image:B,x:i,y:o,width:a,height:u,opacity:k},T,m,T))};qP.defaultProps=bC(bC({},cs.defaults),{},{width:0,height:0});var rK=["id","name","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","tension","opacity"];function OC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function PC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?OC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):OC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Av=function(t){var e=t.id,n=t.name,r=t.scaleX,i=t.scaleY,o=t.rotation,a=t.annotationEvents,u=t.points,c=t.lineCap,d=t.stroke,h=t.strokeWidth,m=t.shadowOffsetX,v=t.shadowOffsetY,C=t.shadowBlur,w=t.shadowColor,x=t.shadowOpacity,P=t.tension,b=t.opacity,E=se(t,rK);return p.createElement(oz,J({id:e,name:n,rotation:o,scaleX:r,scaleY:i,stroke:d,strokeWidth:h,shadowOffsetX:m,shadowOffsetY:v,shadowBlur:C,shadowColor:w,shadowOpacity:x,points:u,lineCap:c,tension:P,hitStrokeWidth:20,x:0,y:0,opacity:b},a,E))};Av.defaultProps=PC(PC({},cs.defaults),{},{stroke:"#000000",strokeWidth:1,lineCap:"butt",annotationEvents:{},tension:void 0});var iK=["id","name","fill","pointerLength","pointerWidth","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];function kC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _C(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?kC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):kC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var QP=function(t){var e=t.id,n=t.name,r=t.fill,i=t.pointerLength,o=t.pointerWidth,a=t.scaleX,u=t.scaleY,c=t.rotation,d=t.annotationEvents,h=t.points,m=t.lineCap,v=t.stroke,C=t.strokeWidth,w=t.shadowOffsetX,x=t.shadowOffsetY,P=t.shadowBlur,b=t.shadowColor,E=t.shadowOpacity,k=t.opacity,T=se(t,iK);return p.createElement(sz,J({id:e,name:n,rotation:c,scaleX:a,scaleY:u,stroke:v,strokeWidth:C,shadowOffsetX:w,shadowOffsetY:x,shadowBlur:P,shadowColor:b,shadowOpacity:E,fill:r,x:0,y:0,points:h,pointerLength:i,pointerWidth:o,lineCap:m,opacity:k},d,T))};QP.defaultProps=_C(_C({},cs.defaults),{},{stroke:"#000000",strokeWidth:6,fill:void 0,lineCap:"butt",pointerLength:void 0,pointerWidth:void 0});var oK=S(S(S(S(S(S(S(S({},Q.RECT,XP),Q.ELLIPSE,ZP),Q.POLYGON,YP),Q.TEXT,Z4),Q.IMAGE,qP),Q.LINE,Av),Q.ARROW,QP),Q.PEN,Av),aK=function(t){var e=t.annotation,n=t.annotationEvents,r=t.selectionsIds,i=oK[e.name];return i?p.createElement(i,J({key:e.id,annotationEvents:n,draggable:r.includes(e.id)},e)):null};const lK=j.memo(aK);var sK=function(){var t=Qe(),e=t.annotations,n=e===void 0?{}:e,r=t.selectionsIds,i=r===void 0?[]:r,o=xN();return j.useMemo(function(){return Object.values(n).map(function(a){return p.createElement(lK,{key:a.id,annotation:a,annotationEvents:o,selectionsIds:i})})},[n,o,i])},uK=function(t,e){return p.createElement(iz,J({ref:e},t))};const cK=j.forwardRef(uK);function TC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function lm(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?TC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):TC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var dK=YY(),fK=10,pK=function(){var t,e,n,r,i=j.useRef(),o=Qe(),a=o.initialCanvasWidth,u=o.initialCanvasHeight,c=o.canvasWidth,d=o.canvasHeight,h=o.dispatch,m=o.toolId,v=o.canvasScale,C=o.originalImage,w=C===void 0?{}:C,x=o.finetunes,P=x===void 0?[]:x,b=o.finetunesProps,E=b===void 0?{}:b,k=o.filter,T=k===void 0?null:k,L=o.adjustments,A=L===void 0?{}:L,M=A.rotation,z=M===void 0?0:M,D=A.crop,B=D===void 0?{}:D,X=A.isFlippedX,G=A.isFlippedY,V=o.resize,ne=j.useRef(),ve=j.useRef(),te=m===Q.CROP,pe=j.useMemo(function(){return T?[].concat(en(P),[T]):P},[P,T]),Y=j.useMemo(function(){var Ct=Math.max(fK,w.width-dK),qe=w.width/w.height;return{width:Ct,height:Ct/qe}},[w]),de=j.useMemo(function(){return Ga(w.width,w.height,z)},[w,z]),ce=j.useMemo(function(){return Cv(a,u,w.width,w.height)},[w,a,u]),me=j.useMemo(function(){return{width:Y.width*ce,height:Y.height*ce}},[Y,ce]),re=V.width&&!te?V.width/((t=(e=B.width)!==null&&e!==void 0?e:me.width)!==null&&t!==void 0?t:de.width):1,ee=V.height&&!te?V.height/((n=(r=B.height)!==null&&r!==void 0?r:me.height)!==null&&n!==void 0?n:de.height):1,ue=c/(2*v)-me.width*re/2,Ee=d/(2*v)-me.height*ee/2,W=c/(2*v)-me.width/2,Se=d/(2*v)-me.height/2,ae=j.useMemo(function(){return{x:Math.round(ue),y:Math.round(Ee),abstractX:Math.round(W),abstractY:Math.round(Se),width:me.width,height:me.height,scaledBy:v}},[v,ue,Ee,W,Se,me]),ze=j.useCallback(function(){ne.current?ne.current.cache():setTimeout(ze,0)},[]),Ie=Ga(ae.width,ae.height,z),xe=te?1:Cv(ae.width,ae.height,Ie.width,Ie.height);if(j.useEffect(function(){return w&&ze(),function(){var Ct;(Ct=ne.current)===null||Ct===void 0||Ct.clearCache()}},[w]),j.useEffect(function(){ae&&h({type:FP,payload:{shownImageDimensions:ae,designLayer:i.current,previewGroup:ve.current}})},[ae]),!ue||!Ee||!ae)return null;var ye=KY(B.x,B.y,z),Ge=ue+(!te&&B.width?(X?-1:1)*(ae.width/2-B.x-B.width/2+ye.x)*re:0),Ze=Ee+(!te&&B.height?(G?-1:1)*(ae.height/2-B.y-B.height/2+ye.y)*ee:0),Ve=te?W:Ge,ot=te?Se:Ze,$e=(X?-1:1)*(te?1:re)*xe,dt=(G?-1:1)*(te?1:ee)*xe;return p.createElement(Y3,{id:cz,ref:i,xPadding:Ve,yPadding:ot,offsetX:me.width/2,offsetY:me.height/2,x:me.width*re/2+Ve,y:me.height*ee/2+ot,scaleX:$e,scaleY:dt,rotation:te?0:z,clipFunc:function(qe){var St,At=te&&!((St=i.current)!==null&&St!==void 0&&(St=St.attrs)!==null&&St!==void 0&&St.isSaving),ft=At||B.noEffect?lm(lm({},ae),{},{x:0,y:0}):{width:B.width||ae.width,height:B.height||ae.height,x:B.x||0,y:B.y||0};pz(qe,lm({ratio:B.ratio},ft),At),i.current&&i.current.setAttrs({clipX:ft.x,clipY:ft.y,clipWidth:ft.width,clipHeight:ft.height})}},p.createElement(v1,J({id:Ab,image:w,width:me.width,height:me.height,offsetX:me.width/2,offsetY:me.height/2,x:me.width/2,y:me.height/2,listening:!1,filters:pe,ref:ne},E)),p.createElement(sK,null),p.createElement(cK,{ref:ve}))},hK=function(t,e){return Zt(t)===Zt(e)};function IC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gK(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?IC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):IC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var mK=function(t,e){var n=e.width-(2*t.radiusX||t.width),r=e.height-(2*t.radiusY||t.height);return{x:Zt(Math.min(Math.max(t.x,0),n)),y:Zt(Math.min(Math.max(t.y,0),r))}},vK=function(t,e,n){var r=t.split("-"),i=Le(r,2),o=i[0],a=i[1],u={x:0,y:0};return o==="center"?u.y=e.height/2-n.height/2:o==="bottom"&&(u.y=e.height-n.height),a==="center"?u.x=e.width/2-n.width/2:a==="right"&&(u.x=e.width-n.width),u},sm=function(t,e,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:{},o={x:Zt(n.abstractX*n.scaledBy),y:Zt(n.abstractY*n.scaledBy),width:Zt(n.width*n.scaledBy),height:Zt(n.height*n.scaledBy)},a=gK({},e);if(e.x<o.x&&(a.x=o.x,a.width=t.x-o.x+t.width),e.y<o.y&&(a.y=o.y,a.height=t.y-o.y+t.height),a.x+a.width>o.x+o.width&&(a.width=o.x+o.width-a.x),a.y+a.height>o.y+o.height&&(a.height=o.y+o.height-a.y),typeof r=="number"&&!hK(a.width/a.height,r)){var u=a.height*r,c=a.width/r;Zt(a.y+c)<=o.y+o.height?a.height=c:a.width=u}if((i.minWidth&&a.width<=i.minWidth||i.maxWidth&&a.width>=i.maxWidth)&&(a.width=_n(a.width,i.minWidth,i.maxWidth),a.x=t.x,a.y=t.y,typeof r=="number"&&(a.height=a.width/r)),(i.minHeight&&e.height<=i.minHeight||i.maxHeight&&e.height>=i.maxHeight)&&(a.height=_n(a.height,i.minHeight,i.maxHeight),a.x=t.x,a.y=t.y,typeof r=="number"&&(a.width=a.height*r)),typeof i.lockCropAreaAt=="string"){var d=vK(i.lockCropAreaAt,o,a),h=d.x,m=d.y;a.x=h,a.y=m}return a};function LC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Yr(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?LC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):LC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var AC=!1,mh={width:200,height:100},yK=function(){var t=Qe(),e=t.dispatch,n=t.theme,r=t.designLayer,i=t.originalImage,o=t.shownImageDimensions,a=t.adjustments,u=a===void 0?{}:a,c=u.crop,d=c===void 0?{}:c,h=u.isFlippedX,m=u.isFlippedY,v=t.resize,C=v===void 0?{}:v,w=t.config,x=t.t,P=j.useRef(),b=j.useRef(),E=j.useRef(),k=j.useRef(),T=w[Q.CROP],L=j.useMemo(function(){var W;return Yr(Yr({},T),{},{lockCropAreaAt:(W=d.lockCropAreaAt)!==null&&W!==void 0?W:T==null?void 0:T.lockCropAreaAt})},[d.lockCropAreaAt,T]),A=L.lockCropAreaAt,M=d.ratio||L.ratio,z=M===zb,D=M===as,B=function(){return M===qd?i.width/i.height:M},X=function(W,Se){var ae=W.width,ze=W.height,Ie=W.x,xe=W.y,ye={x:h?o.width-Ie-ae:Ie,y:m?o.height-xe-ze:xe,width:ae,height:ze},Ge=d.width>=C.width&&d.height>=C.height;C.width&&C.height&&(ae<C.width||ze<C.height)&&Ge&&e({type:el,payload:{feedback:{message:x("cropSizeLowerThanResizedWarning"),status:Gu.WARNING}}}),e({type:U4,payload:Yr(Yr(Yr({},d),ye),{},{dismissHistory:Se})})},G=function(W,Se){var ae,ze;b.current&&P.current&&b.current.nodes([P.current]);var Ie=k.current,xe={width:W,height:Se,x:(ae=d.x)!==null&&ae!==void 0?ae:0,y:(ze=d.y)!==null&&ze!==void 0?ze:0};X(sm(xe,xe,Yr(Yr({},Ie),{},{abstractX:0,abstractY:0}),!(z||D)&&B(),L),!0)};if(j.useEffect(function(){return r&&b.current&&P.current&&(E.current&&E.current.cache(),b.current.nodes([P.current])),function(){E.current&&E.current.clearCache()}},[r,i,o]),j.useEffect(function(){if(k.current){var W,Se,ae=k.current;G((W=d.width)!==null&&W!==void 0?W:ae.width,(Se=d.height)!==null&&Se!==void 0?Se:ae.height)}},[M]),j.useEffect(function(){b.current&&P.current&&k.current&&d.width&&d.height&&G(d.width,d.height)},[L,o.width,o.height]),j.useEffect(function(){if(o&&(k.current=o,!AC&&M&&o.x&&o.width)){var W,Se;G((W=d.width)!==null&&W!==void 0?W:o.width,(Se=d.height)!==null&&Se!==void 0?Se:o.height),AC=!0}},[o]),!r)return null;var V,ne=(A||d.noEffect)&&[]||(z||D?void 0:["top-left","bottom-left","top-right","bottom-right"]),ve=function(W){var Se=1<arguments.length&&arguments[1]!==void 0&&arguments[1];W.target&&X({width:W.target.width()*W.target.scaleX(),height:W.target.height()*W.target.scaleY(),x:W.target.x(),y:W.target.y()},Se)};if(!d.width&&!d.height){var te=1>o.scaledBy?o.scaledBy:1,pe=Yr(Yr({},o),{},{width:o.width/te,height:o.height/te});V=sm(pe,Yr(Yr({},pe),{},{x:0,y:0}),Yr(Yr({},pe),{},{abstractX:0,abstractY:0}),!(z||D)&&B(),L)}else V=d;var Y=V,de=Y.x,ce=de===void 0?0:de,me=Y.y,re=me===void 0?0:me,ee=Y.width,ue=Y.height,Ee={x:h?o.width-ce-ee:ce,y:m?o.height-re-ue:re,ref:P,fill:"#FFFFFF",scaleX:1,scaleY:1,globalCompositeOperation:"destination-out",onDragEnd:A?void 0:ve,onDragMove:A?void 0:function(Se){var ae=Se.target;ae.setAttrs(mK(ae.attrs,k.current))},onTransformEnd:A?void 0:ve,draggable:!A};return p.createElement(p.Fragment,null,p.createElement(v1,{image:i,x:h?o.width:0,y:m?o.height:0,width:o.width,height:o.height,filters:[fn.Filters.Blur,fn.Filters.Brighten],blurRadius:10,brightness:-.3,scaleX:h?-1:1,scaleY:m?-1:1,ref:E}),D?p.createElement(_b,J({},Ee,{radiusX:ee/2,radiusY:ue/2,offset:{x:-ee/2,y:-ue/2}})):p.createElement(kb,J({},Ee,{width:d.noEffect?0:ee,height:d.noEffect?0:ue})),d.noEffect&&p.createElement(Z4,{name:"Text",id:"no-preview-text-node",text:x("cropItemNoEffect"),x:o.width/2-mh.width/2,y:o.height/2-mh.height/2,fontSize:20,fill:"#ffffff",stroke:"#ff0000",strokeWidth:.2,shadowColor:"#ff0000",shadowBlur:10,annotationEvents:{},align:"center",width:mh.width,height:mh.height}),p.createElement(Tb,{centeredScaling:!1,flipEnabled:!1,rotateEnabled:!1,nodes:P.current?[P.current]:[],anchorSize:14,anchorCornerRadius:7,enabledAnchors:ne,ignoreStroke:!1,anchorStroke:n.palette["accent-primary"],anchorFill:n.palette["access-primary"],anchorStrokeWidth:2,borderStroke:n.palette["accent-primary"],borderStrokeWidth:2,borderDash:[4],keepRatio:!z||!D,ref:b,boundBoxFunc:function(Se,ae){return sm(Se,ae,k.current,!(z||D)&&B(),L)}}))},wK=function(){var t,e=Qe(),n=e.selectionsIds,r=n===void 0?[]:n,i=e.theme,o=e.designLayer,a=e.dispatch,u=e.config.useCloudimage,c=j.useMemo(function(){return o!=null&&o.findOne?r.map(function(m){return o.findOne("#".concat(m))}).filter(Boolean):[]},[r]),d=function(){c.length===1&&c[0].name()===Q.TEXT&&a({type:X4,payload:{textIdOfEditableContent:c[0].id()}})},h=u?["top-left","bottom-left","top-right","bottom-right"]:void 0;return p.createElement(Tb,{id:Mb,centeredScaling:!1,rotationSnaps:[0,45,90,135,180,225,270,315],nodes:c,rotateAnchorOffset:30,anchorSize:14,anchorCornerRadius:7,padding:c.length===1&&(t=c[0].attrs.padding)!==null&&t!==void 0?t:1,ignoreStroke:!1,anchorStroke:i.palette["accent-primary"],anchorFill:i.palette["access-primary"],anchorStrokeWidth:2,borderStroke:i.palette["accent-primary"],borderStrokeWidth:2,borderDash:[4],rotateEnabled:!u,onMouseOver:function(){a({type:nf,payload:{pointerCssIcon:Go.MOVE}})},onMouseLeave:function(){a({type:nf,payload:{pointerCssIcon:Go.DRAW}})},onDblClick:d,onDblTap:d,enabledAnchors:h,flipEnabled:!u,shouldOverdrawWholeArea:!0})},CK=function(){var t=Qe(),e=t.toolId,n=t.shownImageDimensions;return p.createElement(Y3,{id:Lb,x:n.abstractX||0,y:n.abstractY||0},p.createElement(wK,null),e===Q.CROP&&p.createElement(yK,null))},SK=$.div.withConfig({componentId:"sc-1tst9ex-0"})(function(t){var e=t.theme,n=t.top,r=t.left;return"\n  position: absolute;\n  z-index: 1;\n  background: ".concat(e.palette["bg-secondary"],";\n  border-radius: 2px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-shadow: 0px 1px 2px ").concat(e.palette["light-shadow"],";\n  top: ").concat((n||0)+8,"px;\n  left: ").concat((r||0)+4,"px;\n  transform: translateX(-50%);\n  height: 32px;\n")}),xK=function(){var t=Qe(),e=t.selectionsIds,n=e===void 0?[]:e,r=t.designLayer,i=t.annotations,o=t.dispatch,a=j.useState({left:0,top:0}),u=Le(a,2),c=u[0],d=u[1],h=j.useMemo(function(){var C;return r==null||(C=r.getStage())===null||C===void 0?void 0:C.findOne("#".concat(Mb))},[r]),m=n.length,v=C1(function(){h&&d({left:(h.x()+h.width()/2)*h.scaleX(),top:(h.y()+h.height())*h.scaleY()})},0);return j.useEffect(function(){v()},[n,h,i]),m===0||!h?null:p.createElement(SK,{className:"FIE_annotation-controls-overlay",left:c.left,top:c.top},n[0]!==Va&&p.createElement(Ua,{color:"basic",size:"sm",onClick:function(){o({type:WP,payload:{annotationsIds:n}})}},p.createElement(GW,null)),p.createElement(Ua,{color:"basic",size:"sm",onClick:function(){o({type:$P,payload:{annotationsIds:n}})}},p.createElement(XW,null)))};function MC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function RC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?MC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):MC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}function EK(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zC(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}var iu=null,hd=0,bK=function(t,e){t.evt.preventDefault();var n=t.evt.touches[0],r=t.evt.touches[1];if(n&&r){var i=t.currentTarget;i.isDragging()&&i.stopDrag();var o={x:n.clientX,y:n.clientY},a={x:r.clientX,y:r.clientY};if(!iu)return void(iu=zC(o,a));var u=zC(o,a),c=EK(o,a);hd||(hd=c);var d={x:(u.x-i.x())/i.scaleX(),y:(u.y-i.y())/i.scaleX()},h=i.scaleX()*(c/hd),m=u.x-iu.x,v=u.y-iu.y,C={x:u.x-d.x*h+m,y:u.y-d.y*h+v};hd=c,iu=u,e(RC(RC({},C),{},{factor:h,preparedDimensions:!0}))}},OK=function(t){hd=0,iu=null,typeof t=="function"&&t()},PK=$.div.withConfig({componentId:"sc-3ln9py-0"})(["width:100%;position:relative;height:calc(100% - 112px - 16px);overflow:hidden;min-height:250px;padding:16px;flex-grow:1;"]),kK=$.img.withConfig({componentId:"sc-3ln9py-1"})(["max-width:98%;max-height:98%;box-shadow:0 0 0 5px rgba(0,0,0,0.1);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"]),_K=$(Ib).withConfig({componentId:"sc-3ln9py-2"})(["outline:none;background:",";"],function(t){var e=t.theme;return e.palette["bg-hover"]});function jC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function NC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?jC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):jC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var TK=.006,IK=function(t){var e=t.children;uz(!0);var n=j.useRef(),r=Qe(),i=r.dispatch,o=r.pointerCssIcon,a=r.tabId,u=r.toolId,c=r.canvasWidth,d=r.canvasHeight,h=r.canvasScale,m=r.selectionsIds,v=m===void 0?[]:m,C=r.zoom,w=C===void 0?{}:C,x=r.config,P=x.previewPixelRatio,b=x.disableZooming;fn.pixelRatio=P;var E=Qo,k=!b&&u!==Q.CROP,T=j.useState(a!==Vt.ANNOTATE&&a!==Vt.WATERMARK&&w.factor>E),L=Le(T,2),A=L[0],M=L[1],z=j.useMemo(function(){return{cursor:o===Go.DEFAULT&&a===Vt.ANNOTATE?Go.DRAW:o}},[a,o]),D=function(te){i({type:Qu,payload:te})},B=j.useCallback(function(te){var pe,Y;te.evt.preventDefault(),(pe=(Y=te.currentTarget).container)===null||pe===void 0||pe.call(Y).focus(),te.target instanceof fn.Stage&&0<v.length&&i({type:V4})},[v]),X=function(){return M(a!==Vt.ANNOTATE||a===Vt.WATERMARK)},G=function(te){(te.code==="Space"||te.key==="Control")&&!te.repeat&&w.factor>E&&k&&(te.preventDefault(),M(!0),i({type:nf,payload:{pointerCssIcon:Go.DRAG}}))},V=function(te){te.code==="Space"&&(te.preventDefault(),X())},ne=function(){n.current&&n.current.container().focus()};j.useEffect(function(){i({type:nf,payload:{pointerCssIcon:Go[A?"DRAG":"DEFAULT"]}})},[A]),j.useEffect(function(){M(a!==Vt.ANNOTATE&&a!==Vt.WATERMARK&&w.factor>E);var te;return n.current&&(te=n.current.container(),te.addEventListener("mouseenter",ne),te.addEventListener("keydown",G),te.addEventListener("keyup",V)),function(){te&&(te.removeEventListener("mouseenter",ne),te.removeEventListener("keydown",G),te.removeEventListener("keyup",V))}},[a,w.factor,E]);var ve=h*(k&&w.factor||E);return p.createElement(_K,{className:"FIE_canvas-node",tabIndex:-1,ref:n,width:c,height:d,scaleX:ve,scaleY:ve,x:k&&w.x||null,y:k&&w.y||null,zoomFactor:k&&w.factor||E,onWheel:k?function(pe){pe.evt.preventDefault();var Y=(w.factor||E)+pe.evt.deltaY*-TK,de=pe.currentTarget.getPointerPosition();D(NC(NC({},de),{},{factor:Y}))}:void 0,onTap:B,onClick:B,onTouchMove:k?function(te){return bK(te,D)}:void 0,onDragStart:function(pe){var Y;1<((Y=pe.evt.touches)===null||Y===void 0?void 0:Y.length)&&M(!1)},onTouchEnd:k?function(){OK(X)}:void 0,dragBoundFunc:function(pe){var Y=Math.min(0,Math.max(pe.x,c*(1-w.factor))),de=Math.min(0,Math.max(pe.y,d*(1-w.factor)));return{x:Y,y:de}},draggable:k&&A,onDragEnd:function(pe){pe.currentTarget.draggable()&&pe.target.nodeType.toLowerCase()==="stage"&&k&&A&&D({factor:w.factor,x:pe.target.x(),y:pe.target.y(),preparedDimensions:!0})},style:z},e)};const LK=j.memo(IK);var AK=function(){var t=W5(),e=Le(t,1),n=e[0],r=Qe(),i=j.useRef(null),o=j.useCallback(function(a){var u=a.width,c=a.height;r.dispatch({type:BP,payload:{canvasWidth:u,canvasHeight:c}})},[]);return j.useEffect(function(){n(i.current,o)},[]),p.createElement(PK,{className:"FIE_canvas-container",ref:i},!r.textIdOfEditableContent&&p.createElement(xK,null),r.isShowOriginalImage&&p.createElement(kK,{className:"FIE_original-image-compare",src:r.originalImage.src}),p.createElement(LK,null,p.createElement(sN,{overridingValue:r},p.createElement(pK,null),p.createElement(CK,null))))},MK=$.div.withConfig({componentId:"sc-etsyb6-0"})(["display:inline-block;height:",";width:",";border-radius:1px;background:",";"],function(t){return t.height},function(t){return t.width},function(t){var e=t.theme.palette;return e[_.BordersSecondary]}),Y4=function(t){var e=t.height,n=t.width;return p.createElement(MK,{height:e,width:n})};Y4.defaultProps={height:"24px",width:"1px"};var RK=$.div.withConfig({componentId:"sc-21g986-0"})(["padding:16px;box-sizing:border-box;position:relative;width:100%;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid ",";[data-phone='true'] &{padding:6px 6px 4px 6px;","}"],function(t){var e=t.theme.palette;return e[_.BordersSecondary]},function(t){var e=t.isPhoneScreen;return e&&"\n      padding: 12px 12px 0px;\n      gap: 12px;\n    "}),zK=$.div.withConfig({componentId:"sc-21g986-1"})(["display:flex;align-items:center;order:1;"]),jK=$.div.withConfig({componentId:"sc-21g986-2"})(["display:flex;align-items:center;order:3;gap:4px;"]),K4=$(Ua).withConfig({componentId:"sc-21g986-3"})(["margin:",";svg{color:",";}"],function(t){var e=t.margin;return e!=null?e:"0 4px"},function(t){var e=t.theme.palette,n=t.disabled;return n?e[_.IconsMuted]:e[_.IconsPrimary]}),NK=$.div.withConfig({componentId:"sc-21g986-4"})(["display:flex;align-items:center;gap:2px;"]),DK=$(Qt).withConfig({componentId:"sc-21g986-5"})(["flex-shrink:0;color:",";",";"],function(t){var e=t.theme.palette;return e[_.TextPlaceholder]},function(t){var e=t.theme.typography;return e.font[Pe.LabelMedium]}),Mv=$(Ua).withConfig({componentId:"sc-21g986-6"})(["padding:8px;svg{color:",";}"],function(t){var e=t.theme.palette,n=t.showBackButton;return n?e[_.IconsPrimary]:e[_.IconsMuted]}),BK=$.div.withConfig({componentId:"sc-21g986-7"})(["width:",";height:32px;display:block;width:100%;order:4;",";@media (min-width:761px){display:flex;align-items:center;justify-content:center;width:fit-content;order:2;}"],function(t){var e=t.showBackButton;return e?"318px":"384px"},function(t){var e=t.reverseDirection;return e?"flex-direction: row-reverse":""}),HK=$(Qt).withConfig({componentId:"sc-21g986-8"})(["cursor:pointer;color:",";",";"],function(t){var e=t.theme.palette;return e[_.TextPrimary]},function(t){var e=t.theme.typography;return e.font[Pe.InputMd]}),FK=$.span.withConfig({componentId:"sc-21g986-9"})(["",";"],function(t){var e=t.theme.typography;return e.font[Pe.ButtonMdEmphasis]}),$K=$(O4).withConfig({componentId:"sc-21g986-10"})(["padding:8px;z-index:111;"]);$(ea).withConfig({componentId:"sc-21g986-11"})(["padding:4px 12px;"]);var WK=$(KO).withConfig({componentId:"sc-21g986-12"})([""]),VK=$(ZU).withConfig({componentId:"sc-21g986-13"})(["margin-top:16px;"]),GK=$.div.withConfig({componentId:"sc-21g986-14"})(["width:100%;margin-top:16px;"]),UK=$.div.withConfig({componentId:"sc-21g986-15"})(["margin-top:16px;width:100%;"]),XK=$(Qt).withConfig({componentId:"sc-21g986-16"})(["margin-bottom:4px;"]),ZK=$.div.withConfig({componentId:"sc-21g986-17"})(["display:flex;gap:6px;"]),YK=$.div.withConfig({componentId:"sc-21g986-18"})(["display:flex;gap:12px;justify-content:",";"],function(t){var e=t.isPhoneScreen;return e?"space-between":"center"}),KK=$(Ua).withConfig({componentId:"sc-21g986-19"})(["@media (min-width:761px){display:none;}"]),qK=$.div.withConfig({componentId:"sc-21g986-20"})(["display:flex;gap:12px;align-items:center;"]),QK=$(QO).withConfig({componentId:"sc-kpjpf5-0"})(["width:",";max-width:unset;"],function(t){var e=t.width;return e||"300px"}),JK=$(tP).withConfig({componentId:"sc-kpjpf5-1"})(function(t){var e=t.theme,n=t.isWarning;return F(["padding-bottom:0;.SfxModalTitle-Icon{background-color:",";}.SfxModalTitle-LabelPrimary{margin-bottom:24px;",";}.SfxModalTitle-LabelSecondary{",";text-align:center;}"],n&&e.palette[_.Orange_0_1_Overlay],e.typography.font[Pe.TitleH3],e.typography.font[Pe.TextLarge])}),eq=$(JO).withConfig({componentId:"sc-kpjpf5-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),q4=function(t){var e=t.title,n=t.hint,r=t.Icon,i=t.onDone,o=t.onCancel,a=t.doneLabel,u=t.cancelLabel,c=t.isOpened,d=t.doneButtonStyle,h=t.doneButtonColor,m=h===void 0?"basic":h,v=t.cancelButtonColor,C=v===void 0?"basic":v,w=t.children,x=t.areButtonsDisabled,P=t.zIndex,b=t.className,E=t.width,k=t.isWarning;return p.createElement(QK,{className:b,open:c,onClose:o,style:{zIndex:P},onKeyUp:function(L){L.key==="Enter"&&i(L)},width:E},p.createElement(JK,{icon:p.createElement(r,{size:25}),iconShadow:!0,isWarning:k,onClose:o,primary:e,secondary:n,variant:"with-icon"}),w&&p.createElement(eP,null,w),p.createElement(eq,{align:"center"},p.createElement(ea,{color:C,onClick:o,size:"md",disabled:x},u),p.createElement(ea,{color:m,onClick:i,size:"md",warning:k,style:d,disabled:x},a)))};q4.defaultProps={hint:"",isOpened:!1,doneLabel:"Yes",cancelLabel:"No",doneButtonStyle:void 0,doneButtonColor:"basic",cancelButtonColor:"basic",children:void 0,areButtonsDisabled:!1,zIndex:void 0,className:void 0,width:"",isWarning:!1};var M1=function(t){var e=t.children,n=t.isReset,r=Qe(),i=r.t,o=r.theme,a=r.config,u=r.dispatch,c=r.isResetted,d=r.haveNotSavedChanges,h=r.config.onClose,m=j.useState(!1),v=Le(m,2),C=v[0],w=v[1];if(typeof h!="function"&&!n)return p.createElement("span",null);var x=function(){w(!1)},P=j.useCallback(function(){u({type:B5,payload:{config:a}}),x()},[a]),b=function(){n||(h(jb.CLOSE_BUTTON,d),P())};return p.createElement(p.Fragment,null,p.cloneElement(e,{onClick:c===void 0||c?b:function(){w(!0)}}),C&&p.createElement(q4,{title:i(n?"warning":"discardChanges"),hint:i(n?"changesLoseWarningHint":"discardChangesWarningHint"),isOpened:C,onCancel:x,onDone:n?P:b,Icon:function(){return p.createElement(FO,{color:o.palette.warning,size:25})},doneLabel:i("confirm"),doneButtonColor:"warning-primary",cancelLabel:i("cancel"),width:"400px",isWarning:!0}))};M1.defaultProps={isReset:!1};var tq=function(){var t=Qe(),e=t.config.onClose;return typeof e=="function"?p.createElement(p.Fragment,null,p.createElement(Y4,null),p.createElement(M1,null,p.createElement($K,{className:"FIE_topbar-close-button",color:"basic",size:"md"},p.createElement(MO,null)))):null},nq=function(t){return 0>=t||1<t?Rb:t};function DC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pr(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?DC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):DC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var rq={marginBottom:16},iq={minWidth:67,width:"fit-content"},oq={marginLeft:12},um=!0,BC=function(){var t=Qe(),e=j.useRef(),n=t.theme,r=t.dispatch,i=t.originalImage,o=t.resize,a=t.isLoadingGlobally,u=t.haveNotSavedChanges,c=t.feedback,d=t.hasUndo,h=t.t,m=t.adjustments,v=m===void 0?{}:m,C=v.crop,w=t.config,x=w.onClose,P=w.closeAfterSave,b=w.onBeforeSave,E=w.onSave,k=w.forceToPngInEllipticalCrop,T=w.defaultSavedImageName,L=w.defaultSavedImageType,A=w.defaultSavedImageQuality,M=A===void 0?Rb:A,z=w.useCloudimage,D=w.moreSaveOptions,B=w.disableSaveIfNoChanges,X=w.removeSaveButton,G=j.useState(!1),V=Le(G,2),ne=V[0],ve=V[1],te=j.useState({quality:nq(M)}),pe=Le(te,2),Y=pe[0],de=pe[1],ce=qb(),me=["jpeg","jpg","webp"].includes(Y.extension),re=c.duration===0,ee=function(){var xe=ce(Y,!1,!0),ye=e.current||E,Ge=ye(xe.imageData,xe.designState),Ze=function(){r({type:y1})};Ge instanceof Promise?Ge.finally(Ze):Ze(),e.current=null,P&&x&&x(jb.AFTER_SAVE,u)},ue=function(){r({type:H5}),ve(!1),setTimeout(ee,3)},Ee=function(){var xe=e.current||E;if(typeof xe!="function")throw new Error("Please provide onSave function handler.");return Y.name&&Y.extension?void ue():void r({type:el,payload:{feedback:{message:h("nameIsRequired")}}})},W=function(){if(!B||d){if(z){var xe=ce(Y),ye=e.current||E;return void ye(xe.imageData,xe.designState)}return e.current||typeof b!="function"||b(Y)!==!1?void ve(!0):void Ee()}},Se=function(xe,ye){if(typeof xe=="function")e.current=xe,ye();else throw new Error("onSave function callback is required as an argument to the passed function.")},ae=function(){var xe=Kb(T||i.name,k&&C.ratio===as?"png":Vu.includes(L==null?void 0:L.toLowerCase())&&L),ye=xe.name,Ge=xe.extension;de(pr(pr({},Y),{},{name:ye,extension:Ge}))};if(j.useEffect(function(){i&&ae()},[i]),j.useEffect(function(){!i||Y.name&&Y.extension||ae()},[ne]),j.useEffect(function(){de(pr(pr({},Y),{},{size:{width:o.width,height:o.height}}))},[o]),j.useEffect(function(){return um=!0,function(){um=!1}},[]),X)return null;var ze=Array.isArray(D)&&0<D.length?D.map(function(Ie,xe){return pr(pr({},Ie),{},{key:"".concat(Ie.label||xe,"-option-key"),onClick:typeof Ie.onClick=="function"?function(){return Ie.onClick(function(ye){return Se(ye,W)},function(ye){return Se(ye,ue)})}:void 0})}):[];return p.createElement(p.Fragment,null,p.createElement(A1,{className:"FIE_topbar-save",color:"primary",onClick:W,menuPosition:"bottom",menuFromBtn:!0,label:0<ze.length?h("saveAs"):h("save"),menuItems:ze,menuStyle:oq,wrapperStyle:iq,disabled:a||B&&!d||re,noMargin:!0}),ne&&p.createElement(q4,{className:"FIE_save-modal",title:h("saveAsModalTitle"),Icon:function(xe){return p.createElement(IF,J({color:n.palette["accent-primary"]},xe))},isOpened:ne,onCancel:function(){um&&ne&&(e.current=null,ve(!1))},onDone:Ee,doneLabel:h("save"),cancelLabel:h("cancel"),doneButtonColor:"primary",areButtonsDisabled:a,zIndex:11110},p.createElement(WK,{className:"FIE_save-file-name-input",value:Y.name,onChange:function(xe){var ye=xe.target.value;de(pr(pr({},Y),{},{name:ye}))},size:"sm",label:h("name"),placeholder:h("imageName"),error:!Y.name,fullWidth:!0,focusOnMount:!0}),p.createElement(VK,{className:"FIE_save-extension-selector",onChange:function(xe){return de(pr(pr({},Y),{},{extension:xe}))},value:Y.extension,label:h("format"),placeholder:h("extension"),size:"sm",fullWidth:!0},Vu.map(function(Ie){return p.createElement(ql,{key:Ie,value:Ie},Ie)})),me&&p.createElement(GK,{className:"FIE_save-quality-wrapper"},p.createElement(Qt,null,h("quality")),p.createElement(Nn,{annotation:"%",min:1,max:100,onChange:function(xe){de(pr(pr({},Y),{},{quality:_n(xe/100,.01,1)}))},value:parseInt(100*Y.quality,10),width:"100%",style:rq})),p.createElement(UK,{className:"FIE_save-resize-wrapper"},p.createElement(XK,null,h("resize")),p.createElement($4,{onChange:function(xe){de(pr(pr({},Y),{},{size:pr(pr({},Y.size),xe)}))},currentSize:(Y==null?void 0:Y.size)||{},hideResetButton:!0,alignLeft:!0,disableWrap:!0,alignment:"space-between"}))))},JP=function(t){var e=t.margin,n=Qe(),r=n.isResetted,i=n.feedback,o=n.t,a=i.duration===0;return p.createElement(M1,{isReset:!0},p.createElement(K4,{className:"FIE_topbar-reset-button",color:"basic",size:"sm",disabled:r===void 0||r||a,title:o("resetOperations"),margin:e},p.createElement(NO,null)))};JP.defaultProps={margin:void 0};var ek=function(t){var e=t.margin,n=Qe(),r=n.dispatch,i=n.hasUndo,o=i!==void 0&&i,a=n.t,u=n.feedback,c=u.duration===0,d=j.useCallback(function(){r({type:W4})},[]);return p.createElement(K4,{className:"FIE_topbar-undo-button",color:"basic",size:"sm",onClick:o?d:void 0,disabled:!o||c,title:a("undoTitle"),margin:e},p.createElement(MF,null))};ek.defaultProps={margin:void 0};var tk=function(t){var e=t.margin,n=Qe(),r=n.dispatch,i=n.hasRedo,o=i!==void 0&&i,a=n.t,u=j.useCallback(function(){r({type:D5})},[]);return p.createElement(K4,{className:"FIE_topbar-redo-button",color:"basic",size:"sm",onClick:o?u:void 0,disabled:!o,title:a("redoTitle"),margin:e},p.createElement(jF,null))};tk.defaultProps={margin:void 0};var aq=[{labelKey:"fitSize",factor:"fit"},{labelKey:"actualSize",factor:1},{label:"25%",factor:.25},{label:"50%",factor:.5},{label:"75%",factor:.75},{label:"125%",factor:1.25},{label:"170%",factor:1.7},{label:"300%",factor:3},{label:"500%",factor:5},{label:"1000%",factor:10}],HC=1.1,nk=function(t){var e=t.showBackButton,n=Qe(),r=n.dispatch,i=n.zoom,o=i===void 0?{}:i,a=n.toolId,u=n.feedback,c=n.t,d=n.shownImageDimensions,h=n.resize,m=n.originalImage,v=n.adjustments.crop,C=n.config.useZoomPresetsMenu,w=u.duration===0,x=j.useState(null),P=Le(x,2),b=P[0],E=P[1],k=function(D,B){r({type:Qu,payload:{factor:D,isAbsoluteZoom:B}})},T=function(){var D=h.width&&h.height&&h||v.width&&v.height&&v||d,B=P0(v.width&&v.height&&v||d,D);k(B||Qo,!0)},L=function(D){E(b?null:D.target)},A=function(D){if(D==="fit")return T(),void L();var B=h.width||h.height?D:Math.min(D*m.width/d.width,D*m.height/d.height);k(B,!0),L()},M=a===Q.CROP||w,z=!m||h.width||h.height?o.factor:Math.min(d.width*o.factor/m.width,d.height*o.factor/m.height);return p.createElement(NK,null,p.createElement(Mv,{onClick:function(){k(o.factor/HC)},color:"basic",title:c("zoomOutTitle"),disabled:M,showBackButton:e,className:"FIE_topbar-zoom-out-btn"},p.createElement(_W,null)),p.createElement(HK,{title:c("toggleZoomMenuTitle"),onClick:M?void 0:C&&L||T,"aria-disabled":M,className:"FIE_topbar-zoom-label"},"".concat(Zt(100*z,0),"%")),p.createElement(Mv,{onClick:function(){k(o.factor*HC)},color:"basic",title:c("zoomInTitle"),disabled:M,showBackButton:e,className:"FIE_topbar-zoom-in-btn"},p.createElement(SW,null)),p.createElement(ls,{anchorEl:b,onClose:L,open:!!b,position:"bottom",className:"FIE_topbar-zoom-menu"},aq.map(function(D){var B=D.factor,X=D.labelKey,G=D.label;return p.createElement(ql,{key:G||X,onClick:function(){return A(B)}},p.createElement(f4,null,G!=null?G:c(X)))})))};nk.defaultProps={showBackButton:!1};var rk=function(t){var e=t.showBackButton,n=t.isPhoneScreen,r=Qe(),i=r.dispatch,o=r.isResetted,a=o===void 0||o,u=r.originalImage,c=r.resize,d=c===void 0?{}:c,h=r.adjustments,m=h.crop,v=h.rotation,C=v===void 0?0:v,w=r.shownImageDimensions,x=r.config.disableZooming,P=r.t,b=function(){i({type:Lv,payload:{isShow:!1}}),document.removeEventListener("mouseup",b),document.removeEventListener("mouseleave",b),document.removeEventListener("touchcancel",b),document.removeEventListener("touchend",b)},E=function(){i({type:Lv,payload:{isShow:!0}}),document.addEventListener("mouseup",b),document.addEventListener("mouseleave",b),document.addEventListener("touchcancel",b),document.addEventListener("touchend",b)};if(!u)return null;var k=RP(d,m,w,u,C);return p.createElement(YK,{isPhoneScreen:n},p.createElement(DK,{title:P("imageDimensionsHoverTitle")},"".concat(k.width," x ").concat(k.height," px")),p.createElement(qK,null,p.createElement(Mv,{color:"basic",onMouseDown:a?void 0:E,onTouchStart:a?void 0:E,disabled:a,showBackButton:e,title:P("showImageTitle")},p.createElement(PW,null)),!x&&p.createElement(p.Fragment,null,p.createElement(Y4,null),p.createElement(nk,{showBackButton:e}))))};rk.defaultProps={showBackButton:!1,isPhoneScreen:!1};var lq=function(){var t=Qe(),e=t.t,n=Ki();return p.createElement(M1,null,p.createElement(ea,{className:"FIE_topbar-back-button",color:"link-secondary",size:"sm",startIcon:p.createElement(GO,null)},!n&&p.createElement(FK,null,e("back"))))},ik=function(t){var e=t.toggleMainMenu,n=Qe(),r=n.config.showBackButton,i=Ki(320);return p.createElement(RK,{className:"FIE_topbar",isPhoneScreen:i},p.createElement(zK,{className:"FIE_topbar-buttons-wrapper"},p.createElement(KK,{className:"FIE_tabs_toggle_btn",size:i?"sm":"lg",color:"basic",onClick:function(){return e(!0)}},function(o){return p.createElement(XO,o)}),r?p.createElement(lq,null):p.createElement(BC,null)),p.createElement(BK,{className:"FIE_topbar-center-options",showBackButton:r},p.createElement(rk,{showBackButton:r,isPhoneScreen:i})),p.createElement(jK,null,p.createElement(ZK,{className:"FIE_topbar-history-buttons"},p.createElement(JP,{margin:"0",showBackButton:r}),p.createElement(ek,{margin:"0",showBackButton:r}),p.createElement(tk,{margin:"0",showBackButton:r})),r?p.createElement(BC,null):p.createElement(tq,null)))};ik.defaultProps={toggleMainMenu:function(){}};var sq=$.div.withConfig({componentId:"sc-qhd6ow-0"})(function(t){var e=t.theme;return"\n    width: 72px;\n    min-height: 66px;\n    padding: 4px 2px;\n    border-radius: 4px;\n    display: flex;\n    flex-direction: column;\n    gap: 6px;\n    background: ".concat(e.palette[_.BackgroundStateless],";\n    align-items: center;\n    justify-content: center;\n\n    [data-phone='true'] & {\n      margin-bottom: 0;\n      height: 50px;\n      border-radius: 0;\n    }\n\n    svg {\n      color: ").concat(e.palette[_.IconsPrimary],";\n    }\n\n    &,\n    * {\n      cursor: pointer;\n    }\n\n    &:hover {\n      background: ").concat(e.palette["bg-primary-active"],";\n    }\n\n    &[aria-selected='true'] {\n      background: ").concat(e.palette["bg-primary-active"],";\n\n      * {\n        color: ").concat(e.palette["accent-primary-active"],";\n      }\n    }\n  ")}),uq=$(Qt).withConfig({componentId:"sc-qhd6ow-1"})(function(t){var e=t.theme;return"\n  color: ".concat(e.palette[_.TextPrimary],";\n  ").concat(e.typography.font[Pe.LabelSmall],";\n  font-size: 12px;\n  line-height: 14px;\n\n  span {\n    white-space: normal;\n  }\n\n  [data-phone='true'] & {\n    font-size: 10px;\n  }\n")}),ok=function(t){var e=t.id,n=t.label,r=t.Icon,i=t.isSelected,o=t.onClick,a=j.useCallback(function(){typeof o=="function"&&o(e)},[e]);return p.createElement(sq,{className:"FIE_tab","aria-selected":i,onClick:a},p.createElement(r,{size:24}),n&&p.createElement(uq,{className:"FIE_tab-label"},n))};ok.defaultProps={isSelected:!1,onClick:void 0,label:void 0};const cq=j.memo(ok);var cm=[{id:Vt.ADJUST,labelKey:"adjustTab",icon:YW},{id:Vt.FINETUNE,labelKey:"finetuneTab",icon:RW},{id:Vt.FILTERS,labelKey:"filtersTab",icon:FF,hideFn:function(e){var n=e.useCloudimage;return n}},{id:Vt.WATERMARK,labelKey:"watermarkTab",icon:YF},{id:Vt.ANNOTATE,labelKey:"annotateTabLabel",icon:DW,hideFn:function(e){var n=e.useCloudimage;return n}},{id:Vt.RESIZE,labelKey:"resizeTab",icon:XF}],Q4=function(t){var e=t.toggleMainMenu,n=t.isDrawer,r=Qe(),i=r.t,o=r.tabId,a=o===void 0?null:o,u=r.dispatch,c=r.config,d=c.defaultTabId,h=c.tabsIds,m=c.useCloudimage,v=j.useCallback(function(x){u({type:jP,payload:{tabId:x}}),e(!1)},[]),C=j.useMemo(function(){var x=[];return 0<Object.keys(h).length?cm.forEach(function(P){var b=h.indexOf(P.id);b!==-1&&(x[b]=P)}):x=cm,(0<x.length?x:cm).filter(function(P){var b=P.hideFn;return!b||!b({useCloudimage:m})})},[h]);if(C.length===1)return null;var w=function(x){var P=x.id,b=x.labelKey,E=x.icon;return p.createElement(cq,{key:P,id:P,label:i(b),Icon:E,isSelected:(a||d)===P,onClick:v})};return p.createElement(p.Fragment,null,C.map(function(x){return n?p.createElement(TX,{key:x.id},w(x)):w(x)}))};Q4.defaultProps={toggleMainMenu:function(){},isDrawer:!1};var ak=function(t){var e=t.children,n=t.isPhoneScreen;return p.createElement(qN,{className:"FIE_tool-options-wrapper",hasChildren:!!e,isPhoneScreen:n},e)};ak.defaultProps={children:void 0,isPhoneScreen:!1};var dq={maxWidth:"100%",width:"100%"},lk=function(t){var e,n=t.isPhoneScreen,r=Qe(),i=r.t,o=r.dispatch,a=r.tabId,u=r.toolId,c=r.annotations,d=r.selectionsIds,h=d===void 0?[]:d,m=r.config,v=m.defaultTabId,C=m.defaultToolId,w=m.useCloudimage,x=a||v,P=u||C||((e=Wh[x])===null||e===void 0?void 0:e[0]),b=j.useMemo(function(){return Wh[x]||[]},[x]),E=j.useCallback(function(L){o({type:T0,payload:{toolId:L}})},[]),k=j.useMemo(function(){return b.map(function(L){var A=nd[L],M=A.Item,z=A.hideFn;return M&&(!z||!z({useCloudimage:w}))&&p.createElement(M,{key:L,selectTool:E,t:i,isSelected:P===L})})},[b,P]),T=j.useMemo(function(){var L,A,M;if(!P)return!1;if(x===Vt.ANNOTATE){var z=h.length;if(z===1){var D,B=c[h[0]];return(D=nd[B.name])===null||D===void 0?void 0:D.ItemOptions}if(1<z)return null}return x&&P&&Wh[x].includes(P)&&(!((L=nd[u])!==null&&L!==void 0&&L.hideFn)||!((A=nd[u])!==null&&A!==void 0&&A.hideFn({useCloudimage:w})))&&((M=nd[u])===null||M===void 0?void 0:M.ItemOptions)},[x,P,c,h]);return j.useEffect(function(){!u&&P&&o({type:T0,payload:{toolId:P}})},[]),p.createElement(ZN,{className:"FIE_tools-bar-wrapper"},p.createElement(ak,{isPhoneScreen:n},T&&p.createElement(T,{t:i})),k&&p.createElement(YN,{className:"FIE_tools-bar",isPhoneScreen:n},x===Vt.WATERMARK?k:p.createElement(I1,{className:"FIE_tools",style:dq},k)))};lk.defaultProps={isPhoneScreen:!1};var fq={horizontal:"center",vertical:"bottom"},pq=S(S({},Gu.ERROR,"error"),Gu.WARNING,"warning"),sk=function(t){var e,n=t.anchorOrigin,r=Qe(),i=r.feedback,o=i===void 0?{}:i,a=r.dispatch;return o.message?p.createElement(LU,{className:"FIE_feedback-robot",anchorOrigin:n,autoHideDuration:(e=o.duration)!==null&&e!==void 0?e:5e3,message:o.message,open:!!o.message,status:pq[o.status||Gu.ERROR],onClose:function(){a({type:el,payload:{feedback:{}}})}}):null};sk.defaultProps={anchorOrigin:fq};var hq=D3(["to{transform:rotate(360deg);}"]),gq=$.div.withConfig({componentId:"sc-m42fbk-0"})(["background:",";display:flex;align-items:center;justify-content:center;position:absolute;z-index:11111;top:0;bottom:0;right:0;left:0;flex-direction:column;user-select:none;"],function(t){var e=t.theme.palette;return e[_.BackgroundStateless]}),mq=$(sV).withConfig({componentId:"sc-m42fbk-1"})(["animation:"," 1.2s infinite;"],hq),uk=function(t){var e=t.theme;return p.createElement(gq,{className:"FIE_spinner-wrapper"},p.createElement(mq,{size:50,color:e.palette[_.AccentStateless]}))};uk.defaultProps={theme:{}};var vq=["cropX2","cropY2","crop","watermark"];function FC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Do(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?FC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):FC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var yq=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{},i=fz[e];switch(t){case"wat_text":return{watermark:{text:e.replaceAll("+"," ")}};case"wat_font":return{watermark:{fontFamily:e}};case"wat_color":return{watermark:{fill:"#".concat(e)}};case"wat_fontsize":return{watermark:{fontSize:parseFloat(e)}};case"wat_opacity":return{watermark:{opacity:parseFloat(e)}};case"wat_pos":{var o=e.split(","),a=Le(o,2),u=a[0],c=a[1];return{watermark:{x:parseFloat(u)/100*n.width,y:parseFloat(c)/100*n.height}}}case"wat_url":return{watermark:{image:decodeURIComponent(e)}};case"wat_scale":{var d=e.split(","),h=Le(d,2),m=h[0],v=h[1];return{watermark:{width:parseFloat(m)/100*(n.width||0),height:parseFloat(v)/100*(n.height||0)}}}case"tl_px":{var C=e.split(","),w=Le(C,2),x=w[0],P=w[1];return{crop:{x:mo(parseFloat(x),0,r.width,0,n.width),y:mo(parseFloat(P),0,r.height,0,n.height)}}}case"br_px":{var b=e.split(","),E=Le(b,2),k=E[0],T=E[1];return{cropX2:mo(parseFloat(k),0,r.width,0,n.width),cropY2:mo(parseFloat(T),0,r.height,0,n.height)}}case"round":return{crop:{ratio:as}};case"gravity":return{crop:i?{lockCropAreaAt:i,width:null,height:null}:{noEffect:!0,ratio:e,ratioTitleKey:e,width:null,height:null}};case"aspect_ratio":return{crop:{ratio:+e}};case"w":return{resize:{width:parseFloat(e)}};case"h":return{resize:{height:parseFloat(e)}};case"r":return{adjustments:{rotation:-parseInt(e,10)}};case"flip":case"mirror":return{adjustments:{isFlippedX:e.includes("x")||e.includes("h"),isFlippedY:e.includes("y")||e.includes("v")}};default:{var L;if(Object.keys(Hh).forEach(function(D){Hh[D].cloudimage.name===t.toLowerCase()&&(L=D)}),!L)return null;var A=Hh[L],M=A.cloudimage,z=A.internal;return{finetunes:[fn.Filters[L]],finetunesProps:S({},z.propName,mo(parseFloat(e),M.min,M.max,z.min,z.max))}}}},wq=function(t,e,n){if(!t)return null;var r=t.split("&"),i={};r.forEach(function(v){var C=v.split("="),w=Le(C,2),x=w[0],P=w[1],b=yq(x,P,e,n);b&&(i=wf(i,b,!0))});var o=i,a=o.cropX2,u=o.cropY2,c=o.crop,d=o.watermark,h=se(o,vq),m=Do(Do(Do({},h),a&&u&&c||c!=null&&c.noEffect||c!=null&&c.lockCropAreaAt?{adjustments:Do(Do({},h.adjustments),{},{crop:Do({width:(a||0)-c.x,height:(u||0)-c.y},c)})}:{}),{},{annotations:Do({},d?S({},Va,Do(Do({},d),{},{x:((c==null?void 0:c.x)||0)+(d.x||0),y:((c==null?void 0:c.y)||0)+(d.y||0),id:Va,name:d.text?Q.TEXT:Q.IMAGE},d.text?{width:d.text.length*d.fontSize,height:d.fontSize}:{})):{})});return m},dm=function(t,e){return t&&e&&(t instanceof HTMLImageElement&&t.src===e.src&&t.width===e.width&&t.height===e.height||((t==null?void 0:t.src)||t)===e.src)},Cq=$.div.attrs(function(t){var e,n,r=t.$size,i=r===void 0?{}:r;return{style:{width:(e=i.width)!==null&&e!==void 0?e:"100%",height:(n=i.height)!==null&&n!==void 0?n:"100%"}}}).withConfig({componentId:"sc-ugtqr7-0"})(["display:flex;flex-direction:column;align-items:center;height:100%;max-height:100%;width:100%;max-width:100%;overflow:auto;border-radius:8px;position:relative;min-height:250px;background:",";",""],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.showTabsDrawer;return e&&"\n      overflow: unset;\n  "}),Sq=$.div.withConfig({componentId:"sc-ugtqr7-1"})(["display:flex;align-items:flex-start;width:100%;box-sizing:border-box;height:calc(100% - 95px);flex-grow:1;[data-phone='true'] &{padding:0;}"]),xq=$.div.withConfig({componentId:"sc-ugtqr7-2"})(["height:100%;width:calc(100% - 80px);flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;",""],function(t){var e=t.showTabsDrawer;return e&&"\n     overflow-y: unset;\n  "}),Eq=$.div.withConfig({componentId:"sc-ugtqr7-3"})(["min-width:108px;height:100%;padding:16px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;max-height:100%;box-shadow:6px 8px 12px 0px rgba(146,166,188,0.14);[data-phone='true'] &{display:flex;padding:0;}"]),bq=$(SX).withConfig({componentId:"sc-ugtqr7-4"})(["transition:transform 200ms ease-in-out;width:92px;height:100%;padding:12px;.SfxDrawer-list,.SfxDrawer-item{padding:0;}"]),ck=function(t){var e=t.toggleMainMenu,n=Qe(),r=n.t,i=n.showTabsMenu;return p.createElement(bq,{className:"FIE_tabs-drawer",open:i,onClose:function(){return e(!1)},disablePortal:!0},p.createElement(EX,null,p.createElement(ea,{color:"link-basic-secondary",startIcon:p.createElement(XO,null),onClick:function(){return e(!1)}},r("tabsMenu"))),p.createElement(OX,null,p.createElement(kX,null,p.createElement(Q4,{toggleMainMenu:e,isDrawer:!0}))))};ck.defaultProps={toggleMainMenu:function(){}};function $C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function WC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?$C(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$C(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}var Oq=function(){var t=Qe(),e=t.config,n=t.isLoadingGlobally,r=t.haveNotSavedChanges,i=t.dispatch,o=t.originalImage,a=t.shownImageDimensions,u=t.t,c=t.theme,d=t.feedback,h=d===void 0?{}:d,m=e.loadableDesignState,v=e.useCloudimage,C=e.cloudimage,w=e.source,x=e.avoidChangesNotSavedAlertOnLeave,P=e.useBackendTranslations,b=e.translations,E=e.language,k=e.defaultSavedImageName,T=e.observePluginContainerSize,L=e.showCanvasOnly,A=e.getCurrentImgDataFnRef,M=e.updateStateFnRef,z=e.noCrossOrigin,D=window.matchMedia("(max-width: 760px)").matches,B=W5(),X=Le(B,2),G=X[0],V=X[1],ne=j.useState({width:void 0,height:void 0}),ve=Le(ne,2),te=ve[0],pe=ve[1],Y=Ki(),de=j.useRef(null),ce=j.useRef(!0),me=j.useRef(!1),re=j.useRef(null),ee=j.useRef(r),ue=qb(),Ee=j.useCallback(function(ye){i({type:HP,payload:{originalImage:ye}})},[]),W=j.useCallback(function(ye){i({type:el,payload:{feedback:{message:ye.message||ye,duration:0}}})},[]),Se=function(ye){return new Promise(function(Ge){var Ze=(ye==null?void 0:ye.src)||ye;if(re.current===Ze||!Ze&&o||dm(Ze,o))return void(re.current||Ge());var Ve=function(){re.current=null,Ge()};re.current=Ze,setTimeout(function(){if(typeof ye=="string")KP(ye,k,z).then(Ee).catch(W).finally(Ve);else if(ye instanceof HTMLImageElement){if(!ye.name&&k&&(ye.name=k),!ye.complete)return void ye.addEventListener("load",function(){Ee(ye),Ve()});Ee(ye),Ve()}else W(u("invalidImageError")),Ve()},0)})},ae=function(ye){ee.current&&(ye.preventDefault(),ye.returnValue="")},ze=function(){var ye=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){return[]};return i({type:H5}),Promise.all(ye()).finally(function(){i({type:y1})})},Ie=function(){m&&0<Object.keys(m).length&&i({type:Vh,payload:WC(WC({},m),{},{finetunes:$b(m==null?void 0:m.finetunes),filter:Hb(m==null?void 0:m.filter)})})};j.useEffect(function(){ce.current||!w||dm(w,o)||(me.current=!1,ze(function(){return[Se(w)]}))},[w]),j.useEffect(function(){if(!ce.current){var ye=m==null?void 0:m.imgSrc;ye&&!dm(ye,o)?ze(function(){return[Se(ye).then(Ie)]}):Ie()}},[m]),j.useEffect(function(){0<Object.keys(a||{}).length&&!Object.keys(a).some(function(ye){return!a[ye]})&&o&&v&&C!==null&&C!==void 0&&C.loadableQuery&&!me.current&&(i({type:Vh,payload:wq(C.loadableQuery,a,o)}),me.current=!0)},[a,o,v,C]),j.useEffect(function(){var ye=!1;return T&&de.current?G(de.current.parentNode,function(Ge){var Ze=Ge.width,Ve=Ge.height;return pe({width:Ze,height:Ve})}):te.width&&te.height&&!ye&&pe({width:void 0,height:void 0}),function(){T&&de.current&&V(de.current),ye=!0}},[T]),j.useEffect(function(){return ze(function(){return[Se((m==null?void 0:m.imgSrc)||w)].concat(en(P?[oN(E,b)]:[]))}),ce.current=!1,window&&!x&&window.addEventListener("beforeunload",ae),function(){window&&!x&&window.removeEventListener("beforeunload",ae)}},[]),j.useEffect(function(){M&&xr(M)==="object"&&(M.current=function(ye){i({type:Vh,payload:ye})})},[M,i]),j.useEffect(function(){A&&xr(A)==="object"&&(A.current=ue)},[ue]),j.useEffect(function(){ee.current=r},[r]);var xe=function(ye){i({type:UP,payload:{opened:ye}})};return p.createElement(Cq,{className:C0,"data-phone":Y,showTabsDrawer:D,ref:de,$size:te},n&&p.createElement(uk,{theme:c}),function(){return p.createElement(p.Fragment,null,!L&&p.createElement(p.Fragment,null,D&&p.createElement(ck,{toggleMainMenu:xe}),p.createElement(ik,{toggleMainMenu:xe})),o&&h.duration!==0&&p.createElement(Sq,{className:"FIE_main-container"},!L&&!D&&p.createElement(Eq,{className:"FIE_tabs"},p.createElement(Q4,{toggleMainMenu:xe})),p.createElement(xq,{className:"FIE_editor-content",showTabsDrawer:D},p.createElement(AK,null),!L&&p.createElement(lk,{isPhoneScreen:Y}))))}(),p.createElement(sk,null))};const Pq=j.memo(Oq);var kq=d1([".","{font-family:",";}.SfxModal-Wrapper *{font-family:",";}"],C0,function(t){var e,n=t.theme,r=n===void 0?{}:n;return((e=r.typography)===null||e===void 0?void 0:e.fontFamily)||"Arial"},function(t){var e,n=t.theme,r=n===void 0?{}:n;return((e=r.typography)===null||e===void 0?void 0:e.fontFamily)||"Arial"}),_q=d1([".Menu-open{overflow:visible !important;}.",",#SfxPopper{box-sizing:border-box;.SfxPopper-root .SfxMenu-root{overflow:visible;width:max-content;.SfxMenuItem-prefix{margin-right:6px;}}}."," *,#SfxPopper *{box-sizing:border-box;scrollbar-color:rgba(203,211,218,1) rgba(203,211,218,0.35);:not(button) > svg:not([color]){color:",'}:disabled,[aria-disabled="true"]{cursor:not-allowed;}&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background:rgba(203,211,218,0.35);}&::-webkit-scrollbar-thumb{background:rgba(203,211,218,1);border-radius:10px;}}'],C0,C0,function(t){var e=t.theme;return e.palette["icons-primary"]}),dk=function(t){var e=t.img,n=t.source,r=t.useCloudimage,i=t.cloudimage;if(e)throw new Error("`img` is renamed to `source` please consider renaming it from your configurations.");if(!n||typeof n!="string"&&!(n instanceof HTMLImageElement))throw new Error("`source` property is required either a string of image url or a HTMLImageElement for the image that will be edited.");if(r){var o,a;if(i!=null&&(o=i.imageSealing)!==null&&o!==void 0&&o.enable&&!(i!=null&&(a=i.imageSealing)!==null&&a!==void 0&&a.salt))throw new Error("`salt` property of imageSealing object is required in cloudimage mode as long as `imageSealing` is enabled.")}var u=wf(Bb,t);return p.createElement(p.StrictMode,null,p.createElement(GL,{theme:u.theme},p.createElement(kq,null),p.createElement(_q,null),p.createElement(Ub,{config:u},p.createElement(Pq,null))))};dk.defaultProps={useCloudimage:!1,cloudimage:{},img:void 0};const Tq=j.memo(dk);function VC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function GC(t){for(var e,n=1;n<arguments.length;n++)e=arguments[n]==null?{}:arguments[n],n%2?VC(Object(e),!0).forEach(function(r){S(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):VC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}function fm(t,e,n){Iq(t,e),e.set(t,n)}function Iq(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}var nu=new WeakMap,vh=new WeakMap,yh=new WeakMap,wh=function(){function t(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};if(Vk(this,t),fm(this,nu,{writable:!0,value:void 0}),fm(this,vh,{writable:!0,value:void 0}),fm(this,yh,{writable:!0,value:void 0}),this.container=e,this.config=n,!e||!(e instanceof HTMLElement))throw new Error("`container` (argument 0) is required to initialize the image editor plugin.");fp(this,nu,ov(this.container)),fp(this,vh,{}),fp(this,yh,{}),this.getCurrentImgData=this.getCurrentImgData.bind(this),this.render=this.render.bind(this),this.terminate=this.terminate.bind(this),this.updateState=this.updateState.bind(this)}return Uk(t,[{key:"render",value:function(n){xr(n)==="object"&&(this.config=this.config=wf(this.config||{},n)),this.config=GC(GC({},this.config),{},{getCurrentImgDataFnRef:Cl(this,vh),updateStateFnRef:Cl(this,yh)}),Cl(this,nu)._internalRoot||fp(this,nu,ov(this.container)),Cl(this,nu).render(j.createElement(Tq,this.config))}},{key:"terminate",value:function(){Cl(this,nu).unmount()}},{key:"getCurrentImgData",value:function(n,r,i){var o,a;return((o=Cl(this,vh))===null||o===void 0||(a=o.current)===null||a===void 0?void 0:a.call(o,n,r,i))||{}}},{key:"updateState",value:function(n){var r,i;(r=Cl(this,yh))===null||r===void 0||(i=r.current)===null||i===void 0||i.call(r,n)}}]),t}();S(wh,"TABS",Vt),S(wh,"TOOLS",Q),wh.TABS=Vt,wh.TOOLS=Q;export{wh as default};

Zerion Mini Shell 1.0