InvokeAI/invokeai/frontend/web/dist/assets/index-881a4f18.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

116 lines
668 KiB
JavaScript
Raw Normal View History

function h2(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AL(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jt={},IL={get exports(){return jt},set exports(t){jt=t}},hh={},be={},LL={get exports(){return be},set exports(t){be=t}},De={};/**
* @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 qu=Symbol.for("react.element"),ML=Symbol.for("react.portal"),DL=Symbol.for("react.fragment"),NL=Symbol.for("react.strict_mode"),BL=Symbol.for("react.profiler"),FL=Symbol.for("react.provider"),$L=Symbol.for("react.context"),zL=Symbol.for("react.forward_ref"),GL=Symbol.for("react.suspense"),UL=Symbol.for("react.memo"),jL=Symbol.for("react.lazy"),qS=Symbol.iterator;function WL(t){return t===null||typeof t!="object"?null:(t=qS&&t[qS]||t["@@iterator"],typeof t=="function"?t:null)}var p2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g2=Object.assign,m2={};function Us(t,e,n){this.props=t,this.context=e,this.refs=m2,this.updater=n||p2}Us.prototype.isReactComponent={};Us.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Us.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function v2(){}v2.prototype=Us.prototype;function my(t,e,n){this.props=t,this.context=e,this.refs=m2,this.updater=n||p2}var vy=my.prototype=new v2;vy.constructor=my;g2(vy,Us.prototype);vy.isPureReactComponent=!0;var KS=Array.isArray,y2=Object.prototype.hasOwnProperty,yy={current:null},S2={key:!0,ref:!0,__self:!0,__source:!0};function _2(t,e,n){var r,i={},a=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(a=""+e.key),e)y2.call(e,r)&&!S2.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}if(t&&t.defaultProps)for(r in u=t.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:qu,type:t,key:a,ref:s,props:i,_owner:yy.current}}function HL(t,e){return{$$typeof:qu,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Sy(t){return typeof t=="object"&&t!==null&&t.$$typeof===qu}function VL(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var YS=/\/+/g;function Ug(t,e){return typeof t=="object"&&t!==null&&t.key!=null?VL(""+t.key):e.toString(36)}function Yf(t,e,n,r,i){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case qu:case ML:s=!0}}if(s)return s=t,i=i(s),t=r===""?"."+Ug(s,0):r,KS(i)?(n="",t!=null&&(n=t.replace(YS,"$&/")+"/"),Yf(i,e,n,"",function(f){return f})):i!=null&&(Sy(i)&&(i=HL(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(YS,"$&/")+"/")+t)),e.push(i)),1;if(s=0,r=r===""?".":r+":",KS(t))for(var u=0;u<t.length;u++){a=t[u];var c=r+Ug(a,u);s+=Yf(a,e,n,c,i)}else if(c=WL(t),typeof c=="function")for(t=c.call(t),u=0;!(a=t.next()).done;)a=a.value,c=r+Ug(a,u++),s+=Yf(a,e,n,c,i);else if(a==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function cf(t,e,n){if(t==null)return t;var r=[],i=0;return Yf(t,r,"","",function(a){return e.call(n,a,i++)}),r}function qL(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var _n={current:null},Xf={transition:null},KL={ReactCurrentDispatcher:_n,ReactCurrentBatchConfig:Xf,ReactCurrentOwner:yy};De.Children={map:cf,forEach:function(t,e,n){cf(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return cf(t,function(){e++}),e},toArray:function(t){return cf(t,function(e){return e})||[]},only:function(t){if(!Sy(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};De.Component=Us;De.Fragment=DL;De.Profiler=BL;De
* @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 YL=be,XL=Symbol.for("react.element"),QL=Symbol.for("react.fragment"),JL=Object.prototype.hasOwnProperty,ZL=YL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eM={key:!0,ref:!0,__self:!0,__source:!0};function w2(t,e,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)JL.call(e,r)&&!eM.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:XL,type:t,key:a,ref:s,props:i,_owner:ZL.current}}hh.Fragment=QL;hh.jsx=w2;hh.jsxs=w2;(function(t){t.exports=hh})(IL);var Fm={},xd={},tM={get exports(){return xd},set exports(t){xd=t}},Qn={},$m={},nM={get exports(){return $m},set exports(t){$m=t}},b2={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(t){function e(W,Y){var Q=W.length;W.push(Y);e:for(;0<Q;){var oe=Q-1>>>1,ve=W[oe];if(0<i(ve,Y))W[oe]=Y,W[Q]=ve,Q=oe;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var Y=W[0],Q=W.pop();if(Q!==Y){W[0]=Q;e:for(var oe=0,ve=W.length,we=ve>>>1;oe<we;){var Ue=2*(oe+1)-1,At=W[Ue],me=Ue+1,qt=W[me];if(0>i(At,Q))me<ve&&0>i(qt,At)?(W[oe]=qt,W[me]=Q,oe=me):(W[oe]=At,W[Ue]=Q,oe=Ue);else if(me<ve&&0>i(qt,Q))W[oe]=qt,W[me]=Q,oe=me;else break e}}return Y}function i(W,Y){var Q=W.sortIndex-Y.sortIndex;return Q!==0?Q:W.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],f=[],h=1,p=null,g=3,y=!1,v=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var Y=n(f);Y!==null;){if(Y.callback===null)r(f);else if(Y.startTime<=W)r(f),Y.sortIndex=Y.expirationTime,e(c,Y);else break;Y=n(f)}}function O(W){if(w=!1,C(W),!v)if(n(c)!==null)v=!0,V(I);else{var Y=n(f);Y!==null&&ie(O,Y.startTime-W)}}function I(W,Y){v=!1,w&&(w=!1,_(U),U=-1),y=!0;var Q=g;try{for(C(Y),p=n(c);p!==null&&(!(p.expirationTime>Y)||W&&!te());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,g=p.priorityLevel;var ve=oe(p.expirationTime<=Y);Y=t.unstable_now(),typeof ve=="function"?p.callback=ve:p===n(c)&&r(c),C(Y)}else r(c);p=n(c)}if(p!==null)var we=!0;else{var Ue=n(f);Ue!==null&&ie(O,Ue.startTime-Y),we=!1}return we}finally{p=null,g=Q,y=!1}}var L=!1,D=null,U=-1,X=5,K=-1;function te(){return!(t.unstable_now()-K<X)}function ce(){if(D!==null){var W=t.unstable_now();K=W;var Y=!0;try{Y=D(!0,W)}finally{Y?j():(L=!1,D=null)}}else L=!1}var j;if(typeof S=="function")j=function(){S(ce)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,$=T.port2;T.port1.onmessage=ce,j=function(){$.postMessage(null)}}else j=function(){x(ce,0)};function V(W){D=W,L||(L=!0,j())}function ie(W,Y){U=x(function(){W(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(W){W.callback=null},t.unstable_continueExecution=function(){v||y||(v=!0,V(I))},t.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<W?Math.floor(1e3/W):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(W){switch(g){case 1:case 2:case 3:var Y=3;break;default:Y=g}var Q=g;g=Y;try{return W()}finally{g=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(W,Y){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Q=g;g=W;try{return Y()}finally{g=Q}},t.unstable_scheduleCallback=function(W,Y,Q){var oe=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?oe+Q:oe):Q=oe,W){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=Q+ve,W={id:h++,callback:Y,priorityLevel:W,startTime:Q,expirationTime:ve,sortIndex:-1},Q>oe?(W.sortIndex=Q,e(f,W),n(c)===null&&W===n(f)&&(w?(_(U),U=-1):w=!0,ie(O,Q-oe))):(W.sortIndex=ve,e(c,W),v||y||(v=!0,V(I))),W},t.unstable_shouldYield=te,t.unstable_wrapCallback=function(W){var Y=g;return function(){var Q=g;g=Y;try{return W.apply(this,arguments)}finally{g=Q}}}})(b2);(function(t){t.exports=b2})(nM);/**
* @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 C2=be,Yn=$m;function ae(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x2=new Set,_u={};function go(t,e){Is(t,e),Is(t+"Capture",e)}function Is(t,e){for(_u[t]=e,t=0;t<e.length;t++)x2.add(e[t])}var $i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zm=Object.prototype.hasOwnProperty,rM=/^[: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]*$/,QS={},JS={};function iM(t){return zm.call(JS,t)?!0:zm.call(QS,t)?!1:rM.test(t)?JS[t]=!0:(QS[t]=!0,!1)}function aM(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function oM(t,e,n,r){if(e===null||typeof e>"u"||aM(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function wn(t,e,n,r,i,a,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=s}var nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){nn[t]=new wn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];nn[e]=new wn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){nn[t]=new wn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){nn[t]=new wn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){nn[t]=new wn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){nn[t]=new wn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){nn[t]=new wn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){nn[t]=new wn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){nn[t]=new wn(t,5,!1,t.toLowerCase(),null,!1,!1)});var _y=/[\-:]([a-z])/g;function wy(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origi
`+jg+t}var Wg=!1;function Hg(t,e){if(!t||Wg)return"";Wg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(f){var r=f}Reflect.construct(t,[],e)}else{try{e.call()}catch(f){r=f}t.call(e.prototype)}else{try{throw Error()}catch(f){r=f}t()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
`),a=r.stack.split(`
`),s=i.length-1,u=a.length-1;1<=s&&0<=u&&i[s]!==a[u];)u--;for(;1<=s&&0<=u;s--,u--)if(i[s]!==a[u]){if(s!==1||u!==1)do if(s--,u--,0>u||i[s]!==a[u]){var c=`
`+i[s].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=s&&0<=u);break}}}finally{Wg=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Kl(t):""}function sM(t){switch(t.tag){case 5:return Kl(t.type);case 16:return Kl("Lazy");case 13:return Kl("Suspense");case 19:return Kl("SuspenseList");case 0:case 2:case 15:return t=Hg(t.type,!1),t;case 11:return t=Hg(t.type.render,!1),t;case 1:return t=Hg(t.type,!0),t;default:return""}}function Wm(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ls:return"Fragment";case ss:return"Portal";case Gm:return"Profiler";case Cy:return"StrictMode";case Um:return"Suspense";case jm:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case P2:return(t.displayName||"Context")+".Consumer";case k2:return(t._context.displayName||"Context")+".Provider";case xy:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ky:return e=t.displayName||null,e!==null?e:Wm(t.type)||"Memo";case ca:e=t._payload,t=t._init;try{return Wm(t(e))}catch{}}return null}function lM(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Wm(e);case 8:return e===Cy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Oa(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function O2(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uM(t){var e=O2(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function df(t){t._valueTracker||(t._valueTracker=uM(t))}function T2(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=O2(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function kd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Hm(t,e){var n=e.checked;return mt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function e_(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Oa(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function R2(t,e){e=e.checked,e!=null&&by(t,"checked",e,!1)}function Vm(t,e){R2(t,e);var n=Oa(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?qm(t,e.type,n):e.hasOwnProperty("defaultValue")&&qm(t,e.type,Oa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function t_(t,e,n){if(e.hasOwnProperty("val
`).replace(SD,"")}function _f(t,e,n){if(e=x_(e),x_(t)!==e&&n)throw Error(ae(425))}function Ld(){}var sv=null,lv=null;function uv(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var cv=typeof setTimeout=="function"?setTimeout:void 0,_D=typeof clearTimeout=="function"?clearTimeout:void 0,k_=typeof Promise=="function"?Promise:void 0,wD=typeof queueMicrotask=="function"?queueMicrotask:typeof k_<"u"?function(t){return k_.resolve(null).then(t).catch(bD)}:cv;function bD(t){setTimeout(function(){throw t})}function im(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),ku(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ku(e)}function wa(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function P_(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),ri="__reactFiber$"+Ws,Ru="__reactProps$"+Ws,zi="__reactContainer$"+Ws,fv="__reactEvents$"+Ws,CD="__reactListeners$"+Ws,xD="__reactHandles$"+Ws;function to(t){var e=t[ri];if(e)return e;for(var n=t.parentNode;n;){if(e=n[zi]||n[ri]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=P_(t);t!==null;){if(n=t[ri])return n;t=P_(t)}return e}t=n,n=t.parentNode}return null}function Xu(t){return t=t[ri]||t[zi],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ds(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(ae(33))}function yh(t){return t[Ru]||null}var dv=[],hs=-1;function La(t){return{current:t}}function lt(t){0>hs||(t.current=dv[hs],dv[hs]=null,hs--)}function at(t,e){hs++,dv[hs]=t.current,t.current=e}var Ta={},fn=La(Ta),Rn=La(!1),so=Ta;function Ls(t,e){var n=t.type.contextTypes;if(!n)return Ta;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=e[a];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function An(t){return t=t.childContextTypes,t!=null}function Md(){lt(Rn),lt(fn)}function E_(t,e,n){if(fn.current!==Ta)throw Error(ae(168));at(fn,e),at(Rn,n)}function yC(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(ae(108,lM(t)||"Unknown",i));return mt({},n,r)}function Dd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ta,so=fn.current,at(fn,t),at(Rn,Rn.current),!0}function O_(t,e,n){var r=t.stateNode;if(!r)throw Error(ae(169));n?(t=yC(t,e,so),r.__reactInternalMemoizedMergedChildContext=t,lt(Rn),lt(fn),at(fn,t)):lt(Rn),at(Rn,n)}var Mi=null,Sh=!1,am=!1;function SC(t){Mi===null?Mi=[t]:Mi.push(t)}function kD(t){Sh=!0,SC(t)}function Ma(){if(!am&&Mi!==null){am=!0;var t=0,e=Qe;try{var n=Mi;for(Qe=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Mi=null,Sh=!1}catch(i){throw Mi!==null&&(Mi=Mi.slice(t+1)),W2(Ey,Ma),i}finally{Qe=e,am=!1}}return null}var ps=[],gs=0,Nd=null,Bd=0,ur=[],cr=0,lo=null,Di=1,Ni="";function Qa(t,e){ps[gs++]=Bd,ps[gs++]=Nd,Nd=t,Bd=e}function _C(t,e,n){ur[cr++]=Di,ur[cr++]=Ni,ur[cr++]=lo,lo=t;var r=Di;t=Ni;var i=32-Fr(r)-1;r&=~(1<<i),n+=1;var a=32-Fr(e)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Di=1<<32-Fr(e)+i|n<<i|r,Ni=a+t}else Di=1<<a|n<<i|r,Ni=t}function Ny(t){t.return!==null&&(Qa(t,1),_C(t,1,0))}function By(t){for(;t===Nd;)Nd=ps[--gs],ps[gs]=null,Bd=ps[--gs],ps[gs]=null;for(;t===lo;)lo=ur[--cr],ur[cr]=null,Ni=ur[--cr],ur[cr]=null,Di=ur[--cr],ur[cr]=null}var Vn=null,Hn=null,ft=!1,Nr=null;function wC(t,e){var n=hr(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.de
Error generating stack: `+a.message+`
`+a.stack}return{value:t,source:e,stack:i,digest:null}}function cm(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function yv(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var MD=typeof WeakMap=="function"?WeakMap:Map;function YC(t,e,n){n=Bi(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Hd||(Hd=!0,Ov=r),yv(t,e)},n}function XC(t,e,n){n=Bi(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){yv(t,e)}}var a=t.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){yv(t,e),typeof r!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function F_(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new MD;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=KD.bind(null,t,e,n),e.then(t,t))}function $_(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function z_(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Bi(-1,1),e.tag=2,ba(n,e,1))),n.lanes|=1),t)}var DD=Wi.ReactCurrentOwner,Tn=!1;function vn(t,e,n,r){e.child=t===null?OC(e,null,n,r):Ds(e,t.child,n,r)}function G_(t,e,n,r,i){n=n.render;var a=e.ref;return xs(e,i),r=Ky(t,e,n,r,a,i),n=Yy(),t!==null&&!Tn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Ui(t,e,i)):(ft&&n&&Ny(e),e.flags|=1,vn(t,e,r,i),e.child)}function U_(t,e,n,r,i){if(t===null){var a=n.type;return typeof a=="function"&&!a0(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=a,QC(t,e,a,r,i)):(t=od(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!(t.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Eu,n(s,r)&&t.ref===e.ref)return Ui(t,e,i)}return e.flags|=1,t=ka(a,r),t.ref=e.ref,t.return=e,e.child=t}function QC(t,e,n,r,i){if(t!==null){var a=t.memoizedProps;if(Eu(a,r)&&t.ref===e.ref)if(Tn=!1,e.pendingProps=r=a,(t.lanes&i)!==0)t.flags&131072&&(Tn=!0);else return e.lanes=t.lanes,Ui(t,e,i)}return Sv(t,e,n,r,i)}function JC(t,e,n){var r=e.pendingProps,i=r.children,a=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},at(ys,jn),jn|=n;else{if(!(n&1073741824))return t=a!==null?a.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,at(ys,jn),jn|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,at(ys,jn),jn|=r}else a!==null?(r=a.baseLanes|n,e.memoizedState=null):r=n,at(ys,jn),jn|=r;return vn(t,e,i,n),e.child}function ZC(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Sv(t,e,n,r,i){var a=An(n)?so:fn.current;return a=Ls(e,a),xs(e,i),n=Ky(t,e,n,r,a,i),r=Yy(),t!==null&&!Tn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Ui(t,e,i)):(ft&&r&&Ny(e),e.flags|=1,vn(t,e,n,i),e.child)}function j_(t,e,n,r,i){if(An(n)){var a=!0;Dd(e)}else a=!1;if(xs(e,i),e.stateNode===null)rd(t,e),PC(e,n,r),vv(e,n,r,i),r=!0;else if(t===null){var s=e.stateNode,u=e.memoizedProps;s.props=u;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=mr(f):(f=An(n)?so:fn.current,f=Ls(e,f));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||c!==f)&&M_(e,s,r,f),fa=!1;var g=e.memoizedState;s.state=g,zd(e,r,s,i),c=e.memoizedState,u!==r||g!==c||Rn.current||fa?(typeof h=="function"&&(mv(e,n,h,r),c=e.memoizedState),(u=fa||L_(e,n,u,r,g,c,f))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
* @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 $s=be;function l3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var u3=typeof Object.is=="function"?Object.is:l3,c3=$s.useState,f3=$s.useEffect,d3=$s.useLayoutEffect,h3=$s.useDebugValue;function p3(t,e){var n=e(),r=c3({inst:{value:n,getSnapshot:e}}),i=r[0].inst,a=r[1];return d3(function(){i.value=n,i.getSnapshot=e,pm(i)&&a({inst:i})},[t,n,e]),f3(function(){return pm(i)&&a({inst:i}),t(function(){pm(i)&&a({inst:i})})},[t]),h3(n),n}function pm(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!u3(t,n)}catch{return!0}}function g3(t,e){return e()}var m3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g3:p3;Cx.useSyncExternalStore=$s.useSyncExternalStore!==void 0?$s.useSyncExternalStore:m3;(function(t){t.exports=Cx})(s3);var Lv={},v3={get exports(){return Lv},set exports(t){Lv=t}},xx={};/**
* @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 Th=be,y3=Iv;function S3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _3=typeof Object.is=="function"?Object.is:S3,w3=y3.useSyncExternalStore,b3=Th.useRef,C3=Th.useEffect,x3=Th.useMemo,k3=Th.useDebugValue;xx.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var a=b3(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=x3(function(){function c(y){if(!f){if(f=!0,h=y,y=r(y),i!==void 0&&s.hasValue){var v=s.value;if(i(v,y))return p=v}return p=y}if(v=p,_3(h,y))return v;var w=r(y);return i!==void 0&&i(v,w)?v:(h=y,p=w)}var f=!1,h,p,g=n===void 0?null:n;return[function(){return c(e())},g===null?void 0:function(){return c(g())}]},[e,n,r,i]);var u=w3(t,a[0],a[1]);return C3(function(){s.hasValue=!0,s.value=u},[u]),k3(u),u};(function(t){t.exports=xx})(v3);function P3(t){t()}let kx=P3;const E3=t=>kx=t,O3=()=>kx,Yd=be.createContext(null);function T3(){return be.useContext(Yd)}const R3=()=>{throw new Error("uSES not initialized!")};let Px=R3;const A3=t=>{Px=t},I3=(t,e)=>t===e;function L3(t=Yd){const e=t===Yd?T3:()=>be.useContext(t);return function(r,i=I3){const{store:a,subscription:s,getServerState:u}=e(),c=Px(s.addNestedSub,a.getState,u||a.getState,r,i);return be.useDebugValue(c),c}}const AG=L3();function Xd(){return Xd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xd.apply(this,arguments)}var Mv={},M3={get exports(){return Mv},set exports(t){Mv=t}},Je={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Vt=typeof Symbol=="function"&&Symbol.for,c0=Vt?Symbol.for("react.element"):60103,f0=Vt?Symbol.for("react.portal"):60106,Rh=Vt?Symbol.for("react.fragment"):60107,Ah=Vt?Symbol.for("react.strict_mode"):60108,Ih=Vt?Symbol.for("react.profiler"):60114,Lh=Vt?Symbol.for("react.provider"):60109,Mh=Vt?Symbol.for("react.context"):60110,d0=Vt?Symbol.for("react.async_mode"):60111,Dh=Vt?Symbol.for("react.concurrent_mode"):60111,Nh=Vt?Symbol.for("react.forward_ref"):60112,Bh=Vt?Symbol.for("react.suspense"):60113,D3=Vt?Symbol.for("react.suspense_list"):60120,Fh=Vt?Symbol.for("react.memo"):60115,$h=Vt?Symbol.for("react.lazy"):60116,N3=Vt?Symbol.for("react.block"):60121,B3=Vt?Symbol.for("react.fundamental"):60117,F3=Vt?Symbol.for("react.responder"):60118,$3=Vt?Symbol.for("react.scope"):60119;function Zn(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case c0:switch(t=t.type,t){case d0:case Dh:case Rh:case Ih:case Ah:case Bh:return t;default:switch(t=t&&t.$$typeof,t){case Mh:case Nh:case $h:case Fh:case Lh:return t;default:return e}}case f0:return e}}}function Ex(t){return Zn(t)===Dh}Je.AsyncMode=d0;Je.ConcurrentMode=Dh;Je.ContextConsumer=Mh;Je.ContextProvider=Lh;Je.Element=c0;Je.ForwardRef=Nh;Je.Fragment=Rh;Je.Lazy=$h;Je.Memo=Fh;Je.Portal=f0;Je.Profiler=Ih;Je.StrictMode=Ah;Je.Suspense=Bh;Je.isAsyncMode=function(t){return Ex(t)||Zn(t)===d0};Je.isConcurrentMode=Ex;Je.isContextConsumer=function(t){return Zn(t)===Mh};Je.isContextProvider=function(t){return Zn(t)===Lh};Je.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===c0};Je.isForwardRef=function(t){return Zn(t)===Nh};Je.isFragment=function(t){return Zn(t)===Rh};Je.isLazy=function(t){return Zn(t)===$h};Je.isMemo=function(t){return Zn(t)===Fh};Je.isPortal=function(t){return Zn(t)===f0};Je.isProfiler=function(t){return Zn(t)===Ih};Je.isStrictMode=function(t){return Zn(t)===Ah};Je.isSuspense=function(t){return Zn(t)===Bh};Je.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Rh||t===Dh||t===Ih||t===Ah||t===Bh||t===D3||typeof t=="object"&&t!==null&&(t.$$typeof===$h||t.$$typeof===Fh||t.$$typeof===Lh||t.$$typeof===Mh||t.$$typeof===Nh||t.$$typeof===B3||t.$$typeof===F3||t.$$typeof===$3||t.$$typeof===N3)};Je.typeOf=Zn;(function(t){t.exports=Je})(M3);var Ox=Mv,z3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},G3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tx={};Tx[Ox.ForwardRef]=z3;Tx[Ox.Memo]=G3;var iw={},U3={get exports(){return iw},set exports(t){iw=t}},Ze={};/**
* @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 h0=Symbol.for("react.element"),p0=Symbol.for("react.portal"),zh=Symbol.for("react.fragment"),Gh=Symbol.for("react.strict_mode"),Uh=Symbol.for("react.profiler"),jh=Symbol.for("react.provider"),Wh=Symbol.for("react.context"),j3=Symbol.for("react.server_context"),Hh=Symbol.for("react.forward_ref"),Vh=Symbol.for("react.suspense"),qh=Symbol.for("react.suspense_list"),Kh=Symbol.for("react.memo"),Yh=Symbol.for("react.lazy"),W3=Symbol.for("react.offscreen"),Rx;Rx=Symbol.for("react.module.reference");function yr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case h0:switch(t=t.type,t){case zh:case Uh:case Gh:case Vh:case qh:return t;default:switch(t=t&&t.$$typeof,t){case j3:case Wh:case Hh:case Yh:case Kh:case jh:return t;default:return e}}case p0:return e}}}Ze.ContextConsumer=Wh;Ze.ContextProvider=jh;Ze.Element=h0;Ze.ForwardRef=Hh;Ze.Fragment=zh;Ze.Lazy=Yh;Ze.Memo=Kh;Ze.Portal=p0;Ze.Profiler=Uh;Ze.StrictMode=Gh;Ze.Suspense=Vh;Ze.SuspenseList=qh;Ze.isAsyncMode=function(){return!1};Ze.isConcurrentMode=function(){return!1};Ze.isContextConsumer=function(t){return yr(t)===Wh};Ze.isContextProvider=function(t){return yr(t)===jh};Ze.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===h0};Ze.isForwardRef=function(t){return yr(t)===Hh};Ze.isFragment=function(t){return yr(t)===zh};Ze.isLazy=function(t){return yr(t)===Yh};Ze.isMemo=function(t){return yr(t)===Kh};Ze.isPortal=function(t){return yr(t)===p0};Ze.isProfiler=function(t){return yr(t)===Uh};Ze.isStrictMode=function(t){return yr(t)===Gh};Ze.isSuspense=function(t){return yr(t)===Vh};Ze.isSuspenseList=function(t){return yr(t)===qh};Ze.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===zh||t===Uh||t===Gh||t===Vh||t===qh||t===W3||typeof t=="object"&&t!==null&&(t.$$typeof===Yh||t.$$typeof===Kh||t.$$typeof===jh||t.$$typeof===Wh||t.$$typeof===Hh||t.$$typeof===Rx||t.getModuleId!==void 0)};Ze.typeOf=yr;(function(t){t.exports=Ze})(U3);function H3(){const t=O3();let e=null,n=null;return{clear(){e=null,n=null},notify(){t(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=e;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:e=a,function(){!i||e===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}const aw={notify(){},get:()=>[]};function V3(t,e){let n,r=aw;function i(p){return c(),r.subscribe(p)}function a(){r.notify()}function s(){h.onStateChange&&h.onStateChange()}function u(){return Boolean(n)}function c(){n||(n=e?e.addNestedSub(s):t.subscribe(s),r=H3())}function f(){n&&(n(),n=void 0,r.clear(),r=aw)}const h={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return h}const q3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",K3=q3?be.useLayoutEffect:be.useEffect;function Y3({store:t,context:e,children:n,serverState:r}){const i=be.useMemo(()=>{const u=V3(t);return{store:t,subscription:u,getServerState:r?()=>r:void 0}},[t,r]),a=be.useMemo(()=>t.getState(),[t]);K3(()=>{const{subscription:u}=i;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==t.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[i,a]);const s=e||Yd;return As.createElement(s.Provider,{value:i},n)}A3(Lv.useSyncExternalStoreWithSelector);E3(xd.unstable_batchedUpdates);function sd(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sd=function(n){return typeof n}:sd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sd(t)}function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ow(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q3(t,e,n){return e&&ow(t.prototype,e),n&&ow(t,n),t}function J3(t,e){return e&&(sd(e)==="object"||typeof e=="function")?e:ld(t)}fu
`;if(!(0,t.isString)(T)||T.length<1)throw new Error(`${ie} Name (key) of reducer is required. ${W}`);if(!j||!j.length)return;const{duplicates:Y,subsets:Q}=(0,t.findDuplicatesAndSubsets)(j);if(Y.length>1)throw new Error(`${ie} Duplicated paths.
${JSON.stringify(Y)}
${W}`);if(Q.length>1)throw new Error(`${ie} You are trying to persist an entire property and also some of its subset.
${JSON.stringify(Q)}
${W}`)};t.singleTransformValidator=U;const X=function(j){if(!(0,t.isArray)(j))return;const T=(j==null?void 0:j.map($=>$.deepPersistKey).filter($=>$))||[];if(T.length){const $=T.filter((V,ie)=>T.indexOf(V)!==ie);if($.length)throw new Error(`${e.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($)}`)}};t.transformsValidator=X;const K=function({whitelist:j,blacklist:T}){if(j&&j.length&&T&&T.length)throw new Error(`${e.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(j){const{duplicates:$,subsets:V}=(0,t.findDuplicatesAndSubsets)(j);(0,t.throwError)({duplicates:$,subsets:V},"whitelist")}if(T){const{duplicates:$,subsets:V}=(0,t.findDuplicatesAndSubsets)(T);(0,t.throwError)({duplicates:$,subsets:V},"blacklist")}};t.configValidator=K;const te=function({duplicates:j,subsets:T},$){if(j.length)throw new Error(`${e.PACKAGE_NAME}: duplicates of paths found in your ${$}.
${JSON.stringify(j)}`);if(T.length)throw new Error(`${e.PACKAGE_NAME}: subsets of some parent keys found in your ${$}. You must decide if you want to persist an entire path or its specific subset.
${JSON.stringify(T)}`)};t.throwError=te;const ce=function(j){return(0,t.isArray)(j)?j.filter(t.unique).reduce((T,$)=>{const V=$.split("."),ie=V[0],W=V.slice(1).join(".")||void 0,Y=T.filter(oe=>Object.keys(oe)[0]===ie)[0],Q=Y?Object.values(Y)[0]:void 0;return Y||T.push({[ie]:W?[W]:void 0}),Y&&!Q&&W&&(Y[ie]=[W]),Y&&Q&&W&&Q.push(W),T},[]):[]};t.getRootKeysGroup=ce})(Xx);(function(t){var e=yn&&yn.__rest||function(p,g){var y={};for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&g.indexOf(v)<0&&(y[v]=p[v]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,v=Object.getOwnPropertySymbols(p);w<v.length;w++)g.indexOf(v[w])<0&&Object.prototype.propertyIsEnumerable.call(p,v[w])&&(y[v[w]]=p[v[w]]);return y};Object.defineProperty(t,"__esModule",{value:!0}),t.getPersistConfig=t.getTransforms=t.createBlacklist=t.createWhitelist=t.autoMergeDeep=void 0;const n=Xx,r=po,i=E0,a=function(p,g,y={}){const v=y.whitelist||null,w=y.blacklist||null;function x(_){return!!(v&&v.indexOf(_)===-1||w&&w.indexOf(_)!==-1)}return{in:(_,S,C)=>!x(S)&&p?p(_,S,C):_,out:(_,S,C)=>!x(S)&&g?g(_,S,C):_,deepPersistKey:v&&v[0]}},s=(p,g,y,{debug:v,whitelist:w,blacklist:x,transforms:_})=>{if(w||x)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)(_);const S=(0,n.cloneDeep)(y);let C=p;if(C&&(0,n.isObjectLike)(C)){const O=(0,n.difference)(g,y);(0,n.isEmpty)(O)||(C=(0,n.mergeDeep)(p,O,{preserveUndefined:!0}),v&&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(O)}`)),Object.keys(C).forEach(I=>{if(I!=="_persist"){if((0,n.isObjectLike)(S[I])){S[I]=(0,n.mergeDeep)(S[I],C[I]);return}S[I]=C[I]}})}return v&&C&&(0,n.isObjectLike)(C)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(C)}`),S};t.autoMergeDeep=s;const u=(p,g)=>((0,n.singleTransformValidator)(g,p,i.ConfigType.WHITELIST),a(y=>{if(!g||!g.length)return y;let v=null,w;return g.forEach(x=>{const _=x.split(".");w=(0,n.path)(y,_),typeof w>"u"&&(0,n.isIntegerString)(_[_.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const S=(0,n.assocPath)(_,w),C=(0,n.isArray)(S)?[]:{};v=(0,n.mergeDeep)(v||C,S,{preservePlaceholder:!0})}),v||y},y=>(0,n.preserveUndefined)(y,g,i.ConfigType.WHITELIST),{whitelist:[p]}));t.createWhitelist=u;const c=(p,g)=>((0,n.singleTransformValidator)(g,p,i.ConfigType.BLACKLIST),a(y=>{if(!g||!g.length)return;const v=(0,n.preserveUndefined)(y,g,i.ConfigType.BLACKLIST,!0);return g.map(x=>x.split(".")).reduce((x,_)=>(0,n.dissocPath)(x,_),v)},y=>(0,n.preserveUndefined)(y,g,i.ConfigType.BLACKLIST),{whitelist:[p]}));t.createBlacklist=c;const f=function(p,g){return g.map(y=>{const v=Object.keys(y)[0],w=y[v];return p===i.ConfigType.WHITELIST?(0,t.createWhitelist)(v,w):(0,t.createBlacklist)(v,w)})};t.getTransforms=f;const h=p=>{var{key:g,whitelist:y,blacklist:v,storage:w,transforms:x,rootReducer:_}=p,S=e(p,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:y,blacklist:v});const C=(0,n.getRootKeysGroup)(y),O=(0,n.getRootKeysGroup)(v),I=Object.keys(_(void 0,{type:""})),L=C.map(ce=>Object.keys(ce)[0]),D=O.map(ce=>Object.keys(ce)[0]),U=I.filter(ce=>L.indexOf(ce)===-1&&D.indexOf(ce)===-1),X=(0,t.getTransforms)(i.ConfigType.WHITELIST,C),K=(0,t.getTransforms)(i.ConfigType.BLACKLIST,O),te=(0,n.isArray)(y)?U.map(ce=>(0,t.createBlacklist)(ce)):[];return Object.assign(Object.assign({},S),{key:g,storage:w,transforms:[...X,...K,...te,...x||[]],stateReconciler:t.autoMergeDeep})};t.getPersistConfig=h})(Yx);const Ef=(t,e)=>Math.floor(t/e)*e,va=(t,e)=>Math.round(t/e)*e;var _t={},g5={get exports(){return _t},set exports(t){_t=t}};/**
* @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(t,e){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",p=1,g=2,y=4,v=1,w=2,x=1,_=2,S=4,C=8,O=16,I=32,L=64,D=128,U=256,X=512,K=30,te="...",ce=800,j=16,T=1,$=2,V=3,ie=1/0,W=9007199254740991,Y=17976931348623157e292,Q=0/0,oe=4294967295,ve=oe-1,we=oe>>>1,Ue=[["ary",D],["bind",x],["bindKey",_],["curry",C],["curryRight",O],["flip",X],["partial",I],["partialRight",L],["rearg",U]],At="[object Arguments]",me="[object Array]",qt="[object AsyncFunction]",Bt="[object Boolean]",bn="[object Date]",wr="[object DOMException]",Ft="[object Error]",xe="[object Function]",Wr="[object GeneratorFunction]",Et="[object Map]",gi="[object Number]",Xs="[object Null]",Mn="[object Object]",Fa="[object Promise]",Qs="[object Proxy]",er="[object RegExp]",Kt="[object Set]",Dn="[object String]",bt="[object Symbol]",$a="[object Undefined]",Hr="[object WeakMap]",Co="[object WeakSet]",Vr="[object ArrayBuffer]",br="[object DataView]",xo="[object Float32Array]",ko="[object Float64Array]",Po="[object Int8Array]",Eo="[object Int16Array]",Oo="[object Int32Array]",Js="[object Uint8Array]",Zs="[object Uint8ClampedArray]",Cr="[object Uint16Array]",Ki="[object Uint32Array]",sp=/\b__p \+= '';/g,tc=/\b(__p \+=) '' \+/g,lp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,el=/&(?:amp|lt|gt|quot|#39);/g,Yi=/[&<>"']/g,up=RegExp(el.source),mi=RegExp(Yi.source),cp=/<%-([\s\S]+?)%>/g,fp=/<%([\s\S]+?)%>/g,nc=/<%=([\s\S]+?)%>/g,dp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hp=/^\w*$/,xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tl=/[\\^$.*+?()[\]{}|]/g,pp=RegExp(tl.source),nl=/^\s+/,gp=/\s/,mp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xi=/\{\n\/\* \[wrapped with (.+)\] \*/,vp=/,? & /,yp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sp=/[()=,{}\[\]\/\s]/,_p=/\\(\\)?/g,wp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vi=/\w*$/,bp=/^[-+]0x[0-9a-f]+$/i,Cp=/^0b[01]+$/i,xp=/^\[object .+?Constructor\]$/,kp=/^0o[0-7]+$/i,Pp=/^(?:0|[1-9]\d*)$/,Ep=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qi=/($^)/,Op=/['\n\r\u2028\u2029\\]/g,yi="\\ud800-\\udfff",rl="\\u0300-\\u036f",Tp="\\ufe20-\\ufe2f",To="\\u20d0-\\u20ff",il=rl+Tp+To,rc="\\u2700-\\u27bf",ic="a-z\\xdf-\\xf6\\xf8-\\xff",Rp="\\xac\\xb1\\xd7\\xf7",ac="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ap="\\u2000-\\u206f",Ip=" \\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",oc="A-Z\\xc0-\\xd6\\xd8-\\xde",sc="\\ufe0e\\ufe0f",lc=Rp+ac+Ap+Ip,al="[']",Lp="["+yi+"]",uc="["+lc+"]",Ro="["+il+"]",cc="\\d+",Ao="["+rc+"]",Io="["+ic+"]",fc="[^"+yi+lc+cc+rc+ic+oc+"]",ol="\\ud83c[\\udffb-\\udfff]",dc="(?:"+Ro+"|"+ol+")",hc="[^"+yi+"]",sl="(?:\\ud83c[\\udde6-\\uddff]){2}",ll="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+oc+"]",pc="\\u200d",gc="(?:"+Io+"|"+fc+")",Mp="(?:"+Si+"|"+fc+")",Lo="(?:"+al+"(?:d|ll|m|re|s|t|ve))?",mc="(?:"+al+"(?:D|LL|M|RE|S|T|VE))?",vc=dc+"?",yc="["+sc+"]?",Mo="(?:"+pc+"(?:"+[hc,sl,ll].join("|")+")"+yc+vc+")*",ul="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Do=yc+vc+Mo,Dp="(?:"+[Ao,sl,ll].join("|")+")"+Do,Sc="(?:"+[hc+Ro+"?",Ro,sl,ll,Lp].join("|")+")",fl=RegExp(al,"g"),_c=RegExp(Ro,"g"),kr=RegExp(ol+"(?="+ol+")|"+Sc+Do,"g"),za=RegExp([Si+"?"+Io+"+"+Lo+"(?="+[uc,Si,"$"].join("|")+")",Mp+"+"+mc+"(?="+[uc,Si+gc,"$"].join("|")+")",Si+"?"+gc+"+"+Lo,Si+"+"+mc,cl,ul,cc,Dp].join("|"),"g"),Np=RegExp("["+pc+yi+il+sc+"]"),wc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bp=["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"],bc=-1,nt={};nt[x
/* [wrapped with `+l+`] */
`)}function uT(o){return ke(o)||Ka(o)||!!(l1&&o&&o[l1])}function ki(o,l){var d=typeof o;return l=l??W,!!l&&(d=="number"||d!="symbol"&&Pp.test(o))&&o>-1&&o%1==0&&o<l}function pn(o,l,d){if(!ht(d))return!1;var m=typeof l;return(m=="number"?xn(d)&&ki(l,d.length):m=="string"&&l in d)?Or(d[l],o):!1}function Cg(o,l){if(ke(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||$n(o)?!0:hp.test(o)||!dp.test(o)||l!=null&&o in rt(l)}function cT(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function xg(o){var l=Jc(o),d=k[l];if(typeof d!="function"||!(l in Me.prototype))return!1;if(o===d)return!0;var m=_g(d);return!!m&&o===m[0]}function fT(o){return!!i1&&i1 in o}var dT=Oc?Pi:Gg;function kl(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||Uo;return o===d}function iS(o){return o===o&&!ht(o)}function aS(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==n||o in rt(d))}}function hT(o){var l=af(o,function(m){return d.size===f&&d.clear(),m}),d=l.cache;return l}function pT(o,l){var d=o[1],m=l[1],b=d|m,P=b<(x|_|D),R=m==D&&d==C||m==D&&d==U&&o[7].length<=l[8]||m==(D|U)&&l[7].length<=l[8]&&d==C;if(!(P||R))return o;m&x&&(o[2]=l[2],b|=d&x?0:S);var M=l[3];if(M){var z=o[3];o[3]=z?G1(z,M,l[4]):M,o[4]=z?ea(o[3],h):l[4]}return M=l[5],M&&(z=o[5],o[5]=z?U1(z,M,l[6]):M,o[6]=z?ea(o[5],h):l[6]),M=l[7],M&&(o[7]=M),m&D&&(o[8]=o[8]==null?l[8]:rn(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=b,o}function gT(o){var l=[];if(o!=null)for(var d in rt(o))l.push(d);return l}function mT(o){return Rc.call(o)}function oS(o,l,d){return l=Lt(l===n?o.length-1:l,0),function(){for(var m=arguments,b=-1,P=Lt(m.length-l,0),R=q(P);++b<P;)R[b]=m[l+b];b=-1;for(var M=q(l+1);++b<l;)M[b]=m[b];return M[l]=d(R),Nn(o,this,M)}}function sS(o,l){return l.length<2?o:Ha(o,ar(l,0,-1))}function vT(o,l){for(var d=o.length,m=rn(l.length,d),b=Cn(o);m--;){var P=l[m];o[m]=ki(P,d)?b[P]:n}return o}function kg(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var lS=cS(A1),Pl=IE||function(o,l){return Pe.setTimeout(o,l)},Pg=cS(zO);function uS(o,l,d){var m=l+"";return Pg(o,lT(m,yT(aT(m),d)))}function cS(o){var l=0,d=0;return function(){var m=NE(),b=j-(m-d);if(d=m,b>0){if(++l>=ce)return arguments[0]}else l=0;return o.apply(n,arguments)}}function ef(o,l){var d=-1,m=o.length,b=m-1;for(l=l===n?m:l;++d<l;){var P=lg(d,b),R=o[P];o[P]=o[d],o[d]=R}return o.length=l,o}var fS=hT(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(xr,function(d,m,b,P){l.push(b?P.replace(_p,"$1"):m||d)}),l});function Yr(o){if(typeof o=="string"||$n(o))return o;var l=o+"";return l=="0"&&1/o==-ie?"-0":l}function qa(o){if(o!=null){try{return Tc.call(o)}catch{}try{return o+""}catch{}}return""}function yT(o,l){return tr(Ue,function(d){var m="_."+d[0];l&d[1]&&!xc(o,m)&&o.push(m)}),o.sort()}function dS(o){if(o instanceof Me)return o.clone();var l=new rr(o.__wrapped__,o.__chain__);return l.__actions__=Cn(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function ST(o,l,d){(d?pn(o,l,d):l===n)?l=1:l=Lt(Ee(l),0);var m=o==null?0:o.length;if(!m||l<1)return[];for(var b=0,P=0,R=q(Nc(m/l));b<m;)R[P++]=ar(o,b,b+=l);return R}function _T(o){for(var l=-1,d=o==null?0:o.length,m=0,b=[];++l<d;){var P=o[l];P&&(b[m++]=P)}return b}function wT(){var o=arguments.length;if(!o)return[];for(var l=q(o-1),d=arguments[0],m=o;m--;)l[m-1]=arguments[m];return Zi(ke(d)?Cn(d):[d],Xt(l,1))}var bT=Re(function(o,l){return Ct(o)?_l(o,Xt(l,1,Ct,!0)):[]}),CT=Re(function(o,l){var d=or(l);return Ct(d)&&(d=n),Ct(o)?_l(o,Xt(l,1,Ct,!0),ye(d,2)):[]}),xT=Re(function(o,l){var d=or(l);return Ct(d)&&(d=n),Ct(o)?_l(o,Xt(l,1,Ct,!0),n,d):[]});function kT(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===n?1:Ee(l),ar(o,l<0?0:l,m)):[]}function PT(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===n?1:Ee(l),l=m-l,ar(o,0,l<0?0:l)):[]}function ET(o,l){return o&&o.length?Vc(o,ye(l,3),!0,!0):[]}function OT(o,l){return o&&o.length?Vc(o,ye(l,3),!0):[]}function TT(o,l,d,m){var b=o==null?0:o.length;return b?(d&&typeof d!="nu
`;o.replace(ue,function(_e,Le,Ne,zn,gn,Gn){return Ne||(Ne=zn),ne+=o.slice(Z,Gn).replace(Op,dE),Le&&(M=!0,ne+=`' +
__e(`+Le+`) +
'`),gn&&(z=!0,ne+=`';
`+gn+`;
__p += '`),Ne&&(ne+=`' +
((__t = (`+Ne+`)) == null ? '' : __t) +
'`),Z=Gn+_e.length,_e}),ne+=`';
`;var Se=Xe.call(l,"variable")&&l.variable;if(!Se)ne=`with (obj) {
`+ne+`
}
`;else if(Sp.test(Se))throw new Ce(u);ne=(z?ne.replace(sp,""):ne).replace(tc,"$1").replace(lp,"$1;"),ne="function("+(Se||"obj")+`) {
`+(Se?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ne+`return __p
}`;var Oe=WS(function(){return je(P,ge+"return "+ne).apply(n,R)});if(Oe.source=ne,Ag(Oe))throw Oe;return Oe}function FI(o){return Ve(o).toLowerCase()}function $I(o){return Ve(o).toUpperCase()}function zI(o,l,d){if(o=Ve(o),o&&(d||l===n))return Z0(o);if(!o||!(l=Fn(l)))return o;var m=Pr(o),b=Pr(l),P=e1(m,b),R=t1(m,b)+1;return aa(m,P,R).join("")}function GI(o,l,d){if(o=Ve(o),o&&(d||l===n))return o.slice(0,r1(o)+1);if(!o||!(l=Fn(l)))return o;var m=Pr(o),b=t1(m,Pr(l))+1;return aa(m,0,b).join("")}function UI(o,l,d){if(o=Ve(o),o&&(d||l===n))return o.replace(nl,"");if(!o||!(l=Fn(l)))return o;var m=Pr(o),b=e1(m,Pr(l));return aa(m,b).join("")}function jI(o,l){var d=K,m=te;if(ht(l)){var b="separator"in l?l.separator:b;d="length"in l?Ee(l.length):d,m="omission"in l?Fn(l.omission):m}o=Ve(o);var P=o.length;if($o(o)){var R=Pr(o);P=R.length}if(d>=P)return o;var M=d-zo(m);if(M<1)return m;var z=R?aa(R,0,M).join(""):o.slice(0,M);if(b===n)return z+m;if(R&&(M+=z.length-M),Ig(b)){if(o.slice(M).search(b)){var Z,ee=z;for(b.global||(b=Kp(b.source,Ve(vi.exec(b))+"g")),b.lastIndex=0;Z=b.exec(ee);)var ne=Z.index;z=z.slice(0,ne===n?M:ne)}}else if(o.indexOf(Fn(b),M)!=M){var ue=z.lastIndexOf(b);ue>-1&&(z=z.slice(0,ue))}return z+m}function WI(o){return o=Ve(o),o&&up.test(o)?o.replace(el,SE):o}var HI=qo(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),Dg=H1("toUpperCase");function jS(o,l,d){return o=Ve(o),l=d?n:l,l===n?pE(o)?bE(o):aE(o):o.match(l)||[]}var WS=Re(function(o,l){try{return Nn(o,n,l)}catch(d){return Ag(d)?d:new Ce(d)}}),VI=xi(function(o,l){return tr(l,function(d){d=Yr(d),bi(o,d,Tg(o[d],o))}),o});function qI(o){var l=o==null?0:o.length,d=ye();return o=l?ut(o,function(m){if(typeof m[1]!="function")throw new nr(s);return[d(m[0]),m[1]]}):[],Re(function(m){for(var b=-1;++b<l;){var P=o[b];if(Nn(P[0],this,m))return Nn(P[1],this,m)}})}function KI(o){return SO(ir(o,p))}function Ng(o){return function(){return o}}function YI(o,l){return o==null||o!==o?l:o}var XI=q1(),QI=q1(!0);function Pn(o){return o}function Bg(o){return C1(typeof o=="function"?o:ir(o,p))}function JI(o){return k1(ir(o,p))}function ZI(o,l){return P1(o,ir(l,p))}var eL=Re(function(o,l){return function(d){return wl(d,o,l)}}),tL=Re(function(o,l){return function(d){return wl(o,d,l)}});function Fg(o,l,d){var m=zt(l),b=jc(l,m);d==null&&!(ht(l)&&(b.length||!m.length))&&(d=l,l=o,o=this,b=jc(l,zt(l)));var P=!(ht(d)&&"chain"in d)||!!d.chain,R=Pi(o);return tr(b,function(M){var z=l[M];o[M]=z,R&&(o.prototype[M]=function(){var Z=this.__chain__;if(P||Z){var ee=o(this.__wrapped__),ne=ee.__actions__=Cn(this.__actions__);return ne.push({func:z,args:arguments,thisArg:o}),ee.__chain__=Z,ee}return z.apply(o,Zi([this.value()],arguments))})}),o}function nL(){return Pe._===this&&(Pe._=OE),this}function $g(){}function rL(o){return o=Ee(o),Re(function(l){return E1(l,o)})}var iL=mg(ut),aL=mg(K0),oL=mg(Gp);function HS(o){return Cg(o)?Up(Yr(o)):NO(o)}function sL(o){return function(l){return o==null?n:Ha(o,l)}}var lL=Y1(),uL=Y1(!0);function zg(){return[]}function Gg(){return!1}function cL(){return{}}function fL(){return""}function dL(){return!0}function hL(o,l){if(o=Ee(o),o<1||o>W)return[];var d=oe,m=rn(o,oe);l=ye(l),o-=oe;for(var b=Hp(m,l);++d<o;)l(d);return b}function pL(o){return ke(o)?ut(o,Yr):$n(o)?[o]:Cn(fS(Ve(o)))}function gL(o){var l=++PE;return Ve(o)+l}var mL=Yc(function(o,l){return o+l},0),vL=vg("ceil"),yL=Yc(function(o,l){return o/l},1),SL=vg("floor");function _L(o){return o&&o.length?Uc(o,Pn,ng):n}function wL(o,l){return o&&o.length?Uc(o,ye(l,2),ng):n}function bL(o){return Q0(o,Pn)}function CL(o,l){return Q0(o,ye(l,2))}function xL(o){return o&&o.length?Uc(o,Pn,og):n}function kL(o,l){return o&&o.length?Uc(o,ye(l,2),og):n}var PL=Yc(function(o,l){return o*l},1),EL=vg("round"),OL=Yc(function(o,l){return o-l},0);function TL(o){return o&&o.length?Wp(o,Pn):0}function RL(o,l){return o&&o.length?Wp(o,ye(l,2)):0}return k.after=JR,k.ary=bS,k.assign=$A,k.assignIn=NS,k.assignInWith=uf,k.assignWith=zA,k.at=GA,k.before=CS,k.bind=Tg,k.bindAll=VI,k.bindKey=xS,k.castArray=cA,k.chain=SS,k.chunk=ST,k.compact=_T,k.conca
2023-03-12 01:51:18 +00:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G5(t){return ok(t)||z5(t)||sk(t)||lk()}function Aw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Iw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Aw(Object(n),!0).forEach(function(r){Ur(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Aw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var U5={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},j5=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Sr(this,t),this.init(e,n)}return _r(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||U5,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,a){return a&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,Iw(Iw({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),ii=new j5,Aa=function(){function t(){Sr(this,t),this.observers={}}return _r(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(a){i.observers[a]=i.observers[a]||[],i.observers[a].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(c){c.apply(void 0,i)})}if(this.observers["*"]){var u=[].concat(this.observers["*"]);u.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),t}();function Bl(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function Lw(t){return t==null?"":""+t}function W5(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function O0(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function i(){return!t||typeof t=="string"}for(var a=typeof e!="string"?[].concat(e):e.split(".");a.length>1;){if(i())return{};var s=r(a.shift());!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={}}return i()?{}:{obj:t,k:r(a.shift())}}function Mw(t,e,n){var r=O0(t,e,Object),i=r.obj,a=r.k;i[a]=n}function H5(t,e,n,r){var i=O0(t,e,Object),a=i.obj,s=i.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function rh(t,e){var n=O0(t,e),r=n.obj,i=n.k;if(r)return r[i]}function Dw(t,e,n){var r=rh(t,n);return r!==void 0?r:rh(e,n)}function uk(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):uk(t[r],e[r],n):t[r]=e[r]);return t}function es(t){return t.replace(/[\-\[\]\/
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,a=this.attrs.width,s=this.attrs.height,u=a!==as&&a!==void 0,c=s!==as&&s!==void 0,f=this.padding(),h=a-f*2,p=s-f*2,g=0,y=this.wrap(),v=y!==Fb,w=y!==R$&&v,x=this.ellipsis();this.textArr=[],Lm().font=this._getContextFont();for(var _=x?this._getTextWidth(Im):0,S=0,C=e.length;S<C;++S){var O=e[S],I=this._getTextWidth(O);if(u&&I>h)for(;O.length>0;){for(var L=0,D=O.length,U="",X=0;L<D;){var K=L+D>>>1,te=O.slice(0,K+1),ce=this._getTextWidth(te)+_;ce<=h?(L=K+1,U=te,X=ce):D=K}if(U){if(w){var j,T=O[U.length],$=T===Uf||T===Nb;$&&X<=h?j=U.length:j=Math.max(U.lastIndexOf(Uf),U.lastIndexOf(Nb))+1,j>0&&(L=j,U=U.slice(0,L),X=this._getTextWidth(U))}U=U.trimRight(),this._addTextLine(U),r=Math.max(r,X),g+=i;var V=this._shouldHandleEllipsis(g);if(V){this._tryToAddEllipsisToLastLine();break}if(O=O.slice(L),O=O.trimLeft(),O.length>0&&(I=this._getTextWidth(O),I<=h)){this._addTextLine(O),g+=i,r=Math.max(r,I);break}}else break}else this._addTextLine(O),g+=i,r=Math.max(r,I),this._shouldHandleEllipsis(g)&&S<C-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&g+i>p)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(e){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,a=i!==as&&i!==void 0,s=this.padding(),u=i-s*2,c=this.wrap(),f=c!==Fb;return!f||a&&e+r>u}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,n=e!==as&&e!==void 0,r=this.padding(),i=e-r*2,a=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!a)){if(n){var u=this._getTextWidth(s.text+Im)<i;u||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Im)}}getStrokeScaleEnabled(){return!0}};vt.prototype._fillFunc=L$;vt.prototype._strokeFunc=M$;vt.prototype.className=x$;vt.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];yt(vt);A.overWriteSetter(vt,"width",I0());A.overWriteSetter(vt,"height",I0());A.addGetterSetter(vt,"fontFamily","Arial");A.addGetterSetter(vt,"fontSize",12,le());A.addGetterSetter(vt,"fontStyle",cP);A.addGetterSetter(vt,"fontVariant",cP);A.addGetterSetter(vt,"padding",0,le());A.addGetterSetter(vt,"align",uP);A.addGetterSetter(vt,"verticalAlign",k$);A.addGetterSetter(vt,"lineHeight",1,le());A.addGetterSetter(vt,"wrap",T$);A.addGetterSetter(vt,"ellipsis",!1,jr());A.addGetterSetter(vt,"letterSpacing",0,le());A.addGetterSetter(vt,"text","",qs());A.addGetterSetter(vt,"textDecoration","");var N$="",dP="normal";function hP(t){t.fillText(this.partialText,0,0)}function pP(t){t.strokeText(this.partialText,0,0)}class Nt extends re{constructor(e){super(e),this.dummyCanvas=G.createCanvasElement(),this.dataArray=[],this.dataArray=tt.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=tt.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),a=this.glyphInfo;n==="underline"&&e.beginPath();for(var s=0;s<a.length;s++){e.save();var u=a[s].p0;e.translate(u.x,u.y),e.rotate(a[s].rotation),this.partialText=a[s].text,e.fillStrokeShape(this),n==="underline"&&(s===0&&e.moveTo(0,i/2+1),e.lineTo(i,i/2+1)),e.restore()}n==="underline"&&(e.strokeStyle=r,e.lineWidth=i/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;e.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var a=n[i].p1;e.lineTo(a.x,a.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return G.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeig