mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
502 lines
1.2 MiB
JavaScript
502 lines
1.2 MiB
JavaScript
|
function Sj(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 nu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Gt={};/**
|
||
|
* @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 iv=Symbol.for("react.element"),wj=Symbol.for("react.portal"),Cj=Symbol.for("react.fragment"),_j=Symbol.for("react.strict_mode"),kj=Symbol.for("react.profiler"),Ej=Symbol.for("react.provider"),Pj=Symbol.for("react.context"),Tj=Symbol.for("react.forward_ref"),Lj=Symbol.for("react.suspense"),Aj=Symbol.for("react.memo"),Ij=Symbol.for("react.lazy"),ak=Symbol.iterator;function Mj(e){return e===null||typeof e!="object"?null:(e=ak&&e[ak]||e["@@iterator"],typeof e=="function"?e:null)}var mI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vI=Object.assign,yI={};function w0(e,t,n){this.props=e,this.context=t,this.refs=yI,this.updater=n||mI}w0.prototype.isReactComponent={};w0.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")};w0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xI(){}xI.prototype=w0.prototype;function jC(e,t,n){this.props=e,this.context=t,this.refs=yI,this.updater=n||mI}var qC=jC.prototype=new xI;qC.constructor=jC;vI(qC,w0.prototype);qC.isPureReactComponent=!0;var sk=Array.isArray,bI=Object.prototype.hasOwnProperty,KC={current:null},SI={key:!0,ref:!0,__self:!0,__source:!0};function wI(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)bI.call(t,r)&&!SI.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:iv,type:e,key:o,ref:a,props:i,_owner:KC.current}}function Rj(e,t){return{$$typeof:iv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ZC(e){return typeof e=="object"&&e!==null&&e.$$typeof===iv}function Oj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var lk=/\/+/g;function nb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Oj(""+e.key):t.toString(36)}function Ay(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 iv:case wj:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+nb(a,0):r,sk(i)?(n="",e!=null&&(n=e.replace(lk,"$&/")+"/"),Ay(i,t,n,"",function(d){return d})):i!=null&&(ZC(i)&&(i=Rj(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(lk,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",sk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+nb(o,s);a+=Ay(o,t,n,l,i)}else if(l=Mj(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+nb(o,s++),a+=Ay(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 b2(e,t,n){if(e==null)return e;var r=[],i=0;return Ay(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Nj(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 ro={current:null},Iy={transition:null},Dj={ReactCurrentDispatcher:ro,ReactCurrentBatchConfig:Iy,ReactCurrentOwner:KC};Gt.Children={map:b2,forEach:function(e,t,n){b2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return b2(e,function(){t++}),t},toArray:function(e){return b2(e,function(t){return t})||[]},only:function(e){if(!ZC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Gt.Component=w0;Gt.Fragment=Cj;Gt.Profiler=kj;Gt
|
||
|
* @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(V,ae){var oe=V.length;V.push(ae);e:for(;0<oe;){var X=oe-1>>>1,me=V[X];if(0<i(me,ae))V[X]=ae,V[oe]=me,oe=X;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var ae=V[0],oe=V.pop();if(oe!==ae){V[0]=oe;e:for(var X=0,me=V.length,ve=me>>>1;X<ve;){var Se=2*(X+1)-1,He=V[Se],je=Se+1,ut=V[je];if(0>i(He,oe))je<me&&0>i(ut,He)?(V[X]=ut,V[je]=oe,X=je):(V[X]=He,V[Se]=oe,X=Se);else if(je<me&&0>i(ut,oe))V[X]=ut,V[je]=oe,X=je;else break e}}return ae}function i(V,ae){var oe=V.sortIndex-ae.sortIndex;return oe!==0?oe:V.id-ae.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 L(V){for(var ae=n(d);ae!==null;){if(ae.callback===null)r(d);else if(ae.startTime<=V)r(d),ae.sortIndex=ae.expirationTime,t(l,ae);else break;ae=n(d)}}function I(V){if(S=!1,L(V),!b)if(n(l)!==null)b=!0,xe(O);else{var ae=n(d);ae!==null&&Y(I,ae.startTime-V)}}function O(V,ae){b=!1,S&&(S=!1,P(F),F=-1),y=!0;var oe=m;try{for(L(ae),g=n(l);g!==null&&(!(g.expirationTime>ae)||V&&!q());){var X=g.callback;if(typeof X=="function"){g.callback=null,m=g.priorityLevel;var me=X(g.expirationTime<=ae);ae=e.unstable_now(),typeof me=="function"?g.callback=me:g===n(l)&&r(l),L(ae)}else r(l);g=n(l)}if(g!==null)var ve=!0;else{var Se=n(d);Se!==null&&Y(I,Se.startTime-ae),ve=!1}return ve}finally{g=null,m=oe,y=!1}}var N=!1,D=null,F=-1,U=5,W=-1;function q(){return!(e.unstable_now()-W<U)}function pe(){if(D!==null){var V=e.unstable_now();W=V;var ae=!0;try{ae=D(!0,V)}finally{ae?fe():(N=!1,D=null)}}else N=!1}var fe;if(typeof k=="function")fe=function(){k(pe)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Pe=ye.port2;ye.port1.onmessage=pe,fe=function(){Pe.postMessage(null)}}else fe=function(){E(pe,0)};function xe(V){D=V,N||(N=!0,fe())}function Y(V,ae){F=E(function(){V(e.unstable_now())},ae)}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(V){V.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,xe(O))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(V){switch(m){case 1:case 2:case 3:var ae=3;break;default:ae=m}var oe=m;m=ae;try{return V()}finally{m=oe}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ae){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var oe=m;m=V;try{return ae()}finally{m=oe}},e.unstable_scheduleCallback=function(V,ae,oe){var X=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?X+oe:X):oe=X,V){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=oe+me,V={id:p++,callback:ae,priorityLevel:V,startTime:oe,expirationTime:me,sortIndex:-1},oe>X?(V.sortIndex=oe,t(d,V),n(l)===null&&V===n(d)&&(S?(P(F),F=-1):S=!0,Y(I,oe-X))):(V.sortIndex=me,t(l,V),b||y||(b=!0,xe(O))),V},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(V){var ae=m;return function(){var oe=m;m=ae;try{return V.apply(this,arguments)}finally{m=oe}}}})(CI);(function(e){e.exports=CI})(Ip);/**
|
||
|
* @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 _I=C.exports,oa=Ip.exports;function Re(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 kI=new Set,dm={};function Hf(e,t){n0(e,t),n0(e+"Capture",t)}function n0(e,t){for(dm[e]=t,e=0;e<t.length;e++)kI.add(t[e])}var lu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jS=Object.prototype.hasOwnProperty,zj=/^[: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]*$/,uk={},ck={};function Fj(e){return jS.call(ck,e)?!0:jS.call(uk,e)?!1:zj.test(e)?ck[e]=!0:(uk[e]=!0,!1)}function Bj(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 $j(e,t,n,r){if(t===null||typeof t>"u"||Bj(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 io(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 Li={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Li[e]=new io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Li[t]=new io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Li[e]=new io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Li[e]=new io(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){Li[e]=new io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Li[e]=new io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Li[e]=new io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Li[e]=new io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Li[e]=new io(e,5,!1,e.toLowerCase(),null,!1,!1)});var YC=/[\-:]([a-z])/g;function XC(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
|
||
|
`+rb+e}var ib=!1;function ob(e,t){if(!e||ib)return"";ib=!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{ib=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vg(e):""}function Hj(e){switch(e.tag){case 5:return vg(e.type);case 16:return vg("Lazy");case 13:return vg("Suspense");case 19:return vg("SuspenseList");case 0:case 2:case 15:return e=ob(e.type,!1),e;case 11:return e=ob(e.type.render,!1),e;case 1:return e=ob(e.type,!0),e;default:return""}}function YS(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 mp:return"Fragment";case gp:return"Portal";case qS:return"Profiler";case JC:return"StrictMode";case KS:return"Suspense";case ZS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case PI:return(e.displayName||"Context")+".Consumer";case EI:return(e._context.displayName||"Context")+".Provider";case e9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t9:return t=e.displayName||null,t!==null?t:YS(e.type)||"Memo";case bc:t=e._payload,e=e._init;try{return YS(e(t))}catch{}}return null}function Wj(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 YS(t);case 8:return t===JC?"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 Vc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vj(e){var t=LI(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 w2(e){e._valueTracker||(e._valueTracker=Vj(e))}function AI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function S3(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 XS(e,t){var n=t.checked;return dr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vc(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 II(e,t){t=t.checked,t!=null&&QC(e,"checked",t,!1)}function QS(e,t){II(e,t);var n=Vc(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")?JS(e,t.type,n):t.hasOwnProperty("defaultValue")&&JS(e,t.type,Vc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hk(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(Jq,"")}function A2(e,t,n){if(t=Dk(t),Dk(e)!==t&&n)throw Error(Re(425))}function L3(){}var hw=null,pw=null;function gw(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 mw=typeof setTimeout=="function"?setTimeout:void 0,eK=typeof clearTimeout=="function"?clearTimeout:void 0,zk=typeof Promise=="function"?Promise:void 0,tK=typeof queueMicrotask=="function"?queueMicrotask:typeof zk<"u"?function(e){return zk.resolve(null).then(e).catch(nK)}:mw;function nK(e){setTimeout(function(){throw e})}function yb(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),mm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);mm(t)}function Dc(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 Fk(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 _0=Math.random().toString(36).slice(2),ul="__reactFiber$"+_0,Sm="__reactProps$"+_0,uu="__reactContainer$"+_0,vw="__reactEvents$"+_0,rK="__reactListeners$"+_0,iK="__reactHandles$"+_0;function ff(e){var t=e[ul];if(t)return t;for(var n=e.parentNode;n;){if(t=n[uu]||n[ul]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fk(e);e!==null;){if(n=e[ul])return n;e=Fk(e)}return t}e=n,n=e.parentNode}return null}function sv(e){return e=e[ul]||e[uu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Re(33))}function V5(e){return e[Sm]||null}var yw=[],Sp=-1;function Jc(e){return{current:e}}function Kn(e){0>Sp||(e.current=yw[Sp],yw[Sp]=null,Sp--)}function Un(e,t){Sp++,yw[Sp]=e.current,e.current=t}var Uc={},$i=Jc(Uc),_o=Jc(!1),Mf=Uc;function r0(e,t){var n=e.type.contextTypes;if(!n)return Uc;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 ko(e){return e=e.childContextTypes,e!=null}function A3(){Kn(_o),Kn($i)}function Bk(e,t,n){if($i.current!==Uc)throw Error(Re(168));Un($i,t),Un(_o,n)}function xM(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(Re(108,Wj(e)||"Unknown",i));return dr({},n,r)}function I3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Uc,Mf=$i.current,Un($i,e),Un(_o,_o.current),!0}function $k(e,t,n){var r=e.stateNode;if(!r)throw Error(Re(169));n?(e=xM(e,t,Mf),r.__reactInternalMemoizedMergedChildContext=e,Kn(_o),Kn($i),Un($i,e)):Kn(_o),Un(_o,n)}var tu=null,U5=!1,xb=!1;function bM(e){tu===null?tu=[e]:tu.push(e)}function oK(e){U5=!0,bM(e)}function ed(){if(!xb&&tu!==null){xb=!0;var e=0,t=kn;try{var n=tu;for(kn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}tu=null,U5=!1}catch(i){throw tu!==null&&(tu=tu.slice(e+1)),GI(r9,ed),i}finally{kn=t,xb=!1}}return null}var wp=[],Cp=0,M3=null,R3=0,Ta=[],La=0,Rf=null,iu=1,ou="";function tf(e,t){wp[Cp++]=R3,wp[Cp++]=M3,M3=e,R3=t}function SM(e,t,n){Ta[La++]=iu,Ta[La++]=ou,Ta[La++]=Rf,Rf=e;var r=iu;e=ou;var i=32-ys(r)-1;r&=~(1<<i),n+=1;var o=32-ys(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,iu=1<<32-ys(t)+i|n<<i|r,ou=o+e}else iu=1<<o|n<<i|r,ou=e}function f9(e){e.return!==null&&(tf(e,1),SM(e,1,0))}function h9(e){for(;e===M3;)M3=wp[--Cp],wp[Cp]=null,R3=wp[--Cp],wp[Cp]=null;for(;e===Rf;)Rf=Ta[--La],Ta[La]=null,ou=Ta[--La],Ta[La]=null,iu=Ta[--La],Ta[La]=null}var ta=null,Jo=null,tr=!1,ms=null;function wM(e,t){var n=Ma(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 _b(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _w(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pK=typeof WeakMap=="function"?WeakMap:Map;function YM(e,t,n){n=su(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){H3||(H3=!0,Ow=r),_w(e,t)},n}function XM(e,t,n){n=su(-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(){_w(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){_w(e,t),typeof r!="function"&&(Fc===null?Fc=new Set([this]):Fc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Yk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pK;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=TK.bind(null,e,t,n),t.then(e,e))}function Xk(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 Qk(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=su(-1,1),t.tag=2,zc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var gK=xu.ReactCurrentOwner,Co=!1;function Qi(e,t,n,r){t.child=e===null?LM(t,null,n,r):o0(t,e.child,n,r)}function Jk(e,t,n,r,i){n=n.render;var o=t.ref;return Dp(t,i),r=_9(e,t,n,r,o,i),n=k9(),e!==null&&!Co?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,du(e,t,i)):(tr&&n&&f9(t),t.flags|=1,Qi(e,t,r,i),t.child)}function eE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!N9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,QM(e,t,o,r,i)):(e=Hy(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:ym,n(a,r)&&e.ref===t.ref)return du(e,t,i)}return t.flags|=1,e=$c(o,r),e.ref=t.ref,e.return=t,t.child=e}function QM(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ym(o,r)&&e.ref===t.ref)if(Co=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Co=!0);else return t.lanes=e.lanes,du(e,t,i)}return kw(e,t,n,r,i)}function JM(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},Un(Ep,Xo),Xo|=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,Un(Ep,Xo),Xo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Un(Ep,Xo),Xo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Un(Ep,Xo),Xo|=r;return Qi(e,t,i,n),t.child}function eR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kw(e,t,n,r,i){var o=ko(n)?Mf:$i.current;return o=r0(t,o),Dp(t,i),n=_9(e,t,n,r,o,i),r=k9(),e!==null&&!Co?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,du(e,t,i)):(tr&&r&&f9(t),t.flags|=1,Qi(e,t,n,i),t.child)}function tE(e,t,n,r,i){if(ko(n)){var o=!0;I3(t)}else o=!1;if(Dp(t,i),t.stateNode===null)Fy(e,t),PM(t,n,r),Cw(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=za(d):(d=ko(n)?Mf:$i.current,d=r0(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)&&jk(t,a,r,d),Sc=!1;var m=t.memoizedState;a.state=m,D3(t,r,a,i),l=t.memoizedState,s!==r||m!==l||_o.current||Sc?(typeof p=="function"&&(ww(t,n,p,r),l=t.memoizedState),(s=Sc||Gk(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 BK=C.exports,$K=Symbol.for("react.element"),HK=Symbol.for("react.fragment"),WK=Object.prototype.hasOwnProperty,VK=BK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,UK={key:!0,ref:!0,__self:!0,__source:!0};function CR(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)WK.call(t,r)&&!UK.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:$K,type:e,key:o,ref:a,props:i,_owner:VK.current}}t4.Fragment=HK;t4.jsx=CR;t4.jsxs=CR;(function(e){e.exports=t4})(e4);const Fn=e4.exports.Fragment,w=e4.exports.jsx,te=e4.exports.jsxs;var $9=C.exports.createContext({});$9.displayName="ColorModeContext";function n4(){const e=C.exports.useContext($9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var F2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function GK(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?F2.dark:F2.light),document.body.classList.remove(r?F2.light:F2.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 jK="chakra-ui-color-mode";function qK(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 KK=qK(jK),gE=()=>{};function mE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function _R(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=KK}=e,s=i==="dark"?"dark":"light",[l,d]=C.exports.useState(()=>mE(a,s)),[p,g]=C.exports.useState(()=>mE(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:S}=C.exports.useMemo(()=>GK({preventTransition:o}),[o]),E=i==="system"&&!l?p:l,P=C.exports.useCallback(I=>{const O=I==="system"?m():I;d(O),y(O==="dark"),b(O),a.set(O)},[a,m,y,b]);gl(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const I=a.get();if(I){P(I);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 L=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?gE:k,setColorMode:t?gE:P,forced:t!==void 0}),[E,k,P,t]);return w($9.Provider,{value:L,children:n})}_R.displayName="ColorModeProvider";var ZK=new Set(["dark","light","system"]);function YK(e){let t=e;return ZK.has(t)||(t="light"),t}function XK(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=YK(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=31536
|
||
|
`,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 QK(e={}){const{nonce:t}=e;return w("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:XK(e)}})}var Fw={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]",L="[object Proxy]",I="[object RegExp]",O="[object Set]",N="[object String]",D="[object Undefined]",F="[object WeakMap]",U="[object ArrayBuffer]",W="[object DataView]",q="[object Float32Array]",pe="[object Float64Array]",fe="[object Int8Array]",ye="[object Int16Array]",Pe="[object Int32Array]",xe="[object Uint8Array]",Y="[object Uint8ClampedArray]",V="[object Uint16Array]",ae="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ve={};ve[q]=ve[pe]=ve[fe]=ve[ye]=ve[Pe]=ve[xe]=ve[Y]=ve[V]=ve[ae]=!0,ve[s]=ve[l]=ve[U]=ve[p]=ve[W]=ve[g]=ve[m]=ve[y]=ve[S]=ve[E]=ve[k]=ve[I]=ve[O]=ve[N]=ve[F]=!1;var Se=typeof nu=="object"&&nu&&nu.Object===Object&&nu,He=typeof self=="object"&&self&&self.Object===Object&&self,je=Se||He||Function("return this")(),ut=t&&!t.nodeType&&t,qe=ut&&!0&&e&&!e.nodeType&&e,at=qe&&qe.exports===ut,et=at&&Se.process,it=function(){try{var H=qe&&qe.require&&qe.require("util").types;return H||et&&et.binding&&et.binding("util")}catch{}}(),At=it&&it.isTypedArray;function wt(H,Z,ue){switch(ue.length){case 0:return H.call(Z);case 1:return H.call(Z,ue[0]);case 2:return H.call(Z,ue[0],ue[1]);case 3:return H.call(Z,ue[0],ue[1],ue[2])}return H.apply(Z,ue)}function Le(H,Z){for(var ue=-1,Ge=Array(H);++ue<H;)Ge[ue]=Z(ue);return Ge}function ot(H){return function(Z){return H(Z)}}function Et(H,Z){return H?.[Z]}function rt(H,Z){return function(ue){return H(Z(ue))}}var pt=Array.prototype,Sn=Function.prototype,bt=Object.prototype,qt=je["__core-js_shared__"],wn=Sn.toString,pn=bt.hasOwnProperty,Me=function(){var H=/[^.]+$/.exec(qt&&qt.keys&&qt.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),Ze=bt.toString,Kt=wn.call(Object),Vt=RegExp("^"+wn.call(pn).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=at?je.Buffer:void 0,kt=je.Symbol,Ne=je.Uint8Array,tt=_e?_e.allocUnsafe:void 0,nn=rt(Object.getPrototypeOf,Object),Mn=Object.create,Fe=bt.propertyIsEnumerable,lt=pt.splice,Xe=kt?kt.toStringTag:void 0,Lt=function(){try{var H=Za(Object,"defineProperty");return H({},"",{}),H}catch{}}(),Zt=_e?_e.isBuffer:void 0,Zn=Math.max,ao=Date.now,ui=Za(je,"Map"),Ps=Za(Object,"create"),W0=function(){function H(){}return function(Z){if(!No(Z))return{};if(Mn)return Mn(Z);H.prototype=Z;var ue=new H;return H.prototype=void 0,ue}}();function pa(H){var Z=-1,ue=H==null?0:H.length;for(this.clear();++Z<ue;){var Ge=H[Z];this.set(Ge[0],Ge[1])}}function rh(){this.__data__=Ps?Ps(null):{},this.size=0}function V0(H){var Z=this.has(H)&&delete this.__data__[H];return this.size-=Z?1:0,Z}function Pu(H){var Z=this.__data__;if(Ps){var ue=Z[H];return ue===r?void 0:ue}return pn.call(Z,H)?Z[H]:void 0}function ih(H){var Z=this.__data__;return Ps?Z[H]!==void 0:pn.call(Z,H)}function oh(H,Z){var ue=this.__data__;return this.size+=this.has(H)?0:1,ue[H]=Ps&&Z===void 0?r:Z,this}pa.prototype.clear=rh,pa.prototype.delete=V0,pa.prototype.get=Pu,pa.prototype.has=ih,pa.prototype.set=oh;function Io(H){var Z=-1,ue=H==null?0:H.length;for(this.clear();++Z<ue;){var Ge=H[Z];this.set(Ge[0],Ge[1])}}function dd(){this.__data__=[],this.size=0}function U0(H){var Z=this.__data__,ue=qa(Z,H);if(ue<0)return!1;var Ge=Z.length-1;return ue==Ge?Z.pop():lt.call(Z,ue,1),--this.size,!0}function Tu(H){var Z=this.__data__,ue=qa(Z,H);return ue<0?void 0:Z[ue][1]}function fd(H){return qa(this.__data__,H)>-1}function G0(H,Z){var ue=this.__data__,Ge=qa(ue,H);return Ge<0?(++this.size,ue.push([H,Z])):ue[Ge][1]=Z,this}Io.prototype.clear=dd,Io.prototype.delete=U0,Io.prototype.get=Tu,Io.prototype.has=fd,Io.prototype.set=G0
|
||
|
* 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 li=typeof Symbol=="function"&&Symbol.for,j9=li?Symbol.for("react.element"):60103,q9=li?Symbol.for("react.portal"):60106,l4=li?Symbol.for("react.fragment"):60107,u4=li?Symbol.for("react.strict_mode"):60108,c4=li?Symbol.for("react.profiler"):60114,d4=li?Symbol.for("react.provider"):60109,f4=li?Symbol.for("react.context"):60110,K9=li?Symbol.for("react.async_mode"):60111,h4=li?Symbol.for("react.concurrent_mode"):60111,p4=li?Symbol.for("react.forward_ref"):60112,g4=li?Symbol.for("react.suspense"):60113,UY=li?Symbol.for("react.suspense_list"):60120,m4=li?Symbol.for("react.memo"):60115,v4=li?Symbol.for("react.lazy"):60116,GY=li?Symbol.for("react.block"):60121,jY=li?Symbol.for("react.fundamental"):60117,qY=li?Symbol.for("react.responder"):60118,KY=li?Symbol.for("react.scope"):60119;function fa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case j9:switch(e=e.type,e){case K9:case h4:case l4:case c4:case u4:case g4:return e;default:switch(e=e&&e.$$typeof,e){case f4:case p4:case v4:case m4:case d4:return e;default:return t}}case q9:return t}}}function VR(e){return fa(e)===h4}Tn.AsyncMode=K9;Tn.ConcurrentMode=h4;Tn.ContextConsumer=f4;Tn.ContextProvider=d4;Tn.Element=j9;Tn.ForwardRef=p4;Tn.Fragment=l4;Tn.Lazy=v4;Tn.Memo=m4;Tn.Portal=q9;Tn.Profiler=c4;Tn.StrictMode=u4;Tn.Suspense=g4;Tn.isAsyncMode=function(e){return VR(e)||fa(e)===K9};Tn.isConcurrentMode=VR;Tn.isContextConsumer=function(e){return fa(e)===f4};Tn.isContextProvider=function(e){return fa(e)===d4};Tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===j9};Tn.isForwardRef=function(e){return fa(e)===p4};Tn.isFragment=function(e){return fa(e)===l4};Tn.isLazy=function(e){return fa(e)===v4};Tn.isMemo=function(e){return fa(e)===m4};Tn.isPortal=function(e){return fa(e)===q9};Tn.isProfiler=function(e){return fa(e)===c4};Tn.isStrictMode=function(e){return fa(e)===u4};Tn.isSuspense=function(e){return fa(e)===g4};Tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l4||e===h4||e===c4||e===u4||e===g4||e===UY||typeof e=="object"&&e!==null&&(e.$$typeof===v4||e.$$typeof===m4||e.$$typeof===d4||e.$$typeof===f4||e.$$typeof===p4||e.$$typeof===jY||e.$$typeof===qY||e.$$typeof===KY||e.$$typeof===GY)};Tn.typeOf=fa;(function(e){e.exports=Tn})(WR);var UR=WR.exports,ZY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},YY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},GR={};GR[UR.ForwardRef]=ZY;GR[UR.Memo]=YY;var XY=!0;function QY(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var jR=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||XY===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},qR=function(t,n,r){jR(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 JY(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 eX={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
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function CQ(e){const t=aO().toHexString();return!e||bQ(e)?t:e.string&&e.colors?kQ(e.string,e.colors):e.string&&!e.colors?_Q(e.string):e.colors&&!e.string?EQ(e.colors):t}function _Q(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){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function kQ(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 EQ(e){return e[Math.floor(Math.random()*e.length)]}function Ie(e,t){return n=>n.colorMode==="dark"?t:e}function X9(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function PQ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function cO(e){return PQ(e)&&e.reference?e.reference:String(e)}var b4=(e,...t)=>t.map(cO).join(` ${e} `).replace(/calc/g,""),HE=(...e)=>`calc(${b4("+",...e)})`,WE=(...e)=>`calc(${b4("-",...e)})`,Xw=(...e)=>`calc(${b4("*",...e)})`,VE=(...e)=>`calc(${b4("/",...e)})`,UE=e=>{const t=cO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Xw(t,-1)},ru=Object.assign(e=>({add:(...t)=>ru(HE(e,...t)),subtract:(...t)=>ru(WE(e,...t)),multiply:(...t)=>ru(Xw(e,...t)),divide:(...t)=>ru(VE(e,...t)),negate:()=>ru(UE(e)),toString:()=>e.toString()}),{add:HE,subtract:WE,multiply:Xw,divide:VE,negate:UE});function TQ(e){return!Number.isInteger(parseFloat(e.toString()))}function LQ(e,t="-"){return e.replace(/\s+/g,t)}function dO(e){const t=LQ(e.toString());return t.includes("\\.")?e:TQ(e)?t.replace(".","\\."):e}function AQ(e,t=""){return[t,dO(e)].filter(Boolean).join("-")}function IQ(e,t){return`var(${dO(e)}${t?`, ${t}`:""})`}function MQ(e,t=""){return`--${AQ(e,t)}`}function Ao(e,t){const n=MQ(e,t?.prefix);return{variable:n,reference:IQ(n,RQ(t?.fallback))}}function RQ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:OQ,defineMultiStyleConfig:NQ}=nr(MX.keys),DQ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},zQ={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},FQ={pt:"2",px:"4",pb:"5"},BQ={fontSize:"1.25em"},$Q=OQ({container:DQ,button:zQ,panel:FQ,icon:BQ}),HQ=NQ({baseStyle:$Q}),{definePartsStyle:fv,defineMultiStyleConfig:WQ}=nr(RX.keys),ra=da("alert-fg"),fu=da("alert-bg"),VQ=fv({container:{bg:fu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ra.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ra.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Q9(e){const{theme:t,colorScheme:n}=e,r=c0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var UQ=fv(e=>{const{colorScheme:t}=e,n=Q9(e);return{container:{[ra.variable]:`colors.${t}.500`,[fu.variable]:n.light,_dark:{[ra.variable]:`colors.${t}.200`,[fu.variable]:n.dark}}}}),GQ=fv(e=>{const{colorScheme:t}=e,n=Q9(e);return{container:{[ra.variable]:`colors.${t}.500`,[fu.variable]:n.light,_dark:{[ra.variable]:`colors.${t}.200`,[fu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ra.reference}}}),jQ=fv(e=>{const{colorScheme:t}=e,n=Q9(e);return{container:{[ra.variable]:`colors.${t}.500`,[fu.variable]:n.light,_dark:{[ra.variable]:`colors.${t}.200`,[fu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ra.reference}}}),qQ=fv(e=>{const{colorScheme:t}=e;return{container:{[ra.variable]:"colors.white",[fu.variable]:`colors.${t}.500`,_dark:{[ra.variable]:"colors.gray.900",[fu.variable]:`colors.${t}.200`},color:ra.reference}}}),KQ={subtle:UQ,"left-accent":GQ,"top-accent":jQ,solid:qQ},ZQ=WQ({baseStyle:VQ,variants:KQ,defaultProps:{variant:"subtle",colorScheme:"blue"}}),fO={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:"
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${Ei(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},$te={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Hte=e=>({bg:Ie("gray.100","whiteAlpha.300")(e)}),Wte=e=>({transitionProperty:"common",transitionDuration:"slow",...Bte(e)}),Vte=wg(e=>({label:$te,filledTrack:Wte(e),track:Hte(e)})),Ute={xs:wg({track:{h:"1"}}),sm:wg({track:{h:"2"}}),md:wg({track:{h:"3"}}),lg:wg({track:{h:"4"}})},Gte=Fte({sizes:Ute,baseStyle:Vte,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:jte,definePartsStyle:qy}=nr(KX.keys),qte=e=>{var t;const n=(t=wr(K3.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"}}}},Kte=qy(e=>{var t,n,r,i;return{label:(n=(t=K3).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=K3).baseStyle)==null?void 0:i.call(r,e).container,control:qte(e)}}),Zte={md:qy({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:qy({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:qy({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Yte=jte({baseStyle:Kte,sizes:Zte,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Xte,definePartsStyle:Qte}=nr(ZX.keys),Jte=e=>{var t;return{...(t=fn.baseStyle)==null?void 0:t.field,bg:Ie("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Ie("white","gray.700")(e)}}},ene={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},tne=Qte(e=>({field:Jte(e),icon:ene})),U2={paddingInlineEnd:"8"},KE,ZE,YE,XE,QE,JE,eP,tP,nne={lg:{...(KE=fn.sizes)==null?void 0:KE.lg,field:{...(ZE=fn.sizes)==null?void 0:ZE.lg.field,...U2}},md:{...(YE=fn.sizes)==null?void 0:YE.md,field:{...(XE=fn.sizes)==null?void 0:XE.md.field,...U2}},sm:{...(QE=fn.sizes)==null?void 0:QE.sm,field:{...(JE=fn.sizes)==null?void 0:JE.sm.field,...U2}},xs:{...(eP=fn.sizes)==null?void 0:eP.xs,field:{...(tP=fn.sizes)==null?void 0:tP.xs.field,...U2},icon:{insetEnd:"1"}}},rne=Xte({baseStyle:tne,sizes:nne,variants:fn.variants,defaultProps:fn.defaultProps}),ine=da("skeleton-start-color"),one=da("skeleton-end-color"),ane=e=>{const t=Ie("gray.100","gray.800")(e),n=Ie("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=Ei(o,r),s=Ei(o,i);return{[ine.variable]:a,[one.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},sne={baseStyle:ane},lne=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Ie("white","gray.700")(e)}}),une={baseStyle:lne},{defineMultiStyleConfig:cne,definePartsStyle:S4}=nr(YX.keys),Om=da("slider-thumb-size"),Nm=da("slider-track-size"),dne=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...X9({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},fne=e=>({...X9({orientation:e.orientation,horizontal:{h:Nm.reference},vertical:{w:Nm.reference}}),overflow:"hidden",borderRadius:"sm",bg:Ie("gray.200","whiteAlpha.200")(e),_disabled:{bg:Ie("gray.300","whiteAlpha.300")(e)}}),hne=e=>{const{orientation:t}=e;return{...X9({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:Om.reference,h:Om.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"}}},pne=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Ie(`${t}.500`,`${t}.200`)(e)}},gne=S4(e=>({container:dne(e),track:fne(e),thumb:hne(e),filledTrack:pne(e)})),mne=S4({container:{[Om.variable]:"sizes.4",[Nm.
|
||
|
[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(oue,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const Kb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=E4(sue),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(aue,{isPresent:n,children:e})),w(P0.Provider,{value:d,children:e})};function sue(){return new Map}const fp=e=>e.key||"";function lue(e,t){e.forEach(n=>{const r=fp(n);t.set(r,n)})}function uue(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",_N(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=iue();const l=C.exports.useContext(n8).forceRender;l&&(s=l);const d=JN(),p=uue(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,lue(p,b),y.current=g}),d8(()=>{S.current=!0,b.clear(),m.clear()}),S.current)return w(Fn,{children:g.map(L=>w(Kb,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},fp(L)))});g=[...g];const E=y.current.map(fp),P=p.map(fp),k=E.length;for(let L=0;L<k;L++){const I=E[L];P.indexOf(I)===-1&&m.add(I)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(P.indexOf(L)!==-1)return;const I=b.get(L);if(!I)return;const O=E.indexOf(L),N=()=>{b.delete(L),m.delete(L);const D=y.current.findIndex(F=>F.key===L);if(y.current.splice(D,1),!m.size){if(y.current=p,d.current===!1)return;s(),r&&r()}};g.splice(O,0,w(Kb,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:o,mode:a,children:I},fp(I)))}),g=g.map(L=>{const I=L.key;return m.has(I)?L:w(Kb,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},fp(L))}),CN!=="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(Fn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var cl=function(){return cl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},cl.apply(this,arguments)};function eD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function T0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(p){try{d(r.next(p))}catch(g){a(g)}}function l(p){try{d(r.throw(p))}catch(g){a(g)}}function d(p){p.done?o(p.value):i(p.value).then(s,l)}d((r=r.apply(e,t||[])).next())})}function L0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(d){return function(p){return l([d,p])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[
|
||
|
`})}function Rue(e){R4({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function bf(e){const{isOpen:t,isDisabled:n}=P8(),{reduceMotion:r}=T8(),i=xv("chakra-accordion__icon",e.className),o=O4(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return w(ha,{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"})})}bf.displayName="AccordionIcon";var Sf=Ee(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Lue(t),l={...O4().container,overflowAnchor:"none"},d=C.exports.useMemo(()=>a,[a]);return ne.createElement(Cue,{value:d},ne.createElement(be.div,{ref:n,...o,className:xv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Sf.displayName="AccordionItem";var wf=Ee(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=T8(),{getPanelProps:s,isOpen:l}=P8(),d=s(o,n),p=xv("chakra-accordion__panel",r),g=O4();a||delete d.hidden;const m=ne.createElement(be.div,{...d,__css:g.panel,className:p});return a?m:w(tD,{in:l,...i,children:m})});wf.displayName="AccordionPanel";var N4=Ee(function({children:t,reduceMotion:n,...r},i){const o=Ai("Accordion",r),a=hn(r),{htmlProps:s,descendants:l,...d}=Pue(a),p=C.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return ne.createElement(_ue,{value:l},ne.createElement(Tue,{value:p},ne.createElement(wue,{value:o},ne.createElement(be.div,{ref:i,...s,className:xv("chakra-accordion",r.className),__css:o.root},t))))});N4.displayName="Accordion";var Oue=(...e)=>e.filter(Boolean).join(" "),Nue=cv({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),A0=Ee((e,t)=>{const n=oo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=hn(e),d=Oue("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Nue} ${o} linear infinite`,...n};return ne.createElement(be.div,{ref:t,__css:p,className:d,...l},r&&ne.createElement(be.span,{srOnly:!0},r))});A0.displayName="Spinner";var D4=(...e)=>e.filter(Boolean).join(" ");function Due(e){return w(ha,{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 zue(e){return w(ha,{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 wT(e){return w(ha,{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[Fue,Bue]=xn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[$ue,L8]=xn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),oD={info:{icon:zue,colorScheme:"blue"},warning:{icon:wT,colorScheme:"orange"},success:{icon:Due,colorScheme:"green"},error:{icon:wT,colorScheme:"red"},loading:{icon:A0,colorScheme:"blue"}};function Hue(e){return oD[e].colorScheme}function Wue(e){return oD[e].icon}var aD=Ee(function(t,n){const{status:r="info",addRole:i=!0,...o}=hn(t),a=t.colorScheme??Hue(r),s=Ai("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
|
||
|
: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;
|
||
|
}
|
||
|
}
|
||
|
`,_ce=()=>w(y4,{styles:yD}),kce=()=>w(y4,{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;
|
||
|
}
|
||
|
|
||
|
${yD}
|
||
|
`});function Lf(e,t,n,r){const i=ur(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)}}function Ece(e){return"current"in e}var xD=()=>typeof window<"u";function Pce(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var Tce=e=>xD()&&e.test(navigator.vendor),Lce=e=>xD()&&e.test(Pce()),Ace=()=>Lce(/mac|iphone|ipad|ipod/i),Ice=()=>Ace()&&Tce(/apple/i);function Mce(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Lf(i,"pointerdown",o=>{if(!Ice()||!r)return;const a=o.target,l=(n??[t]).some(d=>{const p=Ece(d)?d.current:d;return p?.contains(a)||p===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var Rce=wX?C.exports.useLayoutEffect:C.exports.useEffect;function AT(e,t=[]){const n=C.exports.useRef(e);return Rce(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Oce(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Nce(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=AT(n),a=AT(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[d,p]=Oce(r,s),g=Nce(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:CX(S.onClick,b)}),getDisclosureProps:(S={})=>({...S,hidden:!p,id:g})}}function N8(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var D8=Ee(function(t,n){const{htmlSize:r,...i}=t,o=Ai("Input",i),a=hn(i),s=A8(a),l=Rr("chakra-input",t.className);return ne.createElement(be.input,{size:r,...s,__css:o.field,ref:n,className:l})});D8.displayName="Input";D8.id="Input";var[Dce,bD]=xn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),zce=Ee(function(t,n){const r=Ai("Input",t),{children:i,className:o,...a}=hn(t),s=Rr("chakra-input__group",o),l={},d=F4(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=N8({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,Object.assign(S,l,m.props))});return ne.createElement(be.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},w(Dce,{value:r,children:g}))});zce.displayName="InputGroup";var Fce={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Bce=be("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),z8=Ee(function(t,n){const{placement:r="left",...i}=t,o=Fce[r]??{},a=bD();return w(Bce,{ref:n,...i,__css:{...a.addon,...o}})});z8.displayName="InputAddon";var SD=Ee(function(t,n){return w(z8,{ref:n,placement:"left",...t,className:Rr("chakra-input__left-addon",t.className)})});SD.displayName="InputLeftAddon";SD.id="InputLeftAddon";var wD=Ee(function(t,n){return w(z8,{ref:n,placement:"right",...t,className:Rr("chakra-input__right-addon",t.className)})});wD.displayName="InputRightAddon";wD.id="InputRightAddon";var $ce=be("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),W4=Ee(function(t,n){const{placement:
|
||
|
.`.concat(hpe,` {
|
||
|
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(e3,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(t3,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(e3," .").concat(e3,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(t3," .").concat(t3,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(ppe,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},Epe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return Cpe(i)},[i]);return w(_pe,{styles:kpe(o,!t,i,n?"":"!important")})},F6=!1;if(typeof window<"u")try{var ty=Object.defineProperty({},"passive",{get:function(){return F6=!0,!0}});window.addEventListener("test",ty,ty),window.removeEventListener("test",ty,ty)}catch{F6=!1}var op=F6?{passive:!1}:!1,Ppe=function(e){return e.tagName==="TEXTAREA"},Bz=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ppe(e)&&n[t]==="visible")},Tpe=function(e){return Bz(e,"overflowY")},Lpe=function(e){return Bz(e,"overflowX")},YT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=$z(e,n);if(r){var i=Hz(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ape=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ipe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$z=function(e,t){return e==="v"?Tpe(t):Lpe(t)},Hz=function(e,t){return e==="v"?Ape(t):Ipe(t)},Mpe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rpe=function(e,t,n,r,i){var o=Mpe(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=Hz(e,s),b=y[0],S=y[1],E=y[2],P=S-E-o*b;(b||P)&&$z(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},ny=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},XT=function(e){return[e.deltaX,e.deltaY]},QT=function(e){return e&&"current"in e?e.current:e},Ope=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Npe=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},Dpe=0,ap=[];function zpe(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(Dpe++)[0],o=C.exports.useState(function(){return Fz()})[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=w6([e.lockRef.current],(e.shards||[]).map(QT),!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=ny(S),k=n.current,L="deltaX"in S?S.deltaX:k[0]-P[0],I="deltaY"in S?S.deltaY:k[1]-P[1],O,N=S.target,D=Math.abs(L)>Math.abs(I)?"h":"v";if("touches"in S&&D==="h"&&N.type==="range")return!1;var F=YT(D,N);if(!F)return!0;if(F?O=D:(O=D==="v"?"h":"v",F=YT(D,N)),!F)return!1;if(!r.current&&"changedTouches"in S&&(L||I)&&(r.current=O),!O)return!0;var U=r.current||O;return Rpe(U,E,S,U==="h"?L:I,!0)},[]),l=C.exports.useCallback(function(S){var E=S;if(!(!ap.length||ap[ap.length-1]!==o)){var P="deltaY"in E?XT(E):ny(E),k=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&Ope(O.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(QT).filter(Boolean).filter(function(O){return O.contains(E.target)}),I=L.length>0?s(E,L[0]):!a.current.noIsolation;I&&E.cancelable&&E.preventDefault()}}},[]),d=C.exports.useCallback(function(S,E,P,k){var L={name:S,delta:E,target:P,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(I){return I!==L})},1)},[]),p=C.exports.useCallback(function(S){n.current=ny(S),r.current=void 0},[]),g=C.exports.useCallback(function(S){d(S.type,XT(S),S.target,s(S,e.lockRef.current))},[]),m=C.exports.useCallback(function(S){d(S.type,ny(S),S.target,s(S,e.lockRef.current))},[]);C.exports.useEffect(function(){return ap.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,op),document.addEventListener("touchmove",l,op),document.addEventListener("touchstart",p,op),function(){ap=ap.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,op),document.removeEventListener("touchmove",l,op),document.removeEventListener("touchstart",p,op)}},[]);var y=e.removeScrollBar,b=e.inert;return te(Fn,{children:[b?w(o,{styles:Npe(i)}):null,y?w(Epe,{gapMode:"margin"}):null]})}const Fpe=vhe(zz,zpe);var Wz=C.exports.forwardRef(function(e,t){return w(U4,{...cl({},e,{ref:t,sideCar:Fpe})})});Wz.classNames=U4.classNames;const Vz=Wz;var qf=(...e)=>e.filter(Boolean).join(" ");function _g(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Bpe=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 Bpe;function $pe(e,t){C.exports.useEffect(()=>(t&&B6.add(e),()=>{B6.remove(e)}),[t,e])}function Hpe(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]=Vpe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Wpe(d,t&&a),$pe(d,t);const b=C.exports.useRef(null),S=C.exports.useCallback(F=>{b.current=F.target},[]),E=C.exports.useCallback(F=>{F.key==="Escape"&&(F.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[L,I]=C.exports.useState(!1),O=C.exports.useCallback((F={},U=null)=>({role:"dialog",...F,ref:zn(U,d),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":L?y:void 0,onClick:_g(F.onClick,W=>W.stopPropagation())}),[y,L,g,m,P]),N=C.exports.useCallback(F=>{F.stopPropagation(),b.current===F.target&&(!B6.isTopModal(d)||(i&&n?.()
|
||
|
* @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 y0=C.exports;function Hge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wge=typeof Object.is=="function"?Object.is:Hge,Vge=y0.useState,Uge=y0.useEffect,Gge=y0.useLayoutEffect,jge=y0.useDebugValue;function qge(e,t){var n=t(),r=Vge({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Gge(function(){i.value=n,i.getSnapshot=t,mS(i)&&o({inst:i})},[e,n,t]),Uge(function(){return mS(i)&&o({inst:i}),e(function(){mS(i)&&o({inst:i})})},[e]),jge(n),n}function mS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wge(e,n)}catch{return!0}}function Kge(e,t){return t()}var Zge=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kge:qge;FF.useSyncExternalStore=y0.useSyncExternalStore!==void 0?y0.useSyncExternalStore:Zge;(function(e){e.exports=FF})(zF);var BF={exports:{}},$F={};/**
|
||
|
* @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 ex=C.exports,Yge=zF.exports;function Xge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qge=typeof Object.is=="function"?Object.is:Xge,Jge=Yge.useSyncExternalStore,eme=ex.useRef,tme=ex.useEffect,nme=ex.useMemo,rme=ex.useDebugValue;$F.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=eme(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=nme(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,Qge(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=Jge(e,o[0],o[1]);return tme(function(){a.hasValue=!0,a.value=s},[s]),rme(s),s};(function(e){e.exports=$F})(BF);function ime(e){e()}let HF=ime;const ome=e=>HF=e,ame=()=>HF,Zc=C.exports.createContext(null);function WF(){return C.exports.useContext(Zc)}const sme=()=>{throw new Error("uSES not initialized!")};let VF=sme;const lme=e=>{VF=e},ume=(e,t)=>e===t;function cme(e=Zc){const t=e===Zc?WF:()=>C.exports.useContext(e);return function(r,i=ume){const{store:o,subscription:a,getServerState:s}=t(),l=VF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const dme=cme();var fme={exports:{}},Ln={};/**
|
||
|
* @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 S7=Symbol.for("react.element"),w7=Symbol.for("react.portal"),tx=Symbol.for("react.fragment"),nx=Symbol.for("react.strict_mode"),rx=Symbol.for("react.profiler"),ix=Symbol.for("react.provider"),ox=Symbol.for("react.context"),hme=Symbol.for("react.server_context"),ax=Symbol.for("react.forward_ref"),sx=Symbol.for("react.suspense"),lx=Symbol.for("react.suspense_list"),ux=Symbol.for("react.memo"),cx=Symbol.for("react.lazy"),pme=Symbol.for("react.offscreen"),UF;UF=Symbol.for("react.module.reference");function Ua(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case S7:switch(e=e.type,e){case tx:case rx:case nx:case sx:case lx:return e;default:switch(e=e&&e.$$typeof,e){case hme:case ox:case ax:case cx:case ux:case ix:return e;default:return t}}case w7:return t}}}Ln.ContextConsumer=ox;Ln.ContextProvider=ix;Ln.Element=S7;Ln.ForwardRef=ax;Ln.Fragment=tx;Ln.Lazy=cx;Ln.Memo=ux;Ln.Portal=w7;Ln.Profiler=rx;Ln.StrictMode=nx;Ln.Suspense=sx;Ln.SuspenseList=lx;Ln.isAsyncMode=function(){return!1};Ln.isConcurrentMode=function(){return!1};Ln.isContextConsumer=function(e){return Ua(e)===ox};Ln.isContextProvider=function(e){return Ua(e)===ix};Ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===S7};Ln.isForwardRef=function(e){return Ua(e)===ax};Ln.isFragment=function(e){return Ua(e)===tx};Ln.isLazy=function(e){return Ua(e)===cx};Ln.isMemo=function(e){return Ua(e)===ux};Ln.isPortal=function(e){return Ua(e)===w7};Ln.isProfiler=function(e){return Ua(e)===rx};Ln.isStrictMode=function(e){return Ua(e)===nx};Ln.isSuspense=function(e){return Ua(e)===sx};Ln.isSuspenseList=function(e){return Ua(e)===lx};Ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tx||e===rx||e===nx||e===sx||e===lx||e===pme||typeof e=="object"&&e!==null&&(e.$$typeof===cx||e.$$typeof===ux||e.$$typeof===ix||e.$$typeof===ox||e.$$typeof===ax||e.$$typeof===UF||e.getModuleId!==void 0)};Ln.typeOf=Ua;(function(e){e.exports=Ln})(fme);function gme(){const e=ame();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 bL={notify(){},get:()=>[]};function mme(e,t){let n,r=bL;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=gme())}function d(){n&&(n(),n=void 0,r.clear(),r=bL)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:d,getListeners:()=>r};return p}const vme=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yme=vme?C.exports.useLayoutEffect:C.exports.useEffect;function xme({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=mme(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return yme(()=>{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||Zc).Provider,{value:i,children:n})}function GF(e=Zc){const t=e===Zc?WF:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const bme=GF();function Sme(e=Zc){const t=e===Zc?bme:GF(e);return function(){return t().dispatch}}const wme=Sme();lme(BF.exports.useSyncExternalStoreWithSelector);ome(El.exports.unstable_batchedUpdates);var C7="persist:",jF="persist/FLUSH",_7="persist/REHYDRATE",qF="persist/PAUSE",KF="persist/PERSIST",ZF="persist/PURGE",YF="persist/REGISTER",Cme=-1;function i3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i3=function(n){return typeof n}:i3=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,L=8,I=16,O=32,N=64,D=128,F=256,U=512,W=30,q="...",pe=800,fe=16,ye=1,Pe=2,xe=3,Y=1/0,V=9007199254740991,ae=17976931348623157e292,oe=0/0,X=4294967295,me=X-1,ve=X>>>1,Se=[["ary",D],["bind",E],["bindKey",P],["curry",L],["curryRight",I],["flip",U],["partial",O],["partialRight",N],["rearg",F]],He="[object Arguments]",je="[object Array]",ut="[object AsyncFunction]",qe="[object Boolean]",at="[object Date]",et="[object DOMException]",it="[object Error]",At="[object Function]",wt="[object GeneratorFunction]",Le="[object Map]",ot="[object Number]",Et="[object Null]",rt="[object Object]",pt="[object Promise]",Sn="[object Proxy]",bt="[object RegExp]",qt="[object Set]",wn="[object String]",pn="[object Symbol]",Me="[object Undefined]",Ze="[object WeakMap]",Kt="[object WeakSet]",Vt="[object ArrayBuffer]",_e="[object DataView]",kt="[object Float32Array]",Ne="[object Float64Array]",tt="[object Int8Array]",nn="[object Int16Array]",Mn="[object Int32Array]",Fe="[object Uint8Array]",lt="[object Uint8ClampedArray]",Xe="[object Uint16Array]",Lt="[object Uint32Array]",Zt=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,ao=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ui=/&(?:amp|lt|gt|quot|#39);/g,Ps=/[&<>"']/g,W0=RegExp(ui.source),pa=RegExp(Ps.source),rh=/<%-([\s\S]+?)%>/g,V0=/<%([\s\S]+?)%>/g,Pu=/<%=([\s\S]+?)%>/g,ih=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oh=/^\w*$/,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dd=/[\\^$.*+?()[\]{}|]/g,U0=RegExp(dd.source),Tu=/^\s+/,fd=/\s/,G0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ts=/\{\n\/\* \[wrapped with (.+)\] \*/,Lu=/,? & /,j0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,q0=/[()=,{}\[\]\/\s]/,K0=/\\(\\)?/g,Z0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ja=/\w*$/,Y0=/^[-+]0x[0-9a-f]+$/i,X0=/^0b[01]+$/i,Q0=/^\[object .+?Constructor\]$/,J0=/^0o[0-7]+$/i,e1=/^(?:0|[1-9]\d*)$/,t1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ls=/($^)/,n1=/['\n\r\u2028\u2029\\]/g,qa="\\ud800-\\udfff",Al="\\u0300-\\u036f",Il="\\ufe20-\\ufe2f",As="\\u20d0-\\u20ff",Ml=Al+Il+As,ah="\\u2700-\\u27bf",Au="a-z\\xdf-\\xf6\\xf8-\\xff",Is="\\xac\\xb1\\xd7\\xf7",Mo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cn="\\u2000-\\u206f",gn=" \\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",Ro="A-Z\\xc0-\\xd6\\xd8-\\xde",Cr="\\ufe0e\\ufe0f",Vr=Is+Mo+Cn+gn,Oo="['\u2019]",Ms="["+qa+"]",Ur="["+Vr+"]",Ka="["+Ml+"]",hd="\\d+",Rl="["+ah+"]",Za="["+Au+"]",pd="[^"+qa+Vr+hd+ah+Au+Ro+"]",ci="\\ud83c[\\udffb-\\udfff]",sh="(?:"+Ka+"|"+ci+")",lh="[^"+qa+"]",gd="(?:\\ud83c[\\udde6-\\uddff]){2}",Rs="[\\ud800-\\udbff][\\udc00-\\udfff]",so="["+Ro+"]",Os="\\u200d",Ol="(?:"+Za+"|"+pd+")",r1="(?:"+so+"|"+pd+")",Iu="(?:"+Oo+"(?:d|ll|m|re|s|t|ve))?",Mu="(?:"+Oo+"(?:D|LL|M|RE|S|T|VE))?",md=sh+"?",Ru="["+Cr+"]?",ga="(?:"+Os+"(?:"+[lh,gd,Rs].join("|")+")"+Ru+md+")*",vd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zt=Ru+md+ga,uh="(?:"+[Rl,gd,Rs].join("|")+")"+zt,Ou="(?:"+[lh+Ka+"?",Ka,gd,Rs,Ms].join("|")+")",Nu=RegExp(Oo,"g"),ch=RegExp(Ka,"g"),No=RegExp(ci+"(?="+ci+")|"+Ou+zt,"g"),$n=RegExp([so+"?"+Za+"+"+Iu+"(?="+[Ur,so,"$"].join("|")+")",r1+"+"+Mu+"(?="+[Ur,so+Ol,"$"].join("|")+")",so+"?"+Ol+"+"+Iu,so+"+"+Mu,Nl,vd,hd,uh].join("|"),"g"),yd=RegExp("["+Os+qa+Ml+Cr+"]"),dh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xd=["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"],fh=-1,rn={};
|
||
|
/* [wrapped with `+h+`] */
|
||
|
`)}function JH(u){return Tt(u)||Yd(u)||!!(g1&&u&&u[g1])}function Gl(u,h){var x=typeof u;return h=h??V,!!h&&(x=="number"||x!="symbol"&&e1.test(u))&&u>-1&&u%1==0&&u<h}function Ki(u,h,x){if(!ar(x))return!1;var A=typeof h;return(A=="number"?vo(x)&&Gl(h,x.length):A=="string"&&h in x)?os(x[h],u):!1}function zx(u,h){if(Tt(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||jo(u)?!0:oh.test(u)||!ih.test(u)||h!=null&&u in on(h)}function eW(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function Fx(u){var h=he(u),x=z[h];if(typeof x!="function"||!(h in $t.prototype))return!1;if(u===x)return!0;var A=re(x);return!!A&&u===A[0]}function tW(u){return!!Vu&&Vu in u}var nW=Yn?jl:tb;function j1(u){var h=u&&u.constructor,x=typeof h=="function"&&h.prototype||mn;return u===x}function v_(u){return u===u&&!ar(u)}function y_(u,h){return function(x){return x==null?!1:x[u]===h&&(h!==n||u in on(x))}}function rW(u){var h=g2(u,function(A){return x.size===d&&x.clear(),A}),x=h.cache;return h}function iW(u,h){var x=u[1],A=h[1],R=x|A,B=R<(E|P|D),G=A==D&&x==L||A==D&&x==F&&u[7].length<=h[8]||A==(D|F)&&h[7].length<=h[8]&&x==L;if(!(B||G))return u;A&E&&(u[2]=h[2],R|=x&E?0:k);var K=h[3];if(K){var ie=u[3];u[3]=ie?u2(ie,K,h[4]):K,u[4]=ie?Fo(u[3],p):h[4]}return K=h[5],K&&(ie=u[5],u[5]=ie?H1(ie,K,h[6]):K,u[6]=ie?Fo(u[5],p):h[6]),K=h[7],K&&(u[7]=K),A&D&&(u[8]=u[8]==null?h[8]:qr(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=R,u}function oW(u){var h=[];if(u!=null)for(var x in on(u))h.push(x);return h}function aW(u){return bh.call(u)}function x_(u,h,x){return h=gr(h===n?u.length-1:h,0),function(){for(var A=arguments,R=-1,B=gr(A.length-h,0),G=de(B);++R<B;)G[R]=A[h+R];R=-1;for(var K=de(h+1);++R<h;)K[R]=A[R];return K[h]=x(G),di(u,this,K)}}function b_(u,h){return h.length<2?u:Hs(u,Tr(h,0,-1))}function sW(u,h){for(var x=u.length,A=qr(h.length,x),R=vi(u);A--;){var B=h[A];u[A]=Gl(B,x)?R[B]:n}return u}function Bx(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var S_=C_(Vd),q1=Rd||function(u,h){return dt.setTimeout(u,h)},$x=C_(Hh);function w_(u,h,x){var A=h+"";return $x(u,QH(A,lW(ZH(A),x)))}function C_(u){var h=0,x=0;return function(){var A=m1(),R=fe-(A-x);if(x=A,R>0){if(++h>=pe)return arguments[0]}else h=0;return u.apply(n,arguments)}}function d2(u,h){var x=-1,A=u.length,R=A-1;for(h=h===n?A:h;++x<h;){var B=Hd(x,R),G=u[B];u[B]=u[x],u[x]=G}return u.length=h,u}var __=rW(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(Io,function(x,A,R,B){h.push(R?B.replace(K0,"$1"):A||x)}),h});function Xs(u){if(typeof u=="string"||jo(u))return u;var h=u+"";return h=="0"&&1/u==-Y?"-0":h}function Zd(u){if(u!=null){try{return rr.call(u)}catch{}try{return u+""}catch{}}return""}function lW(u,h){return Hn(Se,function(x){var A="_."+x[0];h&x[1]&&!Ii(u,A)&&u.push(A)}),u.sort()}function k_(u){if(u instanceof $t)return u.clone();var h=new Ui(u.__wrapped__,u.__chain__);return h.__actions__=vi(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function uW(u,h,x){(x?Ki(u,h,x):h===n)?h=1:h=gr(It(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var R=0,B=0,G=de(Od(A/h));R<A;)G[B++]=Tr(u,R,R+=h);return G}function cW(u){for(var h=-1,x=u==null?0:u.length,A=0,R=[];++h<x;){var B=u[h];B&&(R[A++]=B)}return R}function dW(){var u=arguments.length;if(!u)return[];for(var h=de(u-1),x=arguments[0],A=u;A--;)h[A-1]=arguments[A];return va(Tt(x)?vi(x):[x],Er(h,1))}var fW=vt(function(u,h){return Lr(u)?rc(u,Er(h,1,Lr,!0)):[]}),hW=vt(function(u,h){var x=wa(h);return Lr(x)&&(x=n),Lr(u)?rc(u,Er(h,1,Lr,!0),ke(x,2)):[]}),pW=vt(function(u,h){var x=wa(h);return Lr(x)&&(x=n),Lr(u)?rc(u,Er(h,1,Lr,!0),n,x):[]});function gW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:It(h),Tr(u,h<0?0:h,A)):[]}function mW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:It(h),h=A-h,Tr(u,0,h<0?0:h)):[]}function vW(u,h){return u&&u.length?cc(u,ke(h,3),!0,!0):[]}function yW(u,h){return u&&u.length?cc(u,ke(h,3),!0):[]}function xW(u,h,x,A){var R=u==null?0:u.length;return R?(x&&t
|
||
|
`;u.replace(We,function(ht,Ht,Xt,qo,Zi,Ko){return Xt||(Xt=qo),Te+=u.slice(we,Ko).replace(n1,zs),Ht&&(K=!0,Te+=`' +
|
||
|
__e(`+Ht+`) +
|
||
|
'`),Zi&&(ie=!0,Te+=`';
|
||
|
`+Zi+`;
|
||
|
__p += '`),Xt&&(Te+=`' +
|
||
|
((__t = (`+Xt+`)) == null ? '' : __t) +
|
||
|
'`),we=Ko+ht.length,ht}),Te+=`';
|
||
|
`;var ft=Qt.call(h,"variable")&&h.variable;if(!ft)Te=`with (obj) {
|
||
|
`+Te+`
|
||
|
}
|
||
|
`;else if(q0.test(ft))throw new yt(s);Te=(ie?Te.replace(Zt,""):Te).replace(Zn,"$1").replace(ao,"$1;"),Te="function("+(ft||"obj")+`) {
|
||
|
`+(ft?"":`obj || (obj = {});
|
||
|
`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
|
||
|
function print() { __p += __j.call(arguments, '') }
|
||
|
`:`;
|
||
|
`)+Te+`return __p
|
||
|
}`;var Nt=rk(function(){return Yt(B,st+"return "+Te).apply(n,G)});if(Nt.source=Te,Gx(Nt))throw Nt;return Nt}function TG(u){return vn(u).toLowerCase()}function LG(u){return vn(u).toUpperCase()}function AG(u,h,x){if(u=vn(u),u&&(x||h===n))return Vi(u);if(!u||!(h=ji(h)))return u;var A=Mi(u),R=Mi(h),B=zo(A,R),G=Ya(A,R)+1;return rs(A,B,G).join("")}function IG(u,h,x){if(u=vn(u),u&&(x||h===n))return u.slice(0,c1(u)+1);if(!u||!(h=ji(h)))return u;var A=Mi(u),R=Ya(A,Mi(h))+1;return rs(A,0,R).join("")}function MG(u,h,x){if(u=vn(u),u&&(x||h===n))return u.replace(Tu,"");if(!u||!(h=ji(h)))return u;var A=Mi(u),R=zo(A,Mi(h));return rs(A,R).join("")}function RG(u,h){var x=W,A=q;if(ar(h)){var R="separator"in h?h.separator:R;x="length"in h?It(h.length):x,A="omission"in h?ji(h.omission):A}u=vn(u);var B=u.length;if(zl(u)){var G=Mi(u);B=G.length}if(x>=B)return u;var K=x-ya(A);if(K<1)return A;var ie=G?rs(G,0,K).join(""):u.slice(0,K);if(R===n)return ie+A;if(G&&(K+=ie.length-K),jx(R)){if(u.slice(K).search(R)){var we,Ce=ie;for(R.global||(R=Ld(R.source,vn(ja.exec(R))+"g")),R.lastIndex=0;we=R.exec(Ce);)var Te=we.index;ie=ie.slice(0,Te===n?K:Te)}}else if(u.indexOf(ji(R),K)!=K){var We=ie.lastIndexOf(R);We>-1&&(ie=ie.slice(0,We))}return ie+A}function OG(u){return u=vn(u),u&&W0.test(u)?u.replace(ui,Hv):u}var NG=Ys(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),Zx=Zh("toUpperCase");function nk(u,h,x){return u=vn(u),h=x?n:h,h===n?vh(u)?Td(u):s1(u):u.match(h)||[]}var rk=vt(function(u,h){try{return di(u,n,h)}catch(x){return Gx(x)?x:new yt(x)}}),DG=Xn(function(u,h){return Hn(h,function(x){x=Xs(x),Ho(u,x,Vx(u[x],u))}),u});function zG(u){var h=u==null?0:u.length,x=ke();return u=h?On(u,function(A){if(typeof A[1]!="function")throw new fi(a);return[x(A[0]),A[1]]}):[],vt(function(A){for(var R=-1;++R<h;){var B=u[R];if(di(B[0],this,A))return di(B[1],this,A)}})}function FG(u){return Ph(ti(u,g))}function Yx(u){return function(){return u}}function BG(u,h){return u==null||u!==u?h:u}var $G=U1(),HG=U1(!0);function xo(u){return u}function Xx(u){return or(typeof u=="function"?u:ti(u,g))}function WG(u){return sc(ti(u,g))}function VG(u,h){return Vs(u,ti(h,g))}var UG=vt(function(u,h){return function(x){return ts(x,u,h)}}),GG=vt(function(u,h){return function(x){return ts(u,x,h)}});function Qx(u,h,x){var A=oi(h),R=Ih(h,A);x==null&&!(ar(h)&&(R.length||!A.length))&&(x=h,h=u,u=this,R=Ih(h,oi(h)));var B=!(ar(x)&&"chain"in x)||!!x.chain,G=jl(u);return Hn(R,function(K){var ie=h[K];u[K]=ie,G&&(u.prototype[K]=function(){var we=this.__chain__;if(B||we){var Ce=u(this.__wrapped__),Te=Ce.__actions__=vi(this.__actions__);return Te.push({func:ie,args:arguments,thisArg:u}),Ce.__chain__=we,Ce}return ie.apply(u,va([this.value()],arguments))})}),u}function jG(){return dt._===this&&(dt._=f1),this}function Jx(){}function qG(u){return u=It(u),vt(function(h){return lc(h,u)})}var KG=G1(On),ZG=G1(Rn),YG=G1(Du);function ik(u){return zx(u)?Ds(Xs(u)):ns(u)}function XG(u){return function(h){return u==null?n:Hs(u,h)}}var QG=v(),JG=v(!0);function eb(){return[]}function tb(){return!1}function ej(){return{}}function tj(){return""}function nj(){return!0}function rj(u,h){if(u=It(u),u<1||u>V)return[];var x=X,A=qr(u,X);h=ke(h),u-=X;for(var R=kd(A,h);++x<u;)h(x);return R}function ij(u){return Tt(u)?On(u,Xs):jo(u)?[u]:vi(__(vn(u)))}function oj(u){var h=++Ad;return vn(u)+h}var aj=Yh(function(u,h){return u+h},0),sj=M("ceil"),lj=Yh(function(u,h){return u/h},1),uj=M("floor");function cj(u){return u&&u.length?vr(u,xo,Mh):n}function dj(u,h){return u&&u.length?vr(u,ke(h,2),Mh):n}function fj(u){return wd(u,xo)}function hj(u,h){return wd(u,ke(h,2))}function pj(u){return u&&u.length?vr(u,xo,Ws):n}function gj(u,h){return u&&u.length?vr(u,ke(h,2),Ws):n}var mj=Yh(function(u,h){return u*h},1),vj=M("round"),yj=Yh(function(u,h){return u-h},0);function xj(u){return u&&u.length?_d(u,xo):0}function bj(u,h){return u&&u.length?_d(u,ke(h,2)):0}return z.after=WV,z.ary=N_,z.assign=LU,z.assignIn=Z_,z.assignInWith=x2,z.assignWith=AU,z.at=IU,z.before=D_,z.bind=Vx,z.bindAll=DG,z.bindKey=z_,z.castArray=eU,z.chain=M_,z.chunk=uW,z.compact
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==dp&&o!==void 0,l=a!==dp&&a!==void 0,d=this.padding(),p=o-d*2,g=a-d*2,m=0,y=this.wrap(),b=y!==MA,S=y!==rbe&&b,E=this.ellipsis();this.textArr=[],FS().font=this._getContextFont();for(var P=E?this._getTextWidth(zS):0,k=0,L=t.length;k<L;++k){var I=t[k],O=this._getTextWidth(I);if(s&&O>p)for(;I.length>0;){for(var N=0,D=I.length,F="",U=0;N<D;){var W=N+D>>>1,q=I.slice(0,W+1),pe=this._getTextWidth(q)+P;pe<=p?(N=W+1,F=q,U=pe):D=W}if(F){if(S){var fe,ye=I[F.length],Pe=ye===wy||ye===AA;Pe&&U<=p?fe=F.length:fe=Math.max(F.lastIndexOf(wy),F.lastIndexOf(AA))+1,fe>0&&(N=fe,F=F.slice(0,N),U=this._getTextWidth(F))}F=F.trimRight(),this._addTextLine(F),r=Math.max(r,U),m+=i;var xe=this._shouldHandleEllipsis(m);if(xe){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(N),I=I.trimLeft(),I.length>0&&(O=this._getTextWidth(I),O<=p)){this._addTextLine(I),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(I),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&k<L-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!==dp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),d=l!==MA;return!d||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==dp&&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+zS)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+zS)}}getStrokeScaleEnabled(){return!0}}fr.prototype._fillFunc=abe;fr.prototype._strokeFunc=sbe;fr.prototype.className=Xxe;fr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];hr(fr);j.overWriteSetter(fr,"width",e_());j.overWriteSetter(fr,"height",e_());j.addGetterSetter(fr,"fontFamily","Arial");j.addGetterSetter(fr,"fontSize",12,De());j.addGetterSetter(fr,"fontStyle",W$);j.addGetterSetter(fr,"fontVariant",W$);j.addGetterSetter(fr,"padding",0,De());j.addGetterSetter(fr,"align",H$);j.addGetterSetter(fr,"verticalAlign",Qxe);j.addGetterSetter(fr,"lineHeight",1,De());j.addGetterSetter(fr,"wrap",nbe);j.addGetterSetter(fr,"ellipsis",!1,ks());j.addGetterSetter(fr,"letterSpacing",0,De());j.addGetterSetter(fr,"text","",B0());j.addGetterSetter(fr,"textDecoration","");var ube="",U$="normal";function G$(e){e.fillText(this.partialText,0,0)}function j$(e){e.strokeText(this.partialText,0,0)}class Qr extends Ae{constructor(t){super(t),this.dummyCanvas=se.createCanvasElement(),this.dataArray=[],this.dataArray=In.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=In.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 se.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 Zbe=function(t){var n={},r=C.exports,i=Ip.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"),L=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),O=Symbol.iterator;function N(c){return c===null||typeof c!="object"?null:(c=O&&c[O]||c["@@iterator"],typeof c=="function"?c:null)}function D(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:D(c.type)||"Memo";case L:f=c._payload,c=c._init;try{return D(c(f))}catch{}}return null}function F(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 D(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 U(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 W(c){if(U(c)!==c)throw Error(a(188))}function q(c){var f=c.alternate;if(!f){if(f=U(c),f===null)throw Error(a(188));return f!==c?null:c}for(var v=c,_=f;;){var T=v.return;if(T===null)break;var M=T.alternate;if(M===null){if(_=T.return,_!==null){v=_;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===v)return W(T),c;if(M===_)return W(T),f;M=M.sibling}throw Error(a(188))}if(v.return!==_.return)v=T,_=M;else{for(var $=!1,ee=T.child;ee;){if(ee===v){$=!0,v=T,_=M;break}if(ee===_){$=!0,_=T,v=M;break}ee=ee.sibling}if(!$){for(ee=M.child;ee;){if(ee===v){$=!0,v=M,_=T;break}if(ee===_){$=!0,_=M,v=T;break}ee=ee.sibling}if(!$)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 pe(c){return c=q(c),c!==null?fe(c):null}function fe(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=fe(c);if(f!==null)return f;c=c.sibling}return null}function ye(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var f=ye(c);if(f!==null)return f}c=c.sibling}return null}var Pe=Array.isArray,xe=t.getPublicInstance,Y=t.getRootHostContext,V=t.getChildHostContext,ae=t.prepareForCommit,oe=t.resetAfterCommit,X=t.createInstance,me=t.appendInitialChild,ve=t.finalizeInitialChildren,Se=t.prepareUpdate,He=t.shouldSetTextContent,je=t.createTextInstance,ut=t.scheduleTimeout,qe=t.cancelTimeout,at=t.noTimeout,et=t.isPrimaryRenderer,it=t.supportsMutation,At=t.supp
|
||
|
`+Al+c}var As=!1;function Ml(c,f){if(!c||As)return"";As=!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(Oe){var _=Oe}Reflect.construct(c,[],f)}else{try{f.call()}catch(Oe){_=Oe}c.call(f.prototype)}else{try{throw Error()}catch(Oe){_=Oe}c()}}catch(Oe){if(Oe&&_&&typeof Oe.stack=="string"){for(var T=Oe.stack.split(`
|
||
|
`),M=_.stack.split(`
|
||
|
`),$=T.length-1,ee=M.length-1;1<=$&&0<=ee&&T[$]!==M[ee];)ee--;for(;1<=$&&0<=ee;$--,ee--)if(T[$]!==M[ee]){if($!==1||ee!==1)do if($--,ee--,0>ee||T[$]!==M[ee]){var le=`
|
||
|
`+T[$].replace(" at new "," at ");return c.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",c.displayName)),le}while(1<=$&&0<=ee);break}}}finally{As=!1,Error.prepareStackTrace=v}return(c=c?c.displayName||c.name:"")?Il(c):""}var ah=Object.prototype.hasOwnProperty,Au=[],Is=-1;function Mo(c){return{current:c}}function Cn(c){0>Is||(c.current=Au[Is],Au[Is]=null,Is--)}function gn(c,f){Is++,Au[Is]=c.current,c.current=f}var Ro={},Cr=Mo(Ro),Vr=Mo(!1),Oo=Ro;function Ms(c,f){var v=c.type.contextTypes;if(!v)return Ro;var _=c.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in v)T[M]=f[M];return _&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=T),T}function Ur(c){return c=c.childContextTypes,c!=null}function Ka(){Cn(Vr),Cn(Cr)}function hd(c,f,v){if(Cr.current!==Ro)throw Error(a(168));gn(Cr,f),gn(Vr,v)}function Rl(c,f,v){var _=c.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var T in _)if(!(T in f))throw Error(a(108,F(c)||"Unknown",T));return o({},v,_)}function Za(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Ro,Oo=Cr.current,gn(Cr,c),gn(Vr,Vr.current),!0}function pd(c,f,v){var _=c.stateNode;if(!_)throw Error(a(169));v?(c=Rl(c,f,Oo),_.__reactInternalMemoizedMergedChildContext=c,Cn(Vr),Cn(Cr),gn(Cr,c)):Cn(Vr),gn(Vr,v)}var ci=Math.clz32?Math.clz32:gd,sh=Math.log,lh=Math.LN2;function gd(c){return c>>>=0,c===0?32:31-(sh(c)/lh|0)|0}var Rs=64,so=4194304;function Os(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 Ol(c,f){var v=c.pendingLanes;if(v===0)return 0;var _=0,T=c.suspendedLanes,M=c.pingedLanes,$=v&268435455;if($!==0){var ee=$&~T;ee!==0?_=Os(ee):(M&=$,M!==0&&(_=Os(M)))}else $=v&~T,$!==0?_=Os($):M!==0&&(_=Os(M));if(_===0)return 0;if(f!==0&&f!==_&&(f&T)===0&&(T=_&-_,M=f&-f,T>=M||T===16&&(M&4194240)!==0))return f;if((_&4)!==0&&(_|=v&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=_;0<f;)v=31-ci(f),T=1<<v,_|=c[v],f&=~T;return _}function r1(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 Iu(c,f){for(var v=c.suspendedLanes,_=c.pingedLanes,T=c.expirationTimes,M=c.pendingLanes;0<M;){var $=31-ci(M),ee=1<<$,le=T[$];le===-1?((ee&v)===0||(ee&_)!==0)&&(T[$]=r1(ee,f)):le<=f&&(c.expiredLanes|=ee),M&=~ee}}function Mu(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function md(){var c=Rs;return Rs<<=1,(Rs&4194240)===0&&(Rs=64),c}function Ru(c){for(var f=[],v=0;31>v;v++)f.push(c);return f}function ga(c,f,v){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-ci(f),c[f]=v}function vd(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 T=31-ci(v),M=1<<T;f[T]=0,_[T]=-1,c[T]=-1,v&=~M}}function Nl(c,f){var v=c.entangledLanes|=f;for(c=c.entanglements;v;){var _=31-ci(v),T=1<<_;T&f|c[_]&f&&(c[_]|=f),v&=~T}}var zt=0;function uh(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var Ou=i.unstable_scheduleCallback,Nu
|
||
|
Error generating stack: `+M.message+`
|
||
|
`+M.stack}return{value:c,source:f,stack:T,digest:null}}function b1(c,f,v){return{value:c,source:null,stack:v??null,digest:f??null}}function ec(c,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var Dd=typeof WeakMap=="function"?WeakMap:Map;function S1(c,f,v){v=Xa(-1,v),v.tag=3,v.payload={element:null};var _=f.value;return v.callback=function(){$d||($d=!0,Hd=_),ec(c,f)},v}function z(c,f,v){v=Xa(-1,v),v.tag=3;var _=c.type.getDerivedStateFromError;if(typeof _=="function"){var T=f.value;v.payload=function(){return _(T)},v.callback=function(){ec(c,f)}}var M=c.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){ec(c,f),typeof _!="function"&&(Gs===null?Gs=new Set([this]):Gs.add(this));var $=f.stack;this.componentDidCatch(f.value,{componentStack:$!==null?$:""})}),v}function $l(c,f,v){var _=c.pingCache;if(_===null){_=c.pingCache=new Dd;var T=new Set;_.set(f,T)}else T=_.get(f),T===void 0&&(T=new Set,_.set(f,T));T.has(v)||(T.add(v),c=l2.bind(null,c,f,v),f.then(c,c))}function zd(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 Ui(c,f,v,_,T){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=Xa(-1,1),f.tag=2,zs(v,f,1))),v.lanes|=1),c):(c.flags|=65536,c.lanes=T,c)}var $t=s.ReactCurrentOwner,Ri=!1;function pi(c,f,v,_){f.child=c===null?Wv(f,null,v,_):Hu(f,c.child,v,_)}function Yv(c,f,v,_,T){v=v.render;var M=f.ref;return Bu(f,T),_=h1(c,f,v,_,M,T),v=Uu(),c!==null&&!Ri?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,Ja(c,f,T)):(Rn&&v&&di(f),f.flags|=1,pi(c,f,_,T),f.child)}function Bs(c,f,v,_,T){if(c===null){var M=v.type;return typeof M=="function"&&!W1(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=M,Xv(c,f,M,_,T)):(c=Gd(v.type,null,_,f,f.mode,T),c.ref=f.ref,c.return=f,f.child=c)}if(M=c.child,(c.lanes&T)===0){var $=M.memoizedProps;if(v=v.compare,v=v!==null?v:Dl,v($,_)&&c.ref===f.ref)return Ja(c,f,T)}return f.flags|=1,c=qi(M,_),c.ref=f.ref,c.return=f,f.child=c}function Xv(c,f,v,_,T){if(c!==null){var M=c.memoizedProps;if(Dl(M,_)&&c.ref===f.ref)if(Ri=!1,f.pendingProps=_=M,(c.lanes&T)!==0)(c.flags&131072)!==0&&(Ri=!0);else return f.lanes=c.lanes,Ja(c,f,T)}return w1(c,f,v,_,T)}function Qv(c,f,v){var _=f.pendingProps,T=_.children,M=c!==null?c.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},gn(Ws,Gi),Gi|=v;else{if((v&1073741824)===0)return c=M!==null?M.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,gn(Ws,Gi),Gi|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:v,gn(Ws,Gi),Gi|=_}else M!==null?(_=M.baseLanes|v,f.memoizedState=null):_=v,gn(Ws,Gi),Gi|=_;return pi(c,f,T,v),f.child}function Jv(c,f){var v=f.ref;(c===null&&v!==null||c!==null&&c.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function w1(c,f,v,_,T){var M=Ur(v)?Oo:Cr.current;return M=Ms(f,M),Bu(f,T),v=h1(c,f,v,_,M,T),_=Uu(),c!==null&&!Ri?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,Ja(c,f,T)):(Rn&&_&&di(f),f.flags|=1,pi(c,f,v,T),f.child)}function e2(c,f,v,_,T){if(Ur(v)){var M=!0;Za(f)}else M=!1;if(Bu(f,T),f.stateNode===null)ba(c,f),Bv(f,v,_),u1(f,v,_,T),_=!0;else if(c===null){var $=f.stateNode,ee=f.memoizedProps;$.props=ee;var le=$.context,Oe=v.contextType;typeof Oe=="object"&&Oe!==null?Oe=Vi(Oe):(Oe=Ur(v)?Oo:Cr.current,Oe=Ms(f,Oe));var Ye=v.getDerivedStateFromProps,Ct=typeof Ye=="function"||typeof $.getSnapshotBeforeUpdate=="function";Ct||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ee!==_||le!==Oe)&&$v(f,$,_,Oe),Ya=!1;var Ue=f.memoizedState;$.state=Ue,vh(f,_,$,T),le=f.memoizedState,ee!==_||Ue!==le||Vr.current||Ya?(typeof Ye=="function"&&(xh(f,v,Ye,_),le=f.memoizedState),(ee=Ya||Pd(f,v,ee,_,Ue,le,Oe))?(Ct||typeof $.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 xe(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:Yh,findFiberByHostInstance:c.findFiberByHostInstance||G1,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),Ft=f}catch{}c=!!f.checkDCE}}return c},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(c,f,v,_){if(!bt)throw Error(a(363));c=R1(c,f);var T=Vt(c,v,_).disconnect;return{disconnect:function(){T()}}},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=zt;try{return zt=c,f()}finally{zt=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(c,f,v,_){var T=f.current,M=ri(),$=Tr(T);return v=V1(v),f.context===null?f.context=v:f.pendingContext=v,f=Xa(M,$),f.payload={element:c},_=_===void 0?null:_,_!==null&&(f.callback=_),c=zs(T,f,$),c!==null&&(go(c,T,$,M),mh(c,T,$)),$},n};(function(e){e.exports=Zbe})(Z$);const Ybe=GC(Z$.exports);var o_={exports:{}},nh={};/**
|
||
|
* @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.
|
||
|
*/nh.ConcurrentRoot=1;nh.ContinuousEventPriority=4;nh.DefaultEventPriority=16;nh.DiscreteEventPriority=1;nh.IdleEventPriority=536870912;nh.LegacyRoot=0;(function(e){e.exports=nh})(o_);const DA={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let zA=!1,FA=!1;const a_=".react-konva-event",Xbe=`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
|
||
|
`,Qbe=`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
|
||
|
`,Jbe={};function Cx(e,t,n=Jbe){if(!zA&&"zIndex"in t&&(console.warn(Qbe),zA=!0),!FA&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(Xbe),FA=!0)}for(var o in n)if(!DA[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(!DA[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),cd(e));for(var l in y)e.on(l+a_,y[l])}function cd(e){if(!Je.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Y$={},eSe={};$f.Node.prototype._applyProps=Cx;function tSe(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),cd(e)}function nSe(e,t,n){let r=$f[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=$f.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 Cx(l,o),l}function rSe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function iSe(e,t,n){return!1}function oSe(e){return e}function aSe(){return null}function sSe(){return null}function lSe(e,t,n,r){return eSe}function uSe(){}function cSe(e){}function dSe(e,t){return!1}function fSe(){return Y$}function hSe(){return Y$}const pSe=setTimeout,gSe=clearTimeout,mSe=-1;function vSe(e,t){return!1}const ySe=!1,xSe=!0,bSe=!0;function SSe(e,t){t.parent===e?t.moveToTop():e.add(t),cd(e)}function wSe(e,t){t.parent===e?t.moveToTop():e.add(t),cd(e)}function X$(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),cd(e)}function CSe(e,t,n){X$(e,t,n)}function _Se(e,t){t.destroy(),t.off(a_),cd(e)}function kSe(e,t){t.destroy(),t.off(a_),cd(e)}function ESe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function PSe(e,t,n){}function TSe(e,t,n,r,i){Cx(e,i,r)}function LSe(e){e.hide(),cd(e)}function ASe(e){}function ISe(e,t){(t.visible==null||t.visible)&&e.show()}function MSe(e,t){}function RSe(e){}function OSe(){}const NSe=()=>o_.exports.DefaultEventPriority,DSe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:tSe,createInstance:nSe,createTextInstance:rSe,finalizeInitialChildren:iSe,getPublicInstance:oSe,prepareForCommit:aSe,preparePortalMount:sSe,prepareUpdate:lSe,resetAfterCommit:uSe,resetTextContent:cSe,shouldDeprioritizeSubtree:dSe,getRootHostContext:fSe,getChildHostContext:hSe,scheduleTimeout:pSe,cancelTimeout:gSe,noTimeout:mSe,shouldSetTextContent:vSe,isPrimaryRenderer:ySe,warnsIfNotActing:xSe,supportsMutation:bSe,appendChild:SSe,appendChildToContainer:wSe,insertBefore:X$,insertInContainerBefore:CSe,removeChild:_Se,removeChildFromContainer:kSe,commitTextUpdate:ESe,commitMount:PSe,commitUpdate:TSe,hideInstance:LSe,hideTextInstance:ASe,unhideInstance:ISe,unhideTextInstance:MSe,clearContainer:RSe,detachDeletedInstance:OSe,getCurrentEventPriority:NSe,now:Ip.exports.unstable_now,idlePriority:Ip.exports.unstable_IdlePriority,run:Ip.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var zSe=Object.defineProperty,FSe=Object.defineProperties,BSe=Object.getOwnPropertyDescriptors,BA=Object.getOwnPropertySymbols,$Se=Object.prototype.hasOwnProperty,HSe=Object.prototype.propertyIsEnumerable,$A=(e,t,n)=>t in e?zSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HA=(e,t)=>{for(var n in t||(t={}))$Se.call(t,n)&&$A(e,n,t[n]);if(BA)
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YCe(e){if(Array.isArray(e))return HC(e)}function uI(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 cI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uI(Object(n),!0).forEach(function(r){FH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rv(e,t){return JCe(e)||QCe(e,t)||BH(e,t)||XCe()}function XCe(){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 BH(e,t){if(!!e){if(typeof e=="string")return HC(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 HC(e,t)}}function HC(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 QCe(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 JCe(e){if(Array.isArray(e))return e}var e9e="file-invalid-type",t9e="file-too-large",n9e="file-too-small",r9e="too-many-files",i9e=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:e9e,message:"File type must be ".concat(n)}},dI=function(t){return{code:t9e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},fI=function(t){return{code:n9e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},o9e={code:r9e,message:"Too many files"};function $H(e,t){var n=e.type==="application/x-moz-file"||qCe(e,t);return[n,n?null:i9e(t)]}function HH(e,t,n){if(df(e.size))if(df(t)&&df(n)){if(e.size>n)return[!1,dI(n)];if(e.size<t)return[!1,fI(t)]}else{if(df(t)&&e.size<t)return[!1,fI(t)];if(df(n)&&e.size>n)return[!1,dI(n)]}return[!0,null]}function df(e){return e!=null}function a9e(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=$H(l,n),p=rv(d,1),g=p[0],m=HH(l,r,i),y=rv(m,1),b=y[0],S=s?s(l):null;return g&&b&&!S})}function z5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ly(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 hI(e){e.preventDefault()}function s9e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function l9e(e){return e.indexOf("Edge/")!==-1}function u9e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return s9e(e)||l9e(e)}function nl(){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!z5(r)&&s&&s.apply(void 0,[r].concat(o)),z5(r)})}}function c9e(){return"showOpenFilePicker"in window}function d9e(e){if(df(e)){var t=Object.entries(e).filter(function(n){var r=rv(n,2),i=r[0],o=r[1],a=!0;return WH(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(VH))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=rv(r,2),o=i[0],a=i[1];return cI(cI({},n),{},FH({},o,a))},{});return[{description:"Files",accept:t}]}return e}function f9e(e){if(df(e))return Object.entries(e).reduce(function(t,n){var r=rv(n,2),i=r[0],o=r[1];return[].concat(lI(t),[i],lI(o))},[]).filter(function(t){return WH(t)||VH(t)}).join(",")}function h9e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function p9e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function WH(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function VH(e){return/^.*\.[\w]+$/.test(e)}var g9e=["children"],m9e=["open"],v9e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w9e(e){if(Array.isArray(e))return WC(e)}function VS(e,t){return k9e(e)||_9e(e,t)||UH(e,t)||C9e()}function C9e(){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 WC(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 WC(e,t)}}function WC(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 _9e(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 k9e(e){if(Array.isArray(e))return e}function pI(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 sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(r){VC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F5(e,t){if(e==null)return{};var n=E9e(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 E9e(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 p_=C.exports.forwardRef(function(e,t){var n=e.children,r=F5(e,g9e),i=jH(r),o=i.open,a=F5(i,m9e);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),w(C.exports.Fragment,{children:n(sr(sr({},a),{},{open:o}))})});p_.displayName="Dropzone";var GH={disabled:!1,getFilesFromEvent:FCe,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};p_.defaultProps=GH;p_.propTypes={children:An.exports.func,accept:An.exports.objectOf(An.exports.arrayOf(An.exports.string)),multiple:An.exports.bool,preventDropOnDocument:An.exports.bool,noClick:An.exports.bool,noKeyboard:An.exports.bool,noDrag:An.exports.bool,noDragEventsBubbling:An.exports.bool,minSize:An.exports.number,maxSize:An.exports.number,maxFiles:An.exports.number,disabled:An.exports.bool,getFilesFromEvent:An.exports.func,onFileDialogCancel:An.exports.func,onFileDialogOpen:An.exports.func,useFsAccessApi:An.exports.bool,autoFocus:An.exports.bool,onDragEnter:An.exports.func,onDragLeave:An.exports.func,onDragOver:An.exports.func,onDrop:An.exports.func,onDropAccepted:An.exports.func,onDropRejected:An.exports.func,onError:An.exports.func,validator:An.exports.func};var UC={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function jH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=sr(sr({},GH),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,L=t.preventDropOnDocument,I=t.noClick,O=t.noKeyboard,N=t.noDrag,D=t.noDragEventsBubbling,F=t.onError,U=t.validator,W=C.exports.useMemo(function(){return f9e(n)},[n]),q=C.exports.useMemo(function(){return d9e(n)},[n]),pe=C.exports.useMemo(function(){return typeof E=="function"?E:gI},[E]),fe=C.exports.useMemo(function(){return typeof S=="function"?S:gI},[S]),ye=C.exports.useRef(null),Pe=C.exports.useRef(null),xe=C.ex
|
||
|
`+L.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(NL(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}=jH({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 L=[];for(const N of k)N.kind==="file"&&["image/png","image/jpg"].includes(N.type)&&L.push(N);if(!L.length)return;if(P.stopImmediatePropagation(),L.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const I=L[0].getAsFile();if(!I){i({description:"Unable to load file",status:"error",isClosable:!0});return}const O={file:I};["img2img","inpainting"].includes(r)&&(O.destination=r),n(NL(O))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]),w(AB.Provider,{value:S,children:te("div",{...p({style:{}}),children:[w("input",{...g()}),t,b&&te("div",{className:"dropzone-container",children:[m&&w("div",{className:"dropzone-overlay is-drag-accept",children:w(Af,{size:"lg",children:"Drop Images"})}),y&&te("div",{className:"dropzone-overlay is-drag-reject",children:[w(Af,{size:"lg",children:"Invalid Upload"}),w(Af,{size:"md",children:"Must be single JPEG or PNG image"})]}),o&&w("div",{className:"dropzone-overlay is-handling-upload",children:w(A0,{})})]})]})})},L9e=()=>{const e=ct();return w(sn,{tooltip:"Show Gallery (G)",tooltipPlacement:"top","aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(nC(!0))},children:w(pB,{})})};function A9e(e){return mt({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 I9e=jt(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:Wt.isEqual}}),M9e=()=>{const e=ct(),{shouldShowProcessButtons:t}=$e(I9e);return te("div",{className:"show-hide-button-options",children:[w(sn,{tooltip:"Show Options Panel (O)",tooltipPlacement:"top","aria-label":"Show Options Panel",onClick:()=>{e(MC(!0))},children:w(A9e,{})}),t&&te(Fn,{children:[w(yB,{iconButton:!0}),w(bB,{}),w(xB,{})]})]})};OCe();const R9e=jt([e=>e.gallery,e=>e.options,e=>e.system,Ga],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:d}=t,p=Wt.reduce(n.model_list,(y,b,S)=>(b.status==="active"&&(y=S),y),""),g=!(i||o&&!a),m=!(s||l&&!d)&&["txt2img","img2img","inpainting"].includes(r);return{modelStatusText:p,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:Wt.isEqual}}),O9e=()=>{const e=ct(),[t,n]=C.exports.useState(!1),{shouldShowGalleryButton:r,shouldShowOptionsPanelButton:i}=$e(R9e);return C.exports.useEffect(()=>{e(Q2e()),n(!0)},[e]),t?w("div",{className:"App",children:te(T9e,{children:[w(xCe,{}),te("div",{className:"app-content",children:[w(ACe,{}),w(zwe,{})]}),w("div",{className:"app-console",children:w(RCe,{})}),r&&w(L9e,{}),i&&w(M9e,{})]})}):w(NH,{})};const qH=Wme(RH);GS.createRoot(document.getElementById("root")).render(w(ne.StrictMode,{children:w(xme,{st
|