InvokeAI/frontend/dist/assets/index.4a434b56.js

624 lines
1.3 MiB
JavaScript
Raw Normal View History

var MK=Object.defineProperty;var RK=(e,t,n)=>t in e?MK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nn=(e,t,n)=>(RK(e,typeof t!="symbol"?t+"":t,n),n);function xLe(){import("data:text/javascript,")}function OK(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 Cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Zt={};/**
* @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 Jv=Symbol.for("react.element"),IK=Symbol.for("react.portal"),DK=Symbol.for("react.fragment"),NK=Symbol.for("react.strict_mode"),BK=Symbol.for("react.profiler"),zK=Symbol.for("react.provider"),FK=Symbol.for("react.context"),$K=Symbol.for("react.forward_ref"),HK=Symbol.for("react.suspense"),WK=Symbol.for("react.memo"),VK=Symbol.for("react.lazy"),UE=Symbol.iterator;function UK(e){return e===null||typeof e!="object"?null:(e=UE&&e[UE]||e["@@iterator"],typeof e=="function"?e:null)}var bO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xO=Object.assign,wO={};function g1(e,t,n){this.props=e,this.context=t,this.refs=wO,this.updater=n||bO}g1.prototype.isReactComponent={};g1.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")};g1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function CO(){}CO.prototype=g1.prototype;function s9(e,t,n){this.props=e,this.context=t,this.refs=wO,this.updater=n||bO}var l9=s9.prototype=new CO;l9.constructor=s9;xO(l9,g1.prototype);l9.isPureReactComponent=!0;var GE=Array.isArray,_O=Object.prototype.hasOwnProperty,u9={current:null},kO={key:!0,ref:!0,__self:!0,__source:!0};function EO(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)_O.call(t,r)&&!kO.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),u=0;u<s;u++)l[u]=arguments[u+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:Jv,type:e,key:o,ref:a,props:i,_owner:u9.current}}function GK(e,t){return{$$typeof:Jv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function c9(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jv}function jK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jE=/\/+/g;function cx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jK(""+e.key):t.toString(36)}function L3(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 Jv:case IK:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+cx(a,0):r,GE(i)?(n="",e!=null&&(n=e.replace(jE,"$&/")+"/"),L3(i,t,n,"",function(u){return u})):i!=null&&(c9(i)&&(i=GK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(jE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",GE(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+cx(o,s);a+=L3(o,t,n,l,i)}else if(l=UK(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+cx(o,s++),a+=L3(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 vy(e,t,n){if(e==null)return e;var r=[],i=0;return L3(e,r,"","",function(o){return t.call(n,o,i++)}),r}function YK(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 co={current:null},A3={transition:null},qK={ReactCurrentDispatcher:co,ReactCurrentBatchConfig:A3,ReactCurrentOwner:u9};Zt.Children={map:vy,forEach:function(e,t,n){vy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vy(e,function(){t++}),t},toArray:function(e){return vy(e,function(t){return t})||[]},only:function(e){if(!c9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Zt.Component=g1;Zt.Fragment=DK;Zt.Profiler=BK;Zt
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(G,ee){var le=G.length;G.push(ee);e:for(;0<le;){var me=le-1>>>1,Me=G[me];if(0<i(Me,ee))G[me]=ee,G[le]=Me,le=me;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var ee=G[0],le=G.pop();if(le!==ee){G[0]=le;e:for(var me=0,Me=G.length,Ce=Me>>>1;me<Ce;){var be=2*(me+1)-1,we=G[be],Ve=be+1,Ze=G[Ve];if(0>i(we,le))Ve<Me&&0>i(Ze,we)?(G[me]=Ze,G[Ve]=le,me=Ve):(G[me]=we,G[be]=le,me=be);else if(Ve<Me&&0>i(Ze,le))G[me]=Ze,G[Ve]=le,me=Ve;else break e}}return ee}function i(G,ee){var le=G.sortIndex-ee.sortIndex;return le!==0?le:G.id-ee.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=[],u=[],h=1,g=null,m=3,v=!1,b=!1,w=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var ee=n(u);ee!==null;){if(ee.callback===null)r(u);else if(ee.startTime<=G)r(u),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(u)}}function M(G){if(w=!1,T(G),!b)if(n(l)!==null)b=!0,J(O);else{var ee=n(u);ee!==null&&Z(M,ee.startTime-G)}}function O(G,ee){b=!1,w&&(w=!1,E(B),B=-1),v=!0;var le=m;try{for(T(ee),g=n(l);g!==null&&(!(g.expirationTime>ee)||G&&!j());){var me=g.callback;if(typeof me=="function"){g.callback=null,m=g.priorityLevel;var Me=me(g.expirationTime<=ee);ee=e.unstable_now(),typeof Me=="function"?g.callback=Me:g===n(l)&&r(l),T(ee)}else r(l);g=n(l)}if(g!==null)var Ce=!0;else{var be=n(u);be!==null&&Z(M,be.startTime-ee),Ce=!1}return Ce}finally{g=null,m=le,v=!1}}var I=!1,D=null,B=-1,$=5,H=-1;function j(){return!(e.unstable_now()-H<$)}function ne(){if(D!==null){var G=e.unstable_now();H=G;var ee=!0;try{ee=D(!0,G)}finally{ee?V():(I=!1,D=null)}}else I=!1}var V;if(typeof _=="function")V=function(){_(ne)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,te=q.port2;q.port1.onmessage=ne,V=function(){te.postMessage(null)}}else V=function(){P(ne,0)};function J(G){D=G,I||(I=!0,V())}function Z(G,ee){B=P(function(){G(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,J(O))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var ee=3;break;default:ee=m}var le=m;m=ee;try{return G()}finally{m=le}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,ee){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var le=m;m=G;try{return ee()}finally{m=le}},e.unstable_scheduleCallback=function(G,ee,le){var me=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?me+le:me):le=me,G){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=le+Me,G={id:h++,callback:ee,priorityLevel:G,startTime:le,expirationTime:Me,sortIndex:-1},le>me?(G.sortIndex=le,t(u,G),n(l)===null&&G===n(u)&&(w?(E(B),B=-1):w=!0,Z(M,le-me))):(G.sortIndex=Me,t(l,G),b||v||(b=!0,J(O))),G},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(G){var ee=m;return function(){var le=m;m=ee;try{return G.apply(this,arguments)}finally{m=le}}}})(PO);(function(e){e.exports=PO})(S0);/**
* @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 TO=C.exports,ma=S0.exports;function Ie(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 LO=new Set,uv={};function xh(e,t){Y0(e,t),Y0(e+"Capture",t)}function Y0(e,t){for(uv[e]=t,e=0;e<t.length;e++)LO.add(t[e])}var Eu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c6=Object.prototype.hasOwnProperty,KK=/^[: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]*$/,YE={},qE={};function XK(e){return c6.call(qE,e)?!0:c6.call(YE,e)?!1:KK.test(e)?qE[e]=!0:(YE[e]=!0,!1)}function ZK(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 QK(e,t,n,r){if(t===null||typeof t>"u"||ZK(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 fo(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 Ni={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ni[e]=new fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ni[t]=new fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ni[e]=new fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ni[e]=new fo(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){Ni[e]=new fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ni[e]=new fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ni[e]=new fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ni[e]=new fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ni[e]=new fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var d9=/[\-:]([a-z])/g;function f9(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
`+dx+e}var fx=!1;function hx(e,t){if(!e||fx)return"";fx=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.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{fx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pm(e):""}function JK(e){switch(e.tag){case 5:return pm(e.type);case 16:return pm("Lazy");case 13:return pm("Suspense");case 19:return pm("SuspenseList");case 0:case 2:case 15:return e=hx(e.type,!1),e;case 11:return e=hx(e.type.render,!1),e;case 1:return e=hx(e.type,!0),e;default:return""}}function p6(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 Jp:return"Fragment";case Qp:return"Portal";case d6:return"Profiler";case p9:return"StrictMode";case f6:return"Suspense";case h6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case MO:return(e.displayName||"Context")+".Consumer";case AO:return(e._context.displayName||"Context")+".Provider";case g9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m9:return t=e.displayName||null,t!==null?t:p6(e.type)||"Memo";case Hc:t=e._payload,e=e._init;try{return p6(e(t))}catch(n){}}return null}function eX(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 p6(t);case 8:return t===p9?"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 gd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function OO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tX(e){var t=OO(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 Sy(e){e._valueTracker||(e._valueTracker=tX(e))}function IO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=OO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function y5(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function g6(e,t){var n=t.checked;return gr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function XE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gd(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 DO(e,t){t=t.checked,t!=null&&h9(e,"checked",t,!1)}function m6(e,t){DO(e,t);var n=gd(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")?v6(e,t.type,n):t.hasOwnProperty("defaultValue")&&v6(e,t.type,gd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ZE(e,t,n){if(t.hasOwn
`).replace(dZ,"")}function Py(e,t,n){if(t=bP(t),bP(e)!==t&&n)throw Error(Ie(425))}function E5(){}var M6=null,R6=null;function O6(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 I6=typeof setTimeout=="function"?setTimeout:void 0,fZ=typeof clearTimeout=="function"?clearTimeout:void 0,xP=typeof Promise=="function"?Promise:void 0,hZ=typeof queueMicrotask=="function"?queueMicrotask:typeof xP<"u"?function(e){return xP.resolve(null).then(e).catch(pZ)}:I6;function pZ(e){setTimeout(function(){throw e})}function Ex(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),pv(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);pv(t)}function ad(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 wP(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 v1=Math.random().toString(36).slice(2),Sl="__reactFiber$"+v1,Sv="__reactProps$"+v1,Pu="__reactContainer$"+v1,D6="__reactEvents$"+v1,gZ="__reactListeners$"+v1,mZ="__reactHandles$"+v1;function Vf(e){var t=e[Sl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pu]||n[Sl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wP(e);e!==null;){if(n=e[Sl])return n;e=wP(e)}return t}e=n,n=e.parentNode}return null}function n2(e){return e=e[Sl]||e[Pu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function r0(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ie(33))}function W4(e){return e[Sv]||null}var N6=[],i0=-1;function _d(e){return{current:e}}function Jn(e){0>i0||(e.current=N6[i0],N6[i0]=null,i0--)}function Kn(e,t){i0++,N6[i0]=e.current,e.current=t}var md={},qi=_d(md),No=_d(!1),dh=md;function q0(e,t){var n=e.type.contextTypes;if(!n)return md;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 Bo(e){return e=e.childContextTypes,e!=null}function P5(){Jn(No),Jn(qi)}function CP(e,t,n){if(qi.current!==md)throw Error(Ie(168));Kn(qi,t),Kn(No,n)}function CI(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(Ie(108,eX(e)||"Unknown",i));return gr({},n,r)}function T5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||md,dh=qi.current,Kn(qi,e),Kn(No,No.current),!0}function _P(e,t,n){var r=e.stateNode;if(!r)throw Error(Ie(169));n?(e=CI(e,t,dh),r.__reactInternalMemoizedMergedChildContext=e,Jn(No),Jn(qi),Kn(qi,e)):Jn(No),Kn(No,n)}var vu=null,V4=!1,Px=!1;function _I(e){vu===null?vu=[e]:vu.push(e)}function vZ(e){V4=!0,_I(e)}function kd(){if(!Px&&vu!==null){Px=!0;var e=0,t=Mn;try{var n=vu;for(Mn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vu=null,V4=!1}catch(i){throw vu!==null&&(vu=vu.slice(e+1)),KO(y9,kd),i}finally{Mn=t,Px=!1}}return null}var o0=[],a0=0,L5=null,A5=0,Da=[],Na=0,fh=null,Su=1,bu="";function Rf(e,t){o0[a0++]=A5,o0[a0++]=L5,L5=e,A5=t}function kI(e,t,n){Da[Na++]=Su,Da[Na++]=bu,Da[Na++]=fh,fh=e;var r=Su;e=bu;var i=32-Es(r)-1;r&=~(1<<i),n+=1;var o=32-Es(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Su=1<<32-Es(t)+i|n<<i|r,bu=o+e}else Su=1<<o|n<<i|r,bu=e}function P9(e){e.return!==null&&(Rf(e,1),kI(e,1,0))}function T9(e){for(;e===L5;)L5=o0[--a0],o0[a0]=null,A5=o0[--a0],o0[a0]=null;for(;e===fh;)fh=Da[--Na],Da[Na]=null,bu=Da[--Na],Da[Na]=null,Su=Da[--Na],Da[Na]=null}var fa=null,da=null,ir=!1,ws=null;function EI(e,t){var n=Fa(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 Rx(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function W6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var EZ=typeof WeakMap=="function"?WeakMap:Map;function eD(e,t,n){n=wu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){z5||(z5=!0,Q6=r),W6(e,t)},n}function tD(e,t,n){n=wu(-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(){W6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){W6(e,t),typeof r!="function"&&(ld===null?ld=new Set([this]):ld.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function IP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new EZ;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=$Z.bind(null,e,t,n),t.then(e,e))}function DP(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 NP(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=wu(-1,1),t.tag=2,sd(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var PZ=Fu.ReactCurrentOwner,Io=!1;function oo(e,t,n,r){t.child=e===null?OI(t,null,n,r):X0(t,e.child,n,r)}function BP(e,t,n,r,i){n=n.render;var o=t.ref;return _0(t,i),r=F9(e,t,n,r,o,i),n=$9(),e!==null&&!Io?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lu(e,t,i)):(ir&&n&&P9(t),t.flags|=1,oo(e,t,r,i),t.child)}function zP(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!X9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,nD(e,t,o,r,i)):(e=$3(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:mv,n(a,r)&&e.ref===t.ref)return Lu(e,t,i)}return t.flags|=1,e=cd(o,r),e.ref=t.ref,e.return=t,t.child=e}function nD(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(mv(o,r)&&e.ref===t.ref)if(Io=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Io=!0);else return t.lanes=e.lanes,Lu(e,t,i)}return V6(e,t,n,r,i)}function rD(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},Kn(u0,ua),ua|=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,Kn(u0,ua),ua|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Kn(u0,ua),ua|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Kn(u0,ua),ua|=r;return oo(e,t,i,n),t.child}function iD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function V6(e,t,n,r,i){var o=Bo(n)?dh:qi.current;return o=q0(t,o),_0(t,i),n=F9(e,t,n,r,o,i),r=$9(),e!==null&&!Io?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lu(e,t,i)):(ir&&r&&P9(t),t.flags|=1,oo(e,t,n,i),t.child)}function FP(e,t,n,r,i){if(Bo(n)){var o=!0;T5(t)}else o=!1;if(_0(t,i),t.stateNode===null)B3(e,t),MI(t,n,r),H6(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ua(u):(u=Bo(n)?dh:qi.current,u=q0(t,u));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&AP(t,a,r,u),Wc=!1;var m=t.memoizedState;a.state=m,O5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||No.current||Wc?(typeof h=="function"&&($6(t,n,h,r),l=t.memoizedState),(s=Wc||LP(t,n,s,r,m,l,u))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componen
* @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 ZZ=C.exports,QZ=Symbol.for("react.element"),JZ=Symbol.for("react.fragment"),eQ=Object.prototype.hasOwnProperty,tQ=ZZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nQ={key:!0,ref:!0,__self:!0,__source:!0};function PD(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)eQ.call(t,r)&&!nQ.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:QZ,type:e,key:o,ref:a,props:i,_owner:tQ.current}}eS.Fragment=JZ;eS.jsx=PD;eS.jsxs=PD;(function(e){e.exports=eS})(J4);const Rn=J4.exports.Fragment,S=J4.exports.jsx,X=J4.exports.jsxs;var t8=C.exports.createContext({});t8.displayName="ColorModeContext";function i2(){const e=C.exports.useContext(t8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Dy={light:"chakra-ui-light",dark:"chakra-ui-dark"};function rQ(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==null||i()},setClassName(r){document.body.classList.add(r?Dy.dark:Dy.light),document.body.classList.remove(r?Dy.light:Dy.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o: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 iQ="chakra-ui-color-mode";function oQ(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch(r){}return n||t},set(t){try{localStorage.setItem(e,t)}catch(n){}}}}var aQ=oQ(iQ),JP=()=>{};function eT(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function TD(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=aQ}=e,s=i==="dark"?"dark":"light",[l,u]=C.exports.useState(()=>eT(a,s)),[h,g]=C.exports.useState(()=>eT(a)),{getSystemTheme:m,setClassName:v,setDataset:b,addListener:w}=C.exports.useMemo(()=>rQ({preventTransition:o}),[o]),P=i==="system"&&!l?h:l,E=C.exports.useCallback(M=>{const O=M==="system"?m():M;u(O),v(O==="dark"),b(O),a.set(O)},[a,m,v,b]);Ts(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const M=a.get();if(M){E(M);return}if(i==="system"){E("system");return}E(s)},[a,s,i,E]);const _=C.exports.useCallback(()=>{E(P==="dark"?"light":"dark")},[P,E]);C.exports.useEffect(()=>{if(!!r)return w(E)},[r,w,E]);const T=C.exports.useMemo(()=>({colorMode:t!=null?t:P,toggleColorMode:t?JP:_,setColorMode:t?JP:E,forced:t!==void 0}),[P,_,E,t]);return S(t8.Provider,{value:T,children:n})}TD.displayName="ColorModeProvider";var nC={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",w="[object Map]",P="[object Number]",E="[object Null]",_="[object Object]",T="[object Proxy]",M="[object RegExp]",O="[object Set]",I="[object String]",D="[object Undefined]",B="[object WeakMap]",$="[object ArrayBuffer]",H="[object DataView]",j="[object Float32Array]",ne="[object Float64Array]",V="[object Int8Array]",q="[object Int16Array]",te="[object Int32Array]",J="[object Uint8Array]",Z="
* 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 xi=typeof Symbol=="function"&&Symbol.for,s8=xi?Symbol.for("react.element"):60103,l8=xi?Symbol.for("react.portal"):60106,aS=xi?Symbol.for("react.fragment"):60107,sS=xi?Symbol.for("react.strict_mode"):60108,lS=xi?Symbol.for("react.profiler"):60114,uS=xi?Symbol.for("react.provider"):60109,cS=xi?Symbol.for("react.context"):60110,u8=xi?Symbol.for("react.async_mode"):60111,dS=xi?Symbol.for("react.concurrent_mode"):60111,fS=xi?Symbol.for("react.forward_ref"):60112,hS=xi?Symbol.for("react.suspense"):60113,ZJ=xi?Symbol.for("react.suspense_list"):60120,pS=xi?Symbol.for("react.memo"):60115,gS=xi?Symbol.for("react.lazy"):60116,QJ=xi?Symbol.for("react.block"):60121,JJ=xi?Symbol.for("react.fundamental"):60117,eee=xi?Symbol.for("react.responder"):60118,tee=xi?Symbol.for("react.scope"):60119;function xa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s8:switch(e=e.type,e){case u8:case dS:case aS:case lS:case sS:case hS:return e;default:switch(e=e&&e.$$typeof,e){case cS:case fS:case gS:case pS:case uS:return e;default:return t}}case l8:return t}}}function qD(e){return xa(e)===dS}In.AsyncMode=u8;In.ConcurrentMode=dS;In.ContextConsumer=cS;In.ContextProvider=uS;In.Element=s8;In.ForwardRef=fS;In.Fragment=aS;In.Lazy=gS;In.Memo=pS;In.Portal=l8;In.Profiler=lS;In.StrictMode=sS;In.Suspense=hS;In.isAsyncMode=function(e){return qD(e)||xa(e)===u8};In.isConcurrentMode=qD;In.isContextConsumer=function(e){return xa(e)===cS};In.isContextProvider=function(e){return xa(e)===uS};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s8};In.isForwardRef=function(e){return xa(e)===fS};In.isFragment=function(e){return xa(e)===aS};In.isLazy=function(e){return xa(e)===gS};In.isMemo=function(e){return xa(e)===pS};In.isPortal=function(e){return xa(e)===l8};In.isProfiler=function(e){return xa(e)===lS};In.isStrictMode=function(e){return xa(e)===sS};In.isSuspense=function(e){return xa(e)===hS};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===aS||e===dS||e===lS||e===sS||e===hS||e===ZJ||typeof e=="object"&&e!==null&&(e.$$typeof===gS||e.$$typeof===pS||e.$$typeof===uS||e.$$typeof===cS||e.$$typeof===fS||e.$$typeof===JJ||e.$$typeof===eee||e.$$typeof===tee||e.$$typeof===QJ)};In.typeOf=xa;(function(e){e.exports=In})(YD);var KD=YD.exports,nee={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ree={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},XD={};XD[KD.ForwardRef]=nee;XD[KD.Memo]=ree;var iee=!0;function oee(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var ZD=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||iee===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},QD=function(t,n,r){ZD(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 aee(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 see={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,strokeOpacit
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function Rte(e){const t=dN().toHexString();return!e||Lte(e)?t:e.string&&e.colors?Ite(e.string,e.colors):e.string&&!e.colors?Ote(e.string):e.colors&&!e.string?Dte(e.colors):t}function Ote(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 Ite(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 Dte(e){return e[Math.floor(Math.random()*e.length)]}function St(e,t){return n=>n.colorMode==="dark"?t:e}function f8(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Nte(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function gN(e){return Nte(e)&&e.reference?e.reference:String(e)}var yS=(e,...t)=>t.map(gN).join(` ${e} `).replace(/calc/g,""),kT=(...e)=>`calc(${yS("+",...e)})`,ET=(...e)=>`calc(${yS("-",...e)})`,gC=(...e)=>`calc(${yS("*",...e)})`,PT=(...e)=>`calc(${yS("/",...e)})`,TT=e=>{const t=gN(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:gC(t,-1)},yu=Object.assign(e=>({add:(...t)=>yu(kT(e,...t)),subtract:(...t)=>yu(ET(e,...t)),multiply:(...t)=>yu(gC(e,...t)),divide:(...t)=>yu(PT(e,...t)),negate:()=>yu(TT(e)),toString:()=>e.toString()}),{add:kT,subtract:ET,multiply:gC,divide:PT,negate:TT});function Bte(e){return!Number.isInteger(parseFloat(e.toString()))}function zte(e,t="-"){return e.replace(/\s+/g,t)}function mN(e){const t=zte(e.toString());return t.includes("\\.")?e:Bte(e)?t.replace(".","\\."):e}function Fte(e,t=""){return[t,mN(e)].filter(Boolean).join("-")}function $te(e,t){return`var(${mN(e)}${t?`, ${t}`:""})`}function Hte(e,t=""){return`--${Fte(e,t)}`}function li(e,t){const n=Hte(e,t==null?void 0:t.prefix);return{variable:n,reference:$te(n,Wte(t==null?void 0:t.fallback))}}function Wte(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:Vte,defineMultiStyleConfig:Ute}=er($ee.keys),Gte={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},jte={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Yte={pt:"2",px:"4",pb:"5"},qte={fontSize:"1.25em"},Kte=Vte({container:Gte,button:jte,panel:Yte,icon:qte}),Xte=Ute({baseStyle:Kte}),{definePartsStyle:s2,defineMultiStyleConfig:Zte}=er(Hee.keys),pa=Fn("alert-fg"),Au=Fn("alert-bg"),Qte=s2({container:{bg:Au.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:pa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:pa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function h8(e){const{theme:t,colorScheme:n}=e,r=t1(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var Jte=s2(e=>{const{colorScheme:t}=e,n=h8(e);return{container:{[pa.variable]:`colors.${t}.500`,[Au.variable]:n.light,_dark:{[pa.variable]:`colors.${t}.200`,[Au.variable]:n.dark}}}}),ene=s2(e=>{const{colorScheme:t}=e,n=h8(e);return{container:{[pa.variable]:`colors.${t}.500`,[Au.variable]:n.light,_dark:{[pa.variable]:`colors.${t}.200`,[Au.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:pa.reference}}}),tne=s2(e=>{const{colorScheme:t}=e,n=h8(e);return{container:{[pa.variable]:`colors.${t}.500`,[Au.variable]:n.light,_dark:{[pa.variable]:`colors.${t}.200`,[Au.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:pa.reference}}}),nne=s2(e=>{const{colorScheme:t}=e;return{container:{[pa.variable]:"colors.white",[Au.variable]:`colors.${t}.500`,_dark:{[pa.variable]:"colors.gray.900",[Au.variable]:`colors.${t}.200`},color:pa.reference}}}),rne={subtle:Jte,"left-accent":ene,"top-accent":tne,solid:nne},ine=Zte({baseStyle:Qte,variants:rne,defaultProps:{variant:"subtle",colorScheme:"blue"}}),vN={px:"1px",.
to right,
transparent 0%,
${ao(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Jie={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},eoe=e=>({bg:St("gray.100","whiteAlpha.300")(e)}),toe=e=>({transitionProperty:"common",transitionDuration:"slow",...Qie(e)}),noe=Sm(e=>({label:Jie,filledTrack:toe(e),track:eoe(e)})),roe={xs:Sm({track:{h:"1"}}),sm:Sm({track:{h:"2"}}),md:Sm({track:{h:"3"}}),lg:Sm({track:{h:"4"}})},ioe=Zie({sizes:roe,baseStyle:noe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ooe,definePartsStyle:j3}=er(nte.keys),aoe=e=>{var t;const n=(t=uo(j5.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},soe=j3(e=>{var t,n,r,i;return{label:(n=(t=j5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=j5).baseStyle)==null?void 0:i.call(r,e).container,control:aoe(e)}}),loe={md:j3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:j3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:j3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},uoe=ooe({baseStyle:soe,sizes:loe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:coe,definePartsStyle:doe}=er(rte.keys),Wy=Fn("select-bg"),OT,foe={...(OT=Sn.baseStyle)==null?void 0:OT.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Wy.reference,[Wy.variable]:"colors.white",_dark:{[Wy.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Wy.reference}},hoe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},poe=doe({field:foe,icon:hoe}),Vy={paddingInlineEnd:"8"},IT,DT,NT,BT,zT,FT,$T,HT,goe={lg:{...(IT=Sn.sizes)==null?void 0:IT.lg,field:{...(DT=Sn.sizes)==null?void 0:DT.lg.field,...Vy}},md:{...(NT=Sn.sizes)==null?void 0:NT.md,field:{...(BT=Sn.sizes)==null?void 0:BT.md.field,...Vy}},sm:{...(zT=Sn.sizes)==null?void 0:zT.sm,field:{...(FT=Sn.sizes)==null?void 0:FT.sm.field,...Vy}},xs:{...($T=Sn.sizes)==null?void 0:$T.xs,field:{...(HT=Sn.sizes)==null?void 0:HT.xs.field,...Vy},icon:{insetEnd:"1"}}},moe=coe({baseStyle:poe,sizes:goe,variants:Sn.variants,defaultProps:Sn.defaultProps}),Kx=Fn("skeleton-start-color"),Xx=Fn("skeleton-end-color"),voe={[Kx.variable]:"colors.gray.100",[Xx.variable]:"colors.gray.400",_dark:{[Kx.variable]:"colors.gray.800",[Xx.variable]:"colors.gray.600"},background:Kx.reference,borderColor:Xx.reference,opacity:.7,borderRadius:"sm"},yoe={baseStyle:voe},Zx=Fn("skip-link-bg"),Soe={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Zx.variable]:"colors.white",_dark:{[Zx.variable]:"colors.gray.700"},bg:Zx.reference}},boe={baseStyle:Soe},{defineMultiStyleConfig:xoe,definePartsStyle:SS}=er(ite.keys),Rv=Fn("slider-thumb-size"),Ov=Fn("slider-track-size"),jc=Fn("slider-bg"),woe=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...f8({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Coe=e=>({...f8({orientation:e.orientation,horizontal:{h:Ov.reference},vertical:{w:Ov.reference}}),overflow:"hidden",borderRadius:"sm",[jc.variable]:"colors.gray.200",_dark:{[jc.variable]:"colors.whiteAlpha.200"},_disabled:{[jc.variable]:"colors.gray.300",_dark:{[jc.variable]:"colors.whiteAlpha.300"}},bg:jc.reference}),_oe=e=>{const{orientation:t}=e;return{...f8({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:Rv.reference,h:Rv.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"}}},
[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(u)}},[t]),S(ffe,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const dw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=_S(pfe),l=C.exports.useId(),u=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:h=>{s.set(h,!0);for(const g of s.values())if(!g)return;r&&r()},register:h=>(s.set(h,!1),()=>s.delete(h))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((h,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S(hfe,{isPresent:n,children:e})),S(b1.Provider,{value:u,children:e})};function pfe(){return new Map}const Kp=e=>e.key||"";function gfe(e,t){e.forEach(n=>{const r=Kp(n);t.set(r,n)})}function mfe(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const Pd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",PB(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=dfe();const l=C.exports.useContext(v8).forceRender;l&&(s=l);const u=tz(),h=mfe(e);let g=h;const m=new Set,v=C.exports.useRef(g),b=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(K5(()=>{w.current=!1,gfe(h,b),v.current=g}),E8(()=>{w.current=!0,b.clear(),m.clear()}),w.current)return S(Rn,{children:g.map(T=>S(dw,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:T},Kp(T)))});g=[...g];const P=v.current.map(Kp),E=h.map(Kp),_=P.length;for(let T=0;T<_;T++){const M=P[T];E.indexOf(M)===-1&&m.add(M)}return a==="wait"&&m.size&&(g=[]),m.forEach(T=>{if(E.indexOf(T)!==-1)return;const M=b.get(T);if(!M)return;const O=P.indexOf(T),I=()=>{b.delete(T),m.delete(T);const D=v.current.findIndex(B=>B.key===T);if(v.current.splice(D,1),!m.size){if(v.current=h,u.current===!1)return;s(),r&&r()}};g.splice(O,0,S(dw,{isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:a,children:M},Kp(M)))}),g=g.map(T=>{const M=T.key;return m.has(M)?T:S(dw,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:T},Kp(T))}),EB!=="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.`),S(Rn,{children:m.size?g:g.map(T=>C.exports.cloneElement(T))})};var bl=function(){return bl=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},bl.apply(this,arguments)};function nz(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 w1(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(h){try{u(r.next(h))}catch(g){a(g)}}function l(h){try{u(r.throw(h))}catch(g){a(g)}}function u(h){h.done?o(h.value):i(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function C1(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(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[
`})}function $fe(e){MS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Zf(e){const{isOpen:t,isDisabled:n}=W8(),{reduceMotion:r}=V8(),i=h2("chakra-accordion__icon",e.className),o=RS(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return S(wa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:S("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Zf.displayName="AccordionIcon";var Qf=Pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Nfe(t),l={...RS().container,overflowAnchor:"none"},u=C.exports.useMemo(()=>a,[a]);return se.createElement(Afe,{value:u},se.createElement(xe.div,{ref:n,...o,className:h2("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Qf.displayName="AccordionItem";var Jf=Pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=V8(),{getPanelProps:s,isOpen:l}=W8(),u=s(o,n),h=h2("chakra-accordion__panel",r),g=RS();a||delete u.hidden;const m=se.createElement(xe.div,{...u,__css:g.panel,className:h});return a?m:S(rz,{in:l,...i,children:m})});Jf.displayName="AccordionPanel";var OS=Pe(function({children:t,reduceMotion:n,...r},i){const o=Bi("Accordion",r),a=bn(r),{htmlProps:s,descendants:l,...u}=Ife(a),h=C.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return se.createElement(Mfe,{value:l},se.createElement(Dfe,{value:h},se.createElement(Lfe,{value:o},se.createElement(xe.div,{ref:i,...s,className:h2("chakra-accordion",r.className),__css:o.root},t))))});OS.displayName="Accordion";var Hfe=(...e)=>e.filter(Boolean).join(" "),Wfe=Ed({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),p2=Pe((e,t)=>{const n=ho("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=bn(e),u=Hfe("chakra-spinner",s),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Wfe} ${o} linear infinite`,...n};return se.createElement(xe.div,{ref:t,__css:h,className:u,...l},r&&se.createElement(xe.span,{srOnly:!0},r))});p2.displayName="Spinner";var IS=(...e)=>e.filter(Boolean).join(" ");function Vfe(e){return S(wa,{viewBox:"0 0 24 24",...e,children:S("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 Ufe(e){return S(wa,{viewBox:"0 0 24 24",...e,children:S("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 sA(e){return S(wa,{viewBox:"0 0 24 24",...e,children:S("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[Gfe,jfe]=Pn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Yfe,U8]=Pn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),sz={info:{icon:Ufe,colorScheme:"blue"},warning:{icon:sA,colorScheme:"orange"},success:{icon:Vfe,colorScheme:"green"},error:{icon:sA,colorScheme:"red"},loading:{icon:p2,colorScheme:"blue"}};function qfe(e){return sz[e].colorScheme}function Kfe(e){return sz[e].icon}var lz=Pe(function(t,n){var u;const{status:r="info",addRole:i=!0,...o}=bn(t),a=(u=t.colorScheme)!=null?u:qfe(r),s=Bi("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",positio
: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: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,Ohe=()=>S(mS,{styles:yz}),Ihe=()=>S(mS,{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;
}
${yz}
`});function ah(e,t,n,r){const i=hr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e!=null?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!=null?e:document;o==null||o.removeEventListener(t,i,r)}}function Dhe(e){return"current"in e}var Sz=()=>typeof window<"u";function Nhe(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var Bhe=e=>Sz()&&e.test(navigator.vendor),zhe=e=>Sz()&&e.test(Nhe()),Fhe=()=>zhe(/mac|iphone|ipad|ipod/i),$he=()=>Fhe()&&Bhe(/apple/i);function Hhe(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a;var o;return(a=(o=t.current)==null?void 0:o.ownerDocument)!=null?a:document};ah(i,"pointerdown",o=>{if(!$he()||!r)return;const a=o.target,l=(n!=null?n:[t]).some(u=>{const h=Dhe(u)?u.current:u;return(h==null?void 0:h.contains(a))||h===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var Whe=Aee?C.exports.useLayoutEffect:C.exports.useEffect;function gA(e,t=[]){const n=C.exports.useRef(e);return Whe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Vhe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Uhe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Hv(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=gA(n),a=gA(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[u,h]=Vhe(r,s),g=Uhe(i,"disclosure"),m=C.exports.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),v=C.exports.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),b=C.exports.useCallback(()=>{(h?m:v)()},[h,v,m]);return{isOpen:!!h,onOpen:v,onClose:m,onToggle:b,isControlled:u,getButtonProps:(w={})=>({...w,"aria-expanded":h,"aria-controls":g,onClick:Mee(w.onClick,b)}),getDisclosureProps:(w={})=>({...w,hidden:!h,id:g})}}function X8(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Z8=Pe(function(t,n){const{htmlSize:r,...i}=t,o=Bi("Input",i),a=bn(i),s=G8(a),l=Fr("chakra-input",t.className);return se.createElement(xe.input,{size:r,...s,__css:o.field,ref:n,className:l})});Z8.displayName="Input";Z8.id="Input";var[Ghe,bz]=Pn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),jhe=Pe(function(t,n){const r=Bi("Input",t),{children:i,className:o,...a}=bn(t),s=Fr("chakra-input__group",o),l={},u=NS(i),h=r.field;u.forEach(m=>{var v,b;!r||(h&&m.type.id==="InputLeftElement"&&(l.paddingStart=(v=h.height)!=null?v:h.h),h&&m.type.id==="InputRightElement"&&(l.paddingEnd=(b=h.height)!=null?b:h.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=u.map(m=>{var v,b;const w=X8({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,w):C.exports.cloneElement(m,Object.assign(w,l,m.props))});return se.createElement(xe.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},S(Ghe,{value:r,children:g}))});jhe.displayName="InputGroup";var Yhe={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},qhe=xe("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Q8=Pe(function(t,n){var s;const{placement:r="left",...i}=t,o=(s=Yhe[r])!=null?s:{},a=bz();return S(qhe,{ref:n,...i,__css:{...a.addon,...o}})});Q8.displayName="InputAddon";var xz=Pe(function(t,n){return S(Q8,{ref:n,placement:"left",...t,className:Fr("chakra-input__left-addon",t.className)})});xz.displayName="InputLeftAddon";xz.id="InputLeftAddon";var wz=Pe(function(t,n){return S(Q8,{ref:n,placement:"right",...t,className:Fr("chakra-input__right-addon",t.className)})});wz.displayName="InputRightAddon";wz.id="InputRightAddon";var Khe=xe("
.`.concat(xge,` {
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(J3,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(e5,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(J3," .").concat(J3,` {
right: 0 `).concat(r,`;
}
.`).concat(e5," .").concat(e5,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(wge,": ").concat(s,`px;
}
`)},Ige=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return Mge(i)},[i]);return S(Rge,{styles:Oge(o,!t,i,n?"":"!important")})},n7=!1;if(typeof window<"u")try{var t3=Object.defineProperty({},"passive",{get:function(){return n7=!0,!0}});window.addEventListener("test",t3,t3),window.removeEventListener("test",t3,t3)}catch(e){n7=!1}var $p=n7?{passive:!1}:!1,Dge=function(e){return e.tagName==="TEXTAREA"},WF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Dge(e)&&n[t]==="visible")},Nge=function(e){return WF(e,"overflowY")},Bge=function(e){return WF(e,"overflowX")},DA=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=VF(e,n);if(r){var i=UF(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},zge=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Fge=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},VF=function(e,t){return e==="v"?Nge(t):Bge(t)},UF=function(e,t){return e==="v"?zge(t):Fge(t)},$ge=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hge=function(e,t,n,r,i){var o=$ge(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,h=a>0,g=0,m=0;do{var v=UF(e,s),b=v[0],w=v[1],P=v[2],E=w-P-o*b;(b||E)&&VF(e,s)&&(g+=E,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(h&&(i&&g===0||!i&&a>g)||!h&&(i&&m===0||!i&&-a>m))&&(u=!0),u},n3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},NA=function(e){return[e.deltaX,e.deltaY]},BA=function(e){return e&&"current"in e?e.current:e},Wge=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vge=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Uge=0,Hp=[];function Gge(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(Uge++)[0],o=C.exports.useState(function(){return HF()})[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 w=$C([e.lockRef.current],(e.shards||[]).map(BA),!0).filter(Boolean);return w.forEach(function(P){return P.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(w,P){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var E=n3(w),_=n.current,T="deltaX"in w?w.deltaX:_[0]-E[0],M="deltaY"in w?w.deltaY:_[1]-E[1],O,I=w.target,D=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in w&&D==="h"&&I.type==="range")return!1;var B=DA(D,I);if(!B)return!0;if(B?O=D:(O=D==="v"?"h":"v",B=DA(D,I)),!B)return!1;if(!r.current&&"changedTouches"in w&&(T||M)&&(r.current=O),!O)return!0;var $=r.current||O;return Hge($,P,w,$==="h"?T:M,!0)},[]),l=C.exports.useCallback(function(w){var P=w;if(!(!Hp.length||Hp[Hp.length-1]!==o)){var E="deltaY"in P?NA(P):n3(P),_=t.current.filter(function(O){return O.name===P.type&&O.target===P.target&&Wge(O.delta,E)})[0];if(_&&_.should){P.cancelable&&P.preventDefault();return}if(!_){var T=(a.current.shards||[]).map(BA).filter(Boolean).filter(function(O){return O.contains(P.target)}),M=T.length>0?s(P,T[0]):!a.current.noIsolation;M&&P.cancelable&&P.preventDefault()}}},[]),u=C.exports.useCallback(function(w,P,E,_){var T={name:w,delta:P,target:E,should:_};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),h=C.exports.useCallback(function(w){n.current=n3(w),r.current=void 0},[]),g=C.exports.useCallback(function(w){u(w.type,NA(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){u(w.type,n3(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return Hp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,$p),document.addEventListener("touchmove",l,$p),document.addEventListener("touchstart",h,$p),function(){Hp=Hp.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,$p),document.removeEventListener("touchmove",l,$p),document.removeEventListener("touchstart",h,$p)}},[]);var v=e.removeScrollBar,b=e.inert;return X(Rn,{children:[b?S(o,{styles:Vge(i)}):null,v?S(Ige,{gapMode:"margin"}):null]})}const jge=k1e($F,Gge);var GF=C.exports.forwardRef(function(e,t){return S(WS,{...bl({},e,{ref:t,sideCar:jge})})});GF.classNames=WS.classNames;const jF=GF;var Ph=(...e)=>e.filter(Boolean).join(" ");function bm(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var Yge=class{constructor(){nn(this,"modals");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}},r7=new Yge;function qge(e,t){C.exports.useEffect(()=>(t&&r7.add(e),()=>{r7.remove(e)}),[t,e])}function Kge(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=C.exports.useRef(null),h=C.exports.useRef(null),[g,m,v]=Zge(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Xge(u,t&&a),qge(u,t);const b=C.exports.useRef(null),w=C.exports.useCallback(B=>{b.current=B.target},[]),P=C.exports.useCallback(B=>{B.key==="Escape"&&(B.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[E,_]=C.exports.useState(!1),[T,M]=C.exports.useState(!1),O=C.exports.useCallback((B={},$=null)=>({role:"dialog",...B,ref:Vn($,u),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":T?v:void 0,onClick:bm(B.onClick,H=>H.stopPropagation())}),[v,T,g,m,E]),I=C.exports.useCallback(B=>{B.stopPropagation(),b.cu
* @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 c1=C.exports;function nye(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rye=typeof Object.is=="function"?Object.is:nye,iye=c1.useState,oye=c1.useEffect,aye=c1.useLayoutEffect,sye=c1.useDebugValue;function lye(e,t){var n=t(),r=iye({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return aye(function(){i.value=n,i.getSnapshot=t,Dw(i)&&o({inst:i})},[e,n,t]),oye(function(){return Dw(i)&&o({inst:i}),e(function(){Dw(i)&&o({inst:i})})},[e]),sye(n),n}function Dw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rye(e,n)}catch(r){return!0}}function uye(e,t){return t()}var cye=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uye:lye;F$.useSyncExternalStore=c1.useSyncExternalStore!==void 0?c1.useSyncExternalStore:cye;(function(e){e.exports=F$})(z$);var $$={exports:{}},H$={};/**
* @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 XS=C.exports,dye=z$.exports;function fye(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hye=typeof Object.is=="function"?Object.is:fye,pye=dye.useSyncExternalStore,gye=XS.useRef,mye=XS.useEffect,vye=XS.useMemo,yye=XS.useDebugValue;H$.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=gye(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=vye(function(){function l(v){if(!u){if(u=!0,h=v,v=r(v),i!==void 0&&a.hasValue){var b=a.value;if(i(b,v))return g=b}return g=v}if(b=g,hye(h,v))return b;var w=r(v);return i!==void 0&&i(b,w)?b:(h=v,g=w)}var u=!1,h,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=pye(e,o[0],o[1]);return mye(function(){a.hasValue=!0,a.value=s},[s]),yye(s),s};(function(e){e.exports=H$})($$);function Sye(e){e()}let W$=Sye;const bye=e=>W$=e,xye=()=>W$,xd=C.exports.createContext(null);function V$(){return C.exports.useContext(xd)}const wye=()=>{throw new Error("uSES not initialized!")};let U$=wye;const Cye=e=>{U$=e},_ye=(e,t)=>e===t;function kye(e=xd){const t=e===xd?V$:()=>C.exports.useContext(e);return function(r,i=_ye){const{store:o,subscription:a,getServerState:s}=t(),l=U$(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const Eye=kye();var Pye={exports:{}},Dn={};/**
* @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 W_=Symbol.for("react.element"),V_=Symbol.for("react.portal"),ZS=Symbol.for("react.fragment"),QS=Symbol.for("react.strict_mode"),JS=Symbol.for("react.profiler"),eb=Symbol.for("react.provider"),tb=Symbol.for("react.context"),Tye=Symbol.for("react.server_context"),nb=Symbol.for("react.forward_ref"),rb=Symbol.for("react.suspense"),ib=Symbol.for("react.suspense_list"),ob=Symbol.for("react.memo"),ab=Symbol.for("react.lazy"),Lye=Symbol.for("react.offscreen"),G$;G$=Symbol.for("react.module.reference");function Qa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case W_:switch(e=e.type,e){case ZS:case JS:case QS:case rb:case ib:return e;default:switch(e=e&&e.$$typeof,e){case Tye:case tb:case nb:case ab:case ob:case eb:return e;default:return t}}case V_:return t}}}Dn.ContextConsumer=tb;Dn.ContextProvider=eb;Dn.Element=W_;Dn.ForwardRef=nb;Dn.Fragment=ZS;Dn.Lazy=ab;Dn.Memo=ob;Dn.Portal=V_;Dn.Profiler=JS;Dn.StrictMode=QS;Dn.Suspense=rb;Dn.SuspenseList=ib;Dn.isAsyncMode=function(){return!1};Dn.isConcurrentMode=function(){return!1};Dn.isContextConsumer=function(e){return Qa(e)===tb};Dn.isContextProvider=function(e){return Qa(e)===eb};Dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===W_};Dn.isForwardRef=function(e){return Qa(e)===nb};Dn.isFragment=function(e){return Qa(e)===ZS};Dn.isLazy=function(e){return Qa(e)===ab};Dn.isMemo=function(e){return Qa(e)===ob};Dn.isPortal=function(e){return Qa(e)===V_};Dn.isProfiler=function(e){return Qa(e)===JS};Dn.isStrictMode=function(e){return Qa(e)===QS};Dn.isSuspense=function(e){return Qa(e)===rb};Dn.isSuspenseList=function(e){return Qa(e)===ib};Dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ZS||e===JS||e===QS||e===rb||e===ib||e===Lye||typeof e=="object"&&e!==null&&(e.$$typeof===ab||e.$$typeof===ob||e.$$typeof===eb||e.$$typeof===tb||e.$$typeof===nb||e.$$typeof===G$||e.getModuleId!==void 0)};Dn.typeOf=Qa;(function(e){e.exports=Dn})(Pye);function Aye(){const e=xye();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 sM={notify(){},get:()=>[]};function Mye(e,t){let n,r=sM;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){h.onStateChange&&h.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=Aye())}function u(){n&&(n(),n=void 0,r.clear(),r=sM)}const h={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return h}const Rye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oye=Rye?C.exports.useLayoutEffect:C.exports.useEffect;function Iye({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=Mye(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return Oye(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),S((t||xd).Provider,{value:i,children:n})}function j$(e=xd){const t=e===xd?V$:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Dye=j$();function Nye(e=xd){const t=e===xd?Dye:j$(e);return function(){return t().dispatch}}const Bye=Nye();Cye($$.exports.useSyncExternalStoreWithSelector);bye(Wl.exports.unstable_batchedUpdates);var U_="persist:",Y$="persist/FLUSH",G_="persist/REHYDRATE",q$="persist/PAUSE",K$="persist/PERSIST",X$="persist/PURGE",Z$="persist/REGISTER",zye=-1;function r5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r5=function(n){return typeof n}:r5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
`;if(!(0,e.isString)(q)||q.length<1)throw new Error(`${Z} Name (key) of reducer is required. ${G}`);if(!V||!V.length)return;const{duplicates:ee,subsets:le}=(0,e.findDuplicatesAndSubsets)(V);if(ee.length>1)throw new Error(`${Z} Duplicated paths.
${JSON.stringify(ee)}
${G}`);if(le.length>1)throw new Error(`${Z} You are trying to persist an entire property and also some of its subset.
${JSON.stringify(le)}
${G}`)};e.singleTransformValidator=B;const $=function(V){if(!(0,e.isArray)(V))return;const q=(V==null?void 0:V.map(te=>te.deepPersistKey).filter(te=>te))||[];if(q.length){const te=q.filter((J,Z)=>q.indexOf(J)!==Z);if(te.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
Duplicates: ${JSON.stringify(te)}`)}};e.transformsValidator=$;const H=function({whitelist:V,blacklist:q}){if(V&&V.length&&q&&q.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(V){const{duplicates:te,subsets:J}=(0,e.findDuplicatesAndSubsets)(V);(0,e.throwError)({duplicates:te,subsets:J},"whitelist")}if(q){const{duplicates:te,subsets:J}=(0,e.findDuplicatesAndSubsets)(q);(0,e.throwError)({duplicates:te,subsets:J},"blacklist")}};e.configValidator=H;const j=function({duplicates:V,subsets:q},te){if(V.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${te}.
${JSON.stringify(V)}`);if(q.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${te}. You must decide if you want to persist an entire path or its specific subset.
${JSON.stringify(q)}`)};e.throwError=j;const ne=function(V){return(0,e.isArray)(V)?V.filter(e.unique).reduce((q,te)=>{const J=te.split("."),Z=J[0],G=J.slice(1).join(".")||void 0,ee=q.filter(me=>Object.keys(me)[0]===Z)[0],le=ee?Object.values(ee)[0]:void 0;return ee||q.push({[Z]:G?[G]:void 0}),ee&&!le&&G&&(ee[Z]=[G]),ee&&le&&G&&le.push(G),q},[]):[]};e.getRootKeysGroup=ne})(tH);(function(e){var t=Cs&&Cs.__rest||function(g,m){var v={};for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&m.indexOf(b)<0&&(v[b]=g[b]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(g);w<b.length;w++)m.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(g,b[w])&&(v[b[w]]=g[b[w]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=tH,r=Sh,i=q_,o=function(g,m,v={}){const b=v.whitelist||null,w=v.blacklist||null;function P(E){return!!(b&&b.indexOf(E)===-1||w&&w.indexOf(E)!==-1)}return{in:(E,_,T)=>!P(_)&&g?g(E,_,T):E,out:(E,_,T)=>!P(_)&&m?m(E,_,T):E,deepPersistKey:b&&b[0]}},a=(g,m,v,{debug:b,whitelist:w,blacklist:P,transforms:E})=>{if(w||P)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(E);const _=(0,n.cloneDeep)(v);let T=g;if(T&&(0,n.isObjectLike)(T)){const M=(0,n.difference)(m,v);(0,n.isEmpty)(M)||(T=(0,n.mergeDeep)(g,M,{preserveUndefined:!0}),b&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(M)}`)),Object.keys(T).forEach(O=>{if(O!=="_persist"){if((0,n.isObjectLike)(_[O])){_[O]=(0,n.mergeDeep)(_[O],T[O]);return}_[O]=T[O]}})}return b&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),_};e.autoMergeDeep=a;const s=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let b=null,w;return m.forEach(P=>{const E=P.split(".");w=(0,n.path)(v,E),typeof w>"u"&&(0,n.isIntegerString)(E[E.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const _=(0,n.assocPath)(E,w),T=(0,n.isArray)(_)?[]:{};b=(0,n.mergeDeep)(b||T,_,{preservePlaceholder:!0})}),b||v},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.WHITELIST),{whitelist:[g]}));e.createWhitelist=s;const l=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.BLACKLIST),o(v=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(P=>P.split(".")).reduce((P,E)=>(0,n.dissocPath)(P,E),b)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[g]}));e.createBlacklist=l;const u=function(g,m){return m.map(v=>{const b=Object.keys(v)[0],w=v[b];return g===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,w):(0,e.createBlacklist)(b,w)})};e.getTransforms=u;const h=g=>{var{key:m,whitelist:v,blacklist:b,storage:w,transforms:P,rootReducer:E}=g,_=t(g,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:b});const T=(0,n.getRootKeysGroup)(v),M=(0,n.getRootKeysGroup)(b),O=Object.keys(E(void 0,{type:""})),I=T.map(ne=>Object.keys(ne)[0]),D=M.map(ne=>Object.keys(ne)[0]),B=O.filter(ne=>I.indexOf(ne)===-1&&D.indexOf(ne)===-1),$=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),H=(0,e.getTransforms)(i.ConfigType.BLACKLIST,M),j=(0,n.isArray)(v)?B.map(ne=>(0,e.createBlacklist)(ne)):[];return Object.assign(Object.assign({},_),{key:m,storage:w,transforms:[...$,...H,...j,...P||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=h})(eH);const o5=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),p3e=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return K_(r)?r:!1},K_=e=>Boolean(typeof e=="string"?p3e(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),o=!isNaN(parseInt(r.toString(
* @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__",u=500,h="__lodash_placeholder__",g=1,m=2,v=4,b=1,w=2,P=1,E=2,_=4,T=8,M=16,O=32,I=64,D=128,B=256,$=512,H=30,j="...",ne=800,V=16,q=1,te=2,J=3,Z=1/0,G=9007199254740991,ee=17976931348623157e292,le=0/0,me=4294967295,Me=me-1,Ce=me>>>1,be=[["ary",D],["bind",P],["bindKey",E],["curry",T],["curryRight",M],["flip",$],["partial",O],["partialRight",I],["rearg",B]],we="[object Arguments]",Ve="[object Array]",Ze="[object AsyncFunction]",it="[object Boolean]",pt="[object Date]",kt="[object DOMException]",gt="[object Error]",ht="[object Function]",vt="[object GeneratorFunction]",Te="[object Map]",ot="[object Number]",Mt="[object Null]",Je="[object Object]",mt="[object Promise]",un="[object Proxy]",Et="[object RegExp]",jt="[object Set]",cn="[object String]",xn="[object Symbol]",Oe="[object Undefined]",et="[object WeakMap]",Jt="[object WeakSet]",Kt="[object ArrayBuffer]",Ee="[object DataView]",xt="[object Float32Array]",Wt="[object Float64Array]",ze="[object Int8Array]",lt="[object Int16Array]",dn="[object Int32Array]",Ne="[object Uint8Array]",ct="[object Uint8ClampedArray]",tt="[object Uint16Array]",Nt="[object Uint32Array]",an=/\b__p \+= '';/g,Sr=/\b(__p \+=) '' \+/g,or=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$r=/&(?:amp|lt|gt|quot|#39);/g,Wo=/[&<>"']/g,D1=RegExp($r.source),Ca=RegExp(Wo.source),zh=/<%-([\s\S]+?)%>/g,N1=/<%([\s\S]+?)%>/g,Yu=/<%=([\s\S]+?)%>/g,Fh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$h=/^\w*$/,Vo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fd=/[\\^$.*+?()[\]{}|]/g,B1=RegExp(Fd.source),qu=/^\s+/,$d=/\s/,z1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zs=/\{\n\/\* \[wrapped with (.+)\] \*/,Ku=/,? & /,F1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$1=/[()=,{}\[\]\/\s]/,H1=/\\(\\)?/g,W1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ja=/\w*$/,V1=/^[-+]0x[0-9a-f]+$/i,U1=/^0b[01]+$/i,G1=/^\[object .+?Constructor\]$/,j1=/^0o[0-7]+$/i,Y1=/^(?:0|[1-9]\d*)$/,q1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fs=/($^)/,K1=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",jl="\\u0300-\\u036f",Yl="\\ufe20-\\ufe2f",$s="\\u20d0-\\u20ff",ql=jl+Yl+$s,Hh="\\u2700-\\u27bf",Xu="a-z\\xdf-\\xf6\\xf8-\\xff",Hs="\\xac\\xb1\\xd7\\xf7",Uo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ln="\\u2000-\\u206f",wn=" \\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",Go="A-Z\\xc0-\\xd6\\xd8-\\xde",Lr="\\ufe0e\\ufe0f",Xr=Hs+Uo+Ln+wn,jo="['\u2019]",Ws="["+es+"]",Zr="["+Xr+"]",ts="["+ql+"]",Hd="\\d+",Kl="["+Hh+"]",ns="["+Xu+"]",Wd="[^"+es+Xr+Hd+Hh+Xu+Go+"]",wi="\\ud83c[\\udffb-\\udfff]",Wh="(?:"+ts+"|"+wi+")",Vh="[^"+es+"]",Vd="(?:\\ud83c[\\udde6-\\uddff]){2}",Vs="[\\ud800-\\udbff][\\udc00-\\udfff]",po="["+Go+"]",Us="\\u200d",Xl="(?:"+ns+"|"+Wd+")",X1="(?:"+po+"|"+Wd+")",Zu="(?:"+jo+"(?:d|ll|m|re|s|t|ve))?",Qu="(?:"+jo+"(?:D|LL|M|RE|S|T|VE))?",Ud=Wh+"?",Ju="["+Lr+"]?",_a="(?:"+Us+"(?:"+[Vh,Vd,Vs].join("|")+")"+Ju+Ud+")*",Gd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vt=Ju+Ud+_a,Uh="(?:"+[Kl,Vd,Vs].join("|")+")"+Vt,ec="(?:"+[Vh+ts+"?",ts,Vd,Vs,Ws].join("|")+")",tc=RegExp(jo,"g"),Gh=RegExp(ts,"g"),Yo=RegExp(wi+"(?="+wi+")|"+ec+Vt,"g"),Gn=RegExp([po+"?"+ns+"+"+Zu+"(?="+[Zr,po,"$"].join("|")+")",X1+"+"+Qu+"(?="+[Zr,po+Xl,"$"].join("|")+")",po+"?"+Xl+"+"+Zu,po+"+"+Qu,Zl,Gd,Hd,Uh].join("|"),"g"),jd=RegExp("["+Us+es+ql+Lr+"]"),jh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yd=["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"],Yh=-1,fn={};
/* [wrapped with `+p+`] */
`)}function uG(c){return Dt(c)||kf(c)||!!(lg&&c&&c[lg])}function su(c,p){var x=typeof c;return p=p==null?G:p,!!p&&(x=="number"||x!="symbol"&&Y1.test(c))&&c>-1&&c%1==0&&c<p}function to(c,p,x){if(!ur(x))return!1;var A=typeof p;return(A=="number"?Co(x)&&su(p,x.length):A=="string"&&p in x)?fs(x[p],c):!1}function Gb(c,p){if(Dt(c))return!1;var x=typeof c;return x=="number"||x=="symbol"||x=="boolean"||c==null||ia(c)?!0:$h.test(c)||!Fh.test(c)||p!=null&&c in hn(p)}function cG(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function jb(c){var p=ve(c),x=z[p];if(typeof x!="function"||!(p in Yt.prototype))return!1;if(c===x)return!0;var A=ue(x);return!!A&&c===A[0]}function dG(c){return!!uc&&uc in c}var fG=tr?lu:ux;function Fg(c){var p=c&&c.constructor,x=typeof p=="function"&&p.prototype||Cn;return c===x}function tE(c){return c===c&&!ur(c)}function nE(c,p){return function(x){return x==null?!1:x[c]===p&&(p!==n||c in hn(x))}}function hG(c){var p=fy(c,function(A){return x.size===u&&x.clear(),A}),x=p.cache;return p}function pG(c,p){var x=c[1],A=p[1],N=x|A,F=N<(P|E|D),Y=A==D&&x==T||A==D&&x==B&&c[7].length<=p[8]||A==(D|B)&&p[7].length<=p[8]&&x==T;if(!(F||Y))return c;A&P&&(c[2]=p[2],N|=x&P?0:_);var Q=p[3];if(Q){var ce=c[3];c[3]=ce?ay(ce,Q,p[4]):Q,c[4]=ce?Xo(c[3],h):p[4]}return Q=p[5],Q&&(ce=c[5],c[5]=ce?Ig(ce,Q,p[6]):Q,c[6]=ce?Xo(c[5],h):p[6]),Q=p[7],Q&&(c[7]=Q),A&D&&(c[8]=c[8]==null?p[8]:ei(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=N,c}function gG(c){var p=[];if(c!=null)for(var x in hn(c))p.push(x);return p}function mG(c){return tp.call(c)}function rE(c,p,x){return p=xr(p===n?c.length-1:p,0),function(){for(var A=arguments,N=-1,F=xr(A.length-p,0),Y=ge(F);++N<F;)Y[N]=A[p+N];N=-1;for(var Q=ge(p+1);++N<p;)Q[N]=A[N];return Q[p]=x(Y),Ci(c,this,Q)}}function iE(c,p){return p.length<2?c:Zs(c,Ir(p,0,-1))}function vG(c,p){for(var x=c.length,A=ei(p.length,x),N=Li(c);A--;){var F=p[A];c[A]=su(F,x)?N[F]:n}return c}function Yb(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var oE=sE(yf),$g=lf||function(c,p){return yt.setTimeout(c,p)},qb=sE(wp);function aE(c,p,x){var A=p+"";return qb(c,lG(A,yG(oG(A),x)))}function sE(c){var p=0,x=0;return function(){var A=ug(),N=V-(A-x);if(x=A,N>0){if(++p>=ne)return arguments[0]}else p=0;return c.apply(n,arguments)}}function ly(c,p){var x=-1,A=c.length,N=A-1;for(p=p===n?A:p;++x<p;){var F=mf(x,N),Y=c[F];c[F]=c[x],c[x]=Y}return c.length=p,c}var lE=hG(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(Vo,function(x,A,N,F){p.push(N?F.replace(H1,"$1"):A||x)}),p});function sl(c){if(typeof c=="string"||ia(c))return c;var p=c+"";return p=="0"&&1/c==-Z?"-0":p}function _f(c){if(c!=null){try{return ar.call(c)}catch(p){}try{return c+""}catch(p){}}return""}function yG(c,p){return jn(be,function(x){var A="_."+x[0];p&x[1]&&!zi(c,A)&&c.push(A)}),c.sort()}function uE(c){if(c instanceof Yt)return c.clone();var p=new Zi(c.__wrapped__,c.__chain__);return p.__actions__=Li(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function SG(c,p,x){(x?to(c,p,x):p===n)?p=1:p=xr(Bt(p),0);var A=c==null?0:c.length;if(!A||p<1)return[];for(var N=0,F=0,Y=ge(uf(A/p));N<A;)Y[F++]=Ir(c,N,N+=p);return Y}function bG(c){for(var p=-1,x=c==null?0:c.length,A=0,N=[];++p<x;){var F=c[p];F&&(N[A++]=F)}return N}function xG(){var c=arguments.length;if(!c)return[];for(var p=ge(c-1),x=arguments[0],A=c;A--;)p[A-1]=arguments[A];return Ea(Dt(x)?Li(x):[x],Rr(p,1))}var wG=Pt(function(c,p){return Dr(c)?Cc(c,Rr(p,1,Dr,!0)):[]}),CG=Pt(function(c,p){var x=Ma(p);return Dr(x)&&(x=n),Dr(c)?Cc(c,Rr(p,1,Dr,!0),Le(x,2)):[]}),_G=Pt(function(c,p){var x=Ma(p);return Dr(x)&&(x=n),Dr(c)?Cc(c,Rr(p,1,Dr,!0),n,x):[]});function kG(c,p,x){var A=c==null?0:c.length;return A?(p=x||p===n?1:Bt(p),Ir(c,p<0?0:p,A)):[]}function EG(c,p,x){var A=c==null?0:c.length;return A?(p=x||p===n?1:Bt(p),p=A-p,Ir(c,0,p<0?0:p)):[]}function PG(c,p){return c&&c.length?Ac(c,Le(p,3),!0,!0):[]}function TG(c,p){return c&&c.length?Ac(c,Le(p,3),!0):[]}function LG(c,p,x,A){var N=c==null?0:c.length;re
`;c.replace(je,function(Ct,qt,tn,oa,no,aa){return tn||(tn=oa),Ae+=c.slice(_e,aa).replace(K1,Ys),qt&&(Q=!0,Ae+=`' +
__e(`+qt+`) +
'`),no&&(ce=!0,Ae+=`';
`+no+`;
__p += '`),tn&&(Ae+=`' +
((__t = (`+tn+`)) == null ? '' : __t) +
'`),_e=aa+Ct.length,Ct}),Ae+=`';
`;var wt=rn.call(p,"variable")&&p.variable;if(!wt)Ae=`with (obj) {
`+Ae+`
}
`;else if($1.test(wt))throw new Tt(s);Ae=(ce?Ae.replace(an,""):Ae).replace(Sr,"$1").replace(or,"$1;"),Ae="function("+(wt||"obj")+`) {
`+(wt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ae+`return __p
2022-12-13 02:00:52 +00:00
}`;var Ht=HE(function(){return en(F,ft+"return "+Ae).apply(n,Y)});if(Ht.source=Ae,Jb(Ht))throw Ht;return Ht}function zq(c){return _n(c).toLowerCase()}function Fq(c){return _n(c).toUpperCase()}function $q(c,p,x){if(c=_n(c),c&&(x||p===n))return Xi(c);if(!c||!(p=Ji(p)))return c;var A=Fi(c),N=Fi(p),F=Ko(A,N),Y=rs(A,N)+1;return cs(A,F,Y).join("")}function Hq(c,p,x){if(c=_n(c),c&&(x||p===n))return c.slice(0,rg(c)+1);if(!c||!(p=Ji(p)))return c;var A=Fi(c),N=rs(A,Fi(p))+1;return cs(A,0,N).join("")}function Wq(c,p,x){if(c=_n(c),c&&(x||p===n))return c.replace(qu,"");if(!c||!(p=Ji(p)))return c;var A=Fi(c),N=Ko(A,Fi(p));return cs(A,N).join("")}function Vq(c,p){var x=H,A=j;if(ur(p)){var N="separator"in p?p.separator:N;x="length"in p?Bt(p.length):x,A="omission"in p?Ji(p.omission):A}c=_n(c);var F=c.length;if(Jl(c)){var Y=Fi(c);F=Y.length}if(x>=F)return c;var Q=x-Pa(A);if(Q<1)return A;var ce=Y?cs(Y,0,Q).join(""):c.slice(0,Q);if(N===n)return ce+A;if(Y&&(Q+=ce.length-Q),ex(N)){if(c.slice(Q).search(N)){var _e,ke=ce;for(N.global||(N=rf(N.source,_n(Ja.exec(N))+"g")),N.lastIndex=0;_e=N.exec(ke);)var Ae=_e.index;ce=ce.slice(0,Ae===n?Q:Ae)}}else if(c.indexOf(Ji(N),Q)!=Q){var je=ce.lastIndexOf(N);je>-1&&(ce=ce.slice(0,je))}return ce+A}function Uq(c){return c=_n(c),c&&D1.test(c)?c.replace($r,z2):c}var Gq=al(function(c,p,x){return c+(x?" ":"")+p.toUpperCase()}),rx=Ap("toUpperCase");function $E(c,p,x){return c=_n(c),p=x?n:p,p===n?Qh(c)?nf(c):eg(c):c.match(p)||[]}var HE=Pt(function(c,p){try{return Ci(c,n,p)}catch(x){return Jb(x)?x:new Tt(x)}}),jq=nr(function(c,p){return jn(p,function(x){x=sl(x),Jo(c,x,Zb(c[x],c))}),c});function Yq(c){var p=c==null?0:c.length,x=Le();return c=p?Hn(c,function(A){if(typeof A[1]!="function")throw new _i(a);return[x(A[0]),A[1]]}):[],Pt(function(A){for(var N=-1;++N<p;){var F=c[N];if(Ci(F[0],this,A))return Ci(F[1],this,A)}})}function qq(c){return lp(fi(c,g))}function ix(c){return function(){return c}}function Kq(c,p){return c==null||c!==c?p:c}var Xq=Bg(),Zq=Bg(!0);function ko(c){return c}function ox(c){return lr(typeof c=="function"?c:fi(c,g))}function Qq(c){return Pc(fi(c,g))}function Jq(c,p){return Js(c,fi(p,g))}var eK=Pt(function(c,p){return function(x){return ls(x,c,p)}}),tK=Pt(function(c,p){return function(x){return ls(c,x,p)}});function ax(c,p,x){var A=mi(p),N=fp(p,A);x==null&&!(ur(p)&&(N.length||!A.length))&&(x=p,p=c,c=this,N=fp(p,mi(p)));var F=!(ur(x)&&"chain"in x)||!!x.chain,Y=lu(c);return jn(N,function(Q){var ce=p[Q];c[Q]=ce,Y&&(c.prototype[Q]=function(){var _e=this.__chain__;if(F||_e){var ke=c(this.__wrapped__),Ae=ke.__actions__=Li(this.__actions__);return Ae.push({func:ce,args:arguments,thisArg:c}),ke.__chain__=_e,ke}return ce.apply(c,Ea([this.value()],arguments))})}),c}function nK(){return yt._===this&&(yt._=og),this}function sx(){}function rK(c){return c=Bt(c),Pt(function(p){return Tc(p,c)})}var iK=zg(Hn),oK=zg($n),aK=zg(nc);function WE(c){return Gb(c)?js(sl(c)):us(c)}function sK(c){return function(p){return c==null?n:Zs(c,p)}}var lK=y(),uK=y(!0);function lx(){return[]}function ux(){return!1}function cK(){return{}}function dK(){return""}function fK(){return!0}function hK(c,p){if(c=Bt(c),c<1||c>G)return[];var x=me,A=ei(c,me);p=Le(p),c-=me;for(var N=Jd(A,p);++x<c;)p(x);return N}function pK(c){return Dt(c)?Hn(c,sl):ia(c)?[c]:Li(lE(_n(c)))}function gK(c){var p=++of;return _n(c)+p}var mK=Mp(function(c,p){return c+p},0),vK=R("ceil"),yK=Mp(function(c,p){return c/p},1),SK=R("floor");function bK(c){return c&&c.length?Cr(c,ko,hp):n}function xK(c,p){return c&&c.length?Cr(c,Le(p,2),hp):n}function wK(c){return Xd(c,ko)}function CK(c,p){return Xd(c,Le(p,2))}function _K(c){return c&&c.length?Cr(c,ko,Qs):n}function kK(c,p){return c&&c.length?Cr(c,Le(p,2),Qs):n}var EK=Mp(function(c,p){return c*p},1),PK=R("round"),TK=Mp(function(c,p){return c-p},0);function LK(c){return c&&c.length?Qd(c,ko):0}function AK(c,p){return c&&c.length?Qd(c,Le(p,2)):0}return z.after=Qj,z.ary=SE,z.assign=FY,z.assignIn=OE,z.assignInWith=my,z.assignWith=$Y,z.at=HY,z.before=bE,z.bind=Zb,z.bindAll=jq,z.bindKey=xE,z.castArray=cY,z.chain=mE,z.chunk=SG,z.comp
position: relative;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
overflow: hidden;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
margin: 0;
padding: 0;
}
.transform-component-module_content__2jYgh {
display: flex;
flex-wrap: wrap;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
margin: 0;
padding: 0;
transform-origin: 0% 0%;
}
.transform-component-module_content__2jYgh img {
pointer-events: none;
}
`,oR={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};XCe(ZCe);var QCe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=C.exports.useContext(lV).setComponents,u=C.exports.useRef(null),h=C.exports.useRef(null);return C.exports.useEffect(function(){var g=u.current,m=h.current;g!==null&&m!==null&&l&&l(g,m)},[]),S("div",{ref:u,className:"react-transform-wrapper "+oR.wrapper+" "+r,style:a,children:S("div",{ref:h,className:"react-transform-component "+oR.content+" "+o,style:s,children:t})})};function JCe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=C.exports.useState(0),[a,s]=C.exports.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},h=()=>{s(!a)};return S(KCe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:g,zoomOut:m,resetTransform:v,centerView:b})=>X(Rn,{children:[X("div",{className:"lightbox-image-options",children:[S(Xe,{icon:S(v4e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>g(),fontSize:20}),S(Xe,{icon:S(y4e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),S(Xe,{icon:S(g4e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),S(Xe,{icon:S(m4e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),S(Xe,{icon:S(J4e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:h,fontSize:20}),S(Xe,{icon:S(nk,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{v(),o(0),s(!1)},fontSize:20})]}),S(QCe,{wrapperStyle:{width:"100%",height:"100%"},children:S("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>b(1,0,"easeOut")})})]})})}function e7e(){const e=De(),t=ye(m=>m.options.isLightBoxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=ye(mW),[a,s]=C.exports.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},h=()=>{e(Pk())},g=()=>{e(Ek())};return Ue("Esc",()=>{t&&e(_u(!1))},[t]),X("div",{className:"lightbox-container",children:[S(Xe,{icon:S(p4e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(_u(!1))},fontSize:20}),X("div",{className:"lightbox-display-container",children:[X("div",{className:"lightbox-preview-wrapper",children:[S(cW,{}),!r&&X("div",{className:"current-image-next-prev-buttons",children:[S("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&S(Ya,{"aria-label":"Previous image",icon:S(PH,{className:"next-prev-button"}),variant:"unstyled",onClick:h})}),S("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&S(Ya,{"aria-label":"Next image",icon:S(TH,{className:"next-prev-button"}),variant:"unstyled",onClick:g})})]}),n&&X(Rn,{children:[S(JCe,{image:n.url,styleClass:"lightbox-image"}),r&&S(gW,{image:n})]})]}),S(KW,{})]})]})}const t7e=rt([sk],e=>{const{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}=e;return{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),n7e=()=>{const e=De(),{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}=ye(t7e);return X(bt,{direction:"column",gap:"1rem",children:[S(Do,{sliderMarkRightOffset:-6,label:"Seam Size",min:1,max:256,sliderNumberInputProps:{max:512},value:t,onChange:o=>{e(WR(o))},handleReset:()=>e(WR(96)),withInput:!0,withSliderMarks:!0,withReset:!0}),S(Do,{sliderMarkRightOffset:-4,label:"Seam Blur",min:0,max:64,sliderNumberInputProps:{max:512},value:n,onChange:o=>{e(HR(o))},handleReset:()=>{e(HR(16))},withInput:!0,withSliderMarks:!0,withReset:!0}),S(Do,{sliderMarkRightOffset:-2,label:"Seam Strength",min:.01,max:.99,step:.01,value:r,onChange:o=>{e(UR(o))},handleReset:()=>{e(UR(.7))},withInput:!0,withSliderMarks:!0,withReset:!0}),S(Do,{sliderMarkRightOffset:-4,label:"Seam Steps",min:1,max:32,sliderNumberInputProps:{max:100},value:i,onChange:o=>{e(VR(o))},handleReset:()=>{e(VR(10))},withInput:!0,withSliderMark
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==qp&&o!==void 0,l=a!==qp&&a!==void 0,u=this.padding(),h=o-u*2,g=a-u*2,m=0,v=this.wrap(),b=v!==_R,w=v!==L9e&&b,P=this.ellipsis();this.textArr=[],i6().font=this._getContextFont();for(var E=P?this._getTextWidth(r6):0,_=0,T=t.length;_<T;++_){var M=t[_],O=this._getTextWidth(M);if(s&&O>h)for(;M.length>0;){for(var I=0,D=M.length,B="",$=0;I<D;){var H=I+D>>>1,j=M.slice(0,H+1),ne=this._getTextWidth(j)+E;ne<=h?(I=H+1,B=j,$=ne):D=H}if(B){if(w){var V,q=M[B.length],te=q===w3||q===wR;te&&$<=h?V=B.length:V=Math.max(B.lastIndexOf(w3),B.lastIndexOf(wR))+1,V>0&&(I=V,B=B.slice(0,I),$=this._getTextWidth(B))}B=B.trimRight(),this._addTextLine(B),r=Math.max(r,$),m+=i;var J=this._shouldHandleEllipsis(m);if(J){this._tryToAddEllipsisToLastLine();break}if(M=M.slice(I),M=M.trimLeft(),M.length>0&&(O=this._getTextWidth(M),O<=h)){this._addTextLine(M),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(M),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&_<T-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==qp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==_R;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==qp&&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+r6)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+r6)}}getStrokeScaleEnabled(){return!0}}mr.prototype._fillFunc=R9e;mr.prototype._strokeFunc=O9e;mr.prototype.className=C9e;mr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];yr(mr);K.overWriteSetter(mr,"width",Bk());K.overWriteSetter(mr,"height",Bk());K.addGetterSetter(mr,"fontFamily","Arial");K.addGetterSetter(mr,"fontSize",12,$e());K.addGetterSetter(mr,"fontStyle",DV);K.addGetterSetter(mr,"fontVariant",DV);K.addGetterSetter(mr,"padding",0,$e());K.addGetterSetter(mr,"align",IV);K.addGetterSetter(mr,"verticalAlign",_9e);K.addGetterSetter(mr,"lineHeight",1,$e());K.addGetterSetter(mr,"wrap",T9e);K.addGetterSetter(mr,"ellipsis",!1,Ns());K.addGetterSetter(mr,"letterSpacing",0,$e());K.addGetterSetter(mr,"text","",M1());K.addGetterSetter(mr,"textDecoration","");var D9e="",BV="normal";function zV(e){e.fillText(this.partialText,0,0)}function FV(e){e.strokeText(this.partialText,0,0)}class ui extends Re{constructor(t){super(t),this.dummyCanvas=de.createCanvasElement(),this.dataArray=[],this.dataArray=zn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=zn.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 de.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.t
* @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 x8e=function(t){var n={},r=C.exports,i=S0.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,y=1;y<arguments.length;y++)f+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+d+"; 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"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),O=Symbol.iterator;function I(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}function D(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case h:return"Fragment";case u:return"Portal";case m:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case E:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case b:return(d.displayName||"Context")+".Consumer";case v:return(d._context.displayName||"Context")+".Provider";case w:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case _:return f=d.displayName||null,f!==null?f:D(d.type)||"Memo";case T:f=d._payload,d=d._init;try{return D(d(f))}catch(y){}}return null}function B(d){var f=d.type;switch(d.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 d=f.render,d=d.displayName||d.name||"",f.displayName||(d!==""?"ForwardRef("+d+")":"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 $(d){var f=d,y=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(y=f.return),d=f.return;while(d)}return f.tag===3?y:null}function H(d){if($(d)!==d)throw Error(a(188))}function j(d){var f=d.alternate;if(!f){if(f=$(d),f===null)throw Error(a(188));return f!==d?null:d}for(var y=d,k=f;;){var L=y.return;if(L===null)break;var R=L.alternate;if(R===null){if(k=L.return,k!==null){y=k;continue}break}if(L.child===R.child){for(R=L.child;R;){if(R===y)return H(L),d;if(R===k)return H(L),f;R=R.sibling}throw Error(a(188))}if(y.return!==k.return)y=L,k=R;else{for(var W=!1,ae=L.child;ae;){if(ae===y){W=!0,y=L,k=R;break}if(ae===k){W=!0,k=L,y=R;break}ae=ae.sibling}if(!W){for(ae=R.child;ae;){if(ae===y){W=!0,y=R,k=L;break}if(ae===k){W=!0,k=R,y=L;break}ae=ae.sibling}if(!W)throw Error(a(189))}}if(y.alternate!==k)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?d:f}function ne(d){return d=j(d),d!==null?V(d):null}function V(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=V(d);if(f!==null)return f;d=d.sibling}return null}function q(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=q(d);if(f!==null)return f}d=d.sibling}return null}var te=Array.isArray,J=t.getPublicInstance,Z=t.getRootHostContext,G=t.getChildHostContext,ee=t.prepareForCommit,le=t.resetAfterCommit,me=t.createInstance,Me=t.appendInitialChild,Ce=t.finalizeInitialChildren,be=t.prepareUpdate,we=t.shouldSetTextContent,Ve=t.createTextInstance,Ze=t.scheduleTimeout,it=t.cancelTimeout,pt=t.noTimeout,kt=t.isPrimaryRenderer,gt=t.supportsMutation,ht=t.suppor
`+jl+d}var $s=!1;function ql(d,f){if(!d||$s)return"";$s=!0;var y=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(Be){var k=Be}Reflect.construct(d,[],f)}else{try{f.call()}catch(Be){k=Be}d.call(f.prototype)}else{try{throw Error()}catch(Be){k=Be}d()}}catch(Be){if(Be&&k&&typeof Be.stack=="string"){for(var L=Be.stack.split(`
`),R=k.stack.split(`
`),W=L.length-1,ae=R.length-1;1<=W&&0<=ae&&L[W]!==R[ae];)ae--;for(;1<=W&&0<=ae;W--,ae--)if(L[W]!==R[ae]){if(W!==1||ae!==1)do if(W--,ae--,0>ae||L[W]!==R[ae]){var fe=`
`+L[W].replace(" at new "," at ");return d.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",d.displayName)),fe}while(1<=W&&0<=ae);break}}}finally{$s=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?Yl(d):""}var Hh=Object.prototype.hasOwnProperty,Xu=[],Hs=-1;function Uo(d){return{current:d}}function Ln(d){0>Hs||(d.current=Xu[Hs],Xu[Hs]=null,Hs--)}function wn(d,f){Hs++,Xu[Hs]=d.current,d.current=f}var Go={},Lr=Uo(Go),Xr=Uo(!1),jo=Go;function Ws(d,f){var y=d.type.contextTypes;if(!y)return Go;var k=d.stateNode;if(k&&k.__reactInternalMemoizedUnmaskedChildContext===f)return k.__reactInternalMemoizedMaskedChildContext;var L={},R;for(R in y)L[R]=f[R];return k&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=L),L}function Zr(d){return d=d.childContextTypes,d!=null}function ts(){Ln(Xr),Ln(Lr)}function Hd(d,f,y){if(Lr.current!==Go)throw Error(a(168));wn(Lr,f),wn(Xr,y)}function Kl(d,f,y){var k=d.stateNode;if(f=f.childContextTypes,typeof k.getChildContext!="function")return y;k=k.getChildContext();for(var L in k)if(!(L in f))throw Error(a(108,B(d)||"Unknown",L));return o({},y,k)}function ns(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Go,jo=Lr.current,wn(Lr,d),wn(Xr,Xr.current),!0}function Wd(d,f,y){var k=d.stateNode;if(!k)throw Error(a(169));y?(d=Kl(d,f,jo),k.__reactInternalMemoizedMergedChildContext=d,Ln(Xr),Ln(Lr),wn(Lr,d)):Ln(Xr),wn(Xr,y)}var wi=Math.clz32?Math.clz32:Vd,Wh=Math.log,Vh=Math.LN2;function Vd(d){return d>>>=0,d===0?32:31-(Wh(d)/Vh|0)|0}var Vs=64,po=4194304;function Us(d){switch(d&-d){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 d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function Xl(d,f){var y=d.pendingLanes;if(y===0)return 0;var k=0,L=d.suspendedLanes,R=d.pingedLanes,W=y&268435455;if(W!==0){var ae=W&~L;ae!==0?k=Us(ae):(R&=W,R!==0&&(k=Us(R)))}else W=y&~L,W!==0?k=Us(W):R!==0&&(k=Us(R));if(k===0)return 0;if(f!==0&&f!==k&&(f&L)===0&&(L=k&-k,R=f&-f,L>=R||L===16&&(R&4194240)!==0))return f;if((k&4)!==0&&(k|=y&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=k;0<f;)y=31-wi(f),L=1<<y,k|=d[y],f&=~L;return k}function X1(d,f){switch(d){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 Zu(d,f){for(var y=d.suspendedLanes,k=d.pingedLanes,L=d.expirationTimes,R=d.pendingLanes;0<R;){var W=31-wi(R),ae=1<<W,fe=L[W];fe===-1?((ae&y)===0||(ae&k)!==0)&&(L[W]=X1(ae,f)):fe<=f&&(d.expiredLanes|=ae),R&=~ae}}function Qu(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function Ud(){var d=Vs;return Vs<<=1,(Vs&4194240)===0&&(Vs=64),d}function Ju(d){for(var f=[],y=0;31>y;y++)f.push(d);return f}function _a(d,f,y){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-wi(f),d[f]=y}function Gd(d,f){var y=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var k=d.eventTimes;for(d=d.expirationTimes;0<y;){var L=31-wi(y),R=1<<L;f[L]=0,k[L]=-1,d[L]=-1,y&=~R}}function Zl(d,f){var y=d.entangledLanes|=f;for(d=d.entanglements;y;){var k=31-wi(y),L=1<<k;L&f|d[k]&f&&(d[k]|=f),y&=~L}}var Vt=0;function Uh(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var ec=i.unstable_scheduleCallback,tc
Error generating stack: `+R.message+`
`+R.stack}return{value:d,source:f,stack:L,digest:null}}function hg(d,f,y){return{value:d,source:null,stack:y!=null?y:null,digest:f!=null?f:null}}function bc(d,f){try{console.error(f.value)}catch(y){setTimeout(function(){throw y})}}var df=typeof WeakMap=="function"?WeakMap:Map;function pg(d,f,y){y=is(-1,y),y.tag=3,y.payload={element:null};var k=f.value;return y.callback=function(){gf||(gf=!0,mf=k),bc(d,f)},y}function z(d,f,y){y=is(-1,y),y.tag=3;var k=d.type.getDerivedStateFromError;if(typeof k=="function"){var L=f.value;y.payload=function(){return k(L)},y.callback=function(){bc(d,f)}}var R=d.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(y.callback=function(){bc(d,f),typeof k!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var W=f.stack;this.componentDidCatch(f.value,{componentStack:W!==null?W:""})}),y}function nu(d,f,y){var k=d.pingCache;if(k===null){k=d.pingCache=new df;var L=new Set;k.set(f,L)}else L=k.get(f),L===void 0&&(L=new Set,k.set(f,L));L.has(y)||(L.add(y),d=oy.bind(null,d,f,y),f.then(d,d))}function ff(d){do{var f;if((f=d.tag===13)&&(f=d.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return d;d=d.return}while(d!==null);return null}function Zi(d,f,y,k,L){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(f=is(-1,1),f.tag=2,Ys(y,f,1))),y.lanes|=1),d):(d.flags|=65536,d.lanes=L,d)}var Yt=s.ReactCurrentOwner,$i=!1;function Ei(d,f,y,k){f.child=d===null?F2(f,null,y,k):sc(f,d.child,y,k)}function Y2(d,f,y,k,L){y=y.render;var R=f.ref;return oc(f,L),k=ag(d,f,y,k,R,L),y=cc(),d!==null&&!$i?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~L,as(d,f,L)):($n&&y&&Ci(f),f.flags|=1,Ei(d,f,k,L),f.child)}function Ks(d,f,y,k,L){if(d===null){var R=y.type;return typeof R=="function"&&!Dg(R)&&R.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(f.tag=15,f.type=R,q2(d,f,R,k,L)):(d=bf(y.type,null,k,f,f.mode,L),d.ref=f.ref,d.return=f,f.child=d)}if(R=d.child,(d.lanes&L)===0){var W=R.memoizedProps;if(y=y.compare,y=y!==null?y:Ql,y(W,k)&&d.ref===f.ref)return as(d,f,L)}return f.flags|=1,d=eo(R,k),d.ref=f.ref,d.return=f,f.child=d}function q2(d,f,y,k,L){if(d!==null){var R=d.memoizedProps;if(Ql(R,k)&&d.ref===f.ref)if($i=!1,f.pendingProps=k=R,(d.lanes&L)!==0)(d.flags&131072)!==0&&($i=!0);else return f.lanes=d.lanes,as(d,f,L)}return gg(d,f,y,k,L)}function K2(d,f,y){var k=f.pendingProps,L=k.children,R=d!==null?d.memoizedState:null;if(k.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},wn(Qs,Qi),Qi|=y;else{if((y&1073741824)===0)return d=R!==null?R.baseLanes|y:y,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,wn(Qs,Qi),Qi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},k=R!==null?R.baseLanes:y,wn(Qs,Qi),Qi|=k}else R!==null?(k=R.baseLanes|y,f.memoizedState=null):k=y,wn(Qs,Qi),Qi|=k;return Ei(d,f,L,y),f.child}function X2(d,f){var y=f.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(f.flags|=512,f.flags|=2097152)}function gg(d,f,y,k,L){var R=Zr(y)?jo:Lr.current;return R=Ws(f,R),oc(f,L),y=ag(d,f,y,k,R,L),k=cc(),d!==null&&!$i?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~L,as(d,f,L)):($n&&k&&Ci(f),f.flags|=1,Ei(d,f,y,L),f.child)}function Z2(d,f,y,k,L){if(Zr(y)){var R=!0;ns(f)}else R=!1;if(oc(f,L),f.stateNode===null)La(d,f),N2(f,y,k),ng(f,y,k,L),k=!0;else if(d===null){var W=f.stateNode,ae=f.memoizedProps;W.props=ae;var fe=W.context,Be=y.contextType;typeof Be=="object"&&Be!==null?Be=Xi(Be):(Be=Zr(y)?jo:Lr.current,Be=Ws(f,Be));var nt=y.getDerivedStateFromProps,Rt=typeof nt=="function"||typeof W.getSnapshotBeforeUpdate=="function";Rt||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(ae!==k||fe!==Be)&&B2(f,W,k,Be),rs=!1;var qe=f.memoizedState;W.state=qe,Qh(f,k,W,L),fe=f.memoizedState,ae!==k||qe!==fe||Xr.current||rs?(typeof nt=="function"&&(ep(f,y,nt,k),fe=f.memoizedState),(ae=rs||tf(f,y,ae,k,qe,fe,Be))?(Rt||typeof W.UNSAFE_componentWillMoun
`+(k.join(" > ")+`
No matching component was found for:
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return J(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Mp,findFiberByHostInstance:d.findFiberByHostInstance||zg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{fn=f.inject(d),Ut=f}catch(y){}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,y,k){if(!Et)throw Error(a(363));d=Eg(d,f);var L=Kt(d,y,k).disconnect;return{disconnect:function(){L()}}},n.registerMutableSourceForHydration=function(d,f){var y=f._getVersion;y=y(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,y]:d.mutableSourceEagerHydrationData.push(f,y)},n.runWithPriority=function(d,f){var y=Vt;try{return Vt=d,f()}finally{Vt=y}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,y,k){var L=f.current,R=pi(),W=Ir(L);return y=Ng(y),f.context===null?f.context=y:f.pendingContext=y,f=is(R,W),f.payload={element:d},k=k===void 0?null:k,k!==null&&(f.callback=k),d=Ys(L,f,W),d!==null&&(xo(d,L,W,R),Zh(d,L,W)),W},n};(function(e){e.exports=x8e})(WV);const w8e=a9(WV.exports);var Wk={exports:{}},Bh={};/**
* @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.
*/Bh.ConcurrentRoot=1;Bh.ContinuousEventPriority=4;Bh.DefaultEventPriority=16;Bh.DiscreteEventPriority=1;Bh.IdleEventPriority=536870912;Bh.LegacyRoot=0;(function(e){e.exports=Bh})(Wk);const TR={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let LR=!1,AR=!1;const Vk=".react-konva-event",C8e=`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
`,_8e=`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
`,k8e={};function Lb(e,t,n=k8e){if(!LR&&"zIndex"in t&&(console.warn(_8e),LR=!0),!AR&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(C8e),AR=!0)}for(var o in n)if(!TR[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 u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var h=t._useStrictMode,g={},m=!1;const v={};for(var o in t)if(!TR[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]&&(v[l]=t[o])}!a&&(t[o]!==n[o]||h&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),zd(e));for(var l in v)e.on(l+Vk,v[l])}function zd(e){if(!st.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const VV={},E8e={};bh.Node.prototype._applyProps=Lb;function P8e(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),zd(e)}function T8e(e,t,n){let r=bh[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=bh.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 Lb(l,o),l}function L8e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function A8e(e,t,n){return!1}function M8e(e){return e}function R8e(){return null}function O8e(){return null}function I8e(e,t,n,r){return E8e}function D8e(){}function N8e(e){}function B8e(e,t){return!1}function z8e(){return VV}function F8e(){return VV}const $8e=setTimeout,H8e=clearTimeout,W8e=-1;function V8e(e,t){return!1}const U8e=!1,G8e=!0,j8e=!0;function Y8e(e,t){t.parent===e?t.moveToTop():e.add(t),zd(e)}function q8e(e,t){t.parent===e?t.moveToTop():e.add(t),zd(e)}function UV(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),zd(e)}function K8e(e,t,n){UV(e,t,n)}function X8e(e,t){t.destroy(),t.off(Vk),zd(e)}function Z8e(e,t){t.destroy(),t.off(Vk),zd(e)}function Q8e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function J8e(e,t,n){}function e_e(e,t,n,r,i){Lb(e,i,r)}function t_e(e){e.hide(),zd(e)}function n_e(e){}function r_e(e,t){(t.visible==null||t.visible)&&e.show()}function i_e(e,t){}function o_e(e){}function a_e(){}const s_e=()=>Wk.exports.DefaultEventPriority,l_e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:P8e,createInstance:T8e,createTextInstance:L8e,finalizeInitialChildren:A8e,getPublicInstance:M8e,prepareForCommit:R8e,preparePortalMount:O8e,prepareUpdate:I8e,resetAfterCommit:D8e,resetTextContent:N8e,shouldDeprioritizeSubtree:B8e,getRootHostContext:z8e,getChildHostContext:F8e,scheduleTimeout:$8e,cancelTimeout:H8e,noTimeout:W8e,shouldSetTextContent:V8e,isPrimaryRenderer:U8e,warnsIfNotActing:G8e,supportsMutation:j8e,appendChild:Y8e,appendChildToContainer:q8e,insertBefore:UV,insertInContainerBefore:K8e,removeChild:X8e,removeChildFromContainer:Z8e,commitTextUpdate:Q8e,commitMount:J8e,commitUpdate:e_e,hideInstance:t_e,hideTextInstance:n_e,unhideInstance:r_e,unhideTextInstance:i_e,clearContainer:o_e,detachDeletedInstance:a_e,getCurrentEventPriority:s_e,now:S0.exports.unstable_now,idlePriority:S0.exports.unstable_IdlePriority,run:S0.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var u_e=Object.defineProperty,c_e=Object.defineProperties,d_e=Object.getOwnPropertyDescriptors,MR=Object.getOwnPropertySymbols,f_e=Object.prototype.hasOwnProperty,h_e=Object.prototype.propertyIsEnumerable,RR=(e,t,n)=>t in e?u_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OR=(e,t)=>{for(var n in t||(t={}))f_e.call(t,n)&&RR(e,n,t[n]);if(MR)
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(0.5,0,0,0.5,0,0)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
2022-12-13 02:00:52 +00:00
</svg>`.replaceAll("black",e),I_e=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=ye(O_e),[a,s]=C.exports.useState(null),[l,u]=C.exports.useState(0),h=C.exports.useRef(null),g=C.exports.useCallback(()=>{u(l+1),setTimeout(g,500)},[l]);return C.exports.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=DR(n)},[a,n]),C.exports.useEffect(()=>{!a||(a.src=DR(n))},[a,n]),C.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),!a||!ii.exports.isNumber(r.x)||!ii.exports.isNumber(r.y)||!ii.exports.isNumber(o)||!ii.exports.isNumber(i.width)||!ii.exports.isNumber(i.height)?null:S(zu,{ref:h,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:ii.exports.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},D_e=rt([Qt],e=>{const{isMoveStageKeyHeld:t,stageScale:n}=e;return{isMoveStageKeyHeld:t,stageScale:n}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),N_e=e=>{const t=De(),{isMoveStageKeyHeld:n,stageScale:r}=ye(D_e);return C.exports.useCallback(i=>{if(!e.current||n)return;i.evt.preventDefault();const o=e.current.getPointerPosition();if(!o)return;const a={x:(o.x-e.current.x())/r,y:(o.y-e.current.y())/r};let s=i.evt.deltaY;i.evt.ctrlKey&&(s=-s);const l=He.clamp(r*ebe**s,tbe,nbe),u={x:o.x-a.x*l,y:o.y-a.y*l};t(_be(l)),t(sW(u))},[e,n,r,t])},jk=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:r.x,y:r.y}},ZV=()=>{const e=De(),t=Ds(),n=XV();return{updateColorUnderCursor:()=>{if(!n||!t)return;const r=n.getPointerPosition();if(!r)return;const i=Zp.pixelRatio,[o,a,s,l]=t.getContext().getImageData(r.x*i,r.y*i,1,1).data;e(ybe({r:o,g:a,b:s,a:l}))},commitColorUnderCursor:()=>{e(sbe())}}},B_e=rt([Tr,Qt,vr],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),z_e=e=>{const t=De(),{tool:n,isStaging:r}=ye(B_e),{commitColorUnderCursor:i}=ZV();return C.exports.useCallback(o=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(w4(!0));return}if(n==="colorPicker"){i();return}const a=jk(e.current);!a||(o.evt.preventDefault(),t(QH(!0)),t(abe([a.x,a.y])))},[e,n,r,t,i])},F_e=rt([Tr,Qt,vr],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),$_e=(e,t)=>{const n=De(),{tool:r,isDrawing:i,isStaging:o}=ye(F_e);return C.exports.useCallback(()=>{if(r==="move"||o){n(w4(!1));return}if(!t.current&&i&&e.current){const a=jk(e.current);if(!a)return;n(KH([a.x,a.y]))}else t.current=!1;n(QH(!1))},[t,n,i,o,e,r])},H_e=rt([Tr,Qt,vr],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),W_e=(e,t,n)=>{const r=De(),{isDrawing:i,tool:o,isStaging:a}=ye(H_e),{updateColorUnderCursor:s}=ZV();return C.exports.useCallback(()=>{if(!e.current)return;const l=jk(e.current);if(!!l){if(r(Sbe(l)),n.current=l,o==="colorPicker"){s();return}!i||o==="move"||a||(t.current=!0,r(KH([l.x,l.y])))}},[t,r,i,a,n,e,o,s])},V_e=()=>{const e=De();return C.exports.useCallback(()=>{e(cbe())},[e])},U_e=rt([Qt,vr],(e,t)=>{const{tool:n,isMovingBoundingBox:r}=e;return{tool:n,isStaging:t,isMovingBoundingBox:r}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),G_e=()=>{const e=De(),{tool:t,isStaging:n,isMovingBoundingBox:r}=ye(U_e);return{handleDragStart:C.exports.useCallback(()=>{!((t==="move"||n)&&!r)||e(w4(!0))},[e,r,n,t]),handleDragMove:C.exports.useCallback(i=>{if(!((t==="move"||n)&&!r))return;const o={x:i.target.x(),y:i.target.y()};e(sW(o))},[e,r,n,t]),handleDragEnd:C.exports.useCallback(()=>{!((t==="move"||n)&&!r)||e(w4(!1))},[e,r,n,t])}};var Mf=C.exports,j_e=function(t,n,r){const i=Mf.useRef("loading"),o=Mf.useRef(),[a,s]=Mf.useState(0),l=Mf.useRef(),u=Mf.useRef(),h=Mf.useRef();return(l.current!==t||u.current!==n||h.current!==r)&&(i.current="
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ITe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DTe(e){if(Array.isArray(e))return n9(e)}function aO(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 sO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(n),!0).forEach(function(r){YU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qv(e,t){return zTe(e)||BTe(e,t)||qU(e,t)||NTe()}function NTe(){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 qU(e,t){if(!!e){if(typeof e=="string")return n9(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 n9(e,t)}}function n9(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 BTe(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 zTe(e){if(Array.isArray(e))return e}var FTe="file-invalid-type",$Te="file-too-large",HTe="file-too-small",WTe="too-many-files",VTe=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:FTe,message:"File type must be ".concat(n)}},lO=function(t){return{code:$Te,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},uO=function(t){return{code:HTe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},UTe={code:WTe,message:"Too many files"};function KU(e,t){var n=e.type==="application/x-moz-file"||RTe(e,t);return[n,n?null:VTe(t)]}function XU(e,t,n){if(Wf(e.size))if(Wf(t)&&Wf(n)){if(e.size>n)return[!1,lO(n)];if(e.size<t)return[!1,uO(t)]}else{if(Wf(t)&&e.size<t)return[!1,uO(t)];if(Wf(n)&&e.size>n)return[!1,lO(n)]}return[!0,null]}function Wf(e){return e!=null}function GTe(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 u=KU(l,n),h=Qv(u,1),g=h[0],m=XU(l,r,i),v=Qv(m,1),b=v[0],w=s?s(l):null;return g&&b&&!w})}function N4(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function T3(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 cO(e){e.preventDefault()}function jTe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function YTe(e){return e.indexOf("Edge/")!==-1}function qTe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return jTe(e)||YTe(e)}function fl(){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!N4(r)&&s&&s.apply(void 0,[r].concat(o)),N4(r)})}}function KTe(){return"showOpenFilePicker"in window}function XTe(e){if(Wf(e)){var t=Object.entries(e).filter(function(n){var r=Qv(n,2),i=r[0],o=r[1],a=!0;return ZU(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(QU))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Qv(r,2),o=i[0],a=i[1];return sO(sO({},n),{},YU({},o,a))},{});return[{description:"Files",accept:t}]}return e}function ZTe(e){if(Wf(e))return Object.entries(e).reduce(function(t,n){var r=Qv(n,2),i=r[0],o=r[1];return[].concat(oO(t),[i],oO(o))},[]).filter(function(t){return ZU(t)||QU(t)}).join(",")}function QTe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function JTe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ZU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function QU(e){return/^.*\.[\w]+$/.test(e)}var eLe=["children"],tLe=["open"],nLe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sLe(e){if(Array.isArray(e))return r9(e)}function s6(e,t){return cLe(e)||uLe(e,t)||JU(e,t)||lLe()}function lLe(){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 JU(e,t){if(!!e){if(typeof e=="string")return r9(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 r9(e,t)}}function r9(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 uLe(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 cLe(e){if(Array.isArray(e))return e}function dO(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 cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(n),!0).forEach(function(r){i9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B4(e,t){if(e==null)return{};var n=dLe(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 dLe(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 Qk=C.exports.forwardRef(function(e,t){var n=e.children,r=B4(e,eLe),i=tG(r),o=i.open,a=B4(i,tLe);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),S(C.exports.Fragment,{children:n(cr(cr({},a),{},{open:o}))})});Qk.displayName="Dropzone";var eG={disabled:!1,getFilesFromEvent:CTe,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};Qk.defaultProps=eG;Qk.propTypes={children:Bn.exports.func,accept:Bn.exports.objectOf(Bn.exports.arrayOf(Bn.exports.string)),multiple:Bn.exports.bool,preventDropOnDocument:Bn.exports.bool,noClick:Bn.exports.bool,noKeyboard:Bn.exports.bool,noDrag:Bn.exports.bool,noDragEventsBubbling:Bn.exports.bool,minSize:Bn.exports.number,maxSize:Bn.exports.number,maxFiles:Bn.exports.number,disabled:Bn.exports.bool,getFilesFromEvent:Bn.exports.func,onFileDialogCancel:Bn.exports.func,onFileDialogOpen:Bn.exports.func,useFsAccessApi:Bn.exports.bool,autoFocus:Bn.exports.bool,onDragEnter:Bn.exports.func,onDragLeave:Bn.exports.func,onDragOver:Bn.exports.func,onDrop:Bn.exports.func,onDropAccepted:Bn.exports.func,onDropRejected:Bn.exports.func,onError:Bn.exports.func,validator:Bn.exports.func};var o9={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function tG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=cr(cr({},eG),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,P=t.onFileDialogOpen,E=t.useFsAccessApi,_=t.autoFocus,T=t.preventDropOnDocument,M=t.noClick,O=t.noKeyboard,I=t.noDrag,D=t.noDragEventsBubbling,B=t.onError,$=t.validator,H=C.exports.useMemo(function(){return ZTe(n)},[n]),j=C.exports.useMemo(function(){return XTe(n)},[n]),ne=C.exports.useMemo(function(){return typeof P=="function"?P:fO},[P]),V=C.exports.useMemo(function(){return typeof w=="function"?w:fO},[w]),q=C.exports.useRef(null),te=C.exports.useRef(null),J=C.expor
`+O.message,"");i({title:"Upload failed",description:T,status:"error",isClosable:!0})},[i]),u=C.exports.useCallback(async _=>{n(hO({imageFile:_}))},[n]),h=C.exports.useCallback((_,T)=>{T.forEach(M=>{l(M)}),_.forEach(M=>{u(M)})},[u,l]),{getRootProps:g,getInputProps:m,isDragAccept:v,isDragReject:b,isDragActive:w,open:P}=tG({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>a(!0),maxFiles:1});s(P),C.exports.useEffect(()=>{const _=T=>{var D;const M=(D=T.clipboardData)==null?void 0:D.items;if(!M)return;const O=[];for(const B of M)B.kind==="file"&&["image/png","image/jpg"].includes(B.type)&&O.push(B);if(!O.length)return;if(T.stopImmediatePropagation(),O.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const I=O[0].getAsFile();if(!I){i({description:"Unable to load file",status:"error",isClosable:!0});return}n(hO({imageFile:I}))};return document.addEventListener("paste",_),()=>{document.removeEventListener("paste",_)}},[n,i,r]);const E=["img2img","unifiedCanvas"].includes(r)?` to ${Hf[r].tooltip}`:"";return S(kk.Provider,{value:P,children:X("div",{...g({style:{}}),onKeyDown:_=>{_.key},children:[S("input",{...m()}),t,w&&o&&S(hLe,{isDragAccept:v,isDragReject:b,overlaySecondaryText:E,setIsHandlingUpload:a})]})})},gLe=()=>{const e=De(),t=ye(RSe),n=x2();C.exports.useEffect(()=>{t.forEach(r=>{n(r)}),t.length>0&&e(K4e())},[e,n,t])},nG=rt([e=>e.options,e=>e.gallery,Tr],(e,t,n)=>{const{shouldPinOptionsPanel:r,shouldShowOptionsPanel:i,shouldHoldOptionsPanelOpen:o,shouldUseCanvasBetaLayout:a}=e,{shouldShowGallery:s,shouldPinGallery:l,shouldHoldGalleryOpen:u}=t,h=a&&n==="unifiedCanvas",g=!h&&!(i||o&&!r)&&["txt2img","img2img","unifiedCanvas"].includes(n),m=!(s||u&&!l)&&["txt2img","img2img","unifiedCanvas"].includes(n);return{shouldPinOptionsPanel:r,shouldShowProcessButtons:!h&&(!r||!i),shouldShowOptionsPanelButton:g,shouldShowOptionsPanel:i,shouldShowGallery:s,shouldPinGallery:l,shouldShowGalleryButton:m}},{memoizeOptions:{resultEqualityCheck:He.isEqual}}),mLe=()=>{const e=De(),{shouldShowOptionsPanel:t,shouldShowOptionsPanelButton:n,shouldShowProcessButtons:r,shouldPinOptionsPanel:i,shouldShowGallery:o,shouldPinGallery:a}=ye(nG),s=()=>{e(ku(!0)),i&&setTimeout(()=>e(ai(!0)),400)};return Ue("f",()=>{o||t?(e(ku(!1)),e(hd(!1))):(e(ku(!0)),e(hd(!0))),(a||i)&&setTimeout(()=>e(ai(!0)),400)},[o,t]),n?X("div",{className:"show-hide-button-options",children:[S(Xe,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:s,children:S(gk,{})}),r&&X(Rn,{children:[S(vk,{iconButton:!0}),S(yk,{})]})]}):null},vLe=()=>{const e=De(),{shouldShowGallery:t,shouldShowGalleryButton:n,shouldPinGallery:r,shouldShowOptionsPanel:i,shouldPinOptionsPanel:o}=ye(nG),a=()=>{e(hd(!0)),r&&e(ai(!0))};return Ue("f",()=>{t||i?(e(ku(!1)),e(hd(!1))):(e(ku(!0)),e(hd(!0))),(r||o)&&setTimeout(()=>e(ai(!0)),400)},[t,i]),n?S(Xe,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:a,children:S(EH,{})}):null};STe();const yLe=()=>(gLe(),X("div",{className:"App",children:[X(pLe,{children:[S(tTe,{}),X("div",{className:"app-content",children:[S(gTe,{}),S(EEe,{})]}),S("div",{className:"app-console",children:S(yTe,{})})]}),S(mLe,{}),S(vLe,{})]}));const rG=i3e(VU),SLe=jD({key:"invokeai-style-cache",prepend:!0});u6.createRoot(document.getElementById("root")).render(S(se.StrictMode,{children:S(Iye,{store:VU,children:S(UU,{loading:S(JPe,{}),persistor:rG,children:S(hee,{value:SLe,children:S(c2e,{children:S(yLe,{})})})})})}));export{xLe as __vite_legacy_guard};