/*! For license information please see client.js.LICENSE.txt */ !function(){const A=document.createElement("link").relList;if(!(A&&A.supports&&A.supports("modulepreload"))){for(const A of document.querySelectorAll('link[rel="modulepreload"]'))e(A);new MutationObserver((A=>{for(const t of A)if("childList"===t.type)for(const A of t.addedNodes)"LINK"===A.tagName&&"modulepreload"===A.rel&&e(A)})).observe(document,{childList:!0,subtree:!0})}function e(A){if(A.ep)return;A.ep=!0;const e=function(A){const e={};return A.integrity&&(e.integrity=A.integrity),A.referrerPolicy&&(e.referrerPolicy=A.referrerPolicy),"use-credentials"===A.crossOrigin?e.credentials="include":"anonymous"===A.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(A);fetch(A.href,e)}}();var MF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A0(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var e0={exports:{}},vl={},t0={exports:{}},MA={},ca=Symbol.for("react.element"),_F=Symbol.for("react.portal"),VF=Symbol.for("react.fragment"),NF=Symbol.for("react.strict_mode"),GF=Symbol.for("react.profiler"),jF=Symbol.for("react.provider"),WF=Symbol.for("react.context"),zF=Symbol.for("react.forward_ref"),XF=Symbol.for("react.suspense"),JF=Symbol.for("react.memo"),YF=Symbol.for("react.lazy"),bg=Symbol.iterator;function $F(A){return null===A||"object"!=typeof A?null:"function"==typeof(A=bg&&A[bg]||A["@@iterator"])?A:null}var r0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n0=Object.assign,i0={};function _i(A,e,t){this.props=A,this.context=e,this.refs=i0,this.updater=t||r0}function o0(){}function xf(A,e,t){this.props=A,this.context=e,this.refs=i0,this.updater=t||r0}_i.prototype.isReactComponent={},_i.prototype.setState=function(A,e){if("object"!=typeof A&&"function"!=typeof A&&null!=A)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,A,e,"setState")},_i.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")},o0.prototype=_i.prototype;var If=xf.prototype=new o0;If.constructor=xf,n0(If,_i.prototype),If.isPureReactComponent=!0;var Hg=Array.isArray,a0=Object.prototype.hasOwnProperty,bf={current:null},s0={key:!0,ref:!0,__self:!0,__source:!0};function l0(A,e,t){var n,r={},o=null,i=null;if(null!=e)for(n in void 0!==e.ref&&(i=e.ref),void 0!==e.key&&(o=""+e.key),e)a0.call(e,n)&&!s0.hasOwnProperty(n)&&(r[n]=e[n]);var a=arguments.length-2;if(1===a)r.children=t;else if(1>>1,o=A[n];if(!(0>>1;nr(s,t))lr(u,s)?(A[n]=u,A[l]=t,n=l):(A[n]=s,A[a]=t,n=a);else{if(!(lr(u,t)))break A;A[n]=u,A[l]=t,n=l}}}return e}function r(A,e){var t=A.sortIndex-e.sortIndex;return 0!==t?t:A.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;A.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();A.unstable_now=function(){return i.now()-a}}var s=[],l=[],u=1,c=null,d=3,f=!1,g=!1,h=!1,p="function"==typeof setTimeout?setTimeout:null,B="function"==typeof clearTimeout?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function w(A){for(var r=t(l);null!==r;){if(null===r.callback)n(l);else{if(!(r.startTime<=A))break;n(l),r.sortIndex=r.expirationTime,e(s,r)}r=t(l)}}function y(A){if(h=!1,w(A),!g)if(null!==t(s))g=!0,k(v);else{var e=t(l);null!==e&&L(y,e.startTime-A)}}function v(e,r){g=!1,h&&(h=!1,B(U),U=-1),f=!0;var o=d;try{for(w(r),c=t(s);null!==c&&(!(c.expirationTime>r)||e&&!x());){var i=c.callback;if("function"==typeof i){c.callback=null,d=c.priorityLevel;var a=i(c.expirationTime<=r);r=A.unstable_now(),"function"==typeof a?c.callback=a:c===t(s)&&n(s),w(r)}else n(s);c=t(s)}if(null!==c)var u=!0;else{var p=t(l);null!==p&&L(y,p.startTime-r),u=!1}return u}finally{c=null,d=o,f=!1}}typeof navigator<"u"&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Q,b=!1,C=null,U=-1,F=5,E=-1;function x(){return!(A.unstable_now()-EA||125i?(n.sortIndex=o,e(l,n),null===t(s)&&n===t(l)&&(h?(B(U),U=-1):h=!0,L(y,o-i))):(n.sortIndex=a,e(s,n),g||f||(g=!0,k(v))),n},A.unstable_shouldYield=x,A.unstable_wrapCallback=function(A){var e=d;return function(){var t=d;d=e;try{return A.apply(this,arguments)}finally{d=t}}}}(d0),f0.exports=d0;var sU=f0.exports,h0=AA,dt=sU;function uA(A){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+A,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vc=Object.prototype.hasOwnProperty,lU=/^[: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]*$/,Lg={},Pg={};function uU(A){return!!vc.call(Pg,A)||!vc.call(Lg,A)&&(lU.test(A)?Pg[A]=!0:(Lg[A]=!0,!1))}function cU(A,e,t,n){if(null!==t&&0===t.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==t?!t.acceptsBooleans:"data-"!==(A=A.toLowerCase().slice(0,5))&&"aria-"!==A);default:return!1}}function fU(A,e,t,n){if(null===e||typeof e>"u"||cU(A,e,t,n))return!0;if(n)return!1;if(null!==t)switch(t.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ye(A,e,t,n,r,o,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=A,this.type=e,this.sanitizeURL=o,this.removeEmptyString=i}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(A){Me[A]=new Ye(A,0,!1,A,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(A){var e=A[0];Me[e]=new Ye(e,1,!1,A[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(A){Me[A]=new Ye(A,2,!1,A.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(A){Me[A]=new Ye(A,2,!1,A,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(A){Me[A]=new Ye(A,3,!1,A.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(A){Me[A]=new Ye(A,3,!0,A,null,!1,!1)})),["capture","download"].forEach((function(A){Me[A]=new Ye(A,4,!1,A,null,!1,!1)})),["cols","rows","size","span"].forEach((function(A){Me[A]=new Ye(A,6,!1,A,null,!1,!1)})),["rowSpan","start"].forEach((function(A){Me[A]=new Ye(A,5,!1,A.toLowerCase(),null,!1,!1)}));var Lf=/[\-:]([a-z])/g;function Pf(A){return A[1].toUpperCase()}function Df(A,e,t,n){var r=Me.hasOwnProperty(e)?Me[e]:null;(null!==r?0!==r.type:n||!(2--a||r[i]!==o[a]){var s="\n"+r[i].replace(" at new "," at ");return A.displayName&&s.includes("")&&(s=s.replace("",A.displayName)),s}}while(1<=i&&0<=a);break}}}finally{bu=!1,Error.prepareStackTrace=t}return(A=A?A.displayName||A.name:"")?Eo(A):""}function dU(A){switch(A.tag){case 5:return Eo(A.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return Hu(A.type,!1);case 11:return Hu(A.type.render,!1);case 1:return Hu(A.type,!0);default:return""}}function Qc(A){if(null==A)return null;if("function"==typeof A)return A.displayName||A.name||null;if("string"==typeof A)return A;switch(A){case ci:return"Fragment";case ui:return"Portal";case wc:return"Profiler";case Of:return"StrictMode";case yc:return"Suspense";case Cc:return"SuspenseList"}if("object"==typeof A)switch(A.$$typeof){case B0:return(A.displayName||"Context")+".Consumer";case p0:return(A._context.displayName||"Context")+".Provider";case kf:var e=A.render;return(A=A.displayName)||(A=""!==(A=e.displayName||e.name||"")?"ForwardRef("+A+")":"ForwardRef"),A;case Rf:return null!==(e=A.displayName||null)?e:Qc(A.type)||"Memo";case Rr:e=A._payload,A=A._init;try{return Qc(A(e))}catch{}}return null}function hU(A){var e=A.type;switch(A.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 A=(A=e.render).displayName||A.name||"",e.displayName||(""!==A?"ForwardRef("+A+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qc(e);case 8:return e===Of?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function en(A){switch(typeof A){case"boolean":case"number":case"string":case"undefined":case"object":return A;default:return""}}function v0(A){var e=A.type;return(A=A.nodeName)&&"input"===A.toLowerCase()&&("checkbox"===e||"radio"===e)}function gU(A){var e=v0(A)?"checked":"value",t=Object.getOwnPropertyDescriptor(A.constructor.prototype,e),n=""+A[e];if(!A.hasOwnProperty(e)&&typeof t<"u"&&"function"==typeof t.get&&"function"==typeof t.set){var r=t.get,o=t.set;return Object.defineProperty(A,e,{configurable:!0,get:function(){return r.call(this)},set:function(A){n=""+A,o.call(this,A)}}),Object.defineProperty(A,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(A){n=""+A},stopTracking:function(){A._valueTracker=null,delete A[e]}}}}function as(A){A._valueTracker||(A._valueTracker=gU(A))}function w0(A){if(!A)return!1;var e=A._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return A&&(n=v0(A)?A.checked?"true":"false":A.value),(A=n)!==t&&(e.setValue(A),!0)}function _s(A){if(typeof(A=A||(typeof document<"u"?document:void 0))>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}function Fc(A,e){var t=e.checked;return he({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??A._wrapperState.initialChecked})}function Og(A,e){var t=null==e.defaultValue?"":e.defaultValue,n=null!=e.checked?e.checked:e.defaultChecked;t=en(null!=e.value?e.value:t),A._wrapperState={initialChecked:n,initialValue:t,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function y0(A,e){null!=(e=e.checked)&&Df(A,"checked",e,!1)}function Uc(A,e){y0(A,e);var t=en(e.value),n=e.type;if(null!=t)"number"===n?(0===t&&""===A.value||A.value!=t)&&(A.value=""+t):A.value!==""+t&&(A.value=""+t);else if("submit"===n||"reset"===n)return void A.removeAttribute("value");e.hasOwnProperty("value")?Ec(A,e.type,t):e.hasOwnProperty("defaultValue")&&Ec(A,e.type,en(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(A.defaultChecked=!!e.defaultChecked)}function kg(A,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!("submit"!==n&&"reset"!==n||void 0!==e.value&&null!==e.value))return;e=""+A._wrapperState.initialValue,t||e===A.value||(A.value=e),A.defaultValue=e}""!==(t=A.name)&&(A.name=""),A.defaultChecked=!!A._wrapperState.initialChecked,""!==t&&(A.name=t)}function Ec(A,e,t){("number"!==e||_s(A.ownerDocument)!==A)&&(null==t?A.defaultValue=""+A._wrapperState.initialValue:A.defaultValue!==""+t&&(A.defaultValue=""+t))}var So=Array.isArray;function Ei(A,e,t,n){if(A=A.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=ss.firstChild;A.firstChild;)A.removeChild(A.firstChild);for(;e.firstChild;)A.appendChild(e.firstChild)}}));function jo(A,e){if(e){var t=A.firstChild;if(t&&t===A.lastChild&&3===t.nodeType)return void(t.nodeValue=e)}A.textContent=e}var Ho={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},pU=["Webkit","ms","Moz","O"];function U0(A,e,t){return null==e||"boolean"==typeof e||""===e?"":t||"number"!=typeof e||0===e||Ho.hasOwnProperty(A)&&Ho[A]?(""+e).trim():e+"px"}function E0(A,e){for(var t in A=A.style,e)if(e.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=U0(t,e[t],n);"float"===t&&(t="cssFloat"),n?A.setProperty(t,r):A[t]=r}}Object.keys(Ho).forEach((function(A){pU.forEach((function(e){e=e+A.charAt(0).toUpperCase()+A.substring(1),Ho[e]=Ho[A]}))}));var BU=he({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 Ic(A,e){if(e){if(BU[A]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(uA(137,A));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(uA(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(uA(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(uA(62))}}function bc(A,e){if(-1===A.indexOf("-"))return"string"==typeof e.is;switch(A){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 Hc=null;function Kf(A){return(A=A.target||A.srcElement||window).correspondingUseElement&&(A=A.correspondingUseElement),3===A.nodeType?A.parentNode:A}var Tc=null,Si=null,xi=null;function Mg(A){if(A=ha(A)){if("function"!=typeof Tc)throw Error(uA(280));var e=A.stateNode;e&&(e=Fl(e),Tc(A.stateNode,A.type,e))}}function S0(A){Si?xi?xi.push(A):xi=[A]:Si=A}function x0(){if(Si){var A=Si,e=xi;if(xi=Si=null,Mg(A),e)for(A=0;A>>=0)?32:31-(xU(A)/IU|0)|0}var ls=64,us=4194304;function xo(A){switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&A;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&A;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return A}}function js(A,e){var t=A.pendingLanes;if(0===t)return 0;var n=0,r=A.suspendedLanes,o=A.pingedLanes,i=268435455&t;if(0!==i){var a=i&~r;0!==a?n=xo(a):0!=(o&=i)&&(n=xo(o))}else 0!=(i=t&~r)?n=xo(i):0!==o&&(n=xo(o));if(0===n)return 0;if(0!==e&&e!==n&&!(e&r)&&((r=n&-n)>=(o=e&-e)||16===r&&0!=(4194240&o)))return e;if(4&n&&(n|=16&t),0!==(e=A.entangledLanes))for(A=A.entanglements,e&=n;0t;t++)e.push(A);return e}function fa(A,e,t){A.pendingLanes|=e,536870912!==e&&(A.suspendedLanes=0,A.pingedLanes=0),(A=A.eventTimes)[e=31-Kt(e)]=t}function LU(A,e){var t=A.pendingLanes&~e;A.pendingLanes=e,A.suspendedLanes=0,A.pingedLanes=0,A.expiredLanes&=e,A.mutableReadLanes&=e,A.entangledLanes&=e,e=A.entanglements;var n=A.eventTimes;for(A=A.expirationTimes;0=Lo),Jg=String.fromCharCode(32),Yg=!1;function X0(A,e){switch(A){case"keyup":return-1!==aE.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(A){return"object"==typeof(A=A.detail)&&"data"in A?A.data:null}var fi=!1;function lE(A,e){switch(A){case"compositionend":return J0(e);case"keypress":return 32!==e.which?null:(Yg=!0,Jg);case"textInput":return(A=e.data)===Jg&&Yg?null:A;default:return null}}function uE(A,e){if(fi)return"compositionend"===A||!zf&&X0(A,e)?(A=W0(),bs=Gf=Nr=null,fi=!1,A):null;switch(A){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-A};A=t}A:{for(;n;){if(n.nextSibling){n=n.nextSibling;break A}n=n.parentNode}n=void 0}n=Ap(n)}}function q0(A,e){return!(!A||!e)&&(A===e||(!A||3!==A.nodeType)&&(e&&3===e.nodeType?q0(A,e.parentNode):"contains"in A?A.contains(e):!!A.compareDocumentPosition&&!!(16&A.compareDocumentPosition(e))))}function Am(){for(var A=window,e=_s();e instanceof A.HTMLIFrameElement;){try{var t="string"==typeof e.contentWindow.location.href}catch{t=!1}if(!t)break;e=_s((A=e.contentWindow).document)}return e}function Xf(A){var e=A&&A.nodeName&&A.nodeName.toLowerCase();return e&&("input"===e&&("text"===A.type||"search"===A.type||"tel"===A.type||"url"===A.type||"password"===A.type)||"textarea"===e||"true"===A.contentEditable)}function vE(A){var e=Am(),t=A.focusedElem,n=A.selectionRange;if(e!==t&&t&&t.ownerDocument&&q0(t.ownerDocument.documentElement,t)){if(null!==n&&Xf(t))if(e=n.start,void 0===(A=n.end)&&(A=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(A,t.value.length);else if((A=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){A=A.getSelection();var r=t.textContent.length,o=Math.min(n.start,r);n=void 0===n.end?o:Math.min(n.end,r),!A.extend&&o>n&&(r=n,n=o,o=r),r=ep(t,o);var i=ep(t,n);r&&i&&(1!==A.rangeCount||A.anchorNode!==r.node||A.anchorOffset!==r.offset||A.focusNode!==i.node||A.focusOffset!==i.offset)&&((e=e.createRange()).setStart(r.node,r.offset),A.removeAllRanges(),o>n?(A.addRange(e),A.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),A.addRange(e)))}for(e=[],A=t;A=A.parentNode;)1===A.nodeType&&e.push({element:A,left:A.scrollLeft,top:A.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,di=null,Rc=null,Do=null,Kc=!1;function tp(A,e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Kc||null==di||di!==_s(n)||(n="selectionStart"in(n=di)&&Xf(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Do&&$o(Do,n)||(Do=n,0<(n=Xs(Rc,"onSelect")).length&&(e=new jf("onSelect","select",null,e,t),A.push({event:e,listeners:n}),e.target=di)))}function ds(A,e){var t={};return t[A.toLowerCase()]=e.toLowerCase(),t["Webkit"+A]="webkit"+e,t["Moz"+A]="moz"+e,t}var hi={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionend:ds("Transition","TransitionEnd")},Ku={},em={};function Ql(A){if(Ku[A])return Ku[A];if(!hi[A])return A;var e,t=hi[A];for(e in t)if(t.hasOwnProperty(e)&&e in em)return Ku[A]=t[e];return A}Br&&(em=document.createElement("div").style,"AnimationEvent"in window||(delete hi.animationend.animation,delete hi.animationiteration.animation,delete hi.animationstart.animation),"TransitionEvent"in window||delete hi.transitionend.transition);var tm=Ql("animationend"),rm=Ql("animationiteration"),nm=Ql("animationstart"),im=Ql("transitionend"),om=new Map,rp="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 on(A,e){om.set(A,e),Kn(e,[A])}for(var Mu=0;Mupi||(A.current=jc[pi],jc[pi]=null,pi--)}function te(A,e){pi++,jc[pi]=A.current,A.current=e}var tn={},je=an(tn),nt=an(!1),Pn=tn;function Li(A,e){var t=A.type.contextTypes;if(!t)return tn;var n=A.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in t)o[r]=e[r];return n&&((A=A.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,A.__reactInternalMemoizedMaskedChildContext=o),o}function it(A){return null!=A.childContextTypes}function Ys(){ae(nt),ae(je)}function lp(A,e,t){if(je.current!==tn)throw Error(uA(168));te(je,e),te(nt,t)}function lm(A,e,t){var n=A.stateNode;if(e=e.childContextTypes,"function"!=typeof n.getChildContext)return t;for(var r in n=n.getChildContext())if(!(r in e))throw Error(uA(108,hU(A)||"Unknown",r));return he({},t,n)}function $s(A){return A=(A=A.stateNode)&&A.__reactInternalMemoizedMergedChildContext||tn,Pn=je.current,te(je,A),te(nt,nt.current),!0}function up(A,e,t){var n=A.stateNode;if(!n)throw Error(uA(169));t?(A=lm(A,e,Pn),n.__reactInternalMemoizedMergedChildContext=A,ae(nt),ae(je),te(je,A)):ae(nt),te(nt,t)}var ur=null,Ul=!1,ju=!1;function um(A){null===ur?ur=[A]:ur.push(A)}function HE(A){Ul=!0,um(A)}function sn(){if(!ju&&null!==ur){ju=!0;var A=0,e=$A;try{var t=ur;for($A=1;A>=i,r-=i,cr=1<<32-Kt(e)+r|t<h?(p=g,g=null):p=g.sibling;var B=d(r,g,a[h],s);if(null===B){null===g&&(g=p);break}A&&g&&null===B.alternate&&e(r,g),i=o(B,i,h),null===u?l=B:u.sibling=B,u=B,g=p}if(h===a.length)return t(r,g),le&&Fn(r,h),l;if(null===g){for(;hh?(p=g,g=null):p=g.sibling;var m=d(r,g,B.value,s);if(null===m){null===g&&(g=p);break}A&&g&&null===m.alternate&&e(r,g),i=o(m,i,h),null===u?l=m:u.sibling=m,u=m,g=p}if(B.done)return t(r,g),le&&Fn(r,h),l;if(null===g){for(;!B.done;h++,B=a.next())null!==(B=c(r,B.value,s))&&(i=o(B,i,h),null===u?l=B:u.sibling=B,u=B);return le&&Fn(r,h),l}for(g=n(r,g);!B.done;h++,B=a.next())null!==(B=f(g,r,h,B.value,s))&&(A&&null!==B.alternate&&g.delete(null===B.key?h:B.key),i=o(B,i,h),null===u?l=B:u.sibling=B,u=B);return A&&g.forEach((function(A){return e(r,A)})),le&&Fn(r,h),l}(s,l,u,g);Bs(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==l&&6===l.tag?(t(s,l.sibling),(l=r(l,u)).return=s,s=l):(t(s,l),(l=Zu(u,s.mode,g)).return=s,s=l),i(s)):t(s,l)}}var Di=mm(!0),vm=mm(!1),ga={},Ar=an(ga),ea=an(ga),ta=an(ga);function bn(A){if(A===ga)throw Error(uA(174));return A}function rd(A,e){switch(te(ta,e),te(ea,A),te(Ar,ga),A=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:xc(null,"");break;default:e=xc(e=(A=8===A?e.parentNode:e).namespaceURI||null,A=A.tagName)}ae(Ar),te(Ar,e)}function Oi(){ae(Ar),ae(ea),ae(ta)}function wm(A){bn(ta.current);var e=bn(Ar.current),t=xc(e,A.type);e!==t&&(te(ea,A),te(Ar,t))}function nd(A){ea.current===A&&(ae(Ar),ae(ea))}var ce=an(0);function rl(A){for(var e=A;null!==e;){if(13===e.tag){var t=e.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(128&e.flags)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===A)break;for(;null===e.sibling;){if(null===e.return||e.return===A)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Wu=[];function id(){for(var A=0;At?t:4,A(!0);var n=zu.transition;zu.transition={};try{A(!1),e()}finally{$A=t,zu.transition=n}}function Om(){return bt().memoizedState}function DE(A,e,t){var n=$r(A);t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},km(A)?Rm(e,t):null!==(t=hm(A,e,t,n))&&(Mt(t,A,n,Xe()),Km(t,e,n))}function OE(A,e,t){var n=$r(A),r={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(km(A))Rm(e,r);else{var o=A.alternate;if(0===A.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var i=e.lastRenderedState,a=o(i,t);if(r.hasEagerState=!0,r.eagerState=a,_t(a,i)){var s=e.interleaved;return null===s?(r.next=r,ed(e)):(r.next=s.next,s.next=r),void(e.interleaved=r)}}catch{}null!==(t=hm(A,e,r,n))&&(Mt(t,A,n,r=Xe()),Km(t,e,n))}}function km(A){var e=A.alternate;return A===de||null!==e&&e===de}function Rm(A,e){Oo=nl=!0;var t=A.pending;null===t?e.next=e:(e.next=t.next,t.next=e),A.pending=e}function Km(A,e,t){if(4194240&t){var n=e.lanes;t|=n&=A.pendingLanes,e.lanes=t,_f(A,t)}}var il={readContext:It,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},kE={readContext:It,useCallback:function(A,e){return Yt().memoizedState=[A,void 0===e?null:e],A},useContext:It,useEffect:vp,useImperativeHandle:function(A,e,t){return t=null!=t?t.concat([A]):null,Ps(4194308,4,Hm.bind(null,e,A),t)},useLayoutEffect:function(A,e){return Ps(4194308,4,A,e)},useInsertionEffect:function(A,e){return Ps(4,2,A,e)},useMemo:function(A,e){var t=Yt();return e=void 0===e?null:e,A=A(),t.memoizedState=[A,e],A},useReducer:function(A,e,t){var n=Yt();return e=void 0!==t?t(e):e,n.memoizedState=n.baseState=e,A={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:e},n.queue=A,A=A.dispatch=DE.bind(null,de,A),[n.memoizedState,A]},useRef:function(A){return A={current:A},Yt().memoizedState=A},useState:mp,useDebugValue:ud,useDeferredValue:function(A){return Yt().memoizedState=A},useTransition:function(){var A=mp(!1),e=A[0];return A=PE.bind(null,A[1]),Yt().memoizedState=A,[e,A]},useMutableSource:function(){},useSyncExternalStore:function(A,e,t){var n=de,r=Yt();if(le){if(void 0===t)throw Error(uA(407));t=t()}else{if(t=e(),null===Pe)throw Error(uA(349));30&On||Qm(n,e,t)}r.memoizedState=t;var o={value:t,getSnapshot:e};return r.queue=o,vp(Um.bind(null,n,o,A),[A]),n.flags|=2048,ia(9,Fm.bind(null,n,o,t,e),void 0,null),t},useId:function(){var A=Yt(),e=Pe.identifierPrefix;if(le){var t=fr;e=":"+e+"R"+(t=(cr&~(1<<32-Kt(cr)-1)).toString(32)+t),0<(t=ra++)&&(e+="H"+t.toString(32)),e+=":"}else e=":"+e+"r"+(t=LE++).toString(32)+":";return A.memoizedState=e},unstable_isNewReconciler:!1},RE={readContext:It,useCallback:Lm,useContext:It,useEffect:ld,useImperativeHandle:Tm,useInsertionEffect:Im,useLayoutEffect:bm,useMemo:Pm,useReducer:Xu,useRef:xm,useState:function(){return Xu(na)},useDebugValue:ud,useDeferredValue:function(A){return Dm(bt(),xe.memoizedState,A)},useTransition:function(){return[Xu(na)[0],bt().memoizedState]},useMutableSource:ym,useSyncExternalStore:Cm,useId:Om,unstable_isNewReconciler:!1},KE={readContext:It,useCallback:Lm,useContext:It,useEffect:ld,useImperativeHandle:Tm,useInsertionEffect:Im,useLayoutEffect:bm,useMemo:Pm,useReducer:Ju,useRef:xm,useState:function(){return Ju(na)},useDebugValue:ud,useDeferredValue:function(A){var e=bt();return null===xe?e.memoizedState=A:Dm(e,xe.memoizedState,A)},useTransition:function(){return[Ju(na)[0],bt().memoizedState]},useMutableSource:ym,useSyncExternalStore:Cm,useId:Om,unstable_isNewReconciler:!1};function ki(A,e){try{var t="",n=e;do{t+=dU(n),n=n.return}while(n);var r=t}catch(A){r="\nError generating stack: "+A.message+"\n"+A.stack}return{value:A,source:e,stack:r,digest:null}}function Yu(A,e,t){return{value:A,source:null,stack:t??null,digest:e??null}}function $c(A,e){try{console.error(e.value)}catch(A){setTimeout((function(){throw A}))}}var ME="function"==typeof WeakMap?WeakMap:Map;function Mm(A,e,t){(t=hr(-1,t)).tag=3,t.payload={element:null};var n=e.value;return t.callback=function(){al||(al=!0,sf=n),$c(A,e)},t}function _m(A,e,t){(t=hr(-1,t)).tag=3;var n=A.type.getDerivedStateFromError;if("function"==typeof n){var r=e.value;t.payload=function(){return n(r)},t.callback=function(){$c(A,e)}}var o=A.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(t.callback=function(){$c(A,e),"function"!=typeof n&&(null===Yr?Yr=new Set([this]):Yr.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),t}function wp(A,e,t){var n=A.pingCache;if(null===n){n=A.pingCache=new ME;var r=new Set;n.set(e,r)}else void 0===(r=n.get(e))&&(r=new Set,n.set(e,r));r.has(t)||(r.add(t),A=AS.bind(null,A,e,t),e.then(A,A))}function yp(A){do{var e;if((e=13===A.tag)&&(e=null===(e=A.memoizedState)||null!==e.dehydrated),e)return A;A=A.return}while(null!==A);return null}function Cp(A,e,t,n,r){return 1&A.mode?(A.flags|=65536,A.lanes=r,A):(A===e?A.flags|=65536:(A.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((e=hr(-1,1)).tag=2,Jr(t,e,1))),t.lanes|=1),A)}var _E=Cr.ReactCurrentOwner,rt=!1;function ze(A,e,t,n){e.child=null===A?vm(e,null,t,n):Di(e,A.child,t,n)}function Qp(A,e,t,n,r){t=t.render;var o=e.ref;return bi(e,r),n=ad(A,e,t,n,o,r),t=sd(),null===A||rt?(le&&t&&Jf(e),e.flags|=1,ze(A,e,n,r),e.child):(e.updateQueue=A.updateQueue,e.flags&=-2053,A.lanes&=~r,wr(A,e,r))}function Fp(A,e,t,n,r){if(null===A){var o=t.type;return"function"!=typeof o||md(o)||void 0!==o.defaultProps||null!==t.compare||void 0!==t.defaultProps?((A=Rs(t.type,null,n,e,e.mode,r)).ref=e.ref,A.return=e,e.child=A):(e.tag=15,e.type=o,Vm(A,e,o,n,r))}if(o=A.child,!(A.lanes&r)){var i=o.memoizedProps;if((t=null!==(t=t.compare)?t:$o)(i,n)&&A.ref===e.ref)return wr(A,e,r)}return e.flags|=1,(A=Zr(o,n)).ref=e.ref,A.return=e,e.child=A}function Vm(A,e,t,n,r){if(null!==A){var o=A.memoizedProps;if($o(o,n)&&A.ref===e.ref){if(rt=!1,e.pendingProps=n=o,0==(A.lanes&r))return e.lanes=A.lanes,wr(A,e,r);131072&A.flags&&(rt=!0)}}return Zc(A,e,t,n,r)}function Nm(A,e,t){var n=e.pendingProps,r=n.children,o=null!==A?A.memoizedState:null;if("hidden"===n.mode)if(1&e.mode){if(!(1073741824&t))return A=null!==o?o.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:A,cachePool:null,transitions:null},e.updateQueue=null,te(yi,ut),ut|=A,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:t,te(yi,ut),ut|=n}else e.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(yi,ut),ut|=t;else null!==o?(n=o.baseLanes|t,e.memoizedState=null):n=t,te(yi,ut),ut|=n;return ze(A,e,r,t),e.child}function Gm(A,e){var t=e.ref;(null===A&&null!==t||null!==A&&A.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function Zc(A,e,t,n,r){var o=it(t)?Pn:je.current;return o=Li(e,o),bi(e,r),t=ad(A,e,t,n,o,r),n=sd(),null===A||rt?(le&&n&&Jf(e),e.flags|=1,ze(A,e,t,r),e.child):(e.updateQueue=A.updateQueue,e.flags&=-2053,A.lanes&=~r,wr(A,e,r))}function Up(A,e,t,n,r){if(it(t)){var o=!0;$s(e)}else o=!1;if(bi(e,r),null===e.stateNode)Ds(A,e),Bm(e,t,n),Yc(e,t,n,r),n=!0;else if(null===A){var i=e.stateNode,a=e.memoizedProps;i.props=a;var s=i.context,l=t.contextType;l="object"==typeof l&&null!==l?It(l):Li(e,l=it(t)?Pn:je.current);var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==n||s!==l)&&pp(e,i,n,l),Kr=!1;var d=e.memoizedState;i.state=d,tl(e,n,i,r),s=e.memoizedState,a!==n||d!==s||nt.current||Kr?("function"==typeof u&&(Jc(e,t,u,n),s=e.memoizedState),(a=Kr||gp(e,t,a,n,d,s,l))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(e.flags|=4194308)):("function"==typeof i.componentDidMount&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=s),i.props=n,i.state=s,i.context=l,n=a):("function"==typeof i.componentDidMount&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,gm(A,e),a=e.memoizedProps,l=e.type===e.elementType?a:Dt(e.type,a),i.props=l,c=e.pendingProps,d=i.context,s="object"==typeof(s=t.contextType)&&null!==s?It(s):Li(e,s=it(t)?Pn:je.current);var f=t.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==c||d!==s)&&pp(e,i,n,s),Kr=!1,d=e.memoizedState,i.state=d,tl(e,n,i,r);var g=e.memoizedState;a!==c||d!==g||nt.current||Kr?("function"==typeof f&&(Jc(e,t,f,n),g=e.memoizedState),(l=Kr||gp(e,t,l,n,d,g,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,g,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,g,s)),"function"==typeof i.componentDidUpdate&&(e.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===A.memoizedProps&&d===A.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===A.memoizedProps&&d===A.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=g),i.props=n,i.state=g,i.context=s,n=l):("function"!=typeof i.componentDidUpdate||a===A.memoizedProps&&d===A.memoizedState||(e.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===A.memoizedProps&&d===A.memoizedState||(e.flags|=1024),n=!1)}return qc(A,e,t,n,o,r)}function qc(A,e,t,n,r,o){Gm(A,e);var i=0!=(128&e.flags);if(!n&&!i)return r&&up(e,t,!1),wr(A,e,o);n=e.stateNode,_E.current=e;var a=i&&"function"!=typeof t.getDerivedStateFromError?null:n.render();return e.flags|=1,null!==A&&i?(e.child=Di(e,A.child,null,o),e.child=Di(e,null,a,o)):ze(A,e,a,o),e.memoizedState=n.state,r&&up(e,t,!0),e.child}function jm(A){var e=A.stateNode;e.pendingContext?lp(A,e.pendingContext,e.pendingContext!==e.context):e.context&&lp(A,e.context,!1),rd(A,e.containerInfo)}function Ep(A,e,t,n,r){return Pi(),$f(r),e.flags|=256,ze(A,e,t,n),e.child}var Xm,tf,Jm,Ym,Af={dehydrated:null,treeContext:null,retryLane:0};function ef(A){return{baseLanes:A,cachePool:null,transitions:null}}function Wm(A,e,t){var n,r=e.pendingProps,o=ce.current,i=!1,a=0!=(128&e.flags);if((n=a)||(n=(null===A||null!==A.memoizedState)&&0!=(2&o)),n?(i=!0,e.flags&=-129):(null===A||null!==A.memoizedState)&&(o|=1),te(ce,1&o),null===A)return zc(e),null!==(A=e.memoizedState)&&null!==(A=A.dehydrated)?(1&e.mode?"$!"===A.data?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,A=r.fallback,i?(r=e.mode,i=e.child,a={mode:"hidden",children:a},1&r||null===i?i=bl(a,r,0,null):(i.childLanes=0,i.pendingProps=a),A=Ln(A,r,t,null),i.return=e,A.return=e,i.sibling=A,e.child=i,e.child.memoizedState=ef(t),e.memoizedState=Af,A):cd(e,a));if(null!==(o=A.memoizedState)&&null!==(n=o.dehydrated))return VE(A,e,a,r,n,o,t);if(i){i=r.fallback,a=e.mode,n=(o=A.child).sibling;var s={mode:"hidden",children:r.children};return 1&a||e.child===o?(r=Zr(o,s)).subtreeFlags=14680064&o.subtreeFlags:((r=e.child).childLanes=0,r.pendingProps=s,e.deletions=null),null!==n?i=Zr(n,i):(i=Ln(i,a,t,null)).flags|=2,i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,a=null===(a=A.child.memoizedState)?ef(t):{baseLanes:a.baseLanes|t,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=A.childLanes&~t,e.memoizedState=Af,r}return A=(i=A.child).sibling,r=Zr(i,{mode:"visible",children:r.children}),!(1&e.mode)&&(r.lanes=t),r.return=e,r.sibling=null,null!==A&&(null===(t=e.deletions)?(e.deletions=[A],e.flags|=16):t.push(A)),e.child=r,e.memoizedState=null,r}function cd(A,e){return(e=bl({mode:"visible",children:e},A.mode,0,null)).return=A,A.child=e}function ms(A,e,t,n){return null!==n&&$f(n),Di(e,A.child,null,t),(A=cd(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,A}function VE(A,e,t,n,r,o,i){if(t)return 256&e.flags?(e.flags&=-257,ms(A,e,i,n=Yu(Error(uA(422))))):null!==e.memoizedState?(e.child=A.child,e.flags|=128,null):(o=n.fallback,r=e.mode,n=bl({mode:"visible",children:n.children},r,0,null),(o=Ln(o,r,i,null)).flags|=2,n.return=e,o.return=e,n.sibling=o,e.child=n,1&e.mode&&Di(e,A.child,null,i),e.child.memoizedState=ef(i),e.memoizedState=Af,o);if(!(1&e.mode))return ms(A,e,i,null);if("$!"===r.data){if(n=r.nextSibling&&r.nextSibling.dataset)var a=n.dgst;return n=a,ms(A,e,i,n=Yu(o=Error(uA(419)),n,void 0))}if(a=0!=(i&A.childLanes),rt||a){if(null!==(n=Pe)){switch(i&-i){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=r&(n.suspendedLanes|i)?0:r)&&r!==o.retryLane&&(o.retryLane=r,vr(A,r),Mt(n,A,r,-1))}return Bd(),ms(A,e,i,n=Yu(Error(uA(421))))}return"$?"===r.data?(e.flags|=128,e.child=A.child,e=eS.bind(null,A),r._reactRetry=e,null):(A=o.treeContext,ct=Xr(r.nextSibling),ft=e,le=!0,kt=null,null!==A&&(Ut[Et++]=cr,Ut[Et++]=fr,Ut[Et++]=Dn,cr=A.id,fr=A.overflow,Dn=e),(e=cd(e,n.children)).flags|=4096,e)}function Sp(A,e,t){A.lanes|=e;var n=A.alternate;null!==n&&(n.lanes|=e),Xc(A.return,e,t)}function $u(A,e,t,n,r){var o=A.memoizedState;null===o?A.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:t,tailMode:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=t,o.tailMode=r)}function zm(A,e,t){var n=e.pendingProps,r=n.revealOrder,o=n.tail;if(ze(A,e,n.children,t),2&(n=ce.current))n=1&n|2,e.flags|=128;else{if(null!==A&&128&A.flags)A:for(A=e.child;null!==A;){if(13===A.tag)null!==A.memoizedState&&Sp(A,t,e);else if(19===A.tag)Sp(A,t,e);else if(null!==A.child){A.child.return=A,A=A.child;continue}if(A===e)break A;for(;null===A.sibling;){if(null===A.return||A.return===e)break A;A=A.return}A.sibling.return=A.return,A=A.sibling}n&=1}if(te(ce,n),1&e.mode)switch(r){case"forwards":for(t=e.child,r=null;null!==t;)null!==(A=t.alternate)&&null===rl(A)&&(r=t),t=t.sibling;null===(t=r)?(r=e.child,e.child=null):(r=t.sibling,t.sibling=null),$u(e,!1,r,t,o);break;case"backwards":for(t=null,r=e.child,e.child=null;null!==r;){if(null!==(A=r.alternate)&&null===rl(A)){e.child=r;break}A=r.sibling,r.sibling=t,t=r,r=A}$u(e,!0,t,null,o);break;case"together":$u(e,!1,null,null,void 0);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function Ds(A,e){!(1&e.mode)&&null!==A&&(A.alternate=null,e.alternate=null,e.flags|=2)}function wr(A,e,t){if(null!==A&&(e.dependencies=A.dependencies),kn|=e.lanes,!(t&e.childLanes))return null;if(null!==A&&e.child!==A.child)throw Error(uA(153));if(null!==e.child){for(t=Zr(A=e.child,A.pendingProps),e.child=t,t.return=e;null!==A.sibling;)A=A.sibling,(t=t.sibling=Zr(A,A.pendingProps)).return=e;t.sibling=null}return e.child}function NE(A,e,t){switch(e.tag){case 3:jm(e),Pi();break;case 5:wm(e);break;case 1:it(e.type)&&$s(e);break;case 4:rd(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,r=e.memoizedProps.value;te(Al,n._currentValue),n._currentValue=r;break;case 13:if(null!==(n=e.memoizedState))return null!==n.dehydrated?(te(ce,1&ce.current),e.flags|=128,null):t&e.child.childLanes?Wm(A,e,t):(te(ce,1&ce.current),null!==(A=wr(A,e,t))?A.sibling:null);te(ce,1&ce.current);break;case 19:if(n=0!=(t&e.childLanes),128&A.flags){if(n)return zm(A,e,t);e.flags|=128}if(null!==(r=e.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),te(ce,ce.current),n)break;return null;case 22:case 23:return e.lanes=0,Nm(A,e,t)}return wr(A,e,t)}function wo(A,e){if(!le)switch(A.tailMode){case"hidden":e=A.tail;for(var t=null;null!==e;)null!==e.alternate&&(t=e),e=e.sibling;null===t?A.tail=null:t.sibling=null;break;case"collapsed":t=A.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e||null===A.tail?A.tail=null:A.tail.sibling=null:n.sibling=null}}function Ne(A){var e=null!==A.alternate&&A.alternate.child===A.child,t=0,n=0;if(e)for(var r=A.child;null!==r;)t|=r.lanes|r.childLanes,n|=14680064&r.subtreeFlags,n|=14680064&r.flags,r.return=A,r=r.sibling;else for(r=A.child;null!==r;)t|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=A,r=r.sibling;return A.subtreeFlags|=n,A.childLanes=t,e}function GE(A,e,t){var n=e.pendingProps;switch(Yf(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(e),null;case 1:case 17:return it(e.type)&&Ys(),Ne(e),null;case 3:return n=e.stateNode,Oi(),ae(nt),ae(je),id(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===A||null===A.child)&&(ps(e)?e.flags|=4:null===A||A.memoizedState.isDehydrated&&!(256&e.flags)||(e.flags|=1024,null!==kt&&(cf(kt),kt=null))),tf(A,e),Ne(e),null;case 5:nd(e);var r=bn(ta.current);if(t=e.type,null!==A&&null!=e.stateNode)Jm(A,e,t,n,r),A.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(null===e.stateNode)throw Error(uA(166));return Ne(e),null}if(A=bn(Ar.current),ps(e)){n=e.stateNode,t=e.type;var o=e.memoizedProps;switch(n[Zt]=e,n[Aa]=o,A=0!=(1&e.mode),t){case"dialog":oe("cancel",n),oe("close",n);break;case"iframe":case"object":case"embed":oe("load",n);break;case"video":case"audio":for(r=0;r<\/script>",A=A.removeChild(A.firstChild)):"string"==typeof n.is?A=i.createElement(t,{is:n.is}):(A=i.createElement(t),"select"===t&&(i=A,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):A=i.createElementNS(A,t),A[Zt]=e,A[Aa]=n,Xm(A,e,!1,!1),e.stateNode=A;A:{switch(i=bc(t,n),t){case"dialog":oe("cancel",A),oe("close",A),r=n;break;case"iframe":case"object":case"embed":oe("load",A),r=n;break;case"video":case"audio":for(r=0;rRi&&(e.flags|=128,n=!0,wo(o,!1),e.lanes=4194304)}else{if(!n)if(null!==(A=rl(i))){if(e.flags|=128,n=!0,null!==(t=A.updateQueue)&&(e.updateQueue=t,e.flags|=4),wo(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!le)return Ne(e),null}else 2*we()-o.renderingStartTime>Ri&&1073741824!==t&&(e.flags|=128,n=!0,wo(o,!1),e.lanes=4194304);o.isBackwards?(i.sibling=e.child,e.child=i):(null!==(t=o.last)?t.sibling=i:e.child=i,o.last=i)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=we(),e.sibling=null,t=ce.current,te(ce,n?1&t|2:1&t),e):(Ne(e),null);case 22:case 23:return pd(),n=null!==e.memoizedState,null!==A&&null!==A.memoizedState!==n&&(e.flags|=8192),n&&1&e.mode?1073741824&ut&&(Ne(e),6&e.subtreeFlags&&(e.flags|=8192)):Ne(e),null;case 24:case 25:return null}throw Error(uA(156,e.tag))}function jE(A,e){switch(Yf(e),e.tag){case 1:return it(e.type)&&Ys(),65536&(A=e.flags)?(e.flags=-65537&A|128,e):null;case 3:return Oi(),ae(nt),ae(je),id(),65536&(A=e.flags)&&!(128&A)?(e.flags=-65537&A|128,e):null;case 5:return nd(e),null;case 13:if(ae(ce),null!==(A=e.memoizedState)&&null!==A.dehydrated){if(null===e.alternate)throw Error(uA(340));Pi()}return 65536&(A=e.flags)?(e.flags=-65537&A|128,e):null;case 19:return ae(ce),null;case 4:return Oi(),null;case 10:return Ad(e.type._context),null;case 22:case 23:return pd(),null;default:return null}}Xm=function(A,e){for(var t=e.child;null!==t;){if(5===t.tag||6===t.tag)A.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},tf=function(){},Jm=function(A,e,t,n){var r=A.memoizedProps;if(r!==n){A=e.stateNode,bn(Ar.current);var o,i=null;switch(t){case"input":r=Fc(A,r),n=Fc(A,n),i=[];break;case"select":r=he({},r,{value:void 0}),n=he({},n,{value:void 0}),i=[];break;case"textarea":r=Sc(A,r),n=Sc(A,n),i=[];break;default:"function"!=typeof r.onClick&&"function"==typeof n.onClick&&(A.onclick=Js)}for(l in Ic(t,n),t=null,r)if(!n.hasOwnProperty(l)&&r.hasOwnProperty(l)&&null!=r[l])if("style"===l){var a=r[l];for(o in a)a.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(Go.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var s=n[l];if(a=null!=r?r[l]:void 0,n.hasOwnProperty(l)&&s!==a&&(null!=s||null!=a))if("style"===l)if(a){for(o in a)!a.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in s)s.hasOwnProperty(o)&&a[o]!==s[o]&&(t||(t={}),t[o]=s[o])}else t||(i||(i=[]),i.push(l,t)),t=s;else"dangerouslySetInnerHTML"===l?(s=s?s.__html:void 0,a=a?a.__html:void 0,null!=s&&a!==s&&(i=i||[]).push(l,s)):"children"===l?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(l,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(Go.hasOwnProperty(l)?(null!=s&&"onScroll"===l&&oe("scroll",A),i||a===s||(i=[])):(i=i||[]).push(l,s))}t&&(i=i||[]).push("style",t);var l=i;(e.updateQueue=l)&&(e.flags|=4)}},Ym=function(A,e,t,n){t!==n&&(e.flags|=4)};var vs=!1,Ge=!1,WE="function"==typeof WeakSet?WeakSet:Set,EA=null;function wi(A,e){var t=A.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Be(A,e,t)}else t.current=null}function rf(A,e,t){try{t()}catch(t){Be(A,e,t)}}var xp=!1;function zE(A,e){if(Mc=Ws,Xf(A=Am())){if("selectionStart"in A)var t={start:A.selectionStart,end:A.selectionEnd};else A:{var n=(t=(t=A.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break A}var i=0,a=-1,s=-1,l=0,u=0,c=A,d=null;e:for(;;){for(var f;c!==t||0!==r&&3!==c.nodeType||(a=i+r),c!==o||0!==n&&3!==c.nodeType||(s=i+n),3===c.nodeType&&(i+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===A)break e;if(d===t&&++l===r&&(a=i),d===o&&++u===n&&(s=i),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(_c={focusedElem:A,selectionRange:t},Ws=!1,EA=e;null!==EA;)if(A=(e=EA).child,0!=(1028&e.subtreeFlags)&&null!==A)A.return=e,EA=A;else for(;null!==EA;){e=EA;try{var g=e.alternate;if(1024&e.flags)switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,p=g.memoizedState,B=e.stateNode,m=B.getSnapshotBeforeUpdate(e.elementType===e.type?h:Dt(e.type,h),p);B.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var w=e.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(uA(163))}}catch(A){Be(e,e.return,A)}if(null!==(A=e.sibling)){A.return=e.return,EA=A;break}EA=e.return}return g=xp,xp=!1,g}function ko(A,e,t){var n=e.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&A)===A){var o=r.destroy;r.destroy=void 0,void 0!==o&&rf(e,t,o)}r=r.next}while(r!==n)}}function xl(A,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var t=e=e.next;do{if((t.tag&A)===A){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}}function nf(A){var e=A.ref;if(null!==e){var t=A.stateNode;A.tag,A=t,"function"==typeof e?e(A):e.current=A}}function $m(A){var e=A.alternate;null!==e&&(A.alternate=null,$m(e)),A.child=null,A.deletions=null,A.sibling=null,5===A.tag&&null!==(e=A.stateNode)&&(delete e[Zt],delete e[Aa],delete e[Gc],delete e[IE],delete e[bE]),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}function Zm(A){return 5===A.tag||3===A.tag||4===A.tag}function Ip(A){A:for(;;){for(;null===A.sibling;){if(null===A.return||Zm(A.return))return null;A=A.return}for(A.sibling.return=A.return,A=A.sibling;5!==A.tag&&6!==A.tag&&18!==A.tag;){if(2&A.flags||null===A.child||4===A.tag)continue A;A.child.return=A,A=A.child}if(!(2&A.flags))return A.stateNode}}function of(A,e,t){var n=A.tag;if(5===n||6===n)A=A.stateNode,e?8===t.nodeType?t.parentNode.insertBefore(A,e):t.insertBefore(A,e):(8===t.nodeType?(e=t.parentNode).insertBefore(A,t):(e=t).appendChild(A),null!=(t=t._reactRootContainer)||null!==e.onclick||(e.onclick=Js));else if(4!==n&&null!==(A=A.child))for(of(A,e,t),A=A.sibling;null!==A;)of(A,e,t),A=A.sibling}function af(A,e,t){var n=A.tag;if(5===n||6===n)A=A.stateNode,e?t.insertBefore(A,e):t.appendChild(A);else if(4!==n&&null!==(A=A.child))for(af(A,e,t),A=A.sibling;null!==A;)af(A,e,t),A=A.sibling}var Re=null,Ot=!1;function Or(A,e,t){for(t=t.child;null!==t;)qm(A,e,t),t=t.sibling}function qm(A,e,t){if(qt&&"function"==typeof qt.onCommitFiberUnmount)try{qt.onCommitFiberUnmount(wl,t)}catch{}switch(t.tag){case 5:Ge||wi(t,e);case 6:var n=Re,r=Ot;Re=null,Or(A,e,t),Ot=r,null!==(Re=n)&&(Ot?(A=Re,t=t.stateNode,8===A.nodeType?A.parentNode.removeChild(t):A.removeChild(t)):Re.removeChild(t.stateNode));break;case 18:null!==Re&&(Ot?(A=Re,t=t.stateNode,8===A.nodeType?Gu(A.parentNode,t):1===A.nodeType&&Gu(A,t),Jo(A)):Gu(Re,t.stateNode));break;case 4:n=Re,r=Ot,Re=t.stateNode.containerInfo,Ot=!0,Or(A,e,t),Re=n,Ot=r;break;case 0:case 11:case 14:case 15:if(!Ge&&null!==(n=t.updateQueue)&&null!==(n=n.lastEffect)){r=n=n.next;do{var o=r,i=o.destroy;o=o.tag,void 0!==i&&(2&o||4&o)&&rf(t,e,i),r=r.next}while(r!==n)}Or(A,e,t);break;case 1:if(!Ge&&(wi(t,e),"function"==typeof(n=t.stateNode).componentWillUnmount))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(A){Be(t,e,A)}Or(A,e,t);break;case 21:Or(A,e,t);break;case 22:1&t.mode?(Ge=(n=Ge)||null!==t.memoizedState,Or(A,e,t),Ge=n):Or(A,e,t);break;default:Or(A,e,t)}}function bp(A){var e=A.updateQueue;if(null!==e){A.updateQueue=null;var t=A.stateNode;null===t&&(t=A.stateNode=new WE),e.forEach((function(e){var n=tS.bind(null,A,e);t.has(e)||(t.add(e),e.then(n,n))}))}}function Lt(A,e){var t=e.deletions;if(null!==t)for(var n=0;nr&&(r=i),n&=~o}if(n=r,10<(n=(120>(n=we()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*JE(n/1960))-n)){A.timeoutHandle=Nc(Un.bind(null,A,tt,lr),n);break}Un(A,tt,lr);break;default:throw Error(uA(329))}}}return ot(A,we()),A.callbackNode===t?tv.bind(null,A):null}function uf(A,e){var t=Ro;return A.current.memoizedState.isDehydrated&&(Tn(A,e).flags|=256),2!==(A=ll(A,e))&&(e=tt,tt=t,null!==e&&cf(e)),A}function cf(A){null===tt?tt=A:tt.push.apply(tt,A)}function YE(A){for(var e=A;;){if(16384&e.flags){var t=e.updateQueue;if(null!==t&&null!==(t=t.stores))for(var n=0;nA?16:A,null===Gr)var n=!1;else{if(A=Gr,Gr=null,sl=0,6&GA)throw Error(uA(331));var r=GA;for(GA|=4,EA=A.current;null!==EA;){var o=EA,i=o.child;if(16&EA.flags){var a=o.deletions;if(null!==a){for(var s=0;swe()-hd?Tn(A,0):dd|=t),ot(A,e)}function av(A,e){0===e&&(1&A.mode?(e=us,!(130023424&(us<<=1))&&(us=4194304)):e=1);var t=Xe();null!==(A=vr(A,e))&&(fa(A,e,t),ot(A,t))}function eS(A){var e=A.memoizedState,t=0;null!==e&&(t=e.retryLane),av(A,t)}function tS(A,e){var t=0;switch(A.tag){case 13:var n=A.stateNode,r=A.memoizedState;null!==r&&(t=r.retryLane);break;case 19:n=A.stateNode;break;default:throw Error(uA(314))}null!==n&&n.delete(e),av(A,t)}function lv(A,e){return D0(A,e)}function rS(A,e,t,n){this.tag=A,this.key=t,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(A,e,t,n){return new rS(A,e,t,n)}function md(A){return!(!(A=A.prototype)||!A.isReactComponent)}function nS(A){if("function"==typeof A)return md(A)?1:0;if(null!=A){if((A=A.$$typeof)===kf)return 11;if(A===Rf)return 14}return 2}function Zr(A,e){var t=A.alternate;return null===t?((t=St(A.tag,e,A.key,A.mode)).elementType=A.elementType,t.type=A.type,t.stateNode=A.stateNode,t.alternate=A,A.alternate=t):(t.pendingProps=e,t.type=A.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&A.flags,t.childLanes=A.childLanes,t.lanes=A.lanes,t.child=A.child,t.memoizedProps=A.memoizedProps,t.memoizedState=A.memoizedState,t.updateQueue=A.updateQueue,e=A.dependencies,t.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=A.sibling,t.index=A.index,t.ref=A.ref,t}function Rs(A,e,t,n,r,o){var i=2;if(n=A,"function"==typeof A)md(A)&&(i=1);else if("string"==typeof A)i=5;else A:switch(A){case ci:return Ln(t.children,r,o,e);case Of:i=8,r|=8;break;case wc:return(A=St(12,t,e,2|r)).elementType=wc,A.lanes=o,A;case yc:return(A=St(13,t,e,r)).elementType=yc,A.lanes=o,A;case Cc:return(A=St(19,t,e,r)).elementType=Cc,A.lanes=o,A;case m0:return bl(t,r,o,e);default:if("object"==typeof A&&null!==A)switch(A.$$typeof){case p0:i=10;break A;case B0:i=9;break A;case kf:i=11;break A;case Rf:i=14;break A;case Rr:i=16,n=null;break A}throw Error(uA(130,null==A?A:typeof A,""))}return(e=St(i,t,e,r)).elementType=A,e.type=n,e.lanes=o,e}function Ln(A,e,t,n){return(A=St(7,A,n,e)).lanes=t,A}function bl(A,e,t,n){return(A=St(22,A,n,e)).elementType=m0,A.lanes=t,A.stateNode={isHidden:!1},A}function Zu(A,e,t){return(A=St(6,A,null,e)).lanes=t,A}function qu(A,e,t){return(e=St(4,null!==A.children?A.children:[],A.key,e)).lanes=t,e.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},e}function iS(A,e,t,n,r){this.tag=e,this.containerInfo=A,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function vd(A,e,t,n,r,o,i,a,s){return A=new iS(A,e,t,a,s),1===e?(e=1,!0===o&&(e|=8)):e=0,o=St(3,null,null,e),A.current=o,o.stateNode=A,o.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},td(o),A}function oS(A,e,t){var n=3"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dv)}catch(A){console.error(A)}}gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lS,gt.createPortal=function(A,e){var t=2A,isStatic:!1,reducedMotion:"never"}),Dl=AA.createContext({}),Ol=AA.createContext(null),kl=typeof document<"u",Qd=kl?AA.useLayoutEffect:AA.useEffect,pv=AA.createContext({strict:!1});function cS(A,e,t,n){const{visualElement:r}=AA.useContext(Dl),o=AA.useContext(pv),i=AA.useContext(Ol),a=AA.useContext(gv).reducedMotion,s=AA.useRef();n=n||o.renderer,!s.current&&n&&(s.current=n(A,{visualState:e,parent:r,props:t,presenceContext:i,blockInitialAnimation:!!i&&!1===i.initial,reducedMotionConfig:a}));const l=s.current;AA.useInsertionEffect((()=>{l&&l.update(t,i)}));const u=AA.useRef(!!window.HandoffAppearAnimations);return Qd((()=>{l&&(l.render(),u.current&&l.animationState&&l.animationState.animateChanges())})),AA.useEffect((()=>{l&&(l.updateFeatures(),!u.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1)})),l}function Ci(A){return"object"==typeof A&&Object.prototype.hasOwnProperty.call(A,"current")}function fS(A,e,t){return AA.useCallback((n=>{n&&A.mount&&A.mount(n),e&&(n?e.mount(n):e.unmount()),t&&("function"==typeof t?t(n):Ci(t)&&(t.current=n))}),[e])}function aa(A){return"string"==typeof A||Array.isArray(A)}function Rl(A){return"object"==typeof A&&"function"==typeof A.start}const Fd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ud=["initial",...Fd];function Kl(A){return Rl(A.animate)||Ud.some((e=>aa(A[e])))}function Bv(A){return!(!Kl(A)&&!A.variants)}function dS(A,e){if(Kl(A)){const{initial:e,animate:t}=A;return{initial:!1===e||aa(e)?e:void 0,animate:aa(t)?t:void 0}}return!1!==A.inherit?e:{}}function hS(A){const{initial:e,animate:t}=dS(A,AA.useContext(Dl));return AA.useMemo((()=>({initial:e,animate:t})),[Kp(e),Kp(t)])}function Kp(A){return Array.isArray(A)?A.join(" "):A}const Mp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sa={};for(const A in Mp)sa[A]={isEnabled:e=>Mp[A].some((A=>!!e[A]))};function gS(A){for(const e in A)sa[e]={...sa[e],...A[e]}}const Ed=AA.createContext({}),mv=AA.createContext({}),pS=Symbol.for("motionComponentSymbol");function BS({preloadedFeatures:A,createVisualElement:e,useRender:t,useVisualState:n,Component:r}){A&&gS(A);const o=AA.forwardRef((function(o,i){let a;const s={...AA.useContext(gv),...o,layoutId:mS(o)},{isStatic:l}=s,u=hS(o),c=n(o,l);if(!l&&kl){u.visualElement=cS(r,c,s,e);const t=AA.useContext(mv),n=AA.useContext(pv).strict;u.visualElement&&(a=u.visualElement.loadFeatures(s,n,A,t))}return AA.createElement(Dl.Provider,{value:u},a&&u.visualElement?AA.createElement(a,{visualElement:u.visualElement,...s}):null,t(r,o,fS(c,u.visualElement,i),c,l,u.visualElement))}));return o[pS]=r,o}function mS({layoutId:A}){const e=AA.useContext(Ed).id;return e&&void 0!==A?e+"-"+A:A}function vS(A){function e(e,t={}){return BS(A(e,t))}if(typeof Proxy>"u")return e;const t=new Map;return new Proxy(e,{get:(A,n)=>(t.has(n)||t.set(n,e(n)),t.get(n))})}const wS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Sd(A){return"string"==typeof A&&!A.includes("-")&&!!(wS.indexOf(A)>-1||/[A-Z]/.test(A))}const cl={};function yS(A){Object.assign(cl,A)}const pa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_n=new Set(pa);function vv(A,{layout:e,layoutId:t}){return _n.has(A)||A.startsWith("origin")||(e||void 0!==t)&&(!!cl[A]||"opacity"===A)}const at=A=>!(!A||!A.getVelocity),CS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QS=pa.length;function FS(A,{enableHardwareAcceleration:e=!0,allowTransformNone:t=!0},n,r){let o="";for(let e=0;ee=>"string"==typeof e&&e.startsWith(A),yv=wv("--"),ff=wv("var(--"),US=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ES=(A,e)=>e&&"number"==typeof A?e.transform(A):A,rn=(A,e,t)=>Math.min(Math.max(t,A),e),Vn={test:A=>"number"==typeof A,parse:parseFloat,transform:A=>A},Mo={...Vn,transform:A=>rn(0,1,A)},Cs={...Vn,default:1},_o=A=>Math.round(1e5*A)/1e5,Ml=/(-)?([\d]*\.?[\d])+/g,Cv=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,SS=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ba(A){return"string"==typeof A}const ma=A=>({test:e=>Ba(e)&&e.endsWith(A)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${A}`}),kr=ma("deg"),er=ma("%"),TA=ma("px"),xS=ma("vh"),IS=ma("vw"),_p={...er,parse:A=>er.parse(A)/100,transform:A=>er.transform(100*A)},Vp={...Vn,transform:Math.round},Qv={borderWidth:TA,borderTopWidth:TA,borderRightWidth:TA,borderBottomWidth:TA,borderLeftWidth:TA,borderRadius:TA,radius:TA,borderTopLeftRadius:TA,borderTopRightRadius:TA,borderBottomRightRadius:TA,borderBottomLeftRadius:TA,width:TA,maxWidth:TA,height:TA,maxHeight:TA,size:TA,top:TA,right:TA,bottom:TA,left:TA,padding:TA,paddingTop:TA,paddingRight:TA,paddingBottom:TA,paddingLeft:TA,margin:TA,marginTop:TA,marginRight:TA,marginBottom:TA,marginLeft:TA,rotate:kr,rotateX:kr,rotateY:kr,rotateZ:kr,scale:Cs,scaleX:Cs,scaleY:Cs,scaleZ:Cs,skew:kr,skewX:kr,skewY:kr,distance:TA,translateX:TA,translateY:TA,translateZ:TA,x:TA,y:TA,z:TA,perspective:TA,transformPerspective:TA,opacity:Mo,originX:_p,originY:_p,originZ:TA,zIndex:Vp,fillOpacity:Mo,strokeOpacity:Mo,numOctaves:Vp};function xd(A,e,t,n){const{style:r,vars:o,transform:i,transformOrigin:a}=A;let s=!1,l=!1,u=!0;for(const A in e){const t=e[A];if(yv(A)){o[A]=t;continue}const n=Qv[A],c=ES(t,n);if(_n.has(A)){if(s=!0,i[A]=c,!u)continue;t!==(n.default||0)&&(u=!1)}else A.startsWith("origin")?(l=!0,a[A]=c):r[A]=c}if(e.transform||(s||n?r.transform=FS(A.transform,t,u,n):r.transform&&(r.transform="none")),l){const{originX:A="50%",originY:e="50%",originZ:t=0}=a;r.transformOrigin=`${A} ${e} ${t}`}}const Id=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fv(A,e,t){for(const n in e)!at(e[n])&&!vv(n,t)&&(A[n]=e[n])}function bS({transformTemplate:A},e,t){return AA.useMemo((()=>{const n=Id();return xd(n,e,{enableHardwareAcceleration:!t},A),Object.assign({},n.vars,n.style)}),[e])}function HS(A,e,t){const n={};return Fv(n,A.style||{},A),Object.assign(n,bS(A,e,t)),A.transformValues?A.transformValues(n):n}function TS(A,e,t){const n={},r=HS(A,e,t);return A.drag&&!1!==A.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===A.drag?"none":"pan-"+("x"===A.drag?"y":"x")),void 0===A.tabIndex&&(A.onTap||A.onTapStart||A.whileTap)&&(n.tabIndex=0),n.style=r,n}const LS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function fl(A){return A.startsWith("while")||A.startsWith("drag")&&"draggable"!==A||A.startsWith("layout")||A.startsWith("onTap")||A.startsWith("onPan")||LS.has(A)}let Uv=A=>!fl(A);function PS(A){A&&(Uv=e=>e.startsWith("on")?!fl(e):A(e))}try{PS(require("@emotion/is-prop-valid").default)}catch{}function DS(A,e,t){const n={};for(const r in A)"values"===r&&"object"==typeof A.values||(Uv(r)||!0===t&&fl(r)||!e&&!fl(r)||A.draggable&&r.startsWith("onDrag"))&&(n[r]=A[r]);return n}function Np(A,e,t){return"string"==typeof A?A:TA.transform(e+t*A)}function OS(A,e,t){return`${Np(e,A.x,A.width)} ${Np(t,A.y,A.height)}`}const kS={offset:"stroke-dashoffset",array:"stroke-dasharray"},RS={offset:"strokeDashoffset",array:"strokeDasharray"};function KS(A,e,t=1,n=0,r=!0){A.pathLength=1;const o=r?kS:RS;A[o.offset]=TA.transform(-n);const i=TA.transform(e),a=TA.transform(t);A[o.array]=`${i} ${a}`}function bd(A,{attrX:e,attrY:t,attrScale:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},u,c,d){if(xd(A,l,u,d),c)return void(A.style.viewBox&&(A.attrs.viewBox=A.style.viewBox));A.attrs=A.style,A.style={};const{attrs:f,style:g,dimensions:h}=A;f.transform&&(h&&(g.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==o||g.transform)&&(g.transformOrigin=OS(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(f.x=e),void 0!==t&&(f.y=t),void 0!==n&&(f.scale=n),void 0!==i&&KS(f,i,a,s,!1)}const Ev=()=>({...Id(),attrs:{}}),Hd=A=>"string"==typeof A&&"svg"===A.toLowerCase();function MS(A,e,t,n){const r=AA.useMemo((()=>{const t=Ev();return bd(t,e,{enableHardwareAcceleration:!1},Hd(n),A.transformTemplate),{...t.attrs,style:{...t.style}}}),[e]);if(A.style){const e={};Fv(e,A.style,A),r.style={...e,...r.style}}return r}function _S(A=!1){return(e,t,n,{latestValues:r},o)=>{const i=(Sd(e)?MS:TS)(t,r,o,e),a={...DS(t,"string"==typeof e,A),...i,ref:n},{children:s}=t,l=AA.useMemo((()=>at(s)?s.get():s),[s]);return AA.createElement(e,{...a,children:l})}}const Td=A=>A.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Sv(A,{style:e,vars:t},n,r){Object.assign(A.style,e,r&&r.getProjectionStyles(n));for(const e in t)A.style.setProperty(e,t[e])}const xv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Iv(A,e,t,n){Sv(A,e,void 0,n);for(const t in e.attrs)A.setAttribute(xv.has(t)?t:Td(t),e.attrs[t])}function Ld(A,e){const{style:t}=A,n={};for(const r in t)(at(t[r])||e.style&&at(e.style[r])||vv(r,A))&&(n[r]=t[r]);return n}function bv(A,e){const t=Ld(A,e);for(const n in A)(at(A[n])||at(e[n]))&&(t[-1!==pa.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=A[n]);return t}function Pd(A,e,t,n={},r={}){return"function"==typeof e&&(e=e(void 0!==t?t:A.custom,n,r)),"string"==typeof e&&(e=A.variants&&A.variants[e]),"function"==typeof e&&(e=e(void 0!==t?t:A.custom,n,r)),e}function Hv(A){const e=AA.useRef(null);return null===e.current&&(e.current=A()),e.current}const dl=A=>Array.isArray(A),VS=A=>!!(A&&"object"==typeof A&&A.mix&&A.toValue),NS=A=>dl(A)?A[A.length-1]||0:A;function Ks(A){const e=at(A)?A.get():A;return VS(e)?e.toValue():e}function GS({scrapeMotionValuesFromProps:A,createRenderState:e,onMount:t},n,r,o){const i={latestValues:jS(n,r,o,A),renderState:e()};return t&&(i.mount=A=>t(n,A,i)),i}const Tv=A=>(e,t)=>{const n=AA.useContext(Dl),r=AA.useContext(Ol),o=()=>GS(A,e,n,r);return t?o():Hv(o)};function jS(A,e,t,n){const r={},o=n(A,{});for(const A in o)r[A]=Ks(o[A]);let{initial:i,animate:a}=A;const s=Kl(A),l=Bv(A);e&&l&&!s&&!1!==A.inherit&&(void 0===i&&(i=e.initial),void 0===a&&(a=e.animate));let u=!!t&&!1===t.initial;u=u||!1===i;const c=u?a:i;return c&&"boolean"!=typeof c&&!Rl(c)&&(Array.isArray(c)?c:[c]).forEach((e=>{const t=Pd(A,e);if(!t)return;const{transitionEnd:n,transition:o,...i}=t;for(const A in i){let e=i[A];Array.isArray(e)&&(e=e[u?e.length-1:0]),null!==e&&(r[A]=e)}for(const A in n)r[A]=n[A]})),r}const me=A=>A;class Gp{constructor(){this.order=[],this.scheduled=new Set}add(A){if(!this.scheduled.has(A))return this.scheduled.add(A),this.order.push(A),!0}remove(A){const e=this.order.indexOf(A);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(A))}clear(){this.order.length=0,this.scheduled.clear()}}function WS(A){let e=new Gp,t=new Gp,n=0,r=!1,o=!1;const i=new WeakSet,a={schedule:(A,o=!1,a=!1)=>{const s=a&&r,l=s?e:t;return o&&i.add(A),l.add(A)&&s&&r&&(n=e.order.length),A},cancel:A=>{t.remove(A),i.delete(A)},process:s=>{if(r)o=!0;else{if(r=!0,[e,t]=[t,e],t.clear(),n=e.order.length,n)for(let t=0;t(A[e]=WS((()=>t=!0)),A)),{}),i=A=>o[A].process(r),a=()=>{const o=performance.now();t=!1,r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1),r.timestamp=o,r.isProcessing=!0,Qs.forEach(i),r.isProcessing=!1,t&&e&&(n=!1,A(a))};return{schedule:Qs.reduce(((e,i)=>{const s=o[i];return e[i]=(e,o=!1,i=!1)=>(t||(t=!0,n=!0,r.isProcessing||A(a)),s.schedule(e,o,i)),e}),{}),cancel:A=>Qs.forEach((e=>o[e].cancel(A))),state:r,steps:o}}const{schedule:re,cancel:yr,state:Te,steps:Ac}=XS(typeof requestAnimationFrame<"u"?requestAnimationFrame:me,!0),JS={useVisualState:Tv({scrapeMotionValuesFromProps:bv,createRenderState:Ev,onMount:(A,e,{renderState:t,latestValues:n})=>{re.read((()=>{try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}})),re.render((()=>{bd(t,n,{enableHardwareAcceleration:!1},Hd(e.tagName),A.transformTemplate),Iv(e,t)}))}})},YS={useVisualState:Tv({scrapeMotionValuesFromProps:Ld,createRenderState:Id})};function $S(A,{forwardMotionProps:e=!1},t,n){return{...Sd(A)?JS:YS,preloadedFeatures:t,useRender:_S(e),createVisualElement:n,Component:A}}function dr(A,e,t,n={passive:!0}){return A.addEventListener(e,t,n),()=>A.removeEventListener(e,t)}const Lv=A=>"mouse"===A.pointerType?"number"!=typeof A.button||A.button<=0:!1!==A.isPrimary;function _l(A,e="page"){return{point:{x:A[e+"X"],y:A[e+"Y"]}}}const ZS=A=>e=>Lv(e)&&A(e,_l(e));function gr(A,e,t,n){return dr(A,e,ZS(t),n)}const qS=(A,e)=>t=>e(A(t)),qr=(...A)=>A.reduce(qS);function Pv(A){let e=null;return()=>null===e&&(e=A,()=>{e=null})}const jp=Pv("dragHorizontal"),Wp=Pv("dragVertical");function Dv(A){let e=!1;if("y"===A)e=Wp();else if("x"===A)e=jp();else{const A=jp(),t=Wp();A&&t?e=()=>{A(),t()}:(A&&A(),t&&t())}return e}function Ov(){const A=Dv(!0);return!A||(A(),!1)}class ln{constructor(A){this.isMounted=!1,this.node=A}update(){}}function zp(A,e){const t="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End");return gr(A.current,t,((t,r)=>{if("touch"===t.type||Ov())return;const o=A.getProps();A.animationState&&o.whileHover&&A.animationState.setActive("whileHover",e),o[n]&&re.update((()=>o[n](t,r)))}),{passive:!A.getProps()[n]})}class Ax extends ln{mount(){this.unmount=qr(zp(this.node,!0),zp(this.node,!1))}unmount(){}}class ex extends ln{constructor(){super(...arguments),this.isActive=!1}onFocus(){let A=!1;try{A=this.node.current.matches(":focus-visible")}catch{A=!0}!A||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qr(dr(this.node.current,"focus",(()=>this.onFocus())),dr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}const kv=(A,e)=>!!e&&(A===e||kv(A,e.parentElement));function ec(A,e){if(!e)return;const t=new PointerEvent("pointer"+A);e(t,_l(t))}class tx extends ln{constructor(){super(...arguments),this.removeStartListeners=me,this.removeEndListeners=me,this.removeAccessibleListeners=me,this.startPointerPress=(A,e)=>{if(this.removeEndListeners(),this.isPressing)return;const t=this.node.getProps(),n=gr(window,"pointerup",((A,e)=>{if(!this.checkPressEnd())return;const{onTap:t,onTapCancel:n}=this.node.getProps();re.update((()=>{kv(this.node.current,A.target)?t&&t(A,e):n&&n(A,e)}))}),{passive:!(t.onTap||t.onPointerUp)}),r=gr(window,"pointercancel",((A,e)=>this.cancelPress(A,e)),{passive:!(t.onTapCancel||t.onPointerCancel)});this.removeEndListeners=qr(n,r),this.startPress(A,e)},this.startAccessiblePress=()=>{const A=dr(this.node.current,"keydown",(A=>{"Enter"!==A.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=dr(this.node.current,"keyup",(A=>{"Enter"!==A.key||!this.checkPressEnd()||ec("up",((A,e)=>{const{onTap:t}=this.node.getProps();t&&re.update((()=>t(A,e)))}))})),ec("down",((A,e)=>{this.startPress(A,e)})))})),e=dr(this.node.current,"blur",(()=>{this.isPressing&&ec("cancel",((A,e)=>this.cancelPress(A,e)))}));this.removeAccessibleListeners=qr(A,e)}}startPress(A,e){this.isPressing=!0;const{onTapStart:t,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),t&&re.update((()=>t(A,e)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ov()}cancelPress(A,e){if(!this.checkPressEnd())return;const{onTapCancel:t}=this.node.getProps();t&&re.update((()=>t(A,e)))}mount(){const A=this.node.getProps(),e=gr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(A.onTapStart||A.onPointerStart)}),t=dr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=qr(e,t)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const df=new WeakMap,tc=new WeakMap,rx=A=>{const e=df.get(A.target);e&&e(A)},nx=A=>{A.forEach(rx)};function ix({root:A,...e}){const t=A||document;tc.has(t)||tc.set(t,{});const n=tc.get(t),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(nx,{root:A,...e})),n[r]}function ox(A,e,t){const n=ix(e);return df.set(A,t),n.observe(A),()=>{df.delete(A),n.unobserve(A)}}const ax={some:0,all:1};class sx extends ln{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:A={}}=this.node.getProps(),{root:e,margin:t,amount:n="some",once:r}=A,o={root:e?e.current:void 0,rootMargin:t,threshold:"number"==typeof n?n:ax[n]};return ox(this.node.current,o,(A=>{const{isIntersecting:e}=A;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:t,onViewportLeave:n}=this.node.getProps(),o=e?t:n;o&&o(A)}))}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:A,prevProps:e}=this.node;["amount","margin","root"].some(lx(A,e))&&this.startObserver()}unmount(){}}function lx({viewport:A={}},{viewport:e={}}={}){return t=>A[t]!==e[t]}const ux={inView:{Feature:sx},tap:{Feature:tx},focus:{Feature:ex},hover:{Feature:Ax}};function Rv(A,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==A.length)return!1;for(let n=0;ne[t]=A.get())),e}function fx(A){const e={};return A.values.forEach(((A,t)=>e[t]=A.getVelocity())),e}function Vl(A,e,t){const n=A.getProps();return Pd(n,e,void 0!==t?t:n.custom,cx(A),fx(A))}const dx="framerAppearId",hx="data-"+Td(dx);let gx=me,Dd=me;const An=A=>1e3*A,pr=A=>A/1e3,px={current:!1},Kv=A=>Array.isArray(A)&&"number"==typeof A[0];function Mv(A){return!!(!A||"string"==typeof A&&_v[A]||Kv(A)||Array.isArray(A)&&A.every(Mv))}const bo=([A,e,t,n])=>`cubic-bezier(${A}, ${e}, ${t}, ${n})`,_v={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function Vv(A){if(A)return Kv(A)?bo(A):Array.isArray(A)?A.map(Vv):_v[A]}function Bx(A,e,t,{delay:n=0,duration:r,repeat:o=0,repeatType:i="loop",ease:a,times:s}={}){const l={[e]:t};s&&(l.offset=s);const u=Vv(a);return Array.isArray(u)&&(l.easing=u),A.animate(l,{delay:n,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}function mx(A,{repeat:e,repeatType:t="loop"}){return A[e&&"loop"!==t&&e%2==1?0:A.length-1]}const Nv=(A,e,t)=>(((1-3*t+3*e)*A+(3*t-6*e))*A+3*e)*A,vx=1e-7,wx=12;function yx(A,e,t,n,r){let o,i,a=0;do{i=e+(t-e)/2,o=Nv(i,n,r)-A,o>0?t=i:e=i}while(Math.abs(o)>vx&&++a0===r||1===r?r:Nv((e=>yx(e,0,1,A,t))(r),e,n)}const Cx=va(.42,0,1,1),Qx=va(0,0,.58,1),Gv=va(.42,0,.58,1),Fx=A=>Array.isArray(A)&&"number"!=typeof A[0],jv=A=>e=>e<=.5?A(2*e)/2:(2-A(2*(1-e)))/2,Wv=A=>e=>1-A(1-e),zv=A=>1-Math.sin(Math.acos(A)),Od=Wv(zv),Ux=jv(Od),Xv=va(.33,1.53,.69,.99),kd=Wv(Xv),Ex=jv(kd),Sx=A=>(A*=2)<1?.5*kd(A):.5*(2-Math.pow(2,-10*(A-1))),xx={linear:me,easeIn:Cx,easeInOut:Gv,easeOut:Qx,circIn:zv,circInOut:Ux,circOut:Od,backIn:kd,backInOut:Ex,backOut:Xv,anticipate:Sx},Xp=A=>{if(Array.isArray(A)){Dd(4===A.length);const[e,t,n,r]=A;return va(e,t,n,r)}return"string"==typeof A?xx[A]:A},Rd=(A,e)=>t=>!!(Ba(t)&&SS.test(t)&&t.startsWith(A)||e&&Object.prototype.hasOwnProperty.call(t,e)),Jv=(A,e,t)=>n=>{if(!Ba(n))return n;const[r,o,i,a]=n.match(Ml);return{[A]:parseFloat(r),[e]:parseFloat(o),[t]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},Ix=A=>rn(0,255,A),rc={...Vn,transform:A=>Math.round(Ix(A))},Hn={test:Rd("rgb","red"),parse:Jv("red","green","blue"),transform:({red:A,green:e,blue:t,alpha:n=1})=>"rgba("+rc.transform(A)+", "+rc.transform(e)+", "+rc.transform(t)+", "+_o(Mo.transform(n))+")"};function bx(A){let e="",t="",n="",r="";return A.length>5?(e=A.substring(1,3),t=A.substring(3,5),n=A.substring(5,7),r=A.substring(7,9)):(e=A.substring(1,2),t=A.substring(2,3),n=A.substring(3,4),r=A.substring(4,5),e+=e,t+=t,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const hf={test:Rd("#"),parse:bx,transform:Hn.transform},Qi={test:Rd("hsl","hue"),parse:Jv("hue","saturation","lightness"),transform:({hue:A,saturation:e,lightness:t,alpha:n=1})=>"hsla("+Math.round(A)+", "+er.transform(_o(e))+", "+er.transform(_o(t))+", "+_o(Mo.transform(n))+")"},We={test:A=>Hn.test(A)||hf.test(A)||Qi.test(A),parse:A=>Hn.test(A)?Hn.parse(A):Qi.test(A)?Qi.parse(A):hf.parse(A),transform:A=>Ba(A)?A:A.hasOwnProperty("red")?Hn.transform(A):Qi.transform(A)},fe=(A,e,t)=>-t*A+t*e+A;function nc(A,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?A+6*(e-A)*t:t<.5?e:t<2/3?A+(e-A)*(2/3-t)*6:A}function Hx({hue:A,saturation:e,lightness:t,alpha:n}){A/=360,t/=100;let r=0,o=0,i=0;if(e/=100){const n=t<.5?t*(1+e):t+e-t*e,a=2*t-n;r=nc(a,n,A+1/3),o=nc(a,n,A),i=nc(a,n,A-1/3)}else r=o=i=t;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*i),alpha:n}}const ic=(A,e,t)=>{const n=A*A;return Math.sqrt(Math.max(0,t*(e*e-n)+n))},Tx=[hf,Hn,Qi],Lx=A=>Tx.find((e=>e.test(A)));function Jp(A){const e=Lx(A);let t=e.parse(A);return e===Qi&&(t=Hx(t)),t}const Yv=(A,e)=>{const t=Jp(A),n=Jp(e),r={...t};return A=>(r.red=ic(t.red,n.red,A),r.green=ic(t.green,n.green,A),r.blue=ic(t.blue,n.blue,A),r.alpha=fe(t.alpha,n.alpha,A),Hn.transform(r))};function Px(A){var e,t;return isNaN(A)&&Ba(A)&&((null===(e=A.match(Ml))||void 0===e?void 0:e.length)||0)+((null===(t=A.match(Cv))||void 0===t?void 0:t.length)||0)>0}const $v={regex:US,countKey:"Vars",token:"${v}",parse:me},Zv={regex:Cv,countKey:"Colors",token:"${c}",parse:We.parse},qv={regex:Ml,countKey:"Numbers",token:"${n}",parse:Vn.parse};function oc(A,{regex:e,countKey:t,token:n,parse:r}){const o=A.tokenised.match(e);o&&(A["num"+t]=o.length,A.tokenised=A.tokenised.replace(e,n),A.values.push(...o.map(r)))}function hl(A){const e=A.toString(),t={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return t.value.includes("var(--")&&oc(t,$v),oc(t,Zv),oc(t,qv),t}function Aw(A){return hl(A).values}function ew(A){const{values:e,numColors:t,numVars:n,tokenised:r}=hl(A),o=e.length;return A=>{let e=r;for(let r=0;r"number"==typeof A?0:A;function Ox(A){const e=Aw(A);return ew(A)(e.map(Dx))}const nn={test:Px,parse:Aw,createTransformer:ew,getAnimatableNone:Ox},tw=(A,e)=>t=>`${t>0?e:A}`;function rw(A,e){return"number"==typeof A?t=>fe(A,e,t):We.test(A)?Yv(A,e):A.startsWith("var(")?tw(A,e):iw(A,e)}const nw=(A,e)=>{const t=[...A],n=t.length,r=A.map(((A,t)=>rw(A,e[t])));return A=>{for(let e=0;e{const t={...A,...e},n={};for(const r in t)void 0!==A[r]&&void 0!==e[r]&&(n[r]=rw(A[r],e[r]));return A=>{for(const e in n)t[e]=n[e](A);return t}},iw=(A,e)=>{const t=nn.createTransformer(e),n=hl(A),r=hl(e);return n.numVars===r.numVars&&n.numColors===r.numColors&&n.numNumbers>=r.numNumbers?qr(nw(n.values,r.values),t):tw(A,e)},la=(A,e,t)=>{const n=e-A;return 0===n?1:(t-A)/n},Yp=(A,e)=>t=>fe(A,e,t);function Rx(A){return"number"==typeof A?Yp:"string"==typeof A?We.test(A)?Yv:iw:Array.isArray(A)?nw:"object"==typeof A?kx:Yp}function Kx(A,e,t){const n=[],r=t||Rx(A[0]),o=A.length-1;for(let t=0;te[0];A[0]>A[o-1]&&(A=[...A].reverse(),e=[...e].reverse());const i=Kx(e,n,r),a=i.length,s=e=>{let t=0;if(a>1)for(;ts(rn(A[0],A[o-1],e)):s}function Mx(A,e){const t=A[A.length-1];for(let n=1;n<=e;n++){const r=la(0,e,n);A.push(fe(t,1,r))}}function _x(A){const e=[0];return Mx(e,A.length-1),e}function Vx(A,e){return A.map((A=>A*e))}function Nx(A,e){return A.map((()=>e||Gv)).splice(0,A.length-1)}function gl({duration:A=300,keyframes:e,times:t,ease:n="easeInOut"}){const r=Fx(n)?n.map(Xp):Xp(n),o={done:!1,value:e[0]},i=ow(Vx(t&&t.length===e.length?t:_x(e),A),e,{ease:Array.isArray(r)?r:Nx(e,r)});return{calculatedDuration:A,next:e=>(o.value=i(e),o.done=e>=A,o)}}function aw(A,e){return e?A*(1e3/e):0}const Gx=5;function sw(A,e,t){const n=Math.max(e-Gx,0);return aw(t-A(n),e-n)}const ac=.001,jx=.01,$p=10,Wx=.05,zx=1;function Xx({duration:A=800,bounce:e=.25,velocity:t=0,mass:n=1}){let r,o;gx(A<=An($p));let i=1-e;i=rn(Wx,zx,i),A=rn(jx,$p,pr(A)),i<1?(r=e=>{const n=e*i,r=n*A,o=n-t,a=gf(e,i),s=Math.exp(-r);return ac-o/a*s},o=e=>{const n=e*i*A,o=n*t+t,a=Math.pow(i,2)*Math.pow(e,2)*A,s=Math.exp(-n),l=gf(Math.pow(e,2),i);return(-r(e)+ac>0?-1:1)*((o-a)*s)/l}):(r=e=>Math.exp(-e*A)*((e-t)*A+1)-ac,o=e=>Math.exp(-e*A)*(A*A*(t-e)));const a=Yx(r,o,5/A);if(A=An(A),isNaN(a))return{stiffness:100,damping:10,duration:A};{const e=Math.pow(a,2)*n;return{stiffness:e,damping:2*i*Math.sqrt(n*e),duration:A}}}const Jx=12;function Yx(A,e,t){let n=t;for(let t=1;tvoid 0!==A[e]))}function qx(A){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...A};if(!Zp(A,Zx)&&Zp(A,$x)){const t=Xx(A);e={...e,...t,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function lw({keyframes:A,restDelta:e,restSpeed:t,...n}){const r=A[0],o=A[A.length-1],i={done:!1,value:r},{stiffness:a,damping:s,mass:l,velocity:u,duration:c,isResolvedFromDuration:d}=qx(n),f=u?-pr(u):0,g=s/(2*Math.sqrt(a*l)),h=o-r,p=pr(Math.sqrt(a/l)),B=Math.abs(h)<5;let m;if(t||(t=B?.01:2),e||(e=B?.005:.5),g<1){const A=gf(p,g);m=e=>{const t=Math.exp(-g*p*e);return o-t*((f+g*p*h)/A*Math.sin(A*e)+h*Math.cos(A*e))}}else if(1===g)m=A=>o-Math.exp(-p*A)*(h+(f+p*h)*A);else{const A=p*Math.sqrt(g*g-1);m=e=>{const t=Math.exp(-g*p*e),n=Math.min(A*e,300);return o-t*((f+g*p*h)*Math.sinh(n)+A*h*Math.cosh(n))/A}}return{calculatedDuration:d&&c||null,next:A=>{const n=m(A);if(d)i.done=A>=c;else{let r=f;0!==A&&(r=g<1?sw(m,A,n):0);const a=Math.abs(r)<=t,s=Math.abs(o-n)<=e;i.done=a&&s}return i.value=i.done?o:n,i}}}function qp({keyframes:A,velocity:e=0,power:t=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:s,restDelta:l=.5,restSpeed:u}){const c=A[0],d={done:!1,value:c},f=A=>void 0===a?s:void 0===s||Math.abs(a-A)-g*Math.exp(-A/n),m=A=>p+B(A),w=A=>{const e=B(A),t=m(A);d.done=Math.abs(e)<=l,d.value=d.done?p:t};let y,v;const Q=A=>{(A=>void 0!==a&&As)(d.value)&&(y=A,v=lw({keyframes:[d.value,f(d.value)],velocity:sw(m,A,d.value),damping:r,stiffness:o,restDelta:l,restSpeed:u}))};return Q(0),{calculatedDuration:null,next:A=>{let e=!1;return!v&&void 0===y&&(e=!0,w(A),Q(A)),void 0!==y&&A>y?v.next(A-y):(!e&&w(A),d)}}}const AI=A=>{const e=({timestamp:e})=>A(e);return{start:()=>re.update(e,!0),stop:()=>yr(e),now:()=>Te.isProcessing?Te.timestamp:performance.now()}},AB=2e4;function eB(A){let e=0,t=A.next(e);for(;!t.done&&e=AB?1/0:e}const eI={decay:qp,inertia:qp,tween:gl,keyframes:gl,spring:lw};function pl({autoplay:A=!0,delay:e=0,driver:t=AI,keyframes:n,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:s,onStop:l,onComplete:u,onUpdate:c,...d}){let f,g,h=1,p=!1;const B=()=>{g=new Promise((A=>{f=A}))};let m;B();const w=eI[r]||gl;let y;w!==gl&&"number"!=typeof n[0]&&(y=ow([0,100],n,{clamp:!1}),n=[0,100]);const v=w({...d,keyframes:n});let Q;"mirror"===a&&(Q=w({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let b="idle",C=null,U=null,F=null;null===v.calculatedDuration&&o&&(v.calculatedDuration=eB(v));const{calculatedDuration:E}=v;let x=1/0,H=1/0;null!==E&&(x=E+i,H=x*(o+1)-i);let S=0;const I=A=>{if(null===U)return;h>0&&(U=Math.min(U,A)),h<0&&(U=Math.min(A-H/h,U)),S=null!==C?C:Math.round(A-U)*h;const t=S-e*(h>=0?1:-1),r=h>=0?t<0:t>H;S=Math.max(t,0),"finished"===b&&null===C&&(S=H);let s=S,l=v;if(o){const A=S/x;let e=Math.floor(A),t=A%1;!t&&A>=1&&(t=1),1===t&&e--,e=Math.min(e,o+1);const n=!!(e%2);n&&("reverse"===a?(t=1-t,i&&(t-=i/x)):"mirror"===a&&(l=Q));let r=rn(0,1,t);S>H&&(r="reverse"===a&&n?1:0),s=r*x}const u=r?{done:!1,value:n[0]}:l.next(s);y&&(u.value=y(u.value));let{done:d}=u;!r&&null!==E&&(d=h>=0?S>=H:S<=0);const f=null===C&&("finished"===b||"running"===b&&d);return c&&c(u.value),f&&P(),u},k=()=>{m&&m.stop(),m=void 0},L=()=>{b="idle",k(),f(),B(),U=F=null},P=()=>{b="finished",u&&u(),k(),f()},T=()=>{if(p)return;m||(m=t(I));const A=m.now();s&&s(),null!==C?U=A-C:(!U||"finished"===b)&&(U=A),"finished"===b&&B(),F=U,C=null,b="running",m.start()};A&&T();const O={then:(A,e)=>g.then(A,e),get time(){return pr(S)},set time(A){A=An(A),S=A,null===C&&m&&0!==h?U=m.now()-A/h:C=A},get duration(){const A=null===v.calculatedDuration?eB(v):v.calculatedDuration;return pr(A)},get speed(){return h},set speed(A){A===h||!m||(h=A,O.time=pr(S))},get state(){return b},play:T,pause:()=>{b="paused",C=S},stop:()=>{p=!0,"idle"!==b&&(b="idle",l&&l(),L())},cancel:()=>{null!==F&&I(F),L()},complete:()=>{b="finished"},sample:A=>(U=0,I(A))};return O}function tI(A){let e;return()=>(void 0===e&&(e=A()),e)}const rI=tI((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),nI=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Fs=10,iI=2e4,oI=(A,e)=>"spring"===e.type||"backgroundColor"===A||!Mv(e.ease);function aI(A,e,{onUpdate:t,onComplete:n,...r}){if(!rI()||!nI.has(e)||r.repeatDelay||"mirror"===r.repeatType||0===r.damping||"inertia"===r.type)return!1;let o,i,a=!1;const s=()=>{i=new Promise((A=>{o=A}))};s();let{keyframes:l,duration:u=300,ease:c,times:d}=r;if(oI(e,r)){const A=pl({...r,repeat:0,delay:0});let e={done:!1,value:l[0]};const t=[];let n=0;for(;!e.done&&nf.cancel(),h=()=>{re.update(g),o(),s()};return f.onfinish=()=>{A.set(mx(l,r)),n&&n(),h()},{then:(A,e)=>i.then(A,e),attachTimeline:A=>(f.timeline=A,f.onfinish=null,me),get time(){return pr(f.currentTime||0)},set time(A){f.currentTime=An(A)},get speed(){return f.playbackRate},set speed(A){f.playbackRate=A},get duration(){return pr(u)},play:()=>{a||(f.play(),yr(g))},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;const{currentTime:e}=f;if(e){const t=pl({...r,autoplay:!1});A.setWithVelocity(t.sample(e-10).value,t.sample(e).value,10)}h()},complete:()=>f.finish(),cancel:h}}function sI({keyframes:A,delay:e,onUpdate:t,onComplete:n}){const r=()=>(t&&t(A[A.length-1]),n&&n(),{time:0,speed:1,duration:0,play:me,pause:me,stop:me,then:A=>(A(),Promise.resolve()),cancel:me,complete:me});return e?pl({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}const lI={type:"spring",stiffness:500,damping:25,restSpeed:10},uI=A=>({type:"spring",stiffness:550,damping:0===A?2*Math.sqrt(550):30,restSpeed:10}),cI={type:"keyframes",duration:.8},fI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dI=(A,{keyframes:e})=>e.length>2?cI:_n.has(A)?A.startsWith("scale")?uI(e[1]):lI:fI,pf=(A,e)=>"zIndex"!==A&&!("number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!nn.test(e)&&"0"!==e||e.startsWith("url("))),hI=new Set(["brightness","contrast","saturate","opacity"]);function gI(A){const[e,t]=A.slice(0,-1).split("(");if("drop-shadow"===e)return A;const[n]=t.match(Ml)||[];if(!n)return A;const r=t.replace(n,"");let o=hI.has(e)?1:0;return n!==t&&(o*=100),e+"("+o+r+")"}const pI=/([a-z-]*)\(.*?\)/g,Bf={...nn,getAnimatableNone:A=>{const e=A.match(pI);return e?e.map(gI).join(" "):A}},BI={...Qv,color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:Bf,WebkitFilter:Bf},Kd=A=>BI[A];function uw(A,e){let t=Kd(A);return t!==Bf&&(t=nn),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const cw=A=>/^0[^.\s]+$/.test(A);function mI(A){return"number"==typeof A?0===A:null!==A?"none"===A||"0"===A||cw(A):void 0}function vI(A,e,t,n){const r=pf(e,t);let o;o=Array.isArray(t)?[...t]:[null,t];const i=void 0!==n.from?n.from:A.get();let a;const s=[];for(let A=0;Ar=>{const o=fw(n,A)||{},i=o.delay||n.delay||0;let{elapsed:a=0}=n;a-=An(i);const s=vI(e,A,t,o),l=s[0],u=s[s.length-1],c=pf(A,l),d=pf(A,u);let f={keyframes:s,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(wI(o)||(f={...f,...dI(A,f)}),f.duration&&(f.duration=An(f.duration)),f.repeatDelay&&(f.repeatDelay=An(f.repeatDelay)),!c||!d||px.current||!1===o.type)return sI(f);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const t=aI(e,A,f);if(t)return t}return pl(f)};function Bl(A){return!(!at(A)||!A.add)}const dw=A=>/^\-?\d*\.?\d+$/.test(A);function _d(A,e){-1===A.indexOf(e)&&A.push(e)}function Vd(A,e){const t=A.indexOf(e);t>-1&&A.splice(t,1)}class Nd{constructor(){this.subscriptions=[]}add(A){return _d(this.subscriptions,A),()=>Vd(this.subscriptions,A)}notify(A,e,t){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](A,e,t);else for(let r=0;r!isNaN(parseFloat(A));class CI{constructor(A,e={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(A,e=!0)=>{this.prev=this.current,this.current=A;const{delta:t,timestamp:n}=Te;this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n,re.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>re.postRender(this.velocityCheck),this.velocityCheck=({timestamp:A})=>{A!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=A,this.canTrackVelocity=yI(this.current),this.owner=e.owner}onChange(A){return this.on("change",A)}on(A,e){this.events[A]||(this.events[A]=new Nd);const t=this.events[A].add(e);return"change"===A?()=>{t(),re.read((()=>{this.events.change.getSize()||this.stop()}))}:t}clearListeners(){for(const A in this.events)this.events[A].clear()}attach(A,e){this.passiveEffect=A,this.stopPassiveEffect=e}set(A,e=!0){e&&this.passiveEffect?this.passiveEffect(A,this.updateAndNotify):this.updateAndNotify(A,e)}setWithVelocity(A,e,t){this.set(e),this.prev=A,this.timeDelta=t}jump(A){this.updateAndNotify(A),this.prev=A,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?aw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(A){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=A(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ki(A,e){return new CI(A,e)}const hw=A=>e=>e.test(A),QI={test:A=>"auto"===A,parse:A=>A},gw=[Vn,TA,er,kr,IS,xS,QI],Co=A=>gw.find(hw(A)),FI=[...gw,We,nn],UI=A=>FI.find(hw(A));function EI(A,e,t){A.hasValue(e)?A.getValue(e).set(t):A.addValue(e,Ki(t))}function SI(A,e){const t=Vl(A,e);let{transitionEnd:n={},transition:r={},...o}=t?A.makeTargetAnimatable(t,!1):{};o={...o,...n};for(const e in o)EI(A,e,NS(o[e]))}function xI(A,e,t){var n,r;const o=Object.keys(e).filter((e=>!A.hasValue(e))),i=o.length;if(i)for(let a=0;as.remove(e)))),l.push(c)}return i&&Promise.all(l).then((()=>{i&&SI(A,i)})),l}function mf(A,e,t={}){const n=Vl(A,e,t.custom);let{transition:r=A.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(r=t.transitionOverride);const o=n?()=>Promise.all(pw(A,n,t)):()=>Promise.resolve(),i=A.variantChildren&&A.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=r;return TI(A,e,o+n,i,a,t)}:()=>Promise.resolve(),{when:a}=r;if(a){const[A,e]="beforeChildren"===a?[o,i]:[i,o];return A().then((()=>e()))}return Promise.all([o(),i(t.delay)])}function TI(A,e,t=0,n=0,r=1,o){const i=[],a=(A.variantChildren.size-1)*n,s=1===r?(A=0)=>A*n:(A=0)=>a-A*n;return Array.from(A.variantChildren).sort(LI).forEach(((A,n)=>{A.notify("AnimationStart",e),i.push(mf(A,e,{...o,delay:t+s(n)}).then((()=>A.notify("AnimationComplete",e))))})),Promise.all(i)}function LI(A,e){return A.sortNodePosition(e)}function PI(A,e,t={}){let n;if(A.notify("AnimationStart",e),Array.isArray(e)){const r=e.map((e=>mf(A,e,t)));n=Promise.all(r)}else if("string"==typeof e)n=mf(A,e,t);else{const r="function"==typeof e?Vl(A,e,t.custom):e;n=Promise.all(pw(A,r,t))}return n.then((()=>A.notify("AnimationComplete",e)))}const DI=[...Fd].reverse(),OI=Fd.length;function kI(A){return e=>Promise.all(e.map((({animation:e,options:t})=>PI(A,e,t))))}function RI(A){let e=kI(A);const t=MI();let n=!0;const r=(e,t)=>{const n=Vl(A,t);if(n){const{transition:A,transitionEnd:t,...r}=n;e={...e,...r,...t}}return e};function o(o,i){const a=A.getProps(),s=A.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let e=0;ed&&p;const v=Array.isArray(h)?h:[h];let Q=v.reduce(r,{});!1===B&&(Q={});const{prevResolvedValues:b={}}=g,C={...b,...Q},U=A=>{y=!0,u.delete(A),g.needsAnimating[A]=!0};for(const A in C){const e=Q[A],t=b[A];c.hasOwnProperty(A)||(e!==t?dl(e)&&dl(t)?!Rv(e,t)||w?U(A):g.protectedKeys[A]=!0:void 0!==e?U(A):u.add(A):void 0!==e&&u.has(A)?U(A):g.protectedKeys[A]=!0)}g.prevProp=h,g.prevResolvedValues=Q,g.isActive&&(c={...c,...Q}),n&&A.blockInitialAnimation&&(y=!1),y&&!m&&l.push(...v.map((A=>({animation:A,options:{type:f,...o}}))))}if(u.size){const e={};u.forEach((t=>{const n=A.getBaseTarget(t);void 0!==n&&(e[t]=n)})),l.push({animation:e})}let f=!!l.length;return n&&!1===a.initial&&!A.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,n,r){var i;if(t[e].isActive===n)return Promise.resolve();null===(i=A.variantChildren)||void 0===i||i.forEach((A=>{var t;return null===(t=A.animationState)||void 0===t?void 0:t.setActive(e,n)})),t[e].isActive=n;const a=o(r,e);for(const A in t)t[A].protectedKeys={};return a},setAnimateFunction:function(t){e=t(A)},getState:()=>t}}function KI(A,e){return"string"==typeof e?e!==A:!!Array.isArray(e)&&!Rv(e,A)}function Qn(A=!1){return{isActive:A,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function MI(){return{animate:Qn(!0),whileInView:Qn(),whileHover:Qn(),whileTap:Qn(),whileDrag:Qn(),whileFocus:Qn(),exit:Qn()}}class _I extends ln{constructor(A){super(A),A.animationState||(A.animationState=RI(A))}updateAnimationControlsSubscription(){const{animate:A}=this.node.getProps();this.unmount(),Rl(A)&&(this.unmount=A.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:A}=this.node.getProps(),{animate:e}=this.node.prevProps||{};A!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let VI=0;class NI extends ln{constructor(){super(...arguments),this.id=VI++}update(){if(!this.node.presenceContext)return;const{isPresent:A,onExitComplete:e,custom:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||A===n)return;const r=this.node.animationState.setActive("exit",!A,{custom:t??this.node.getProps().custom});e&&!A&&r.then((()=>e(this.id)))}mount(){const{register:A}=this.node.presenceContext||{};A&&(this.unmount=A(this.id))}unmount(){}}const GI={animation:{Feature:_I},exit:{Feature:NI}},tB=(A,e)=>Math.abs(A-e);function jI(A,e){const t=tB(A.x,e.x),n=tB(A.y,e.y);return Math.sqrt(t**2+n**2)}class Bw{constructor(A,e,{transformPagePoint:t}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const A=lc(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,t=jI(A.offset,{x:0,y:0})>=3;if(!e&&!t)return;const{point:n}=A,{timestamp:r}=Te;this.history.push({...n,timestamp:r});const{onStart:o,onMove:i}=this.handlers;e||(o&&o(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,A)},this.handlePointerMove=(A,e)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=sc(e,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(A,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:t,onSessionEnd:n}=this.handlers,r=lc("pointercancel"===A.type?this.lastMoveEventInfo:sc(e,this.transformPagePoint),this.history);this.startEvent&&t&&t(A,r),n&&n(A,r)},!Lv(A))return;this.handlers=e,this.transformPagePoint=t;const n=sc(_l(A),this.transformPagePoint),{point:r}=n,{timestamp:o}=Te;this.history=[{...r,timestamp:o}];const{onSessionStart:i}=e;i&&i(A,lc(n,this.history)),this.removeListeners=qr(gr(window,"pointermove",this.handlePointerMove),gr(window,"pointerup",this.handlePointerUp),gr(window,"pointercancel",this.handlePointerUp))}updateHandlers(A){this.handlers=A}end(){this.removeListeners&&this.removeListeners(),yr(this.updatePoint)}}function sc(A,e){return e?{point:e(A.point)}:A}function rB(A,e){return{x:A.x-e.x,y:A.y-e.y}}function lc({point:A},e){return{point:A,delta:rB(A,mw(e)),offset:rB(A,WI(e)),velocity:zI(e,.1)}}function WI(A){return A[0]}function mw(A){return A[A.length-1]}function zI(A,e){if(A.length<2)return{x:0,y:0};let t=A.length-1,n=null;const r=mw(A);for(;t>=0&&(n=A[t],!(r.timestamp-n.timestamp>An(e)));)t--;if(!n)return{x:0,y:0};const o=pr(r.timestamp-n.timestamp);if(0===o)return{x:0,y:0};const i={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ht(A){return A.max-A.min}function vf(A,e=0,t=.01){return Math.abs(A-e)<=t}function nB(A,e,t,n=.5){A.origin=n,A.originPoint=fe(e.min,e.max,A.origin),A.scale=ht(t)/ht(e),(vf(A.scale,1,1e-4)||isNaN(A.scale))&&(A.scale=1),A.translate=fe(t.min,t.max,A.origin)-A.originPoint,(vf(A.translate)||isNaN(A.translate))&&(A.translate=0)}function Vo(A,e,t,n){nB(A.x,e.x,t.x,n?n.originX:void 0),nB(A.y,e.y,t.y,n?n.originY:void 0)}function iB(A,e,t){A.min=t.min+e.min,A.max=A.min+ht(e)}function XI(A,e,t){iB(A.x,e.x,t.x),iB(A.y,e.y,t.y)}function oB(A,e,t){A.min=e.min-t.min,A.max=A.min+ht(e)}function No(A,e,t){oB(A.x,e.x,t.x),oB(A.y,e.y,t.y)}function JI(A,{min:e,max:t},n){return void 0!==e&&At&&(A=n?fe(t,A,n.max):Math.min(A,t)),A}function aB(A,e,t){return{min:void 0!==e?A.min+e:void 0,max:void 0!==t?A.max+t-(A.max-A.min):void 0}}function YI(A,{top:e,left:t,bottom:n,right:r}){return{x:aB(A.x,t,r),y:aB(A.y,e,n)}}function sB(A,e){let t=e.min-A.min,n=e.max-A.max;return e.max-e.minn?t=la(e.min,e.max-n,A.min):n>r&&(t=la(A.min,A.max-r,e.min)),rn(0,1,t)}function qI(A,e){const t={};return void 0!==e.min&&(t.min=e.min-A.min),void 0!==e.max&&(t.max=e.max-A.min),t}const wf=.35;function Ab(A=wf){return!1===A?A=0:!0===A&&(A=wf),{x:lB(A,"left","right"),y:lB(A,"top","bottom")}}function lB(A,e,t){return{min:uB(A,e),max:uB(A,t)}}function uB(A,e){return"number"==typeof A?A:A[e]||0}const cB=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fi=()=>({x:cB(),y:cB()}),fB=()=>({min:0,max:0}),Qe=()=>({x:fB(),y:fB()});function $t(A){return[A("x"),A("y")]}function vw({top:A,left:e,right:t,bottom:n}){return{x:{min:e,max:t},y:{min:A,max:n}}}function eb({x:A,y:e}){return{top:e.min,right:A.max,bottom:e.max,left:A.min}}function tb(A,e){if(!e)return A;const t=e({x:A.left,y:A.top}),n=e({x:A.right,y:A.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function uc(A){return void 0===A||1===A}function yf({scale:A,scaleX:e,scaleY:t}){return!uc(A)||!uc(e)||!uc(t)}function En(A){return yf(A)||ww(A)||A.z||A.rotate||A.rotateX||A.rotateY}function ww(A){return dB(A.x)||dB(A.y)}function dB(A){return A&&"0%"!==A}function ml(A,e,t){return t+e*(A-t)}function hB(A,e,t,n,r){return void 0!==r&&(A=ml(A,r,n)),ml(A,t,n)+e}function Cf(A,e=0,t=1,n,r){A.min=hB(A.min,e,t,n,r),A.max=hB(A.max,e,t,n,r)}function yw(A,{x:e,y:t}){Cf(A.x,e.translate,e.scale,e.originPoint),Cf(A.y,t.translate,t.scale,t.originPoint)}function rb(A,e,t,n=!1){const r=t.length;if(!r)return;let o,i;e.x=e.y=1;for(let a=0;a1.0000000000001||A<.999999999999?A:1}function Mr(A,e){A.min=A.min+e,A.max=A.max+e}function pB(A,e,[t,n,r]){const o=void 0!==e[r]?e[r]:.5,i=fe(A.min,A.max,o);Cf(A,e[t],e[n],i,e.scale)}const nb=["x","scaleX","originX"],ib=["y","scaleY","originY"];function Ui(A,e){pB(A.x,e,nb),pB(A.y,e,ib)}function Cw(A,e){return vw(tb(A.getBoundingClientRect(),e))}function ob(A,e,t){const n=Cw(A,t),{scroll:r}=e;return r&&(Mr(n.x,r.offset.x),Mr(n.y,r.offset.y)),n}const ab=new WeakMap;class sb{constructor(A){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qe(),this.visualElement=A}start(A,{snapToCursor:e=!1}={}){const{presenceContext:t}=this.visualElement;t&&!1===t.isPresent||(this.panSession=new Bw(A,{onSessionStart:A=>{this.stopAnimation(),e&&this.snapToCursor(_l(A,"page").point)},onStart:(A,e)=>{const{drag:t,dragPropagation:n,onDragStart:r}=this.getProps();if(t&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Dv(t),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$t((A=>{let e=this.getAxisMotionValue(A).get()||0;if(er.test(e)){const{projection:t}=this.visualElement;if(t&&t.layout){const n=t.layout.layoutBox[A];n&&(e=ht(n)*(parseFloat(e)/100))}}this.originPoint[A]=e})),r&&re.update((()=>r(A,e)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(A,e)=>{const{dragPropagation:t,dragDirectionLock:n,onDirectionLock:r,onDrag:o}=this.getProps();if(!t&&!this.openGlobalLock)return;const{offset:i}=e;if(n&&null===this.currentDirection)return this.currentDirection=lb(i),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",e.point,i),this.updateAxis("y",e.point,i),this.visualElement.render(),o&&o(A,e)},onSessionEnd:(A,e)=>this.stop(A,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(A,e){const t=this.isDragging;if(this.cancel(),!t)return;const{velocity:n}=e;this.startAnimation(n);const{onDragEnd:r}=this.getProps();r&&re.update((()=>r(A,e)))}cancel(){this.isDragging=!1;const{projection:A,animationState:e}=this.visualElement;A&&(A.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(A,e,t){const{drag:n}=this.getProps();if(!t||!Us(A,n,this.currentDirection))return;const r=this.getAxisMotionValue(A);let o=this.originPoint[A]+t[A];this.constraints&&this.constraints[A]&&(o=JI(o,this.constraints[A],this.elastic[A])),r.set(o)}resolveConstraints(){const{dragConstraints:A,dragElastic:e}=this.getProps(),{layout:t}=this.visualElement.projection||{},n=this.constraints;A&&Ci(A)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!A||!t)&&YI(t.layoutBox,A),this.elastic=Ab(e),n!==this.constraints&&t&&this.constraints&&!this.hasMutatedConstraints&&$t((A=>{this.getAxisMotionValue(A)&&(this.constraints[A]=qI(t.layoutBox[A],this.constraints[A]))}))}resolveRefConstraints(){const{dragConstraints:A,onMeasureDragConstraints:e}=this.getProps();if(!A||!Ci(A))return!1;const t=A.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const r=ob(t,n.root,this.visualElement.getTransformPagePoint());let o=$I(n.layout.layoutBox,r);if(e){const A=e(eb(o));this.hasMutatedConstraints=!!A,A&&(o=vw(A))}return o}startAnimation(A){const{drag:e,dragMomentum:t,dragElastic:n,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},s=$t((i=>{if(!Us(i,e,this.currentDirection))return;let s=a&&a[i]||{};o&&(s={min:0,max:0});const l=n?200:1e6,u=n?40:1e7,c={type:"inertia",velocity:t?A[i]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...s};return this.startAxisValueAnimation(i,c)}));return Promise.all(s).then(i)}startAxisValueAnimation(A,e){const t=this.getAxisMotionValue(A);return t.start(Md(A,t,0,e))}stopAnimation(){$t((A=>this.getAxisMotionValue(A).stop()))}getAxisMotionValue(A){const e="_drag"+A.toUpperCase(),t=this.visualElement.getProps();return t[e]||this.visualElement.getValue(A,(t.initial?t.initial[A]:void 0)||0)}snapToCursor(A){$t((e=>{const{drag:t}=this.getProps();if(!Us(e,t,this.currentDirection))return;const{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){const{min:t,max:o}=n.layout.layoutBox[e];r.set(A[e]-fe(t,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:A,dragConstraints:e}=this.getProps(),{projection:t}=this.visualElement;if(!Ci(e)||!t||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};$t((A=>{const e=this.getAxisMotionValue(A);if(e){const t=e.get();n[A]=ZI({min:t,max:t},this.constraints[A])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",t.root&&t.root.updateScroll(),t.updateLayout(),this.resolveConstraints(),$t((e=>{if(!Us(e,A,null))return;const t=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];t.set(fe(r,o,n[e]))}))}addListeners(){if(!this.visualElement.current)return;ab.set(this.visualElement,this);const A=gr(this.visualElement.current,"pointerdown",(A=>{const{drag:e,dragListener:t=!0}=this.getProps();e&&t&&this.start(A)})),e=()=>{const{dragConstraints:A}=this.getProps();Ci(A)&&(this.constraints=this.resolveRefConstraints())},{projection:t}=this.visualElement,n=t.addEventListener("measure",e);t&&!t.layout&&(t.root&&t.root.updateScroll(),t.updateLayout()),e();const r=dr(window,"resize",(()=>this.scalePositionWithinConstraints())),o=t.addEventListener("didUpdate",(({delta:A,hasLayoutChanged:e})=>{this.isDragging&&e&&($t((e=>{const t=this.getAxisMotionValue(e);t&&(this.originPoint[e]+=A[e].translate,t.set(t.get()+A[e].translate))})),this.visualElement.render())}));return()=>{r(),A(),n(),o&&o()}}getProps(){const A=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:t=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:o=wf,dragMomentum:i=!0}=A;return{...A,drag:e,dragDirectionLock:t,dragPropagation:n,dragConstraints:r,dragElastic:o,dragMomentum:i}}}function Us(A,e,t){return!(!0!==e&&e!==A||null!==t&&t!==A)}function lb(A,e=10){let t=null;return Math.abs(A.y)>e?t="y":Math.abs(A.x)>e&&(t="x"),t}class ub extends ln{constructor(A){super(A),this.removeGroupControls=me,this.removeListeners=me,this.controls=new sb(A)}mount(){const{dragControls:A}=this.node.getProps();A&&(this.removeGroupControls=A.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||me}unmount(){this.removeGroupControls(),this.removeListeners()}}const BB=A=>(e,t)=>{A&&re.update((()=>A(e,t)))};class cb extends ln{constructor(){super(...arguments),this.removePointerDownListener=me}onPointerDown(A){this.session=new Bw(A,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:A,onPanStart:e,onPan:t,onPanEnd:n}=this.node.getProps();return{onSessionStart:BB(A),onStart:BB(e),onMove:t,onEnd:(A,e)=>{delete this.session,n&&re.update((()=>n(A,e)))}}}mount(){this.removePointerDownListener=gr(this.node.current,"pointerdown",(A=>this.onPointerDown(A)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function fb(){const A=AA.useContext(Ol);if(null===A)return[!0,null];const{isPresent:e,onExitComplete:t,register:n}=A,r=AA.useId();return AA.useEffect((()=>n(r)),[]),!e&&t?[!1,()=>t&&t(r)]:[!0]}const Ms={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function mB(A,e){return e.max===e.min?0:A/(e.max-e.min)*100}const Qo={correct:(A,e)=>{if(!e.target)return A;if("string"==typeof A){if(!TA.test(A))return A;A=parseFloat(A)}return`${mB(A,e.target.x)}% ${mB(A,e.target.y)}%`}},db={correct:(A,{treeScale:e,projectionDelta:t})=>{const n=A,r=nn.parse(A);if(r.length>5)return n;const o=nn.createTransformer(A),i="number"!=typeof r[0]?1:0,a=t.x.scale*e.x,s=t.y.scale*e.y;r[0+i]/=a,r[1+i]/=s;const l=fe(a,s,.5);return"number"==typeof r[2+i]&&(r[2+i]/=l),"number"==typeof r[3+i]&&(r[3+i]/=l),o(r)}};class hb extends Tf.Component{componentDidMount(){const{visualElement:A,layoutGroup:e,switchLayoutGroup:t,layoutId:n}=this.props,{projection:r}=A;yS(gb),r&&(e.group&&e.group.add(r),t&&t.register&&n&&t.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Ms.hasEverUpdated=!0}getSnapshotBeforeUpdate(A){const{layoutDependency:e,visualElement:t,drag:n,isPresent:r}=this.props,o=t.projection;return o&&(o.isPresent=r,n||A.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),A.isPresent!==r&&(r?o.promote():o.relegate()||re.postRender((()=>{const A=o.getStack();(!A||!A.members.length)&&this.safeToRemove()})))),null}componentDidUpdate(){const{projection:A}=this.props.visualElement;A&&(A.root.didUpdate(),queueMicrotask((()=>{!A.currentAnimation&&A.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:A,layoutGroup:e,switchLayoutGroup:t}=this.props,{projection:n}=A;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),t&&t.deregister&&t.deregister(n))}safeToRemove(){const{safeToRemove:A}=this.props;A&&A()}render(){return null}}function Qw(A){const[e,t]=fb(),n=AA.useContext(Ed);return Tf.createElement(hb,{...A,layoutGroup:n,switchLayoutGroup:AA.useContext(mv),isPresent:e,safeToRemove:t})}const gb={borderRadius:{...Qo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qo,borderTopRightRadius:Qo,borderBottomLeftRadius:Qo,borderBottomRightRadius:Qo,boxShadow:db},Fw=["TopLeft","TopRight","BottomLeft","BottomRight"],pb=Fw.length,vB=A=>"string"==typeof A?parseFloat(A):A,wB=A=>"number"==typeof A||TA.test(A);function Bb(A,e,t,n,r,o){r?(A.opacity=fe(0,void 0!==t.opacity?t.opacity:1,mb(n)),A.opacityExit=fe(void 0!==e.opacity?e.opacity:1,0,vb(n))):o&&(A.opacity=fe(void 0!==e.opacity?e.opacity:1,void 0!==t.opacity?t.opacity:1,n));for(let r=0;rne?1:t(la(A,e,n))}function CB(A,e){A.min=e.min,A.max=e.max}function Ft(A,e){CB(A.x,e.x),CB(A.y,e.y)}function QB(A,e,t,n,r){return A=ml(A-=e,1/t,n),void 0!==r&&(A=ml(A,1/r,n)),A}function wb(A,e=0,t=1,n=.5,r,o=A,i=A){if(er.test(e)&&(e=parseFloat(e),e=fe(i.min,i.max,e/100)-i.min),"number"!=typeof e)return;let a=fe(o.min,o.max,n);A===o&&(a-=e),A.min=QB(A.min,e,t,a,r),A.max=QB(A.max,e,t,a,r)}function FB(A,e,[t,n,r],o,i){wb(A,e[t],e[n],e[r],e.scale,o,i)}const yb=["x","scaleX","originX"],Cb=["y","scaleY","originY"];function UB(A,e,t,n){FB(A.x,e,yb,t?t.x:void 0,n?n.x:void 0),FB(A.y,e,Cb,t?t.y:void 0,n?n.y:void 0)}function EB(A){return 0===A.translate&&1===A.scale}function Ew(A){return EB(A.x)&&EB(A.y)}function Qb(A,e){return A.x.min===e.x.min&&A.x.max===e.x.max&&A.y.min===e.y.min&&A.y.max===e.y.max}function Sw(A,e){return Math.round(A.x.min)===Math.round(e.x.min)&&Math.round(A.x.max)===Math.round(e.x.max)&&Math.round(A.y.min)===Math.round(e.y.min)&&Math.round(A.y.max)===Math.round(e.y.max)}function SB(A){return ht(A.x)/ht(A.y)}class Fb{constructor(){this.members=[]}add(A){_d(this.members,A),A.scheduleRender()}remove(A){if(Vd(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){const A=this.members[this.members.length-1];A&&this.promote(A)}}relegate(A){const e=this.members.findIndex((e=>A===e));if(0===e)return!1;let t;for(let A=e;A>=0;A--){const e=this.members[A];if(!1!==e.isPresent){t=e;break}}return!!t&&(this.promote(t),!0)}promote(A,e){const t=this.lead;if(A!==t&&(this.prevLead=t,this.lead=A,A.show(),t)){t.instance&&t.scheduleRender(),A.scheduleRender(),A.resumeFrom=t,e&&(A.resumeFrom.preserveOpacity=!0),t.snapshot&&(A.snapshot=t.snapshot,A.snapshot.latestValues=t.animationValues||t.latestValues),A.root&&A.root.isUpdating&&(A.isLayoutDirty=!0);const{crossfade:n}=A.options;!1===n&&t.hide()}}exitAnimationComplete(){this.members.forEach((A=>{const{options:e,resumingFrom:t}=A;e.onExitComplete&&e.onExitComplete(),t&&t.options.onExitComplete&&t.options.onExitComplete()}))}scheduleRender(){this.members.forEach((A=>{A.instance&&A.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xB(A,e,t){let n="";const r=A.x.translate/e.x,o=A.y.translate/e.y;if((r||o)&&(n=`translate3d(${r}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),t){const{rotate:A,rotateX:e,rotateY:r}=t;A&&(n+=`rotate(${A}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}const i=A.x.scale*e.x,a=A.y.scale*e.y;return(1!==i||1!==a)&&(n+=`scale(${i}, ${a})`),n||"none"}const Ub=(A,e)=>A.depth-e.depth;class Eb{constructor(){this.children=[],this.isDirty=!1}add(A){_d(this.children,A),this.isDirty=!0}remove(A){Vd(this.children,A),this.isDirty=!0}forEach(A){this.isDirty&&this.children.sort(Ub),this.isDirty=!1,this.children.forEach(A)}}function Sb(A,e){const t=performance.now(),n=({timestamp:r})=>{const o=r-t;o>=e&&(yr(n),A(o-e))};return re.read(n,!0),()=>yr(n)}function xb(A){window.MotionDebug&&window.MotionDebug.record(A)}function Ib(A){return A instanceof SVGElement&&"svg"!==A.tagName}function bb(A,e,t){const n=at(A)?A:Ki(A);return n.start(Md("",n,e,t)),n.animation}const IB=["","X","Y","Z"],bB=1e3;let Hb=0;const Sn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function xw({attachResizeListener:A,defaultParent:e,measureScroll:t,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(A={},t=(null==e?void 0:e())){this.id=Hb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Sn.totalNodes=Sn.resolvedTargetDeltas=Sn.recalculatedProjection=0,this.nodes.forEach(Pb),this.nodes.forEach(Kb),this.nodes.forEach(Mb),this.nodes.forEach(Db),xb(Sn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=A,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let A=0;Athis.root.updateBlockedByResize=!1;A(e,(()=>{this.root.updateBlockedByResize=!0,t&&t(),t=Sb(n,250),Ms.hasAnimatedSinceResize&&(Ms.hasAnimatedSinceResize=!1,this.nodes.forEach(TB))}))}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||r)&&this.addEventListener("didUpdate",(({delta:A,hasLayoutChanged:e,hasRelativeTargetChanged:t,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||o.getDefaultTransition()||jb,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=o.getProps(),s=!this.targetLayout||!Sw(this.targetLayout,n)||t,l=!e&&t;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(s||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(A,l);const e={...fw(r,"layout"),onPlay:i,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||TB(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const A=this.getStack();A&&A.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_b),this.animationId++)}getTransformTemplate(){const{visualElement:A}=this.options;return A&&A.getProps().transformTemplate}willUpdate(A=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;Athis.update())))}clearAllSnapshots(){this.nodes.forEach(Ob),this.sharedNodes.forEach(Vb)}scheduleUpdateProjection(){re.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){re.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let A=0;A{const t=e/1e3;LB(o.x,A.x,t),LB(o.y,A.y,t),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(No(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Nb(this.relativeTarget,this.relativeTargetOrigin,i,t),c&&Qb(this.relativeTarget,c)&&(this.isProjectionDirty=!1),c||(c=Qe()),Ft(c,this.relativeTarget)),a&&(this.animationValues=r,Bb(r,n,this.latestValues,t,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=t},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(A){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update((()=>{Ms.hasAnimatedSinceResize=!0,this.currentAnimation=bb(0,bB,{...A,onUpdate:e=>{this.mixTargetDelta(e),A.onUpdate&&A.onUpdate(e)},onComplete:()=>{A.onComplete&&A.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const A=this.getStack();A&&A.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bB),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const A=this.getLead();let{targetWithTransforms:e,target:t,layout:n,latestValues:r}=A;if(e&&t&&n){if(this!==A&&this.layout&&n&&Iw(this.options.animationType,this.layout.layoutBox,n.layoutBox)){t=this.target||Qe();const e=ht(this.layout.layoutBox.x);t.x.min=A.target.x.min,t.x.max=t.x.min+e;const n=ht(this.layout.layoutBox.y);t.y.min=A.target.y.min,t.y.max=t.y.min+n}Ft(e,t),Ui(e,r),Vo(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(A,e){this.sharedNodes.has(A)||this.sharedNodes.set(A,new Fb),this.sharedNodes.get(A).add(e);const t=e.options.initialPromotionConfig;e.promote({transition:t?t.transition:void 0,preserveFollowOpacity:t&&t.shouldPreserveFollowOpacity?t.shouldPreserveFollowOpacity(e):void 0})}isLead(){const A=this.getStack();return!A||A.lead===this}getLead(){var A;const{layoutId:e}=this.options;return e&&(null===(A=this.getStack())||void 0===A?void 0:A.lead)||this}getPrevLead(){var A;const{layoutId:e}=this.options;return e?null===(A=this.getStack())||void 0===A?void 0:A.prevLead:void 0}getStack(){const{layoutId:A}=this.options;if(A)return this.root.sharedNodes.get(A)}promote({needsReset:A,transition:e,preserveFollowOpacity:t}={}){const n=this.getStack();n&&n.promote(this,t),A&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const A=this.getStack();return!!A&&A.relegate(this)}resetRotation(){const{visualElement:A}=this.options;if(!A)return;let e=!1;const{latestValues:t}=A;if((t.rotate||t.rotateX||t.rotateY||t.rotateZ)&&(e=!0),!e)return;const n={};for(let e=0;e{var e;return null===(e=A.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(HB),this.root.sharedNodes.clear()}}}function Tb(A){A.updateLayout()}function Lb(A){var e;const t=(null===(e=A.resumeFrom)||void 0===e?void 0:e.snapshot)||A.snapshot;if(A.isLead()&&A.layout&&t&&A.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=A.layout,{animationType:r}=A.options,o=t.source!==A.layout.source;"size"===r?$t((A=>{const n=o?t.measuredBox[A]:t.layoutBox[A],r=ht(n);n.min=e[A].min,n.max=n.min+r})):Iw(r,t.layoutBox,e)&&$t((n=>{const r=o?t.measuredBox[n]:t.layoutBox[n],i=ht(e[n]);r.max=r.min+i,A.relativeTarget&&!A.currentAnimation&&(A.isProjectionDirty=!0,A.relativeTarget[n].max=A.relativeTarget[n].min+i)}));const i=Fi();Vo(i,e,t.layoutBox);const a=Fi();o?Vo(a,A.applyTransform(n,!0),t.measuredBox):Vo(a,e,t.layoutBox);const s=!Ew(i);let l=!1;if(!A.resumeFrom){const n=A.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:r,layout:o}=n;if(r&&o){const i=Qe();No(i,t.layoutBox,r.layoutBox);const a=Qe();No(a,e,o.layoutBox),Sw(i,a)||(l=!0),n.options.layoutRoot&&(A.relativeTarget=a,A.relativeTargetOrigin=i,A.relativeParent=n)}}}A.notifyListeners("didUpdate",{layout:e,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else if(A.isLead()){const{onExitComplete:e}=A.options;e&&e()}A.options.transition=void 0}function Pb(A){Sn.totalNodes++,A.parent&&(A.isProjecting()||(A.isProjectionDirty=A.parent.isProjectionDirty),A.isSharedProjectionDirty||(A.isSharedProjectionDirty=!!(A.isProjectionDirty||A.parent.isProjectionDirty||A.parent.isSharedProjectionDirty)),A.isTransformDirty||(A.isTransformDirty=A.parent.isTransformDirty))}function Db(A){A.isProjectionDirty=A.isSharedProjectionDirty=A.isTransformDirty=!1}function Ob(A){A.clearSnapshot()}function HB(A){A.clearMeasurements()}function kb(A){A.isLayoutDirty=!1}function Rb(A){const{visualElement:e}=A.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),A.resetTransform()}function TB(A){A.finishAnimation(),A.targetDelta=A.relativeTarget=A.target=void 0,A.isProjectionDirty=!0}function Kb(A){A.resolveTargetDelta()}function Mb(A){A.calcProjection()}function _b(A){A.resetRotation()}function Vb(A){A.removeLeadSnapshot()}function LB(A,e,t){A.translate=fe(e.translate,0,t),A.scale=fe(e.scale,1,t),A.origin=e.origin,A.originPoint=e.originPoint}function PB(A,e,t,n){A.min=fe(e.min,t.min,n),A.max=fe(e.max,t.max,n)}function Nb(A,e,t,n){PB(A.x,e.x,t.x,n),PB(A.y,e.y,t.y,n)}function Gb(A){return A.animationValues&&void 0!==A.animationValues.opacityExit}const jb={duration:.45,ease:[.4,0,.1,1]},DB=A=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(A),OB=DB("applewebkit/")&&!DB("chrome/")?Math.round:me;function kB(A){A.min=OB(A.min),A.max=OB(A.max)}function Wb(A){kB(A.x),kB(A.y)}function Iw(A,e,t){return"position"===A||"preserve-aspect"===A&&!vf(SB(e),SB(t),.2)}const zb=xw({attachResizeListener:(A,e)=>dr(A,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cc={current:void 0},bw=xw({measureScroll:A=>({x:A.scrollLeft,y:A.scrollTop}),defaultParent:()=>{if(!cc.current){const A=new zb({});A.mount(window),A.setOptions({layoutScroll:!0}),cc.current=A}return cc.current},resetTransform:(A,e)=>{A.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:A=>"fixed"===window.getComputedStyle(A).position}),Xb={pan:{Feature:cb},drag:{Feature:ub,ProjectionNode:bw,MeasureLayout:Qw}},Jb=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Yb(A){const e=Jb.exec(A);if(!e)return[,];const[,t,n]=e;return[t,n]}function Qf(A,e,t=1){const[n,r]=Yb(A);if(!n)return;const o=window.getComputedStyle(e).getPropertyValue(n);if(o){const A=o.trim();return dw(A)?parseFloat(A):A}return ff(r)?Qf(r,e,t+1):r}function $b(A,{...e},t){const n=A.current;if(!(n instanceof Element))return{target:e,transitionEnd:t};t&&(t={...t}),A.values.forEach((A=>{const e=A.get();if(!ff(e))return;const t=Qf(e,n);t&&A.set(t)}));for(const A in e){const r=e[A];if(!ff(r))continue;const o=Qf(r,n);o&&(e[A]=o,t||(t={}),void 0===t[A]&&(t[A]=r))}return{target:e,transitionEnd:t}}const Zb=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Hw=A=>Zb.has(A),qb=A=>Object.keys(A).some(Hw),RB=A=>A===Vn||A===TA,KB=(A,e)=>parseFloat(A.split(", ")[e]),MB=(A,e)=>(t,{transform:n})=>{if("none"===n||!n)return 0;const r=n.match(/^matrix3d\((.+)\)$/);if(r)return KB(r[1],e);{const e=n.match(/^matrix\((.+)\)$/);return e?KB(e[1],A):0}},AH=new Set(["x","y","z"]),eH=pa.filter((A=>!AH.has(A)));function tH(A){const e=[];return eH.forEach((t=>{const n=A.getValue(t);void 0!==n&&(e.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))})),e.length&&A.render(),e}const Mi={width:({x:A},{paddingLeft:e="0",paddingRight:t="0"})=>A.max-A.min-parseFloat(e)-parseFloat(t),height:({y:A},{paddingTop:e="0",paddingBottom:t="0"})=>A.max-A.min-parseFloat(e)-parseFloat(t),top:(A,{top:e})=>parseFloat(e),left:(A,{left:e})=>parseFloat(e),bottom:({y:A},{top:e})=>parseFloat(e)+(A.max-A.min),right:({x:A},{left:e})=>parseFloat(e)+(A.max-A.min),x:MB(4,13),y:MB(5,14)};Mi.translateX=Mi.x,Mi.translateY=Mi.y;const rH=(A,e,t)=>{const n=e.measureViewportBox(),r=e.current,o=getComputedStyle(r),{display:i}=o,a={};"none"===i&&e.setStaticValue("display",A.display||"block"),t.forEach((A=>{a[A]=Mi[A](n,o)})),e.render();const s=e.measureViewportBox();return t.forEach((t=>{const n=e.getValue(t);n&&n.jump(a[t]),A[t]=Mi[t](s,o)})),A},nH=(A,e,t={},n={})=>{e={...e},n={...n};const r=Object.keys(e).filter(Hw);let o=[],i=!1;const a=[];if(r.forEach((r=>{const s=A.getValue(r);if(!A.hasValue(r))return;let l=t[r],u=Co(l);const c=e[r];let d;if(dl(c)){const A=c.length,e=null===c[0]?1:0;l=c[e],u=Co(l);for(let t=e;t=0?window.pageYOffset:null,r=rH(e,A,a);return o.length&&o.forEach((([e,t])=>{A.getValue(e).set(t)})),A.render(),kl&&null!==t&&window.scrollTo({top:t}),{target:r,transitionEnd:n}}return{target:e,transitionEnd:n}};function iH(A,e,t,n){return qb(e)?nH(A,e,t,n):{target:e,transitionEnd:n}}const oH=(A,e,t,n)=>{const r=$b(A,e,n);return iH(A,e=r.target,t,n=r.transitionEnd)},Ff={current:null},Tw={current:!1};function aH(){if(Tw.current=!0,kl)if(window.matchMedia){const A=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ff.current=A.matches;A.addListener(e),e()}else Ff.current=!1}function sH(A,e,t){const{willChange:n}=e;for(const r in e){const o=e[r],i=t[r];if(at(o))A.addValue(r,o),Bl(n)&&n.add(r);else if(at(i))A.addValue(r,Ki(o,{owner:A})),Bl(n)&&n.remove(r);else if(i!==o)if(A.hasValue(r)){const e=A.getValue(r);!e.hasAnimated&&e.set(o)}else{const e=A.getStaticValue(r);A.addValue(r,Ki(void 0!==e?e:o,{owner:A}))}}for(const n in t)void 0===e[n]&&A.removeValue(n);return e}const _B=new WeakMap,Lw=Object.keys(sa),lH=Lw.length,VB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],uH=Ud.length;class cH{constructor({parent:A,props:e,presenceContext:t,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>re.render(this.render,!1,!0);const{latestValues:i,renderState:a}=r;this.latestValues=i,this.baseTarget={...i},this.initialValues=e.initial?{...i}:{},this.renderState=a,this.parent=A,this.props=e,this.presenceContext=t,this.depth=A?A.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Kl(e),this.isVariantNode=Bv(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!(!A||!A.current);const{willChange:s,...l}=this.scrapeMotionValuesFromProps(e,{});for(const A in l){const e=l[A];void 0!==i[A]&&at(e)&&(e.set(i[A],!1),Bl(s)&&s.add(A))}}scrapeMotionValuesFromProps(A,e){return{}}mount(A){this.current=A,_B.set(A,this),this.projection&&!this.projection.instance&&this.projection.mount(A),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((A,e)=>this.bindToMotionValue(e,A))),Tw.current||aH(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ff.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_B.delete(this.current),this.projection&&this.projection.unmount(),yr(this.notifyUpdate),yr(this.render),this.valueSubscriptions.forEach((A=>A())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const A in this.events)this.events[A].clear();for(const A in this.features)this.features[A].unmount();this.current=null}bindToMotionValue(A,e){const t=_n.has(A),n=e.on("change",(e=>{this.latestValues[A]=e,this.props.onUpdate&&re.update(this.notifyUpdate,!1,!0),t&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(A,(()=>{n(),r()}))}sortNodePosition(A){return this.current&&this.sortInstanceNodePosition&&this.type===A.type?this.sortInstanceNodePosition(this.current,A.current):0}loadFeatures({children:A,...e},t,n,r){let o,i;for(let A=0;Athis.scheduleRender(),animationType:"string"==typeof t?t:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:s})}return i}updateFeatures(){for(const A in this.features){const e=this.features[A];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qe()}getStaticValue(A){return this.latestValues[A]}setStaticValue(A,e){this.latestValues[A]=e}makeTargetAnimatable(A,e=!0){return this.makeTargetAnimatableFromInstance(A,this.props,e)}update(A,e){(A.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=A,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(A)}addValue(A,e){e!==this.values.get(A)&&(this.removeValue(A),this.bindToMotionValue(A,e)),this.values.set(A,e),this.latestValues[A]=e.get()}removeValue(A){this.values.delete(A);const e=this.valueSubscriptions.get(A);e&&(e(),this.valueSubscriptions.delete(A)),delete this.latestValues[A],this.removeValueFromRenderState(A,this.renderState)}hasValue(A){return this.values.has(A)}getValue(A,e){if(this.props.values&&this.props.values[A])return this.props.values[A];let t=this.values.get(A);return void 0===t&&void 0!==e&&(t=Ki(e,{owner:this}),this.addValue(A,t)),t}readValue(A){var e;return void 0===this.latestValues[A]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,A))&&void 0!==e?e:this.readValueFromInstance(this.current,A,this.options):this.latestValues[A]}setBaseTarget(A,e){this.baseTarget[A]=e}getBaseTarget(A){var e;const{initial:t}=this.props,n="string"==typeof t||"object"==typeof t?null===(e=Pd(this.props,t))||void 0===e?void 0:e[A]:void 0;if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,A);return void 0===r||at(r)?void 0!==this.initialValues[A]&&void 0===n?void 0:this.baseTarget[A]:r}on(A,e){return this.events[A]||(this.events[A]=new Nd),this.events[A].add(e)}notify(A,...e){this.events[A]&&this.events[A].notify(...e)}}class Pw extends cH{sortInstanceNodePosition(A,e){return 2&A.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(A,e){return A.style?A.style[e]:void 0}removeValueFromRenderState(A,{vars:e,style:t}){delete e[A],delete t[A]}makeTargetAnimatableFromInstance({transition:A,transitionEnd:e,...t},{transformValues:n},r){let o=bI(t,A||{},this);if(n&&(e&&(e=n(e)),t&&(t=n(t)),o&&(o=n(o))),r){xI(this,t,o);const A=oH(this,t,o,e);e=A.transitionEnd,t=A.target}return{transition:A,transitionEnd:e,...t}}}function fH(A){return window.getComputedStyle(A)}class dH extends Pw{readValueFromInstance(A,e){if(_n.has(e)){const A=Kd(e);return A&&A.default||0}{const t=fH(A),n=(yv(e)?t.getPropertyValue(e):t[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(A,{transformPagePoint:e}){return Cw(A,e)}build(A,e,t,n){xd(A,e,t,n.transformTemplate)}scrapeMotionValuesFromProps(A,e){return Ld(A,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:A}=this.props;at(A)&&(this.childSubscription=A.on("change",(A=>{this.current&&(this.current.textContent=`${A}`)})))}renderInstance(A,e,t,n){Sv(A,e,t,n)}}class hH extends Pw{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(A,e){return A[e]}readValueFromInstance(A,e){if(_n.has(e)){const A=Kd(e);return A&&A.default||0}return e=xv.has(e)?e:Td(e),A.getAttribute(e)}measureInstanceViewportBox(){return Qe()}scrapeMotionValuesFromProps(A,e){return bv(A,e)}build(A,e,t,n){bd(A,e,t,this.isSVGTag,n.transformTemplate)}renderInstance(A,e,t,n){Iv(A,e,t,n)}mount(A){this.isSVGTag=Hd(A.tagName),super.mount(A)}}const gH=(A,e)=>Sd(A)?new hH(e,{enableHardwareAcceleration:!1}):new dH(e,{enableHardwareAcceleration:!0}),pH={layout:{ProjectionNode:bw,MeasureLayout:Qw}},BH={...GI,...ux,...Xb,...pH},Rt=vS(((A,e)=>$S(A,e,BH,gH)));function Dw(){const A=AA.useRef(!1);return Qd((()=>(A.current=!0,()=>{A.current=!1})),[]),A}function mH(){const A=Dw(),[e,t]=AA.useState(0),n=AA.useCallback((()=>{A.current&&t(e+1)}),[e]);return[AA.useCallback((()=>re.postRender(n)),[n]),e]}class vH extends AA.Component{getSnapshotBeforeUpdate(A){const e=this.props.childRef.current;if(e&&A.isPresent&&!this.props.isPresent){const A=this.props.sizeRef.current;A.height=e.offsetHeight||0,A.width=e.offsetWidth||0,A.top=e.offsetTop,A.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wH({children:A,isPresent:e}){const t=AA.useId(),n=AA.useRef(null),r=AA.useRef({width:0,height:0,top:0,left:0});return AA.useInsertionEffect((()=>{const{width:A,height:o,top:i,left:a}=r.current;if(e||!n.current||!A||!o)return;n.current.dataset.motionPopId=t;const s=document.createElement("style");return document.head.appendChild(s),s.sheet&&s.sheet.insertRule(`\n [data-motion-pop-id="${t}"] {\n position: absolute !important;\n width: ${A}px !important;\n height: ${o}px !important;\n top: ${i}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(s)}}),[e]),AA.createElement(vH,{isPresent:e,childRef:n,sizeRef:r},AA.cloneElement(A,{ref:n}))}const fc=({children:A,initial:e,isPresent:t,onExitComplete:n,custom:r,presenceAffectsLayout:o,mode:i})=>{const a=Hv(yH),s=AA.useId(),l=AA.useMemo((()=>({id:s,initial:e,isPresent:t,custom:r,onExitComplete:A=>{a.set(A,!0);for(const A of a.values())if(!A)return;n&&n()},register:A=>(a.set(A,!1),()=>a.delete(A))})),o?void 0:[t]);return AA.useMemo((()=>{a.forEach(((A,e)=>a.set(e,!1)))}),[t]),AA.useEffect((()=>{!t&&!a.size&&n&&n()}),[t]),"popLayout"===i&&(A=AA.createElement(wH,{isPresent:t},A)),AA.createElement(Ol.Provider,{value:l},A)};function yH(){return new Map}function CH(A){return AA.useEffect((()=>()=>A()),[])}const si=A=>A.key||"";function QH(A,e){A.forEach((A=>{const t=si(A);e.set(t,A)}))}function FH(A){const e=[];return AA.Children.forEach(A,(A=>{AA.isValidElement(A)&&e.push(A)})),e}const UH=({children:A,custom:e,initial:t=!0,onExitComplete:n,exitBeforeEnter:r,presenceAffectsLayout:o=!0,mode:i="sync"})=>{const a=AA.useContext(Ed).forceRender||mH()[0],s=Dw(),l=FH(A);let u=l;const c=AA.useRef(new Map).current,d=AA.useRef(u),f=AA.useRef(new Map).current,g=AA.useRef(!0);if(Qd((()=>{g.current=!1,QH(l,f),d.current=u})),CH((()=>{g.current=!0,f.clear(),c.clear()})),g.current)return AA.createElement(AA.Fragment,null,u.map((A=>AA.createElement(fc,{key:si(A),isPresent:!0,initial:!!t&&void 0,presenceAffectsLayout:o,mode:i},A))));u=[...u];const h=d.current.map(si),p=l.map(si),B=h.length;for(let A=0;A{if(-1!==p.indexOf(t))return;const r=f.get(t);if(!r)return;const g=h.indexOf(t);let B=A;if(!B){const A=()=>{f.delete(t),c.delete(t);const A=d.current.findIndex((A=>A.key===t));if(d.current.splice(A,1),!c.size){if(d.current=l,!1===s.current)return;a(),n&&n()}};B=AA.createElement(fc,{key:si(r),isPresent:!1,onExitComplete:A,custom:e,presenceAffectsLayout:o,mode:i},r),c.set(t,B)}u.splice(g,0,B)})),u=u.map((A=>{const e=A.key;return c.has(e)?A:AA.createElement(fc,{key:si(A),isPresent:!0,presenceAffectsLayout:o,mode:i},A)})),AA.createElement(AA.Fragment,null,c.size?u:u.map((A=>AA.cloneElement(A))))};let dc,NB=!1;const EH=({settingsState:A,setSettingsState:e})=>{AA.useEffect((()=>{NB||(NB=!0,chrome.storage.local.get((function(A){e({notificationCollector:A.notificationcollector,lessonAlerts:A.lessonalert,animatedBackground:A.animatedbk,animatedBackgroundSpeed:A.bksliderinput,customThemeColor:A.selectedColor,betterSEQTAPlus:A.onoff,shortcuts:A.shortcuts,customshortcuts:A.customshortcuts,transparencyEffects:A.transparencyEffects}),A.DarkMode&&document.body.classList.add("dark")})))}));const t=AA.useMemo((()=>({notificationcollector:"notificationCollector",lessonalert:"lessonAlerts",animatedbk:"animatedBackground",bksliderinput:"animatedBackgroundSpeed",selectedColor:"customThemeColor",onoff:"betterSEQTAPlus",shortcuts:"shortcuts",customshortcuts:"customshortcuts",transparencyEffects:"transparencyEffects"})),[]),n=A=>{for(const[n,{newValue:r}]of Object.entries(A)){"DarkMode"===n&&("DarkMode"===n&&r?document.body.classList.add("dark"):document.body.classList.remove("dark"));const A=t[n];A&&e((e=>({...e,[A]:r})))}};AA.useEffect((()=>(chrome.storage.onChanged.addListener(n),()=>{chrome.storage.onChanged.removeListener(n)})));const r=(A,e)=>{chrome.storage.local.set({[A]:e})};AA.useEffect((()=>{if(dc)for(const[e,n]of Object.entries(A)){const A=Object.keys(t).find((A=>t[A]===e));A&&n!==dc[e]&&r(A,n)}dc=A}),[A,t])},Ow=AA.createContext(void 0),SH=({children:A})=>{const[e,t]=AA.useState({notificationCollector:!1,lessonAlerts:!1,animatedBackground:!1,animatedBackgroundSpeed:"0",customThemeColor:"rgba(219, 105, 105, 1)",betterSEQTAPlus:!0,shortcuts:[],customshortcuts:[],transparencyEffects:!1}),[n,r]=AA.useState(!1),[o,i]=AA.useState(!1);return EH({settingsState:e,setSettingsState:t}),rA.jsx(Ow.Provider,{value:{settingsState:e,setSettingsState:t,showPicker:n,setShowPicker:r,standalone:o,setStandalone:i},children:A})},Nn=()=>{const A=AA.useContext(Ow);if(!A)throw new Error("useSettingsContext must be used within a SettingsContextProvider");return A},xH=({tabs:A})=>{const[e,t]=AA.useState(0),[n,r]=AA.useState(null),[o,i]=AA.useState(0),[a,s]=AA.useState(0),l=AA.useRef(a),u=Nn().settingsState.customThemeColor,c=A=>{"popupClosed"===A.data&&t(0)};AA.useEffect((()=>(window.addEventListener("message",c),()=>{window.removeEventListener("message",c)})),[]),AA.useEffect((()=>{const A=100*-e;s(A),l.current=A}),[e]);const d=AA.useRef(null),f={type:"spring",stiffness:250,damping:25},g={hidden:{opacity:0},visible:{opacity:1}},h={duration:.2};return AA.useEffect((()=>{if(d.current){const e=d.current.getBoundingClientRect().width;i(e/A.length)}}),[A.length]),rA.jsxs(rA.Fragment,{children:[rA.jsx("div",{ref:d,className:"top-0 z-10 text-[0.875rem] pb-0.5 mx-4",children:rA.jsxs("div",{className:"relative flex",children:[rA.jsx(Rt.div,{className:"absolute top-0 left-0 z-0 h-full rounded-full opacity-40",style:{width:`${o}px`,background:u},initial:!1,animate:{x:(p=n,null!==p?o*p:o*e)},transition:f}),A.map(((A,e)=>rA.jsx("button",{className:"relative z-10 flex-1 px-4 py-2",onClick:()=>t(e),onMouseEnter:()=>r(e),onMouseLeave:()=>r(null),children:A.title},e)))]})}),rA.jsx("div",{className:"h-full px-4 overflow-y-scroll overflow-x-clip",children:rA.jsx(Rt.div,{initial:!1,animate:{x:`${a}%`},transition:f,children:rA.jsx("div",{className:"absolute flex w-full",style:{left:-a+"%"},children:A.map(((A,t)=>rA.jsx(Rt.div,{className:"absolute w-full pb-4",initial:"hidden",animate:e===t?"visible":"hidden",transition:h,variants:g,style:{display:e===t?"block":"none"},children:A.content},t)))})})})]});var p};function li(A){return rA.jsx("div",{className:"flex w-14 p-1 cursor-pointer rounded-full dark:bg-[#38373D] bg-[#DDDDDD] switch","data-isOn":A.state,onClick:()=>{const e=!A.state;A.onChange(e)},children:rA.jsx(Rt.div,{className:"w-6 h-6 bg-white dark:bg-[#FEFEFE] rounded-full drop-shadow-md",initial:{x:(A.state,0)},animate:{x:A.state?24:0},transition:IH})})}const IH={type:"spring",stiffness:700,damping:30},bH=({state:A,onChange:e})=>{const{settingsState:t}=Nn();return rA.jsx("div",{className:"relative w-full max-w-lg py-8 mx-auto",children:rA.jsx("input",{type:"range",min:"0",max:"100",value:A,onChange:A=>e(Number(A.target.value)),className:"w-full h-1 rounded-full appearance-none cursor-pointer slider",style:{background:`${t.customThemeColor}`}})})},HH=()=>{const{setShowPicker:A,settingsState:e}=Nn();return rA.jsx("button",{onClick:()=>{A(!0)},style:{background:e.customThemeColor},className:"w-16 h-8 rounded-md"})},TH=()=>{const{settingsState:A,setSettingsState:e}=Nn(),t=(t,n)=>{e({...A,[t]:n})},n=[{title:"Notification Collector",description:"Uncaps the 9+ limit for notifications, showing the real number.",modifyElement:rA.jsx(li,{state:A.notificationCollector,onChange:A=>t("notificationCollector",A)})},{title:"Lesson Alerts",description:"Sends a native browser notification ~5 minutes prior to lessons.",modifyElement:rA.jsx(li,{state:A.lessonAlerts,onChange:A=>t("lessonAlerts",A)})},{title:"Animated Background",description:"Adds an animated background to BetterSEQTA. (May impact battery life)",modifyElement:rA.jsx(li,{state:A.animatedBackground,onChange:A=>t("animatedBackground",A)})},{title:"Animated Background Speed",description:"Controls the speed of the animated background.",modifyElement:rA.jsx(bH,{state:parseInt(A.animatedBackgroundSpeed),onChange:t=>{return n=t,void e({...A,animatedBackgroundSpeed:n});var n}})},{title:"Custom Theme Colour",description:"Customise the overall theme colour of SEQTA Learn.",modifyElement:rA.jsx(HH,{})},{title:"Edit Sidebar Layout",description:"Customise the sidebar layout.",modifyElement:rA.jsx("button",{onClick:()=>chrome.runtime.sendMessage({type:"currentTab",info:"EditSidebar"}),className:"px-4 py-1 text-[0.75rem] bg-blue-500 rounded-md",children:"Edit"})},{title:"Transparency Effects",description:"Enables transparency effects on certain elements such as blur. (May impact battery life)",modifyElement:rA.jsx(li,{state:A.transparencyEffects,onChange:A=>t("transparencyEffects",A)})},{title:"BetterSEQTA+",description:"Enables BetterSEQTA+ features",modifyElement:rA.jsx(li,{state:A.betterSEQTAPlus,onChange:A=>t("betterSEQTAPlus",A)})}];return rA.jsx("div",{className:"flex flex-col -mt-4 overflow-y-scroll divide-y divide-zinc-100 dark:divide-zinc-700",children:n.map(((A,e)=>rA.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[rA.jsxs("div",{className:"pr-4",children:[rA.jsx("h2",{className:"text-sm font-bold",children:A.title}),rA.jsx("p",{className:"text-xs",children:A.description})]}),rA.jsx("div",{children:A.modifyElement})]},e)))})},LH="/client/rsc/png/betterseqta-dark-full.png",PH="/client/rsc/png/betterseqta-light-full.png";function DH(){const{settingsState:A,setSettingsState:e}=Nn(),[t,n]=AA.useState(""),[r,o]=AA.useState(""),[i,a]=AA.useState(!1);return rA.jsxs("div",{className:"flex flex-col divide-y divide-zinc-100 dark:divide-zinc-700",children:[rA.jsx(UH,{children:i?rA.jsx(Rt.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{type:"spring",damping:20},children:rA.jsxs("div",{className:"flex flex-col items-center mb-4",children:[rA.jsx(Rt.input,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:.2},className:"w-full p-2 rounded-md bg-zinc-100 dark:bg-zinc-700 focus:outline-none",type:"text",placeholder:"Shortcut Name",value:t,onChange:A=>n(A.target.value)}),rA.jsx(Rt.input,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:.3},className:"w-full p-2 my-2 rounded-md bg-zinc-100 dark:bg-zinc-700 focus:outline-none",type:"text",placeholder:"URL eg. https://google.com",value:r,onChange:A=>o(A.target.value)}),rA.jsx(Rt.button,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},className:"w-full px-4 py-2 text-white bg-blue-500 rounded-md",onClick:()=>{if(""!==t.trim()&&(i=r,new RegExp("^(https?:\\/\\/)?[\\w.-]+[\\w.-]+$","i").test(i))){const i={name:t.trim(),url:r.trim(),icon:t[0]},s=[...A.customshortcuts,i];e({...A,customshortcuts:s}),n(""),o(""),a(!1)}else console.error("Please enter a valid title and URL.");var i},children:"Add"})]})}):rA.jsx(Rt.button,{initial:{backgroundColor:"rgba(29, 161, 242, 1)",height:"auto"},animate:{backgroundColor:"rgba(29, 161, 242, 1)",height:"auto"},exit:{backgroundColor:"rgba(29, 161, 242, 1)",height:"auto"},transition:{type:"tween",ease:"easeOut"},className:"px-4 py-2 mb-4 text-white bg-blue-500 rounded",onClick:()=>{a(!i)},children:"Add Custom Shortcut"})}),A.shortcuts?A.shortcuts.map(((t,n)=>t.name&&rA.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[t.name,rA.jsx(li,{state:t.enabled,onChange:n=>((t,n)=>{const r=A.shortcuts.map((A=>A.name===t?{...A,enabled:n}:A));e({...A,shortcuts:r})})(t.name,n)})]},n))):rA.jsx("p",{children:"Loading shortcuts..."}),A.customshortcuts?A.customshortcuts.map(((t,n)=>rA.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[t.name,rA.jsx("button",{onClick:()=>(t=>{const n=A.customshortcuts.filter(((A,e)=>e!==t));e({...A,customshortcuts:n})})(n),children:rA.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:rA.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]},n))):rA.jsx("p",{children:"Loading custom shortcuts..."})]})}var kw={},Bt={},He={},Pt={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.defaultLocales=Vt.config=void 0;var OH={barSize:18,crossSize:18,inputSize:40,delay:150,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"};Vt.config=OH;var kH={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}};Vt.defaultLocales=kH;var Fo={},Rw={exports:{}};!function(A){!function(e){var t=/^\s+/,n=/\s+$/,r=0,o=e.round,i=e.min,a=e.max,s=e.random;function l(A,s){if(s=s||{},(A=A||"")instanceof l)return A;if(!(this instanceof l))return new l(A,s);var u=function(A){var r={r:0,g:0,b:0},o=1,s=null,l=null,u=null,c=!1,d=!1;return"string"==typeof A&&(A=function(A){A=A.replace(t,"").replace(n,"").toLowerCase();var e,r=!1;if(E[A])A=E[A],r=!0;else if("transparent"==A)return{r:0,g:0,b:0,a:0,format:"name"};return(e=R.rgb.exec(A))?{r:e[1],g:e[2],b:e[3]}:(e=R.rgba.exec(A))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=R.hsl.exec(A))?{h:e[1],s:e[2],l:e[3]}:(e=R.hsla.exec(A))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=R.hsv.exec(A))?{h:e[1],s:e[2],v:e[3]}:(e=R.hsva.exec(A))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=R.hex8.exec(A))?{r:k(e[1]),g:k(e[2]),b:k(e[3]),a:O(e[4]),format:r?"name":"hex8"}:(e=R.hex6.exec(A))?{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:r?"name":"hex"}:(e=R.hex4.exec(A))?{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),a:O(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=R.hex3.exec(A))&&{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:r?"name":"hex"}}(A)),"object"==typeof A&&(V(A.r)&&V(A.g)&&V(A.b)?(r=function(A,e,t){return{r:255*S(A,255),g:255*S(e,255),b:255*S(t,255)}}(A.r,A.g,A.b),c=!0,d="%"===String(A.r).substr(-1)?"prgb":"rgb"):V(A.h)&&V(A.s)&&V(A.v)?(s=P(A.s),l=P(A.v),r=function(A,t,n){A=6*S(A,360),t=S(t,100),n=S(n,100);var r=e.floor(A),o=A-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(A.h,s,l),c=!0,d="hsv"):V(A.h)&&V(A.s)&&V(A.l)&&(s=P(A.s),u=P(A.l),r=function(A,e,t){var n,r,o;function i(A,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?A+6*(e-A)*t:t<.5?e:t<2/3?A+(e-A)*(2/3-t)*6:A}if(A=S(A,360),e=S(e,100),t=S(t,100),0===e)n=r=o=t;else{var a=t<.5?t*(1+e):t+e-t*e,s=2*t-a;n=i(s,a,A+1/3),r=i(s,a,A),o=i(s,a,A-1/3)}return{r:255*n,g:255*r,b:255*o}}(A.h,s,u),c=!0,d="hsl"),A.hasOwnProperty("a")&&(o=A.a)),o=H(o),{ok:c,format:A.format||d,r:i(255,a(r.r,0)),g:i(255,a(r.g,0)),b:i(255,a(r.b,0)),a:o}}(A);this._originalInput=A,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=o(100*this._a)/100,this._format=s.format||u.format,this._gradientType=s.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=u.ok,this._tc_id=r++}function u(A,e,t){A=S(A,255),e=S(e,255),t=S(t,255);var n,r,o=a(A,e,t),s=i(A,e,t),l=(o+s)/2;if(o==s)n=r=0;else{var u=o-s;switch(r=l>.5?u/(2-o-s):u/(o+s),o){case A:n=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+r)%360,o.push(l(n));return o}function F(A,e){e=e||6;for(var t=l(A).toHsv(),n=t.h,r=t.s,o=t.v,i=[],a=1/e;e--;)i.push(l({h:n,s:r,v:o})),o=(o+a)%1;return i}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var A=this.toRgb();return(299*A.r+587*A.g+114*A.b)/1e3},getLuminance:function(){var A,t,n,r=this.toRgb();return A=r.r/255,t=r.g/255,n=r.b/255,.2126*(A<=.03928?A/12.92:e.pow((A+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))},setAlpha:function(A){return this._a=H(A),this._roundA=o(100*this._a)/100,this},toHsv:function(){var A=c(this._r,this._g,this._b);return{h:360*A.h,s:A.s,v:A.v,a:this._a}},toHsvString:function(){var A=c(this._r,this._g,this._b),e=o(360*A.h),t=o(100*A.s),n=o(100*A.v);return 1==this._a?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var A=u(this._r,this._g,this._b);return{h:360*A.h,s:A.s,l:A.l,a:this._a}},toHslString:function(){var A=u(this._r,this._g,this._b),e=o(360*A.h),t=o(100*A.s),n=o(100*A.l);return 1==this._a?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(A){return d(this._r,this._g,this._b,A)},toHexString:function(A){return"#"+this.toHex(A)},toHex8:function(A){return function(A,e,t,n,r){var i=[L(o(A).toString(16)),L(o(e).toString(16)),L(o(t).toString(16)),L(T(n))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,A)},toHex8String:function(A){return"#"+this.toHex8(A)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*S(this._r,255))+"%",g:o(100*S(this._g,255))+"%",b:o(100*S(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*S(this._r,255))+"%, "+o(100*S(this._g,255))+"%, "+o(100*S(this._b,255))+"%)":"rgba("+o(100*S(this._r,255))+"%, "+o(100*S(this._g,255))+"%, "+o(100*S(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(A){var e="#"+f(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(A){var r=l(A);t="#"+f(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(A){var e=!!A;A=A||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==A&&"hex6"!==A&&"hex3"!==A&&"hex4"!==A&&"hex8"!==A&&"name"!==A?("rgb"===A&&(t=this.toRgbString()),"prgb"===A&&(t=this.toPercentageRgbString()),("hex"===A||"hex6"===A)&&(t=this.toHexString()),"hex3"===A&&(t=this.toHexString(!0)),"hex4"===A&&(t=this.toHex8String(!0)),"hex8"===A&&(t=this.toHex8String()),"name"===A&&(t=this.toName()),"hsl"===A&&(t=this.toHslString()),"hsv"===A&&(t=this.toHsvString()),t||this.toHexString()):"name"===A&&0===this._a?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(A,e){var t=A.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(B,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(A,e){return A.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(U,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(Q,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},l.fromRatio=function(A,e){if("object"==typeof A){var t={};for(var n in A)A.hasOwnProperty(n)&&(t[n]="a"===n?A[n]:P(A[n]));A=t}return l(A,e)},l.equals=function(A,e){return!(!A||!e)&&l(A).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:s(),g:s(),b:s()})},l.mix=function(A,e,t){t=0===t?0:t||50;var n=l(A).toRgb(),r=l(e).toRgb(),o=t/100;return l({r:(r.r-n.r)*o+n.r,g:(r.g-n.g)*o+n.g,b:(r.b-n.b)*o+n.b,a:(r.a-n.a)*o+n.a})},l.readability=function(A,t){var n=l(A),r=l(t);return(e.max(n.getLuminance(),r.getLuminance())+.05)/(e.min(n.getLuminance(),r.getLuminance())+.05)},l.isReadable=function(A,e,t){var n,r,o=l.readability(A,e);switch(r=!1,n=function(A){var e,t;return"AA"!==(e=((A=A||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(t=(A.size||"small").toLowerCase())&&"large"!==t&&(t="small"),{level:e,size:t}}(t),n.level+n.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},l.mostReadable=function(A,e,t){var n,r,o,i,a=null,s=0;r=(t=t||{}).includeFallbackColors,o=t.level,i=t.size;for(var u=0;us&&(s=n,a=l(e[u]));return l.isReadable(A,a,{level:o,size:i})||!r?a:(t.includeFallbackColors=!1,l.mostReadable(A,["#fff","#000"],t))};var E=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=l.hexNames=function(A){var e={};for(var t in A)A.hasOwnProperty(t)&&(e[A[t]]=t);return e}(E);function H(A){return A=parseFloat(A),(isNaN(A)||A<0||A>1)&&(A=1),A}function S(A,t){(function(A){return"string"==typeof A&&-1!=A.indexOf(".")&&1===parseFloat(A)})(A)&&(A="100%");var n=function(A){return"string"==typeof A&&-1!=A.indexOf("%")}(A);return A=i(t,a(0,parseFloat(A))),n&&(A=parseInt(A*t,10)/100),e.abs(A-t)<1e-6?1:A%t/parseFloat(t)}function I(A){return i(1,a(0,A))}function k(A){return parseInt(A,16)}function L(A){return 1==A.length?"0"+A:""+A}function P(A){return A<=1&&(A=100*A+"%"),A}function T(A){return e.round(255*parseFloat(A)).toString(16)}function O(A){return k(A)/255}var D,M,K,R=(M="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",K="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+M),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+M),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+M),hsva:new RegExp("hsva"+K),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(A){return!!R.CSS_UNIT.exec(A)}A.exports?A.exports=l:window.tinycolor=l}(Math)}(Rw);var GB,jB,WB,un=Rw.exports;function RH(){if(GB)return Fo;GB=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.gradientParser=void 0;var A=Gi(),e=wa();function t(A){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function n(A,e){if(A){if("string"==typeof A)return r(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);if("Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(A,e)}}function r(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t0&&void 0!==arguments[0]?arguments[0]:"",o={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function a(A){var e=new Error(t+": "+A);throw e.source=t,e}function l(){return u("linear-gradient",o.linearGradient,d)||u("repeating-linear-gradient",o.repeatingLinearGradient,d)||u("radial-gradient",o.radialGradient,f)||u("repeating-radial-gradient",o.repeatingRadialGradient,f)}function u(A,e,t){return c(e,(function(e){var n=t();return n&&(x(o.comma)||a("Missing comma before color stops")),{type:A,orientation:n,colorStops:m(w)}}))}function c(A,e){var t=x(A);if(t){x(o.startCall)||a("Missing (");var n=e(t);return x(o.endCall)||a("Missing )"),n}}function d(){return E("directional",o.sideOrCorner,1)||E("angular",o.angleValue,1)}function f(){var A,e,n=g();return n&&((A=[]).push(n),e=t,x(o.comma)&&((n=g())?A.push(n):t=e)),A}function g(){var A=function(){var A=E("shape",/^(circle)/i,0);return A&&(A.style=F()||h()),A}()||function(){var A=E("shape",/^(ellipse)/i,0);return A&&(A.style=U()||h()),A}();if(A)A.at=p();else{var e=h();if(e){A=e;var t=p();t&&(A.at=t)}else{var n=B();n&&(A={type:"default-radial",at:n})}}return A}function h(){return E("extent-keyword",o.extentKeywords,1)}function p(){if(E("position",/^at/,0)){var A=B();return A||a("Missing positioning value"),A}}function B(){var A={x:U(),y:U()};if(A.x||A.y)return{type:"position",value:A}}function m(A){var e=A(),t=[];if(e)for(t.push(e);x(o.comma);)(e=A())?t.push(e):a("One extra comma");return t}function w(){var A,e=function(){var A=E("hex",o.hexColor,1);if(null!=A&&A.value){var e=s(null==A?void 0:A.value).toRgb(),t=e.r,n=e.g,r=e.b,i=e.a;return{value:"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")}}}()||c(o.hslColor,y)||c(o.rgbaColor,b)||c(o.rgbColor,Q)||function(){var A=E("literal",o.literalColor,0);if(null!=A&&A.value){var e=s(null==A?void 0:A.value).toRgb(),t=e.r,n=e.g,r=e.b,i=e.a;return{value:"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")}}}()||c(o.hsvColor,v);return e||a("Expected color definition"),e.left=parseInt(null===(A=U())||void 0===A?void 0:A.value),e}var y=function(A){var t=(0,e.isUpperCase)(null==A?void 0:A[0]),n=m(C),r=s({h:n[0],s:n[1],l:n[2],a:n[3]||1}).toRgb(),o=r.r,i=r.g,a=r.b,l=r.a;return{value:"".concat(t?"RGBA":"rgba","(").concat(o,", ").concat(i,", ").concat(a,", ").concat(l,")")}},v=function(A){var t=(0,e.isUpperCase)(null==A?void 0:A[0]),n=m(C),r=s({h:n[0],s:n[1],v:n[2],a:n[3]||1}).toRgb(),o=r.r,i=r.g,a=r.b,l=r.a;return{value:"".concat(t?"RGBA":"rgba","(").concat(o,", ").concat(i,", ").concat(a,", ").concat(l,")")}},Q=function(A){var t,i=(0,e.isUpperCase)(null==A?void 0:A[0]),a=function(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=null==A?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{if(o=(t=t.call(A)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(a.push(n.value),a.length!==e);s=!0);}catch(A){l=!0,r=A}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(A,e)||n(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(x(o.spacedRgbColor)||[null].concat(function(A){if(Array.isArray(A))return r(A)}(t=m(C))||function(A){if(typeof Symbol<"u"&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),5),s=a[1],l=a[2],u=a[3],c=a[4],d=void 0===c?1:c;return{value:"".concat(i?"RGBA":"rgba","(").concat(s,", ").concat(l,", ").concat(u,", ").concat(d,")")}},b=function(A){var t=(0,e.isUpperCase)(null==A?void 0:A[0]);return{value:"".concat(t?"RGBA":"rgba","(").concat(m(C),")")}};function C(){return x(o.number)[1]}function U(){return E("%",o.percentageValue,1)||E("position-keyword",o.positionKeywords,1)||F()}function F(){return E("px",o.pixelValue,1)||E("em",o.emValue,1)}function E(A,e,t){var n=x(e);if(n)return{type:A,value:n[t]}}function x(A){var e,n;return(n=/^[\n\r\t\s]+/.exec(t))&&H(n[0].length),(e=A.exec(t))&&H(e[0].length),e}function H(A){t=t.substr(A)}return function(){var n,r=m(l);t.length>0&&a("Invalid input not EOF");var o=r[0],s=null==o||null===(n=o.colorStops)||void 0===n?void 0:n.filter((function(A){return(0,e.isUpperCase)(A.value)})).length;return function(){if(s>0)return o;var e=function(e,t){return 0===t?(0,A.high)(e):(0,A.low)(e)};return i(i({},o),{},{colorStops:o.colorStops.map((function(A,t){return i(i({},A),{},{value:e(A,t)})}))})}()}()},Fo}function Gi(){if(jB)return Pt;jB=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.low=Pt.high=Pt.getColors=Pt.formatInputValues=void 0;var A=Vt,e=RH();A.config.defaultColor;var t=A.config.defaultGradient;Pt.low=function(A){return A.value.toLowerCase()},Pt.high=function(A){return A.value.toUpperCase()},Pt.getColors=function(A){if(null==A?void 0:A.includes("gradient")){var r=null==A?void 0:A.includes("conic"),o=!r&&n()?A:t;r&&console.log("Sorry we cant handle conic gradients yet");var i=(0,e.gradientParser)(o);return null==i?void 0:i.colorStops}return[{value:A}]};var n=function(A){return!0};return Pt.formatInputValues=function(A,e,t){return isNaN(A)||At?t:A},Pt}function wa(){if(WB)return He;WB=1,Object.defineProperty(He,"__esModule",{value:!0}),He.compareGradients=void 0,He.computePickerPosition=function(e){var t,n=o(e),i=n.offsetLeft,a=n.offsetTop,s=n.clientWidth,l=n.clientHeight;return[(t=e.clientX-i-r/2,(0,A.formatInputValues)(t,-9,s-10)),function(){var t=e.clientY-a-r/2;return(0,A.formatInputValues)(t,-9,l-10)}()]},He.computeSquareXY=function(A,e,t){var n=100*A[1],o=100*A[2],i=n*(o<50?o:100-o)/100,a=0|Math.round(200*i/(o+i)),s=Math.round(i+o);return[e/100*a-r/2,t-t/100*s-r/2]},He.getGradientType=He.getDegrees=void 0,He.getHandleValue=function(e){var t=o(e),r=t.offsetLeft,i=t.clientWidth,a=e.clientX-r-n/2,s=i-18,l=(0,A.formatInputValues)(a,0,s);return Math.round(l/(s/100))},He.safeBounds=He.isUpperCase=He.getNewHsl=void 0;var A=Gi(),e=Vt,t=un,n=e.config.barSize,r=e.config.crossSize;He.getDegrees=function(A){var e,t=null==A?void 0:A.split(",")[0];return parseInt(null==t||null===(e=t.split("(")[1])||void 0===e?void 0:e.slice(0,-3))},He.getGradientType=function(A){return null==A?void 0:A.split("(")[0]},He.getNewHsl=function(A,e,n,r,o){o(A);var i=t({h:A,s:e,l:n}).toRgb(),a=i.r,s=i.g,l=i.b;return"rgba(".concat(a,", ").concat(s,", ").concat(l,", ").concat(r,")")};var o=function(A){var e=A.target.parentNode.getBoundingClientRect(),t="c-resize ps-rl"===A.target.className?15:0;return{offsetLeft:(null==e?void 0:e.x)+t,offsetTop:null==e?void 0:e.y,clientWidth:null==e?void 0:e.width,clientHeight:null==e?void 0:e.height}};return He.safeBounds=o,He.isUpperCase=function(A){var e;return(null==A?void 0:A[0])===(null==A||null===(e=A[0])||void 0===e?void 0:e.toUpperCase())},He.compareGradients=function(A,e){var t,n;return(null==A||null===(t=A.toLowerCase())||void 0===t?void 0:t.replaceAll(" ",""))===(null==e||null===(n=e.toLowerCase())||void 0===n?void 0:n.replaceAll(" ",""))},He}!function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.default=function(A){var r=A.children,o=A.bounds,s=A.value,l=A.onChange,u=A.squareSize,d=A.squareHeight,p=A.hideOpacity,B=null==o?void 0:o.x,m=null==s?void 0:s.includes("gradient"),w=(0,t.getGradientType)(s),y=(0,t.getDegrees)(s),v="linear-gradient"===w?"".concat(y,"deg"):"circle",Q=(0,n.getColors)(s),b=null==Q?void 0:Q.map((function(A,e){return c(c({},A),{},{index:e})})),C=(null==b?void 0:b.filter((function(A){return(0,t.isUpperCase)(A.value)}))[0])||b[0],U=null==C?void 0:C.value,F=null==C?void 0:C.index,E=null==C?void 0:C.left,x=a((0,e.useState)(f(U)),2),H=x[0],S=x[1],I=a((0,e.useState)("rgb"),2),k=I[0],L=I[1],P=H.toRgb(),T=P.r,O=P.g,D=P.b,M=P.a,K=H.toHsl(),R=K.h,V=K.s,N=K.l,j=H.toHsv(),G=j.s,_=j.v,W=a((0,e.useState)(Math.round(R)),2),X=W[0],z=W[1],J=Math.round(R),Y=a((0,t.computeSquareXY)([J,V,N],u,d),2),Z=Y[0],q=Y[1],$=a((0,e.useState)([]),2),AA=$[0],eA=$[1],tA=a((0,e.useState)([]),2),nA=tA[0],rA=tA[1],oA=a((0,e.useState)(null),2),iA=oA[0],aA=oA[1],sA=function(A){A!==s&&(m?(0,t.compareGradients)(nA[0],s)||rA([s].concat(i(null==nA?void 0:nA.slice(0,8)))):eA([s].concat(i(null==AA?void 0:AA.slice(0,8)))),l(A))};(0,e.useEffect)((function(){S(f(U)),z(J)}),[U,J]);var lA=function(A){var e=A.sort((function(A,e){return A.left-e.left})),t=null==e?void 0:e.map((function(A){return"".concat(null==A?void 0:A.value," ").concat(A.left,"%")}));sA("".concat(w,"(").concat(v,", ").concat(t.join(", "),")"))},uA=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,n=null==Q?void 0:Q.filter((function(A){return!(0,t.isUpperCase)(A.value)})),r=[{value:A.toUpperCase(),left:e}].concat(i(n));lA(r)},cA=function(A){m?uA(A):sA(A)},dA=function(A){var e=null==Q?void 0:Q.map((function(e,t){return c(c({},e),{},{value:t===A?(0,n.high)(e):(0,n.low)(e)})}));lA(e)};(0,e.useEffect)((function(){return window.addEventListener("click",fA),function(){window.removeEventListener("click",fA)}}),[iA,s]);var fA=function(A){var e,t=null==A||null===(e=A.path)||void 0===e?void 0:e.map((function(A){return A.id}));null!=t&&t.includes("gradient-bar")?aA("gpoint"):null!=t&&t.includes("rbgcp-input")?aA("input"):null!=t&&t.includes("rbgcp-wrapper")?aA("picker"):aA(null)},gA={x:Z,y:q,s:V,l:N,r:T,g:O,b:D,hue:J,hsvS:G,hsvV:_,value:s,colors:Q,degrees:y,inFocus:iA,opacity:M,onChange:l,addPoint:function(A){var e,r=(0,t.getHandleValue)(A,B),o=null===(e=[].concat(i(Q.map((function(A){return c(c({},A),{},{value:(0,n.low)(A)})}))),[{value:U,left:r}]))||void 0===e?void 0:e.sort((function(A,e){return A.left-e.left}));lA(o)},inputType:k,nextPoint:function(){F!==(null==Q?void 0:Q.length)-1&&dA(F+1)},tinyColor:H,handleHue:function(A){var e=3.6*(0,t.getHandleValue)(A),n=(0,t.getNewHsl)(e,V,N,M,z);cA(n)},setInFocus:aA,isGradient:m,offsetLeft:B,squareSize:u,hideOpacity:p,handleColor:function(A,e){var n=a((0,t.computePickerPosition)(A,d),2),r=n[0],o=n[1],i=Math.min(r+g/2,u-1),s=Math.min(o+g/2,d-1),l=a(e.getImageData(i,s,1,1).data,3),c=l[0],f=l[1],h=l[2],p="rgba(".concat(c,", ").concat(f,", ").concat(h,", ").concat(M,")");cA(p)},currentLeft:E,deletePoint:function(){if((null==Q?void 0:Q.length)>2){var A=null==Q?void 0:Q.map((function(A,e){return c(c({},A),{},{value:e===F-1?(0,n.high)(A):(0,n.low)(A)})})),e=null==A?void 0:A.filter((function(A,e){return e!==F}));lA(e)}},internalHue:X,squareHeight:d,setInputType:L,gradientType:w,handleChange:cA,currentColor:U,selectedColor:F,handleOpacity:function(A){var e=(0,t.getHandleValue)(A)/100,n="rgba(".concat(T,", ").concat(O,", ").concat(D,", ").concat(e,")");cA(n)},setInternalHue:z,previousColors:AA,handleGradient:uA,setSelectedColor:dA,internalOnChange:sA,previousGraidents:nA};return e.default.createElement(h.Provider,{value:gA},r)},A.usePicker=function(){return(0,e.useContext)(h)};var e=function(A,e){if(A&&A.__esModule)return A;if(null===A||"object"!==o(A)&&"function"!=typeof A)return{default:A};var t=r(e);if(t&&t.has(A))return t.get(A);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in A)if("default"!==a&&Object.prototype.hasOwnProperty.call(A,a)){var s=i?Object.getOwnPropertyDescriptor(A,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=A[a]}return n.default=A,t&&t.set(A,n),n}(AA),t=wa(),n=Gi();function r(A){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(r=function(A){return A?t:e})(A)}function o(A){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function i(A){return function(A){if(Array.isArray(A))return l(A)}(A)||function(A){if(typeof Symbol<"u"&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}(A)||s(A)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=null==A?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{if(o=(t=t.call(A)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(a.push(n.value),a.length!==e);s=!0);}catch(A){l=!0,r=A}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(A,e)||s(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(A,e){if(A){if("string"==typeof A)return l(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);if("Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(A,e)}}function l(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);tA.length)&&(e=A.length);for(var t=0,n=new Array(e);t255||e>255||t>255)){if(0===A&&0===e&&0===t)return[0,0,0,1];n=1-A/255,r=1-e/255,o=1-t/255;var i=Math.min(n,Math.min(r,o));return{c:n=(n-i)/(1-i),m:r=(r-i)/(1-i),y:o=(o-i)/(1-i),k:i}}alert("RGB values must be in the range 0 to 255.")}}Object.defineProperty(ji,"__esModule",{value:!0}),ji.cmykToRgb=void 0,ji.rgb2cmyk=s4;var l4=function(A){var e=A.c,t=A.m,n=A.y,r=A.k;return{r:255*(1-e)*(1-r),g:255*(1-t)*(1-r),b:255*(1-n)*(1-r)}};ji.cmykToRgb=l4,function(A){function e(A){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var t=function(A,t){if(A&&A.__esModule)return A;if(null===A||"object"!==e(A)&&"function"!=typeof A)return{default:A};var n=a(t);if(n&&n.has(A))return n.get(A);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in A)if("default"!==i&&Object.prototype.hasOwnProperty.call(A,i)){var s=o?Object.getOwnPropertyDescriptor(A,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=A[i]}return r.default=A,n&&n.set(A,r),r}(AA),n=ji,r=Gi(),o=Bt,i=bA;function a(A){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(a=function(A){return A?t:e})(A)}function s(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function l(A){for(var e=1;eA.length)&&(e=A.length);for(var t=0,n=new Array(e);tA.length)&&(e=A.length);for(var t=0,n=new Array(e);tA.length)&&(e=A.length);for(var t=0,n=new Array(e);t0?null==o?void 0:o.slice(0,18):r).map((function(A,e){return t.default.createElement("div",{key:e,style:{height:23,width:"10.2%",borderRadius:4,background:A,marginBottom:2,border:"rgba(255,255,255, 1)"===A?"1px solid #96959c":""},onClick:function(){return function(A){null!=A&&A.includes("gradient")?s(A):l(A)}(A)}})}))))};var r=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"]}(jw);var hc={},jd={};!function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.default=A.StopIcon=A.SlidersIcon=A.RadialIcon=A.PaletteIcon=A.LinearIcon=A.InputsIcon=A.DegreesIcon=void 0;var e,t=(e=AA)&&e.__esModule?e:{default:e};A.default=function(){return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},t.default.createElement("polyline",{style:{fill:"none",stroke:"rgb(50, 49, 54)",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8px"},points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},A.LinearIcon=function(A){var e={fill:"none",stroke:A.color||"#323136",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8px"};return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},t.default.createElement("polyline",{style:e,points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},A.RadialIcon=function(A){var e={fill:"none",stroke:A.color||"#323136",strokeMiterlimit:10,strokeWidth:"1.8px"};return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},t.default.createElement("circle",{style:e,cx:"10",cy:"10",r:"9"}),t.default.createElement("circle",{style:e,cx:"10",cy:"10",r:"5"}))},A.SlidersIcon=function(A){var e=A.color||"#323136",n={fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8px",fillRule:"evenodd"},r={fill:e,stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8px"};return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},t.default.createElement("polyline",{style:n,points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),t.default.createElement("line",{style:r,x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),t.default.createElement("polyline",{style:n,points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),t.default.createElement("line",{style:r,x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),t.default.createElement("polyline",{style:n,points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),t.default.createElement("line",{style:r,x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},A.InputsIcon=function(A){var e={fill:"none",stroke:A.color||"#323136",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8px"};return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},t.default.createElement("path",{style:e,d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),t.default.createElement("path",{style:e,d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),t.default.createElement("path",{style:e,d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},A.PaletteIcon=function(A){var e=A.color||"#323136",n={fill:e},r={fill:e,stroke:e,strokeMiterlimit:10,strokeWidth:"0.5px"};return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},t.default.createElement("circle",{style:n,cx:"9.36",cy:"5.07",r:"1.71"}),t.default.createElement("circle",{style:n,cx:"13.93",cy:"6.91",r:"1.71"}),t.default.createElement("circle",{style:n,cx:"5.8",cy:"7.55",r:"1.71"}),t.default.createElement("circle",{style:n,cx:"5.45",cy:"12.04",r:"1.71"}),t.default.createElement("path",{style:r,d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},A.DegreesIcon=function(A){var e={fill:"none",stroke:A.color||"#323136",strokeMiterlimit:10,strokeWidth:"1.8px",strokeLinecap:"round"};return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},t.default.createElement("polyline",{style:e,points:"13.86 2.01 1.7 16.99 18.77 16.99"}),t.default.createElement("polyline",{style:e,points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},A.StopIcon=function(){return t.default.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},t.default.createElement("path",{d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),t.default.createElement("path",{d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),t.default.createElement("path",{d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),t.default.createElement("path",{d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))}}(jd);var gc={},Ww={};!function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var e=AA,t=hv;function n(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t0&&r[r.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=55296&&r<=56319&&t>10),i%1024+56320)),(r+1===t||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=typeof Uint8Array>"u"?[]:new Uint8Array(256),d=0;d<64;d++)c[u.charCodeAt(d)]=d;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=typeof Uint8Array>"u"?[]:new Uint8Array(256),h=0;h<64;h++)g[f.charCodeAt(h)]=h;for(var p=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},B=function(){function A(A,e,t,n,r,o){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=o}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=typeof Uint8Array>"u"?[]:new Uint8Array(256),y=0;y<64;y++)w[m.charCodeAt(y)]=y;var v=10,Q=13,b=15,C=17,U=18,F=19,E=20,x=21,H=22,S=24,I=25,k=26,L=27,P=28,T=30,O=32,D=33,M=34,K=35,R=37,V=38,N=39,j=40,G=42,_=[9001,65288],W="×",X="÷",z=function(A,e){var t=function(A){var e,t,n,r,o,i=.75*A.length,a=A.length,s=0;"="===A[A.length-1]&&(i--,"="===A[A.length-2]&&i--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),u=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e>4,u[s++]=(15&n)<<4|r>>2,u[s++]=(3&r)<<6|63&o;return l}(A),n=Array.isArray(t)?function(A){for(var e=A.length,t=[],n=0;n0;){var i=n[--o];if(Array.isArray(A)?-1!==A.indexOf(i):A===i)for(var a=t;a<=n.length;){var s;if((s=n[++a])===e)return!0;if(s!==v)break}if(i!==v)break}return!1},nA=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n!==v)return n;t--}return 0},rA=function(A,e,t,n,r){if(0===t[n])return W;var o=n-1;if(Array.isArray(r)&&!0===r[o])return W;var i=o-1,a=o+1,s=e[o],l=i>=0?e[i]:0,u=e[a];if(2===s&&3===u)return W;if(-1!==Y.indexOf(s))return"!";if(-1!==Y.indexOf(u)||-1!==Z.indexOf(u))return W;if(8===nA(o,e))return X;if(11===z.get(A[o])||(s===O||s===D)&&11===z.get(A[a])||7===s||7===u||9===s||-1===[v,Q,b].indexOf(s)&&9===u||-1!==[C,U,F,S,P].indexOf(u)||nA(o,e)===H||tA(23,H,o,e)||tA([C,U],x,o,e)||tA(12,12,o,e))return W;if(s===v)return X;if(23===s||23===u)return W;if(16===u||16===s)return X;if(-1!==[Q,b,x].indexOf(u)||14===s||36===l&&-1!==eA.indexOf(s)||s===P&&36===u||u===E||-1!==J.indexOf(u)&&s===I||-1!==J.indexOf(s)&&u===I||s===L&&-1!==[R,O,D].indexOf(u)||-1!==[R,O,D].indexOf(s)&&u===k||-1!==J.indexOf(s)&&-1!==q.indexOf(u)||-1!==q.indexOf(s)&&-1!==J.indexOf(u)||-1!==[L,k].indexOf(s)&&(u===I||-1!==[H,b].indexOf(u)&&e[a+1]===I)||-1!==[H,b].indexOf(s)&&u===I||s===I&&-1!==[I,P,S].indexOf(u))return W;if(-1!==[I,P,S,C,U].indexOf(u))for(var c=o;c>=0;){if((d=e[c])===I)return W;if(-1===[P,S].indexOf(d))break;c--}if(-1!==[L,k].indexOf(u))for(c=-1!==[C,U].indexOf(s)?i:o;c>=0;){var d;if((d=e[c])===I)return W;if(-1===[P,S].indexOf(d))break;c--}if(V===s&&-1!==[V,N,M,K].indexOf(u)||-1!==[N,M].indexOf(s)&&-1!==[N,j].indexOf(u)||-1!==[j,K].indexOf(s)&&u===j||-1!==AA.indexOf(s)&&-1!==[E,k].indexOf(u)||-1!==AA.indexOf(u)&&s===L||-1!==J.indexOf(s)&&-1!==J.indexOf(u)||s===S&&-1!==J.indexOf(u)||-1!==J.concat(I).indexOf(s)&&u===H&&-1===_.indexOf(A[a])||-1!==J.concat(I).indexOf(u)&&s===U)return W;if(41===s&&41===u){for(var f=t[o],g=1;f>0&&41===e[--f];)g++;if(g%2!=0)return W}return s===O&&u===D?W:X},oA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],n=[],r=[];return A.forEach((function(A,o){var i=z.get(A);if(i>50?(r.push(!0),i-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(o),t.push(16);if(4===i||11===i){if(0===o)return n.push(o),t.push(T);var a=t[o-1];return-1===$.indexOf(a)?(n.push(n[o-1]),t.push(a)):(n.push(o),t.push(T))}return n.push(o),31===i?t.push("strict"===e?x:R):i===G||29===i?t.push(T):43===i?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(R):t.push(T):void t.push(i)})),[n,t,r]}(A,e.lineBreak),n=t[0],r=t[1],o=t[2];return("break-all"===e.wordBreak||"break-word"===e.wordBreak)&&(r=r.map((function(A){return-1!==[I,T,G].indexOf(A)?R:A}))),[n,r,"keep-all"===e.wordBreak?o.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0]},iA=function(){function A(A,e,t,n){this.codePoints=A,this.required="!"===e,this.start=t,this.end=n}return A.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),aA=45,sA=43,lA=-1,uA=function(A){return A>=48&&A<=57},cA=function(A){return uA(A)||A>=65&&A<=70||A>=97&&A<=102},dA=function(A){return 10===A||9===A||32===A},fA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},gA=function(A){return fA(A)||uA(A)||A===aA},hA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},pA=function(A,e){return 92===A&&10!==e},BA=function(A,e,t){return A===aA?fA(e)||pA(e,t):!!fA(A)||!(92!==A||!pA(A,e))},mA=function(A,e,t){return A===sA||A===aA?!!uA(e)||46===e&&uA(t):uA(46===A?e:A)},wA=function(A){var e=0,t=1;(A[e]===sA||A[e]===aA)&&(A[e]===aA&&(t=-1),e++);for(var n=[];uA(A[e]);)n.push(A[e++]);var r=n.length?parseInt(l.apply(void 0,n),10):0;46===A[e]&&e++;for(var o=[];uA(A[e]);)o.push(A[e++]);var i=o.length,a=i?parseInt(l.apply(void 0,o),10):0;(69===A[e]||101===A[e])&&e++;var s=1;(A[e]===sA||A[e]===aA)&&(A[e]===aA&&(s=-1),e++);for(var u=[];uA(A[e]);)u.push(A[e++]);var c=u.length?parseInt(l.apply(void 0,u),10):0;return t*(r+a*Math.pow(10,-i))*Math.pow(10,s*c)},yA={type:2},vA={type:3},QA={type:4},bA={type:13},CA={type:8},UA={type:21},FA={type:9},EA={type:10},xA={type:11},HA={type:12},SA={type:14},IA={type:23},kA={type:1},LA={type:25},PA={type:24},TA={type:26},OA={type:27},DA={type:28},MA={type:29},KA={type:31},RA={type:32},VA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(s(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==RA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(gA(e)||pA(t,n)){var r=BA(e,t,n)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),bA;break;case 39:return this.consumeStringToken(39);case 40:return yA;case 41:return vA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),SA;break;case sA:if(mA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return QA;case aA:var o=A,i=this.peekCodePoint(0),a=this.peekCodePoint(1);if(mA(o,i,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(BA(o,i,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(i===aA&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),PA;break;case 46:if(mA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(s===lA)return this.consumeToken()}break;case 58:return TA;case 59:return OA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===aA&&this.peekCodePoint(2)===aA)return this.consumeCodePoint(),this.consumeCodePoint(),LA;break;case 64:var u=this.peekCodePoint(0),c=this.peekCodePoint(1),d=this.peekCodePoint(2);if(BA(u,c,d))return{type:7,value:this.consumeName()};break;case 91:return DA;case 92:if(pA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return MA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CA;break;case 123:return xA;case 125:return HA;case 117:case 85:var f=this.peekCodePoint(0),g=this.peekCodePoint(1);return f===sA&&(cA(g)||63===g)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),UA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case lA:return RA}return dA(A)?(this.consumeWhiteSpace(),KA):uA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):fA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:l(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();cA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(l.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(l.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var n=parseInt(l.apply(void 0,A),16);if(this.peekCodePoint(0)===aA&&cA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var r=[];cA(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:n,end:parseInt(l.apply(void 0,r),16)}}return{type:30,start:n,end:n}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===lA)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===lA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),IA)}for(;;){var n=this.consumeCodePoint();if(n===lA||41===n)return{type:22,value:l.apply(void 0,A)};if(dA(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===lA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,A)}):(this.consumeBadUrlRemnants(),IA);if(34===n||39===n||40===n||hA(n))return this.consumeBadUrlRemnants(),IA;if(92===n){if(!pA(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),IA;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;dA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===lA)return;pA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=l.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var n=this._value[t];if(n===lA||void 0===n||n===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===n)return this._value.splice(0,t),kA;if(92===n){var r=this._value[t+1];r!==lA&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):pA(n,r)&&(e+=this.consumeStringSlice(t),e+=l(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for((t===sA||t===aA)&&A.push(this.consumeCodePoint());uA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&uA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;uA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((n===sA||n===aA)&&uA(r)||uA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;uA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[wA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),o=this.peekCodePoint(2);return BA(n,r,o)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(cA(A)){for(var e=l(A);cA(this.peekCodePoint(0))&&e.length<6;)e+=l(this.consumeCodePoint());dA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return A===lA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(gA(e))A+=l(e);else{if(!pA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=l(this.consumeEscapedCodePoint())}}},A}(),NA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new VA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||ZA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?RA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),jA=function(A){return 15===A.type},GA=function(A){return 17===A.type},_A=function(A){return 20===A.type},WA=function(A){return 0===A.type},XA=function(A,e){return _A(A)&&A.value===e},zA=function(A){return 31!==A.type},JA=function(A){return 31!==A.type&&4!==A.type},YA=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},ZA=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},qA=function(A){return 17===A.type||15===A.type},$A=function(A){return 16===A.type||qA(A)},Ae=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},ee={type:17,number:0,flags:4},te={type:16,number:50,flags:4},ne={type:16,number:100,flags:4},re=function(A,e,t){var n=A[0],r=A[1];return[oe(n,e),oe(typeof r<"u"?r:n,t)]},oe=function(A,e){if(16===A.type)return A.number/100*e;if(jA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},ie="grad",ae="turn",se=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case ie:return Math.PI/200*e.number;case"rad":return e.number;case ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},le=function(A){return 15===A.type&&("deg"===A.unit||A.unit===ie||"rad"===A.unit||A.unit===ae)},ue=function(A){switch(A.filter(_A).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ee,ee];case"to top":case"bottom":return ce(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ee,ne];case"to right":case"left":return ce(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ne,ne];case"to bottom":case"top":return ce(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ne,ee];case"to left":case"right":return ce(270)}return 0},ce=function(A){return Math.PI*A/180},de=function(A,e){if(18===e.type){var t=ye[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),o=e.value.substring(2,3);return he(parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),o=e.value.substring(2,3);var i=e.value.substring(3,4);return he(parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),o=e.value.substring(4,6),he(parseInt(n,16),parseInt(r,16),parseInt(o,16),1);if(8===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),o=e.value.substring(4,6),i=e.value.substring(6,8),he(parseInt(n,16),parseInt(r,16),parseInt(o,16),parseInt(i,16)/255)}if(20===e.type){var a=Qe[e.value.toUpperCase()];if(typeof a<"u")return a}return Qe.TRANSPARENT},fe=function(A){return 0==(255&A)},ge=function(A){var e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?"rgba("+r+","+n+","+t+","+e/255+")":"rgb("+r+","+n+","+t+")"},he=function(A,e,t,n){return(A<<24|e<<16|t<<8|Math.round(255*n)<<0)>>>0},pe=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},Be=function(A,e){var t=e.filter(JA);if(3===t.length){var n=t.map(pe),r=n[0],o=n[1],i=n[2];return he(r,o,i,1)}if(4===t.length){var a=t.map(pe),s=(r=a[0],o=a[1],i=a[2],a[3]);return he(r,o,i,s)}return 0};function me(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var we=function(A,e){var t=e.filter(JA),n=t[0],r=t[1],o=t[2],i=t[3],a=(17===n.type?ce(n.number):se(A,n))/(2*Math.PI),s=$A(r)?r.number/100:0,l=$A(o)?o.number/100:0,u=typeof i<"u"&&$A(i)?oe(i,1):1;if(0===s)return he(255*l,255*l,255*l,1);var c=l<=.5?l*(s+1):l+s-l*s,d=2*l-c,f=me(d,c,a+1/3),g=me(d,c,a),h=me(d,c,a-1/3);return he(255*f,255*g,255*h,u)},ye={hsl:we,hsla:we,rgb:Be,rgba:Be},ve=function(A,e){return de(A,NA.create(e).parseComponentValue())},Qe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},be={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ce={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ue=function(A,e){var t=de(A,e[0]),n=e[1];return n&&$A(n)?{color:t,stop:n}:{color:t,stop:null}},Fe=function(A,e){var t=A[0],n=A[A.length-1];null===t.stop&&(t.stop=ee),null===n.stop&&(n.stop=ne);for(var r=[],o=0,i=0;io?r.push(s):r.push(o),o=s}else r.push(null)}var l=null;for(i=0;iA.optimumDistance)?{optimumCorner:e,optimumDistance:a}:A}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Se=function(A,e){var t=ce(180),n=[];return YA(e).forEach((function(e,r){if(0===r){var o=e[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(t=ue(e));if(le(o))return void(t=(se(A,o)+ce(270))%ce(360))}var i=Ue(A,e);n.push(i)})),{angle:t,stops:n,type:1}},Ie="closest-side",ke="farthest-side",Le="closest-corner",Pe="farthest-corner",Te="circle",Oe="ellipse",De="cover",Me="contain",Ke=function(A,e){var t=0,n=3,r=[],o=[];return YA(e).forEach((function(e,i){var a=!0;if(0===i?a=e.reduce((function(A,e){if(_A(e))switch(e.value){case"center":return o.push(te),!1;case"top":case"left":return o.push(ee),!1;case"right":case"bottom":return o.push(ne),!1}else if($A(e)||qA(e))return o.push(e),!1;return A}),a):1===i&&(a=e.reduce((function(A,e){if(_A(e))switch(e.value){case Te:return t=0,!1;case Oe:return t=1,!1;case Me:case Ie:return n=0,!1;case ke:return n=1,!1;case Le:return n=2,!1;case De:case Pe:return n=3,!1}else if(qA(e)||$A(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return A}),a)),a){var s=Ue(A,e);r.push(s)}})),{size:n,shape:t,stops:r,position:o,type:2}},Re=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var n=je[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(A,e.values)}throw new Error("Unsupported image type "+e.type)};var Ve,Ne,je={"linear-gradient":function(A,e){var t=ce(180),n=[];return YA(e).forEach((function(e,r){if(0===r){var o=e[0];if(20===o.type&&"to"===o.value)return void(t=ue(e));if(le(o))return void(t=se(A,o))}var i=Ue(A,e);n.push(i)})),{angle:t,stops:n,type:1}},"-moz-linear-gradient":Se,"-ms-linear-gradient":Se,"-o-linear-gradient":Se,"-webkit-linear-gradient":Se,"radial-gradient":function(A,e){var t=0,n=3,r=[],o=[];return YA(e).forEach((function(e,i){var a=!0;if(0===i){var s=!1;a=e.reduce((function(A,e){if(s)if(_A(e))switch(e.value){case"center":return o.push(te),A;case"top":case"left":return o.push(ee),A;case"right":case"bottom":return o.push(ne),A}else($A(e)||qA(e))&&o.push(e);else if(_A(e))switch(e.value){case Te:return t=0,!1;case Oe:return t=1,!1;case"at":return s=!0,!1;case Ie:return n=0,!1;case De:case ke:return n=1,!1;case Me:case Le:return n=2,!1;case Pe:return n=3,!1}else if(qA(e)||$A(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return A}),a)}if(a){var l=Ue(A,e);r.push(l)}})),{size:n,shape:t,stops:r,position:o,type:2}},"-moz-radial-gradient":Ke,"-ms-radial-gradient":Ke,"-o-radial-gradient":Ke,"-webkit-radial-gradient":Ke,"-webkit-gradient":function(A,e){var t=ce(180),n=[],r=1;return YA(e).forEach((function(e,t){var o=e[0];if(0===t){if(_A(o)&&"linear"===o.value)return void(r=1);if(_A(o)&&"radial"===o.value)return void(r=2)}if(18===o.type)if("from"===o.name){var i=de(A,o.values[0]);n.push({stop:ee,color:i})}else if("to"===o.name)i=de(A,o.values[0]),n.push({stop:ne,color:i});else if("color-stop"===o.name){var a=o.values.filter(JA);if(2===a.length){i=de(A,a[1]);var s=a[0];GA(s)&&n.push({stop:{type:16,number:100*s.number,flags:s.flags},color:i})}}})),1===r?{angle:(t+ce(180))%ce(360),stops:n,type:r}:{size:3,shape:0,stops:n,position:[],type:r}}},Ge={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return JA(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!je[A.name])}(A)})).map((function(e){return Re(A,e)}))}},_e={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},We={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return YA(e).map((function(A){return A.filter($A)})).map(Ae)}},Xe={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return YA(e).map((function(A){return A.filter(_A).map((function(A){return A.value})).join(" ")})).map(ze)}},ze=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(Ne=Ve||(Ve={})).AUTO="auto",Ne.CONTAIN="contain",Ne.COVER="cover";var Je,Ye={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return YA(e).map((function(A){return A.filter(Ze)}))}},Ze=function(A){return _A(A)||$A(A)},qe=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},$e=qe("top"),At=qe("right"),et=qe("bottom"),tt=qe("left"),nt=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Ae(e.filter($A))}}},rt=nt("top-left"),ot=nt("top-right"),it=nt("bottom-right"),at=nt("bottom-left"),st=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},lt=st("top"),ut=st("right"),ct=st("bottom"),dt=st("left"),ft=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return jA(e)?e.number:0}}},gt=ft("top"),ht=ft("right"),pt=ft("bottom"),Bt=ft("left"),mt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},yt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).reduce((function(A,e){return A|vt(e.value)}),0)}},vt=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Qt={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},bt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Je||(Je={}));var Ct,Ut={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Je.STRICT:Je.NORMAL}},Ft={name:"line-height",initialValue:"normal",prefix:!1,type:4},Et=function(A,e){return _A(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:$A(A)?oe(A,e):e},xt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Re(A,e)}},Ht={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},St={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},It=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},kt=It("top"),Lt=It("right"),Pt=It("bottom"),Tt=It("left"),Ot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Dt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},Mt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Kt=Mt("top"),Rt=Mt("right"),Vt=Mt("bottom"),Nt=Mt("left"),jt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Gt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},_t={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&XA(e[0],"none")?[]:YA(e).map((function(e){for(var t={color:Qe.TRANSPARENT,offsetX:ee,offsetY:ee,blur:ee},n=0,r=0;r"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},zt={matrix:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===e.length?e:null},matrix3d:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),t=e[0],n=e[1];e[2],e[3];var r=e[4],o=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var i=e[12],a=e[13];return e[14],e[15],16===e.length?[t,n,r,o,i,a]:null}},Jt={type:16,number:50,flags:4},Yt=[Jt,Jt],Zt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter($A);return 2!==t.length?Yt:[t[0],t[1]]}},qt={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(Ct||(Ct={}));for(var $t={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return Ct.BREAK_ALL;case"keep-all":return Ct.KEEP_ALL;default:return Ct.NORMAL}}},An={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(GA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},en={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},tn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return GA(e)?e.number:1}},nn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},on={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],n=[];return e.forEach((function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:n.push(t.join(" ")),t.length=0}})),t.length&&n.push(t.join(" ")),n.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},an={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},sn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return GA(e)?e.number:_A(e)&&"bold"===e.value?700:400}},ln={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(_A).map((function(A){return A.value}))}},un={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},cn=function(A,e){return 0!=(A&e)},dn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},fn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var n=[],r=e.filter(zA),o=0;o1?1:0],this.overflowWrap=Un(A,Dt,e.overflowWrap),this.paddingTop=Un(A,Kt,e.paddingTop),this.paddingRight=Un(A,Rt,e.paddingRight),this.paddingBottom=Un(A,Vt,e.paddingBottom),this.paddingLeft=Un(A,Nt,e.paddingLeft),this.paintOrder=Un(A,wn,e.paintOrder),this.position=Un(A,Gt,e.position),this.textAlign=Un(A,jt,e.textAlign),this.textDecorationColor=Un(A,nn,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=Un(A,rn,null!==(n=e.textDecorationLine)&&void 0!==n?n:e.textDecoration),this.textShadow=Un(A,_t,e.textShadow),this.textTransform=Un(A,Wt,e.textTransform),this.transform=Un(A,Xt,e.transform),this.transformOrigin=Un(A,Zt,e.transformOrigin),this.visibility=Un(A,qt,e.visibility),this.webkitTextStrokeColor=Un(A,yn,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Un(A,vn,e.webkitTextStrokeWidth),this.wordBreak=Un(A,$t,e.wordBreak),this.zIndex=Un(A,An,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return fe(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return cn(this.display,4)||cn(this.display,33554432)||cn(this.display,268435456)||cn(this.display,536870912)||cn(this.display,67108864)||cn(this.display,134217728)},A}(),bn=function(A,e){this.content=Un(A,dn,e.content),this.quotes=Un(A,pn,e.quotes)},Cn=function(A,e){this.counterIncrement=Un(A,fn,e.counterIncrement),this.counterReset=Un(A,gn,e.counterReset)},Un=function(A,e,t){var n=new VA,r=null!==t&&typeof t<"u"?t.toString():e.initialValue;n.write(r);var o=new NA(n.read());switch(e.type){case 2:var i=o.parseComponentValue();return e.parse(A,_A(i)?i.value:e.initialValue);case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return se(A,o.parseComponentValue());case"color":return de(A,o.parseComponentValue());case"image":return Re(A,o.parseComponentValue());case"length":var a=o.parseComponentValue();return qA(a)?a:ee;case"length-percentage":var s=o.parseComponentValue();return $A(s)?s:ee;case"time":return en.parse(A,o.parseComponentValue())}}},Fn=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},En=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Fn(e,3),this.styles=new Qn(A,window.getComputedStyle(e,null)),Ir(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),Fn(e,4)&&(this.flags|=16)},xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hn=typeof Uint8Array>"u"?[]:new Uint8Array(256),Sn=0;Sn<64;Sn++)Hn[xn.charCodeAt(Sn)]=Sn;for(var In=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},kn=function(){function A(A,e,t,n,r,o){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=o}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pn=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tn=0;Tn<64;Tn++)Pn[Ln.charCodeAt(Tn)]=Tn;var On,Dn=8,Mn=9,Kn=11,Rn=12,Vn=function(){for(var A=[],e=0;e>10),i%1024+56320)),(r+1===t||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},Nn=function(A,e){var t=function(A){var e,t,n,r,o,i=.75*A.length,a=A.length,s=0;"="===A[A.length-1]&&(i--,"="===A[A.length-2]&&i--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),u=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e>4,u[s++]=(15&n)<<4|r>>2,u[s++]=(3&r)<<6|63&o;return l}(A),n=Array.isArray(t)?function(A){for(var e=A.length,t=[],n=0;n=55296&&r<=56319&&t=t)return{done:!0,value:null};for(var A=jn;ni.x||r.y>i.y;return i=r,0===e||a}));return A.body.removeChild(e),a}(document);return Object.defineProperty(Yn,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0}(document);return Object.defineProperty(Yn,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var r=new Image,o=e.toDataURL();r.src=o;var i=zn(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),Jn(i).then((function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var i=A.createElement("div");return i.style.backgroundImage="url("+o+")",i.style.height=t+"px",Xn(r)?Jn(zn(t,t,0,0,i)):Promise.reject(!1)})).then((function(A){return n.drawImage(A,0,0),Xn(n.getImageData(0,0,t,t).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Yn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=typeof(new Image).crossOrigin<"u";return Object.defineProperty(Yn,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Yn,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Yn,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Yn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Zn=function(A,e){this.text=A,this.bounds=e},qn=function(A,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var o=a(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),o}}return i.EMPTY},$n=function(A,e,t){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},Ar=function(A){if(Yn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){for(var e,t=Wn(A),n=[];!(e=t.next()).done;)e.value&&n.push(e.value.slice());return n}(A)},er=function(A,e){return 0!==e.letterSpacing?Ar(A):function(A,e){if(Yn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return nr(A,e)}(A,e)},tr=[32,160,4961,65792,65793,4153,4241],nr=function(A,e){for(var t,n=function(A,e){var t=s(A),n=oA(t,e),r=n[0],o=n[1],i=n[2],a=t.length,l=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var A=W;u0)if(Yn.SUPPORT_RANGE_BOUNDS){var r=$n(n,a,e.length).getClientRects();if(r.length>1){var s=Ar(e),l=0;s.forEach((function(e){o.push(new Zn(e,i.fromDOMRectList(A,$n(n,l+a,e.length).getClientRects()))),l+=e.length}))}else o.push(new Zn(e,i.fromDOMRectList(A,r)))}else{var u=n.splitText(e.length);o.push(new Zn(e,qn(A,n))),n=u}else Yn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));a+=e.length})),o}(A,this.text,t,e)},or=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(ir,ar);case 2:return A.toUpperCase();default:return A}},ir=/(^|\s|:|-|\(|\))([a-z])/g,ar=function(A,e,t){return A.length>0?e+t.toUpperCase():A},sr=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e(t,A),t}(En),lr=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e(t,A),t}(En),ur=function(A){function t(e,t){var n=A.call(this,e,t)||this,r=new XMLSerializer,o=a(e,t);return t.setAttribute("width",o.width+"px"),t.setAttribute("height",o.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e(t,A),t}(En),cr=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.value=t.value,n}return e(t,A),t}(En),dr=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.start=t.start,n.reversed="boolean"==typeof t.reversed&&!0===t.reversed,n}return e(t,A),t}(En),fr=[{type:15,flags:0,unit:"px",number:3}],gr=[{type:16,flags:0,number:50}],hr="checkbox",pr="radio",Br="password",mr=707406591,wr=function(A){function t(e,t){var n=A.call(this,e,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=function(A){var e=A.type===Br?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e}(t),(n.type===hr||n.type===pr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=function(A){return A.width>A.height?new i(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)t.textNodes.push(new rr(A,r,t.styles));else if(Sr(r))if(_r(r)&&r.assignedNodes)r.assignedNodes().forEach((function(e){return Cr(A,e,t,n)}));else{var i=Ur(A,r);i.styles.isVisible()&&(Er(r,i,n)?i.flags|=4:xr(i.styles)&&(i.flags|=2),-1!==br.indexOf(r.tagName)&&(i.flags|=8),t.elements.push(i),r.slot,r.shadowRoot?Cr(A,r.shadowRoot,i,n):!jr(r)&&!Or(r)&&!Gr(r)&&Cr(A,r,i,n))}},Ur=function(A,e){return Rr(e)?new sr(A,e):Mr(e)?new lr(A,e):Or(e)?new ur(A,e):Lr(e)?new cr(A,e):Pr(e)?new dr(A,e):Tr(e)?new wr(A,e):Gr(e)?new yr(A,e):jr(e)?new vr(A,e):Vr(e)?new Qr(A,e):new En(A,e)},Fr=function(A,e){var t=Ur(A,e);return t.flags|=4,Cr(A,e,t,t),t},Er=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Dr(A)&&t.styles.isTransparent()},xr=function(A){return A.isPositioned()||A.isFloating()},Hr=function(A){return A.nodeType===Node.TEXT_NODE},Sr=function(A){return A.nodeType===Node.ELEMENT_NODE},Ir=function(A){return Sr(A)&&typeof A.style<"u"&&!kr(A)},kr=function(A){return"object"==typeof A.className},Lr=function(A){return"LI"===A.tagName},Pr=function(A){return"OL"===A.tagName},Tr=function(A){return"INPUT"===A.tagName},Or=function(A){return"svg"===A.tagName},Dr=function(A){return"BODY"===A.tagName},Mr=function(A){return"CANVAS"===A.tagName},Kr=function(A){return"VIDEO"===A.tagName},Rr=function(A){return"IMG"===A.tagName},Vr=function(A){return"IFRAME"===A.tagName},Nr=function(A){return"STYLE"===A.tagName},jr=function(A){return"TEXTAREA"===A.tagName},Gr=function(A){return"SELECT"===A.tagName},_r=function(A){return"SLOT"===A.tagName},Wr=function(A){return A.tagName.indexOf("-")>0},Xr=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){return this.counters[A]||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,r=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(r=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var o=[];return r&&n.forEach((function(A){var t=e.counters[A.counter];o.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),o},A}(),zr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Jr={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Yr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Zr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qr=function(A,e,t,n,r,o){return At?ao(A,r,o.length>0):n.integers.reduce((function(e,t,r){for(;A>=t;)A-=t,e+=n.values[r];return e}),"")+o},$r=function(A,e,t,n){var r="";do{t||A--,r=n(A)+r,A/=e}while(A*e>=e);return r},Ao=function(A,e,t,n,r){var o=t-e+1;return(A<0?"-":"")+($r(Math.abs(A),o,n,(function(A){return l(Math.floor(A%o)+e)}))+r)},eo=function(A,e,t){void 0===t&&(t=". ");var n=e.length;return $r(Math.abs(A),n,!1,(function(A){return e[Math.floor(A%n)]}))+t},to=function(A,e,t,n,r,o){if(A<-9999||A>9999)return ao(A,4,r.length>0);var i=Math.abs(A),a=r;if(0===i)return e[0]+a;for(var s=0;i>0&&s<=4;s++){var l=i%10;0===l&&cn(o,1)&&""!==a?a=e[l]+a:l>1||1===l&&0===s||1===l&&1===s&&cn(o,2)||1===l&&1===s&&cn(o,4)&&A>100||1===l&&s>1&&cn(o,8)?a=e[l]+(s>0?t[s-1]:"")+a:1===l&&s>0&&(a=t[s-1]+a),i=Math.floor(i/10)}return(A<0?n:"")+a},no="十百千萬",ro="拾佰仟萬",oo="マイナス",io="마이너스",ao=function(A,e,t){var n=t?". ":"",r=t?"、":"",o=t?", ":"",i=t?" ":"";switch(e){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var a=Ao(A,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return eo(A,"〇一二三四五六七八九",r);case 6:return qr(A,1,3999,zr,3,n).toLowerCase();case 7:return qr(A,1,3999,zr,3,n);case 8:return Ao(A,945,969,!1,n);case 9:return Ao(A,97,122,!1,n);case 10:return Ao(A,65,90,!1,n);case 11:return Ao(A,1632,1641,!0,n);case 12:case 49:return qr(A,1,9999,Jr,3,n);case 35:return qr(A,1,9999,Jr,3,n).toLowerCase();case 13:return Ao(A,2534,2543,!0,n);case 14:case 30:return Ao(A,6112,6121,!0,n);case 15:return eo(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return eo(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return to(A,"零一二三四五六七八九",no,"負",r,14);case 47:return to(A,"零壹貳參肆伍陸柒捌玖",ro,"負",r,15);case 42:return to(A,"零一二三四五六七八九",no,"负",r,14);case 41:return to(A,"零壹贰叁肆伍陆柒捌玖",ro,"负",r,15);case 26:return to(A,"〇一二三四五六七八九","十百千万",oo,r,0);case 25:return to(A,"零壱弐参四伍六七八九","拾百千万",oo,r,7);case 31:return to(A,"영일이삼사오육칠팔구","십백천만",io,o,7);case 33:return to(A,"零一二三四五六七八九","十百千萬",io,o,0);case 32:return to(A,"零壹貳參四五六七八九","拾百千",io,o,7);case 18:return Ao(A,2406,2415,!0,n);case 20:return qr(A,1,19999,Zr,3,n);case 21:return Ao(A,2790,2799,!0,n);case 22:return Ao(A,2662,2671,!0,n);case 22:return qr(A,1,10999,Yr,3,n);case 23:return eo(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return eo(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ao(A,3302,3311,!0,n);case 28:return eo(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return eo(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Ao(A,3792,3801,!0,n);case 37:return Ao(A,6160,6169,!0,n);case 38:return Ao(A,4160,4169,!0,n);case 39:return Ao(A,2918,2927,!0,n);case 40:return Ao(A,1776,1785,!0,n);case 43:return Ao(A,3046,3055,!0,n);case 44:return Ao(A,3174,3183,!0,n);case 45:return Ao(A,3664,3673,!0,n);case 46:return Ao(A,3872,3881,!0,n);default:return Ao(A,48,57,!0,n)}},so="data-html2canvas-ignore",lo=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Xr,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,o=co(A,e);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,s=o.contentWindow,l=s.document,u=ho(o).then((function(){return n(t,void 0,void 0,(function(){var A,t;return r(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(yo),s&&(s.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),A=this.options.onclone,typeof(t=this.clonedReferenceElement)>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,go(l)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(l,t)})).then((function(){return o}))]:[2,o]}}))}))}));return l.open(),l.write(mo(document.doctype)+""),wo(this.referenceElement.ownerDocument,i,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},A.prototype.createElementClone=function(A){if(Fn(A,2),Mr(A))return this.createCanvasClone(A);if(Kr(A))return this.createVideoClone(A);if(Nr(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Rr(e)&&(Rr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Wr(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Bo(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var r=A.getContext("2d"),o=n.getContext("2d");if(o)if(!this.options.allowTaint&&r)o.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{var i=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(i){var a=i.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}o.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},A.prototype.appendChildNode=function(A,e,t){(!Sr(e)||!function(A){return"SCRIPT"===A.tagName}(e)&&!e.hasAttribute(so)&&("function"!=typeof this.options.ignoreElements||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Sr(e)||!Nr(e))&&A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var n=this,r=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;r;r=r.nextSibling)if(Sr(r)&&_r(r)&&"function"==typeof r.assignedNodes){var o=r.assignedNodes();o.length&&o.forEach((function(A){return n.appendChildNode(e,A,t)}))}else this.appendChildNode(e,r,t)},A.prototype.cloneNode=function(A,e){if(Hr(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Sr(A)&&(Ir(A)||kr(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var r=t.getComputedStyle(A),o=t.getComputedStyle(A,":before"),i=t.getComputedStyle(A,":after");this.referenceElement===A&&Ir(n)&&(this.clonedReferenceElement=n),Dr(n)&&Co(n);var a=this.counters.parse(new Cn(this.context,r)),s=this.resolvePseudoContent(A,n,o,On.BEFORE);Wr(A)&&(e=!0),Kr(A)||this.cloneChildNodes(A,n,e),s&&n.insertBefore(s,n.firstChild);var l=this.resolvePseudoContent(A,n,i,On.AFTER);return l&&n.appendChild(l),this.counters.pop(a),(r&&(this.options.copyStyles||kr(A))&&!Vr(A)||e)&&Bo(r,n),(0!==A.scrollTop||0!==A.scrollLeft)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(jr(A)||Gr(A))&&(jr(n)||Gr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,n){var r=this;if(t){var o=t.content,i=e.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==t.display){this.counters.parse(new Cn(this.context,t));var a=new bn(this.context,t),s=i.createElement("html2canvaspseudoelement");Bo(t,s),a.content.forEach((function(e){if(0===e.type)s.appendChild(i.createTextNode(e.value));else if(22===e.type){var t=i.createElement("img");t.src=e.value,t.style.opacity="1",s.appendChild(t)}else if(18===e.type){if("attr"===e.name){var n=e.values.filter(_A);n.length&&s.appendChild(i.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(JA),l=o[0],u=o[1];if(l&&_A(l)){var c=r.counters.getCounterValue(l.value),d=u&&_A(u)?St.parse(r.context,u.value):3;s.appendChild(i.createTextNode(ao(c,d,!1)))}}else if("counters"===e.name){var f=e.values.filter(JA),g=(l=f[0],f[1]);if(u=f[2],l&&_A(l)){var h=r.counters.getCounterValues(l.value),p=u&&_A(u)?St.parse(r.context,u.value):3,B=g&&0===g.type?g.value:"",m=h.map((function(A){return ao(A,p,!1)})).join(B);s.appendChild(i.createTextNode(m))}}}else if(20===e.type)switch(e.value){case"open-quote":s.appendChild(i.createTextNode(Bn(a.quotes,r.quoteDepth++,!0)));break;case"close-quote":s.appendChild(i.createTextNode(Bn(a.quotes,--r.quoteDepth,!1)));break;default:s.appendChild(i.createTextNode(e.value))}})),s.className=vo+" "+Qo;var l=n===On.BEFORE?" "+vo:" "+Qo;return kr(e)?e.className.baseValue+=l:e.className+=l,s}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(On||(On={}));var uo,co=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(so,"true"),A.body.appendChild(t),t},fo=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},go=function(A){return Promise.all([].slice.call(A.images,0).map(fo))},ho=function(A){return new Promise((function(e,t){var n=A.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=A.onload=function(){n.onload=A.onload=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(A))}),50)}}))},po=["all","d","content"],Bo=function(A,e){for(var t=A.length-1;t>=0;t--){var n=A.item(t);-1===po.indexOf(n)&&e.style.setProperty(n,A.getPropertyValue(n))}return e},mo=function(A){var e="";return A&&(e+=""),e},wo=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},yo=function(A){var e=A[0],t=A[1],n=A[2];e.scrollLeft=t,e.scrollTop=n},vo="___html2canvas___pseudoelement_before",Qo="___html2canvas___pseudoelement_after",bo='{\n content: "" !important;\n display: none !important;\n}',Co=function(A){Uo(A,"."+vo+":before"+bo+"\n ."+Qo+":after"+bo)},Uo=function(A,e){var t=A.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,A.appendChild(n)}},Fo=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),Eo=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Po(A)||Io(A))&&(this._cache[A]=this.loadImage(A)).catch((function(){})),e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return n(this,void 0,void 0,(function(){var e,t,n,o,i=this;return r(this,(function(r){switch(r.label){case 0:return e=Fo.isSameOrigin(A),t=!ko(A)&&!0===this._options.useCORS&&Yn.SUPPORT_CORS_IMAGES&&!e,n=!ko(A)&&!e&&!Po(A)&&"string"==typeof this._options.proxy&&Yn.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||ko(A)||Po(A)||n||t?(o=A,n?[4,this.proxy(o)]:[3,2]):[2];case 1:o=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var n=new Image;n.onload=function(){return A(n)},n.onerror=e,(Lo(o)||t)&&(n.crossOrigin="anonymous"),n.src=o,!0===n.complete&&setTimeout((function(){return A(n)}),500),i._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},A.prototype.has=function(A){return typeof this._cache[A]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(r,o){var i=Yn.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===i)r(a.response);else{var A=new FileReader;A.addEventListener("load",(function(){return r(A.result)}),!1),A.addEventListener("error",(function(A){return o(A)}),!1),A.readAsDataURL(a.response)}else o("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=o;var s=t.indexOf("?")>-1?"&":"?";if(a.open("GET",""+t+s+"url="+encodeURIComponent(A)+"&responseType="+i),"text"!==i&&a instanceof XMLHttpRequest&&(a.responseType=i),e._options.imageTimeout){var l=e._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return o("Timed out ("+l+"ms) proxying "+n)}}a.send()}))},A}(),xo=/^data:image\/svg\+xml/i,Ho=/^data:image\/.*;base64,/i,So=/^data:image\/.*/i,Io=function(A){return Yn.SUPPORT_SVG_DRAWING||!To(A)},ko=function(A){return So.test(A)},Lo=function(A){return Ho.test(A)},Po=function(A){return"blob"===A.substr(0,4)},To=function(A){return"svg"===A.substr(-3).toLowerCase()||xo.test(A)},Oo=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Do=function(A,e,t){return new Oo(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Mo=function(){function A(A,e,t,n){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,t){var n=Do(this.start,this.startControl,e),r=Do(this.startControl,this.endControl,e),o=Do(this.endControl,this.end,e),i=Do(n,r,e),a=Do(r,o,e),s=Do(i,a,e);return t?new A(this.start,n,i,s):new A(s,a,o,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Ko=function(A){return 1===A.type},Ro=function(A){var e=A.styles,t=A.bounds,n=re(e.borderTopLeftRadius,t.width,t.height),r=n[0],o=n[1],i=re(e.borderTopRightRadius,t.width,t.height),a=i[0],s=i[1],l=re(e.borderBottomRightRadius,t.width,t.height),u=l[0],c=l[1],d=re(e.borderBottomLeftRadius,t.width,t.height),f=d[0],g=d[1],h=[];h.push((r+a)/t.width),h.push((f+u)/t.width),h.push((o+g)/t.height),h.push((s+c)/t.height);var p=Math.max.apply(Math,h);p>1&&(r/=p,o/=p,a/=p,s/=p,u/=p,c/=p,f/=p,g/=p);var B=t.width-a,m=t.height-c,w=t.width-u,y=t.height-g,v=e.borderTopWidth,Q=e.borderRightWidth,b=e.borderBottomWidth,C=e.borderLeftWidth,U=oe(e.paddingTop,A.bounds.width),F=oe(e.paddingRight,A.bounds.width),E=oe(e.paddingBottom,A.bounds.width),x=oe(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||o>0?Vo(t.left+C/3,t.top+v/3,r-C/3,o-v/3,uo.TOP_LEFT):new Oo(t.left+C/3,t.top+v/3),this.topRightBorderDoubleOuterBox=r>0||o>0?Vo(t.left+B,t.top+v/3,a-Q/3,s-v/3,uo.TOP_RIGHT):new Oo(t.left+t.width-Q/3,t.top+v/3),this.bottomRightBorderDoubleOuterBox=u>0||c>0?Vo(t.left+w,t.top+m,u-Q/3,c-b/3,uo.BOTTOM_RIGHT):new Oo(t.left+t.width-Q/3,t.top+t.height-b/3),this.bottomLeftBorderDoubleOuterBox=f>0||g>0?Vo(t.left+C/3,t.top+y,f-C/3,g-b/3,uo.BOTTOM_LEFT):new Oo(t.left+C/3,t.top+t.height-b/3),this.topLeftBorderDoubleInnerBox=r>0||o>0?Vo(t.left+2*C/3,t.top+2*v/3,r-2*C/3,o-2*v/3,uo.TOP_LEFT):new Oo(t.left+2*C/3,t.top+2*v/3),this.topRightBorderDoubleInnerBox=r>0||o>0?Vo(t.left+B,t.top+2*v/3,a-2*Q/3,s-2*v/3,uo.TOP_RIGHT):new Oo(t.left+t.width-2*Q/3,t.top+2*v/3),this.bottomRightBorderDoubleInnerBox=u>0||c>0?Vo(t.left+w,t.top+m,u-2*Q/3,c-2*b/3,uo.BOTTOM_RIGHT):new Oo(t.left+t.width-2*Q/3,t.top+t.height-2*b/3),this.bottomLeftBorderDoubleInnerBox=f>0||g>0?Vo(t.left+2*C/3,t.top+y,f-2*C/3,g-2*b/3,uo.BOTTOM_LEFT):new Oo(t.left+2*C/3,t.top+t.height-2*b/3),this.topLeftBorderStroke=r>0||o>0?Vo(t.left+C/2,t.top+v/2,r-C/2,o-v/2,uo.TOP_LEFT):new Oo(t.left+C/2,t.top+v/2),this.topRightBorderStroke=r>0||o>0?Vo(t.left+B,t.top+v/2,a-Q/2,s-v/2,uo.TOP_RIGHT):new Oo(t.left+t.width-Q/2,t.top+v/2),this.bottomRightBorderStroke=u>0||c>0?Vo(t.left+w,t.top+m,u-Q/2,c-b/2,uo.BOTTOM_RIGHT):new Oo(t.left+t.width-Q/2,t.top+t.height-b/2),this.bottomLeftBorderStroke=f>0||g>0?Vo(t.left+C/2,t.top+y,f-C/2,g-b/2,uo.BOTTOM_LEFT):new Oo(t.left+C/2,t.top+t.height-b/2),this.topLeftBorderBox=r>0||o>0?Vo(t.left,t.top,r,o,uo.TOP_LEFT):new Oo(t.left,t.top),this.topRightBorderBox=a>0||s>0?Vo(t.left+B,t.top,a,s,uo.TOP_RIGHT):new Oo(t.left+t.width,t.top),this.bottomRightBorderBox=u>0||c>0?Vo(t.left+w,t.top+m,u,c,uo.BOTTOM_RIGHT):new Oo(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=f>0||g>0?Vo(t.left,t.top+y,f,g,uo.BOTTOM_LEFT):new Oo(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||o>0?Vo(t.left+C,t.top+v,Math.max(0,r-C),Math.max(0,o-v),uo.TOP_LEFT):new Oo(t.left+C,t.top+v),this.topRightPaddingBox=a>0||s>0?Vo(t.left+Math.min(B,t.width-Q),t.top+v,B>t.width+Q?0:Math.max(0,a-Q),Math.max(0,s-v),uo.TOP_RIGHT):new Oo(t.left+t.width-Q,t.top+v),this.bottomRightPaddingBox=u>0||c>0?Vo(t.left+Math.min(w,t.width-C),t.top+Math.min(m,t.height-b),Math.max(0,u-Q),Math.max(0,c-b),uo.BOTTOM_RIGHT):new Oo(t.left+t.width-Q,t.top+t.height-b),this.bottomLeftPaddingBox=f>0||g>0?Vo(t.left+C,t.top+Math.min(y,t.height-b),Math.max(0,f-C),Math.max(0,g-b),uo.BOTTOM_LEFT):new Oo(t.left+C,t.top+t.height-b),this.topLeftContentBox=r>0||o>0?Vo(t.left+C+x,t.top+v+U,Math.max(0,r-(C+x)),Math.max(0,o-(v+U)),uo.TOP_LEFT):new Oo(t.left+C+x,t.top+v+U),this.topRightContentBox=a>0||s>0?Vo(t.left+Math.min(B,t.width+C+x),t.top+v+U,B>t.width+C+x?0:a-C+x,s-(v+U),uo.TOP_RIGHT):new Oo(t.left+t.width-(Q+F),t.top+v+U),this.bottomRightContentBox=u>0||c>0?Vo(t.left+Math.min(w,t.width-(C+x)),t.top+Math.min(m,t.height+v+U),Math.max(0,u-(Q+F)),c-(b+E),uo.BOTTOM_RIGHT):new Oo(t.left+t.width-(Q+F),t.top+t.height-(b+E)),this.bottomLeftContentBox=f>0||g>0?Vo(t.left+C+x,t.top+y,Math.max(0,f-(C+x)),g-(b+E),uo.BOTTOM_LEFT):new Oo(t.left+C+x,t.top+t.height-(b+E))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(uo||(uo={}));var Vo=function(A,e,t,n,r){var o=(Math.sqrt(2)-1)/3*4,i=t*o,a=n*o,s=A+t,l=e+n;switch(r){case uo.TOP_LEFT:return new Mo(new Oo(A,l),new Oo(A,l-a),new Oo(s-i,e),new Oo(s,e));case uo.TOP_RIGHT:return new Mo(new Oo(A,e),new Oo(A+i,e),new Oo(s,l-a),new Oo(s,l));case uo.BOTTOM_RIGHT:return new Mo(new Oo(s,e),new Oo(s,e+a),new Oo(A+i,l),new Oo(A,l));case uo.BOTTOM_LEFT:default:return new Mo(new Oo(s,l),new Oo(s-i,l),new Oo(A,e+a),new Oo(A,e))}},No=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},jo=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Go=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},_o=function(A,e){this.path=A,this.target=e,this.type=1},Wo=function(A){this.opacity=A,this.type=2,this.target=6},Xo=function(A){return 1===A.type},zo=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Jo=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Yo=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Ro(this.container),this.container.styles.opacity<1&&this.effects.push(new Wo(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Go(t,n,r))}if(0!==this.container.styles.overflowX){var o=No(this.curves),i=jo(this.curves);zo(o,i)?this.effects.push(new _o(o,6)):(this.effects.push(new _o(o,2)),this.effects.push(new _o(i,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,n=this.effects.slice(0);t;){var r=t.effects.filter((function(A){return!Xo(A)}));if(e||0!==t.container.styles.position||!t.parent){if(n.unshift.apply(n,r),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var o=No(t.curves),i=jo(t.curves);zo(o,i)||n.unshift(new _o(i,6))}}else n.unshift.apply(n,r);t=t.parent}return n.filter((function(e){return cn(e.target,A)}))},A}(),Zo=function(A,e,t,n){A.container.elements.forEach((function(r){var o=cn(r.flags,4),i=cn(r.flags,2),a=new Yo(r,A);cn(r.styles.display,2048)&&n.push(a);var s=cn(r.flags,8)?[]:n;if(o||i){var l=o||r.styles.isPositioned()?t:e,u=new Jo(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var c=r.styles.zIndex.order;if(c<0){var d=0;l.negativeZIndex.some((function(A,e){return c>A.element.container.styles.zIndex.order?(d=e,!1):d>0})),l.negativeZIndex.splice(d,0,u)}else if(c>0){var f=0;l.positiveZIndex.some((function(A,e){return c>=A.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),l.positiveZIndex.splice(f,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Zo(a,u,o?u:t,s)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Zo(a,e,t,s);cn(r.flags,8)&&qo(r,s)}))},qo=function(A,e){for(var t=A instanceof dr?A.start:1,n=A instanceof dr&&A.reversed,r=0;r"u"?A[0]:t},li=function(A,e,t,n,r){var o=e[0],i=e[1],a=t[0],s=t[1];switch(A){case 2:return[new Oo(Math.round(n.left),Math.round(n.top+i)),new Oo(Math.round(n.left+n.width),Math.round(n.top+i)),new Oo(Math.round(n.left+n.width),Math.round(s+n.top+i)),new Oo(Math.round(n.left),Math.round(s+n.top+i))];case 3:return[new Oo(Math.round(n.left+o),Math.round(n.top)),new Oo(Math.round(n.left+o+a),Math.round(n.top)),new Oo(Math.round(n.left+o+a),Math.round(n.height+n.top)),new Oo(Math.round(n.left+o),Math.round(n.height+n.top))];case 1:return[new Oo(Math.round(n.left+o),Math.round(n.top+i)),new Oo(Math.round(n.left+o+a),Math.round(n.top+i)),new Oo(Math.round(n.left+o+a),Math.round(n.top+i+s)),new Oo(Math.round(n.left+o),Math.round(n.top+i+s))];default:return[new Oo(Math.round(r.left),Math.round(r.top)),new Oo(Math.round(r.left+r.width),Math.round(r.top)),new Oo(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Oo(Math.round(r.left),Math.round(r.height+r.top))]}},ui="Hidden Text",ci=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),n=this._document.createElement("img"),r=this._document.createElement("span"),o=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",o.appendChild(t),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(ui)),t.appendChild(r),t.appendChild(n);var i=n.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(ui)),t.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-t.offsetTop+2;return o.removeChild(t),{baseline:i,middle:a}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),di=function(A,e){this.context=A,this.options=e},fi=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new ci(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return e(t,A),t.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach((function(A){return e.applyEffect(A)}))},t.prototype.applyEffect=function(A){this.ctx.save(),function(A){return 2===A.type}(A)&&(this.ctx.globalAlpha=A.opacity),function(A){return 0===A.type}(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Xo(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return n(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(A){return n(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return cn(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(A,e,t){var n=this;0===e?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):Ar(A.text).reduce((function(e,r){return n.ctx.fillText(r,e,A.bounds.top+t),e+n.ctx.measureText(r).width}),A.bounds.left)},t.prototype.createFontStyle=function(A){var e=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),t=mi(A.fontFamily).join(", "),n=jA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]},t.prototype.renderTextNode=function(A,e){return n(this,void 0,void 0,(function(){var t,n,o,i,a,s,l,u,c=this;return r(this,(function(r){return t=this.createFontStyle(e),n=t[0],o=t[1],i=t[2],this.ctx.font=n,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(o,i),s=a.baseline,l=a.middle,u=e.paintOrder,A.textBounds.forEach((function(A){u.forEach((function(t){switch(t){case 0:c.ctx.fillStyle=ge(e.color),c.renderTextWithLetterSpacing(A,e.letterSpacing,s);var n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach((function(t){c.ctx.shadowColor=ge(t.color),c.ctx.shadowOffsetX=t.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=t.offsetY.number*c.options.scale,c.ctx.shadowBlur=t.blur.number,c.renderTextWithLetterSpacing(A,e.letterSpacing,s)})),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),e.textDecorationLine.length&&(c.ctx.fillStyle=ge(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:c.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+s),A.bounds.width,1);break;case 2:c.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:c.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+l),A.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(c.ctx.strokeStyle=ge(e.webkitTextStrokeColor),c.ctx.lineWidth=e.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+s)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter"}}))})),[2]}))}))},t.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var n=ni(A),r=jo(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return n(this,void 0,void 0,(function(){var e,n,o,a,s,l,u,c,d,f,g,h,p,B,m,w,y,v;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,n=A.curves,o=e.styles,a=0,s=e.textNodes,r.label=1;case 1:return a0&&S>0&&(I=n.ctx.createRadialGradient(v+F,Q+E,0,v+F,Q+E,H),Fe(t.stops,2*H).forEach((function(A){return I.addColorStop(A.stop,ge(A.color))})),n.path(y),n.ctx.fillStyle=I,H!==S?(k=A.bounds.left+.5*A.bounds.width,L=A.bounds.top+.5*A.bounds.height,T=1/(P=S/H),n.ctx.save(),n.ctx.translate(k,L),n.ctx.transform(1,0,0,P,0,0),n.ctx.translate(-k,-L),n.ctx.fillRect(v,T*(Q-L)+L,b,C*T),n.ctx.restore()):n.ctx.fill())):(s=ri(A,e,[null,null,null]),y=s[0],F=s[1],E=s[2],b=s[3],C=s[4],l=Ee(t.angle,b,C),u=l[0],c=l[1],d=l[2],f=l[3],g=l[4],(h=document.createElement("canvas")).width=b,h.height=C,p=h.getContext("2d"),B=p.createLinearGradient(c,f,d,g),Fe(t.stops,u).forEach((function(A){return B.addColorStop(A.stop,ge(A.color))})),p.fillStyle=B,p.fillRect(0,0,b,C),b>0&&C>0&&(m=n.ctx.createPattern(h,"repeat"),n.renderRepeat(y,m,F,E))),r.label=6;case 6:return e--,[2]}}))},n=this,o=0,i=A.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return o0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,i,A.curves,2)]:[3,11]:[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,i,A.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,i,A.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,i,A.curves)];case 10:r.sent(),r.label=11;case 11:i++,r.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,o,i){return n(this,void 0,void 0,(function(){var n,a,s,l,u,c,d,f,g,h,p,B,m,w,y,v;return r(this,(function(r){return this.ctx.save(),n=function(A,e){switch(e){case 0:return Ai(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ai(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ai(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Ai(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(o,t),a=$o(o,t),2===i&&(this.path(a),this.ctx.clip()),Ko(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),Ko(a[1])?(u=a[1].end.x,c=a[1].end.y):(u=a[1].x,c=a[1].y),d=0===t||2===t?Math.abs(s-u):Math.abs(l-c),this.ctx.beginPath(),3===i?this.formatPath(n):this.formatPath(a.slice(0,2)),f=e<3?3*e:2*e,g=e<3?2*e:e,3===i&&(f=e,g=e),h=!0,d<=2*f?h=!1:d<=2*f+g?(f*=p=d/(2*f+g),g*=p):(B=Math.floor((d+g)/(f+g)),m=(d-B*f)/(B-1),g=(w=(d-(B+1)*f)/B)<=0||Math.abs(g-m)A.length)&&(e=A.length);for(var t=0,n=new Array(e);tA.length)&&(e=A.length);for(var t=0,n=new Array(e);t99?0:e<10?7:3,top:1,fontWeight:400,fontSize:13}},"°"))},p=function(){var A=(0,n.usePicker)().deletePoint;return t.default.createElement("div",{onClick:A,style:c(c(c(c(c(c({},a.df),a.jc),a.ac),a.controlBtnsWrap),{},{width:30},(0,o.controlBtnStyles)(!1)),{},{marginRight:1})},t.default.createElement(i.default,null))}}(pc)),pc}function Wd(){return JB||(JB=1,function(A){function e(A){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}Object.defineProperty(A,"__esModule",{value:!0}),A.default=A.controlBtnStyles=void 0;var t=function(A,t){if(A&&A.__esModule)return A;if(null===A||"object"!==e(A)&&"function"!=typeof A)return{default:A};var n=d(t);if(n&&n.has(A))return n.get(A);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in A)if("default"!==i&&Object.prototype.hasOwnProperty.call(A,i)){var a=o?Object.getOwnPropertyDescriptor(A,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=A[i]}return r.default=A,n&&n.set(A,r),r}(AA),n=jd,r=Bt,o=c(c4()),i=Vt,a=c(Xw),s=c(Jw),l=c(f4()),u=bA;function c(A){return A&&A.__esModule?A:{default:A}}function d(A){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(d=function(A){return A?t:e})(A)}function f(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function g(A){for(var e=1;eA.length)&&(e=A.length);for(var t=0,n=new Array(e);tA.length)&&(e=A.length);for(var t=0,n=new Array(e);tA.length)&&(e=A.length);for(var t=0,n=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:c,t=null==i?void 0:i.filter((function(A){return!(0,Es.isUpperCase)(A.value)})),n=[{value:A.toUpperCase(),left:e}].concat(Bc(t));U(n)},E=function(A){t?F(A):e(A)};return{setLinear:function(){var t=A.split(/,(.+)/)[1];e("linear-gradient(90deg, ".concat(t))},setRadial:function(){var t=A.split(/,(.+)/)[1];e("radial-gradient(circle, ".concat(t))},setDegrees:function(t){var r=A.split(/,(.+)/)[1];e("linear-gradient(".concat((0,lt.formatInputValues)(t,0,360),"deg, ").concat(r)),"linear-gradient"!==n&&console.log("Warning: you are updating degrees when the gradient type is not linear. This will change the gradients type which may be undesired")},setSolid:function(A){e(A||F4)},setGradient:function(A){e(A||U4)},setR:function(A){var e=(0,lt.formatInputValues)(A,0,255);E("rgba(".concat(e,", ").concat(m,", ").concat(w,", ").concat(y,")"))},setG:function(A){var e=(0,lt.formatInputValues)(A,0,255);E("rgba(".concat(B,", ").concat(e,", ").concat(w,", ").concat(y,")"))},setB:function(A){var e=(0,lt.formatInputValues)(A,0,255);E("rgba(".concat(B,", ").concat(m,", ").concat(e,", ").concat(y,")"))},setA:function(A){var e=(0,lt.formatInputValues)(A,0,100);E("rgba(".concat(B,", ").concat(m,", ").concat(w,", ").concat(e/100,")"))},setHue:function(A){var e=(0,lt.formatInputValues)(A,0,360),t=Uo({h:e,s:b,l:C}).toRgb(),n=t.r,r=t.g,o=t.b;E("rgba(".concat(n,", ").concat(r,", ").concat(o,", ").concat(y,")"))},setSaturation:function(A){var e=(0,lt.formatInputValues)(A,0,100),t=Uo({h:Q,s:e/100,l:C}).toRgb(),n=t.r,r=t.g,o=t.b;E("rgba(".concat(n,", ").concat(r,", ").concat(o,", ").concat(y,")"))},setLightness:function(A){var e=(0,lt.formatInputValues)(A,0,100),t=Uo({h:Q,s:b,l:e/100});if(null!=t&&t.isValid()){var n=t.toRgb(),r=n.r,o=n.g,i=n.b;E("rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(y,")"))}else console.log("The new color was invalid, perhaps the lightness you passed in was a decimal? Please pass the new value between 0 - 100")},valueToHSL:function(){return h.toHslString()},valueToHSV:function(){return h.toHsvString()},valueToHex:function(){return h.toHexString()},valueToCmyk:function(){var A=(0,d4.rgb2cmyk)(B,m,w),e=A.c,t=A.m,n=A.y,r=A.k;return"cmyk(".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,")")},setSelectedPoint:function(A){if(t){var e=null==i?void 0:i.map((function(e,t){return Jt(Jt({},e),{},{value:t===A?(0,lt.high)(e):(0,lt.low)(e)})}));U(e)}else console.log("This function is only relevant when the picker is in gradient mode")},addPoint:function(A){var e=[].concat(Bc(i.map((function(A){return Jt(Jt({},A),{},{value:(0,lt.low)(A)})}))),[{value:l,left:A}]);U(e),A||console.log("You did not pass a stop value (left amount) for the new color point so it defaulted to 50")},deletePoint:function(A){if((null==i?void 0:i.length)>2){var e=A||u,t=null==i?void 0:i.filter((function(A,t){return t!==e}));U(t),A||console.log("You did not pass in the index of the point you wanted to delete so the function default to the currently selected point")}else console.log("A gradient must have atleast two colors, disable your delete button when necessary")},selectedPoint:u,isGradient:t,gradientType:n,degrees:r,setPointLeft:function(A){F(l,(0,lt.formatInputValues)(A,0,100))},currentLeft:c,rgbaArr:[B,m,w,y],hslArr:[Q,b,C],previousColors:f,getGradientObject:function(){if(A)return t?{isGradient:!0,gradientType:n,degrees:o,colors:null==i?void 0:i.map((function(A){var e;return Jt(Jt({},A),{},{value:null===(e=A.value)||void 0===e?void 0:e.toLowerCase()})}))}:{isGradient:!1,gradientType:null,degrees:null,colors:null==i?void 0:i.map((function(A){var e;return Jt(Jt({},A),{},{value:null===(e=A.value)||void 0===e?void 0:e.toLowerCase()})}))};console.log("RBGCP ERROR - YOU MUST PASS A VALUE AND CALLBACK TO THE useColorPicker HOOK")}}};Nl.useColorPicker=E4,function(A){function e(A){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}Object.defineProperty(A,"__esModule",{value:!0});var t={};A.default=void 0;var n=function(A,t){if(A&&A.__esModule)return A;if(null===A||"object"!==e(A)&&"function"!=typeof A)return{default:A};var n=l(t);if(n&&n.has(A))return n.get(A);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in A)if("default"!==i&&Object.prototype.hasOwnProperty.call(A,i)){var a=o?Object.getOwnPropertyDescriptor(A,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=A[i]}return r.default=A,n&&n.set(A,r),r}(AA),r=s(Bt),o=s(Kw),i=Vt,a=Nl;function s(A){return A&&A.__esModule?A:{default:A}}function l(A){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(l=function(A){return A?t:e})(A)}function u(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function c(A){for(var e=1;eA.length)&&(e=A.length);for(var t=0,n=new Array(e);t{const A=localStorage.getItem("colorPickerPresets");return A?JSON.parse(A):r})),a=A=>{"popupClosed"===A.data&&n(!1)};return AA.useEffect((()=>(window.addEventListener("message",a),()=>{window.removeEventListener("message",a)})),[]),AA.useEffect((()=>{if(!t){const e=o.indexOf(A.customThemeColor);let t;t=e>-1?[A.customThemeColor,...o.slice(0,e),...o.slice(e+1)]:[A.customThemeColor,...o].slice(0,18),i(t),localStorage.setItem("colorPickerPresets",JSON.stringify(t))}}),[t]),rA.jsx(Rt.div,{initial:"hidden",animate:t?"visible":"exit",exit:"exit",variants:{hidden:{opacity:0},visible:{opacity:1},exit:{opacity:0}},transition:{duration:.2},onClick:()=>n(!1),className:"absolute top-0 left-0 z-50 flex justify-center w-full h-full pt-4 bg-black/20 "+(t?"":"pointer-events-none"),children:rA.jsx("div",{children:rA.jsx(Rt.div,{initial:"hidden",animate:t?"visible":"exit",exit:"exit",variants:{hidden:{scale:.3},visible:{scale:1},exit:{scale:.4}},transition:{type:"spring",stiffness:500,damping:40},onClick:A=>A.stopPropagation(),className:"h-auto p-4 bg-white border rounded-lg shadow-lg dark:bg-zinc-800 border-zinc-100 dark:border-zinc-700",children:rA.jsx(S4,{presets:o,hideInputs:!0,value:A.customThemeColor,onChange:t=>{e({...A,customThemeColor:t})}})})})})}const I4=async(A,e)=>{var t;const n=await fetch(A.url),r=+n.headers.get("Content-Length");let o=0;const i=null==(t=n.body)?void 0:t.getReader(),a=[];for(;;){const{done:A,value:t}=await i.read();if(A)break;a.push(t),o+=t.length,e(Math.ceil(o/r*100))}const s=new Blob(a);return await Ef(A.id,A.type,s),{id:A.id,type:A.type,blob:s,url:URL.createObjectURL(s)}},zd=()=>new Promise(((A,e)=>{const t=indexedDB.open("MyDatabase",1);t.onerror=()=>e(t.error),t.onsuccess=()=>A(t.result),t.onupgradeneeded=A=>{A.target.result.createObjectStore("backgrounds",{keyPath:"id"})}})),Ef=async(A,e,t)=>new Promise(((n,r)=>{zd().then((async o=>{const i=o.transaction("backgrounds","readwrite"),a=i.objectStore("backgrounds").put({id:A,type:e,blob:t});await new Promise(((A,e)=>{i.oncomplete=()=>A(a.result),i.onerror=()=>e(i.error)})).then(n,r)})).catch(r)})),ZB=async()=>{const A=(await zd()).transaction("backgrounds","readonly").objectStore("backgrounds").getAll();return await new Promise(((e,t)=>{A.onsuccess=()=>e(A.result),A.onerror=()=>t(A.error)}))},qB=[{id:"image-preset-1",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-1.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-1-thumb.jpg",isPreset:!0},{id:"image-preset-2",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-2.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-2-thumb.jpg",isPreset:!0},{id:"image-preset-3",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-3.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-3-thumb.jpg",isPreset:!0},{id:"image-preset-4",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-4.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-4-thumb.jpg",isPreset:!0},{id:"image-preset-5",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-5.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-5-thumb.jpg",isPreset:!0},{id:"image-preset-6",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-6.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-6-thumb.jpg",isPreset:!0},{id:"image-preset-7",type:"image",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-7.jpg",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/images/background-7-thumb.jpg",isPreset:!0},{id:"video-preset-1",type:"video",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/videos/animated-1.mp4",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/videos/animation-1-thumb.mp4",isPreset:!0},{id:"video-preset-2",type:"video",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/videos/animation-2.mp4",previewUrl:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/backgrounds/videos/animation-2-thumb.mp4",isPreset:!0}],b4=async(A,e)=>{const t=await chrome.runtime.sendMessage({type:"currentTab",info:"DownloadTheme",body:{themeName:A,themeURL:e}});console.log("Response: ",t)},H4=async(A,e)=>{const t=await chrome.runtime.sendMessage({type:"currentTab",info:"SetTheme",body:{themeName:A,themeURL:e}});console.log("Response: ",t)},qw=async()=>{const A=await chrome.runtime.sendMessage({type:"currentTab",info:"ListThemes"});return console.log("Response: ",A),A},Sf=async()=>{await chrome.runtime.sendMessage({type:"currentTab",info:"DisableTheme"})},T4=async A=>{await chrome.runtime.sendMessage({type:"currentTab",info:"DeleteTheme",body:{themeName:A}})};function L4({selectedType:A,setSelectedType:e,isEditMode:t}){const[n,r]=AA.useState([]),[o,i]=AA.useState(localStorage.getItem("selectedBackground")),[a,s]=AA.useState([]),[l,u]=AA.useState({}),c=async A=>{var e;const t=null==(e=A.target.files)?void 0:e[0];if(!t)return;const n=`${Date.now()}-${t.name}`,o=t.type.split("/")[0],i=new Blob([t],{type:t.type});await Ef(n,o,i),r((A=>[...A,{id:n,type:o,blob:i,url:URL.createObjectURL(i)}]))},d=async A=>{if(A.isPreset){if(!(await ZB()).some((e=>e.id===A.id))&&void 0===l[A.id]){u((e=>({...e,[A.id]:0})));const e=await I4(A,(e=>{u((t=>({...t,[A.id]:e})))}));u((e=>{const{[A.id]:t,...n}=e;return n})),await Ef(e.id,e.type,e.blob),r((A=>[...A,e])),s((A=>[...A,e.id]))}f(A.id)}},f=A=>{Sf(),e("background"),i(A),localStorage.setItem("selectedBackground",A)},g=async A=>{(await zd()).transaction("backgrounds","readwrite").objectStore("backgrounds").delete(A),r((e=>e.filter((e=>e.id!==A)))),A===o&&h()},h=()=>{e("background"),Sf(),i(null),localStorage.removeItem("selectedBackground")},p=A=>2*Math.PI*A;return AA.useEffect((()=>{(async()=>{const A=await ZB(),e=A.map((A=>({...A,url:URL.createObjectURL(A.blob)})));s(A.map((A=>A.id))),r(e)})()}),[]),rA.jsxs(rA.Fragment,{children:[rA.jsx("button",{disabled:null==o,className:`w-full px-4 py-2 mb-4 dark:text-white transition ${null==o?"dark:bg-zinc-900 bg-zinc-100":"bg-blue-500 text-white"} rounded`,onClick:()=>h(),children:null==o?"No Background":"Remove Background"}),rA.jsxs("div",{className:"relative",children:[rA.jsx("h2",{className:"pb-2 text-lg font-bold",children:"Images"}),rA.jsxs("div",{className:"flex flex-wrap gap-4",children:[rA.jsxs("div",{className:"relative w-16 h-16 overflow-hidden transition rounded-xl bg-zinc-100 dark:bg-zinc-900",children:[rA.jsx("div",{className:"flex items-center justify-center w-full h-full text-3xl font-bold text-gray-400 transition font-IconFamily hover:text-gray-500",children:""}),rA.jsx("input",{type:"file",accept:"image/*, video/*",onChange:c,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})]}),n.filter((A=>"image"===A.type)).map((e=>rA.jsxs("div",{onClick:()=>f(e.id),className:`relative w-16 h-16 cursor-pointer rounded-xl transition ring dark:ring-white ring-zinc-300 ${t?"animate-shake":""} ${o===e.id&&"background"===A?"dark:ring-2 ring-4":"ring-0"}`,children:[t&&rA.jsx("div",{className:"absolute top-0 right-0 z-10 flex w-6 h-6 p-2 text-white translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full place-items-center",onClick:()=>g(e.id),children:rA.jsx("div",{className:"w-4 h-0.5 bg-white"})}),rA.jsx("img",{className:"object-cover w-full h-full rounded-xl",src:e.url,alt:"swatch"})]},e.id))),n.concat(qB).filter((A=>"image"===A.type&&A.isPreset&&!A.isDownloaded&&!a.includes(A.id))).map((A=>rA.jsxs("button",{onClick:()=>d(A),className:"relative w-16 h-16 transition cursor-pointer rounded-xl duration-300 "+(t?"opacity-0 pointer-events-none hidden":"opacity-100"),children:[A.isPreset&&void 0!==l[A.id]&&rA.jsx("div",{className:"absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full",children:rA.jsxs("svg",{className:"w-full h-full text-zinc-100 dark:text-zinc-700",viewBox:"0 0 36 36",children:[rA.jsx("circle",{stroke:"currentColor",fill:"none",strokeWidth:"4",strokeLinecap:"round",cx:"18",cy:"18",r:"10",strokeDasharray:`${p(14)} ${p(14)}`,strokeDashoffset:"0",transform:"rotate(-90 18 18)"}),rA.jsx("circle",{stroke:"#3B82F6",fill:"none",strokeWidth:"4",strokeLinecap:"round",cx:"18",cy:"18",r:"10",strokeDasharray:`${p(14)} ${p(14)}`,strokeDashoffset:""+p(14)*(1-l[A.id]/100),transform:"rotate(-90 18 18)"})]})}),rA.jsx("div",{className:"relative transition top-0 z-10 flex justify-center w-full h-full text-white rounded-xl group place-items-center "+(void 0===l[A.id]?"hover:bg-black/20":""),children:rA.jsx("span",{className:"absolute z-10 text-3xl transition opacity-0 font-IconFamily group-hover:opacity-100",children:void 0===l[A.id]?"":""})}),rA.jsx("img",{className:"absolute top-0 object-cover w-full h-full rounded-xl",src:A.isPreset?A.previewUrl:A.url,alt:"swatch"})]},A.id)))]}),rA.jsx("h2",{className:"py-2 text-lg font-bold",children:"Videos"}),rA.jsxs("div",{className:"flex flex-wrap gap-4",children:[rA.jsxs("div",{className:"relative w-16 h-16 overflow-hidden transition rounded-xl bg-zinc-100 dark:bg-zinc-900",children:[rA.jsx("div",{className:"flex items-center justify-center w-full h-full text-3xl font-bold text-gray-400 transition font-IconFamily hover:text-gray-500",children:""}),rA.jsx("input",{type:"file",accept:"image/*, video/*",onChange:c,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})]}),n.filter((A=>"video"===A.type)).map((e=>rA.jsxs("div",{onClick:()=>f(e.id),className:`relative w-16 h-16 cursor-pointer rounded-xl transition ring dark:ring-white ring-zinc-300 ${t?"animate-shake":""} ${o===e.id&&"background"===A?"dark:ring-2 ring-4":"ring-0"}`,children:[t&&rA.jsx("div",{className:"absolute top-0 right-0 z-10 flex w-6 h-6 p-2 text-white translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full place-items-center",onClick:()=>g(e.id),children:rA.jsx("div",{className:"w-4 h-0.5 bg-white"})}),rA.jsx("video",{muted:!0,loop:!0,autoPlay:!0,src:e.url,className:"object-cover w-full h-full rounded-xl"})]},e.id))),n.concat(qB).filter((A=>"video"===A.type&&A.isPreset&&!A.isDownloaded&&!a.includes(A.id))).map((A=>rA.jsxs("div",{onClick:()=>d(A),className:"relative w-16 h-16 transition cursor-pointer rounded-xl duration-300 "+(t?"opacity-0 pointer-events-none hidden":"opacity-100"),children:[A.isPreset&&void 0!==l[A.id]&&rA.jsx("div",{className:"absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full",children:rA.jsxs("svg",{className:"w-full h-full text-zinc-100 dark:text-zinc-700",viewBox:"0 0 36 36",children:[rA.jsx("circle",{stroke:"currentColor",fill:"none",strokeWidth:"4",strokeLinecap:"round",cx:"18",cy:"18",r:"10",strokeDasharray:`${p(14)} ${p(14)}`,strokeDashoffset:"0",transform:"rotate(-90 18 18)"}),rA.jsx("circle",{stroke:"#3B82F6",fill:"none",strokeWidth:"4",strokeLinecap:"round",cx:"18",cy:"18",r:"10",strokeDasharray:`${p(14)} ${p(14)}`,strokeDashoffset:""+p(14)*(1-l[A.id]/100),transform:"rotate(-90 18 18)"})]})}),rA.jsx("div",{className:"relative transition top-0 z-10 flex justify-center w-full h-full text-white rounded-xl group place-items-center "+(void 0===l[A.id]?"hover:bg-black/20":""),children:rA.jsx("span",{className:"absolute z-10 text-3xl transition opacity-0 font-IconFamily group-hover:opacity-100",children:void 0===l[A.id]?"":""})}),rA.jsx("video",{muted:!0,loop:!0,autoPlay:!0,src:A.isPreset?A.previewUrl:A.url,className:"absolute top-0 object-cover w-full h-full rounded-xl"})]},A.id)))]})]})]})}const P4="/client/rsc/jpeg/hacker.jpeg",D4=[{name:"Hacker",url:"https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/themes/hacker.json",coverImage:rA.jsx("img",{className:"object-cover object-center w-full h-full",src:P4})}],O4=({selectedType:A,setSelectedType:e,isEditMode:t})=>{const[n,r]=AA.useState([]),[o,i]=AA.useState("");return AA.useEffect((()=>{(async()=>{const A=await qw(),e=D4.map((e=>({...e,isDownloaded:A.themes.includes(e.name),isLoading:!1})));""!==A.selectedTheme&&i(A.selectedTheme),e.sort(((A,e)=>Number(e.isDownloaded)-Number(A.isDownloaded))),r(e)})()}),[]),AA.useEffect((()=>{"background"===A&&i("")}),[A]),rA.jsxs("div",{className:"my-2",children:[(t?n.some((A=>A.isDownloaded)):n.length>0)&&rA.jsx("h2",{className:"pb-2 text-lg font-bold",children:"Themes"}),rA.jsx("div",{className:"flex flex-col gap-4",children:n.filter((A=>!t||A.isDownloaded)).map((a=>rA.jsxs("button",{className:"relative w-full h-16 flex justify-center items-center rounded-lg bg-zinc-700 transition ring dark:ring-white ring-zinc-300 "+(o==a.name&&"theme"==A?"dark:ring-2 ring-4":"ring-0"),onClick:()=>(async(A,t)=>{const a=A=>r((e=>e.map((e=>e.name===A?{...e,isLoading:!1}:e))));var s;s=A,r((A=>A.map((A=>A.name===s?{...A,isLoading:!0}:A))));const l=n.find((e=>e.name===A));if(l)return l.isDownloaded&&A===o?(await Sf(),i(""),e("background"),void a(A)):l.isDownloaded&&A!==o?(await H4(A,t),i(A),e("theme"),void a(A)):(l.isDownloaded||(await b4(A,t),(A=>{r((e=>e.map((e=>e.name===A?{...e,isDownloaded:!0}:e))))})(A),e("theme"),i(A)),void a(A));a(A)})(a.name,a.url),disabled:a.isLoading,children:[t&&rA.jsx("div",{className:"absolute top-0 right-0 z-10 flex w-6 h-6 p-2 text-white translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full place-items-center",onClick:A=>{A.stopPropagation(),(async A=>{await T4(A),r((e=>{const t=e.map((e=>e.name===A?{...e,isDownloaded:!1}:e));return t.sort(((A,e)=>Number(e.isDownloaded)-Number(A.isDownloaded))),t})),o===A&&(i(""),e("background"))})(a.name)},children:rA.jsx("div",{className:"w-4 h-0.5 bg-white"})}),rA.jsxs("div",{className:"relative transition rounded-lg overflow-hidden top-0 z-10 flex justify-center w-full h-full text-white group place-items-center "+(a.isDownloaded?"":"hover:bg-black/20"),children:[rA.jsx("span",{className:"absolute z-10 text-3xl transition opacity-0 font-IconFamily group-hover:opacity-100",children:a.isDownloaded||a.isLoading?"":""}),a.isLoading&&rA.jsx("div",{className:"z-10 inline-block w-6 h-6 border-4 border-current rounded-full animate-spin border-t-transparent",role:"status",children:rA.jsx("span",{className:"sr-only",children:"Loading..."})})]}),rA.jsx("div",{className:"absolute inset-0 z-0 overflow-hidden rounded-lg",children:a.coverImage})]},a.name)))})]})},k4=()=>{const[A,e]=AA.useState(!1),[t,n]=AA.useState("background");return AA.useEffect((()=>{qw().then((A=>{A.selectedTheme?n("theme"):n("background")}))}),[]),rA.jsxs("div",{children:[rA.jsx("button",{className:"absolute top-12 z-20 right-0 p-2 text-[0.8rem] text-blue-500",onClick:()=>e(!A),children:A?"Done":"Edit"}),rA.jsx(L4,{setSelectedType:n,selectedType:t,isEditMode:A}),rA.jsx(O4,{setSelectedType:n,selectedType:t,isEditMode:A})]})},R4=()=>{const{standalone:A,setStandalone:e}=Nn();AA.useEffect((()=>{document.body.classList.contains("standalone")&&e(!0)}));const t=[{title:"Settings",content:rA.jsx(TH,{})},{title:"Shortcuts",content:rA.jsx(DH,{})},{title:"Themes",content:rA.jsx(k4,{})}];return rA.jsxs("div",{className:`flex flex-col w-[384px] shadow-2xl gap-2 bg-white ${A?"":"rounded-xl"} h-[600px] overflow-clip dark:bg-zinc-800 dark:text-white`,children:[rA.jsxs("div",{className:"grid border-b border-b-zinc-200/40 place-items-center",children:[rA.jsx("img",{src:LH,className:"w-4/5 dark:hidden"}),rA.jsx("img",{src:PH,className:"hidden w-4/5 dark:block"})]}),rA.jsx(x4,{}),rA.jsx(xH,{tabs:t})]})},K4=mc.createRoot(document.getElementById("ExtensionPopup")),M4=chrome.runtime.getURL("fonts/IconFamily.woff"),Xd=document.createElement("style");Xd.setAttribute("type","text/css"),Xd.innerHTML=`\n@font-face {\n font-family: 'IconFamily';\n src: url('${M4}') format('woff');\n font-weight: normal;\n font-style: normal;\n}`,document.head.appendChild(Xd),K4.render(rA.jsx(Tf.StrictMode,{children:rA.jsx(SH,{children:rA.jsx(R4,{})})}));