InvokeAI/frontend/dist/assets/index.2c555f8d.js

518 lines
1.2 MiB
JavaScript
Raw Normal View History

2022-10-30 20:31:58 +00:00
function Ej(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var wu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Xt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Jm=Symbol.for("react.element"),Pj=Symbol.for("react.portal"),Tj=Symbol.for("react.fragment"),Lj=Symbol.for("react.strict_mode"),Aj=Symbol.for("react.profiler"),Ij=Symbol.for("react.provider"),Mj=Symbol.for("react.context"),Rj=Symbol.for("react.forward_ref"),Oj=Symbol.for("react.suspense"),Nj=Symbol.for("react.memo"),Dj=Symbol.for("react.lazy"),vk=Symbol.iterator;function zj(e){return e===null||typeof e!="object"?null:(e=vk&&e[vk]||e["@@iterator"],typeof e=="function"?e:null)}var _I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kI=Object.assign,EI={};function O0(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||_I}O0.prototype.isReactComponent={};O0.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};O0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PI(){}PI.prototype=O0.prototype;function e9(e,t,n){this.props=e,this.context=t,this.refs=EI,this.updater=n||_I}var t9=e9.prototype=new PI;t9.constructor=e9;kI(t9,O0.prototype);t9.isPureReactComponent=!0;var yk=Array.isArray,TI=Object.prototype.hasOwnProperty,n9={current:null},LI={key:!0,ref:!0,__self:!0,__source:!0};function AI(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)TI.call(t,r)&&!LI.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Jm,type:e,key:o,ref:a,props:i,_owner:n9.current}}function Fj(e,t){return{$$typeof:Jm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function r9(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jm}function $j(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xk=/\/+/g;function ob(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$j(""+e.key):t.toString(36)}function Iy(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Jm:case Pj:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+ob(a,0):r,yk(i)?(n="",e!=null&&(n=e.replace(xk,"$&/")+"/"),Iy(i,t,n,"",function(d){return d})):i!=null&&(r9(i)&&(i=Fj(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(xk,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",yk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+ob(o,s);a+=Iy(o,t,n,l,i)}else if(l=zj(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+ob(o,s++),a+=Iy(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function x2(e,t,n){if(e==null)return e;var r=[],i=0;return Iy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Bj(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xo={current:null},My={transition:null},Hj={ReactCurrentDispatcher:xo,ReactCurrentBatchConfig:My,ReactCurrentOwner:n9};Xt.Children={map:x2,forEach:function(e,t,n){x2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return x2(e,function(){t++}),t},toArray:function(e){return x2(e,function(t){return t})||[]},only:function(e){if(!r9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Xt.Component=O0;Xt.Fragment=Tj;Xt.Profiler=Aj;Xt
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(G,te){var Q=G.length;G.push(te);e:for(;0<Q;){var W=Q-1>>>1,ie=G[W];if(0<i(ie,te))G[W]=te,G[Q]=ie,Q=W;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var te=G[0],Q=G.pop();if(Q!==te){G[0]=Q;e:for(var W=0,ie=G.length,ce=ie>>>1;W<ce;){var xe=2*(W+1)-1,De=G[xe],Me=xe+1,Ve=G[Me];if(0>i(De,Q))Me<ie&&0>i(Ve,De)?(G[W]=Ve,G[Me]=Q,W=Me):(G[W]=De,G[xe]=Q,W=xe);else if(Me<ie&&0>i(Ve,Q))G[W]=Ve,G[Me]=Q,W=Me;else break e}}return te}function i(G,te){var Q=G.sortIndex-te.sortIndex;return Q!==0?Q:G.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],d=[],p=1,g=null,m=3,y=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var te=n(d);te!==null;){if(te.callback===null)r(d);else if(te.startTime<=G)r(d),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(d)}}function M(G){if(S=!1,T(G),!b)if(n(l)!==null)b=!0,Se(N);else{var te=n(d);te!==null&&J(M,te.startTime-G)}}function N(G,te){b=!1,S&&(S=!1,P($),$=-1),y=!0;var Q=m;try{for(T(te),g=n(l);g!==null&&(!(g.expirationTime>te)||G&&!Z());){var W=g.callback;if(typeof W=="function"){g.callback=null,m=g.priorityLevel;var ie=W(g.expirationTime<=te);te=e.unstable_now(),typeof ie=="function"?g.callback=ie:g===n(l)&&r(l),T(te)}else r(l);g=n(l)}if(g!==null)var ce=!0;else{var xe=n(d);xe!==null&&J(M,xe.startTime-te),ce=!1}return ce}finally{g=null,m=Q,y=!1}}var z=!1,F=null,$=-1,K=5,j=-1;function Z(){return!(e.unstable_now()-j<K)}function me(){if(F!==null){var G=e.unstable_now();j=G;var te=!0;try{te=F(!0,G)}finally{te?pe():(z=!1,F=null)}}else z=!1}var pe;if(typeof k=="function")pe=function(){k(me)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,we=be.port2;be.port1.onmessage=me,pe=function(){we.postMessage(null)}}else pe=function(){E(me,0)};function Se(G){F=G,z||(z=!0,pe())}function J(G,te){$=E(function(){G(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,Se(N))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var te=3;break;default:te=m}var Q=m;m=te;try{return G()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,te){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var Q=m;m=G;try{return te()}finally{m=Q}},e.unstable_scheduleCallback=function(G,te,Q){var W=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?W+Q:W):Q=W,G){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=Q+ie,G={id:p++,callback:te,priorityLevel:G,startTime:Q,expirationTime:ie,sortIndex:-1},Q>W?(G.sortIndex=Q,t(d,G),n(l)===null&&G===n(d)&&(S?(P($),$=-1):S=!0,J(M,Q-W))):(G.sortIndex=ie,t(l,G),b||y||(b=!0,Se(N))),G},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(G){var te=m;return function(){var Q=m;m=te;try{return G.apply(this,arguments)}finally{m=Q}}}})(II);(function(e){e.exports=II})(Gp);/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var MI=C.exports,ya=Gp.exports;function ze(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var RI=new Set,om={};function ch(e,t){h0(e,t),h0(e+"Capture",t)}function h0(e,t){for(om[e]=t,e=0;e<t.length;e++)RI.add(t[e])}var Tu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qS=Object.prototype.hasOwnProperty,Wj=/^[: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]*$/,bk={},Sk={};function Vj(e){return qS.call(Sk,e)?!0:qS.call(bk,e)?!1:Wj.test(e)?Sk[e]=!0:(bk[e]=!0,!1)}function Uj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gj(e,t,n,r){if(t===null||typeof t>"u"||Uj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bo(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Fi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fi[e]=new bo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fi[t]=new bo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fi[e]=new bo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fi[e]=new bo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fi[e]=new bo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fi[e]=new bo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fi[e]=new bo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fi[e]=new bo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fi[e]=new bo(e,5,!1,e.toLowerCase(),null,!1,!1)});var i9=/[\-:]([a-z])/g;function o9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-a
`+ab+e}var sb=!1;function lb(e,t){if(!e||sb)return"";sb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{sb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fg(e):""}function jj(e){switch(e.tag){case 5:return fg(e.type);case 16:return fg("Lazy");case 13:return fg("Suspense");case 19:return fg("SuspenseList");case 0:case 2:case 15:return e=lb(e.type,!1),e;case 11:return e=lb(e.type.render,!1),e;case 1:return e=lb(e.type,!0),e;default:return""}}function QS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tp:return"Fragment";case Pp:return"Portal";case ZS:return"Profiler";case s9:return"StrictMode";case YS:return"Suspense";case XS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NI:return(e.displayName||"Context")+".Consumer";case OI:return(e._context.displayName||"Context")+".Provider";case l9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u9:return t=e.displayName||null,t!==null?t:QS(e.type)||"Memo";case Fc:t=e._payload,e=e._init;try{return QS(e(t))}catch{}}return null}function Kj(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return QS(t);case 8:return t===s9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qj(e){var t=zI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function S2(e){e._valueTracker||(e._valueTracker=qj(e))}function FI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function w3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function JS(e,t){var n=t.checked;return gr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ck(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $I(e,t){t=t.checked,t!=null&&a9(e,"checked",t,!1)}function ew(e,t){$I(e,t);var n=sd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tw(e,t.type,n):t.hasOwnProperty("defaultValue")&&tw(e,t.type,sd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _k(e,t,n){if(t.hasOwnProperty("val
`).replace(iq,"")}function L2(e,t,n){if(t=Kk(t),Kk(e)!==t&&n)throw Error(ze(425))}function A3(){}var gw=null,mw=null;function vw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yw=typeof setTimeout=="function"?setTimeout:void 0,oq=typeof clearTimeout=="function"?clearTimeout:void 0,qk=typeof Promise=="function"?Promise:void 0,aq=typeof queueMicrotask=="function"?queueMicrotask:typeof qk<"u"?function(e){return qk.resolve(null).then(e).catch(sq)}:yw;function sq(e){setTimeout(function(){throw e})}function Sb(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),cm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);cm(t)}function ed(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var D0=Math.random().toString(36).slice(2),bl="__reactFiber$"+D0,gm="__reactProps$"+D0,Lu="__reactContainer$"+D0,xw="__reactEvents$"+D0,lq="__reactListeners$"+D0,uq="__reactHandles$"+D0;function zf(e){var t=e[bl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lu]||n[bl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zk(e);e!==null;){if(n=e[bl])return n;e=Zk(e)}return t}e=n,n=e.parentNode}return null}function nv(e){return e=e[bl]||e[Lu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ze(33))}function G5(e){return e[gm]||null}var bw=[],Rp=-1;function vd(e){return{current:e}}function Xn(e){0>Rp||(e.current=bw[Rp],bw[Rp]=null,Rp--)}function Gn(e,t){Rp++,bw[Rp]=e.current,e.current=t}var ld={},Qi=vd(ld),Bo=vd(!1),nh=ld;function p0(e,t){var n=e.type.contextTypes;if(!n)return ld;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ho(e){return e=e.childContextTypes,e!=null}function I3(){Xn(Bo),Xn(Qi)}function Yk(e,t,n){if(Qi.current!==ld)throw Error(ze(168));Gn(Qi,t),Gn(Bo,n)}function PM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ze(108,Kj(e)||"Unknown",i));return gr({},n,r)}function M3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ld,nh=Qi.current,Gn(Qi,e),Gn(Bo,Bo.current),!0}function Xk(e,t,n){var r=e.stateNode;if(!r)throw Error(ze(169));n?(e=PM(e,t,nh),r.__reactInternalMemoizedMergedChildContext=e,Xn(Bo),Xn(Qi),Gn(Qi,e)):Xn(Bo),Gn(Bo,n)}var Su=null,j5=!1,wb=!1;function TM(e){Su===null?Su=[e]:Su.push(e)}function cq(e){j5=!0,TM(e)}function yd(){if(!wb&&Su!==null){wb=!0;var e=0,t=Tn;try{var n=Su;for(Tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Su=null,j5=!1}catch(i){throw Su!==null&&(Su=Su.slice(e+1)),JI(d9,yd),i}finally{Tn=t,wb=!1}}return null}var Op=[],Np=0,R3=null,O3=0,Ua=[],Ga=0,rh=null,_u=1,ku="";function Tf(e,t){Op[Np++]=O3,Op[Np++]=R3,R3=e,O3=t}function LM(e,t,n){Ua[Ga++]=_u,Ua[Ga++]=ku,Ua[Ga++]=rh,rh=e;var r=_u;e=ku;var i=32-Ms(r)-1;r&=~(1<<i),n+=1;var o=32-Ms(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,_u=1<<32-Ms(t)+i|n<<i|r,ku=o+e}else _u=1<<o|n<<i|r,ku=e}function b9(e){e.return!==null&&(Tf(e,1),LM(e,1,0))}function S9(e){for(;e===R3;)R3=Op[--Np],Op[Np]=null,O3=Op[--Np],Op[Np]=null;for(;e===rh;)rh=Ua[--Ga],Ua[Ga]=null,ku=Ua[--Ga],Ua[Ga]=null,_u=Ua[--Ga],Ua[Ga]=null}var ga=null,ha=null,rr=!1,As=null;function AM(e,t){var n=qa(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Pb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ew(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xq=typeof WeakMap=="function"?WeakMap:Map;function iR(e,t,n){n=Pu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){W3||(W3=!0,Dw=r),Ew(e,t)},n}function oR(e,t,n){n=Pu(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ew(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ew(e,t),typeof r!="function"&&(nd===null?nd=new Set([this]):nd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function sE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xq;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Rq.bind(null,e,t,n),t.then(e,e))}function lE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function uE(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pu(-1,1),t.tag=2,td(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bq=$u.ReactCurrentOwner,$o=!1;function po(e,t,n,r){t.child=e===null?zM(t,null,n,r):m0(t,e.child,n,r)}function cE(e,t,n,r,i){n=n.render;var o=t.ref;return Yp(t,i),r=M9(e,t,n,r,o,i),n=R9(),e!==null&&!$o?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Iu(e,t,i)):(rr&&n&&b9(t),t.flags|=1,po(e,t,r,i),t.child)}function dE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!V9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,aR(e,t,o,r,i)):(e=Wy(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:fm,n(a,r)&&e.ref===t.ref)return Iu(e,t,i)}return t.flags|=1,e=id(o,r),e.ref=t.ref,e.return=t,t.child=e}function aR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(fm(o,r)&&e.ref===t.ref)if($o=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&($o=!0);else return t.lanes=e.lanes,Iu(e,t,i)}return Pw(e,t,n,r,i)}function sR(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gn(Fp,da),da|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Gn(Fp,da),da|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Gn(Fp,da),da|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Gn(Fp,da),da|=r;return po(e,t,i,n),t.child}function lR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pw(e,t,n,r,i){var o=Ho(n)?nh:Qi.current;return o=p0(t,o),Yp(t,i),n=M9(e,t,n,r,o,i),r=R9(),e!==null&&!$o?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Iu(e,t,i)):(rr&&r&&b9(t),t.flags|=1,po(e,t,n,i),t.child)}function fE(e,t,n,r,i){if(Ho(n)){var o=!0;M3(t)}else o=!1;if(Yp(t,i),t.stateNode===null)$y(e,t),NM(t,n,r),kw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=Qa(d):(d=Ho(n)?nh:Qi.current,d=p0(t,d));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==d)&&rE(t,a,r,d),$c=!1;var m=t.memoizedState;a.state=m,z3(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Bo.current||$c?(typeof p=="function"&&(_w(t,n,p,r),l=t.memoizedState),(s=$c||nE(t,n,s,r,m,l,d))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Uq=C.exports,Gq=Symbol.for("react.element"),jq=Symbol.for("react.fragment"),Kq=Object.prototype.hasOwnProperty,qq=Uq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zq={key:!0,ref:!0,__self:!0,__source:!0};function IR(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Kq.call(t,r)&&!Zq.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Gq,type:e,key:o,ref:a,props:i,_owner:qq.current}}r4.Fragment=jq;r4.jsx=IR;r4.jsxs=IR;(function(e){e.exports=r4})(n4);const $n=n4.exports.Fragment,w=n4.exports.jsx,oe=n4.exports.jsxs;var q9=C.exports.createContext({});q9.displayName="ColorModeContext";function Z9(){const e=C.exports.useContext(q9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var z2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Yq(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i?.()},setClassName(r){document.body.classList.add(r?z2.dark:z2.light),document.body.classList.remove(r?z2.light:z2.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var Xq="chakra-ui-color-mode";function Qq(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var Jq=Qq(Xq),EE=()=>{};function PE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function MR(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=Jq}=e,s=i==="dark"?"dark":"light",[l,d]=C.exports.useState(()=>PE(a,s)),[p,g]=C.exports.useState(()=>PE(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:S}=C.exports.useMemo(()=>Yq({preventTransition:o}),[o]),E=i==="system"&&!l?p:l,P=C.exports.useCallback(M=>{const N=M==="system"?m():M;d(N),y(N==="dark"),b(N),a.set(N)},[a,m,y,b]);El(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const M=a.get();if(M){P(M);return}if(i==="system"){P("system");return}P(s)},[a,s,i,P]);const k=C.exports.useCallback(()=>{P(E==="dark"?"light":"dark")},[E,P]);C.exports.useEffect(()=>{if(!!r)return S(P)},[r,S,P]);const T=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?EE:k,setColorMode:t?EE:P}),[E,k,P,t]);return w(q9.Provider,{value:T,children:n})}MR.displayName="ColorModeProvider";var eZ=new Set(["dark","light","system"]);function tZ(e){let t=e;return eZ.has(t)||(t="light"),t}function nZ(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=tZ(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catc
`,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${o?a:s}`.trim()}function rZ(e={}){return w("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:nZ(e)}})}var Bw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",S="[object Map]",E="[object Number]",P="[object Null]",k="[object Object]",T="[object Proxy]",M="[object RegExp]",N="[object Set]",z="[object String]",F="[object Undefined]",$="[object WeakMap]",K="[object ArrayBuffer]",j="[object DataView]",Z="[object Float32Array]",me="[object Float64Array]",pe="[object Int8Array]",be="[object Int16Array]",we="[object Int32Array]",Se="[object Uint8Array]",J="[object Uint8ClampedArray]",G="[object Uint16Array]",te="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ce={};ce[Z]=ce[me]=ce[pe]=ce[be]=ce[we]=ce[Se]=ce[J]=ce[G]=ce[te]=!0,ce[s]=ce[l]=ce[K]=ce[p]=ce[j]=ce[g]=ce[m]=ce[y]=ce[S]=ce[E]=ce[k]=ce[M]=ce[N]=ce[z]=ce[$]=!1;var xe=typeof wu=="object"&&wu&&wu.Object===Object&&wu,De=typeof self=="object"&&self&&self.Object===Object&&self,Me=xe||De||Function("return this")(),Ve=t&&!t.nodeType&&t,Pe=Ve&&!0&&e&&!e.nodeType&&e,We=Pe&&Pe.exports===Ve,it=We&&xe.process,ht=function(){try{var I=Pe&&Pe.require&&Pe.require("util").types;return I||it&&it.binding&&it.binding("util")}catch{}}(),Ht=ht&&ht.isTypedArray;function Nt(I,D,U){switch(U.length){case 0:return I.call(D);case 1:return I.call(D,U[0]);case 2:return I.call(D,U[0],U[1]);case 3:return I.call(D,U[0],U[1],U[2])}return I.apply(D,U)}function Re(I,D){for(var U=-1,ge=Array(I);++U<I;)ge[U]=D(U);return ge}function tt(I){return function(D){return I(D)}}function gt(I,D){return I?.[D]}function at(I,D){return function(U){return I(D(U))}}var mt=Array.prototype,mn=Function.prototype,vt=Object.prototype,Wt=Me["__core-js_shared__"],nn=mn.toString,Dt=vt.hasOwnProperty,Oe=function(){var I=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),et=vt.toString,Gt=nn.call(Object),Vt=RegExp("^"+nn.call(Dt).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=We?Me.Buffer:void 0,Et=Me.Symbol,Qt=Me.Uint8Array,Hn=ke?ke.allocUnsafe:void 0,je=at(Object.getPrototypeOf,Object),Lt=Object.create,$e=vt.propertyIsEnumerable,ut=mt.splice,Ke=Et?Et.toStringTag:void 0,bt=function(){try{var I=ro(Object,"defineProperty");return I({},"",{}),I}catch{}}(),Jt=ke?ke.isBuffer:void 0,qn=Math.max,yr=Date.now,Hr=ro(Me,"Map"),Bi=ro(Object,"create"),Ld=function(){function I(){}return function(D){if(!Ar(D))return{};if(Lt)return Lt(D);I.prototype=D;var U=new I;return I.prototype=void 0,U}}();function Wr(I){var D=-1,U=I==null?0:I.length;for(this.clear();++D<U;){var ge=I[D];this.set(ge[0],ge[1])}}function Ku(){this.__data__=Bi?Bi(null):{},this.size=0}function Ad(I){var D=this.has(I)&&delete this.__data__[I];return this.size-=D?1:0,D}function Bs(I){var D=this.__data__;if(Bi){var U=D[I];return U===r?void 0:U}return Dt.call(D,I)?D[I]:void 0}function qu(I){var D=this.__data__;return Bi?D[I]!==void 0:Dt.call(D,I)}function Zu(I,D){var U=this.__data__;return this.size+=this.has(I)?0:1,U[I]=Bi&&D===void 0?r:D,this}Wr.prototype.clear=Ku,Wr.prototype.delete=Ad,Wr.prototype.get=Bs,Wr.prototype.has=qu,Wr.prototype.set=Zu;function or(I){var D=-1,U=I==null?0:I.length;for(this.clear();++D<U;){var ge=I[D];this.set(ge[0],ge[1])}}function Vl(){this.__data__=[],this.size=0}function Id(I){var D=this.__data__,U=Hi(D,I);if(U<0)return!1;var ge=D.length-1;return U==ge?D.pop():ut.call(D,U,1),--this.size,!0}function Hs(I){var D=this.__data__,U=Hi(D,I);return U<0?void 0:D[U][1]}function Ul(I){return Hi(this.__data__,I)>-1}function Md(I,D){var U=this.__data__,ge=Hi(U,I);return ge<0?(++this.size,U.push([I,D])):U[ge][1]=D,this}or.prototype.clear=Vl,or.prototype.delete=Id,or.prototype.get=Hs,or.prototype.has=Ul,or.prototype.set=Md;function xi(I){var D=-1,U=I==null?0:I.length;for(this.clear();+
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var yi=typeof Symbol=="function"&&Symbol.for,t8=yi?Symbol.for("react.element"):60103,n8=yi?Symbol.for("react.portal"):60106,u4=yi?Symbol.for("react.fragment"):60107,c4=yi?Symbol.for("react.strict_mode"):60108,d4=yi?Symbol.for("react.profiler"):60114,f4=yi?Symbol.for("react.provider"):60109,h4=yi?Symbol.for("react.context"):60110,r8=yi?Symbol.for("react.async_mode"):60111,p4=yi?Symbol.for("react.concurrent_mode"):60111,g4=yi?Symbol.for("react.forward_ref"):60112,m4=yi?Symbol.for("react.suspense"):60113,qY=yi?Symbol.for("react.suspense_list"):60120,v4=yi?Symbol.for("react.memo"):60115,y4=yi?Symbol.for("react.lazy"):60116,ZY=yi?Symbol.for("react.block"):60121,YY=yi?Symbol.for("react.fundamental"):60117,XY=yi?Symbol.for("react.responder"):60118,QY=yi?Symbol.for("react.scope"):60119;function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t8:switch(e=e.type,e){case r8:case p4:case u4:case d4:case c4:case m4:return e;default:switch(e=e&&e.$$typeof,e){case h4:case g4:case y4:case v4:case f4:return e;default:return t}}case n8:return t}}}function XR(e){return _a(e)===p4}An.AsyncMode=r8;An.ConcurrentMode=p4;An.ContextConsumer=h4;An.ContextProvider=f4;An.Element=t8;An.ForwardRef=g4;An.Fragment=u4;An.Lazy=y4;An.Memo=v4;An.Portal=n8;An.Profiler=d4;An.StrictMode=c4;An.Suspense=m4;An.isAsyncMode=function(e){return XR(e)||_a(e)===r8};An.isConcurrentMode=XR;An.isContextConsumer=function(e){return _a(e)===h4};An.isContextProvider=function(e){return _a(e)===f4};An.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t8};An.isForwardRef=function(e){return _a(e)===g4};An.isFragment=function(e){return _a(e)===u4};An.isLazy=function(e){return _a(e)===y4};An.isMemo=function(e){return _a(e)===v4};An.isPortal=function(e){return _a(e)===n8};An.isProfiler=function(e){return _a(e)===d4};An.isStrictMode=function(e){return _a(e)===c4};An.isSuspense=function(e){return _a(e)===m4};An.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===u4||e===p4||e===d4||e===c4||e===m4||e===qY||typeof e=="object"&&e!==null&&(e.$$typeof===y4||e.$$typeof===v4||e.$$typeof===f4||e.$$typeof===h4||e.$$typeof===g4||e.$$typeof===YY||e.$$typeof===XY||e.$$typeof===QY||e.$$typeof===ZY)};An.typeOf=_a;(function(e){e.exports=An})(YR);var QR=YR.exports,JY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},JR={};JR[QR.ForwardRef]=JY;JR[QR.Memo]=eX;var tX=!0;function nX(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var eO=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||tX===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},tO=function(t,n,r){eO(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function rX(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iX={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(d)}},[t]),w(Sre,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const Ub=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=E4(Cre),l=C.exports.useId(),d=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:p=>{s.set(p,!0);for(const g of s.values())if(!g)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((p,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=w(wre,{isPresent:n,children:e})),w(B0.Provider,{value:d,children:e})};function Cre(){return new Map}const _p=e=>e.key||"";function _re(e,t){e.forEach(n=>{const r=_p(n);t.set(r,n)})}function kre(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const Bu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",xN(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=bre();const l=C.exports.useContext(u8).forceRender;l&&(s=l);const d=KN(),p=kre(e);let g=p;const m=new Set,y=C.exports.useRef(g),b=C.exports.useRef(new Map).current,S=C.exports.useRef(!0);if(X3(()=>{S.current=!1,_re(p,b),y.current=g}),v8(()=>{S.current=!0,b.clear(),m.clear()}),S.current)return w($n,{children:g.map(T=>w(Ub,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:T},_p(T)))});g=[...g];const E=y.current.map(_p),P=p.map(_p),k=E.length;for(let T=0;T<k;T++){const M=E[T];P.indexOf(M)===-1&&m.add(M)}return a==="wait"&&m.size&&(g=[]),m.forEach(T=>{if(P.indexOf(T)!==-1)return;const M=b.get(T);if(!M)return;const N=E.indexOf(T),z=()=>{b.delete(T),m.delete(T);const F=y.current.findIndex($=>$.key===T);if(y.current.splice(F,1),!m.size){if(y.current=p,d.current===!1)return;s(),r&&r()}};g.splice(N,0,w(Ub,{isPresent:!1,onExitComplete:z,custom:t,presenceAffectsLayout:o,mode:a,children:M},_p(M)))}),g=g.map(T=>{const M=T.key;return m.has(M)?T:w(Ub,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:T},_p(T))}),yN!=="production"&&a==="wait"&&g.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),w($n,{children:m.size?g:g.map(T=>C.exports.cloneElement(T))})};var hv=(...e)=>e.filter(Boolean).join(" ");function Ere(){return!1}var Pre=e=>{const{condition:t,message:n}=e;t&&Ere()&&console.warn(n)},Hf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},tg={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function S6(e){switch(e?.direction??"right"){case"right":return tg.slideRight;case"left":return tg.slideLeft;case"bottom":return tg.slideDown;case"top":return tg.slideUp;default:return tg.slideRight}}var Xf={enter:{duration:.2,ease:Hf.easeOut},exit:{duration:.1,ease:Hf.easeIn}},Os={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},Tre=e=>e!=null&&parseInt(e.toString(),10)>0,rT={exit:{height:{duration:.2,ease:Hf.ease},opacity:{duration:.3,ease:Hf.ease}},enter:{height:{duration:.3,ease:Hf.ease},opacity:{duration:.4,ease:Hf.ease}}},Lre={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:Tre(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??Os.exit(rT.exit,i)}),enter:({animateOpacity:e,endingHei
`})}function Zre(e){O4({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Vf(e){const{isOpen:t,isDisabled:n}=R8(),{reduceMotion:r}=O8(),i=pv("chakra-accordion__icon",e.className),o=N4(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return w(ka,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:w("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Vf.displayName="AccordionIcon";var Uf=Ie(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Gre(t),l={...N4().container,overflowAnchor:"none"},d=C.exports.useMemo(()=>a,[a]);return le.createElement($re,{value:d},le.createElement(Ce.div,{ref:n,...o,className:pv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Uf.displayName="AccordionItem";var Gf=Ie(function(t,n){const{reduceMotion:r}=O8(),{getPanelProps:i,isOpen:o}=R8(),a=i(t,n),s=pv("chakra-accordion__panel",t.className),l=N4();r||delete a.hidden;const d=le.createElement(Ce.div,{...a,__css:l.panel,className:s});return r?d:w(qN,{in:o,children:d})});Gf.displayName="AccordionPanel";var D4=Ie(function({children:t,reduceMotion:n,...r},i){const o=$i("Accordion",r),a=Sn(r),{htmlProps:s,descendants:l,...d}=Vre(a),p=C.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return le.createElement(Bre,{value:l},le.createElement(Ure,{value:p},le.createElement(Fre,{value:o},le.createElement(Ce.div,{ref:i,...s,className:pv("chakra-accordion",r.className),__css:o.root},t))))});D4.displayName="Accordion";var Yre=(...e)=>e.filter(Boolean).join(" "),Xre=ov({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),V0=Ie((e,t)=>{const n=So("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=Sn(e),d=Yre("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Xre} ${o} linear infinite`,...n};return le.createElement(Ce.div,{ref:t,__css:p,className:d,...l},r&&le.createElement(Ce.span,{srOnly:!0},r))});V0.displayName="Spinner";var z4=(...e)=>e.filter(Boolean).join(" ");function Qre(e){return w(ka,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Jre(e){return w(ka,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function oT(e){return w(ka,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[eie,tie]=kn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[nie,N8]=kn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),QN={info:{icon:Jre,colorScheme:"blue"},warning:{icon:oT,colorScheme:"orange"},success:{icon:Qre,colorScheme:"green"},error:{icon:oT,colorScheme:"red"},loading:{icon:V0,colorScheme:"blue"}};function rie(e){return QN[e].colorScheme}function iie(e){return QN[e].icon}var JN=Ie(function(t,n){const{status:r="info",addRole:i=!0,...o}=Sn(t),a=t.colorScheme??rie(r),s=$i("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*//**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var B4=(...e)=>e.filter(Boolean).join(" "),sT=e=>e?"":void 0,[mie,vie]=kn({strict:!1,name:"ButtonGroupContext"});function C6(e){const{children:t,className:n,...r}=e,i=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=B4("chakra-button__icon",n);return le.createElement(Ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o},i)}C6.displayName="ButtonIcon";function _6(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=w(V0,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...s}=e,l=B4("chakra-button__spinner",o),d=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,d,r]);return le.createElement(Ce.div,{className:l,...s,__css:p},i)}_6.displayName="ButtonSpinner";function yie(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(o=>{!o||n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Ya=Ie((e,t)=>{const n=vie(),r=So("Button",{...n,...e}),{isDisabled:i=n?.isDisabled,isLoading:o,isActive:a,children:s,leftIcon:l,rightIcon:d,loadingText:p,iconSpacing:g="0.5rem",type:m,spinner:y,spinnerPlacement:b="start",className:S,as:E,...P}=Sn(e),k=C.exports.useMemo(()=>{const z={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:z}}},[r,n]),{ref:T,type:M}=yie(E),N={rightIcon:d,leftIcon:l,iconSpacing:g,children:s};return le.createElement(Ce.button,{disabled:i||o,ref:MQ(t,T),as:E,type:m??M,"data-active":sT(a),"data-loading":sT(o),__css:k,className:B4("chakra-button",S),...P},o&&b==="start"&&w(_6,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:g,children:y}),o?p||le.createElement(Ce.span,{opacity:0},w(lT,{...N})):w(lT,{...N}),o&&b==="end"&&w(_6,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:g,children:y}))});Ya.displayName="Button";function lT(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return oe($n,{children:[t&&w(C6,{marginEnd:i,children:t}),r,n&&w(C6,{marginStart:i,children:n})]})}var aD=Ie(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:d,...p}=t,g=B4("chakra-button__group",a),m=C.exports.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:d}),[r,i,o,d]);let y={display:"inline-flex"};return l?y={...y,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:y={...y,"& > *:not(style) ~ *:not(style)":{marginStart:s}},le.createElement(mie,{value:m},le.createElement(Ce.div,{ref:n,role:"group",__css:y,className:g,"data-attached":l?"":void 0,...p}))});aD.displayName="ButtonGroup";var Xi=Ie((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,s=n||r,l=C.exports.isValidElement(s)?C.exports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return w(Ya,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});Xi.displayName="IconButton";var U0=(...e)=>e.filter(Boolean).join(" "),K2=e=>e?"":void 0,jb=e=>e?!0:void 0;function uT(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[xie,sD]=kn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[bie,G0]=kn({strict:!1,name:"FormControlContext"});function Sie(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,s=C.exports.useId(),l=t||`field-${s}`,d=`${l}-label`,p=`${l}-feedback`,g=`${l}-helptext`,[m,y]=C.exports.useState(!1),[b,S]=C.exports.useState(!1),[E,P]=C.exports.useState(!1),k=C.exports.useCallback((F={},$=null)=>({id:g,...F,ref:Fn($,K=>{!K||S(!0)})}),[g]),T=C.exports.useCallback((F={},$=null)=>({...F,ref:$,"data-focus":K2(E),"data-disab
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100lvh) {
:root {
--chakra-vh: 100lvh;
}
}
`,Zie=()=>w(x4,{styles:pD}),Yie=()=>w(x4,{styles:`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
font-feature-settings: 'kern';
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
box-sizing: border-box;
}
main {
display: block;
}
hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
body,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
button,
[role="button"] {
cursor: pointer;
}
button::-moz-focus-inner {
border: 0 !important;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
}
img,
video {
max-width: 100%;
height: auto;
}
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
outline: none;
box-shadow: none;
}
select::-ms-expand {
display: none;
}
${pD}
`});function T6(e,t,n,r){const i=kr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}var Xie=sv?C.exports.useLayoutEffect:C.exports.useEffect;function L6(e,t=[]){const n=C.exports.useRef(e);return Xie(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function H8(e,t,n,r){const i=L6(t);return C.exports.useEffect(()=>{const o=q3(n)??document;if(!!t)return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[e,n,r,i,t]),()=>{(q3(n)??document).removeEventListener(e,i,r)}}function Qie(e){const{isOpen:t,ref:n}=e,[r,i]=C.exports.useState(t),[o,a]=C.exports.useState(!1);return C.exports.useEffect(()=>{o||(i(t),a(!0))},[t,o,r]),H8("animationend",()=>{i(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var l;const d=kX(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(p)}}}function Jie(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function eoe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function d5(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=L6(n),a=L6(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[d,p]=Jie(r,s),g=eoe(i,"disclosure"),m=C.exports.useCallback(()=>{d||l(!1),a?.()},[d,a]),y=C.exports.useCallback(()=>{d||l(!0),o?.()},[d,o]),b=C.exports.useCallback(()=>{(p?m:y)()},[p,y,m]);return{isOpen:!!p,onOpen:y,onClose:m,onToggle:b,isControlled:d,getButtonProps:(S={})=>({...S,"aria-expanded":p,"aria-controls":g,onClick:FX(S.onClick,b)}),getDisclosureProps:(S={})=>({...S,hidden:!p,id:g})}}var gD=(e,t)=>{const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function toe(e){const t=e.current;if(!t)return!1;const n=TX(t);return!n||s8(t,n)?!1:!!RX(n)}function noe(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;gD(()=>{if(!o||toe(e))return;const a=i?.current||e.current;a&&Z3(a,{nextTick:!0})},[o,e,i])}function roe(e,t,n,r){return H8(rQ(t),XX(n,t==="pointerdown"),e,r)}function ioe(e){const{ref:t,elements:n,enabled:r}=e,i=oQ("Safari");roe(()=>av(t.current),"pointerdown",a=>{if(!i||!r)return;const s=a.target,d=(n??[t]).some(p=>{const g=uO(p)?p.current:p;return s8(g,s)});!pO(s)&&d&&(a.preventDefault(),Z3(s))})}var ooe={preventScroll:!0,shouldFocus:!1};function aoe(e,t=ooe){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=uO(e)?e.current:e,s=i&&o,l=C.exports.useCallback(()=>{if(!(!a||!s)&&!s8(a,document.activeElement))if(n?.current)Z3(n.current,{preventScroll:r,nextTick:!0});else{const d=zX(a);d.length>0&&Z3(d[0],{preventScroll:r,nextTick:!0})}},[s,r,a,n]);gD(()=>{l()},[l]),H8("transitionend",l,a)}function W8(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var V8=Ie(function(t,n){const{htmlSize:r,...i}=t,o=$i("Input",i),a=Sn(i),s=D8(a),l=Pr("chakra-input",t.className);return le.createElement(Ce.input,{size:r,...s,__css:o.field,ref:n,className:l})});V8.displayName="Input";V8.id="Input";var[soe,mD]=kn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),loe=Ie(function(t,n){const r=$i("Input",t),{children:i,className:o,...a}=Sn(t),s=Pr("chakra-input__group",o),l={},d=$4(i),p=r.field;d.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(l.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(l.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=d.map(m=>{var y,b;const S=W8({size:((y=m.props)==null?void 0:y.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,S):C.exports.cloneElement(m
.`.concat(Nle,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Qy,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Jy,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Qy," .").concat(Qy,` {
right: 0 `).concat(r,`;
}
.`).concat(Jy," .").concat(Jy,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(Dle,": ").concat(s,`px;
}
`)},qle=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return Gle(i)},[i]);return w(jle,{styles:Kle(o,!t,i,n?"":"!important")})},$6=!1;if(typeof window<"u")try{var X2=Object.defineProperty({},"passive",{get:function(){return $6=!0,!0}});window.addEventListener("test",X2,X2),window.removeEventListener("test",X2,X2)}catch{$6=!1}var mp=$6?{passive:!1}:!1,Zle=function(e){return e.tagName==="TEXTAREA"},Tz=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Zle(e)&&n[t]==="visible")},Yle=function(e){return Tz(e,"overflowY")},Xle=function(e){return Tz(e,"overflowX")},RT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Lz(e,n);if(r){var i=Az(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Qle=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Jle=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Lz=function(e,t){return e==="v"?Yle(t):Xle(t)},Az=function(e,t){return e==="v"?Qle(t):Jle(t)},eue=function(e,t){return e==="h"&&t==="rtl"?-1:1},tue=function(e,t,n,r,i){var o=eue(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),d=!1,p=a>0,g=0,m=0;do{var y=Az(e,s),b=y[0],S=y[1],E=y[2],P=S-E-o*b;(b||P)&&Lz(e,s)&&(g+=P,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(i&&g===0||!i&&a>g)||!p&&(i&&m===0||!i&&-a>m))&&(d=!0),d},Q2=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},OT=function(e){return[e.deltaX,e.deltaY]},NT=function(e){return e&&"current"in e?e.current:e},nue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rue=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},iue=0,vp=[];function oue(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(iue++)[0],o=C.exports.useState(function(){return Pz()})[0],a=C.exports.useRef(e);C.exports.useEffect(function(){a.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=o6([e.lockRef.current],(e.shards||[]).map(NT),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(S,E){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var P=Q2(S),k=n.current,T="deltaX"in S?S.deltaX:k[0]-P[0],M="deltaY"in S?S.deltaY:k[1]-P[1],N,z=S.target,F=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in S&&F==="h"&&z.type==="range")return!1;var $=RT(F,z);if(!$)return!0;if($?N=F:(N=F==="v"?"h":"v",$=RT(F,z)),!$)return!1;if(!r.current&&"changedTouches"in S&&(T||M)&&(r.current=N),!N)return!0;var K=r.current||N;return tue(K,E,S,K==="h"?T:M,!0)},[]),l=C.exports.useCallback(function(S){var E=S;if(!(!vp.length||vp[vp.length-1]!==o)){var P="deltaY"in E?OT(E):Q2(E),k=t.current.filter(function(N){return N.name===E.type&&N.target===E.target&&nue(N.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var T=(a.current.shards||[]).map(NT).filter(Boolean).filter(function(N){return N.contains(E.target)}),M=T.length>0?s(E,T[0]):!a.current.noIsolation;M&&E.cancelable&&E.preventDefault()}}},[]),d=C.exports.useCallback(function(S,E,P,k){var T={name:S,delta:E,target:P,should:k};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),p=C.exports.useCallback(function(S){n.current=Q2(S),r.current=void 0},[]),g=C.exports.useCallback(function(S){d(S.type,OT(S),S.target,s(S,e.lockRef.current))},[]),m=C.exports.useCallback(function(S){d(S.type,Q2(S),S.target,s(S,e.lockRef.current))},[]);C.exports.useEffect(function(){return vp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,mp),document.addEventListener("touchmove",l,mp),document.addEventListener("touchstart",p,mp),function(){vp=vp.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,mp),document.removeEventListener("touchmove",l,mp),document.removeEventListener("touchstart",p,mp)}},[]);var y=e.removeScrollBar,b=e.inert;return oe($n,{children:[b?w(o,{styles:rue(i)}):null,y?w(qle,{gapMode:"margin"}):null]})}const aue=Fse(Ez,oue);var Iz=C.exports.forwardRef(function(e,t){return w(G4,{...Sl({},e,{ref:t,sideCar:aue})})});Iz.classNames=G4.classNames;const Mz=Iz;var mh=(...e)=>e.filter(Boolean).join(" ");function vg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var sue=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},B6=new sue;function lue(e,t){C.exports.useEffect(()=>(t&&B6.add(e),()=>{B6.remove(e)}),[t,e])}function uue(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,d=C.exports.useRef(null),p=C.exports.useRef(null),[g,m,y]=due(r,"chakra-modal","chakra-modal--header","chakra-modal--body");cue(d,t&&a),lue(d,t);const b=C.exports.useRef(null),S=C.exports.useCallback($=>{b.current=$.target},[]),E=C.exports.useCallback($=>{$.key==="Escape"&&($.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[T,M]=C.exports.useState(!1),N=C.exports.useCallback(($={},K=null)=>({role:"dialog",...$,ref:Fn(K,d),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":T?y:void 0,onClick:vg($.onClick,j=>j.stopPropagation())}),[y,T,g,m,P]),z=C.exports.useCallback($=>{$.stopPropagation(),b.current===$.target&&(!B6.isTopModal(d)||(i&&n?.()
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function nfe(e){const t=fF().toHexString();return!e||Jde(e)?t:e.string&&e.colors?ife(e.string,e.colors):e.string&&!e.colors?rfe(e.string):e.colors&&!e.string?ofe(e.colors):t}function rfe(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1)n+=`00${(t>>r*8&255).toString(16)}`.substr(-2);return n}function ife(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function ofe(e){return e[Math.floor(Math.random()*e.length)]}function Te(e,t){return n=>n.colorMode==="dark"?t:e}function b_(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function afe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function mF(e){return afe(e)&&e.reference?e.reference:String(e)}var ex=(e,...t)=>t.map(mF).join(` ${e} `).replace(/calc/g,""),KT=(...e)=>`calc(${ex("+",...e)})`,qT=(...e)=>`calc(${ex("-",...e)})`,V6=(...e)=>`calc(${ex("*",...e)})`,ZT=(...e)=>`calc(${ex("/",...e)})`,YT=e=>{const t=mF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:V6(t,-1)},Cu=Object.assign(e=>({add:(...t)=>Cu(KT(e,...t)),subtract:(...t)=>Cu(qT(e,...t)),multiply:(...t)=>Cu(V6(e,...t)),divide:(...t)=>Cu(ZT(e,...t)),negate:()=>Cu(YT(e)),toString:()=>e.toString()}),{add:KT,subtract:qT,multiply:V6,divide:ZT,negate:YT});function sfe(e){return!Number.isInteger(parseFloat(e.toString()))}function lfe(e,t="-"){return e.replace(/\s+/g,t)}function vF(e){const t=lfe(e.toString());return t.includes("\\.")?e:sfe(e)?t.replace(".","\\."):e}function ufe(e,t=""){return[t,vF(e)].filter(Boolean).join("-")}function cfe(e,t){return`var(${vF(e)}${t?`, ${t}`:""})`}function dfe(e,t=""){return`--${ufe(e,t)}`}function jo(e,t){const n=dfe(e,t?.prefix);return{variable:n,reference:cfe(n,ffe(t?.fallback))}}function ffe(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:hfe,defineMultiStyleConfig:pfe}=ir(dde.keys),gfe={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},mfe={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},vfe={pt:"2",px:"4",pb:"5"},yfe={fontSize:"1.25em"},xfe=hfe({container:gfe,button:mfe,panel:vfe,icon:yfe}),bfe=pfe({baseStyle:xfe}),{definePartsStyle:wv,defineMultiStyleConfig:Sfe}=ir(fde.keys),Ou=xd("alert-fg"),Cv=xd("alert-bg"),wfe=wv({container:{bg:Cv.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ou.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ou.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function S_(e){const{theme:t,colorScheme:n}=e,r=ri(t,`${n}.100`,n),i=L0(`${n}.200`,.16)(t);return Te(r,i)(e)}var Cfe=wv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[Cv.variable]:S_(e),[Ou.variable]:`colors.${n}`}}}),_fe=wv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[Cv.variable]:S_(e),[Ou.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ou.reference}}}),kfe=wv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[Cv.variable]:S_(e),[Ou.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Ou.reference}}}),Efe=wv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e),r=Te("white","gray.900")(e);return{container:{[Cv.variable]:`colors.${n}`,[Ou.variable]:`colors.${r}`,color:Ou.reference}}}),Pfe={subtle:Cfe,"left-accent":_fe,"top-accent":kfe,solid:Efe},Tfe=Sfe({baseStyle:wfe,variants:Pfe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),yF={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem"
to right,
transparent 0%,
${ri(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},x0e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},b0e=e=>({bg:Te("gray.100","whiteAlpha.300")(e)}),S0e=e=>({transitionProperty:"common",transitionDuration:"slow",...y0e(e)}),w0e=xg(e=>({label:x0e,filledTrack:S0e(e),track:b0e(e)})),C0e={xs:xg({track:{h:"1"}}),sm:xg({track:{h:"2"}}),md:xg({track:{h:"3"}}),lg:xg({track:{h:"4"}})},_0e=v0e({sizes:C0e,baseStyle:w0e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:k0e,definePartsStyle:r3}=ir(Pde.keys),E0e=e=>{var t;const n=(t=Br(v5.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},P0e=r3(e=>{var t,n,r,i;return{label:(n=(t=v5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=v5).baseStyle)==null?void 0:i.call(r,e).container,control:E0e(e)}}),T0e={md:r3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:r3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:r3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},L0e=k0e({baseStyle:P0e,sizes:T0e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:A0e,definePartsStyle:I0e}=ir(Tde.keys),M0e=e=>{var t;return{...(t=bn.baseStyle)==null?void 0:t.field,bg:Te("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Te("white","gray.700")(e)}}},R0e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},O0e=I0e(e=>({field:M0e(e),icon:R0e})),ry={paddingInlineEnd:"8"},JT,eL,tL,nL,rL,iL,oL,aL,N0e={lg:{...(JT=bn.sizes)==null?void 0:JT.lg,field:{...(eL=bn.sizes)==null?void 0:eL.lg.field,...ry}},md:{...(tL=bn.sizes)==null?void 0:tL.md,field:{...(nL=bn.sizes)==null?void 0:nL.md.field,...ry}},sm:{...(rL=bn.sizes)==null?void 0:rL.sm,field:{...(iL=bn.sizes)==null?void 0:iL.sm.field,...ry}},xs:{...(oL=bn.sizes)==null?void 0:oL.xs,field:{...(aL=bn.sizes)==null?void 0:aL.sm.field,...ry},icon:{insetEnd:"1"}}},D0e=A0e({baseStyle:O0e,sizes:N0e,variants:bn.variants,defaultProps:bn.defaultProps}),z0e=xd("skeleton-start-color"),F0e=xd("skeleton-end-color"),$0e=e=>{const t=Te("gray.100","gray.800")(e),n=Te("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=ri(o,r),s=ri(o,i);return{[z0e.variable]:a,[F0e.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},B0e={baseStyle:$0e},H0e=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Te("white","gray.700")(e)}}),W0e={baseStyle:H0e},{defineMultiStyleConfig:V0e,definePartsStyle:tx}=ir(Lde.keys),Wm=xd("slider-thumb-size"),Vm=xd("slider-track-size"),U0e=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...b_({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},G0e=e=>({...b_({orientation:e.orientation,horizontal:{h:Vm.reference},vertical:{w:Vm.reference}}),overflow:"hidden",borderRadius:"sm",bg:Te("gray.200","whiteAlpha.200")(e),_disabled:{bg:Te("gray.300","whiteAlpha.300")(e)}}),j0e=e=>{const{orientation:t}=e;return{...b_({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Wm.reference,h:Wm.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},K0e=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Te(`${t}.500`,`${t}.200`)(e)}},q0e=tx(e=>({container:U0e(e),track:G0e(e),thumb:j0e(e),filledTrack:K0e(e)})),Z0e=tx({container:{[Wm.variable]:"sizes.4",[
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var A0=C.exports;function Ome(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nme=typeof Object.is=="function"?Object.is:Ome,Dme=A0.useState,zme=A0.useEffect,Fme=A0.useLayoutEffect,$me=A0.useDebugValue;function Bme(e,t){var n=t(),r=Dme({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Fme(function(){i.value=n,i.getSnapshot=t,yS(i)&&o({inst:i})},[e,n,t]),zme(function(){return yS(i)&&o({inst:i}),e(function(){yS(i)&&o({inst:i})})},[e]),$me(n),n}function yS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nme(e,n)}catch{return!0}}function Hme(e,t){return t()}var Wme=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hme:Bme;HF.useSyncExternalStore=A0.useSyncExternalStore!==void 0?A0.useSyncExternalStore:Wme;(function(e){e.exports=HF})(BF);var WF={exports:{}},VF={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rx=C.exports,Vme=BF.exports;function Ume(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gme=typeof Object.is=="function"?Object.is:Ume,jme=Vme.useSyncExternalStore,Kme=rx.useRef,qme=rx.useEffect,Zme=rx.useMemo,Yme=rx.useDebugValue;VF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Kme(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Zme(function(){function l(y){if(!d){if(d=!0,p=y,y=r(y),i!==void 0&&a.hasValue){var b=a.value;if(i(b,y))return g=b}return g=y}if(b=g,Gme(p,y))return b;var S=r(y);return i!==void 0&&i(b,S)?b:(p=y,g=S)}var d=!1,p,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=jme(e,o[0],o[1]);return qme(function(){a.hasValue=!0,a.value=s},[s]),Yme(s),s};(function(e){e.exports=VF})(WF);function Xme(e){e()}let UF=Xme;const Qme=e=>UF=e,Jme=()=>UF,hd=le.createContext(null);function GF(){return C.exports.useContext(hd)}const eve=()=>{throw new Error("uSES not initialized!")};let jF=eve;const tve=e=>{jF=e},nve=(e,t)=>e===t;function rve(e=hd){const t=e===hd?GF:()=>C.exports.useContext(e);return function(r,i=nve){const{store:o,subscription:a,getServerState:s}=t(),l=jF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const ive=rve();var ove={exports:{}},In={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var M_=Symbol.for("react.element"),R_=Symbol.for("react.portal"),ix=Symbol.for("react.fragment"),ox=Symbol.for("react.strict_mode"),ax=Symbol.for("react.profiler"),sx=Symbol.for("react.provider"),lx=Symbol.for("react.context"),ave=Symbol.for("react.server_context"),ux=Symbol.for("react.forward_ref"),cx=Symbol.for("react.suspense"),dx=Symbol.for("react.suspense_list"),fx=Symbol.for("react.memo"),hx=Symbol.for("react.lazy"),sve=Symbol.for("react.offscreen"),KF;KF=Symbol.for("react.module.reference");function os(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M_:switch(e=e.type,e){case ix:case ax:case ox:case cx:case dx:return e;default:switch(e=e&&e.$$typeof,e){case ave:case lx:case ux:case hx:case fx:case sx:return e;default:return t}}case R_:return t}}}In.ContextConsumer=lx;In.ContextProvider=sx;In.Element=M_;In.ForwardRef=ux;In.Fragment=ix;In.Lazy=hx;In.Memo=fx;In.Portal=R_;In.Profiler=ax;In.StrictMode=ox;In.Suspense=cx;In.SuspenseList=dx;In.isAsyncMode=function(){return!1};In.isConcurrentMode=function(){return!1};In.isContextConsumer=function(e){return os(e)===lx};In.isContextProvider=function(e){return os(e)===sx};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M_};In.isForwardRef=function(e){return os(e)===ux};In.isFragment=function(e){return os(e)===ix};In.isLazy=function(e){return os(e)===hx};In.isMemo=function(e){return os(e)===fx};In.isPortal=function(e){return os(e)===R_};In.isProfiler=function(e){return os(e)===ax};In.isStrictMode=function(e){return os(e)===ox};In.isSuspense=function(e){return os(e)===cx};In.isSuspenseList=function(e){return os(e)===dx};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ix||e===ax||e===ox||e===cx||e===dx||e===sve||typeof e=="object"&&e!==null&&(e.$$typeof===hx||e.$$typeof===fx||e.$$typeof===sx||e.$$typeof===lx||e.$$typeof===ux||e.$$typeof===KF||e.getModuleId!==void 0)};In.typeOf=os;(function(e){e.exports=In})(ove);function lve(){const e=Jme();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const LL={notify(){},get:()=>[]};function uve(e,t){let n,r=LL;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){p.onStateChange&&p.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=lve())}function d(){n&&(n(),n=void 0,r.clear(),r=LL)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:d,getListeners:()=>r};return p}const cve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dve=cve?C.exports.useLayoutEffect:C.exports.useEffect;function fve({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=uve(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return dve(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),w((t||hd).Provider,{value:i,children:n})}function qF(e=hd){const t=e===hd?GF:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const hve=qF();function pve(e=hd){const t=e===hd?hve:qF(e);return function(){return t().dispatch}}const gve=pve();tve(WF.exports.useSyncExternalStoreWithSelector);Qme($l.exports.unstable_batchedUpdates);var O_="persist:",ZF="persist/FLUSH",N_="persist/REHYDRATE",YF="persist/PAUSE",XF="persist/PERSIST",QF="persist/PURGE",JF="persist/REGISTER",mve=-1;function o3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o3=function(n){return typeof n}:o3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,m=2,y=4,b=1,S=2,E=1,P=2,k=4,T=8,M=16,N=32,z=64,F=128,$=256,K=512,j=30,Z="...",me=800,pe=16,be=1,we=2,Se=3,J=1/0,G=9007199254740991,te=17976931348623157e292,Q=0/0,W=4294967295,ie=W-1,ce=W>>>1,xe=[["ary",F],["bind",E],["bindKey",P],["curry",T],["curryRight",M],["flip",K],["partial",N],["partialRight",z],["rearg",$]],De="[object Arguments]",Me="[object Array]",Ve="[object AsyncFunction]",Pe="[object Boolean]",We="[object Date]",it="[object DOMException]",ht="[object Error]",Ht="[object Function]",Nt="[object GeneratorFunction]",Re="[object Map]",tt="[object Number]",gt="[object Null]",at="[object Object]",mt="[object Promise]",mn="[object Proxy]",vt="[object RegExp]",Wt="[object Set]",nn="[object String]",Dt="[object Symbol]",Oe="[object Undefined]",et="[object WeakMap]",Gt="[object WeakSet]",Vt="[object ArrayBuffer]",ke="[object DataView]",Et="[object Float32Array]",Qt="[object Float64Array]",Hn="[object Int8Array]",je="[object Int16Array]",Lt="[object Int32Array]",$e="[object Uint8Array]",ut="[object Uint8ClampedArray]",Ke="[object Uint16Array]",bt="[object Uint32Array]",Jt=/\b__p \+= '';/g,qn=/\b(__p \+=) '' \+/g,yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Bi=/[&<>"']/g,Ld=RegExp(Hr.source),Wr=RegExp(Bi.source),Ku=/<%-([\s\S]+?)%>/g,Ad=/<%([\s\S]+?)%>/g,Bs=/<%=([\s\S]+?)%>/g,qu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zu=/^\w*$/,or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vl=/[\\^$.*+?()[\]{}|]/g,Id=RegExp(Vl.source),Hs=/^\s+/,Ul=/\s/,Md=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ws=/,? & /,Rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Od=/[()=,{}\[\]\/\s]/,Nd=/\\(\\)?/g,Dd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ai=/\w*$/,zd=/^[-+]0x[0-9a-f]+$/i,Fd=/^0b[01]+$/i,$d=/^\[object .+?Constructor\]$/,Bd=/^0o[0-7]+$/i,Hd=/^(?:0|[1-9]\d*)$/,Wd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Vd=/['\n\r\u2028\u2029\\]/g,Hi="\\ud800-\\udfff",Ko="\\u0300-\\u036f",as="\\ufe20-\\ufe2f",eo="\\u20d0-\\u20ff",Ea=Ko+as+eo,Yu="\\u2700-\\u27bf",Vs="a-z\\xdf-\\xf6\\xf8-\\xff",Pa="\\xac\\xb1\\xd7\\xf7",Wi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vn="\\u2000-\\u206f",dn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",to="A-Z\\xc0-\\xd6\\xd8-\\xde",ar="\\ufe0e\\ufe0f",Tr=Pa+Wi+vn+dn,no="['\u2019]",Ta="["+Hi+"]",Lr="["+Tr+"]",qo="["+Ea+"]",Gl="\\d+",Co="["+Yu+"]",ro="["+Vs+"]",jl="[^"+Hi+Tr+Gl+Yu+Vs+to+"]",Xr="\\ud83c[\\udffb-\\udfff]",Kl="(?:"+qo+"|"+Xr+")",Xu="[^"+Hi+"]",ql="(?:\\ud83c[\\udde6-\\uddff]){2}",La="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+to+"]",Aa="\\u200d",ss="(?:"+ro+"|"+jl+")",Ud="(?:"+bi+"|"+jl+")",Ia="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",Us="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",Zl=Kl+"?",Gs="["+ar+"]?",Si="(?:"+Aa+"(?:"+[Xu,ql,La].join("|")+")"+Gs+Zl+")*",ls="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",At=Gs+Zl+Si,Qu="(?:"+[Co,ql,La].join("|")+")"+At,us="(?:"+[Xu+qo+"?",qo,ql,La,Ta].join("|")+")",Ma=RegExp(no,"g"),Yl=RegExp(qo,"g"),Ar=RegExp(Xr+"(?="+Xr+")|"+us+At,"g"),fn=RegExp([bi+"?"+ro+"+"+Ia+"(?="+[Lr,bi,"$"].join("|")+")",Ud+"+"+Us+"(?="+[Lr,bi+ss,"$"].join("|")+")",bi+"?"+ss+"+"+Ia,bi+"+"+Us,Zo,ls,Gl,Qu].join("|"),"g"),Xl=RegExp("["+Aa+Hi+Ea+ar+"]"),Ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eu=-1,rn={};r
/* [wrapped with `+h+`] */
`)}function iW(u){return Mt(u)||Cf(u)||!!(c1&&u&&u[c1])}function du(u,h){var x=typeof u;return h=h??G,!!h&&(x=="number"||x!="symbol"&&Hd.test(u))&&u>-1&&u%1==0&&u<h}function uo(u,h,x){if(!dr(x))return!1;var A=typeof h;return(A=="number"?Io(x)&&du(h,x.length):A=="string"&&h in x)?xs(x[h],u):!1}function Bx(u,h){if(Mt(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||aa(u)?!0:Zu.test(u)||!qu.test(u)||h!=null&&u in hn(h)}function oW(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function Hx(u){var h=ve(u),x=B[h];if(typeof x!="function"||!(h in Ut.prototype))return!1;if(u===x)return!0;var A=ae(x);return!!A&&u===A[0]}function aW(u){return!!ac&&ac in u}var sW=Qn?fu:ib;function H1(u){var h=u&&u.constructor,x=typeof h=="function"&&h.prototype||wn;return u===x}function T7(u){return u===u&&!dr(u)}function L7(u,h){return function(x){return x==null?!1:x[u]===h&&(h!==n||u in hn(x))}}function lW(u){var h=p2(u,function(A){return x.size===d&&x.clear(),A}),x=h.cache;return h}function uW(u,h){var x=u[1],A=h[1],O=x|A,H=O<(E|P|F),q=A==F&&x==T||A==F&&x==$&&u[7].length<=h[8]||A==(F|$)&&h[7].length<=h[8]&&x==T;if(!(H||q))return u;A&E&&(u[2]=h[2],O|=x&E?0:k);var X=h[3];if(X){var se=u[3];u[3]=se?l2(se,X,h[4]):X,u[4]=se?Qo(u[3],p):h[4]}return X=h[5],X&&(se=u[5],u[5]=se?D1(se,X,h[6]):X,u[6]=se?Qo(u[5],p):h[6]),X=h[7],X&&(u[7]=X),A&F&&(u[8]=u[8]==null?h[8]:Jr(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=O,u}function cW(u){var h=[];if(u!=null)for(var x in hn(u))h.push(x);return h}function dW(u){return Mh.call(u)}function A7(u,h,x){return h=xr(h===n?u.length-1:h,0),function(){for(var A=arguments,O=-1,H=xr(A.length-h,0),q=he(H);++O<H;)q[O]=A[h+O];O=-1;for(var X=he(h+1);++O<h;)X[O]=A[O];return X[h]=x(q),wi(u,this,X)}}function I7(u,h){return h.length<2?u:Qs(u,Nr(h,0,-1))}function fW(u,h){for(var x=u.length,A=Jr(h.length,x),O=Ti(u);A--;){var H=h[A];u[A]=du(H,x)?O[H]:n}return u}function Wx(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var M7=O7(mf),W1=af||function(u,h){return qe.setTimeout(u,h)},Vx=O7(Jh);function R7(u,h,x){var A=h+"";return Vx(u,rW(A,hW(eW(A),x)))}function O7(u){var h=0,x=0;return function(){var A=d1(),O=pe-(A-x);if(x=A,O>0){if(++h>=me)return arguments[0]}else h=0;return u.apply(n,arguments)}}function c2(u,h){var x=-1,A=u.length,O=A-1;for(h=h===n?A:h;++x<h;){var H=pf(x,O),q=u[H];u[H]=u[x],u[x]=q}return u.length=h,u}var N7=lW(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(or,function(x,A,O,H){h.push(O?H.replace(Nd,"$1"):A||x)}),h});function ll(u){if(typeof u=="string"||aa(u))return u;var h=u+"";return h=="0"&&1/u==-J?"-0":h}function wf(u){if(u!=null){try{return lr.call(u)}catch{}try{return u+""}catch{}}return""}function hW(u,h){return Wn(xe,function(x){var A="_."+x[0];h&x[1]&&!Vi(u,A)&&u.push(A)}),u.sort()}function D7(u){if(u instanceof Ut)return u.clone();var h=new oo(u.__wrapped__,u.__chain__);return h.__actions__=Ti(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function pW(u,h,x){(x?uo(u,h,x):h===n)?h=1:h=xr(Ot(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var O=0,H=0,q=he(sf(A/h));O<A;)q[H++]=Nr(u,O,O+=h);return q}function gW(u){for(var h=-1,x=u==null?0:u.length,A=0,O=[];++h<x;){var H=u[h];H&&(O[A++]=H)}return O}function mW(){var u=arguments.length;if(!u)return[];for(var h=he(u-1),x=arguments[0],A=u;A--;)h[A-1]=arguments[A];return Oa(Mt(x)?Ti(x):[x],Rr(h,1))}var vW=Ct(function(u,h){return Dr(u)?bc(u,Rr(h,1,Dr,!0)):[]}),yW=Ct(function(u,h){var x=$a(h);return Dr(x)&&(x=n),Dr(u)?bc(u,Rr(h,1,Dr,!0),Le(x,2)):[]}),xW=Ct(function(u,h){var x=$a(h);return Dr(x)&&(x=n),Dr(u)?bc(u,Rr(h,1,Dr,!0),n,x):[]});function bW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Ot(h),Nr(u,h<0?0:h,A)):[]}function SW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Ot(h),h=A-h,Nr(u,0,h<0?0:h)):[]}function wW(u,h){return u&&u.length?Pc(u,Le(h,3),!0,!0):[]}function CW(u,h){return u&&u.length?Pc(u,Le(h,3),!0):[]}function _W(u,h,x,A){var O=u==null?0:u.length;return O?(x&&t
`;u.replace(Xe,function(xt,Kt,tn,sa,co,la){return tn||(tn=sa),Ae+=u.slice(_e,la).replace(Vd,qs),Kt&&(X=!0,Ae+=`' +
__e(`+Kt+`) +
'`),co&&(se=!0,Ae+=`';
`+co+`;
__p += '`),tn&&(Ae+=`' +
((__t = (`+tn+`)) == null ? '' : __t) +
'`),_e=la+xt.length,xt}),Ae+=`';
`;var yt=on.call(h,"variable")&&h.variable;if(!yt)Ae=`with (obj) {
`+Ae+`
}
`;else if(Od.test(yt))throw new _t(s);Ae=(se?Ae.replace(Jt,""):Ae).replace(qn,"$1").replace(yr,"$1;"),Ae="function("+(yt||"obj")+`) {
`+(yt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(se?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ae+`return __p
}`;var $t=pk(function(){return en(H,ct+"return "+Ae).apply(n,q)});if($t.source=Ae,qx($t))throw $t;return $t}function RG(u){return Cn(u).toLowerCase()}function OG(u){return Cn(u).toUpperCase()}function NG(u,h,x){if(u=Cn(u),u&&(x||h===n))return io(u);if(!u||!(h=so(h)))return u;var A=Ui(u),O=Ui(h),H=Xo(A,O),q=cs(A,O)+1;return vs(A,H,q).join("")}function DG(u,h,x){if(u=Cn(u),u&&(x||h===n))return u.slice(0,o1(u)+1);if(!u||!(h=so(h)))return u;var A=Ui(u),O=cs(A,Ui(h))+1;return vs(A,0,O).join("")}function zG(u,h,x){if(u=Cn(u),u&&(x||h===n))return u.replace(Hs,"");if(!u||!(h=so(h)))return u;var A=Ui(u),O=Xo(A,Ui(h));return vs(A,O).join("")}function FG(u,h){var x=j,A=Z;if(dr(h)){var O="separator"in h?h.separator:O;x="length"in h?Ot(h.length):x,A="omission"in h?so(h.omission):A}u=Cn(u);var H=u.length;if(ru(u)){var q=Ui(u);H=q.length}if(x>=H)return u;var X=x-Na(A);if(X<1)return A;var se=q?vs(q,0,X).join(""):u.slice(0,X);if(O===n)return se+A;if(q&&(X+=se.length-X),Zx(O)){if(u.slice(X).search(O)){var _e,Ee=se;for(O.global||(O=tf(O.source,Cn(ai.exec(O))+"g")),O.lastIndex=0;_e=O.exec(Ee);)var Ae=_e.index;se=se.slice(0,Ae===n?X:Ae)}}else if(u.indexOf(so(O),X)!=X){var Xe=se.lastIndexOf(O);Xe>-1&&(se=se.slice(0,Xe))}return se+A}function $G(u){return u=Cn(u),u&&Ld.test(u)?u.replace(Hr,Bv):u}var BG=sl(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),Qx=sp("toUpperCase");function hk(u,h,x){return u=Cn(u),h=x?n:h,h===n?Lh(u)?ef(u):n1(u):u.match(h)||[]}var pk=Ct(function(u,h){try{return wi(u,n,h)}catch(x){return qx(x)?x:new _t(x)}}),HG=Jn(function(u,h){return Wn(h,function(x){x=ll(x),ta(u,x,jx(u[x],u))}),u});function WG(u){var h=u==null?0:u.length,x=Le();return u=h?Nn(u,function(A){if(typeof A[1]!="function")throw new Ci(a);return[x(A[0]),A[1]]}):[],Ct(function(A){for(var O=-1;++O<h;){var H=u[O];if(wi(H[0],this,A))return wi(H[1],this,A)}})}function VG(u){return $h(di(u,g))}function Jx(u){return function(){return u}}function UG(u,h){return u==null||u!==u?h:u}var GG=$1(),jG=$1(!0);function Ro(u){return u}function eb(u){return cr(typeof u=="function"?u:di(u,g))}function KG(u){return _c(di(u,g))}function qG(u,h){return el(u,di(h,g))}var ZG=Ct(function(u,h){return function(x){return gs(x,u,h)}}),YG=Ct(function(u,h){return function(x){return gs(u,x,h)}});function tb(u,h,x){var A=gi(h),O=Vh(h,A);x==null&&!(dr(h)&&(O.length||!A.length))&&(x=h,h=u,u=this,O=Vh(h,gi(h)));var H=!(dr(x)&&"chain"in x)||!!x.chain,q=fu(u);return Wn(O,function(X){var se=h[X];u[X]=se,q&&(u.prototype[X]=function(){var _e=this.__chain__;if(H||_e){var Ee=u(this.__wrapped__),Ae=Ee.__actions__=Ti(this.__actions__);return Ae.push({func:se,args:arguments,thisArg:u}),Ee.__chain__=_e,Ee}return se.apply(u,Oa([this.value()],arguments))})}),u}function XG(){return qe._===this&&(qe._=s1),this}function nb(){}function QG(u){return u=Ot(u),Ct(function(h){return kc(h,u)})}var JG=B1(Nn),ej=B1(On),tj=B1(Ju);function gk(u){return Bx(u)?Ks(ll(u)):ms(u)}function nj(u){return function(h){return u==null?n:Qs(u,h)}}var rj=v(),ij=v(!0);function rb(){return[]}function ib(){return!1}function oj(){return{}}function aj(){return""}function sj(){return!0}function lj(u,h){if(u=Ot(u),u<1||u>G)return[];var x=W,A=Jr(u,W);h=Le(h),u-=W;for(var O=Xd(A,h);++x<u;)h(x);return O}function uj(u){return Mt(u)?Nn(u,ll):aa(u)?[u]:Ti(N7(Cn(u)))}function cj(u){var h=++nf;return Cn(u)+h}var dj=lp(function(u,h){return u+h},0),fj=R("ceil"),hj=lp(function(u,h){return u/h},1),pj=R("floor");function gj(u){return u&&u.length?Sr(u,Ro,Uh):n}function mj(u,h){return u&&u.length?Sr(u,Le(h,2),Uh):n}function vj(u){return qd(u,Ro)}function yj(u,h){return qd(u,Le(h,2))}function xj(u){return u&&u.length?Sr(u,Ro,Js):n}function bj(u,h){return u&&u.length?Sr(u,Le(h,2),Js):n}var Sj=lp(function(u,h){return u*h},1),wj=R("round"),Cj=lp(function(u,h){return u-h},0);function _j(u){return u&&u.length?Yd(u,Ro):0}function kj(u,h){return u&&u.length?Yd(u,Le(h,2)):0}return B.after=KV,B.ary=j7,B.assign=OU,B.assignIn=ak,B.assignInWith=y2,B.assignWith=NU,B.at=DU,B.before=K7,B.bind=jx,B.bindAll=HG,B.bindKey=q7,B.castArray=oU,B.chain=V7,B.chunk=pW,B.compact
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Cp&&o!==void 0,l=a!==Cp&&a!==void 0,d=this.padding(),p=o-d*2,g=a-d*2,m=0,y=this.wrap(),b=y!==HA,S=y!==Kbe&&b,E=this.ellipsis();this.textArr=[],$S().font=this._getContextFont();for(var P=E?this._getTextWidth(FS):0,k=0,T=t.length;k<T;++k){var M=t[k],N=this._getTextWidth(M);if(s&&N>p)for(;M.length>0;){for(var z=0,F=M.length,$="",K=0;z<F;){var j=z+F>>>1,Z=M.slice(0,j+1),me=this._getTextWidth(Z)+P;me<=p?(z=j+1,$=Z,K=me):F=j}if($){if(S){var pe,be=M[$.length],we=be===wy||be===$A;we&&K<=p?pe=$.length:pe=Math.max($.lastIndexOf(wy),$.lastIndexOf($A))+1,pe>0&&(z=pe,$=$.slice(0,z),K=this._getTextWidth($))}$=$.trimRight(),this._addTextLine($),r=Math.max(r,K),m+=i;var Se=this._shouldHandleEllipsis(m);if(Se){this._tryToAddEllipsisToLastLine();break}if(M=M.slice(z),M=M.trimLeft(),M.length>0&&(N=this._getTextWidth(M),N<=p)){this._addTextLine(M),m+=i,r=Math.max(r,N);break}}else break}else this._addTextLine(M),m+=i,r=Math.max(r,N),this._shouldHandleEllipsis(m)&&k<T-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Cp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),d=l!==HA;return!d||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Cp&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+FS)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+FS)}}getStrokeScaleEnabled(){return!0}}mr.prototype._fillFunc=Ybe;mr.prototype._strokeFunc=Xbe;mr.prototype.className=Hbe;mr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];vr(mr);Y.overWriteSetter(mr,"width",d7());Y.overWriteSetter(mr,"height",d7());Y.addGetterSetter(mr,"fontFamily","Arial");Y.addGetterSetter(mr,"fontSize",12,Be());Y.addGetterSetter(mr,"fontStyle",qB);Y.addGetterSetter(mr,"fontVariant",qB);Y.addGetterSetter(mr,"padding",0,Be());Y.addGetterSetter(mr,"align",KB);Y.addGetterSetter(mr,"verticalAlign",Wbe);Y.addGetterSetter(mr,"lineHeight",1,Be());Y.addGetterSetter(mr,"wrap",jbe);Y.addGetterSetter(mr,"ellipsis",!1,Fs());Y.addGetterSetter(mr,"letterSpacing",0,Be());Y.addGetterSetter(mr,"text","",X0());Y.addGetterSetter(mr,"textDecoration","");var Jbe="",YB="normal";function XB(e){e.fillText(this.partialText,0,0)}function QB(e){e.strokeText(this.partialText,0,0)}class oi extends Ne{constructor(t){super(t),this.dummyCanvas=ue.createCanvasElement(),this.dataArray=[],this.dataArray=Rn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Rn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return ue.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
* @license React
* react-reconciler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $Se=function(t){var n={},r=C.exports,i=Gp.exports,o=Object.assign;function a(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,v=1;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),N=Symbol.iterator;function z(c){return c===null||typeof c!="object"?null:(c=N&&c[N]||c["@@iterator"],typeof c=="function"?c:null)}function F(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case b:return(c.displayName||"Context")+".Consumer";case y:return(c._context.displayName||"Context")+".Provider";case S:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case k:return f=c.displayName||null,f!==null?f:F(c.type)||"Memo";case T:f=c._payload,c=c._init;try{return F(c(f))}catch{}}return null}function $(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(f);case 8:return f===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function K(c){var f=c,v=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(v=f.return),c=f.return;while(c)}return f.tag===3?v:null}function j(c){if(K(c)!==c)throw Error(a(188))}function Z(c){var f=c.alternate;if(!f){if(f=K(c),f===null)throw Error(a(188));return f!==c?null:c}for(var v=c,_=f;;){var L=v.return;if(L===null)break;var R=L.alternate;if(R===null){if(_=L.return,_!==null){v=_;continue}break}if(L.child===R.child){for(R=L.child;R;){if(R===v)return j(L),c;if(R===_)return j(L),f;R=R.sibling}throw Error(a(188))}if(v.return!==_.return)v=L,_=R;else{for(var V=!1,re=L.child;re;){if(re===v){V=!0,v=L,_=R;break}if(re===_){V=!0,_=L,v=R;break}re=re.sibling}if(!V){for(re=R.child;re;){if(re===v){V=!0,v=R,_=L;break}if(re===_){V=!0,_=R,v=L;break}re=re.sibling}if(!V)throw Error(a(189))}}if(v.alternate!==_)throw Error(a(190))}if(v.tag!==3)throw Error(a(188));return v.stateNode.current===v?c:f}function me(c){return c=Z(c),c!==null?pe(c):null}function pe(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=pe(c);if(f!==null)return f;c=c.sibling}return null}function be(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var f=be(c);if(f!==null)return f}c=c.sibling}return null}var we=Array.isArray,Se=t.getPublicInstance,J=t.getRootHostContext,G=t.getChildHostContext,te=t.prepareForCommit,Q=t.resetAfterCommit,W=t.createInstance,ie=t.appendInitialChild,ce=t.finalizeInitialChildren,xe=t.prepareUpdate,De=t.shouldSetTextContent,Me=t.createTextInstance,Ve=t.scheduleTimeout,Pe=t.cancelTimeout,We=t.noTimeout,it=t.isPrimaryRenderer,ht=t.supportsMutation,Ht=t.suppo
`+Ko+c}var eo=!1;function Ea(c,f){if(!c||eo)return"";eo=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Fe){var _=Fe}Reflect.construct(c,[],f)}else{try{f.call()}catch(Fe){_=Fe}c.call(f.prototype)}else{try{throw Error()}catch(Fe){_=Fe}c()}}catch(Fe){if(Fe&&_&&typeof Fe.stack=="string"){for(var L=Fe.stack.split(`
`),R=_.stack.split(`
`),V=L.length-1,re=R.length-1;1<=V&&0<=re&&L[V]!==R[re];)re--;for(;1<=V&&0<=re;V--,re--)if(L[V]!==R[re]){if(V!==1||re!==1)do if(V--,re--,0>re||L[V]!==R[re]){var de=`
`+L[V].replace(" at new "," at ");return c.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",c.displayName)),de}while(1<=V&&0<=re);break}}}finally{eo=!1,Error.prepareStackTrace=v}return(c=c?c.displayName||c.name:"")?as(c):""}var Yu=Object.prototype.hasOwnProperty,Vs=[],Pa=-1;function Wi(c){return{current:c}}function vn(c){0>Pa||(c.current=Vs[Pa],Vs[Pa]=null,Pa--)}function dn(c,f){Pa++,Vs[Pa]=c.current,c.current=f}var to={},ar=Wi(to),Tr=Wi(!1),no=to;function Ta(c,f){var v=c.type.contextTypes;if(!v)return to;var _=c.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var L={},R;for(R in v)L[R]=f[R];return _&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=L),L}function Lr(c){return c=c.childContextTypes,c!=null}function qo(){vn(Tr),vn(ar)}function Gl(c,f,v){if(ar.current!==to)throw Error(a(168));dn(ar,f),dn(Tr,v)}function Co(c,f,v){var _=c.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var L in _)if(!(L in f))throw Error(a(108,$(c)||"Unknown",L));return o({},v,_)}function ro(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||to,no=ar.current,dn(ar,c),dn(Tr,Tr.current),!0}function jl(c,f,v){var _=c.stateNode;if(!_)throw Error(a(169));v?(c=Co(c,f,no),_.__reactInternalMemoizedMergedChildContext=c,vn(Tr),vn(ar),dn(ar,c)):vn(Tr),dn(Tr,v)}var Xr=Math.clz32?Math.clz32:ql,Kl=Math.log,Xu=Math.LN2;function ql(c){return c>>>=0,c===0?32:31-(Kl(c)/Xu|0)|0}var La=64,bi=4194304;function Aa(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function ss(c,f){var v=c.pendingLanes;if(v===0)return 0;var _=0,L=c.suspendedLanes,R=c.pingedLanes,V=v&268435455;if(V!==0){var re=V&~L;re!==0?_=Aa(re):(R&=V,R!==0&&(_=Aa(R)))}else V=v&~L,V!==0?_=Aa(V):R!==0&&(_=Aa(R));if(_===0)return 0;if(f!==0&&f!==_&&(f&L)===0&&(L=_&-_,R=f&-f,L>=R||L===16&&(R&4194240)!==0))return f;if((_&4)!==0&&(_|=v&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=_;0<f;)v=31-Xr(f),L=1<<v,_|=c[v],f&=~L;return _}function Ud(c,f){switch(c){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ia(c,f){for(var v=c.suspendedLanes,_=c.pingedLanes,L=c.expirationTimes,R=c.pendingLanes;0<R;){var V=31-Xr(R),re=1<<V,de=L[V];de===-1?((re&v)===0||(re&_)!==0)&&(L[V]=Ud(re,f)):de<=f&&(c.expiredLanes|=re),R&=~re}}function Us(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function Zl(){var c=La;return La<<=1,(La&4194240)===0&&(La=64),c}function Gs(c){for(var f=[],v=0;31>v;v++)f.push(c);return f}function Si(c,f,v){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-Xr(f),c[f]=v}function ls(c,f){var v=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var _=c.eventTimes;for(c=c.expirationTimes;0<v;){var L=31-Xr(v),R=1<<L;f[L]=0,_[L]=-1,c[L]=-1,v&=~R}}function Zo(c,f){var v=c.entangledLanes|=f;for(c=c.entanglements;v;){var _=31-Xr(v),L=1<<_;L&f|c[_]&f&&(c[_]|=f),v&=~L}}var At=0;function Qu(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var us=i.unstable_scheduleCallback,Ma
Error generating stack: `+R.message+`
`+R.stack}return{value:c,source:f,stack:L,digest:null}}function g1(c,f,v){return{value:c,source:null,stack:v??null,digest:f??null}}function vc(c,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var uf=typeof WeakMap=="function"?WeakMap:Map;function m1(c,f,v){v=ds(-1,v),v.tag=3,v.payload={element:null};var _=f.value;return v.callback=function(){hf||(hf=!0,pf=_),vc(c,f)},v}function B(c,f,v){v=ds(-1,v),v.tag=3;var _=c.type.getDerivedStateFromError;if(typeof _=="function"){var L=f.value;v.payload=function(){return _(L)},v.callback=function(){vc(c,f)}}var R=c.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(v.callback=function(){vc(c,f),typeof _!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var V=f.stack;this.componentDidCatch(f.value,{componentStack:V!==null?V:""})}),v}function au(c,f,v){var _=c.pingCache;if(_===null){_=c.pingCache=new uf;var L=new Set;_.set(f,L)}else L=_.get(f),L===void 0&&(L=new Set,_.set(f,L));L.has(v)||(L.add(v),c=s2.bind(null,c,f,v),f.then(c,c))}function cf(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function oo(c,f,v,_,L){return(c.mode&1)===0?(c===f?c.flags|=65536:(c.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(f=ds(-1,1),f.tag=2,qs(v,f,1))),v.lanes|=1),c):(c.flags|=65536,c.lanes=L,c)}var Ut=s.ReactCurrentOwner,Gi=!1;function ki(c,f,v,_){f.child=c===null?Hv(f,null,v,_):ic(f,c.child,v,_)}function Zv(c,f,v,_,L){v=v.render;var R=f.ref;return nc(f,L),_=l1(c,f,v,_,R,L),v=sc(),c!==null&&!Gi?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~L,hs(c,f,L)):(On&&v&&wi(f),f.flags|=1,ki(c,f,_,L),f.child)}function Ys(c,f,v,_,L){if(c===null){var R=v.type;return typeof R=="function"&&!z1(R)&&R.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=R,Yv(c,f,R,_,L)):(c=yf(v.type,null,_,f,f.mode,L),c.ref=f.ref,c.return=f,f.child=c)}if(R=c.child,(c.lanes&L)===0){var V=R.memoizedProps;if(v=v.compare,v=v!==null?v:nu,v(V,_)&&c.ref===f.ref)return hs(c,f,L)}return f.flags|=1,c=lo(R,_),c.ref=f.ref,c.return=f,f.child=c}function Yv(c,f,v,_,L){if(c!==null){var R=c.memoizedProps;if(nu(R,_)&&c.ref===f.ref)if(Gi=!1,f.pendingProps=_=R,(c.lanes&L)!==0)(c.flags&131072)!==0&&(Gi=!0);else return f.lanes=c.lanes,hs(c,f,L)}return v1(c,f,v,_,L)}function Xv(c,f,v){var _=f.pendingProps,L=_.children,R=c!==null?c.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},dn(Js,ao),ao|=v;else{if((v&1073741824)===0)return c=R!==null?R.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,dn(Js,ao),ao|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=R!==null?R.baseLanes:v,dn(Js,ao),ao|=_}else R!==null?(_=R.baseLanes|v,f.memoizedState=null):_=v,dn(Js,ao),ao|=_;return ki(c,f,L,v),f.child}function Qv(c,f){var v=f.ref;(c===null&&v!==null||c!==null&&c.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function v1(c,f,v,_,L){var R=Lr(v)?no:ar.current;return R=Ta(f,R),nc(f,L),v=l1(c,f,v,_,R,L),_=sc(),c!==null&&!Gi?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~L,hs(c,f,L)):(On&&_&&wi(f),f.flags|=1,ki(c,f,v,L),f.child)}function Jv(c,f,v,_,L){if(Lr(v)){var R=!0;ro(f)}else R=!1;if(nc(f,L),f.stateNode===null)za(c,f),Fv(f,v,_),i1(f,v,_,L),_=!0;else if(c===null){var V=f.stateNode,re=f.memoizedProps;V.props=re;var de=V.context,Fe=v.contextType;typeof Fe=="object"&&Fe!==null?Fe=io(Fe):(Fe=Lr(v)?no:ar.current,Fe=Ta(f,Fe));var rt=v.getDerivedStateFromProps,Pt=typeof rt=="function"||typeof V.getSnapshotBeforeUpdate=="function";Pt||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(re!==_||de!==Fe)&&$v(f,V,_,Fe),cs=!1;var Je=f.memoizedState;V.state=Je,Lh(f,_,V,L),de=f.memoizedState,re!==_||Je!==de||Tr.current||cs?(typeof rt=="function"&&(Ih(f,v,rt,_),de=f.memoizedState),(re=cs||Jd(f,v,re,_,Je,de,Fe))?(Pt||typeof V.UNSAFE_componentWillMount!="function"&
`+(_.join(" > ")+`
No matching component was found for:
`)+c.join(" > ")}return null},n.getPublicRootInstance=function(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return Se(c.child.stateNode);default:return c.child.stateNode}},n.injectIntoDevTools=function(c){if(c={bundleType:c.bundleType,version:c.version,rendererPackageName:c.rendererPackageName,rendererConfig:c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:lp,findFiberByHostInstance:c.findFiberByHostInstance||B1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")c=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)c=!0;else{try{rn=f.inject(c),Rt=f}catch{}c=!!f.checkDCE}}return c},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(c,f,v,_){if(!vt)throw Error(a(363));c=T1(c,f);var L=Vt(c,v,_).disconnect;return{disconnect:function(){L()}}},n.registerMutableSourceForHydration=function(c,f){var v=f._getVersion;v=v(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,v]:c.mutableSourceEagerHydrationData.push(f,v)},n.runWithPriority=function(c,f){var v=At;try{return At=c,f()}finally{At=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(c,f,v,_){var L=f.current,R=hi(),V=Nr(L);return v=F1(v),f.context===null?f.context=v:f.pendingContext=v,f=ds(R,V),f.payload={element:c},_=_===void 0?null:_,_!==null&&(f.callback=_),c=qs(L,f,V),c!==null&&(Lo(c,L,V,R),Th(c,L,V)),V},n};(function(e){e.exports=$Se})(tH);const BSe=JC(tH.exports);var m7={exports:{}},kh={};/**
* @license React
* react-reconciler-constants.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/kh.ConcurrentRoot=1;kh.ContinuousEventPriority=4;kh.DefaultEventPriority=16;kh.DiscreteEventPriority=1;kh.IdleEventPriority=536870912;kh.LegacyRoot=0;(function(e){e.exports=kh})(m7);const GA={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let jA=!1,KA=!1;const v7=".react-konva-event",HSe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
`,WSe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
`,VSe={};function Ex(e,t,n=VSe){if(!jA&&"zIndex"in t&&(console.warn(WSe),jA=!0),!KA&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(HSe),KA=!0)}for(var o in n)if(!GA[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var d=!t.hasOwnProperty(o);d&&e.setAttr(o,void 0)}var p=t._useStrictMode,g={},m=!1;const y={};for(var o in t)if(!GA[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||p&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),Td(e));for(var l in y)e.on(l+v7,y[l])}function Td(e){if(!st.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const nH={},USe={};uh.Node.prototype._applyProps=Ex;function GSe(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Td(e)}function jSe(e,t,n){let r=uh[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=uh.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return Ex(l,o),l}function KSe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function qSe(e,t,n){return!1}function ZSe(e){return e}function YSe(){return null}function XSe(){return null}function QSe(e,t,n,r){return USe}function JSe(){}function ewe(e){}function twe(e,t){return!1}function nwe(){return nH}function rwe(){return nH}const iwe=setTimeout,owe=clearTimeout,awe=-1;function swe(e,t){return!1}const lwe=!1,uwe=!0,cwe=!0;function dwe(e,t){t.parent===e?t.moveToTop():e.add(t),Td(e)}function fwe(e,t){t.parent===e?t.moveToTop():e.add(t),Td(e)}function rH(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Td(e)}function hwe(e,t,n){rH(e,t,n)}function pwe(e,t){t.destroy(),t.off(v7),Td(e)}function gwe(e,t){t.destroy(),t.off(v7),Td(e)}function mwe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function vwe(e,t,n){}function ywe(e,t,n,r,i){Ex(e,i,r)}function xwe(e){e.hide(),Td(e)}function bwe(e){}function Swe(e,t){(t.visible==null||t.visible)&&e.show()}function wwe(e,t){}function Cwe(e){}function _we(){}const kwe=()=>m7.exports.DefaultEventPriority,Ewe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:GSe,createInstance:jSe,createTextInstance:KSe,finalizeInitialChildren:qSe,getPublicInstance:ZSe,prepareForCommit:YSe,preparePortalMount:XSe,prepareUpdate:QSe,resetAfterCommit:JSe,resetTextContent:ewe,shouldDeprioritizeSubtree:twe,getRootHostContext:nwe,getChildHostContext:rwe,scheduleTimeout:iwe,cancelTimeout:owe,noTimeout:awe,shouldSetTextContent:swe,isPrimaryRenderer:lwe,warnsIfNotActing:uwe,supportsMutation:cwe,appendChild:dwe,appendChildToContainer:fwe,insertBefore:rH,insertInContainerBefore:hwe,removeChild:pwe,removeChildFromContainer:gwe,commitTextUpdate:mwe,commitMount:vwe,commitUpdate:ywe,hideInstance:xwe,hideTextInstance:bwe,unhideInstance:Swe,unhideTextInstance:wwe,clearContainer:Cwe,detachDeletedInstance:_we,getCurrentEventPriority:kwe,now:Gp.exports.unstable_now,idlePriority:Gp.exports.unstable_IdlePriority,run:Gp.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var Pwe=Object.defineProperty,Twe=Object.defineProperties,Lwe=Object.getOwnPropertyDescriptors,qA=Object.getOwnPropertySymbols,Awe=Object.prototype.hasOwnProperty,Iwe=Object.prototype.propertyIsEnumerable,ZA=(e,t,n)=>t in e?Pwe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YA=(e,t)=>{for(var n in t||(t={}))Awe.call(t,n)&&ZA(e,n,t[n]);if(qA)
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $9e(e){if(Array.isArray(e))return ZC(e)}function vI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vI(Object(n),!0).forEach(function(r){VH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qm(e,t){return W9e(e)||H9e(e,t)||UH(e,t)||B9e()}function B9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UH(e,t){if(!!e){if(typeof e=="string")return ZC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZC(e,t)}}function ZC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H9e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function W9e(e){if(Array.isArray(e))return e}var V9e="file-invalid-type",U9e="file-too-large",G9e="file-too-small",j9e="too-many-files",K9e=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:V9e,message:"File type must be ".concat(n)}},xI=function(t){return{code:U9e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},bI=function(t){return{code:G9e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},q9e={code:j9e,message:"Too many files"};function GH(e,t){var n=e.type==="application/x-moz-file"||D9e(e,t);return[n,n?null:K9e(t)]}function jH(e,t,n){if(Df(e.size))if(Df(t)&&Df(n)){if(e.size>n)return[!1,xI(n)];if(e.size<t)return[!1,bI(t)]}else{if(Df(t)&&e.size<t)return[!1,bI(t)];if(Df(n)&&e.size>n)return[!1,xI(n)]}return[!0,null]}function Df(e){return e!=null}function Z9e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var d=GH(l,n),p=Qm(d,1),g=p[0],m=jH(l,r,i),y=Qm(m,1),b=y[0],S=s?s(l):null;return g&&b&&!S})}function $5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ay(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function SI(e){e.preventDefault()}function Y9e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function X9e(e){return e.indexOf("Edge/")!==-1}function Q9e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Y9e(e)||X9e(e)}function hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!$5(r)&&s&&s.apply(void 0,[r].concat(o)),$5(r)})}}function J9e(){return"showOpenFilePicker"in window}function e8e(e){if(Df(e)){var t=Object.entries(e).filter(function(n){var r=Qm(n,2),i=r[0],o=r[1],a=!0;return KH(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(qH))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Qm(r,2),o=i[0],a=i[1];return yI(yI({},n),{},VH({},o,a))},{});return[{accept:t}]}return e}function t8e(e){if(Df(e))return Object.entries(e).reduce(function(t,n){var r=Qm(n,2),i=r[0],o=r[1];return[].concat(mI(t),[i],mI(o))},[]).filter(function(t){return KH(t)||qH(t)}).join(",")}function n8e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function r8e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function KH(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function qH(e){return/^.*\.[\w]+$/.test(e)}var i8e=["children"],o8e=["open"],a8e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLe
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d8e(e){if(Array.isArray(e))return YC(e)}function GS(e,t){return p8e(e)||h8e(e,t)||ZH(e,t)||f8e()}function f8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZH(e,t){if(!!e){if(typeof e=="string")return YC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(e,t)}}function YC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function p8e(e){if(Array.isArray(e))return e}function wI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wI(Object(n),!0).forEach(function(r){XC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B5(e,t){if(e==null)return{};var n=g8e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function g8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var k7=C.exports.forwardRef(function(e,t){var n=e.children,r=B5(e,i8e),i=XH(r),o=i.open,a=B5(i,o8e);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),w(C.exports.Fragment,{children:n(fr(fr({},a),{},{open:o}))})});k7.displayName="Dropzone";var YH={disabled:!1,getFilesFromEvent:P9e,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};k7.defaultProps=YH;k7.propTypes={children:Mn.exports.func,accept:Mn.exports.objectOf(Mn.exports.arrayOf(Mn.exports.string)),multiple:Mn.exports.bool,preventDropOnDocument:Mn.exports.bool,noClick:Mn.exports.bool,noKeyboard:Mn.exports.bool,noDrag:Mn.exports.bool,noDragEventsBubbling:Mn.exports.bool,minSize:Mn.exports.number,maxSize:Mn.exports.number,maxFiles:Mn.exports.number,disabled:Mn.exports.bool,getFilesFromEvent:Mn.exports.func,onFileDialogCancel:Mn.exports.func,onFileDialogOpen:Mn.exports.func,useFsAccessApi:Mn.exports.bool,autoFocus:Mn.exports.bool,onDragEnter:Mn.exports.func,onDragLeave:Mn.exports.func,onDragOver:Mn.exports.func,onDrop:Mn.exports.func,onDropAccepted:Mn.exports.func,onDropRejected:Mn.exports.func,onError:Mn.exports.func,validator:Mn.exports.func};var QC={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function XH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},YH),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,E=t.onFileDialogOpen,P=t.useFsAccessApi,k=t.autoFocus,T=t.preventDropOnDocument,M=t.noClick,N=t.noKeyboard,z=t.noDrag,F=t.noDragEventsBubbling,$=t.onError,K=t.validator,j=C.exports.useMemo(function(){return t8e(n)},[n]),Z=C.exports.useMemo(function(){return e8e(n)},[n]),me=C.exports.useMemo(function(){return typeof E=="function"?E:CI},[E]),pe=C.exports.useMemo(function(){return typeof S=="function"?S:CI},[S]),be=C.exports.useRef(null),we=C.exports.useRef(null),Se=C.ex
`+T.message,"");i({title:"Upload failed",description:P,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(E=>{a(!0);const P={file:E};["img2img","inpainting"].includes(r)&&(P.destination=r),n(VL(P))},[n,r]),d=C.exports.useCallback((E,P)=>{P.forEach(k=>{s(k)}),E.forEach(k=>{l(k)})},[l,s]),{getRootProps:p,getInputProps:g,isDragAccept:m,isDragReject:y,isDragActive:b,open:S}=XH({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:d,maxFiles:1});return C.exports.useEffect(()=>{const E=P=>{const k=P.clipboardData?.items;if(!k)return;const T=[];for(const z of k)z.kind==="file"&&["image/png","image/jpg"].includes(z.type)&&T.push(z);if(!T.length)return;if(P.stopImmediatePropagation(),T.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const M=T[0].getAsFile();if(!M){i({description:"Unable to load file",status:"error",isClosable:!0});return}const N={file:M};["img2img","inpainting"].includes(r)&&(N.destination=r),n(VL(N))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]),w(O$.Provider,{value:S,children:oe("div",{...p({style:{}}),children:[w("input",{...g()}),t,b&&oe("div",{className:"dropzone-container",children:[m&&w("div",{className:"dropzone-overlay is-drag-accept",children:w(Qf,{size:"lg",children:"Drop Images"})}),y&&oe("div",{className:"dropzone-overlay is-drag-reject",children:[w(Qf,{size:"lg",children:"Invalid Upload"}),w(Qf,{size:"md",children:"Must be single JPEG or PNG image"})]}),o&&w("div",{className:"dropzone-overlay is-handling-upload",children:w(V0,{})})]})]})})},y8e=()=>{const e=pt();return w(gn,{tooltip:"Show Gallery (G)",tooltipPlacement:"top","aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(cC(!0))},children:w(v$,{})})};function x8e(e){return wt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}const b8e=sn(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:Yt.isEqual}}),S8e=()=>{const e=pt(),{shouldShowProcessButtons:t}=Ge(b8e);return oe("div",{className:"show-hide-button-options",children:[w(gn,{tooltip:"Show Options Panel (O)",tooltipPlacement:"top","aria-label":"Show Options Panel",onClick:()=>{e(BC(!0))},children:w(x8e,{})}),t&&oe($n,{children:[w(S$,{iconButton:!0}),w(k$,{}),w(w$,{})]})]})};C9e();const w8e=sn([e=>e.gallery,e=>e.options,zs],(e,t,n)=>{const{shouldShowGallery:r,shouldHoldGalleryOpen:i,shouldPinGallery:o}=e,{shouldShowOptionsPanel:a,shouldHoldOptionsPanelOpen:s,shouldPinOptionsPanel:l}=t;return{shouldShowGalleryButton:!(r||i&&!o),shouldShowOptionsPanelButton:!(a||s&&!l)&&["txt2img","img2img","inpainting"].includes(n)}}),C8e=()=>{const e=pt(),[t,n]=C.exports.useState(!1),{shouldShowGalleryButton:r,shouldShowOptionsPanelButton:i}=Ge(w8e);return C.exports.useEffect(()=>{e(xye()),n(!0)},[e]),t?w("div",{className:"App",children:oe(v8e,{children:[w(l9e,{}),oe("div",{className:"app-content",children:[w(x9e,{}),w(P6e,{})]}),w("div",{className:"app-console",children:w(w9e,{})}),r&&w(y8e,{}),i&&w(S8e,{})]})}):w(BH,{})};const QH=Nve(FH);KS.createRoot(document.getElementById("root")).render(w(le.StrictMode,{children:w(fve,{store:FH,children:w($H,{loading:w(BH,{}),persistor:QH,children:oe(Zge,{theme:hI,children:[w(rZ,{initialColorMode:hI.config.initialColorMode}),w(C8e,{})]})})})}))