Files
IPB/applications/core/interface/pagebuilder/assets/main-30bc7f27.js
T
2025-12-19 16:57:00 -08:00

79 lines
288 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var v2=Object.defineProperty;var w2=(e,t,r)=>t in e?v2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Qh=(e,t,r)=>(w2(e,typeof t!="symbol"?t+"":t,r),r);const y2="modulepreload",_2=function(e){return"/"+e},qh={},S2=function(t,r,l){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=_2(s),s in qh)return;qh[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!l)for(let y=o.length-1;y>=0;y--){const w=o[y];if(w.href===s&&(!c||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":y2,c||(m.as="script",m.crossOrigin=""),m.href=s,document.head.appendChild(m),c)return new Promise((y,w)=>{m.addEventListener("load",y),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s})};var fl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o0={exports:{}},ss={},u0={exports:{}},ge={};/**
* @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 no=Symbol.for("react.element"),C2=Symbol.for("react.portal"),E2=Symbol.for("react.fragment"),k2=Symbol.for("react.strict_mode"),L2=Symbol.for("react.profiler"),I2=Symbol.for("react.provider"),R2=Symbol.for("react.context"),T2=Symbol.for("react.forward_ref"),A2=Symbol.for("react.suspense"),O2=Symbol.for("react.memo"),P2=Symbol.for("react.lazy"),Kh=Symbol.iterator;function N2(e){return e===null||typeof e!="object"?null:(e=Kh&&e[Kh]||e["@@iterator"],typeof e=="function"?e:null)}var s0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a0=Object.assign,c0={};function $i(e,t,r){this.props=e,this.context=t,this.refs=c0,this.updater=r||s0}$i.prototype.isReactComponent={};$i.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")};$i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f0(){}f0.prototype=$i.prototype;function mf(e,t,r){this.props=e,this.context=t,this.refs=c0,this.updater=r||s0}var vf=mf.prototype=new f0;vf.constructor=mf;a0(vf,$i.prototype);vf.isPureReactComponent=!0;var Yh=Array.isArray,d0=Object.prototype.hasOwnProperty,wf={current:null},p0={key:!0,ref:!0,__self:!0,__source:!0};function h0(e,t,r){var l,o={},s=null,c=null;if(t!=null)for(l in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)d0.call(t,l)&&!p0.hasOwnProperty(l)&&(o[l]=t[l]);var f=arguments.length-2;if(f===1)o.children=r;else if(1<f){for(var d=Array(f),m=0;m<f;m++)d[m]=arguments[m+2];o.children=d}if(e&&e.defaultProps)for(l in f=e.defaultProps,f)o[l]===void 0&&(o[l]=f[l]);return{$$typeof:no,type:e,key:s,ref:c,props:o,_owner:wf.current}}function M2(e,t){return{$$typeof:no,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yf(e){return typeof e=="object"&&e!==null&&e.$$typeof===no}function B2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Zh=/\/+/g;function Ga(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B2(""+e.key):t.toString(36)}function Su(e,t,r,l,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case no:case C2:c=!0}}if(c)return c=e,o=o(c),e=l===""?"."+Ga(c,0):l,Yh(o)?(r="",e!=null&&(r=e.replace(Zh,"$&/")+"/"),Su(o,t,r,"",function(m){return m})):o!=null&&(yf(o)&&(o=M2(o,r+(!o.key||c&&c.key===o.key?"":(""+o.key).replace(Zh,"$&/")+"/")+e)),t.push(o)),1;if(c=0,l=l===""?".":l+":",Yh(e))for(var f=0;f<e.length;f++){s=e[f];var d=l+Ga(s,f);c+=Su(s,t,r,d,o)}else if(d=N2(e),typeof d=="function")for(e=d.call(e),f=0;!(s=e.next()).done;)s=s.value,d=l+Ga(s,f++),c+=Su(s,t,r,d,o);else if(s==="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 c}function nu(e,t,r){if(e==null)return e;var l=[],o=0;return Su(e,l,"","",function(s){return t.call(r,s,o++)}),l}function W2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wt={current:null},xu={transition:null},z2={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:xu,ReactCurrentOwner:wf};ge.Children={map:nu,forEach:function(e,t,r){nu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return nu(e,function(){t++}),t},toArray:function(e){return nu(e,function(t){return t})||[]},only:function(e){if(!yf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ge.Component=$i;ge.Fragment=E2;ge.Profiler=L2;ge.PureComponent=mf;ge.StrictMode=k2;ge.Suspense=A2;ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z2;ge.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=a0({},e.props),o=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=wf.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(d in t)d0.call(t,d)&&!p0.hasOwnProperty(d)&&(l[d]=t[d]===void 0&&f!==void 0?f[d]:t[d])}var d=arguments.length-2;if(d===1)l.children=r;else if(1<d){f=Array(d);for(var m=0;m<d;m++)f[m]=arguments[m+2];l.children=f}return{$$typeof:no,type:e.type,key:o,ref:s,props:l,_owner:c}};ge.createContext=function(e){return e={$$typeof:R2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:I2,_context:e},e.Consumer=e};ge.createElement=h0;ge.createFactory=function(e){var t=h0.bind(null,e);return t.type=e,t};ge.createRef=function(){return{current:null}};ge.forwardRef=function(e){return{$$typeof:T2,render:e}};ge.isValidElement=yf;ge.lazy=function(e){return{$$typeof:P2,_payload:{_status:-1,_result:e},_init:W2}};ge.memo=function(e,t){return{$$typeof:O2,type:e,compare:t===void 0?null:t}};ge.startTransition=function(e){var t=xu.transition;xu.transition={};try{e()}finally{xu.transition=t}};ge.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ge.useCallback=function(e,t){return wt.current.useCallback(e,t)};ge.useContext=function(e){return wt.current.useContext(e)};ge.useDebugValue=function(){};ge.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};ge.useEffect=function(e,t){return wt.current.useEffect(e,t)};ge.useId=function(){return wt.current.useId()};ge.useImperativeHandle=function(e,t,r){return wt.current.useImperativeHandle(e,t,r)};ge.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};ge.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};ge.useMemo=function(e,t){return wt.current.useMemo(e,t)};ge.useReducer=function(e,t,r){return wt.current.useReducer(e,t,r)};ge.useRef=function(e){return wt.current.useRef(e)};ge.useState=function(e){return wt.current.useState(e)};ge.useSyncExternalStore=function(e,t,r){return wt.current.useSyncExternalStore(e,t,r)};ge.useTransition=function(){return wt.current.useTransition()};ge.version="18.2.0";u0.exports=ge;var X=u0.exports;const D2=x2(X);/**
* @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 $2=X,F2=Symbol.for("react.element"),U2=Symbol.for("react.fragment"),j2=Object.prototype.hasOwnProperty,H2=$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V2={key:!0,ref:!0,__self:!0,__source:!0};function g0(e,t,r){var l,o={},s=null,c=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(c=t.ref);for(l in t)j2.call(t,l)&&!V2.hasOwnProperty(l)&&(o[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps,t)o[l]===void 0&&(o[l]=t[l]);return{$$typeof:F2,type:e,key:s,ref:c,props:o,_owner:H2.current}}ss.Fragment=U2;ss.jsx=g0;ss.jsxs=g0;o0.exports=ss;var T=o0.exports,yc={},m0={exports:{}},Ft={},v0={exports:{}},w0={};/**
* @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($,Q){var G=$.length;$.push(Q);e:for(;0<G;){var Z=G-1>>>1,we=$[Z];if(0<o(we,Q))$[Z]=Q,$[G]=we,G=Z;else break e}}function r($){return $.length===0?null:$[0]}function l($){if($.length===0)return null;var Q=$[0],G=$.pop();if(G!==Q){$[0]=G;e:for(var Z=0,we=$.length,He=we>>>1;Z<He;){var Ee=2*(Z+1)-1,ft=$[Ee],dt=Ee+1,Tt=$[dt];if(0>o(ft,G))dt<we&&0>o(Tt,ft)?($[Z]=Tt,$[dt]=G,Z=dt):($[Z]=ft,$[Ee]=G,Z=Ee);else if(dt<we&&0>o(Tt,G))$[Z]=Tt,$[dt]=G,Z=dt;else break e}}return Q}function o($,Q){var G=$.sortIndex-Q.sortIndex;return G!==0?G:$.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],m=[],y=1,w=null,x=3,k=!1,O=!1,I=!1,P=typeof setTimeout=="function"?setTimeout:null,v=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 C($){for(var Q=r(m);Q!==null;){if(Q.callback===null)l(m);else if(Q.startTime<=$)l(m),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=r(m)}}function M($){if(I=!1,C($),!O)if(r(d)!==null)O=!0,$e(z);else{var Q=r(m);Q!==null&&le(M,Q.startTime-$)}}function z($,Q){O=!1,I&&(I=!1,v(B),B=-1),k=!0;var G=x;try{for(C(Q),w=r(d);w!==null&&(!(w.expirationTime>Q)||$&&!ee());){var Z=w.callback;if(typeof Z=="function"){w.callback=null,x=w.priorityLevel;var we=Z(w.expirationTime<=Q);Q=e.unstable_now(),typeof we=="function"?w.callback=we:w===r(d)&&l(d),C(Q)}else l(d);w=r(d)}if(w!==null)var He=!0;else{var Ee=r(m);Ee!==null&&le(M,Ee.startTime-Q),He=!1}return He}finally{w=null,x=G,k=!1}}var U=!1,A=null,B=-1,b=5,H=-1;function ee(){return!(e.unstable_now()-H<b)}function ve(){if(A!==null){var $=e.unstable_now();H=$;var Q=!0;try{Q=A(!0,$)}finally{Q?ie():(U=!1,A=null)}}else U=!1}var ie;if(typeof _=="function")ie=function(){_(ve)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,se=ce.port2;ce.port1.onmessage=ve,ie=function(){se.postMessage(null)}}else ie=function(){P(ve,0)};function $e($){A=$,U||(U=!0,ie())}function le($,Q){B=P(function(){$(e.unstable_now())},Q)}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($){$.callback=null},e.unstable_continueExecution=function(){O||k||(O=!0,$e(z))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function($){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var G=x;x=Q;try{return $()}finally{x=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Q){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var G=x;x=$;try{return Q()}finally{x=G}},e.unstable_scheduleCallback=function($,Q,G){var Z=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Z+G:Z):G=Z,$){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=G+we,$={id:y++,callback:Q,priorityLevel:$,startTime:G,expirationTime:we,sortIndex:-1},G>Z?($.sortIndex=G,t(m,$),r(d)===null&&$===r(m)&&(I?(v(B),B=-1):I=!0,le(M,G-Z))):($.sortIndex=we,t(d,$),O||k||(O=!0,$e(z))),$},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function($){var Q=x;return function(){var G=x;x=Q;try{return $.apply(this,arguments)}finally{x=G}}}})(w0);v0.exports=w0;var G2=v0.exports;/**
* @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 y0=X,$t=G2;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 _0=new Set,zl={};function qr(e,t){Pi(e,t),Pi(e+"Capture",t)}function Pi(e,t){for(zl[e]=t,e=0;e<t.length;e++)_0.add(t[e])}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=Object.prototype.hasOwnProperty,Q2=/^[: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]*$/,Xh={},Jh={};function q2(e){return _c.call(Jh,e)?!0:_c.call(Xh,e)?!1:Q2.test(e)?Jh[e]=!0:(Xh[e]=!0,!1)}function K2(e,t,r,l){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y2(e,t,r,l){if(t===null||typeof t>"u"||K2(e,t,r,l))return!0;if(l)return!1;if(r!==null)switch(r.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 yt(e,t,r,l,o,s,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=c}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new yt(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){it[e]=new yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var _f=/[\-:]([a-z])/g;function Sf(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-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_f,Sf);it[t]=new yt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_f,Sf);it[t]=new yt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_f,Sf);it[t]=new yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new yt(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xf(e,t,r,l){var o=it.hasOwnProperty(t)?it[t]:null;(o!==null?o.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Y2(t,r,o,l)&&(r=null),l||o===null?q2(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,l=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,l?e.setAttributeNS(l,t,r):e.setAttribute(t,r))))}var Gn=y0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ru=Symbol.for("react.element"),hi=Symbol.for("react.portal"),gi=Symbol.for("react.fragment"),Cf=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),S0=Symbol.for("react.provider"),x0=Symbol.for("react.context"),Ef=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),Cc=Symbol.for("react.suspense_list"),kf=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),C0=Symbol.for("react.offscreen"),bh=Symbol.iterator;function dl(e){return e===null||typeof e!="object"?null:(e=bh&&e[bh]||e["@@iterator"],typeof e=="function"?e:null)}var We=Object.assign,Qa;function Cl(e){if(Qa===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Qa=t&&t[1]||""}return`
`+Qa+e}var qa=!1;function Ka(e,t){if(!e||qa)return"";qa=!0;var r=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(m){var l=m}Reflect.construct(e,[],t)}else{try{t.call()}catch(m){l=m}e.call(t.prototype)}else{try{throw Error()}catch(m){l=m}e()}}catch(m){if(m&&l&&typeof m.stack=="string"){for(var o=m.stack.split(`
`),s=l.stack.split(`
`),c=o.length-1,f=s.length-1;1<=c&&0<=f&&o[c]!==s[f];)f--;for(;1<=c&&0<=f;c--,f--)if(o[c]!==s[f]){if(c!==1||f!==1)do if(c--,f--,0>f||o[c]!==s[f]){var d=`
`+o[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=c&&0<=f);break}}}finally{qa=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Cl(e):""}function Z2(e){switch(e.tag){case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 2:case 15:return e=Ka(e.type,!1),e;case 11:return e=Ka(e.type.render,!1),e;case 1:return e=Ka(e.type,!0),e;default:return""}}function Ec(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 gi:return"Fragment";case hi:return"Portal";case Sc:return"Profiler";case Cf:return"StrictMode";case xc:return"Suspense";case Cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x0:return(e.displayName||"Context")+".Consumer";case S0:return(e._context.displayName||"Context")+".Provider";case Ef:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kf:return t=e.displayName||null,t!==null?t:Ec(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return Ec(e(t))}catch{}}return null}function X2(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 Ec(t);case 8:return t===Cf?"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 _r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function J2(e){var t=E0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(c){l=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iu(e){e._valueTracker||(e._valueTracker=J2(e))}function k0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=E0(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Nu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function kc(e,t){var r=t.checked;return We({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function eg(e,t){var r=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;r=_r(t.value!=null?t.value:r),e._wrapperState={initialChecked:l,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function L0(e,t){t=t.checked,t!=null&&xf(e,"checked",t,!1)}function Lc(e,t){L0(e,t);var r=_r(t.value),l=t.type;if(r!=null)l==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ic(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ic(e,t.type,_r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tg(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ic(e,t,r){(t!=="number"||Nu(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var El=Array.isArray;function Li(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+_r(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Rc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return We({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ng(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(V(92));if(El(r)){if(1<r.length)throw Error(V(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:_r(r)}}function I0(e,t){var r=_r(t.value),l=_r(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),l!=null&&(e.defaultValue=""+l)}function rg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function R0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?R0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var lu,T0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,l,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,l,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(lu=lu||document.createElement("div"),lu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=lu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Rl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b2=["Webkit","ms","Moz","O"];Object.keys(Rl).forEach(function(e){b2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rl[t]=Rl[e]})});function A0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Rl.hasOwnProperty(e)&&Rl[e]?(""+t).trim():t+"px"}function O0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var l=r.indexOf("--")===0,o=A0(r,t[r],l);r==="float"&&(r="cssFloat"),l?e.setProperty(r,o):e[r]=o}}var eE=We({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ac(e,t){if(t){if(eE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Oc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pc=null;function Lf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nc=null,Ii=null,Ri=null;function ig(e){if(e=lo(e)){if(typeof Nc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ps(t),Nc(e.stateNode,e.type,t))}}function P0(e){Ii?Ri?Ri.push(e):Ri=[e]:Ii=e}function N0(){if(Ii){var e=Ii,t=Ri;if(Ri=Ii=null,ig(e),t)for(e=0;e<t.length;e++)ig(t[e])}}function M0(e,t){return e(t)}function B0(){}var Ya=!1;function W0(e,t,r){if(Ya)return e(t,r);Ya=!0;try{return M0(e,t,r)}finally{Ya=!1,(Ii!==null||Ri!==null)&&(B0(),N0())}}function $l(e,t){var r=e.stateNode;if(r===null)return null;var l=ps(r);if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(V(231,t,typeof r));return r}var Mc=!1;if(Un)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){Mc=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{Mc=!1}function tE(e,t,r,l,o,s,c,f,d){var m=Array.prototype.slice.call(arguments,3);try{t.apply(r,m)}catch(y){this.onError(y)}}var Tl=!1,Mu=null,Bu=!1,Bc=null,nE={onError:function(e){Tl=!0,Mu=e}};function rE(e,t,r,l,o,s,c,f,d){Tl=!1,Mu=null,tE.apply(nE,arguments)}function iE(e,t,r,l,o,s,c,f,d){if(rE.apply(this,arguments),Tl){if(Tl){var m=Mu;Tl=!1,Mu=null}else throw Error(V(198));Bu||(Bu=!0,Bc=m)}}function Kr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function z0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function lg(e){if(Kr(e)!==e)throw Error(V(188))}function lE(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(V(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var s=o.alternate;if(s===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===r)return lg(o),e;if(s===l)return lg(o),t;s=s.sibling}throw Error(V(188))}if(r.return!==l.return)r=o,l=s;else{for(var c=!1,f=o.child;f;){if(f===r){c=!0,r=o,l=s;break}if(f===l){c=!0,l=o,r=s;break}f=f.sibling}if(!c){for(f=s.child;f;){if(f===r){c=!0,r=s,l=o;break}if(f===l){c=!0,l=s,r=o;break}f=f.sibling}if(!c)throw Error(V(189))}}if(r.alternate!==l)throw Error(V(190))}if(r.tag!==3)throw Error(V(188));return r.stateNode.current===r?e:t}function D0(e){return e=lE(e),e!==null?$0(e):null}function $0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$0(e);if(t!==null)return t;e=e.sibling}return null}var F0=$t.unstable_scheduleCallback,og=$t.unstable_cancelCallback,oE=$t.unstable_shouldYield,uE=$t.unstable_requestPaint,je=$t.unstable_now,sE=$t.unstable_getCurrentPriorityLevel,If=$t.unstable_ImmediatePriority,U0=$t.unstable_UserBlockingPriority,Wu=$t.unstable_NormalPriority,aE=$t.unstable_LowPriority,j0=$t.unstable_IdlePriority,as=null,Cn=null;function cE(e){if(Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(as,e,void 0,(e.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:pE,fE=Math.log,dE=Math.LN2;function pE(e){return e>>>=0,e===0?32:31-(fE(e)/dE|0)|0}var ou=64,uu=4194304;function kl(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zu(e,t){var r=e.pendingLanes;if(r===0)return 0;var l=0,o=e.suspendedLanes,s=e.pingedLanes,c=r&268435455;if(c!==0){var f=c&~o;f!==0?l=kl(f):(s&=c,s!==0&&(l=kl(s)))}else c=r&~o,c!==0?l=kl(c):s!==0&&(l=kl(s));if(l===0)return 0;if(t!==0&&t!==l&&!(t&o)&&(o=l&-l,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(l&4&&(l|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)r=31-hn(t),o=1<<r,l|=e[r],t&=~o;return l}function hE(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 gE(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-hn(s),f=1<<c,d=o[c];d===-1?(!(f&r)||f&l)&&(o[c]=hE(f,t)):d<=t&&(e.expiredLanes|=f),s&=~f}}function Wc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function H0(){var e=ou;return ou<<=1,!(ou&4194240)&&(ou=64),e}function Za(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ro(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hn(t),e[t]=r}function mE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-hn(r),s=1<<o;t[o]=0,l[o]=-1,e[o]=-1,r&=~s}}function Rf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-hn(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}var Ce=0;function V0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var G0,Tf,Q0,q0,K0,zc=!1,su=[],cr=null,fr=null,dr=null,Fl=new Map,Ul=new Map,lr=[],vE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ug(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":dr=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(t.pointerId)}}function hl(e,t,r,l,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:s,targetContainers:[o]},t!==null&&(t=lo(t),t!==null&&Tf(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function wE(e,t,r,l,o){switch(t){case"focusin":return cr=hl(cr,e,t,r,l,o),!0;case"dragenter":return fr=hl(fr,e,t,r,l,o),!0;case"mouseover":return dr=hl(dr,e,t,r,l,o),!0;case"pointerover":var s=o.pointerId;return Fl.set(s,hl(Fl.get(s)||null,e,t,r,l,o)),!0;case"gotpointercapture":return s=o.pointerId,Ul.set(s,hl(Ul.get(s)||null,e,t,r,l,o)),!0}return!1}function Y0(e){var t=zr(e.target);if(t!==null){var r=Kr(t);if(r!==null){if(t=r.tag,t===13){if(t=z0(r),t!==null){e.blockedOn=t,K0(e.priority,function(){Q0(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Dc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Pc=l,r.target.dispatchEvent(l),Pc=null}else return t=lo(r),t!==null&&Tf(t),e.blockedOn=r,!1;t.shift()}return!0}function sg(e,t,r){Cu(e)&&r.delete(t)}function yE(){zc=!1,cr!==null&&Cu(cr)&&(cr=null),fr!==null&&Cu(fr)&&(fr=null),dr!==null&&Cu(dr)&&(dr=null),Fl.forEach(sg),Ul.forEach(sg)}function gl(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,yE)))}function jl(e){function t(o){return gl(o,e)}if(0<su.length){gl(su[0],e);for(var r=1;r<su.length;r++){var l=su[r];l.blockedOn===e&&(l.blockedOn=null)}}for(cr!==null&&gl(cr,e),fr!==null&&gl(fr,e),dr!==null&&gl(dr,e),Fl.forEach(t),Ul.forEach(t),r=0;r<lr.length;r++)l=lr[r],l.blockedOn===e&&(l.blockedOn=null);for(;0<lr.length&&(r=lr[0],r.blockedOn===null);)Y0(r),r.blockedOn===null&&lr.shift()}var Ti=Gn.ReactCurrentBatchConfig,Du=!0;function _E(e,t,r,l){var o=Ce,s=Ti.transition;Ti.transition=null;try{Ce=1,Af(e,t,r,l)}finally{Ce=o,Ti.transition=s}}function SE(e,t,r,l){var o=Ce,s=Ti.transition;Ti.transition=null;try{Ce=4,Af(e,t,r,l)}finally{Ce=o,Ti.transition=s}}function Af(e,t,r,l){if(Du){var o=Dc(e,t,r,l);if(o===null)oc(e,t,l,$u,r),ug(e,l);else if(wE(o,e,t,r,l))l.stopPropagation();else if(ug(e,l),t&4&&-1<vE.indexOf(e)){for(;o!==null;){var s=lo(o);if(s!==null&&G0(s),s=Dc(e,t,r,l),s===null&&oc(e,t,l,$u,r),s===o)break;o=s}o!==null&&l.stopPropagation()}else oc(e,t,l,null,r)}}var $u=null;function Dc(e,t,r,l){if($u=null,e=Lf(l),e=zr(e),e!==null)if(t=Kr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=z0(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $u=e,null}function Z0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sE()){case If:return 1;case U0:return 4;case Wu:case aE:return 16;case j0:return 536870912;default:return 16}default:return 16}}var sr=null,Of=null,Eu=null;function X0(){if(Eu)return Eu;var e,t=Of,r=t.length,l,o="value"in sr?sr.value:sr.textContent,s=o.length;for(e=0;e<r&&t[e]===o[e];e++);var c=r-e;for(l=1;l<=c&&t[r-l]===o[s-l];l++);return Eu=o.slice(e,1<l?1-l:void 0)}function ku(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function au(){return!0}function ag(){return!1}function Ut(e){function t(r,l,o,s,c){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(r=e[f],this[f]=r?r(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?au:ag,this.isPropagationStopped=ag,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=au)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),t}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pf=Ut(Fi),io=We({},Fi,{view:0,detail:0}),xE=Ut(io),Xa,Ja,ml,cs=We({},io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ml&&(ml&&e.type==="mousemove"?(Xa=e.screenX-ml.screenX,Ja=e.screenY-ml.screenY):Ja=Xa=0,ml=e),Xa)},movementY:function(e){return"movementY"in e?e.movementY:Ja}}),cg=Ut(cs),CE=We({},cs,{dataTransfer:0}),EE=Ut(CE),kE=We({},io,{relatedTarget:0}),ba=Ut(kE),LE=We({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),IE=Ut(LE),RE=We({},Fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TE=Ut(RE),AE=We({},Fi,{data:0}),fg=Ut(AE),OE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},NE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ME(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NE[e])?!!t[e]:!1}function Nf(){return ME}var BE=We({},io,{key:function(e){if(e.key){var t=OE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ku(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nf,charCode:function(e){return e.type==="keypress"?ku(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ku(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WE=Ut(BE),zE=We({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dg=Ut(zE),DE=We({},io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nf}),$E=Ut(DE),FE=We({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),UE=Ut(FE),jE=We({},cs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),HE=Ut(jE),VE=[9,13,27,32],Mf=Un&&"CompositionEvent"in window,Al=null;Un&&"documentMode"in document&&(Al=document.documentMode);var GE=Un&&"TextEvent"in window&&!Al,J0=Un&&(!Mf||Al&&8<Al&&11>=Al),pg=String.fromCharCode(32),hg=!1;function b0(e,t){switch(e){case"keyup":return VE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mi=!1;function QE(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(hg=!0,pg);case"textInput":return e=t.data,e===pg&&hg?null:e;default:return null}}function qE(e,t){if(mi)return e==="compositionend"||!Mf&&b0(e,t)?(e=X0(),Eu=Of=sr=null,mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return J0&&t.locale!=="ko"?null:t.data;default:return null}}var KE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KE[e.type]:t==="textarea"}function tm(e,t,r,l){P0(l),t=Fu(t,"onChange"),0<t.length&&(r=new Pf("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var Ol=null,Hl=null;function YE(e){dm(e,0)}function fs(e){var t=yi(e);if(k0(t))return e}function ZE(e,t){if(e==="change")return t}var nm=!1;if(Un){var ec;if(Un){var tc="oninput"in document;if(!tc){var mg=document.createElement("div");mg.setAttribute("oninput","return;"),tc=typeof mg.oninput=="function"}ec=tc}else ec=!1;nm=ec&&(!document.documentMode||9<document.documentMode)}function vg(){Ol&&(Ol.detachEvent("onpropertychange",rm),Hl=Ol=null)}function rm(e){if(e.propertyName==="value"&&fs(Hl)){var t=[];tm(t,Hl,e,Lf(e)),W0(YE,t)}}function XE(e,t,r){e==="focusin"?(vg(),Ol=t,Hl=r,Ol.attachEvent("onpropertychange",rm)):e==="focusout"&&vg()}function JE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fs(Hl)}function bE(e,t){if(e==="click")return fs(t)}function ek(e,t){if(e==="input"||e==="change")return fs(t)}function tk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mn=typeof Object.is=="function"?Object.is:tk;function Vl(e,t){if(mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!_c.call(t,o)||!mn(e[o],t[o]))return!1}return!0}function wg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yg(e,t){var r=wg(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wg(r)}}function im(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?im(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lm(){for(var e=window,t=Nu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Nu(e.document)}return t}function Bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nk(e){var t=lm(),r=e.focusedElem,l=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&im(r.ownerDocument.documentElement,r)){if(l!==null&&Bf(r)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,s=Math.min(l.start,o);l=l.end===void 0?s:Math.min(l.end,o),!e.extend&&s>l&&(o=l,l=s,s=o),o=yg(r,s);var c=yg(r,l);o&&c&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>l?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var rk=Un&&"documentMode"in document&&11>=document.documentMode,vi=null,$c=null,Pl=null,Fc=!1;function _g(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fc||vi==null||vi!==Nu(l)||(l=vi,"selectionStart"in l&&Bf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Pl&&Vl(Pl,l)||(Pl=l,l=Fu($c,"onSelect"),0<l.length&&(t=new Pf("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=vi)))}function cu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var wi={animationend:cu("Animation","AnimationEnd"),animationiteration:cu("Animation","AnimationIteration"),animationstart:cu("Animation","AnimationStart"),transitionend:cu("Transition","TransitionEnd")},nc={},om={};Un&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete wi.animationend.animation,delete wi.animationiteration.animation,delete wi.animationstart.animation),"TransitionEvent"in window||delete wi.transitionend.transition);function ds(e){if(nc[e])return nc[e];if(!wi[e])return e;var t=wi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in om)return nc[e]=t[r];return e}var um=ds("animationend"),sm=ds("animationiteration"),am=ds("animationstart"),cm=ds("transitionend"),fm=new Map,Sg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){fm.set(e,t),qr(t,[e])}for(var rc=0;rc<Sg.length;rc++){var ic=Sg[rc],ik=ic.toLowerCase(),lk=ic[0].toUpperCase()+ic.slice(1);Cr(ik,"on"+lk)}Cr(um,"onAnimationEnd");Cr(sm,"onAnimationIteration");Cr(am,"onAnimationStart");Cr("dblclick","onDoubleClick");Cr("focusin","onFocus");Cr("focusout","onBlur");Cr(cm,"onTransitionEnd");Pi("onMouseEnter",["mouseout","mouseover"]);Pi("onMouseLeave",["mouseout","mouseover"]);Pi("onPointerEnter",["pointerout","pointerover"]);Pi("onPointerLeave",["pointerout","pointerover"]);qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ll="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ok=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ll));function xg(e,t,r){var l=e.type||"unknown-event";e.currentTarget=r,iE(l,t,void 0,e),e.currentTarget=null}function dm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var c=l.length-1;0<=c;c--){var f=l[c],d=f.instance,m=f.currentTarget;if(f=f.listener,d!==s&&o.isPropagationStopped())break e;xg(o,f,m),s=d}else for(c=0;c<l.length;c++){if(f=l[c],d=f.instance,m=f.currentTarget,f=f.listener,d!==s&&o.isPropagationStopped())break e;xg(o,f,m),s=d}}}if(Bu)throw e=Bc,Bu=!1,Bc=null,e}function Te(e,t){var r=t[Gc];r===void 0&&(r=t[Gc]=new Set);var l=e+"__bubble";r.has(l)||(pm(t,e,2,!1),r.add(l))}function lc(e,t,r){var l=0;t&&(l|=4),pm(r,e,l,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Gl(e){if(!e[fu]){e[fu]=!0,_0.forEach(function(r){r!=="selectionchange"&&(ok.has(r)||lc(r,!1,e),lc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,lc("selectionchange",!1,t))}}function pm(e,t,r,l){switch(Z0(t)){case 1:var o=_E;break;case 4:o=SE;break;default:o=Af}r=o.bind(null,t,r,e),o=void 0,!Mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function oc(e,t,r,l,o){var s=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var f=l.stateNode.containerInfo;if(f===o||f.nodeType===8&&f.parentNode===o)break;if(c===4)for(c=l.return;c!==null;){var d=c.tag;if((d===3||d===4)&&(d=c.stateNode.containerInfo,d===o||d.nodeType===8&&d.parentNode===o))return;c=c.return}for(;f!==null;){if(c=zr(f),c===null)return;if(d=c.tag,d===5||d===6){l=s=c;continue e}f=f.parentNode}}l=l.return}W0(function(){var m=s,y=Lf(r),w=[];e:{var x=fm.get(e);if(x!==void 0){var k=Pf,O=e;switch(e){case"keypress":if(ku(r)===0)break e;case"keydown":case"keyup":k=WE;break;case"focusin":O="focus",k=ba;break;case"focusout":O="blur",k=ba;break;case"beforeblur":case"afterblur":k=ba;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=cg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=EE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=$E;break;case um:case sm:case am:k=IE;break;case cm:k=UE;break;case"scroll":k=xE;break;case"wheel":k=HE;break;case"copy":case"cut":case"paste":k=TE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=dg}var I=(t&4)!==0,P=!I&&e==="scroll",v=I?x!==null?x+"Capture":null:x;I=[];for(var _=m,C;_!==null;){C=_;var M=C.stateNode;if(C.tag===5&&M!==null&&(C=M,v!==null&&(M=$l(_,v),M!=null&&I.push(Ql(_,M,C)))),P)break;_=_.return}0<I.length&&(x=new k(x,O,null,r,y),w.push({event:x,listeners:I}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",x&&r!==Pc&&(O=r.relatedTarget||r.fromElement)&&(zr(O)||O[jn]))break e;if((k||x)&&(x=y.window===y?y:(x=y.ownerDocument)?x.defaultView||x.parentWindow:window,k?(O=r.relatedTarget||r.toElement,k=m,O=O?zr(O):null,O!==null&&(P=Kr(O),O!==P||O.tag!==5&&O.tag!==6)&&(O=null)):(k=null,O=m),k!==O)){if(I=cg,M="onMouseLeave",v="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(I=dg,M="onPointerLeave",v="onPointerEnter",_="pointer"),P=k==null?x:yi(k),C=O==null?x:yi(O),x=new I(M,_+"leave",k,r,y),x.target=P,x.relatedTarget=C,M=null,zr(y)===m&&(I=new I(v,_+"enter",O,r,y),I.target=C,I.relatedTarget=P,M=I),P=M,k&&O)t:{for(I=k,v=O,_=0,C=I;C;C=fi(C))_++;for(C=0,M=v;M;M=fi(M))C++;for(;0<_-C;)I=fi(I),_--;for(;0<C-_;)v=fi(v),C--;for(;_--;){if(I===v||v!==null&&I===v.alternate)break t;I=fi(I),v=fi(v)}I=null}else I=null;k!==null&&Cg(w,x,k,I,!1),O!==null&&P!==null&&Cg(w,P,O,I,!0)}}e:{if(x=m?yi(m):window,k=x.nodeName&&x.nodeName.toLowerCase(),k==="select"||k==="input"&&x.type==="file")var z=ZE;else if(gg(x))if(nm)z=ek;else{z=JE;var U=XE}else(k=x.nodeName)&&k.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(z=bE);if(z&&(z=z(e,m))){tm(w,z,r,y);break e}U&&U(e,x,m),e==="focusout"&&(U=x._wrapperState)&&U.controlled&&x.type==="number"&&Ic(x,"number",x.value)}switch(U=m?yi(m):window,e){case"focusin":(gg(U)||U.contentEditable==="true")&&(vi=U,$c=m,Pl=null);break;case"focusout":Pl=$c=vi=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,_g(w,r,y);break;case"selectionchange":if(rk)break;case"keydown":case"keyup":_g(w,r,y)}var A;if(Mf)e:{switch(e){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else mi?b0(e,r)&&(B="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(B="onCompositionStart");B&&(J0&&r.locale!=="ko"&&(mi||B!=="onCompositionStart"?B==="onCompositionEnd"&&mi&&(A=X0()):(sr=y,Of="value"in sr?sr.value:sr.textContent,mi=!0)),U=Fu(m,B),0<U.length&&(B=new fg(B,e,null,r,y),w.push({event:B,listeners:U}),A?B.data=A:(A=em(r),A!==null&&(B.data=A)))),(A=GE?QE(e,r):qE(e,r))&&(m=Fu(m,"onBeforeInput"),0<m.length&&(y=new fg("onBeforeInput","beforeinput",null,r,y),w.push({event:y,listeners:m}),y.data=A))}dm(w,t)})}function Ql(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Fu(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=$l(e,r),s!=null&&l.unshift(Ql(e,s,o)),s=$l(e,t),s!=null&&l.push(Ql(e,s,o))),e=e.return}return l}function fi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cg(e,t,r,l,o){for(var s=t._reactName,c=[];r!==null&&r!==l;){var f=r,d=f.alternate,m=f.stateNode;if(d!==null&&d===l)break;f.tag===5&&m!==null&&(f=m,o?(d=$l(r,s),d!=null&&c.unshift(Ql(r,d,f))):o||(d=$l(r,s),d!=null&&c.push(Ql(r,d,f)))),r=r.return}c.length!==0&&e.push({event:t,listeners:c})}var uk=/\r\n?/g,sk=/\u0000|\uFFFD/g;function Eg(e){return(typeof e=="string"?e:""+e).replace(uk,`
`).replace(sk,"")}function du(e,t,r){if(t=Eg(t),Eg(e)!==t&&r)throw Error(V(425))}function Uu(){}var Uc=null,jc=null;function Hc(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 Vc=typeof setTimeout=="function"?setTimeout:void 0,ak=typeof clearTimeout=="function"?clearTimeout:void 0,kg=typeof Promise=="function"?Promise:void 0,ck=typeof queueMicrotask=="function"?queueMicrotask:typeof kg<"u"?function(e){return kg.resolve(null).then(e).catch(fk)}:Vc;function fk(e){setTimeout(function(){throw e})}function uc(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(l===0){e.removeChild(o),jl(t);return}l--}else r!=="$"&&r!=="$?"&&r!=="$!"||l++;r=o}while(r);jl(t)}function pr(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 Lg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ui=Math.random().toString(36).slice(2),xn="__reactFiber$"+Ui,ql="__reactProps$"+Ui,jn="__reactContainer$"+Ui,Gc="__reactEvents$"+Ui,dk="__reactListeners$"+Ui,pk="__reactHandles$"+Ui;function zr(e){var t=e[xn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[jn]||r[xn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Lg(e);e!==null;){if(r=e[xn])return r;e=Lg(e)}return t}e=r,r=e.parentNode}return null}function lo(e){return e=e[xn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function ps(e){return e[ql]||null}var Qc=[],_i=-1;function Er(e){return{current:e}}function Ae(e){0>_i||(e.current=Qc[_i],Qc[_i]=null,_i--)}function Ie(e,t){_i++,Qc[_i]=e.current,e.current=t}var Sr={},ct=Er(Sr),Lt=Er(!1),jr=Sr;function Ni(e,t){var r=e.type.contextTypes;if(!r)return Sr;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in r)o[s]=t[s];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function It(e){return e=e.childContextTypes,e!=null}function ju(){Ae(Lt),Ae(ct)}function Ig(e,t,r){if(ct.current!==Sr)throw Error(V(168));Ie(ct,t),Ie(Lt,r)}function hm(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return r;l=l.getChildContext();for(var o in l)if(!(o in t))throw Error(V(108,X2(e)||"Unknown",o));return We({},r,l)}function Hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,jr=ct.current,Ie(ct,e),Ie(Lt,Lt.current),!0}function Rg(e,t,r){var l=e.stateNode;if(!l)throw Error(V(169));r?(e=hm(e,t,jr),l.__reactInternalMemoizedMergedChildContext=e,Ae(Lt),Ae(ct),Ie(ct,e)):Ae(Lt),Ie(Lt,r)}var zn=null,hs=!1,sc=!1;function gm(e){zn===null?zn=[e]:zn.push(e)}function hk(e){hs=!0,gm(e)}function kr(){if(!sc&&zn!==null){sc=!0;var e=0,t=Ce;try{var r=zn;for(Ce=1;e<r.length;e++){var l=r[e];do l=l(!0);while(l!==null)}zn=null,hs=!1}catch(o){throw zn!==null&&(zn=zn.slice(e+1)),F0(If,kr),o}finally{Ce=t,sc=!1}}return null}var Si=[],xi=0,Vu=null,Gu=0,Zt=[],Xt=0,Hr=null,Dn=1,$n="";function Br(e,t){Si[xi++]=Gu,Si[xi++]=Vu,Vu=e,Gu=t}function mm(e,t,r){Zt[Xt++]=Dn,Zt[Xt++]=$n,Zt[Xt++]=Hr,Hr=e;var l=Dn;e=$n;var o=32-hn(l)-1;l&=~(1<<o),r+=1;var s=32-hn(t)+o;if(30<s){var c=o-o%5;s=(l&(1<<c)-1).toString(32),l>>=c,o-=c,Dn=1<<32-hn(t)+o|r<<o|l,$n=s+e}else Dn=1<<s|r<<o|l,$n=e}function Wf(e){e.return!==null&&(Br(e,1),mm(e,1,0))}function zf(e){for(;e===Vu;)Vu=Si[--xi],Si[xi]=null,Gu=Si[--xi],Si[xi]=null;for(;e===Hr;)Hr=Zt[--Xt],Zt[Xt]=null,$n=Zt[--Xt],Zt[Xt]=null,Dn=Zt[--Xt],Zt[Xt]=null}var Dt=null,zt=null,Pe=!1,pn=null;function vm(e,t){var r=Jt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Tg(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dt=e,zt=pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Hr!==null?{id:Dn,overflow:$n}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Jt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Dt=e,zt=null,!0):!1;default:return!1}}function qc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kc(e){if(Pe){var t=zt;if(t){var r=t;if(!Tg(e,t)){if(qc(e))throw Error(V(418));t=pr(r.nextSibling);var l=Dt;t&&Tg(e,t)?vm(l,r):(e.flags=e.flags&-4097|2,Pe=!1,Dt=e)}}else{if(qc(e))throw Error(V(418));e.flags=e.flags&-4097|2,Pe=!1,Dt=e}}}function Ag(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function pu(e){if(e!==Dt)return!1;if(!Pe)return Ag(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hc(e.type,e.memoizedProps)),t&&(t=zt)){if(qc(e))throw wm(),Error(V(418));for(;t;)vm(e,t),t=pr(t.nextSibling)}if(Ag(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){zt=pr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Dt?pr(e.stateNode.nextSibling):null;return!0}function wm(){for(var e=zt;e;)e=pr(e.nextSibling)}function Mi(){zt=Dt=null,Pe=!1}function Df(e){pn===null?pn=[e]:pn.push(e)}var gk=Gn.ReactCurrentBatchConfig;function fn(e,t){if(e&&e.defaultProps){t=We({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Qu=Er(null),qu=null,Ci=null,$f=null;function Ff(){$f=Ci=qu=null}function Uf(e){var t=Qu.current;Ae(Qu),e._currentValue=t}function Yc(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function Ai(e,t){qu=e,$f=Ci=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kt=!0),e.firstContext=null)}function en(e){var t=e._currentValue;if($f!==e)if(e={context:e,memoizedValue:t,next:null},Ci===null){if(qu===null)throw Error(V(308));Ci=e,qu.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Dr=null;function jf(e){Dr===null?Dr=[e]:Dr.push(e)}function ym(e,t,r,l){var o=t.interleaved;return o===null?(r.next=r,jf(t)):(r.next=o.next,o.next=r),t.interleaved=r,Hn(e,l)}function Hn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ir=!1;function Hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _m(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hr(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,ye&2){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,Hn(e,r)}return o=l.interleaved,o===null?(t.next=t,jf(l)):(t.next=o.next,o.next=t),l.interleaved=t,Hn(e,r)}function Lu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Rf(e,r)}}function Og(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var c={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?o=s=c:s=s.next=c,r=r.next}while(r!==null);s===null?o=s=t:s=s.next=t}else o=s=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:l.shared,effects:l.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ku(e,t,r,l){var o=e.updateQueue;ir=!1;var s=o.firstBaseUpdate,c=o.lastBaseUpdate,f=o.shared.pending;if(f!==null){o.shared.pending=null;var d=f,m=d.next;d.next=null,c===null?s=m:c.next=m,c=d;var y=e.alternate;y!==null&&(y=y.updateQueue,f=y.lastBaseUpdate,f!==c&&(f===null?y.firstBaseUpdate=m:f.next=m,y.lastBaseUpdate=d))}if(s!==null){var w=o.baseState;c=0,y=m=d=null,f=s;do{var x=f.lane,k=f.eventTime;if((l&x)===x){y!==null&&(y=y.next={eventTime:k,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var O=e,I=f;switch(x=t,k=r,I.tag){case 1:if(O=I.payload,typeof O=="function"){w=O.call(k,w,x);break e}w=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=I.payload,x=typeof O=="function"?O.call(k,w,x):O,x==null)break e;w=We({},w,x);break e;case 2:ir=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,x=o.effects,x===null?o.effects=[f]:x.push(f))}else k={eventTime:k,lane:x,tag:f.tag,payload:f.payload,callback:f.callback,next:null},y===null?(m=y=k,d=w):y=y.next=k,c|=x;if(f=f.next,f===null){if(f=o.shared.pending,f===null)break;x=f,f=x.next,x.next=null,o.lastBaseUpdate=x,o.shared.pending=null}}while(1);if(y===null&&(d=w),o.baseState=d,o.firstBaseUpdate=m,o.lastBaseUpdate=y,t=o.shared.interleaved,t!==null){o=t;do c|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Gr|=c,e.lanes=c,e.memoizedState=w}}function Pg(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],o=l.callback;if(o!==null){if(l.callback=null,l=r,typeof o!="function")throw Error(V(191,o));o.call(l)}}}var Sm=new y0.Component().refs;function Zc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:We({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gs={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var l=vt(),o=mr(e),s=Fn(l,o);s.payload=t,r!=null&&(s.callback=r),t=hr(e,s,o),t!==null&&(gn(t,e,o,l),Lu(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=vt(),o=mr(e),s=Fn(l,o);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=hr(e,s,o),t!==null&&(gn(t,e,o,l),Lu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vt(),l=mr(e),o=Fn(r,l);o.tag=2,t!=null&&(o.callback=t),t=hr(e,o,l),t!==null&&(gn(t,e,l,r),Lu(t,e,l))}};function Ng(e,t,r,l,o,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,c):t.prototype&&t.prototype.isPureReactComponent?!Vl(r,l)||!Vl(o,s):!0}function xm(e,t,r){var l=!1,o=Sr,s=t.contextType;return typeof s=="object"&&s!==null?s=en(s):(o=It(t)?jr:ct.current,l=t.contextTypes,s=(l=l!=null)?Ni(e,o):Sr),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gs,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Mg(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&gs.enqueueReplaceState(t,t.state,null)}function Xc(e,t,r,l){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Sm,Hf(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=en(s):(s=It(t)?jr:ct.current,o.context=Ni(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Zc(e,t,s,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&gs.enqueueReplaceState(o,o.state,null),Ku(e,r,o,l),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function vl(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(V(309));var l=r.stateNode}if(!l)throw Error(V(147,e));var o=l,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(c){var f=o.refs;f===Sm&&(f=o.refs={}),c===null?delete f[s]:f[s]=c},t._stringRef=s,t)}if(typeof e!="string")throw Error(V(284));if(!r._owner)throw Error(V(290,e))}return e}function hu(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bg(e){var t=e._init;return t(e._payload)}function Cm(e){function t(v,_){if(e){var C=v.deletions;C===null?(v.deletions=[_],v.flags|=16):C.push(_)}}function r(v,_){if(!e)return null;for(;_!==null;)t(v,_),_=_.sibling;return null}function l(v,_){for(v=new Map;_!==null;)_.key!==null?v.set(_.key,_):v.set(_.index,_),_=_.sibling;return v}function o(v,_){return v=vr(v,_),v.index=0,v.sibling=null,v}function s(v,_,C){return v.index=C,e?(C=v.alternate,C!==null?(C=C.index,C<_?(v.flags|=2,_):C):(v.flags|=2,_)):(v.flags|=1048576,_)}function c(v){return e&&v.alternate===null&&(v.flags|=2),v}function f(v,_,C,M){return _===null||_.tag!==6?(_=gc(C,v.mode,M),_.return=v,_):(_=o(_,C),_.return=v,_)}function d(v,_,C,M){var z=C.type;return z===gi?y(v,_,C.props.children,M,C.key):_!==null&&(_.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===rr&&Bg(z)===_.type)?(M=o(_,C.props),M.ref=vl(v,_,C),M.return=v,M):(M=Pu(C.type,C.key,C.props,null,v.mode,M),M.ref=vl(v,_,C),M.return=v,M)}function m(v,_,C,M){return _===null||_.tag!==4||_.stateNode.containerInfo!==C.containerInfo||_.stateNode.implementation!==C.implementation?(_=mc(C,v.mode,M),_.return=v,_):(_=o(_,C.children||[]),_.return=v,_)}function y(v,_,C,M,z){return _===null||_.tag!==7?(_=Ur(C,v.mode,M,z),_.return=v,_):(_=o(_,C),_.return=v,_)}function w(v,_,C){if(typeof _=="string"&&_!==""||typeof _=="number")return _=gc(""+_,v.mode,C),_.return=v,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ru:return C=Pu(_.type,_.key,_.props,null,v.mode,C),C.ref=vl(v,null,_),C.return=v,C;case hi:return _=mc(_,v.mode,C),_.return=v,_;case rr:var M=_._init;return w(v,M(_._payload),C)}if(El(_)||dl(_))return _=Ur(_,v.mode,C,null),_.return=v,_;hu(v,_)}return null}function x(v,_,C,M){var z=_!==null?_.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return z!==null?null:f(v,_,""+C,M);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ru:return C.key===z?d(v,_,C,M):null;case hi:return C.key===z?m(v,_,C,M):null;case rr:return z=C._init,x(v,_,z(C._payload),M)}if(El(C)||dl(C))return z!==null?null:y(v,_,C,M,null);hu(v,C)}return null}function k(v,_,C,M,z){if(typeof M=="string"&&M!==""||typeof M=="number")return v=v.get(C)||null,f(_,v,""+M,z);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ru:return v=v.get(M.key===null?C:M.key)||null,d(_,v,M,z);case hi:return v=v.get(M.key===null?C:M.key)||null,m(_,v,M,z);case rr:var U=M._init;return k(v,_,C,U(M._payload),z)}if(El(M)||dl(M))return v=v.get(C)||null,y(_,v,M,z,null);hu(_,M)}return null}function O(v,_,C,M){for(var z=null,U=null,A=_,B=_=0,b=null;A!==null&&B<C.length;B++){A.index>B?(b=A,A=null):b=A.sibling;var H=x(v,A,C[B],M);if(H===null){A===null&&(A=b);break}e&&A&&H.alternate===null&&t(v,A),_=s(H,_,B),U===null?z=H:U.sibling=H,U=H,A=b}if(B===C.length)return r(v,A),Pe&&Br(v,B),z;if(A===null){for(;B<C.length;B++)A=w(v,C[B],M),A!==null&&(_=s(A,_,B),U===null?z=A:U.sibling=A,U=A);return Pe&&Br(v,B),z}for(A=l(v,A);B<C.length;B++)b=k(A,v,B,C[B],M),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?B:b.key),_=s(b,_,B),U===null?z=b:U.sibling=b,U=b);return e&&A.forEach(function(ee){return t(v,ee)}),Pe&&Br(v,B),z}function I(v,_,C,M){var z=dl(C);if(typeof z!="function")throw Error(V(150));if(C=z.call(C),C==null)throw Error(V(151));for(var U=z=null,A=_,B=_=0,b=null,H=C.next();A!==null&&!H.done;B++,H=C.next()){A.index>B?(b=A,A=null):b=A.sibling;var ee=x(v,A,H.value,M);if(ee===null){A===null&&(A=b);break}e&&A&&ee.alternate===null&&t(v,A),_=s(ee,_,B),U===null?z=ee:U.sibling=ee,U=ee,A=b}if(H.done)return r(v,A),Pe&&Br(v,B),z;if(A===null){for(;!H.done;B++,H=C.next())H=w(v,H.value,M),H!==null&&(_=s(H,_,B),U===null?z=H:U.sibling=H,U=H);return Pe&&Br(v,B),z}for(A=l(v,A);!H.done;B++,H=C.next())H=k(A,v,B,H.value,M),H!==null&&(e&&H.alternate!==null&&A.delete(H.key===null?B:H.key),_=s(H,_,B),U===null?z=H:U.sibling=H,U=H);return e&&A.forEach(function(ve){return t(v,ve)}),Pe&&Br(v,B),z}function P(v,_,C,M){if(typeof C=="object"&&C!==null&&C.type===gi&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ru:e:{for(var z=C.key,U=_;U!==null;){if(U.key===z){if(z=C.type,z===gi){if(U.tag===7){r(v,U.sibling),_=o(U,C.props.children),_.return=v,v=_;break e}}else if(U.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===rr&&Bg(z)===U.type){r(v,U.sibling),_=o(U,C.props),_.ref=vl(v,U,C),_.return=v,v=_;break e}r(v,U);break}else t(v,U);U=U.sibling}C.type===gi?(_=Ur(C.props.children,v.mode,M,C.key),_.return=v,v=_):(M=Pu(C.type,C.key,C.props,null,v.mode,M),M.ref=vl(v,_,C),M.return=v,v=M)}return c(v);case hi:e:{for(U=C.key;_!==null;){if(_.key===U)if(_.tag===4&&_.stateNode.containerInfo===C.containerInfo&&_.stateNode.implementation===C.implementation){r(v,_.sibling),_=o(_,C.children||[]),_.return=v,v=_;break e}else{r(v,_);break}else t(v,_);_=_.sibling}_=mc(C,v.mode,M),_.return=v,v=_}return c(v);case rr:return U=C._init,P(v,_,U(C._payload),M)}if(El(C))return O(v,_,C,M);if(dl(C))return I(v,_,C,M);hu(v,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,_!==null&&_.tag===6?(r(v,_.sibling),_=o(_,C),_.return=v,v=_):(r(v,_),_=gc(C,v.mode,M),_.return=v,v=_),c(v)):r(v,_)}return P}var Bi=Cm(!0),Em=Cm(!1),oo={},En=Er(oo),Kl=Er(oo),Yl=Er(oo);function $r(e){if(e===oo)throw Error(V(174));return e}function Vf(e,t){switch(Ie(Yl,t),Ie(Kl,e),Ie(En,oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tc(t,e)}Ae(En),Ie(En,t)}function Wi(){Ae(En),Ae(Kl),Ae(Yl)}function km(e){$r(Yl.current);var t=$r(En.current),r=Tc(t,e.type);t!==r&&(Ie(Kl,e),Ie(En,r))}function Gf(e){Kl.current===e&&(Ae(En),Ae(Kl))}var Me=Er(0);function Yu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function Qf(){for(var e=0;e<ac.length;e++)ac[e]._workInProgressVersionPrimary=null;ac.length=0}var Iu=Gn.ReactCurrentDispatcher,cc=Gn.ReactCurrentBatchConfig,Vr=0,Be=null,qe=null,Ze=null,Zu=!1,Nl=!1,Zl=0,mk=0;function ut(){throw Error(V(321))}function qf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mn(e[r],t[r]))return!1;return!0}function Kf(e,t,r,l,o,s){if(Vr=s,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Iu.current=e===null||e.memoizedState===null?_k:Sk,e=r(l,o),Nl){s=0;do{if(Nl=!1,Zl=0,25<=s)throw Error(V(301));s+=1,Ze=qe=null,t.updateQueue=null,Iu.current=xk,e=r(l,o)}while(Nl)}if(Iu.current=Xu,t=qe!==null&&qe.next!==null,Vr=0,Ze=qe=Be=null,Zu=!1,t)throw Error(V(300));return e}function Yf(){var e=Zl!==0;return Zl=0,e}function Sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?Be.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function tn(){if(qe===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Ze===null?Be.memoizedState:Ze.next;if(t!==null)Ze=t,qe=e;else{if(e===null)throw Error(V(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Ze===null?Be.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Xl(e,t){return typeof t=="function"?t(e):t}function fc(e){var t=tn(),r=t.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=e;var l=qe,o=l.baseQueue,s=r.pending;if(s!==null){if(o!==null){var c=o.next;o.next=s.next,s.next=c}l.baseQueue=o=s,r.pending=null}if(o!==null){s=o.next,l=l.baseState;var f=c=null,d=null,m=s;do{var y=m.lane;if((Vr&y)===y)d!==null&&(d=d.next={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),l=m.hasEagerState?m.eagerState:e(l,m.action);else{var w={lane:y,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};d===null?(f=d=w,c=l):d=d.next=w,Be.lanes|=y,Gr|=y}m=m.next}while(m!==null&&m!==s);d===null?c=l:d.next=f,mn(l,t.memoizedState)||(kt=!0),t.memoizedState=l,t.baseState=c,t.baseQueue=d,r.lastRenderedState=l}if(e=r.interleaved,e!==null){o=e;do s=o.lane,Be.lanes|=s,Gr|=s,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function dc(e){var t=tn(),r=t.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,s=t.memoizedState;if(o!==null){r.pending=null;var c=o=o.next;do s=e(s,c.action),c=c.next;while(c!==o);mn(s,t.memoizedState)||(kt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,l]}function Lm(){}function Im(e,t){var r=Be,l=tn(),o=t(),s=!mn(l.memoizedState,o);if(s&&(l.memoizedState=o,kt=!0),l=l.queue,Zf(Am.bind(null,r,l,e),[e]),l.getSnapshot!==t||s||Ze!==null&&Ze.memoizedState.tag&1){if(r.flags|=2048,Jl(9,Tm.bind(null,r,l,o,t),void 0,null),Je===null)throw Error(V(349));Vr&30||Rm(r,t,o)}return o}function Rm(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Tm(e,t,r,l){t.value=r,t.getSnapshot=l,Om(t)&&Pm(e)}function Am(e,t,r){return r(function(){Om(t)&&Pm(e)})}function Om(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mn(e,r)}catch{return!0}}function Pm(e){var t=Hn(e,1);t!==null&&gn(t,e,1,-1)}function Wg(e){var t=Sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t.queue=e,e=e.dispatch=yk.bind(null,Be,e),[t.memoizedState,e]}function Jl(e,t,r,l){return e={tag:e,create:t,destroy:r,deps:l,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e)),e}function Nm(){return tn().memoizedState}function Ru(e,t,r,l){var o=Sn();Be.flags|=e,o.memoizedState=Jl(1|t,r,void 0,l===void 0?null:l)}function ms(e,t,r,l){var o=tn();l=l===void 0?null:l;var s=void 0;if(qe!==null){var c=qe.memoizedState;if(s=c.destroy,l!==null&&qf(l,c.deps)){o.memoizedState=Jl(t,r,s,l);return}}Be.flags|=e,o.memoizedState=Jl(1|t,r,s,l)}function zg(e,t){return Ru(8390656,8,e,t)}function Zf(e,t){return ms(2048,8,e,t)}function Mm(e,t){return ms(4,2,e,t)}function Bm(e,t){return ms(4,4,e,t)}function Wm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zm(e,t,r){return r=r!=null?r.concat([e]):null,ms(4,4,Wm.bind(null,t,e),r)}function Xf(){}function Dm(e,t){var r=tn();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&qf(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function $m(e,t){var r=tn();t=t===void 0?null:t;var l=r.memoizedState;return l!==null&&t!==null&&qf(t,l[1])?l[0]:(e=e(),r.memoizedState=[e,t],e)}function Fm(e,t,r){return Vr&21?(mn(r,t)||(r=H0(),Be.lanes|=r,Gr|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=r)}function vk(e,t){var r=Ce;Ce=r!==0&&4>r?r:4,e(!0);var l=cc.transition;cc.transition={};try{e(!1),t()}finally{Ce=r,cc.transition=l}}function Um(){return tn().memoizedState}function wk(e,t,r){var l=mr(e);if(r={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null},jm(e))Hm(t,r);else if(r=ym(e,t,r,l),r!==null){var o=vt();gn(r,e,l,o),Vm(r,t,l)}}function yk(e,t,r){var l=mr(e),o={lane:l,action:r,hasEagerState:!1,eagerState:null,next:null};if(jm(e))Hm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,f=s(c,r);if(o.hasEagerState=!0,o.eagerState=f,mn(f,c)){var d=t.interleaved;d===null?(o.next=o,jf(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch{}finally{}r=ym(e,t,o,l),r!==null&&(o=vt(),gn(r,e,l,o),Vm(r,t,l))}}function jm(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Hm(e,t){Nl=Zu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Vm(e,t,r){if(r&4194240){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Rf(e,r)}}var Xu={readContext:en,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},_k={readContext:en,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:zg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ru(4194308,4,Wm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ru(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ru(4,2,e,t)},useMemo:function(e,t){var r=Sn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var l=Sn();return t=r!==void 0?r(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=wk.bind(null,Be,e),[l.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:Wg,useDebugValue:Xf,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=Wg(!1),t=e[0];return e=vk.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var l=Be,o=Sn();if(Pe){if(r===void 0)throw Error(V(407));r=r()}else{if(r=t(),Je===null)throw Error(V(349));Vr&30||Rm(l,t,r)}o.memoizedState=r;var s={value:r,getSnapshot:t};return o.queue=s,zg(Am.bind(null,l,s,e),[e]),l.flags|=2048,Jl(9,Tm.bind(null,l,s,r,t),void 0,null),r},useId:function(){var e=Sn(),t=Je.identifierPrefix;if(Pe){var r=$n,l=Dn;r=(l&~(1<<32-hn(l)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=mk++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sk={readContext:en,useCallback:Dm,useContext:en,useEffect:Zf,useImperativeHandle:zm,useInsertionEffect:Mm,useLayoutEffect:Bm,useMemo:$m,useReducer:fc,useRef:Nm,useState:function(){return fc(Xl)},useDebugValue:Xf,useDeferredValue:function(e){var t=tn();return Fm(t,qe.memoizedState,e)},useTransition:function(){var e=fc(Xl)[0],t=tn().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:Im,useId:Um,unstable_isNewReconciler:!1},xk={readContext:en,useCallback:Dm,useContext:en,useEffect:Zf,useImperativeHandle:zm,useInsertionEffect:Mm,useLayoutEffect:Bm,useMemo:$m,useReducer:dc,useRef:Nm,useState:function(){return dc(Xl)},useDebugValue:Xf,useDeferredValue:function(e){var t=tn();return qe===null?t.memoizedState=e:Fm(t,qe.memoizedState,e)},useTransition:function(){var e=dc(Xl)[0],t=tn().memoizedState;return[e,t]},useMutableSource:Lm,useSyncExternalStore:Im,useId:Um,unstable_isNewReconciler:!1};function zi(e,t){try{var r="",l=t;do r+=Z2(l),l=l.return;while(l);var o=r}catch(s){o=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function pc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Jc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Ck=typeof WeakMap=="function"?WeakMap:Map;function Gm(e,t,r){r=Fn(-1,r),r.tag=3,r.payload={element:null};var l=t.value;return r.callback=function(){bu||(bu=!0,af=l),Jc(e,t)},r}function Qm(e,t,r){r=Fn(-1,r),r.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var o=t.value;r.payload=function(){return l(o)},r.callback=function(){Jc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Jc(e,t),typeof l!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),r}function Dg(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new Ck;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(o.add(r),e=zk.bind(null,e,t,r),t.then(e,e))}function $g(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 Fg(e,t,r,l,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fn(-1,1),t.tag=2,hr(r,t,1))),r.lanes|=1),e)}var Ek=Gn.ReactCurrentOwner,kt=!1;function mt(e,t,r,l){t.child=e===null?Em(t,null,r,l):Bi(t,e.child,r,l)}function Ug(e,t,r,l,o){r=r.render;var s=t.ref;return Ai(t,o),l=Kf(e,t,r,l,s,o),r=Yf(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vn(e,t,o)):(Pe&&r&&Wf(t),t.flags|=1,mt(e,t,l,o),t.child)}function jg(e,t,r,l,o){if(e===null){var s=r.type;return typeof s=="function"&&!ld(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,qm(e,t,s,l,o)):(e=Pu(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var c=s.memoizedProps;if(r=r.compare,r=r!==null?r:Vl,r(c,l)&&e.ref===t.ref)return Vn(e,t,o)}return t.flags|=1,e=vr(s,l),e.ref=t.ref,e.return=t,t.child=e}function qm(e,t,r,l,o){if(e!==null){var s=e.memoizedProps;if(Vl(s,l)&&e.ref===t.ref)if(kt=!1,t.pendingProps=l=s,(e.lanes&o)!==0)e.flags&131072&&(kt=!0);else return t.lanes=e.lanes,Vn(e,t,o)}return bc(e,t,r,l,o)}function Km(e,t,r){var l=t.pendingProps,o=l.children,s=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(ki,Wt),Wt|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(ki,Wt),Wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=s!==null?s.baseLanes:r,Ie(ki,Wt),Wt|=l}else s!==null?(l=s.baseLanes|r,t.memoizedState=null):l=r,Ie(ki,Wt),Wt|=l;return mt(e,t,o,r),t.child}function Ym(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bc(e,t,r,l,o){var s=It(r)?jr:ct.current;return s=Ni(t,s),Ai(t,o),r=Kf(e,t,r,l,s,o),l=Yf(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vn(e,t,o)):(Pe&&l&&Wf(t),t.flags|=1,mt(e,t,r,o),t.child)}function Hg(e,t,r,l,o){if(It(r)){var s=!0;Hu(t)}else s=!1;if(Ai(t,o),t.stateNode===null)Tu(e,t),xm(t,r,l),Xc(t,r,l,o),l=!0;else if(e===null){var c=t.stateNode,f=t.memoizedProps;c.props=f;var d=c.context,m=r.contextType;typeof m=="object"&&m!==null?m=en(m):(m=It(r)?jr:ct.current,m=Ni(t,m));var y=r.getDerivedStateFromProps,w=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function";w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==l||d!==m)&&Mg(t,c,l,m),ir=!1;var x=t.memoizedState;c.state=x,Ku(t,l,c,o),d=t.memoizedState,f!==l||x!==d||Lt.current||ir?(typeof y=="function"&&(Zc(t,r,y,l),d=t.memoizedState),(f=ir||Ng(t,r,f,l,x,d,m))?(w||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=d),c.props=l,c.state=d,c.context=m,l=f):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,_m(e,t),f=t.memoizedProps,m=t.type===t.elementType?f:fn(t.type,f),c.props=m,w=t.pendingProps,x=c.context,d=r.contextType,typeof d=="object"&&d!==null?d=en(d):(d=It(r)?jr:ct.current,d=Ni(t,d));var k=r.getDerivedStateFromProps;(y=typeof k=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==w||x!==d)&&Mg(t,c,l,d),ir=!1,x=t.memoizedState,c.state=x,Ku(t,l,c,o);var O=t.memoizedState;f!==w||x!==O||Lt.current||ir?(typeof k=="function"&&(Zc(t,r,k,l),O=t.memoizedState),(m=ir||Ng(t,r,m,l,x,O,d)||!1)?(y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,O,d),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,O,d)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),c.props=l,c.state=O,c.context=d,l=m):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),l=!1)}return ef(e,t,r,l,s,o)}function ef(e,t,r,l,o,s){Ym(e,t);var c=(t.flags&128)!==0;if(!l&&!c)return o&&Rg(t,r,!1),Vn(e,t,s);l=t.stateNode,Ek.current=t;var f=c&&typeof r.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&c?(t.child=Bi(t,e.child,null,s),t.child=Bi(t,null,f,s)):mt(e,t,f,s),t.memoizedState=l.state,o&&Rg(t,r,!0),t.child}function Zm(e){var t=e.stateNode;t.pendingContext?Ig(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ig(e,t.context,!1),Vf(e,t.containerInfo)}function Vg(e,t,r,l,o){return Mi(),Df(o),t.flags|=256,mt(e,t,r,l),t.child}var tf={dehydrated:null,treeContext:null,retryLane:0};function nf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xm(e,t,r){var l=t.pendingProps,o=Me.current,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(o&2)!==0),f?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ie(Me,o&1),e===null)return Kc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=l.children,e=l.fallback,s?(l=t.mode,s=t.child,c={mode:"hidden",children:c},!(l&1)&&s!==null?(s.childLanes=0,s.pendingProps=c):s=ys(c,l,0,null),e=Ur(e,l,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=nf(r),t.memoizedState=tf,e):Jf(t,c));if(o=e.memoizedState,o!==null&&(f=o.dehydrated,f!==null))return kk(e,t,c,l,f,o,r);if(s){s=l.fallback,c=t.mode,o=e.child,f=o.sibling;var d={mode:"hidden",children:l.children};return!(c&1)&&t.child!==o?(l=t.child,l.childLanes=0,l.pendingProps=d,t.deletions=null):(l=vr(o,d),l.subtreeFlags=o.subtreeFlags&14680064),f!==null?s=vr(f,s):(s=Ur(s,c,r,null),s.flags|=2),s.return=t,l.return=t,l.sibling=s,t.child=l,l=s,s=t.child,c=e.child.memoizedState,c=c===null?nf(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=tf,l}return s=e.child,e=s.sibling,l=vr(s,{mode:"visible",children:l.children}),!(t.mode&1)&&(l.lanes=r),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Jf(e,t){return t=ys({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gu(e,t,r,l){return l!==null&&Df(l),Bi(t,e.child,null,r),e=Jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kk(e,t,r,l,o,s,c){if(r)return t.flags&256?(t.flags&=-257,l=pc(Error(V(422))),gu(e,t,c,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=l.fallback,o=t.mode,l=ys({mode:"visible",children:l.children},o,0,null),s=Ur(s,o,c,null),s.flags|=2,l.return=t,s.return=t,l.sibling=s,t.child=l,t.mode&1&&Bi(t,e.child,null,c),t.child.memoizedState=nf(c),t.memoizedState=tf,s);if(!(t.mode&1))return gu(e,t,c,null);if(o.data==="$!"){if(l=o.nextSibling&&o.nextSibling.dataset,l)var f=l.dgst;return l=f,s=Error(V(419)),l=pc(s,l,void 0),gu(e,t,c,l)}if(f=(c&e.childLanes)!==0,kt||f){if(l=Je,l!==null){switch(c&-c){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(l.suspendedLanes|c)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Hn(e,o),gn(l,e,o,-1))}return id(),l=pc(Error(V(421))),gu(e,t,c,l)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Dk.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,zt=pr(o.nextSibling),Dt=t,Pe=!0,pn=null,e!==null&&(Zt[Xt++]=Dn,Zt[Xt++]=$n,Zt[Xt++]=Hr,Dn=e.id,$n=e.overflow,Hr=t),t=Jf(t,l.children),t.flags|=4096,t)}function Gg(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Yc(e.return,t,r)}function hc(e,t,r,l,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=r,s.tailMode=o)}function Jm(e,t,r){var l=t.pendingProps,o=l.revealOrder,s=l.tail;if(mt(e,t,l.children,r),l=Me.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gg(e,r,t);else if(e.tag===19)Gg(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(Ie(Me,l),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Yu(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),hc(t,!1,o,r,s);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yu(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}hc(t,!0,r,null,s);break;case"together":hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Gr|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,r=vr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Lk(e,t,r){switch(t.tag){case 3:Zm(t),Mi();break;case 5:km(t);break;case 1:It(t.type)&&Hu(t);break;case 4:Vf(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,o=t.memoizedProps.value;Ie(Qu,l._currentValue),l._currentValue=o;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Ie(Me,Me.current&1),t.flags|=128,null):r&t.child.childLanes?Xm(e,t,r):(Ie(Me,Me.current&1),e=Vn(e,t,r),e!==null?e.sibling:null);Ie(Me,Me.current&1);break;case 19:if(l=(r&t.childLanes)!==0,e.flags&128){if(l)return Jm(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ie(Me,Me.current),l)break;return null;case 22:case 23:return t.lanes=0,Km(e,t,r)}return Vn(e,t,r)}var bm,rf,ev,tv;bm=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};rf=function(){};ev=function(e,t,r,l){var o=e.memoizedProps;if(o!==l){e=t.stateNode,$r(En.current);var s=null;switch(r){case"input":o=kc(e,o),l=kc(e,l),s=[];break;case"select":o=We({},o,{value:void 0}),l=We({},l,{value:void 0}),s=[];break;case"textarea":o=Rc(e,o),l=Rc(e,l),s=[];break;default:typeof o.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=Uu)}Ac(r,l);var c;r=null;for(m in o)if(!l.hasOwnProperty(m)&&o.hasOwnProperty(m)&&o[m]!=null)if(m==="style"){var f=o[m];for(c in f)f.hasOwnProperty(c)&&(r||(r={}),r[c]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(zl.hasOwnProperty(m)?s||(s=[]):(s=s||[]).push(m,null));for(m in l){var d=l[m];if(f=o!=null?o[m]:void 0,l.hasOwnProperty(m)&&d!==f&&(d!=null||f!=null))if(m==="style")if(f){for(c in f)!f.hasOwnProperty(c)||d&&d.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in d)d.hasOwnProperty(c)&&f[c]!==d[c]&&(r||(r={}),r[c]=d[c])}else r||(s||(s=[]),s.push(m,r)),r=d;else m==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,f=f?f.__html:void 0,d!=null&&f!==d&&(s=s||[]).push(m,d)):m==="children"?typeof d!="string"&&typeof d!="number"||(s=s||[]).push(m,""+d):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(zl.hasOwnProperty(m)?(d!=null&&m==="onScroll"&&Te("scroll",e),s||f===d||(s=[])):(s=s||[]).push(m,d))}r&&(s=s||[]).push("style",r);var m=s;(t.updateQueue=m)&&(t.flags|=4)}};tv=function(e,t,r,l){r!==l&&(t.flags|=4)};function wl(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&14680064,l|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function Ik(e,t,r){var l=t.pendingProps;switch(zf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return It(t.type)&&ju(),st(t),null;case 3:return l=t.stateNode,Wi(),Ae(Lt),Ae(ct),Qf(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(pu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pn!==null&&(df(pn),pn=null))),rf(e,t),st(t),null;case 5:Gf(t);var o=$r(Yl.current);if(r=t.type,e!==null&&t.stateNode!=null)ev(e,t,r,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(V(166));return st(t),null}if(e=$r(En.current),pu(t)){l=t.stateNode,r=t.type;var s=t.memoizedProps;switch(l[xn]=t,l[ql]=s,e=(t.mode&1)!==0,r){case"dialog":Te("cancel",l),Te("close",l);break;case"iframe":case"object":case"embed":Te("load",l);break;case"video":case"audio":for(o=0;o<Ll.length;o++)Te(Ll[o],l);break;case"source":Te("error",l);break;case"img":case"image":case"link":Te("error",l),Te("load",l);break;case"details":Te("toggle",l);break;case"input":eg(l,s),Te("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!s.multiple},Te("invalid",l);break;case"textarea":ng(l,s),Te("invalid",l)}Ac(r,s),o=null;for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];c==="children"?typeof f=="string"?l.textContent!==f&&(s.suppressHydrationWarning!==!0&&du(l.textContent,f,e),o=["children",f]):typeof f=="number"&&l.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&du(l.textContent,f,e),o=["children",""+f]):zl.hasOwnProperty(c)&&f!=null&&c==="onScroll"&&Te("scroll",l)}switch(r){case"input":iu(l),tg(l,s,!0);break;case"textarea":iu(l),rg(l);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(l.onclick=Uu)}l=o,t.updateQueue=l,l!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=R0(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=c.createElement(r,{is:l.is}):(e=c.createElement(r),r==="select"&&(c=e,l.multiple?c.multiple=!0:l.size&&(c.size=l.size))):e=c.createElementNS(e,r),e[xn]=t,e[ql]=l,bm(e,t,!1,!1),t.stateNode=e;e:{switch(c=Oc(r,l),r){case"dialog":Te("cancel",e),Te("close",e),o=l;break;case"iframe":case"object":case"embed":Te("load",e),o=l;break;case"video":case"audio":for(o=0;o<Ll.length;o++)Te(Ll[o],e);o=l;break;case"source":Te("error",e),o=l;break;case"img":case"image":case"link":Te("error",e),Te("load",e),o=l;break;case"details":Te("toggle",e),o=l;break;case"input":eg(e,l),o=kc(e,l),Te("invalid",e);break;case"option":o=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},o=We({},l,{value:void 0}),Te("invalid",e);break;case"textarea":ng(e,l),o=Rc(e,l),Te("invalid",e);break;default:o=l}Ac(r,o),f=o;for(s in f)if(f.hasOwnProperty(s)){var d=f[s];s==="style"?O0(e,d):s==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&T0(e,d)):s==="children"?typeof d=="string"?(r!=="textarea"||d!=="")&&Dl(e,d):typeof d=="number"&&Dl(e,""+d):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(zl.hasOwnProperty(s)?d!=null&&s==="onScroll"&&Te("scroll",e):d!=null&&xf(e,s,d,c))}switch(r){case"input":iu(e),tg(e,l,!1);break;case"textarea":iu(e),rg(e);break;case"option":l.value!=null&&e.setAttribute("value",""+_r(l.value));break;case"select":e.multiple=!!l.multiple,s=l.value,s!=null?Li(e,!!l.multiple,s,!1):l.defaultValue!=null&&Li(e,!!l.multiple,l.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Uu)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return st(t),null;case 6:if(e&&t.stateNode!=null)tv(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(V(166));if(r=$r(Yl.current),$r(En.current),pu(t)){if(l=t.stateNode,r=t.memoizedProps,l[xn]=t,(s=l.nodeValue!==r)&&(e=Dt,e!==null))switch(e.tag){case 3:du(l.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&du(l.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else l=(r.nodeType===9?r:r.ownerDocument).createTextNode(l),l[xn]=t,t.stateNode=l}return st(t),null;case 13:if(Ae(Me),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&zt!==null&&t.mode&1&&!(t.flags&128))wm(),Mi(),t.flags|=98560,s=!1;else if(s=pu(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(V(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(V(317));s[xn]=t}else Mi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;st(t),s=!1}else pn!==null&&(df(pn),pn=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,t.mode&1&&(e===null||Me.current&1?Ke===0&&(Ke=3):id())),t.updateQueue!==null&&(t.flags|=4),st(t),null);case 4:return Wi(),rf(e,t),e===null&&Gl(t.stateNode.containerInfo),st(t),null;case 10:return Uf(t.type._context),st(t),null;case 17:return It(t.type)&&ju(),st(t),null;case 19:if(Ae(Me),s=t.memoizedState,s===null)return st(t),null;if(l=(t.flags&128)!==0,c=s.rendering,c===null)if(l)wl(s,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Yu(e),c!==null){for(t.flags|=128,wl(s,!1),l=c.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;r!==null;)s=r,e=l,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ie(Me,Me.current&1|2),t.child}e=e.sibling}s.tail!==null&&je()>Di&&(t.flags|=128,l=!0,wl(s,!1),t.lanes=4194304)}else{if(!l)if(e=Yu(c),e!==null){if(t.flags|=128,l=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Pe)return st(t),null}else 2*je()-s.renderingStartTime>Di&&r!==1073741824&&(t.flags|=128,l=!0,wl(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(r=s.last,r!==null?r.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=je(),t.sibling=null,r=Me.current,Ie(Me,l?r&1|2:r&1),t):(st(t),null);case 22:case 23:return rd(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?Wt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function Rk(e,t){switch(zf(t),t.tag){case 1:return It(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(),Ae(Lt),Ae(ct),Qf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gf(t),null;case 13:if(Ae(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Me),null;case 4:return Wi(),null;case 10:return Uf(t.type._context),null;case 22:case 23:return rd(),null;case 24:return null;default:return null}}var mu=!1,at=!1,Tk=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Ei(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(l){De(e,t,l)}else r.current=null}function lf(e,t,r){try{r()}catch(l){De(e,t,l)}}var Qg=!1;function Ak(e,t){if(Uc=Du,e=lm(),Bf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var c=0,f=-1,d=-1,m=0,y=0,w=e,x=null;t:for(;;){for(var k;w!==r||o!==0&&w.nodeType!==3||(f=c+o),w!==s||l!==0&&w.nodeType!==3||(d=c+l),w.nodeType===3&&(c+=w.nodeValue.length),(k=w.firstChild)!==null;)x=w,w=k;for(;;){if(w===e)break t;if(x===r&&++m===o&&(f=c),x===s&&++y===l&&(d=c),(k=w.nextSibling)!==null)break;w=x,x=w.parentNode}w=k}r=f===-1||d===-1?null:{start:f,end:d}}else r=null}r=r||{start:0,end:0}}else r=null;for(jc={focusedElem:e,selectionRange:r},Du=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var I=O.memoizedProps,P=O.memoizedState,v=t.stateNode,_=v.getSnapshotBeforeUpdate(t.elementType===t.type?I:fn(t.type,I),P);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(M){De(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return O=Qg,Qg=!1,O}function Ml(e,t,r){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var o=l=l.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&lf(t,r,s)}o=o.next}while(o!==l)}}function vs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var l=r.create;r.destroy=l()}r=r.next}while(r!==t)}}function of(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function nv(e){var t=e.alternate;t!==null&&(e.alternate=null,nv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xn],delete t[ql],delete t[Gc],delete t[dk],delete t[pk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rv(e){return e.tag===5||e.tag===3||e.tag===4}function qg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Uu));else if(l!==4&&(e=e.child,e!==null))for(uf(e,t,r),e=e.sibling;e!==null;)uf(e,t,r),e=e.sibling}function sf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(sf(e,t,r),e=e.sibling;e!==null;)sf(e,t,r),e=e.sibling}var nt=null,dn=!1;function nr(e,t,r){for(r=r.child;r!==null;)iv(e,t,r),r=r.sibling}function iv(e,t,r){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(as,r)}catch{}switch(r.tag){case 5:at||Ei(r,t);case 6:var l=nt,o=dn;nt=null,nr(e,t,r),nt=l,dn=o,nt!==null&&(dn?(e=nt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nt.removeChild(r.stateNode));break;case 18:nt!==null&&(dn?(e=nt,r=r.stateNode,e.nodeType===8?uc(e.parentNode,r):e.nodeType===1&&uc(e,r),jl(e)):uc(nt,r.stateNode));break;case 4:l=nt,o=dn,nt=r.stateNode.containerInfo,dn=!0,nr(e,t,r),nt=l,dn=o;break;case 0:case 11:case 14:case 15:if(!at&&(l=r.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){o=l=l.next;do{var s=o,c=s.destroy;s=s.tag,c!==void 0&&(s&2||s&4)&&lf(r,t,c),o=o.next}while(o!==l)}nr(e,t,r);break;case 1:if(!at&&(Ei(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=r.memoizedProps,l.state=r.memoizedState,l.componentWillUnmount()}catch(f){De(r,t,f)}nr(e,t,r);break;case 21:nr(e,t,r);break;case 22:r.mode&1?(at=(l=at)||r.memoizedState!==null,nr(e,t,r),at=l):nr(e,t,r);break;default:nr(e,t,r)}}function Kg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Tk),t.forEach(function(l){var o=$k.bind(null,e,l);r.has(l)||(r.add(l),l.then(o,o))})}}function an(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];try{var s=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 5:nt=f.stateNode,dn=!1;break e;case 3:nt=f.stateNode.containerInfo,dn=!0;break e;case 4:nt=f.stateNode.containerInfo,dn=!0;break e}f=f.return}if(nt===null)throw Error(V(160));iv(s,c,o),nt=null,dn=!1;var d=o.alternate;d!==null&&(d.return=null),o.return=null}catch(m){De(o,t,m)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lv(t,e),t=t.sibling}function lv(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(an(t,e),_n(e),l&4){try{Ml(3,e,e.return),vs(3,e)}catch(I){De(e,e.return,I)}try{Ml(5,e,e.return)}catch(I){De(e,e.return,I)}}break;case 1:an(t,e),_n(e),l&512&&r!==null&&Ei(r,r.return);break;case 5:if(an(t,e),_n(e),l&512&&r!==null&&Ei(r,r.return),e.flags&32){var o=e.stateNode;try{Dl(o,"")}catch(I){De(e,e.return,I)}}if(l&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,c=r!==null?r.memoizedProps:s,f=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{f==="input"&&s.type==="radio"&&s.name!=null&&L0(o,s),Oc(f,c);var m=Oc(f,s);for(c=0;c<d.length;c+=2){var y=d[c],w=d[c+1];y==="style"?O0(o,w):y==="dangerouslySetInnerHTML"?T0(o,w):y==="children"?Dl(o,w):xf(o,y,w,m)}switch(f){case"input":Lc(o,s);break;case"textarea":I0(o,s);break;case"select":var x=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var k=s.value;k!=null?Li(o,!!s.multiple,k,!1):x!==!!s.multiple&&(s.defaultValue!=null?Li(o,!!s.multiple,s.defaultValue,!0):Li(o,!!s.multiple,s.multiple?[]:"",!1))}o[ql]=s}catch(I){De(e,e.return,I)}}break;case 6:if(an(t,e),_n(e),l&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(I){De(e,e.return,I)}}break;case 3:if(an(t,e),_n(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{jl(t.containerInfo)}catch(I){De(e,e.return,I)}break;case 4:an(t,e),_n(e);break;case 13:an(t,e),_n(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(td=je())),l&4&&Kg(e);break;case 22:if(y=r!==null&&r.memoizedState!==null,e.mode&1?(at=(m=at)||y,an(t,e),at=m):an(t,e),_n(e),l&8192){if(m=e.memoizedState!==null,(e.stateNode.isHidden=m)&&!y&&e.mode&1)for(Y=e,y=e.child;y!==null;){for(w=Y=y;Y!==null;){switch(x=Y,k=x.child,x.tag){case 0:case 11:case 14:case 15:Ml(4,x,x.return);break;case 1:Ei(x,x.return);var O=x.stateNode;if(typeof O.componentWillUnmount=="function"){l=x,r=x.return;try{t=l,O.props=t.memoizedProps,O.state=t.memoizedState,O.componentWillUnmount()}catch(I){De(l,r,I)}}break;case 5:Ei(x,x.return);break;case 22:if(x.memoizedState!==null){Zg(w);continue}}k!==null?(k.return=x,Y=k):Zg(w)}y=y.sibling}e:for(y=null,w=e;;){if(w.tag===5){if(y===null){y=w;try{o=w.stateNode,m?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=w.stateNode,d=w.memoizedProps.style,c=d!=null&&d.hasOwnProperty("display")?d.display:null,f.style.display=A0("display",c))}catch(I){De(e,e.return,I)}}}else if(w.tag===6){if(y===null)try{w.stateNode.nodeValue=m?"":w.memoizedProps}catch(I){De(e,e.return,I)}}else if((w.tag!==22&&w.tag!==23||w.memoizedState===null||w===e)&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===e)break e;for(;w.sibling===null;){if(w.return===null||w.return===e)break e;y===w&&(y=null),w=w.return}y===w&&(y=null),w.sibling.return=w.return,w=w.sibling}}break;case 19:an(t,e),_n(e),l&4&&Kg(e);break;case 21:break;default:an(t,e),_n(e)}}function _n(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(rv(r)){var l=r;break e}r=r.return}throw Error(V(160))}switch(l.tag){case 5:var o=l.stateNode;l.flags&32&&(Dl(o,""),l.flags&=-33);var s=qg(e);sf(e,s,o);break;case 3:case 4:var c=l.stateNode.containerInfo,f=qg(e);uf(e,f,c);break;default:throw Error(V(161))}}catch(d){De(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ok(e,t,r){Y=e,ov(e)}function ov(e,t,r){for(var l=(e.mode&1)!==0;Y!==null;){var o=Y,s=o.child;if(o.tag===22&&l){var c=o.memoizedState!==null||mu;if(!c){var f=o.alternate,d=f!==null&&f.memoizedState!==null||at;f=mu;var m=at;if(mu=c,(at=d)&&!m)for(Y=o;Y!==null;)c=Y,d=c.child,c.tag===22&&c.memoizedState!==null?Xg(o):d!==null?(d.return=c,Y=d):Xg(o);for(;s!==null;)Y=s,ov(s),s=s.sibling;Y=o,mu=f,at=m}Yg(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,Y=s):Yg(e)}}function Yg(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||vs(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!at)if(r===null)l.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:fn(t.type,r.memoizedProps);l.componentDidUpdate(o,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Pg(t,s,l);break;case 3:var c=t.updateQueue;if(c!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Pg(t,c,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&r.focus();break;case"img":d.src&&(r.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var m=t.alternate;if(m!==null){var y=m.memoizedState;if(y!==null){var w=y.dehydrated;w!==null&&jl(w)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}at||t.flags&512&&of(t)}catch(x){De(t,t.return,x)}}if(t===e){Y=null;break}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Zg(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Xg(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{vs(4,t)}catch(d){De(t,r,d)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var o=t.return;try{l.componentDidMount()}catch(d){De(t,o,d)}}var s=t.return;try{of(t)}catch(d){De(t,s,d)}break;case 5:var c=t.return;try{of(t)}catch(d){De(t,c,d)}}}catch(d){De(t,t.return,d)}if(t===e){Y=null;break}var f=t.sibling;if(f!==null){f.return=t.return,Y=f;break}Y=t.return}}var Pk=Math.ceil,Ju=Gn.ReactCurrentDispatcher,bf=Gn.ReactCurrentOwner,bt=Gn.ReactCurrentBatchConfig,ye=0,Je=null,Ve=null,rt=0,Wt=0,ki=Er(0),Ke=0,bl=null,Gr=0,ws=0,ed=0,Bl=null,Et=null,td=0,Di=1/0,Wn=null,bu=!1,af=null,gr=null,vu=!1,ar=null,es=0,Wl=0,cf=null,Au=-1,Ou=0;function vt(){return ye&6?je():Au!==-1?Au:Au=je()}function mr(e){return e.mode&1?ye&2&&rt!==0?rt&-rt:gk.transition!==null?(Ou===0&&(Ou=H0()),Ou):(e=Ce,e!==0||(e=window.event,e=e===void 0?16:Z0(e.type)),e):1}function gn(e,t,r,l){if(50<Wl)throw Wl=0,cf=null,Error(V(185));ro(e,r,l),(!(ye&2)||e!==Je)&&(e===Je&&(!(ye&2)&&(ws|=r),Ke===4&&or(e,rt)),Rt(e,l),r===1&&ye===0&&!(t.mode&1)&&(Di=je()+500,hs&&kr()))}function Rt(e,t){var r=e.callbackNode;gE(e,t);var l=zu(e,e===Je?rt:0);if(l===0)r!==null&&og(r),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(r!=null&&og(r),t===1)e.tag===0?hk(Jg.bind(null,e)):gm(Jg.bind(null,e)),ck(function(){!(ye&6)&&kr()}),r=null;else{switch(V0(l)){case 1:r=If;break;case 4:r=U0;break;case 16:r=Wu;break;case 536870912:r=j0;break;default:r=Wu}r=hv(r,uv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function uv(e,t){if(Au=-1,Ou=0,ye&6)throw Error(V(327));var r=e.callbackNode;if(Oi()&&e.callbackNode!==r)return null;var l=zu(e,e===Je?rt:0);if(l===0)return null;if(l&30||l&e.expiredLanes||t)t=ts(e,l);else{t=l;var o=ye;ye|=2;var s=av();(Je!==e||rt!==t)&&(Wn=null,Di=je()+500,Fr(e,t));do try{Bk();break}catch(f){sv(e,f)}while(1);Ff(),Ju.current=s,ye=o,Ve!==null?t=0:(Je=null,rt=0,t=Ke)}if(t!==0){if(t===2&&(o=Wc(e),o!==0&&(l=o,t=ff(e,o))),t===1)throw r=bl,Fr(e,0),or(e,l),Rt(e,je()),r;if(t===6)or(e,l);else{if(o=e.current.alternate,!(l&30)&&!Nk(o)&&(t=ts(e,l),t===2&&(s=Wc(e),s!==0&&(l=s,t=ff(e,s))),t===1))throw r=bl,Fr(e,0),or(e,l),Rt(e,je()),r;switch(e.finishedWork=o,e.finishedLanes=l,t){case 0:case 1:throw Error(V(345));case 2:Wr(e,Et,Wn);break;case 3:if(or(e,l),(l&130023424)===l&&(t=td+500-je(),10<t)){if(zu(e,0)!==0)break;if(o=e.suspendedLanes,(o&l)!==l){vt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Vc(Wr.bind(null,e,Et,Wn),t);break}Wr(e,Et,Wn);break;case 4:if(or(e,l),(l&4194240)===l)break;for(t=e.eventTimes,o=-1;0<l;){var c=31-hn(l);s=1<<c,c=t[c],c>o&&(o=c),l&=~s}if(l=o,l=je()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Pk(l/1960))-l,10<l){e.timeoutHandle=Vc(Wr.bind(null,e,Et,Wn),l);break}Wr(e,Et,Wn);break;case 5:Wr(e,Et,Wn);break;default:throw Error(V(329))}}}return Rt(e,je()),e.callbackNode===r?uv.bind(null,e):null}function ff(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(Fr(e,t).flags|=256),e=ts(e,t),e!==2&&(t=Et,Et=r,t!==null&&df(t)),e}function df(e){Et===null?Et=e:Et.push.apply(Et,e)}function Nk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var l=0;l<r.length;l++){var o=r[l],s=o.getSnapshot;o=o.value;try{if(!mn(s(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function or(e,t){for(t&=~ed,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-hn(t),l=1<<r;e[r]=-1,t&=~l}}function Jg(e){if(ye&6)throw Error(V(327));Oi();var t=zu(e,0);if(!(t&1))return Rt(e,je()),null;var r=ts(e,t);if(e.tag!==0&&r===2){var l=Wc(e);l!==0&&(t=l,r=ff(e,l))}if(r===1)throw r=bl,Fr(e,0),or(e,t),Rt(e,je()),r;if(r===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wr(e,Et,Wn),Rt(e,je()),null}function nd(e,t){var r=ye;ye|=1;try{return e(t)}finally{ye=r,ye===0&&(Di=je()+500,hs&&kr())}}function Qr(e){ar!==null&&ar.tag===0&&!(ye&6)&&Oi();var t=ye;ye|=1;var r=bt.transition,l=Ce;try{if(bt.transition=null,Ce=1,e)return e()}finally{Ce=l,bt.transition=r,ye=t,!(ye&6)&&kr()}}function rd(){Wt=ki.current,Ae(ki)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,ak(r)),Ve!==null)for(r=Ve.return;r!==null;){var l=r;switch(zf(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&ju();break;case 3:Wi(),Ae(Lt),Ae(ct),Qf();break;case 5:Gf(l);break;case 4:Wi();break;case 13:Ae(Me);break;case 19:Ae(Me);break;case 10:Uf(l.type._context);break;case 22:case 23:rd()}r=r.return}if(Je=e,Ve=e=vr(e.current,null),rt=Wt=t,Ke=0,bl=null,ed=ws=Gr=0,Et=Bl=null,Dr!==null){for(t=0;t<Dr.length;t++)if(r=Dr[t],l=r.interleaved,l!==null){r.interleaved=null;var o=l.next,s=r.pending;if(s!==null){var c=s.next;s.next=o,l.next=c}r.pending=l}Dr=null}return e}function sv(e,t){do{var r=Ve;try{if(Ff(),Iu.current=Xu,Zu){for(var l=Be.memoizedState;l!==null;){var o=l.queue;o!==null&&(o.pending=null),l=l.next}Zu=!1}if(Vr=0,Ze=qe=Be=null,Nl=!1,Zl=0,bf.current=null,r===null||r.return===null){Ke=1,bl=t,Ve=null;break}e:{var s=e,c=r.return,f=r,d=t;if(t=rt,f.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var m=d,y=f,w=y.tag;if(!(y.mode&1)&&(w===0||w===11||w===15)){var x=y.alternate;x?(y.updateQueue=x.updateQueue,y.memoizedState=x.memoizedState,y.lanes=x.lanes):(y.updateQueue=null,y.memoizedState=null)}var k=$g(c);if(k!==null){k.flags&=-257,Fg(k,c,f,s,t),k.mode&1&&Dg(s,m,t),t=k,d=m;var O=t.updateQueue;if(O===null){var I=new Set;I.add(d),t.updateQueue=I}else O.add(d);break e}else{if(!(t&1)){Dg(s,m,t),id();break e}d=Error(V(426))}}else if(Pe&&f.mode&1){var P=$g(c);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Fg(P,c,f,s,t),Df(zi(d,f));break e}}s=d=zi(d,f),Ke!==4&&(Ke=2),Bl===null?Bl=[s]:Bl.push(s),s=c;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=Gm(s,d,t);Og(s,v);break e;case 1:f=d;var _=s.type,C=s.stateNode;if(!(s.flags&128)&&(typeof _.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(gr===null||!gr.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t;var M=Qm(s,f,t);Og(s,M);break e}}s=s.return}while(s!==null)}fv(r)}catch(z){t=z,Ve===r&&r!==null&&(Ve=r=r.return);continue}break}while(1)}function av(){var e=Ju.current;return Ju.current=Xu,e===null?Xu:e}function id(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Je===null||!(Gr&268435455)&&!(ws&268435455)||or(Je,rt)}function ts(e,t){var r=ye;ye|=2;var l=av();(Je!==e||rt!==t)&&(Wn=null,Fr(e,t));do try{Mk();break}catch(o){sv(e,o)}while(1);if(Ff(),ye=r,Ju.current=l,Ve!==null)throw Error(V(261));return Je=null,rt=0,Ke}function Mk(){for(;Ve!==null;)cv(Ve)}function Bk(){for(;Ve!==null&&!oE();)cv(Ve)}function cv(e){var t=pv(e.alternate,e,Wt);e.memoizedProps=e.pendingProps,t===null?fv(e):Ve=t,bf.current=null}function fv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Rk(r,t),r!==null){r.flags&=32767,Ve=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,Ve=null;return}}else if(r=Ik(r,t,Wt),r!==null){Ve=r;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Ke===0&&(Ke=5)}function Wr(e,t,r){var l=Ce,o=bt.transition;try{bt.transition=null,Ce=1,Wk(e,t,r,l)}finally{bt.transition=o,Ce=l}return null}function Wk(e,t,r,l){do Oi();while(ar!==null);if(ye&6)throw Error(V(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(mE(e,s),e===Je&&(Ve=Je=null,rt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||vu||(vu=!0,hv(Wu,function(){return Oi(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=bt.transition,bt.transition=null;var c=Ce;Ce=1;var f=ye;ye|=4,bf.current=null,Ak(e,r),lv(r,e),nk(jc),Du=!!Uc,jc=Uc=null,e.current=r,Ok(r),uE(),ye=f,Ce=c,bt.transition=s}else e.current=r;if(vu&&(vu=!1,ar=e,es=o),s=e.pendingLanes,s===0&&(gr=null),cE(r.stateNode),Rt(e,je()),t!==null)for(l=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],l(o.value,{componentStack:o.stack,digest:o.digest});if(bu)throw bu=!1,e=af,af=null,e;return es&1&&e.tag!==0&&Oi(),s=e.pendingLanes,s&1?e===cf?Wl++:(Wl=0,cf=e):Wl=0,kr(),null}function Oi(){if(ar!==null){var e=V0(es),t=bt.transition,r=Ce;try{if(bt.transition=null,Ce=16>e?16:e,ar===null)var l=!1;else{if(e=ar,ar=null,es=0,ye&6)throw Error(V(331));var o=ye;for(ye|=4,Y=e.current;Y!==null;){var s=Y,c=s.child;if(Y.flags&16){var f=s.deletions;if(f!==null){for(var d=0;d<f.length;d++){var m=f[d];for(Y=m;Y!==null;){var y=Y;switch(y.tag){case 0:case 11:case 15:Ml(8,y,s)}var w=y.child;if(w!==null)w.return=y,Y=w;else for(;Y!==null;){y=Y;var x=y.sibling,k=y.return;if(nv(y),y===m){Y=null;break}if(x!==null){x.return=k,Y=x;break}Y=k}}}var O=s.alternate;if(O!==null){var I=O.child;if(I!==null){O.child=null;do{var P=I.sibling;I.sibling=null,I=P}while(I!==null)}}Y=s}}if(s.subtreeFlags&2064&&c!==null)c.return=s,Y=c;else e:for(;Y!==null;){if(s=Y,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ml(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,Y=v;break e}Y=s.return}}var _=e.current;for(Y=_;Y!==null;){c=Y;var C=c.child;if(c.subtreeFlags&2064&&C!==null)C.return=c,Y=C;else e:for(c=_;Y!==null;){if(f=Y,f.flags&2048)try{switch(f.tag){case 0:case 11:case 15:vs(9,f)}}catch(z){De(f,f.return,z)}if(f===c){Y=null;break e}var M=f.sibling;if(M!==null){M.return=f.return,Y=M;break e}Y=f.return}}if(ye=o,kr(),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(as,e)}catch{}l=!0}return l}finally{Ce=r,bt.transition=t}}return!1}function bg(e,t,r){t=zi(r,t),t=Gm(e,t,1),e=hr(e,t,1),t=vt(),e!==null&&(ro(e,1,t),Rt(e,t))}function De(e,t,r){if(e.tag===3)bg(e,e,r);else for(;t!==null;){if(t.tag===3){bg(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(gr===null||!gr.has(l))){e=zi(r,e),e=Qm(t,e,1),t=hr(t,e,1),e=vt(),t!==null&&(ro(t,1,e),Rt(t,e));break}}t=t.return}}function zk(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&r,Je===e&&(rt&r)===r&&(Ke===4||Ke===3&&(rt&130023424)===rt&&500>je()-td?Fr(e,0):ed|=r),Rt(e,t)}function dv(e,t){t===0&&(e.mode&1?(t=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):t=1);var r=vt();e=Hn(e,t),e!==null&&(ro(e,t,r),Rt(e,r))}function Dk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),dv(e,r)}function $k(e,t){var r=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(V(314))}l!==null&&l.delete(t),dv(e,r)}var pv;pv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)kt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return kt=!1,Lk(e,t,r);kt=!!(e.flags&131072)}else kt=!1,Pe&&t.flags&1048576&&mm(t,Gu,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Tu(e,t),e=t.pendingProps;var o=Ni(t,ct.current);Ai(t,r),o=Kf(null,t,l,e,o,r);var s=Yf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(l)?(s=!0,Hu(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hf(t),o.updater=gs,t.stateNode=o,o._reactInternals=t,Xc(t,l,e,r),t=ef(null,t,l,!0,s,r)):(t.tag=0,Pe&&s&&Wf(t),mt(null,t,o,r),t=t.child),t;case 16:l=t.elementType;e:{switch(Tu(e,t),e=t.pendingProps,o=l._init,l=o(l._payload),t.type=l,o=t.tag=Uk(l),e=fn(l,e),o){case 0:t=bc(null,t,l,e,r);break e;case 1:t=Hg(null,t,l,e,r);break e;case 11:t=Ug(null,t,l,e,r);break e;case 14:t=jg(null,t,l,fn(l.type,e),r);break e}throw Error(V(306,l,""))}return t;case 0:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),bc(e,t,l,o,r);case 1:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),Hg(e,t,l,o,r);case 3:e:{if(Zm(t),e===null)throw Error(V(387));l=t.pendingProps,s=t.memoizedState,o=s.element,_m(e,t),Ku(t,l,null,r);var c=t.memoizedState;if(l=c.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=zi(Error(V(423)),t),t=Vg(e,t,l,r,o);break e}else if(l!==o){o=zi(Error(V(424)),t),t=Vg(e,t,l,r,o);break e}else for(zt=pr(t.stateNode.containerInfo.firstChild),Dt=t,Pe=!0,pn=null,r=Em(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Mi(),l===o){t=Vn(e,t,r);break e}mt(e,t,l,r)}t=t.child}return t;case 5:return km(t),e===null&&Kc(t),l=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,c=o.children,Hc(l,o)?c=null:s!==null&&Hc(l,s)&&(t.flags|=32),Ym(e,t),mt(e,t,c,r),t.child;case 6:return e===null&&Kc(t),null;case 13:return Xm(e,t,r);case 4:return Vf(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Bi(t,null,l,r):mt(e,t,l,r),t.child;case 11:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),Ug(e,t,l,o,r);case 7:return mt(e,t,t.pendingProps,r),t.child;case 8:return mt(e,t,t.pendingProps.children,r),t.child;case 12:return mt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(l=t.type._context,o=t.pendingProps,s=t.memoizedProps,c=o.value,Ie(Qu,l._currentValue),l._currentValue=c,s!==null)if(mn(s.value,c)){if(s.children===o.children&&!Lt.current){t=Vn(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var f=s.dependencies;if(f!==null){c=s.child;for(var d=f.firstContext;d!==null;){if(d.context===l){if(s.tag===1){d=Fn(-1,r&-r),d.tag=2;var m=s.updateQueue;if(m!==null){m=m.shared;var y=m.pending;y===null?d.next=d:(d.next=y.next,y.next=d),m.pending=d}}s.lanes|=r,d=s.alternate,d!==null&&(d.lanes|=r),Yc(s.return,r,t),f.lanes|=r;break}d=d.next}}else if(s.tag===10)c=s.type===t.type?null:s.child;else if(s.tag===18){if(c=s.return,c===null)throw Error(V(341));c.lanes|=r,f=c.alternate,f!==null&&(f.lanes|=r),Yc(c,r,t),c=s.sibling}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===t){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}mt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,l=t.pendingProps.children,Ai(t,r),o=en(o),l=l(o),t.flags|=1,mt(e,t,l,r),t.child;case 14:return l=t.type,o=fn(l,t.pendingProps),o=fn(l.type,o),jg(e,t,l,o,r);case 15:return qm(e,t,t.type,t.pendingProps,r);case 17:return l=t.type,o=t.pendingProps,o=t.elementType===l?o:fn(l,o),Tu(e,t),t.tag=1,It(l)?(e=!0,Hu(t)):e=!1,Ai(t,r),xm(t,l,o),Xc(t,l,o,r),ef(null,t,l,!0,e,r);case 19:return Jm(e,t,r);case 22:return Km(e,t,r)}throw Error(V(156,t.tag))};function hv(e,t){return F0(e,t)}function Fk(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,r,l){return new Fk(e,t,r,l)}function ld(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uk(e){if(typeof e=="function")return ld(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ef)return 11;if(e===kf)return 14}return 2}function vr(e,t){var r=e.alternate;return r===null?(r=Jt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Pu(e,t,r,l,o,s){var c=2;if(l=e,typeof e=="function")ld(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case gi:return Ur(r.children,o,s,t);case Cf:c=8,o|=8;break;case Sc:return e=Jt(12,r,t,o|2),e.elementType=Sc,e.lanes=s,e;case xc:return e=Jt(13,r,t,o),e.elementType=xc,e.lanes=s,e;case Cc:return e=Jt(19,r,t,o),e.elementType=Cc,e.lanes=s,e;case C0:return ys(r,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S0:c=10;break e;case x0:c=9;break e;case Ef:c=11;break e;case kf:c=14;break e;case rr:c=16,l=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Jt(c,r,t,o),t.elementType=e,t.type=l,t.lanes=s,t}function Ur(e,t,r,l){return e=Jt(7,e,l,t),e.lanes=r,e}function ys(e,t,r,l){return e=Jt(22,e,l,t),e.elementType=C0,e.lanes=r,e.stateNode={isHidden:!1},e}function gc(e,t,r){return e=Jt(6,e,null,t),e.lanes=r,e}function mc(e,t,r){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jk(e,t,r,l,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Za(0),this.expirationTimes=Za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.identifierPrefix=l,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function od(e,t,r,l,o,s,c,f,d){return e=new jk(e,t,r,f,d),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Jt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:l,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hf(s),e}function Hk(e,t,r){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hi,key:l==null?null:""+l,children:e,containerInfo:t,implementation:r}}function gv(e){if(!e)return Sr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(It(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var r=e.type;if(It(r))return hm(e,r,t)}return t}function mv(e,t,r,l,o,s,c,f,d){return e=od(r,l,!0,e,o,s,c,f,d),e.context=gv(null),r=e.current,l=vt(),o=mr(r),s=Fn(l,o),s.callback=t??null,hr(r,s,o),e.current.lanes=o,ro(e,o,l),Rt(e,l),e}function _s(e,t,r,l){var o=t.current,s=vt(),c=mr(o);return r=gv(r),t.context===null?t.context=r:t.pendingContext=r,t=Fn(s,c),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=hr(o,t,c),e!==null&&(gn(e,o,c,s),Lu(e,o,c)),c}function ns(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function e0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ud(e,t){e0(e,t),(e=e.alternate)&&e0(e,t)}function Vk(){return null}var vv=typeof reportError=="function"?reportError:function(e){console.error(e)};function sd(e){this._internalRoot=e}Ss.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));_s(e,t,null,null)};Ss.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qr(function(){_s(null,e,null,null)}),t[jn]=null}};function Ss(e){this._internalRoot=e}Ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=q0();e={blockedOn:null,target:e,priority:t};for(var r=0;r<lr.length&&t!==0&&t<lr[r].priority;r++);lr.splice(r,0,e),r===0&&Y0(e)}};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t0(){}function Gk(e,t,r,l,o){if(o){if(typeof l=="function"){var s=l;l=function(){var m=ns(c);s.call(m)}}var c=mv(t,l,e,0,null,!1,!1,"",t0);return e._reactRootContainer=c,e[jn]=c.current,Gl(e.nodeType===8?e.parentNode:e),Qr(),c}for(;o=e.lastChild;)e.removeChild(o);if(typeof l=="function"){var f=l;l=function(){var m=ns(d);f.call(m)}}var d=od(e,0,!1,null,null,!1,!1,"",t0);return e._reactRootContainer=d,e[jn]=d.current,Gl(e.nodeType===8?e.parentNode:e),Qr(function(){_s(t,d,r,l)}),d}function Cs(e,t,r,l,o){var s=r._reactRootContainer;if(s){var c=s;if(typeof o=="function"){var f=o;o=function(){var d=ns(c);f.call(d)}}_s(t,c,e,o)}else c=Gk(r,t,e,o,l);return ns(c)}G0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=kl(t.pendingLanes);r!==0&&(Rf(t,r|1),Rt(t,je()),!(ye&6)&&(Di=je()+500,kr()))}break;case 13:Qr(function(){var l=Hn(e,1);if(l!==null){var o=vt();gn(l,e,1,o)}}),ud(e,1)}};Tf=function(e){if(e.tag===13){var t=Hn(e,134217728);if(t!==null){var r=vt();gn(t,e,134217728,r)}ud(e,134217728)}};Q0=function(e){if(e.tag===13){var t=mr(e),r=Hn(e,t);if(r!==null){var l=vt();gn(r,e,t,l)}ud(e,t)}};q0=function(){return Ce};K0=function(e,t){var r=Ce;try{return Ce=e,t()}finally{Ce=r}};Nc=function(e,t,r){switch(t){case"input":if(Lc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=ps(l);if(!o)throw Error(V(90));k0(l),Lc(l,o)}}}break;case"textarea":I0(e,r);break;case"select":t=r.value,t!=null&&Li(e,!!r.multiple,t,!1)}};M0=nd;B0=Qr;var Qk={usingClientEntryPoint:!1,Events:[lo,yi,ps,P0,N0,nd]},yl={findFiberByHostInstance:zr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},qk={bundleType:yl.bundleType,version:yl.version,rendererPackageName:yl.rendererPackageName,rendererConfig:yl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=D0(e),e===null?null:e.stateNode},findFiberByHostInstance:yl.findFiberByHostInstance||Vk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{as=wu.inject(qk),Cn=wu}catch{}}Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qk;Ft.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(V(200));return Hk(e,t,null,r)};Ft.createRoot=function(e,t){if(!ad(e))throw Error(V(299));var r=!1,l="",o=vv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=od(e,1,!1,null,null,r,!1,l,o),e[jn]=t.current,Gl(e.nodeType===8?e.parentNode:e),new sd(t)};Ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=D0(t),e=e===null?null:e.stateNode,e};Ft.flushSync=function(e){return Qr(e)};Ft.hydrate=function(e,t,r){if(!xs(t))throw Error(V(200));return Cs(null,e,t,!0,r)};Ft.hydrateRoot=function(e,t,r){if(!ad(e))throw Error(V(405));var l=r!=null&&r.hydratedSources||null,o=!1,s="",c=vv;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),t=mv(t,null,e,1,r??null,o,!1,s,c),e[jn]=t.current,Gl(e),l)for(e=0;e<l.length;e++)r=l[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ss(t)};Ft.render=function(e,t,r){if(!xs(t))throw Error(V(200));return Cs(null,e,t,!1,r)};Ft.unmountComponentAtNode=function(e){if(!xs(e))throw Error(V(40));return e._reactRootContainer?(Qr(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1};Ft.unstable_batchedUpdates=nd;Ft.unstable_renderSubtreeIntoContainer=function(e,t,r,l){if(!xs(r))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return Cs(e,t,r,!1,l)};Ft.version="18.2.0-next-9e3b772b8-20220608";function wv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wv)}catch(e){console.error(e)}}wv(),m0.exports=Ft;var cd=m0.exports,yv,n0=cd;yv=yc.createRoot=n0.createRoot,yc.hydrateRoot=n0.hydrateRoot;(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var rs={exports:{}};/**
* @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
*/rs.exports;(function(e,t){(function(){var r,l="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,y="__lodash_placeholder__",w=1,x=2,k=4,O=1,I=2,P=1,v=2,_=4,C=8,M=16,z=32,U=64,A=128,B=256,b=512,H=30,ee="...",ve=800,ie=16,ce=1,se=2,$e=3,le=1/0,$=9007199254740991,Q=17976931348623157e292,G=0/0,Z=4294967295,we=Z-1,He=Z>>>1,Ee=[["ary",A],["bind",P],["bindKey",v],["curry",C],["curryRight",M],["flip",b],["partial",z],["partialRight",U],["rearg",B]],ft="[object Arguments]",dt="[object Array]",Tt="[object AsyncFunction]",Hi="[object Boolean]",Vi="[object Date]",Nv="[object DOMException]",co="[object Error]",fo="[object Function]",gd="[object GeneratorFunction]",nn="[object Map]",Gi="[object Number]",Mv="[object Null]",Ln="[object Object]",md="[object Promise]",Bv="[object Proxy]",Qi="[object RegExp]",rn="[object Set]",qi="[object String]",po="[object Symbol]",Wv="[object Undefined]",Ki="[object WeakMap]",zv="[object WeakSet]",Yi="[object ArrayBuffer]",Zr="[object DataView]",Es="[object Float32Array]",ks="[object Float64Array]",Ls="[object Int8Array]",Is="[object Int16Array]",Rs="[object Int32Array]",Ts="[object Uint8Array]",As="[object Uint8ClampedArray]",Os="[object Uint16Array]",Ps="[object Uint32Array]",Dv=/\b__p \+= '';/g,$v=/\b(__p \+=) '' \+/g,Fv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vd=/&(?:amp|lt|gt|quot|#39);/g,wd=/[&<>"']/g,Uv=RegExp(vd.source),jv=RegExp(wd.source),Hv=/<%-([\s\S]+?)%>/g,Vv=/<%([\s\S]+?)%>/g,yd=/<%=([\s\S]+?)%>/g,Gv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qv=/^\w*$/,qv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ns=/[\\^$.*+?()[\]{}|]/g,Kv=RegExp(Ns.source),Ms=/^\s+/,Yv=/\s/,Zv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xv=/\{\n\/\* \[wrapped with (.+)\] \*/,Jv=/,? & /,bv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,e1=/[()=,{}\[\]\/\s]/,t1=/\\(\\)?/g,n1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_d=/\w*$/,r1=/^[-+]0x[0-9a-f]+$/i,i1=/^0b[01]+$/i,l1=/^\[object .+?Constructor\]$/,o1=/^0o[0-7]+$/i,u1=/^(?:0|[1-9]\d*)$/,s1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ho=/($^)/,a1=/['\n\r\u2028\u2029\\]/g,go="\\ud800-\\udfff",c1="\\u0300-\\u036f",f1="\\ufe20-\\ufe2f",d1="\\u20d0-\\u20ff",Sd=c1+f1+d1,xd="\\u2700-\\u27bf",Cd="a-z\\xdf-\\xf6\\xf8-\\xff",p1="\\xac\\xb1\\xd7\\xf7",h1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g1="\\u2000-\\u206f",m1=" \\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",Ed="A-Z\\xc0-\\xd6\\xd8-\\xde",kd="\\ufe0e\\ufe0f",Ld=p1+h1+g1+m1,Bs="['’]",v1="["+go+"]",Id="["+Ld+"]",mo="["+Sd+"]",Rd="\\d+",w1="["+xd+"]",Td="["+Cd+"]",Ad="[^"+go+Ld+Rd+xd+Cd+Ed+"]",Ws="\\ud83c[\\udffb-\\udfff]",y1="(?:"+mo+"|"+Ws+")",Od="[^"+go+"]",zs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",Xr="["+Ed+"]",Pd="\\u200d",Nd="(?:"+Td+"|"+Ad+")",_1="(?:"+Xr+"|"+Ad+")",Md="(?:"+Bs+"(?:d|ll|m|re|s|t|ve))?",Bd="(?:"+Bs+"(?:D|LL|M|RE|S|T|VE))?",Wd=y1+"?",zd="["+kd+"]?",S1="(?:"+Pd+"(?:"+[Od,zs,Ds].join("|")+")"+zd+Wd+")*",x1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",C1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=zd+Wd+S1,E1="(?:"+[w1,zs,Ds].join("|")+")"+Dd,k1="(?:"+[Od+mo+"?",mo,zs,Ds,v1].join("|")+")",L1=RegExp(Bs,"g"),I1=RegExp(mo,"g"),$s=RegExp(Ws+"(?="+Ws+")|"+k1+Dd,"g"),R1=RegExp([Xr+"?"+Td+"+"+Md+"(?="+[Id,Xr,"$"].join("|")+")",_1+"+"+Bd+"(?="+[Id,Xr+Nd,"$"].join("|")+")",Xr+"?"+Nd+"+"+Md,Xr+"+"+Bd,C1,x1,Rd,E1].join("|"),"g"),T1=RegExp("["+Pd+go+Sd+kd+"]"),A1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,O1=["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"],P1=-1,Re={};Re[Es]=Re[ks]=Re[Ls]=Re[Is]=Re[Rs]=Re[Ts]=Re[As]=Re[Os]=Re[Ps]=!0,Re[ft]=Re[dt]=Re[Yi]=Re[Hi]=Re[Zr]=Re[Vi]=Re[co]=Re[fo]=Re[nn]=Re[Gi]=Re[Ln]=Re[Qi]=Re[rn]=Re[qi]=Re[Ki]=!1;var Le={};Le[ft]=Le[dt]=Le[Yi]=Le[Zr]=Le[Hi]=Le[Vi]=Le[Es]=Le[ks]=Le[Ls]=Le[Is]=Le[Rs]=Le[nn]=Le[Gi]=Le[Ln]=Le[Qi]=Le[rn]=Le[qi]=Le[po]=Le[Ts]=Le[As]=Le[Os]=Le[Ps]=!0,Le[co]=Le[fo]=Le[Ki]=!1;var N1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},M1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},B1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},W1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},z1=parseFloat,D1=parseInt,$d=typeof fl=="object"&&fl&&fl.Object===Object&&fl,$1=typeof self=="object"&&self&&self.Object===Object&&self,be=$d||$1||Function("return this")(),Fs=t&&!t.nodeType&&t,Lr=Fs&&!0&&e&&!e.nodeType&&e,Fd=Lr&&Lr.exports===Fs,Us=Fd&&$d.process,jt=function(){try{var L=Lr&&Lr.require&&Lr.require("util").types;return L||Us&&Us.binding&&Us.binding("util")}catch{}}(),Ud=jt&&jt.isArrayBuffer,jd=jt&&jt.isDate,Hd=jt&&jt.isMap,Vd=jt&&jt.isRegExp,Gd=jt&&jt.isSet,Qd=jt&&jt.isTypedArray;function At(L,W,N){switch(N.length){case 0:return L.call(W);case 1:return L.call(W,N[0]);case 2:return L.call(W,N[0],N[1]);case 3:return L.call(W,N[0],N[1],N[2])}return L.apply(W,N)}function F1(L,W,N,K){for(var oe=-1,_e=L==null?0:L.length;++oe<_e;){var Ge=L[oe];W(K,Ge,N(Ge),L)}return K}function Ht(L,W){for(var N=-1,K=L==null?0:L.length;++N<K&&W(L[N],N,L)!==!1;);return L}function U1(L,W){for(var N=L==null?0:L.length;N--&&W(L[N],N,L)!==!1;);return L}function qd(L,W){for(var N=-1,K=L==null?0:L.length;++N<K;)if(!W(L[N],N,L))return!1;return!0}function qn(L,W){for(var N=-1,K=L==null?0:L.length,oe=0,_e=[];++N<K;){var Ge=L[N];W(Ge,N,L)&&(_e[oe++]=Ge)}return _e}function vo(L,W){var N=L==null?0:L.length;return!!N&&Jr(L,W,0)>-1}function js(L,W,N){for(var K=-1,oe=L==null?0:L.length;++K<oe;)if(N(W,L[K]))return!0;return!1}function Oe(L,W){for(var N=-1,K=L==null?0:L.length,oe=Array(K);++N<K;)oe[N]=W(L[N],N,L);return oe}function Kn(L,W){for(var N=-1,K=W.length,oe=L.length;++N<K;)L[oe+N]=W[N];return L}function Hs(L,W,N,K){var oe=-1,_e=L==null?0:L.length;for(K&&_e&&(N=L[++oe]);++oe<_e;)N=W(N,L[oe],oe,L);return N}function j1(L,W,N,K){var oe=L==null?0:L.length;for(K&&oe&&(N=L[--oe]);oe--;)N=W(N,L[oe],oe,L);return N}function Vs(L,W){for(var N=-1,K=L==null?0:L.length;++N<K;)if(W(L[N],N,L))return!0;return!1}var H1=Gs("length");function V1(L){return L.split("")}function G1(L){return L.match(bv)||[]}function Kd(L,W,N){var K;return N(L,function(oe,_e,Ge){if(W(oe,_e,Ge))return K=_e,!1}),K}function wo(L,W,N,K){for(var oe=L.length,_e=N+(K?1:-1);K?_e--:++_e<oe;)if(W(L[_e],_e,L))return _e;return-1}function Jr(L,W,N){return W===W?rw(L,W,N):wo(L,Yd,N)}function Q1(L,W,N,K){for(var oe=N-1,_e=L.length;++oe<_e;)if(K(L[oe],W))return oe;return-1}function Yd(L){return L!==L}function Zd(L,W){var N=L==null?0:L.length;return N?qs(L,W)/N:G}function Gs(L){return function(W){return W==null?r:W[L]}}function Qs(L){return function(W){return L==null?r:L[W]}}function Xd(L,W,N,K,oe){return oe(L,function(_e,Ge,ke){N=K?(K=!1,_e):W(N,_e,Ge,ke)}),N}function q1(L,W){var N=L.length;for(L.sort(W);N--;)L[N]=L[N].value;return L}function qs(L,W){for(var N,K=-1,oe=L.length;++K<oe;){var _e=W(L[K]);_e!==r&&(N=N===r?_e:N+_e)}return N}function Ks(L,W){for(var N=-1,K=Array(L);++N<L;)K[N]=W(N);return K}function K1(L,W){return Oe(W,function(N){return[N,L[N]]})}function Jd(L){return L&&L.slice(0,np(L)+1).replace(Ms,"")}function Ot(L){return function(W){return L(W)}}function Ys(L,W){return Oe(W,function(N){return L[N]})}function Zi(L,W){return L.has(W)}function bd(L,W){for(var N=-1,K=L.length;++N<K&&Jr(W,L[N],0)>-1;);return N}function ep(L,W){for(var N=L.length;N--&&Jr(W,L[N],0)>-1;);return N}function Y1(L,W){for(var N=L.length,K=0;N--;)L[N]===W&&++K;return K}var Z1=Qs(N1),X1=Qs(M1);function J1(L){return"\\"+W1[L]}function b1(L,W){return L==null?r:L[W]}function br(L){return T1.test(L)}function ew(L){return A1.test(L)}function tw(L){for(var W,N=[];!(W=L.next()).done;)N.push(W.value);return N}function Zs(L){var W=-1,N=Array(L.size);return L.forEach(function(K,oe){N[++W]=[oe,K]}),N}function tp(L,W){return function(N){return L(W(N))}}function Yn(L,W){for(var N=-1,K=L.length,oe=0,_e=[];++N<K;){var Ge=L[N];(Ge===W||Ge===y)&&(L[N]=y,_e[oe++]=N)}return _e}function yo(L){var W=-1,N=Array(L.size);return L.forEach(function(K){N[++W]=K}),N}function nw(L){var W=-1,N=Array(L.size);return L.forEach(function(K){N[++W]=[K,K]}),N}function rw(L,W,N){for(var K=N-1,oe=L.length;++K<oe;)if(L[K]===W)return K;return-1}function iw(L,W,N){for(var K=N+1;K--;)if(L[K]===W)return K;return K}function ei(L){return br(L)?ow(L):H1(L)}function ln(L){return br(L)?uw(L):V1(L)}function np(L){for(var W=L.length;W--&&Yv.test(L.charAt(W)););return W}var lw=Qs(B1);function ow(L){for(var W=$s.lastIndex=0;$s.test(L);)++W;return W}function uw(L){return L.match($s)||[]}function sw(L){return L.match(R1)||[]}var aw=function L(W){W=W==null?be:ti.defaults(be.Object(),W,ti.pick(be,O1));var N=W.Array,K=W.Date,oe=W.Error,_e=W.Function,Ge=W.Math,ke=W.Object,Xs=W.RegExp,cw=W.String,Vt=W.TypeError,_o=N.prototype,fw=_e.prototype,ni=ke.prototype,So=W["__core-js_shared__"],xo=fw.toString,xe=ni.hasOwnProperty,dw=0,rp=function(){var n=/[^.]+$/.exec(So&&So.keys&&So.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Co=ni.toString,pw=xo.call(ke),hw=be._,gw=Xs("^"+xo.call(xe).replace(Ns,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=Fd?W.Buffer:r,Zn=W.Symbol,ko=W.Uint8Array,ip=Eo?Eo.allocUnsafe:r,Lo=tp(ke.getPrototypeOf,ke),lp=ke.create,op=ni.propertyIsEnumerable,Io=_o.splice,up=Zn?Zn.isConcatSpreadable:r,Xi=Zn?Zn.iterator:r,Ir=Zn?Zn.toStringTag:r,Ro=function(){try{var n=Pr(ke,"defineProperty");return n({},"",{}),n}catch{}}(),mw=W.clearTimeout!==be.clearTimeout&&W.clearTimeout,vw=K&&K.now!==be.Date.now&&K.now,ww=W.setTimeout!==be.setTimeout&&W.setTimeout,To=Ge.ceil,Ao=Ge.floor,Js=ke.getOwnPropertySymbols,yw=Eo?Eo.isBuffer:r,sp=W.isFinite,_w=_o.join,Sw=tp(ke.keys,ke),Qe=Ge.max,lt=Ge.min,xw=K.now,Cw=W.parseInt,ap=Ge.random,Ew=_o.reverse,bs=Pr(W,"DataView"),Ji=Pr(W,"Map"),ea=Pr(W,"Promise"),ri=Pr(W,"Set"),bi=Pr(W,"WeakMap"),el=Pr(ke,"create"),Oo=bi&&new bi,ii={},kw=Nr(bs),Lw=Nr(Ji),Iw=Nr(ea),Rw=Nr(ri),Tw=Nr(bi),Po=Zn?Zn.prototype:r,tl=Po?Po.valueOf:r,cp=Po?Po.toString:r;function h(n){if(ze(n)&&!ue(n)&&!(n instanceof he)){if(n instanceof Gt)return n;if(xe.call(n,"__wrapped__"))return fh(n)}return new Gt(n)}var li=function(){function n(){}return function(i){if(!Ne(i))return{};if(lp)return lp(i);n.prototype=i;var u=new n;return n.prototype=r,u}}();function No(){}function Gt(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}h.templateSettings={escape:Hv,evaluate:Vv,interpolate:yd,variable:"",imports:{_:h}},h.prototype=No.prototype,h.prototype.constructor=h,Gt.prototype=li(No.prototype),Gt.prototype.constructor=Gt;function he(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function Aw(){var n=new he(this.__wrapped__);return n.__actions__=_t(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=_t(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=_t(this.__views__),n}function Ow(){if(this.__filtered__){var n=new he(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Pw(){var n=this.__wrapped__.value(),i=this.__dir__,u=ue(n),a=i<0,p=u?n.length:0,g=Vy(0,p,this.__views__),S=g.start,E=g.end,R=E-S,D=a?E:S-1,F=this.__iteratees__,j=F.length,q=0,J=lt(R,this.__takeCount__);if(!u||!a&&p==R&&J==R)return Mp(n,this.__actions__);var ne=[];e:for(;R--&&q<J;){D+=i;for(var fe=-1,re=n[D];++fe<j;){var pe=F[fe],me=pe.iteratee,Mt=pe.type,gt=me(re);if(Mt==se)re=gt;else if(!gt){if(Mt==ce)continue e;break e}}ne[q++]=re}return ne}he.prototype=li(No.prototype),he.prototype.constructor=he;function Rr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var a=n[i];this.set(a[0],a[1])}}function Nw(){this.__data__=el?el(null):{},this.size=0}function Mw(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function Bw(n){var i=this.__data__;if(el){var u=i[n];return u===d?r:u}return xe.call(i,n)?i[n]:r}function Ww(n){var i=this.__data__;return el?i[n]!==r:xe.call(i,n)}function zw(n,i){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=el&&i===r?d:i,this}Rr.prototype.clear=Nw,Rr.prototype.delete=Mw,Rr.prototype.get=Bw,Rr.prototype.has=Ww,Rr.prototype.set=zw;function In(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var a=n[i];this.set(a[0],a[1])}}function Dw(){this.__data__=[],this.size=0}function $w(n){var i=this.__data__,u=Mo(i,n);if(u<0)return!1;var a=i.length-1;return u==a?i.pop():Io.call(i,u,1),--this.size,!0}function Fw(n){var i=this.__data__,u=Mo(i,n);return u<0?r:i[u][1]}function Uw(n){return Mo(this.__data__,n)>-1}function jw(n,i){var u=this.__data__,a=Mo(u,n);return a<0?(++this.size,u.push([n,i])):u[a][1]=i,this}In.prototype.clear=Dw,In.prototype.delete=$w,In.prototype.get=Fw,In.prototype.has=Uw,In.prototype.set=jw;function Rn(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var a=n[i];this.set(a[0],a[1])}}function Hw(){this.size=0,this.__data__={hash:new Rr,map:new(Ji||In),string:new Rr}}function Vw(n){var i=Qo(this,n).delete(n);return this.size-=i?1:0,i}function Gw(n){return Qo(this,n).get(n)}function Qw(n){return Qo(this,n).has(n)}function qw(n,i){var u=Qo(this,n),a=u.size;return u.set(n,i),this.size+=u.size==a?0:1,this}Rn.prototype.clear=Hw,Rn.prototype.delete=Vw,Rn.prototype.get=Gw,Rn.prototype.has=Qw,Rn.prototype.set=qw;function Tr(n){var i=-1,u=n==null?0:n.length;for(this.__data__=new Rn;++i<u;)this.add(n[i])}function Kw(n){return this.__data__.set(n,d),this}function Yw(n){return this.__data__.has(n)}Tr.prototype.add=Tr.prototype.push=Kw,Tr.prototype.has=Yw;function on(n){var i=this.__data__=new In(n);this.size=i.size}function Zw(){this.__data__=new In,this.size=0}function Xw(n){var i=this.__data__,u=i.delete(n);return this.size=i.size,u}function Jw(n){return this.__data__.get(n)}function bw(n){return this.__data__.has(n)}function ey(n,i){var u=this.__data__;if(u instanceof In){var a=u.__data__;if(!Ji||a.length<o-1)return a.push([n,i]),this.size=++u.size,this;u=this.__data__=new Rn(a)}return u.set(n,i),this.size=u.size,this}on.prototype.clear=Zw,on.prototype.delete=Xw,on.prototype.get=Jw,on.prototype.has=bw,on.prototype.set=ey;function fp(n,i){var u=ue(n),a=!u&&Mr(n),p=!u&&!a&&tr(n),g=!u&&!a&&!p&&ai(n),S=u||a||p||g,E=S?Ks(n.length,cw):[],R=E.length;for(var D in n)(i||xe.call(n,D))&&!(S&&(D=="length"||p&&(D=="offset"||D=="parent")||g&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||Pn(D,R)))&&E.push(D);return E}function dp(n){var i=n.length;return i?n[fa(0,i-1)]:r}function ty(n,i){return qo(_t(n),Ar(i,0,n.length))}function ny(n){return qo(_t(n))}function ta(n,i,u){(u!==r&&!un(n[i],u)||u===r&&!(i in n))&&Tn(n,i,u)}function nl(n,i,u){var a=n[i];(!(xe.call(n,i)&&un(a,u))||u===r&&!(i in n))&&Tn(n,i,u)}function Mo(n,i){for(var u=n.length;u--;)if(un(n[u][0],i))return u;return-1}function ry(n,i,u,a){return Xn(n,function(p,g,S){i(a,p,u(p),S)}),a}function pp(n,i){return n&&wn(i,Ye(i),n)}function iy(n,i){return n&&wn(i,xt(i),n)}function Tn(n,i,u){i=="__proto__"&&Ro?Ro(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}function na(n,i){for(var u=-1,a=i.length,p=N(a),g=n==null;++u<a;)p[u]=g?r:Wa(n,i[u]);return p}function Ar(n,i,u){return n===n&&(u!==r&&(n=n<=u?n:u),i!==r&&(n=n>=i?n:i)),n}function Qt(n,i,u,a,p,g){var S,E=i&w,R=i&x,D=i&k;if(u&&(S=p?u(n,a,p,g):u(n)),S!==r)return S;if(!Ne(n))return n;var F=ue(n);if(F){if(S=Qy(n),!E)return _t(n,S)}else{var j=ot(n),q=j==fo||j==gd;if(tr(n))return zp(n,E);if(j==Ln||j==ft||q&&!p){if(S=R||q?{}:nh(n),!E)return R?By(n,iy(S,n)):My(n,pp(S,n))}else{if(!Le[j])return p?n:{};S=qy(n,j,E)}}g||(g=new on);var J=g.get(n);if(J)return J;g.set(n,S),Oh(n)?n.forEach(function(re){S.add(Qt(re,i,u,re,n,g))}):Th(n)&&n.forEach(function(re,pe){S.set(pe,Qt(re,i,u,pe,n,g))});var ne=D?R?xa:Sa:R?xt:Ye,fe=F?r:ne(n);return Ht(fe||n,function(re,pe){fe&&(pe=re,re=n[pe]),nl(S,pe,Qt(re,i,u,pe,n,g))}),S}function ly(n){var i=Ye(n);return function(u){return hp(u,n,i)}}function hp(n,i,u){var a=u.length;if(n==null)return!a;for(n=ke(n);a--;){var p=u[a],g=i[p],S=n[p];if(S===r&&!(p in n)||!g(S))return!1}return!0}function gp(n,i,u){if(typeof n!="function")throw new Vt(c);return al(function(){n.apply(r,u)},i)}function rl(n,i,u,a){var p=-1,g=vo,S=!0,E=n.length,R=[],D=i.length;if(!E)return R;u&&(i=Oe(i,Ot(u))),a?(g=js,S=!1):i.length>=o&&(g=Zi,S=!1,i=new Tr(i));e:for(;++p<E;){var F=n[p],j=u==null?F:u(F);if(F=a||F!==0?F:0,S&&j===j){for(var q=D;q--;)if(i[q]===j)continue e;R.push(F)}else g(i,j,a)||R.push(F)}return R}var Xn=jp(vn),mp=jp(ia,!0);function oy(n,i){var u=!0;return Xn(n,function(a,p,g){return u=!!i(a,p,g),u}),u}function Bo(n,i,u){for(var a=-1,p=n.length;++a<p;){var g=n[a],S=i(g);if(S!=null&&(E===r?S===S&&!Nt(S):u(S,E)))var E=S,R=g}return R}function uy(n,i,u,a){var p=n.length;for(u=ae(u),u<0&&(u=-u>p?0:p+u),a=a===r||a>p?p:ae(a),a<0&&(a+=p),a=u>a?0:Nh(a);u<a;)n[u++]=i;return n}function vp(n,i){var u=[];return Xn(n,function(a,p,g){i(a,p,g)&&u.push(a)}),u}function et(n,i,u,a,p){var g=-1,S=n.length;for(u||(u=Yy),p||(p=[]);++g<S;){var E=n[g];i>0&&u(E)?i>1?et(E,i-1,u,a,p):Kn(p,E):a||(p[p.length]=E)}return p}var ra=Hp(),wp=Hp(!0);function vn(n,i){return n&&ra(n,i,Ye)}function ia(n,i){return n&&wp(n,i,Ye)}function Wo(n,i){return qn(i,function(u){return Nn(n[u])})}function Or(n,i){i=bn(i,n);for(var u=0,a=i.length;n!=null&&u<a;)n=n[yn(i[u++])];return u&&u==a?n:r}function yp(n,i,u){var a=i(n);return ue(n)?a:Kn(a,u(n))}function pt(n){return n==null?n===r?Wv:Mv:Ir&&Ir in ke(n)?Hy(n):n_(n)}function la(n,i){return n>i}function sy(n,i){return n!=null&&xe.call(n,i)}function ay(n,i){return n!=null&&i in ke(n)}function cy(n,i,u){return n>=lt(i,u)&&n<Qe(i,u)}function oa(n,i,u){for(var a=u?js:vo,p=n[0].length,g=n.length,S=g,E=N(g),R=1/0,D=[];S--;){var F=n[S];S&&i&&(F=Oe(F,Ot(i))),R=lt(F.length,R),E[S]=!u&&(i||p>=120&&F.length>=120)?new Tr(S&&F):r}F=n[0];var j=-1,q=E[0];e:for(;++j<p&&D.length<R;){var J=F[j],ne=i?i(J):J;if(J=u||J!==0?J:0,!(q?Zi(q,ne):a(D,ne,u))){for(S=g;--S;){var fe=E[S];if(!(fe?Zi(fe,ne):a(n[S],ne,u)))continue e}q&&q.push(ne),D.push(J)}}return D}function fy(n,i,u,a){return vn(n,function(p,g,S){i(a,u(p),g,S)}),a}function il(n,i,u){i=bn(i,n),n=oh(n,i);var a=n==null?n:n[yn(Kt(i))];return a==null?r:At(a,n,u)}function _p(n){return ze(n)&&pt(n)==ft}function dy(n){return ze(n)&&pt(n)==Yi}function py(n){return ze(n)&&pt(n)==Vi}function ll(n,i,u,a,p){return n===i?!0:n==null||i==null||!ze(n)&&!ze(i)?n!==n&&i!==i:hy(n,i,u,a,ll,p)}function hy(n,i,u,a,p,g){var S=ue(n),E=ue(i),R=S?dt:ot(n),D=E?dt:ot(i);R=R==ft?Ln:R,D=D==ft?Ln:D;var F=R==Ln,j=D==Ln,q=R==D;if(q&&tr(n)){if(!tr(i))return!1;S=!0,F=!1}if(q&&!F)return g||(g=new on),S||ai(n)?bp(n,i,u,a,p,g):Uy(n,i,R,u,a,p,g);if(!(u&O)){var J=F&&xe.call(n,"__wrapped__"),ne=j&&xe.call(i,"__wrapped__");if(J||ne){var fe=J?n.value():n,re=ne?i.value():i;return g||(g=new on),p(fe,re,u,a,g)}}return q?(g||(g=new on),jy(n,i,u,a,p,g)):!1}function gy(n){return ze(n)&&ot(n)==nn}function ua(n,i,u,a){var p=u.length,g=p,S=!a;if(n==null)return!g;for(n=ke(n);p--;){var E=u[p];if(S&&E[2]?E[1]!==n[E[0]]:!(E[0]in n))return!1}for(;++p<g;){E=u[p];var R=E[0],D=n[R],F=E[1];if(S&&E[2]){if(D===r&&!(R in n))return!1}else{var j=new on;if(a)var q=a(D,F,R,n,i,j);if(!(q===r?ll(F,D,O|I,a,j):q))return!1}}return!0}function Sp(n){if(!Ne(n)||Xy(n))return!1;var i=Nn(n)?gw:l1;return i.test(Nr(n))}function my(n){return ze(n)&&pt(n)==Qi}function vy(n){return ze(n)&&ot(n)==rn}function wy(n){return ze(n)&&bo(n.length)&&!!Re[pt(n)]}function xp(n){return typeof n=="function"?n:n==null?Ct:typeof n=="object"?ue(n)?kp(n[0],n[1]):Ep(n):Vh(n)}function sa(n){if(!sl(n))return Sw(n);var i=[];for(var u in ke(n))xe.call(n,u)&&u!="constructor"&&i.push(u);return i}function yy(n){if(!Ne(n))return t_(n);var i=sl(n),u=[];for(var a in n)a=="constructor"&&(i||!xe.call(n,a))||u.push(a);return u}function aa(n,i){return n<i}function Cp(n,i){var u=-1,a=St(n)?N(n.length):[];return Xn(n,function(p,g,S){a[++u]=i(p,g,S)}),a}function Ep(n){var i=Ea(n);return i.length==1&&i[0][2]?ih(i[0][0],i[0][1]):function(u){return u===n||ua(u,n,i)}}function kp(n,i){return La(n)&&rh(i)?ih(yn(n),i):function(u){var a=Wa(u,n);return a===r&&a===i?za(u,n):ll(i,a,O|I)}}function zo(n,i,u,a,p){n!==i&&ra(i,function(g,S){if(p||(p=new on),Ne(g))_y(n,i,S,u,zo,a,p);else{var E=a?a(Ra(n,S),g,S+"",n,i,p):r;E===r&&(E=g),ta(n,S,E)}},xt)}function _y(n,i,u,a,p,g,S){var E=Ra(n,u),R=Ra(i,u),D=S.get(R);if(D){ta(n,u,D);return}var F=g?g(E,R,u+"",n,i,S):r,j=F===r;if(j){var q=ue(R),J=!q&&tr(R),ne=!q&&!J&&ai(R);F=R,q||J||ne?ue(E)?F=E:Fe(E)?F=_t(E):J?(j=!1,F=zp(R,!0)):ne?(j=!1,F=Dp(R,!0)):F=[]:cl(R)||Mr(R)?(F=E,Mr(E)?F=Mh(E):(!Ne(E)||Nn(E))&&(F=nh(R))):j=!1}j&&(S.set(R,F),p(F,R,a,g,S),S.delete(R)),ta(n,u,F)}function Lp(n,i){var u=n.length;if(u)return i+=i<0?u:0,Pn(i,u)?n[i]:r}function Ip(n,i,u){i.length?i=Oe(i,function(g){return ue(g)?function(S){return Or(S,g.length===1?g[0]:g)}:g}):i=[Ct];var a=-1;i=Oe(i,Ot(te()));var p=Cp(n,function(g,S,E){var R=Oe(i,function(D){return D(g)});return{criteria:R,index:++a,value:g}});return q1(p,function(g,S){return Ny(g,S,u)})}function Sy(n,i){return Rp(n,i,function(u,a){return za(n,a)})}function Rp(n,i,u){for(var a=-1,p=i.length,g={};++a<p;){var S=i[a],E=Or(n,S);u(E,S)&&ol(g,bn(S,n),E)}return g}function xy(n){return function(i){return Or(i,n)}}function ca(n,i,u,a){var p=a?Q1:Jr,g=-1,S=i.length,E=n;for(n===i&&(i=_t(i)),u&&(E=Oe(n,Ot(u)));++g<S;)for(var R=0,D=i[g],F=u?u(D):D;(R=p(E,F,R,a))>-1;)E!==n&&Io.call(E,R,1),Io.call(n,R,1);return n}function Tp(n,i){for(var u=n?i.length:0,a=u-1;u--;){var p=i[u];if(u==a||p!==g){var g=p;Pn(p)?Io.call(n,p,1):ha(n,p)}}return n}function fa(n,i){return n+Ao(ap()*(i-n+1))}function Cy(n,i,u,a){for(var p=-1,g=Qe(To((i-n)/(u||1)),0),S=N(g);g--;)S[a?g:++p]=n,n+=u;return S}function da(n,i){var u="";if(!n||i<1||i>$)return u;do i%2&&(u+=n),i=Ao(i/2),i&&(n+=n);while(i);return u}function de(n,i){return Ta(lh(n,i,Ct),n+"")}function Ey(n){return dp(ci(n))}function ky(n,i){var u=ci(n);return qo(u,Ar(i,0,u.length))}function ol(n,i,u,a){if(!Ne(n))return n;i=bn(i,n);for(var p=-1,g=i.length,S=g-1,E=n;E!=null&&++p<g;){var R=yn(i[p]),D=u;if(R==="__proto__"||R==="constructor"||R==="prototype")return n;if(p!=S){var F=E[R];D=a?a(F,R,E):r,D===r&&(D=Ne(F)?F:Pn(i[p+1])?[]:{})}nl(E,R,D),E=E[R]}return n}var Ap=Oo?function(n,i){return Oo.set(n,i),n}:Ct,Ly=Ro?function(n,i){return Ro(n,"toString",{configurable:!0,enumerable:!1,value:$a(i),writable:!0})}:Ct;function Iy(n){return qo(ci(n))}function qt(n,i,u){var a=-1,p=n.length;i<0&&(i=-i>p?0:p+i),u=u>p?p:u,u<0&&(u+=p),p=i>u?0:u-i>>>0,i>>>=0;for(var g=N(p);++a<p;)g[a]=n[a+i];return g}function Ry(n,i){var u;return Xn(n,function(a,p,g){return u=i(a,p,g),!u}),!!u}function Do(n,i,u){var a=0,p=n==null?a:n.length;if(typeof i=="number"&&i===i&&p<=He){for(;a<p;){var g=a+p>>>1,S=n[g];S!==null&&!Nt(S)&&(u?S<=i:S<i)?a=g+1:p=g}return p}return pa(n,i,Ct,u)}function pa(n,i,u,a){var p=0,g=n==null?0:n.length;if(g===0)return 0;i=u(i);for(var S=i!==i,E=i===null,R=Nt(i),D=i===r;p<g;){var F=Ao((p+g)/2),j=u(n[F]),q=j!==r,J=j===null,ne=j===j,fe=Nt(j);if(S)var re=a||ne;else D?re=ne&&(a||q):E?re=ne&&q&&(a||!J):R?re=ne&&q&&!J&&(a||!fe):J||fe?re=!1:re=a?j<=i:j<i;re?p=F+1:g=F}return lt(g,we)}function Op(n,i){for(var u=-1,a=n.length,p=0,g=[];++u<a;){var S=n[u],E=i?i(S):S;if(!u||!un(E,R)){var R=E;g[p++]=S===0?0:S}}return g}function Pp(n){return typeof n=="number"?n:Nt(n)?G:+n}function Pt(n){if(typeof n=="string")return n;if(ue(n))return Oe(n,Pt)+"";if(Nt(n))return cp?cp.call(n):"";var i=n+"";return i=="0"&&1/n==-le?"-0":i}function Jn(n,i,u){var a=-1,p=vo,g=n.length,S=!0,E=[],R=E;if(u)S=!1,p=js;else if(g>=o){var D=i?null:$y(n);if(D)return yo(D);S=!1,p=Zi,R=new Tr}else R=i?[]:E;e:for(;++a<g;){var F=n[a],j=i?i(F):F;if(F=u||F!==0?F:0,S&&j===j){for(var q=R.length;q--;)if(R[q]===j)continue e;i&&R.push(j),E.push(F)}else p(R,j,u)||(R!==E&&R.push(j),E.push(F))}return E}function ha(n,i){return i=bn(i,n),n=oh(n,i),n==null||delete n[yn(Kt(i))]}function Np(n,i,u,a){return ol(n,i,u(Or(n,i)),a)}function $o(n,i,u,a){for(var p=n.length,g=a?p:-1;(a?g--:++g<p)&&i(n[g],g,n););return u?qt(n,a?0:g,a?g+1:p):qt(n,a?g+1:0,a?p:g)}function Mp(n,i){var u=n;return u instanceof he&&(u=u.value()),Hs(i,function(a,p){return p.func.apply(p.thisArg,Kn([a],p.args))},u)}function ga(n,i,u){var a=n.length;if(a<2)return a?Jn(n[0]):[];for(var p=-1,g=N(a);++p<a;)for(var S=n[p],E=-1;++E<a;)E!=p&&(g[p]=rl(g[p]||S,n[E],i,u));return Jn(et(g,1),i,u)}function Bp(n,i,u){for(var a=-1,p=n.length,g=i.length,S={};++a<p;){var E=a<g?i[a]:r;u(S,n[a],E)}return S}function ma(n){return Fe(n)?n:[]}function va(n){return typeof n=="function"?n:Ct}function bn(n,i){return ue(n)?n:La(n,i)?[n]:ch(Se(n))}var Ty=de;function er(n,i,u){var a=n.length;return u=u===r?a:u,!i&&u>=a?n:qt(n,i,u)}var Wp=mw||function(n){return be.clearTimeout(n)};function zp(n,i){if(i)return n.slice();var u=n.length,a=ip?ip(u):new n.constructor(u);return n.copy(a),a}function wa(n){var i=new n.constructor(n.byteLength);return new ko(i).set(new ko(n)),i}function Ay(n,i){var u=i?wa(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function Oy(n){var i=new n.constructor(n.source,_d.exec(n));return i.lastIndex=n.lastIndex,i}function Py(n){return tl?ke(tl.call(n)):{}}function Dp(n,i){var u=i?wa(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function $p(n,i){if(n!==i){var u=n!==r,a=n===null,p=n===n,g=Nt(n),S=i!==r,E=i===null,R=i===i,D=Nt(i);if(!E&&!D&&!g&&n>i||g&&S&&R&&!E&&!D||a&&S&&R||!u&&R||!p)return 1;if(!a&&!g&&!D&&n<i||D&&u&&p&&!a&&!g||E&&u&&p||!S&&p||!R)return-1}return 0}function Ny(n,i,u){for(var a=-1,p=n.criteria,g=i.criteria,S=p.length,E=u.length;++a<S;){var R=$p(p[a],g[a]);if(R){if(a>=E)return R;var D=u[a];return R*(D=="desc"?-1:1)}}return n.index-i.index}function Fp(n,i,u,a){for(var p=-1,g=n.length,S=u.length,E=-1,R=i.length,D=Qe(g-S,0),F=N(R+D),j=!a;++E<R;)F[E]=i[E];for(;++p<S;)(j||p<g)&&(F[u[p]]=n[p]);for(;D--;)F[E++]=n[p++];return F}function Up(n,i,u,a){for(var p=-1,g=n.length,S=-1,E=u.length,R=-1,D=i.length,F=Qe(g-E,0),j=N(F+D),q=!a;++p<F;)j[p]=n[p];for(var J=p;++R<D;)j[J+R]=i[R];for(;++S<E;)(q||p<g)&&(j[J+u[S]]=n[p++]);return j}function _t(n,i){var u=-1,a=n.length;for(i||(i=N(a));++u<a;)i[u]=n[u];return i}function wn(n,i,u,a){var p=!u;u||(u={});for(var g=-1,S=i.length;++g<S;){var E=i[g],R=a?a(u[E],n[E],E,u,n):r;R===r&&(R=n[E]),p?Tn(u,E,R):nl(u,E,R)}return u}function My(n,i){return wn(n,ka(n),i)}function By(n,i){return wn(n,eh(n),i)}function Fo(n,i){return function(u,a){var p=ue(u)?F1:ry,g=i?i():{};return p(u,n,te(a,2),g)}}function oi(n){return de(function(i,u){var a=-1,p=u.length,g=p>1?u[p-1]:r,S=p>2?u[2]:r;for(g=n.length>3&&typeof g=="function"?(p--,g):r,S&&ht(u[0],u[1],S)&&(g=p<3?r:g,p=1),i=ke(i);++a<p;){var E=u[a];E&&n(i,E,a,g)}return i})}function jp(n,i){return function(u,a){if(u==null)return u;if(!St(u))return n(u,a);for(var p=u.length,g=i?p:-1,S=ke(u);(i?g--:++g<p)&&a(S[g],g,S)!==!1;);return u}}function Hp(n){return function(i,u,a){for(var p=-1,g=ke(i),S=a(i),E=S.length;E--;){var R=S[n?E:++p];if(u(g[R],R,g)===!1)break}return i}}function Wy(n,i,u){var a=i&P,p=ul(n);function g(){var S=this&&this!==be&&this instanceof g?p:n;return S.apply(a?u:this,arguments)}return g}function Vp(n){return function(i){i=Se(i);var u=br(i)?ln(i):r,a=u?u[0]:i.charAt(0),p=u?er(u,1).join(""):i.slice(1);return a[n]()+p}}function ui(n){return function(i){return Hs(jh(Uh(i).replace(L1,"")),n,"")}}function ul(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var u=li(n.prototype),a=n.apply(u,i);return Ne(a)?a:u}}function zy(n,i,u){var a=ul(n);function p(){for(var g=arguments.length,S=N(g),E=g,R=si(p);E--;)S[E]=arguments[E];var D=g<3&&S[0]!==R&&S[g-1]!==R?[]:Yn(S,R);if(g-=D.length,g<u)return Yp(n,i,Uo,p.placeholder,r,S,D,r,r,u-g);var F=this&&this!==be&&this instanceof p?a:n;return At(F,this,S)}return p}function Gp(n){return function(i,u,a){var p=ke(i);if(!St(i)){var g=te(u,3);i=Ye(i),u=function(E){return g(p[E],E,p)}}var S=n(i,u,a);return S>-1?p[g?i[S]:S]:r}}function Qp(n){return On(function(i){var u=i.length,a=u,p=Gt.prototype.thru;for(n&&i.reverse();a--;){var g=i[a];if(typeof g!="function")throw new Vt(c);if(p&&!S&&Go(g)=="wrapper")var S=new Gt([],!0)}for(a=S?a:u;++a<u;){g=i[a];var E=Go(g),R=E=="wrapper"?Ca(g):r;R&&Ia(R[0])&&R[1]==(A|C|z|B)&&!R[4].length&&R[9]==1?S=S[Go(R[0])].apply(S,R[3]):S=g.length==1&&Ia(g)?S[E]():S.thru(g)}return function(){var D=arguments,F=D[0];if(S&&D.length==1&&ue(F))return S.plant(F).value();for(var j=0,q=u?i[j].apply(this,D):F;++j<u;)q=i[j].call(this,q);return q}})}function Uo(n,i,u,a,p,g,S,E,R,D){var F=i&A,j=i&P,q=i&v,J=i&(C|M),ne=i&b,fe=q?r:ul(n);function re(){for(var pe=arguments.length,me=N(pe),Mt=pe;Mt--;)me[Mt]=arguments[Mt];if(J)var gt=si(re),Bt=Y1(me,gt);if(a&&(me=Fp(me,a,p,J)),g&&(me=Up(me,g,S,J)),pe-=Bt,J&&pe<D){var Ue=Yn(me,gt);return Yp(n,i,Uo,re.placeholder,u,me,Ue,E,R,D-pe)}var sn=j?u:this,Bn=q?sn[n]:n;return pe=me.length,E?me=r_(me,E):ne&&pe>1&&me.reverse(),F&&R<pe&&(me.length=R),this&&this!==be&&this instanceof re&&(Bn=fe||ul(Bn)),Bn.apply(sn,me)}return re}function qp(n,i){return function(u,a){return fy(u,n,i(a),{})}}function jo(n,i){return function(u,a){var p;if(u===r&&a===r)return i;if(u!==r&&(p=u),a!==r){if(p===r)return a;typeof u=="string"||typeof a=="string"?(u=Pt(u),a=Pt(a)):(u=Pp(u),a=Pp(a)),p=n(u,a)}return p}}function ya(n){return On(function(i){return i=Oe(i,Ot(te())),de(function(u){var a=this;return n(i,function(p){return At(p,a,u)})})})}function Ho(n,i){i=i===r?" ":Pt(i);var u=i.length;if(u<2)return u?da(i,n):i;var a=da(i,To(n/ei(i)));return br(i)?er(ln(a),0,n).join(""):a.slice(0,n)}function Dy(n,i,u,a){var p=i&P,g=ul(n);function S(){for(var E=-1,R=arguments.length,D=-1,F=a.length,j=N(F+R),q=this&&this!==be&&this instanceof S?g:n;++D<F;)j[D]=a[D];for(;R--;)j[D++]=arguments[++E];return At(q,p?u:this,j)}return S}function Kp(n){return function(i,u,a){return a&&typeof a!="number"&&ht(i,u,a)&&(u=a=r),i=Mn(i),u===r?(u=i,i=0):u=Mn(u),a=a===r?i<u?1:-1:Mn(a),Cy(i,u,a,n)}}function Vo(n){return function(i,u){return typeof i=="string"&&typeof u=="string"||(i=Yt(i),u=Yt(u)),n(i,u)}}function Yp(n,i,u,a,p,g,S,E,R,D){var F=i&C,j=F?S:r,q=F?r:S,J=F?g:r,ne=F?r:g;i|=F?z:U,i&=~(F?U:z),i&_||(i&=~(P|v));var fe=[n,i,p,J,j,ne,q,E,R,D],re=u.apply(r,fe);return Ia(n)&&uh(re,fe),re.placeholder=a,sh(re,n,i)}function _a(n){var i=Ge[n];return function(u,a){if(u=Yt(u),a=a==null?0:lt(ae(a),292),a&&sp(u)){var p=(Se(u)+"e").split("e"),g=i(p[0]+"e"+(+p[1]+a));return p=(Se(g)+"e").split("e"),+(p[0]+"e"+(+p[1]-a))}return i(u)}}var $y=ri&&1/yo(new ri([,-0]))[1]==le?function(n){return new ri(n)}:ja;function Zp(n){return function(i){var u=ot(i);return u==nn?Zs(i):u==rn?nw(i):K1(i,n(i))}}function An(n,i,u,a,p,g,S,E){var R=i&v;if(!R&&typeof n!="function")throw new Vt(c);var D=a?a.length:0;if(D||(i&=~(z|U),a=p=r),S=S===r?S:Qe(ae(S),0),E=E===r?E:ae(E),D-=p?p.length:0,i&U){var F=a,j=p;a=p=r}var q=R?r:Ca(n),J=[n,i,u,a,p,F,j,g,S,E];if(q&&e_(J,q),n=J[0],i=J[1],u=J[2],a=J[3],p=J[4],E=J[9]=J[9]===r?R?0:n.length:Qe(J[9]-D,0),!E&&i&(C|M)&&(i&=~(C|M)),!i||i==P)var ne=Wy(n,i,u);else i==C||i==M?ne=zy(n,i,E):(i==z||i==(P|z))&&!p.length?ne=Dy(n,i,u,a):ne=Uo.apply(r,J);var fe=q?Ap:uh;return sh(fe(ne,J),n,i)}function Xp(n,i,u,a){return n===r||un(n,ni[u])&&!xe.call(a,u)?i:n}function Jp(n,i,u,a,p,g){return Ne(n)&&Ne(i)&&(g.set(i,n),zo(n,i,r,Jp,g),g.delete(i)),n}function Fy(n){return cl(n)?r:n}function bp(n,i,u,a,p,g){var S=u&O,E=n.length,R=i.length;if(E!=R&&!(S&&R>E))return!1;var D=g.get(n),F=g.get(i);if(D&&F)return D==i&&F==n;var j=-1,q=!0,J=u&I?new Tr:r;for(g.set(n,i),g.set(i,n);++j<E;){var ne=n[j],fe=i[j];if(a)var re=S?a(fe,ne,j,i,n,g):a(ne,fe,j,n,i,g);if(re!==r){if(re)continue;q=!1;break}if(J){if(!Vs(i,function(pe,me){if(!Zi(J,me)&&(ne===pe||p(ne,pe,u,a,g)))return J.push(me)})){q=!1;break}}else if(!(ne===fe||p(ne,fe,u,a,g))){q=!1;break}}return g.delete(n),g.delete(i),q}function Uy(n,i,u,a,p,g,S){switch(u){case Zr:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case Yi:return!(n.byteLength!=i.byteLength||!g(new ko(n),new ko(i)));case Hi:case Vi:case Gi:return un(+n,+i);case co:return n.name==i.name&&n.message==i.message;case Qi:case qi:return n==i+"";case nn:var E=Zs;case rn:var R=a&O;if(E||(E=yo),n.size!=i.size&&!R)return!1;var D=S.get(n);if(D)return D==i;a|=I,S.set(n,i);var F=bp(E(n),E(i),a,p,g,S);return S.delete(n),F;case po:if(tl)return tl.call(n)==tl.call(i)}return!1}function jy(n,i,u,a,p,g){var S=u&O,E=Sa(n),R=E.length,D=Sa(i),F=D.length;if(R!=F&&!S)return!1;for(var j=R;j--;){var q=E[j];if(!(S?q in i:xe.call(i,q)))return!1}var J=g.get(n),ne=g.get(i);if(J&&ne)return J==i&&ne==n;var fe=!0;g.set(n,i),g.set(i,n);for(var re=S;++j<R;){q=E[j];var pe=n[q],me=i[q];if(a)var Mt=S?a(me,pe,q,i,n,g):a(pe,me,q,n,i,g);if(!(Mt===r?pe===me||p(pe,me,u,a,g):Mt)){fe=!1;break}re||(re=q=="constructor")}if(fe&&!re){var gt=n.constructor,Bt=i.constructor;gt!=Bt&&"constructor"in n&&"constructor"in i&&!(typeof gt=="function"&&gt instanceof gt&&typeof Bt=="function"&&Bt instanceof Bt)&&(fe=!1)}return g.delete(n),g.delete(i),fe}function On(n){return Ta(lh(n,r,hh),n+"")}function Sa(n){return yp(n,Ye,ka)}function xa(n){return yp(n,xt,eh)}var Ca=Oo?function(n){return Oo.get(n)}:ja;function Go(n){for(var i=n.name+"",u=ii[i],a=xe.call(ii,i)?u.length:0;a--;){var p=u[a],g=p.func;if(g==null||g==n)return p.name}return i}function si(n){var i=xe.call(h,"placeholder")?h:n;return i.placeholder}function te(){var n=h.iteratee||Fa;return n=n===Fa?xp:n,arguments.length?n(arguments[0],arguments[1]):n}function Qo(n,i){var u=n.__data__;return Zy(i)?u[typeof i=="string"?"string":"hash"]:u.map}function Ea(n){for(var i=Ye(n),u=i.length;u--;){var a=i[u],p=n[a];i[u]=[a,p,rh(p)]}return i}function Pr(n,i){var u=b1(n,i);return Sp(u)?u:r}function Hy(n){var i=xe.call(n,Ir),u=n[Ir];try{n[Ir]=r;var a=!0}catch{}var p=Co.call(n);return a&&(i?n[Ir]=u:delete n[Ir]),p}var ka=Js?function(n){return n==null?[]:(n=ke(n),qn(Js(n),function(i){return op.call(n,i)}))}:Ha,eh=Js?function(n){for(var i=[];n;)Kn(i,ka(n)),n=Lo(n);return i}:Ha,ot=pt;(bs&&ot(new bs(new ArrayBuffer(1)))!=Zr||Ji&&ot(new Ji)!=nn||ea&&ot(ea.resolve())!=md||ri&&ot(new ri)!=rn||bi&&ot(new bi)!=Ki)&&(ot=function(n){var i=pt(n),u=i==Ln?n.constructor:r,a=u?Nr(u):"";if(a)switch(a){case kw:return Zr;case Lw:return nn;case Iw:return md;case Rw:return rn;case Tw:return Ki}return i});function Vy(n,i,u){for(var a=-1,p=u.length;++a<p;){var g=u[a],S=g.size;switch(g.type){case"drop":n+=S;break;case"dropRight":i-=S;break;case"take":i=lt(i,n+S);break;case"takeRight":n=Qe(n,i-S);break}}return{start:n,end:i}}function Gy(n){var i=n.match(Xv);return i?i[1].split(Jv):[]}function th(n,i,u){i=bn(i,n);for(var a=-1,p=i.length,g=!1;++a<p;){var S=yn(i[a]);if(!(g=n!=null&&u(n,S)))break;n=n[S]}return g||++a!=p?g:(p=n==null?0:n.length,!!p&&bo(p)&&Pn(S,p)&&(ue(n)||Mr(n)))}function Qy(n){var i=n.length,u=new n.constructor(i);return i&&typeof n[0]=="string"&&xe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function nh(n){return typeof n.constructor=="function"&&!sl(n)?li(Lo(n)):{}}function qy(n,i,u){var a=n.constructor;switch(i){case Yi:return wa(n);case Hi:case Vi:return new a(+n);case Zr:return Ay(n,u);case Es:case ks:case Ls:case Is:case Rs:case Ts:case As:case Os:case Ps:return Dp(n,u);case nn:return new a;case Gi:case qi:return new a(n);case Qi:return Oy(n);case rn:return new a;case po:return Py(n)}}function Ky(n,i){var u=i.length;if(!u)return n;var a=u-1;return i[a]=(u>1?"& ":"")+i[a],i=i.join(u>2?", ":" "),n.replace(Zv,`{
/* [wrapped with `+i+`] */
`)}function Yy(n){return ue(n)||Mr(n)||!!(up&&n&&n[up])}function Pn(n,i){var u=typeof n;return i=i??$,!!i&&(u=="number"||u!="symbol"&&u1.test(n))&&n>-1&&n%1==0&&n<i}function ht(n,i,u){if(!Ne(u))return!1;var a=typeof i;return(a=="number"?St(u)&&Pn(i,u.length):a=="string"&&i in u)?un(u[i],n):!1}function La(n,i){if(ue(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Nt(n)?!0:Qv.test(n)||!Gv.test(n)||i!=null&&n in ke(i)}function Zy(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function Ia(n){var i=Go(n),u=h[i];if(typeof u!="function"||!(i in he.prototype))return!1;if(n===u)return!0;var a=Ca(u);return!!a&&n===a[0]}function Xy(n){return!!rp&&rp in n}var Jy=So?Nn:Va;function sl(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||ni;return n===u}function rh(n){return n===n&&!Ne(n)}function ih(n,i){return function(u){return u==null?!1:u[n]===i&&(i!==r||n in ke(u))}}function by(n){var i=Xo(n,function(a){return u.size===m&&u.clear(),a}),u=i.cache;return i}function e_(n,i){var u=n[1],a=i[1],p=u|a,g=p<(P|v|A),S=a==A&&u==C||a==A&&u==B&&n[7].length<=i[8]||a==(A|B)&&i[7].length<=i[8]&&u==C;if(!(g||S))return n;a&P&&(n[2]=i[2],p|=u&P?0:_);var E=i[3];if(E){var R=n[3];n[3]=R?Fp(R,E,i[4]):E,n[4]=R?Yn(n[3],y):i[4]}return E=i[5],E&&(R=n[5],n[5]=R?Up(R,E,i[6]):E,n[6]=R?Yn(n[5],y):i[6]),E=i[7],E&&(n[7]=E),a&A&&(n[8]=n[8]==null?i[8]:lt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=p,n}function t_(n){var i=[];if(n!=null)for(var u in ke(n))i.push(u);return i}function n_(n){return Co.call(n)}function lh(n,i,u){return i=Qe(i===r?n.length-1:i,0),function(){for(var a=arguments,p=-1,g=Qe(a.length-i,0),S=N(g);++p<g;)S[p]=a[i+p];p=-1;for(var E=N(i+1);++p<i;)E[p]=a[p];return E[i]=u(S),At(n,this,E)}}function oh(n,i){return i.length<2?n:Or(n,qt(i,0,-1))}function r_(n,i){for(var u=n.length,a=lt(i.length,u),p=_t(n);a--;){var g=i[a];n[a]=Pn(g,u)?p[g]:r}return n}function Ra(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var uh=ah(Ap),al=ww||function(n,i){return be.setTimeout(n,i)},Ta=ah(Ly);function sh(n,i,u){var a=i+"";return Ta(n,Ky(a,i_(Gy(a),u)))}function ah(n){var i=0,u=0;return function(){var a=xw(),p=ie-(a-u);if(u=a,p>0){if(++i>=ve)return arguments[0]}else i=0;return n.apply(r,arguments)}}function qo(n,i){var u=-1,a=n.length,p=a-1;for(i=i===r?a:i;++u<i;){var g=fa(u,p),S=n[g];n[g]=n[u],n[u]=S}return n.length=i,n}var ch=by(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(qv,function(u,a,p,g){i.push(p?g.replace(t1,"$1"):a||u)}),i});function yn(n){if(typeof n=="string"||Nt(n))return n;var i=n+"";return i=="0"&&1/n==-le?"-0":i}function Nr(n){if(n!=null){try{return xo.call(n)}catch{}try{return n+""}catch{}}return""}function i_(n,i){return Ht(Ee,function(u){var a="_."+u[0];i&u[1]&&!vo(n,a)&&n.push(a)}),n.sort()}function fh(n){if(n instanceof he)return n.clone();var i=new Gt(n.__wrapped__,n.__chain__);return i.__actions__=_t(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function l_(n,i,u){(u?ht(n,i,u):i===r)?i=1:i=Qe(ae(i),0);var a=n==null?0:n.length;if(!a||i<1)return[];for(var p=0,g=0,S=N(To(a/i));p<a;)S[g++]=qt(n,p,p+=i);return S}function o_(n){for(var i=-1,u=n==null?0:n.length,a=0,p=[];++i<u;){var g=n[i];g&&(p[a++]=g)}return p}function u_(){var n=arguments.length;if(!n)return[];for(var i=N(n-1),u=arguments[0],a=n;a--;)i[a-1]=arguments[a];return Kn(ue(u)?_t(u):[u],et(i,1))}var s_=de(function(n,i){return Fe(n)?rl(n,et(i,1,Fe,!0)):[]}),a_=de(function(n,i){var u=Kt(i);return Fe(u)&&(u=r),Fe(n)?rl(n,et(i,1,Fe,!0),te(u,2)):[]}),c_=de(function(n,i){var u=Kt(i);return Fe(u)&&(u=r),Fe(n)?rl(n,et(i,1,Fe,!0),r,u):[]});function f_(n,i,u){var a=n==null?0:n.length;return a?(i=u||i===r?1:ae(i),qt(n,i<0?0:i,a)):[]}function d_(n,i,u){var a=n==null?0:n.length;return a?(i=u||i===r?1:ae(i),i=a-i,qt(n,0,i<0?0:i)):[]}function p_(n,i){return n&&n.length?$o(n,te(i,3),!0,!0):[]}function h_(n,i){return n&&n.length?$o(n,te(i,3),!0):[]}function g_(n,i,u,a){var p=n==null?0:n.length;return p?(u&&typeof u!="number"&&ht(n,i,u)&&(u=0,a=p),uy(n,i,u,a)):[]}function dh(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var p=u==null?0:ae(u);return p<0&&(p=Qe(a+p,0)),wo(n,te(i,3),p)}function ph(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var p=a-1;return u!==r&&(p=ae(u),p=u<0?Qe(a+p,0):lt(p,a-1)),wo(n,te(i,3),p,!0)}function hh(n){var i=n==null?0:n.length;return i?et(n,1):[]}function m_(n){var i=n==null?0:n.length;return i?et(n,le):[]}function v_(n,i){var u=n==null?0:n.length;return u?(i=i===r?1:ae(i),et(n,i)):[]}function w_(n){for(var i=-1,u=n==null?0:n.length,a={};++i<u;){var p=n[i];a[p[0]]=p[1]}return a}function gh(n){return n&&n.length?n[0]:r}function y_(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var p=u==null?0:ae(u);return p<0&&(p=Qe(a+p,0)),Jr(n,i,p)}function __(n){var i=n==null?0:n.length;return i?qt(n,0,-1):[]}var S_=de(function(n){var i=Oe(n,ma);return i.length&&i[0]===n[0]?oa(i):[]}),x_=de(function(n){var i=Kt(n),u=Oe(n,ma);return i===Kt(u)?i=r:u.pop(),u.length&&u[0]===n[0]?oa(u,te(i,2)):[]}),C_=de(function(n){var i=Kt(n),u=Oe(n,ma);return i=typeof i=="function"?i:r,i&&u.pop(),u.length&&u[0]===n[0]?oa(u,r,i):[]});function E_(n,i){return n==null?"":_w.call(n,i)}function Kt(n){var i=n==null?0:n.length;return i?n[i-1]:r}function k_(n,i,u){var a=n==null?0:n.length;if(!a)return-1;var p=a;return u!==r&&(p=ae(u),p=p<0?Qe(a+p,0):lt(p,a-1)),i===i?iw(n,i,p):wo(n,Yd,p,!0)}function L_(n,i){return n&&n.length?Lp(n,ae(i)):r}var I_=de(mh);function mh(n,i){return n&&n.length&&i&&i.length?ca(n,i):n}function R_(n,i,u){return n&&n.length&&i&&i.length?ca(n,i,te(u,2)):n}function T_(n,i,u){return n&&n.length&&i&&i.length?ca(n,i,r,u):n}var A_=On(function(n,i){var u=n==null?0:n.length,a=na(n,i);return Tp(n,Oe(i,function(p){return Pn(p,u)?+p:p}).sort($p)),a});function O_(n,i){var u=[];if(!(n&&n.length))return u;var a=-1,p=[],g=n.length;for(i=te(i,3);++a<g;){var S=n[a];i(S,a,n)&&(u.push(S),p.push(a))}return Tp(n,p),u}function Aa(n){return n==null?n:Ew.call(n)}function P_(n,i,u){var a=n==null?0:n.length;return a?(u&&typeof u!="number"&&ht(n,i,u)?(i=0,u=a):(i=i==null?0:ae(i),u=u===r?a:ae(u)),qt(n,i,u)):[]}function N_(n,i){return Do(n,i)}function M_(n,i,u){return pa(n,i,te(u,2))}function B_(n,i){var u=n==null?0:n.length;if(u){var a=Do(n,i);if(a<u&&un(n[a],i))return a}return-1}function W_(n,i){return Do(n,i,!0)}function z_(n,i,u){return pa(n,i,te(u,2),!0)}function D_(n,i){var u=n==null?0:n.length;if(u){var a=Do(n,i,!0)-1;if(un(n[a],i))return a}return-1}function $_(n){return n&&n.length?Op(n):[]}function F_(n,i){return n&&n.length?Op(n,te(i,2)):[]}function U_(n){var i=n==null?0:n.length;return i?qt(n,1,i):[]}function j_(n,i,u){return n&&n.length?(i=u||i===r?1:ae(i),qt(n,0,i<0?0:i)):[]}function H_(n,i,u){var a=n==null?0:n.length;return a?(i=u||i===r?1:ae(i),i=a-i,qt(n,i<0?0:i,a)):[]}function V_(n,i){return n&&n.length?$o(n,te(i,3),!1,!0):[]}function G_(n,i){return n&&n.length?$o(n,te(i,3)):[]}var Q_=de(function(n){return Jn(et(n,1,Fe,!0))}),q_=de(function(n){var i=Kt(n);return Fe(i)&&(i=r),Jn(et(n,1,Fe,!0),te(i,2))}),K_=de(function(n){var i=Kt(n);return i=typeof i=="function"?i:r,Jn(et(n,1,Fe,!0),r,i)});function Y_(n){return n&&n.length?Jn(n):[]}function Z_(n,i){return n&&n.length?Jn(n,te(i,2)):[]}function X_(n,i){return i=typeof i=="function"?i:r,n&&n.length?Jn(n,r,i):[]}function Oa(n){if(!(n&&n.length))return[];var i=0;return n=qn(n,function(u){if(Fe(u))return i=Qe(u.length,i),!0}),Ks(i,function(u){return Oe(n,Gs(u))})}function vh(n,i){if(!(n&&n.length))return[];var u=Oa(n);return i==null?u:Oe(u,function(a){return At(i,r,a)})}var J_=de(function(n,i){return Fe(n)?rl(n,i):[]}),b_=de(function(n){return ga(qn(n,Fe))}),eS=de(function(n){var i=Kt(n);return Fe(i)&&(i=r),ga(qn(n,Fe),te(i,2))}),tS=de(function(n){var i=Kt(n);return i=typeof i=="function"?i:r,ga(qn(n,Fe),r,i)}),nS=de(Oa);function rS(n,i){return Bp(n||[],i||[],nl)}function iS(n,i){return Bp(n||[],i||[],ol)}var lS=de(function(n){var i=n.length,u=i>1?n[i-1]:r;return u=typeof u=="function"?(n.pop(),u):r,vh(n,u)});function wh(n){var i=h(n);return i.__chain__=!0,i}function oS(n,i){return i(n),n}function Ko(n,i){return i(n)}var uS=On(function(n){var i=n.length,u=i?n[0]:0,a=this.__wrapped__,p=function(g){return na(g,n)};return i>1||this.__actions__.length||!(a instanceof he)||!Pn(u)?this.thru(p):(a=a.slice(u,+u+(i?1:0)),a.__actions__.push({func:Ko,args:[p],thisArg:r}),new Gt(a,this.__chain__).thru(function(g){return i&&!g.length&&g.push(r),g}))});function sS(){return wh(this)}function aS(){return new Gt(this.value(),this.__chain__)}function cS(){this.__values__===r&&(this.__values__=Ph(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function fS(){return this}function dS(n){for(var i,u=this;u instanceof No;){var a=fh(u);a.__index__=0,a.__values__=r,i?p.__wrapped__=a:i=a;var p=a;u=u.__wrapped__}return p.__wrapped__=n,i}function pS(){var n=this.__wrapped__;if(n instanceof he){var i=n;return this.__actions__.length&&(i=new he(this)),i=i.reverse(),i.__actions__.push({func:Ko,args:[Aa],thisArg:r}),new Gt(i,this.__chain__)}return this.thru(Aa)}function hS(){return Mp(this.__wrapped__,this.__actions__)}var gS=Fo(function(n,i,u){xe.call(n,u)?++n[u]:Tn(n,u,1)});function mS(n,i,u){var a=ue(n)?qd:oy;return u&&ht(n,i,u)&&(i=r),a(n,te(i,3))}function vS(n,i){var u=ue(n)?qn:vp;return u(n,te(i,3))}var wS=Gp(dh),yS=Gp(ph);function _S(n,i){return et(Yo(n,i),1)}function SS(n,i){return et(Yo(n,i),le)}function xS(n,i,u){return u=u===r?1:ae(u),et(Yo(n,i),u)}function yh(n,i){var u=ue(n)?Ht:Xn;return u(n,te(i,3))}function _h(n,i){var u=ue(n)?U1:mp;return u(n,te(i,3))}var CS=Fo(function(n,i,u){xe.call(n,u)?n[u].push(i):Tn(n,u,[i])});function ES(n,i,u,a){n=St(n)?n:ci(n),u=u&&!a?ae(u):0;var p=n.length;return u<0&&(u=Qe(p+u,0)),eu(n)?u<=p&&n.indexOf(i,u)>-1:!!p&&Jr(n,i,u)>-1}var kS=de(function(n,i,u){var a=-1,p=typeof i=="function",g=St(n)?N(n.length):[];return Xn(n,function(S){g[++a]=p?At(i,S,u):il(S,i,u)}),g}),LS=Fo(function(n,i,u){Tn(n,u,i)});function Yo(n,i){var u=ue(n)?Oe:Cp;return u(n,te(i,3))}function IS(n,i,u,a){return n==null?[]:(ue(i)||(i=i==null?[]:[i]),u=a?r:u,ue(u)||(u=u==null?[]:[u]),Ip(n,i,u))}var RS=Fo(function(n,i,u){n[u?0:1].push(i)},function(){return[[],[]]});function TS(n,i,u){var a=ue(n)?Hs:Xd,p=arguments.length<3;return a(n,te(i,4),u,p,Xn)}function AS(n,i,u){var a=ue(n)?j1:Xd,p=arguments.length<3;return a(n,te(i,4),u,p,mp)}function OS(n,i){var u=ue(n)?qn:vp;return u(n,Jo(te(i,3)))}function PS(n){var i=ue(n)?dp:Ey;return i(n)}function NS(n,i,u){(u?ht(n,i,u):i===r)?i=1:i=ae(i);var a=ue(n)?ty:ky;return a(n,i)}function MS(n){var i=ue(n)?ny:Iy;return i(n)}function BS(n){if(n==null)return 0;if(St(n))return eu(n)?ei(n):n.length;var i=ot(n);return i==nn||i==rn?n.size:sa(n).length}function WS(n,i,u){var a=ue(n)?Vs:Ry;return u&&ht(n,i,u)&&(i=r),a(n,te(i,3))}var zS=de(function(n,i){if(n==null)return[];var u=i.length;return u>1&&ht(n,i[0],i[1])?i=[]:u>2&&ht(i[0],i[1],i[2])&&(i=[i[0]]),Ip(n,et(i,1),[])}),Zo=vw||function(){return be.Date.now()};function DS(n,i){if(typeof i!="function")throw new Vt(c);return n=ae(n),function(){if(--n<1)return i.apply(this,arguments)}}function Sh(n,i,u){return i=u?r:i,i=n&&i==null?n.length:i,An(n,A,r,r,r,r,i)}function xh(n,i){var u;if(typeof i!="function")throw new Vt(c);return n=ae(n),function(){return--n>0&&(u=i.apply(this,arguments)),n<=1&&(i=r),u}}var Pa=de(function(n,i,u){var a=P;if(u.length){var p=Yn(u,si(Pa));a|=z}return An(n,a,i,u,p)}),Ch=de(function(n,i,u){var a=P|v;if(u.length){var p=Yn(u,si(Ch));a|=z}return An(i,a,n,u,p)});function Eh(n,i,u){i=u?r:i;var a=An(n,C,r,r,r,r,r,i);return a.placeholder=Eh.placeholder,a}function kh(n,i,u){i=u?r:i;var a=An(n,M,r,r,r,r,r,i);return a.placeholder=kh.placeholder,a}function Lh(n,i,u){var a,p,g,S,E,R,D=0,F=!1,j=!1,q=!0;if(typeof n!="function")throw new Vt(c);i=Yt(i)||0,Ne(u)&&(F=!!u.leading,j="maxWait"in u,g=j?Qe(Yt(u.maxWait)||0,i):g,q="trailing"in u?!!u.trailing:q);function J(Ue){var sn=a,Bn=p;return a=p=r,D=Ue,S=n.apply(Bn,sn),S}function ne(Ue){return D=Ue,E=al(pe,i),F?J(Ue):S}function fe(Ue){var sn=Ue-R,Bn=Ue-D,Gh=i-sn;return j?lt(Gh,g-Bn):Gh}function re(Ue){var sn=Ue-R,Bn=Ue-D;return R===r||sn>=i||sn<0||j&&Bn>=g}function pe(){var Ue=Zo();if(re(Ue))return me(Ue);E=al(pe,fe(Ue))}function me(Ue){return E=r,q&&a?J(Ue):(a=p=r,S)}function Mt(){E!==r&&Wp(E),D=0,a=R=p=E=r}function gt(){return E===r?S:me(Zo())}function Bt(){var Ue=Zo(),sn=re(Ue);if(a=arguments,p=this,R=Ue,sn){if(E===r)return ne(R);if(j)return Wp(E),E=al(pe,i),J(R)}return E===r&&(E=al(pe,i)),S}return Bt.cancel=Mt,Bt.flush=gt,Bt}var $S=de(function(n,i){return gp(n,1,i)}),FS=de(function(n,i,u){return gp(n,Yt(i)||0,u)});function US(n){return An(n,b)}function Xo(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Vt(c);var u=function(){var a=arguments,p=i?i.apply(this,a):a[0],g=u.cache;if(g.has(p))return g.get(p);var S=n.apply(this,a);return u.cache=g.set(p,S)||g,S};return u.cache=new(Xo.Cache||Rn),u}Xo.Cache=Rn;function Jo(n){if(typeof n!="function")throw new Vt(c);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function jS(n){return xh(2,n)}var HS=Ty(function(n,i){i=i.length==1&&ue(i[0])?Oe(i[0],Ot(te())):Oe(et(i,1),Ot(te()));var u=i.length;return de(function(a){for(var p=-1,g=lt(a.length,u);++p<g;)a[p]=i[p].call(this,a[p]);return At(n,this,a)})}),Na=de(function(n,i){var u=Yn(i,si(Na));return An(n,z,r,i,u)}),Ih=de(function(n,i){var u=Yn(i,si(Ih));return An(n,U,r,i,u)}),VS=On(function(n,i){return An(n,B,r,r,r,i)});function GS(n,i){if(typeof n!="function")throw new Vt(c);return i=i===r?i:ae(i),de(n,i)}function QS(n,i){if(typeof n!="function")throw new Vt(c);return i=i==null?0:Qe(ae(i),0),de(function(u){var a=u[i],p=er(u,0,i);return a&&Kn(p,a),At(n,this,p)})}function qS(n,i,u){var a=!0,p=!0;if(typeof n!="function")throw new Vt(c);return Ne(u)&&(a="leading"in u?!!u.leading:a,p="trailing"in u?!!u.trailing:p),Lh(n,i,{leading:a,maxWait:i,trailing:p})}function KS(n){return Sh(n,1)}function YS(n,i){return Na(va(i),n)}function ZS(){if(!arguments.length)return[];var n=arguments[0];return ue(n)?n:[n]}function XS(n){return Qt(n,k)}function JS(n,i){return i=typeof i=="function"?i:r,Qt(n,k,i)}function bS(n){return Qt(n,w|k)}function ex(n,i){return i=typeof i=="function"?i:r,Qt(n,w|k,i)}function tx(n,i){return i==null||hp(n,i,Ye(i))}function un(n,i){return n===i||n!==n&&i!==i}var nx=Vo(la),rx=Vo(function(n,i){return n>=i}),Mr=_p(function(){return arguments}())?_p:function(n){return ze(n)&&xe.call(n,"callee")&&!op.call(n,"callee")},ue=N.isArray,ix=Ud?Ot(Ud):dy;function St(n){return n!=null&&bo(n.length)&&!Nn(n)}function Fe(n){return ze(n)&&St(n)}function lx(n){return n===!0||n===!1||ze(n)&&pt(n)==Hi}var tr=yw||Va,ox=jd?Ot(jd):py;function ux(n){return ze(n)&&n.nodeType===1&&!cl(n)}function sx(n){if(n==null)return!0;if(St(n)&&(ue(n)||typeof n=="string"||typeof n.splice=="function"||tr(n)||ai(n)||Mr(n)))return!n.length;var i=ot(n);if(i==nn||i==rn)return!n.size;if(sl(n))return!sa(n).length;for(var u in n)if(xe.call(n,u))return!1;return!0}function ax(n,i){return ll(n,i)}function cx(n,i,u){u=typeof u=="function"?u:r;var a=u?u(n,i):r;return a===r?ll(n,i,r,u):!!a}function Ma(n){if(!ze(n))return!1;var i=pt(n);return i==co||i==Nv||typeof n.message=="string"&&typeof n.name=="string"&&!cl(n)}function fx(n){return typeof n=="number"&&sp(n)}function Nn(n){if(!Ne(n))return!1;var i=pt(n);return i==fo||i==gd||i==Tt||i==Bv}function Rh(n){return typeof n=="number"&&n==ae(n)}function bo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=$}function Ne(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function ze(n){return n!=null&&typeof n=="object"}var Th=Hd?Ot(Hd):gy;function dx(n,i){return n===i||ua(n,i,Ea(i))}function px(n,i,u){return u=typeof u=="function"?u:r,ua(n,i,Ea(i),u)}function hx(n){return Ah(n)&&n!=+n}function gx(n){if(Jy(n))throw new oe(s);return Sp(n)}function mx(n){return n===null}function vx(n){return n==null}function Ah(n){return typeof n=="number"||ze(n)&&pt(n)==Gi}function cl(n){if(!ze(n)||pt(n)!=Ln)return!1;var i=Lo(n);if(i===null)return!0;var u=xe.call(i,"constructor")&&i.constructor;return typeof u=="function"&&u instanceof u&&xo.call(u)==pw}var Ba=Vd?Ot(Vd):my;function wx(n){return Rh(n)&&n>=-$&&n<=$}var Oh=Gd?Ot(Gd):vy;function eu(n){return typeof n=="string"||!ue(n)&&ze(n)&&pt(n)==qi}function Nt(n){return typeof n=="symbol"||ze(n)&&pt(n)==po}var ai=Qd?Ot(Qd):wy;function yx(n){return n===r}function _x(n){return ze(n)&&ot(n)==Ki}function Sx(n){return ze(n)&&pt(n)==zv}var xx=Vo(aa),Cx=Vo(function(n,i){return n<=i});function Ph(n){if(!n)return[];if(St(n))return eu(n)?ln(n):_t(n);if(Xi&&n[Xi])return tw(n[Xi]());var i=ot(n),u=i==nn?Zs:i==rn?yo:ci;return u(n)}function Mn(n){if(!n)return n===0?n:0;if(n=Yt(n),n===le||n===-le){var i=n<0?-1:1;return i*Q}return n===n?n:0}function ae(n){var i=Mn(n),u=i%1;return i===i?u?i-u:i:0}function Nh(n){return n?Ar(ae(n),0,Z):0}function Yt(n){if(typeof n=="number")return n;if(Nt(n))return G;if(Ne(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=Ne(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Jd(n);var u=i1.test(n);return u||o1.test(n)?D1(n.slice(2),u?2:8):r1.test(n)?G:+n}function Mh(n){return wn(n,xt(n))}function Ex(n){return n?Ar(ae(n),-$,$):n===0?n:0}function Se(n){return n==null?"":Pt(n)}var kx=oi(function(n,i){if(sl(i)||St(i)){wn(i,Ye(i),n);return}for(var u in i)xe.call(i,u)&&nl(n,u,i[u])}),Bh=oi(function(n,i){wn(i,xt(i),n)}),tu=oi(function(n,i,u,a){wn(i,xt(i),n,a)}),Lx=oi(function(n,i,u,a){wn(i,Ye(i),n,a)}),Ix=On(na);function Rx(n,i){var u=li(n);return i==null?u:pp(u,i)}var Tx=de(function(n,i){n=ke(n);var u=-1,a=i.length,p=a>2?i[2]:r;for(p&&ht(i[0],i[1],p)&&(a=1);++u<a;)for(var g=i[u],S=xt(g),E=-1,R=S.length;++E<R;){var D=S[E],F=n[D];(F===r||un(F,ni[D])&&!xe.call(n,D))&&(n[D]=g[D])}return n}),Ax=de(function(n){return n.push(r,Jp),At(Wh,r,n)});function Ox(n,i){return Kd(n,te(i,3),vn)}function Px(n,i){return Kd(n,te(i,3),ia)}function Nx(n,i){return n==null?n:ra(n,te(i,3),xt)}function Mx(n,i){return n==null?n:wp(n,te(i,3),xt)}function Bx(n,i){return n&&vn(n,te(i,3))}function Wx(n,i){return n&&ia(n,te(i,3))}function zx(n){return n==null?[]:Wo(n,Ye(n))}function Dx(n){return n==null?[]:Wo(n,xt(n))}function Wa(n,i,u){var a=n==null?r:Or(n,i);return a===r?u:a}function $x(n,i){return n!=null&&th(n,i,sy)}function za(n,i){return n!=null&&th(n,i,ay)}var Fx=qp(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),n[i]=u},$a(Ct)),Ux=qp(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Co.call(i)),xe.call(n,i)?n[i].push(u):n[i]=[u]},te),jx=de(il);function Ye(n){return St(n)?fp(n):sa(n)}function xt(n){return St(n)?fp(n,!0):yy(n)}function Hx(n,i){var u={};return i=te(i,3),vn(n,function(a,p,g){Tn(u,i(a,p,g),a)}),u}function Vx(n,i){var u={};return i=te(i,3),vn(n,function(a,p,g){Tn(u,p,i(a,p,g))}),u}var Gx=oi(function(n,i,u){zo(n,i,u)}),Wh=oi(function(n,i,u,a){zo(n,i,u,a)}),Qx=On(function(n,i){var u={};if(n==null)return u;var a=!1;i=Oe(i,function(g){return g=bn(g,n),a||(a=g.length>1),g}),wn(n,xa(n),u),a&&(u=Qt(u,w|x|k,Fy));for(var p=i.length;p--;)ha(u,i[p]);return u});function qx(n,i){return zh(n,Jo(te(i)))}var Kx=On(function(n,i){return n==null?{}:Sy(n,i)});function zh(n,i){if(n==null)return{};var u=Oe(xa(n),function(a){return[a]});return i=te(i),Rp(n,u,function(a,p){return i(a,p[0])})}function Yx(n,i,u){i=bn(i,n);var a=-1,p=i.length;for(p||(p=1,n=r);++a<p;){var g=n==null?r:n[yn(i[a])];g===r&&(a=p,g=u),n=Nn(g)?g.call(n):g}return n}function Zx(n,i,u){return n==null?n:ol(n,i,u)}function Xx(n,i,u,a){return a=typeof a=="function"?a:r,n==null?n:ol(n,i,u,a)}var Dh=Zp(Ye),$h=Zp(xt);function Jx(n,i,u){var a=ue(n),p=a||tr(n)||ai(n);if(i=te(i,4),u==null){var g=n&&n.constructor;p?u=a?new g:[]:Ne(n)?u=Nn(g)?li(Lo(n)):{}:u={}}return(p?Ht:vn)(n,function(S,E,R){return i(u,S,E,R)}),u}function bx(n,i){return n==null?!0:ha(n,i)}function eC(n,i,u){return n==null?n:Np(n,i,va(u))}function tC(n,i,u,a){return a=typeof a=="function"?a:r,n==null?n:Np(n,i,va(u),a)}function ci(n){return n==null?[]:Ys(n,Ye(n))}function nC(n){return n==null?[]:Ys(n,xt(n))}function rC(n,i,u){return u===r&&(u=i,i=r),u!==r&&(u=Yt(u),u=u===u?u:0),i!==r&&(i=Yt(i),i=i===i?i:0),Ar(Yt(n),i,u)}function iC(n,i,u){return i=Mn(i),u===r?(u=i,i=0):u=Mn(u),n=Yt(n),cy(n,i,u)}function lC(n,i,u){if(u&&typeof u!="boolean"&&ht(n,i,u)&&(i=u=r),u===r&&(typeof i=="boolean"?(u=i,i=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&i===r?(n=0,i=1):(n=Mn(n),i===r?(i=n,n=0):i=Mn(i)),n>i){var a=n;n=i,i=a}if(u||n%1||i%1){var p=ap();return lt(n+p*(i-n+z1("1e-"+((p+"").length-1))),i)}return fa(n,i)}var oC=ui(function(n,i,u){return i=i.toLowerCase(),n+(u?Fh(i):i)});function Fh(n){return Da(Se(n).toLowerCase())}function Uh(n){return n=Se(n),n&&n.replace(s1,Z1).replace(I1,"")}function uC(n,i,u){n=Se(n),i=Pt(i);var a=n.length;u=u===r?a:Ar(ae(u),0,a);var p=u;return u-=i.length,u>=0&&n.slice(u,p)==i}function sC(n){return n=Se(n),n&&jv.test(n)?n.replace(wd,X1):n}function aC(n){return n=Se(n),n&&Kv.test(n)?n.replace(Ns,"\\$&"):n}var cC=ui(function(n,i,u){return n+(u?"-":"")+i.toLowerCase()}),fC=ui(function(n,i,u){return n+(u?" ":"")+i.toLowerCase()}),dC=Vp("toLowerCase");function pC(n,i,u){n=Se(n),i=ae(i);var a=i?ei(n):0;if(!i||a>=i)return n;var p=(i-a)/2;return Ho(Ao(p),u)+n+Ho(To(p),u)}function hC(n,i,u){n=Se(n),i=ae(i);var a=i?ei(n):0;return i&&a<i?n+Ho(i-a,u):n}function gC(n,i,u){n=Se(n),i=ae(i);var a=i?ei(n):0;return i&&a<i?Ho(i-a,u)+n:n}function mC(n,i,u){return u||i==null?i=0:i&&(i=+i),Cw(Se(n).replace(Ms,""),i||0)}function vC(n,i,u){return(u?ht(n,i,u):i===r)?i=1:i=ae(i),da(Se(n),i)}function wC(){var n=arguments,i=Se(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var yC=ui(function(n,i,u){return n+(u?"_":"")+i.toLowerCase()});function _C(n,i,u){return u&&typeof u!="number"&&ht(n,i,u)&&(i=u=r),u=u===r?Z:u>>>0,u?(n=Se(n),n&&(typeof i=="string"||i!=null&&!Ba(i))&&(i=Pt(i),!i&&br(n))?er(ln(n),0,u):n.split(i,u)):[]}var SC=ui(function(n,i,u){return n+(u?" ":"")+Da(i)});function xC(n,i,u){return n=Se(n),u=u==null?0:Ar(ae(u),0,n.length),i=Pt(i),n.slice(u,u+i.length)==i}function CC(n,i,u){var a=h.templateSettings;u&&ht(n,i,u)&&(i=r),n=Se(n),i=tu({},i,a,Xp);var p=tu({},i.imports,a.imports,Xp),g=Ye(p),S=Ys(p,g),E,R,D=0,F=i.interpolate||ho,j="__p += '",q=Xs((i.escape||ho).source+"|"+F.source+"|"+(F===yd?n1:ho).source+"|"+(i.evaluate||ho).source+"|$","g"),J="//# sourceURL="+(xe.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++P1+"]")+`
`;n.replace(q,function(re,pe,me,Mt,gt,Bt){return me||(me=Mt),j+=n.slice(D,Bt).replace(a1,J1),pe&&(E=!0,j+=`' +
__e(`+pe+`) +
'`),gt&&(R=!0,j+=`';
`+gt+`;
__p += '`),me&&(j+=`' +
((__t = (`+me+`)) == null ? '' : __t) +
'`),D=Bt+re.length,re}),j+=`';
`;var ne=xe.call(i,"variable")&&i.variable;if(!ne)j=`with (obj) {
`+j+`
}
`;else if(e1.test(ne))throw new oe(f);j=(R?j.replace(Dv,""):j).replace($v,"$1").replace(Fv,"$1;"),j="function("+(ne||"obj")+`) {
`+(ne?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(R?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+j+`return __p
}`;var fe=Hh(function(){return _e(g,J+"return "+j).apply(r,S)});if(fe.source=j,Ma(fe))throw fe;return fe}function EC(n){return Se(n).toLowerCase()}function kC(n){return Se(n).toUpperCase()}function LC(n,i,u){if(n=Se(n),n&&(u||i===r))return Jd(n);if(!n||!(i=Pt(i)))return n;var a=ln(n),p=ln(i),g=bd(a,p),S=ep(a,p)+1;return er(a,g,S).join("")}function IC(n,i,u){if(n=Se(n),n&&(u||i===r))return n.slice(0,np(n)+1);if(!n||!(i=Pt(i)))return n;var a=ln(n),p=ep(a,ln(i))+1;return er(a,0,p).join("")}function RC(n,i,u){if(n=Se(n),n&&(u||i===r))return n.replace(Ms,"");if(!n||!(i=Pt(i)))return n;var a=ln(n),p=bd(a,ln(i));return er(a,p).join("")}function TC(n,i){var u=H,a=ee;if(Ne(i)){var p="separator"in i?i.separator:p;u="length"in i?ae(i.length):u,a="omission"in i?Pt(i.omission):a}n=Se(n);var g=n.length;if(br(n)){var S=ln(n);g=S.length}if(u>=g)return n;var E=u-ei(a);if(E<1)return a;var R=S?er(S,0,E).join(""):n.slice(0,E);if(p===r)return R+a;if(S&&(E+=R.length-E),Ba(p)){if(n.slice(E).search(p)){var D,F=R;for(p.global||(p=Xs(p.source,Se(_d.exec(p))+"g")),p.lastIndex=0;D=p.exec(F);)var j=D.index;R=R.slice(0,j===r?E:j)}}else if(n.indexOf(Pt(p),E)!=E){var q=R.lastIndexOf(p);q>-1&&(R=R.slice(0,q))}return R+a}function AC(n){return n=Se(n),n&&Uv.test(n)?n.replace(vd,lw):n}var OC=ui(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),Da=Vp("toUpperCase");function jh(n,i,u){return n=Se(n),i=u?r:i,i===r?ew(n)?sw(n):G1(n):n.match(i)||[]}var Hh=de(function(n,i){try{return At(n,r,i)}catch(u){return Ma(u)?u:new oe(u)}}),PC=On(function(n,i){return Ht(i,function(u){u=yn(u),Tn(n,u,Pa(n[u],n))}),n});function NC(n){var i=n==null?0:n.length,u=te();return n=i?Oe(n,function(a){if(typeof a[1]!="function")throw new Vt(c);return[u(a[0]),a[1]]}):[],de(function(a){for(var p=-1;++p<i;){var g=n[p];if(At(g[0],this,a))return At(g[1],this,a)}})}function MC(n){return ly(Qt(n,w))}function $a(n){return function(){return n}}function BC(n,i){return n==null||n!==n?i:n}var WC=Qp(),zC=Qp(!0);function Ct(n){return n}function Fa(n){return xp(typeof n=="function"?n:Qt(n,w))}function DC(n){return Ep(Qt(n,w))}function $C(n,i){return kp(n,Qt(i,w))}var FC=de(function(n,i){return function(u){return il(u,n,i)}}),UC=de(function(n,i){return function(u){return il(n,u,i)}});function Ua(n,i,u){var a=Ye(i),p=Wo(i,a);u==null&&!(Ne(i)&&(p.length||!a.length))&&(u=i,i=n,n=this,p=Wo(i,Ye(i)));var g=!(Ne(u)&&"chain"in u)||!!u.chain,S=Nn(n);return Ht(p,function(E){var R=i[E];n[E]=R,S&&(n.prototype[E]=function(){var D=this.__chain__;if(g||D){var F=n(this.__wrapped__),j=F.__actions__=_t(this.__actions__);return j.push({func:R,args:arguments,thisArg:n}),F.__chain__=D,F}return R.apply(n,Kn([this.value()],arguments))})}),n}function jC(){return be._===this&&(be._=hw),this}function ja(){}function HC(n){return n=ae(n),de(function(i){return Lp(i,n)})}var VC=ya(Oe),GC=ya(qd),QC=ya(Vs);function Vh(n){return La(n)?Gs(yn(n)):xy(n)}function qC(n){return function(i){return n==null?r:Or(n,i)}}var KC=Kp(),YC=Kp(!0);function Ha(){return[]}function Va(){return!1}function ZC(){return{}}function XC(){return""}function JC(){return!0}function bC(n,i){if(n=ae(n),n<1||n>$)return[];var u=Z,a=lt(n,Z);i=te(i),n-=Z;for(var p=Ks(a,i);++u<n;)i(u);return p}function e2(n){return ue(n)?Oe(n,yn):Nt(n)?[n]:_t(ch(Se(n)))}function t2(n){var i=++dw;return Se(n)+i}var n2=jo(function(n,i){return n+i},0),r2=_a("ceil"),i2=jo(function(n,i){return n/i},1),l2=_a("floor");function o2(n){return n&&n.length?Bo(n,Ct,la):r}function u2(n,i){return n&&n.length?Bo(n,te(i,2),la):r}function s2(n){return Zd(n,Ct)}function a2(n,i){return Zd(n,te(i,2))}function c2(n){return n&&n.length?Bo(n,Ct,aa):r}function f2(n,i){return n&&n.length?Bo(n,te(i,2),aa):r}var d2=jo(function(n,i){return n*i},1),p2=_a("round"),h2=jo(function(n,i){return n-i},0);function g2(n){return n&&n.length?qs(n,Ct):0}function m2(n,i){return n&&n.length?qs(n,te(i,2)):0}return h.after=DS,h.ary=Sh,h.assign=kx,h.assignIn=Bh,h.assignInWith=tu,h.assignWith=Lx,h.at=Ix,h.before=xh,h.bind=Pa,h.bindAll=PC,h.bindKey=Ch,h.castArray=ZS,h.chain=wh,h.chunk=l_,h.compact=o_,h.concat=u_,h.cond=NC,h.conforms=MC,h.constant=$a,h.countBy=gS,h.create=Rx,h.curry=Eh,h.curryRight=kh,h.debounce=Lh,h.defaults=Tx,h.defaultsDeep=Ax,h.defer=$S,h.delay=FS,h.difference=s_,h.differenceBy=a_,h.differenceWith=c_,h.drop=f_,h.dropRight=d_,h.dropRightWhile=p_,h.dropWhile=h_,h.fill=g_,h.filter=vS,h.flatMap=_S,h.flatMapDeep=SS,h.flatMapDepth=xS,h.flatten=hh,h.flattenDeep=m_,h.flattenDepth=v_,h.flip=US,h.flow=WC,h.flowRight=zC,h.fromPairs=w_,h.functions=zx,h.functionsIn=Dx,h.groupBy=CS,h.initial=__,h.intersection=S_,h.intersectionBy=x_,h.intersectionWith=C_,h.invert=Fx,h.invertBy=Ux,h.invokeMap=kS,h.iteratee=Fa,h.keyBy=LS,h.keys=Ye,h.keysIn=xt,h.map=Yo,h.mapKeys=Hx,h.mapValues=Vx,h.matches=DC,h.matchesProperty=$C,h.memoize=Xo,h.merge=Gx,h.mergeWith=Wh,h.method=FC,h.methodOf=UC,h.mixin=Ua,h.negate=Jo,h.nthArg=HC,h.omit=Qx,h.omitBy=qx,h.once=jS,h.orderBy=IS,h.over=VC,h.overArgs=HS,h.overEvery=GC,h.overSome=QC,h.partial=Na,h.partialRight=Ih,h.partition=RS,h.pick=Kx,h.pickBy=zh,h.property=Vh,h.propertyOf=qC,h.pull=I_,h.pullAll=mh,h.pullAllBy=R_,h.pullAllWith=T_,h.pullAt=A_,h.range=KC,h.rangeRight=YC,h.rearg=VS,h.reject=OS,h.remove=O_,h.rest=GS,h.reverse=Aa,h.sampleSize=NS,h.set=Zx,h.setWith=Xx,h.shuffle=MS,h.slice=P_,h.sortBy=zS,h.sortedUniq=$_,h.sortedUniqBy=F_,h.split=_C,h.spread=QS,h.tail=U_,h.take=j_,h.takeRight=H_,h.takeRightWhile=V_,h.takeWhile=G_,h.tap=oS,h.throttle=qS,h.thru=Ko,h.toArray=Ph,h.toPairs=Dh,h.toPairsIn=$h,h.toPath=e2,h.toPlainObject=Mh,h.transform=Jx,h.unary=KS,h.union=Q_,h.unionBy=q_,h.unionWith=K_,h.uniq=Y_,h.uniqBy=Z_,h.uniqWith=X_,h.unset=bx,h.unzip=Oa,h.unzipWith=vh,h.update=eC,h.updateWith=tC,h.values=ci,h.valuesIn=nC,h.without=J_,h.words=jh,h.wrap=YS,h.xor=b_,h.xorBy=eS,h.xorWith=tS,h.zip=nS,h.zipObject=rS,h.zipObjectDeep=iS,h.zipWith=lS,h.entries=Dh,h.entriesIn=$h,h.extend=Bh,h.extendWith=tu,Ua(h,h),h.add=n2,h.attempt=Hh,h.camelCase=oC,h.capitalize=Fh,h.ceil=r2,h.clamp=rC,h.clone=XS,h.cloneDeep=bS,h.cloneDeepWith=ex,h.cloneWith=JS,h.conformsTo=tx,h.deburr=Uh,h.defaultTo=BC,h.divide=i2,h.endsWith=uC,h.eq=un,h.escape=sC,h.escapeRegExp=aC,h.every=mS,h.find=wS,h.findIndex=dh,h.findKey=Ox,h.findLast=yS,h.findLastIndex=ph,h.findLastKey=Px,h.floor=l2,h.forEach=yh,h.forEachRight=_h,h.forIn=Nx,h.forInRight=Mx,h.forOwn=Bx,h.forOwnRight=Wx,h.get=Wa,h.gt=nx,h.gte=rx,h.has=$x,h.hasIn=za,h.head=gh,h.identity=Ct,h.includes=ES,h.indexOf=y_,h.inRange=iC,h.invoke=jx,h.isArguments=Mr,h.isArray=ue,h.isArrayBuffer=ix,h.isArrayLike=St,h.isArrayLikeObject=Fe,h.isBoolean=lx,h.isBuffer=tr,h.isDate=ox,h.isElement=ux,h.isEmpty=sx,h.isEqual=ax,h.isEqualWith=cx,h.isError=Ma,h.isFinite=fx,h.isFunction=Nn,h.isInteger=Rh,h.isLength=bo,h.isMap=Th,h.isMatch=dx,h.isMatchWith=px,h.isNaN=hx,h.isNative=gx,h.isNil=vx,h.isNull=mx,h.isNumber=Ah,h.isObject=Ne,h.isObjectLike=ze,h.isPlainObject=cl,h.isRegExp=Ba,h.isSafeInteger=wx,h.isSet=Oh,h.isString=eu,h.isSymbol=Nt,h.isTypedArray=ai,h.isUndefined=yx,h.isWeakMap=_x,h.isWeakSet=Sx,h.join=E_,h.kebabCase=cC,h.last=Kt,h.lastIndexOf=k_,h.lowerCase=fC,h.lowerFirst=dC,h.lt=xx,h.lte=Cx,h.max=o2,h.maxBy=u2,h.mean=s2,h.meanBy=a2,h.min=c2,h.minBy=f2,h.stubArray=Ha,h.stubFalse=Va,h.stubObject=ZC,h.stubString=XC,h.stubTrue=JC,h.multiply=d2,h.nth=L_,h.noConflict=jC,h.noop=ja,h.now=Zo,h.pad=pC,h.padEnd=hC,h.padStart=gC,h.parseInt=mC,h.random=lC,h.reduce=TS,h.reduceRight=AS,h.repeat=vC,h.replace=wC,h.result=Yx,h.round=p2,h.runInContext=L,h.sample=PS,h.size=BS,h.snakeCase=yC,h.some=WS,h.sortedIndex=N_,h.sortedIndexBy=M_,h.sortedIndexOf=B_,h.sortedLastIndex=W_,h.sortedLastIndexBy=z_,h.sortedLastIndexOf=D_,h.startCase=SC,h.startsWith=xC,h.subtract=h2,h.sum=g2,h.sumBy=m2,h.template=CC,h.times=bC,h.toFinite=Mn,h.toInteger=ae,h.toLength=Nh,h.toLower=EC,h.toNumber=Yt,h.toSafeInteger=Ex,h.toString=Se,h.toUpper=kC,h.trim=LC,h.trimEnd=IC,h.trimStart=RC,h.truncate=TC,h.unescape=AC,h.uniqueId=t2,h.upperCase=OC,h.upperFirst=Da,h.each=yh,h.eachRight=_h,h.first=gh,Ua(h,function(){var n={};return vn(h,function(i,u){xe.call(h.prototype,u)||(n[u]=i)}),n}(),{chain:!1}),h.VERSION=l,Ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){h[n].placeholder=h}),Ht(["drop","take"],function(n,i){he.prototype[n]=function(u){u=u===r?1:Qe(ae(u),0);var a=this.__filtered__&&!i?new he(this):this.clone();return a.__filtered__?a.__takeCount__=lt(u,a.__takeCount__):a.__views__.push({size:lt(u,Z),type:n+(a.__dir__<0?"Right":"")}),a},he.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Ht(["filter","map","takeWhile"],function(n,i){var u=i+1,a=u==ce||u==$e;he.prototype[n]=function(p){var g=this.clone();return g.__iteratees__.push({iteratee:te(p,3),type:u}),g.__filtered__=g.__filtered__||a,g}}),Ht(["head","last"],function(n,i){var u="take"+(i?"Right":"");he.prototype[n]=function(){return this[u](1).value()[0]}}),Ht(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");he.prototype[n]=function(){return this.__filtered__?new he(this):this[u](1)}}),he.prototype.compact=function(){return this.filter(Ct)},he.prototype.find=function(n){return this.filter(n).head()},he.prototype.findLast=function(n){return this.reverse().find(n)},he.prototype.invokeMap=de(function(n,i){return typeof n=="function"?new he(this):this.map(function(u){return il(u,n,i)})}),he.prototype.reject=function(n){return this.filter(Jo(te(n)))},he.prototype.slice=function(n,i){n=ae(n);var u=this;return u.__filtered__&&(n>0||i<0)?new he(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=ae(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},he.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},he.prototype.toArray=function(){return this.take(Z)},vn(he.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),a=/^(?:head|last)$/.test(i),p=h[a?"take"+(i=="last"?"Right":""):i],g=a||/^find/.test(i);p&&(h.prototype[i]=function(){var S=this.__wrapped__,E=a?[1]:arguments,R=S instanceof he,D=E[0],F=R||ue(S),j=function(pe){var me=p.apply(h,Kn([pe],E));return a&&q?me[0]:me};F&&u&&typeof D=="function"&&D.length!=1&&(R=F=!1);var q=this.__chain__,J=!!this.__actions__.length,ne=g&&!q,fe=R&&!J;if(!g&&F){S=fe?S:new he(this);var re=n.apply(S,E);return re.__actions__.push({func:Ko,args:[j],thisArg:r}),new Gt(re,q)}return ne&&fe?n.apply(this,E):(re=this.thru(j),ne?a?re.value()[0]:re.value():re)})}),Ht(["pop","push","shift","sort","splice","unshift"],function(n){var i=_o[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",a=/^(?:pop|shift)$/.test(n);h.prototype[n]=function(){var p=arguments;if(a&&!this.__chain__){var g=this.value();return i.apply(ue(g)?g:[],p)}return this[u](function(S){return i.apply(ue(S)?S:[],p)})}}),vn(he.prototype,function(n,i){var u=h[i];if(u){var a=u.name+"";xe.call(ii,a)||(ii[a]=[]),ii[a].push({name:i,func:u})}}),ii[Uo(r,v).name]=[{name:"wrapper",func:r}],he.prototype.clone=Aw,he.prototype.reverse=Ow,he.prototype.value=Pw,h.prototype.at=uS,h.prototype.chain=sS,h.prototype.commit=aS,h.prototype.next=cS,h.prototype.plant=dS,h.prototype.reverse=pS,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=hS,h.prototype.first=h.prototype.head,Xi&&(h.prototype[Xi]=fS),h},ti=aw();Lr?((Lr.exports=ti)._=ti,Fs._=ti):be._=ti}).call(fl)})(rs,rs.exports);var Qn=rs.exports;const wr={};["wrap","carousel","grid","grid-carousel","center","columnLeft","columnRight","featured","featured-carousel","wallpaper","wallpaper-carousel","table","table-carousel","minimal","minimal-carousel","mini-grid","mini-grid-carousel"].forEach(e=>wr[e]=`cWidgetContainer--${e}`);const fd=2,dd=new Set(["table","table-carousel","grid-carousel","list","minimal","minimal-carousel","featured","featured-carousel","mini-grid","mini-grid-carousel","wallpaper","wallpaper-carousel"]),pf=new Set([...dd,"grid"]),yr={grid:"grid-carousel",minimal:"minimal-carousel","mini-grid":"mini-grid-carousel",table:"table-carousel",wallpaper:"wallpaper-carousel",featured:"featured-carousel"},Xe={};for(const e in yr)Xe[yr[e]]=e;const vc={"mini-grid":290,grid:300,carousel:"100%","table-carousel":"100%","featured-carousel":"100%",featured:"100%"},_v=new Set(["table-carousel","stack","list","minimal","table","featured","featured-carousel"]),pd=new Set(["grid","grid-carousel","table","table-carousel","minimal","minimal-carousel","mini-grid","mini-grid-carousel","featured","featured-carousel","carousel"]),Sv=new Set(["grid","grid-carousel","featured","featured-carousel","table","table-carousel","minimal","minimal-carousel","mini-grid","mini-grid-carousel"]),Kk=`.cBuilderSvg__box--secondaryColoring{color:color-mix(in srgb,var(--i-svg--st) 25%,var(--i-svg--co) 75%)}.cBuilderSvg__arrow,.cBuilderSvg__path{color:var(--i-svg--st)}.cBuilderSvg__marker{fill:var( --i-svg--st )}.cBuilderSvg__box--outlined{stroke:var(--i-svg--st);stroke-width:var(--i-svg--st-wi);color:var(--i-svg--co)}.cBuilderSvg text{fill:var(--i-svg--st)}.cBuilderSvg *:not(#x){transform-origin:center}.cBuilderSvg__image-icon{color:var(--i-svg--st)}.cBuilderSvg__solid{fill:var(--i-svg--st);stroke:var(--i-svg--st)}
`;function ur({blocks:e=[],arrows:t=[],arrowId:r,rotate:l=!1,rotateNegative:o=!1,flip:s=!1,lines:c=[],children:f=[],includeInlineStyle:d=!1,effect:m,...y}){X.useEffect(()=>m==null?void 0:m()),r=r||Math.floor(Math.random()*Math.pow(2,4*8)).toString(16),f?Symbol.iterator in f||(f=[f]):f=[],y.className||(y.className=""),y.className+=" cBuilderSvg";const w=()=>d?T.jsx("style",{children:Kk}):T.jsx(T.Fragment,{});return T.jsxs("svg",{viewBox:"0 0 100 100",...y,children:[T.jsx(w,{}),T.jsxs("defs",{children:[T.jsx("marker",{id:`arrow_${r}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"2.5",markerHeight:"2.5",orient:"auto-start-reverse",fill:"currentColor",className:"cBuilderSvg__marker",markerUnits:"strokeWidth",children:T.jsx("path",{d:"M 0 0 L 10 5 L 0 10 Z"})}),T.jsx("clipPath",{id:`main_clip_${r}`,clipPathUnits:"userSpaceOnUse",children:T.jsx("rect",{x:5,y:5,width:90,height:90,rx:11.75})}),T.jsx("clipPath",{id:`clip1_${r}`,clipPathUnits:"userSpaceOnUse",children:T.jsx("path",{d:"M 0 0 L 25 0 L 25 100 L 0 100 Z"})}),T.jsx("clipPath",{id:`clip2_${r}`,clipPathUnits:"userSpaceOnUse",children:T.jsx("path",{d:"M72.5 0 L 97.5 0 L 97.5 100 L 72.5 100 Z"})}),T.jsx("clipPath",{id:`clip3_${r}`,clipPathUnits:"userSpaceOnUse",children:T.jsx("path",{d:"M75 25 L 80 25 A 5 5 0 0 0 85 30 L 85 80 A 5 5 0 0 0 80 85 L 30 85 A 5 5 0 0 0 25 80 L 25 75 L 70 75 A 5 5 0 0 0 75 70 Z"})}),T.jsx("clipPath",{id:`clip4_${r}`,clipPathUnits:"userSpaceOnUse",children:T.jsx("rect",{x:20,y:70,width:60,height:15,rx:5})})]}),T.jsx("g",{transform:l?void 0:`rotate(${o?"-":""}90)`,x:0,y:0,width:100,height:100,children:T.jsxs("g",{transform:l?void 0:`scale(${s?"1,-1":"1,1"})`,x:0,y:0,width:100,height:100,children:[T.jsx("rect",{width:95,height:95,x:2.5,y:2.5,rx:15,fill:"none",stroke:"none",strokeWidth:5,"data-role":"background"}),T.jsxs("g",{id:"mainarea",clipPath:`url(#main_clip_${r})`,children:[e.map((x,k)=>T.jsx("rect",{fill:"currentColor",rx:5,...x},k)),t.map(x=>T.jsx("path",{d:"M "+(x instanceof Array?x:x.points).map(({x:k,y:O})=>`${k} ${O}`).join(" L "),rx:20,fill:"none",strokeWidth:6,stroke:"currentColor",strokeLinejoin:"round",markerStart:["both","start"].includes(x.marker)?`url(#arrow_${r})`:void 0,markerEnd:["both","end",void 0].includes(x.marker)?`url(#arrow_${r})`:void 0,className:"cBuilderSvg__arrow"},JSON.stringify(x))),c.map(x=>T.jsx("path",{d:"M "+(x instanceof Array?x:x.points).map(({x:k,y:O})=>`${k} ${O}`).join(" L "),rx:20,fill:"none",strokeWidth:6,stroke:"currentColor",strokeLinejoin:"round",className:x.className||void 0},JSON.stringify(x))),f]}),T.jsx("rect",{width:95,height:95,x:2.5,y:2.5,rx:15,fill:"none",stroke:"currentColor",strokeWidth:5,"data-role":"outerborder"})]})})]})}function Yk({pattern:e="start",horizontal:t=!0,...r}){const o=[{width:60},{width:80},{width:40}].map((s,c)=>({...s,height:23.4,className:"cBuilderSvg__box--outlined",y:5+90*c/3+1.3+2,x:(()=>e==="end"?97.5-s.width:e==="center"?50-s.width/2:2.5)()}));return T.jsx(ur,{blocks:o,rotate:t,...r})}function cn({...e}){return e.className=[e.className||"","cBuilderSvg__image-icon"].join(" ").trim().replace(/\s+/," "),T.jsxs("svg",{...e,viewBox:"0 0 90 90",children:[T.jsx("rect",{x:0,y:0,className:"cBuilderSvg__box--secondaryColoring",width:90,height:90,rx:10,fill:"currentColor"}),T.jsx("path",{d:"M4 86 L 25 28 L 55 68 L 69 50 L 84 86Z",stroke:"currentColor",strokeWidth:"6",fill:"currentColor",strokeLinejoin:"round"}),T.jsx("circle",{r:"10",cx:"70",cy:"20",fill:"currentColor",stroke:"currentColor"})]})}const _l=[[{x:35,y:84},{x:16,y:84}],[{x:65,y:84},{x:84,y:84}]];function Zk({behavior:e="wrap",horizontal:t=!1,...r}){r.className=r.className||"",r.className+=" cBuilderSvg--wrap-icon";const l=[],o=[],s=[];let c=4,f=c,d=[57,31],m,y,w,x,k,O;switch(e){case"carousel":l.push({width:15,height:40,x:0,y:20,className:"cBuilderSvg__box--outlined"}),l.push({width:66,height:60,x:17,y:10,className:"cBuilderSvg__box--outlined"}),l.push({width:15,height:40,x:85,y:20,className:"cBuilderSvg__box--outlined"}),l.push({height:3,width:40,y:25,x:22,rx:0}),l.push({height:3,width:30,y:32,x:22,rx:0}),l.push({height:3,width:52,y:39,x:22,rx:0}),l.push({height:3,width:22,y:46,x:22,rx:0}),o.push([{x:35,y:84},{x:16,y:84}]),o.push([{x:65,y:84},{x:84,y:84}]);break;case"table":case"table-carousel":c=1.3,w=e==="table-carousel"?78:70,x=e==="table-carousel"?11:15,m=e==="table-carousel"?20:0,y=e==="table-carousel"?1:3;for(let I=0;I<y;I++)l.push({height:85/3-4-2*c,width:w,y:7.5+85*I/3+c+2+m,x,className:"cBuilderSvg__box--outlined"});e==="table-carousel"&&o.splice(0,0,..._l.map(I=>I.map(P=>({x:P.x,y:P.y-15}))));break;case"mini-grid":case"grid-carousel":case"mini-grid-carousel":case"grid":k=e.startsWith("mini")?3:2,y=e.startsWith("mini")?3:2,O=88,m=e==="grid-carousel"?7:0,e.startsWith("mini")&&(f=10,c=5),e==="grid-carousel"&&(y=1,k=3),e.endsWith("carousel")&&(O=e.startsWith("mini")?68:54,o.splice(o.length,0,..._l.map(I=>I.map(P=>({x:P.x,y:P.y-5}))))),e==="mini-grid"&&(m=10,O=68),e==="mini-grid-carousel"&&(O=68*2/3,m=5,y=2);for(let I=0;I<y;I++)for(let P=0;P<k;P++)l.push({x:6+88*P/k+c,y:6+m+O*I/y+f,width:88/k-2*c,height:O/y-2*f,className:((I+P)%2,"cBuilderSvg__box--outlined")});break;case"center":return T.jsx(Yk,{horizontal:t,pattern:e,...r});case"columnLeft":case"columnRight":c=1.5,e==="columnLeft"&&(d=d.reverse());for(let I=0;I<3;I++)for(let P=0;P<d.length;P++)l.push({x:d.slice(0,P).reduce((v,_)=>v+_,8+c),y:6+88*I/3+c+1.5,width:d[P]-2*c-4,height:88/3-2*c-3,className:"cBuilderSvg__box--outlined"});break;case"image-grid":case"wallpaper":return T.jsxs(ur,{...r,rotate:!0,children:[T.jsx(cn,{x:12,y:12,width:35,height:35}),T.jsx(cn,{x:53,y:12,width:35,height:35}),T.jsx(cn,{x:12,y:53,width:35,height:35}),T.jsx(cn,{x:53,y:53,width:35,height:35})]});case"image-carousel":case"wallpaper-carousel":return o.splice(o.length,0,..._l),T.jsxs(ur,{...r,arrows:o,rotate:!0,children:[T.jsx(cn,{x:17,y:10,height:60,width:66}),T.jsx(cn,{x:-25,y:20,height:40,width:40}),T.jsx(cn,{x:85,y:20,height:40,width:40})]});case"featured":for(let I=0;I<2;I++)l.push({x:12,y:12+41*I,height:35,width:80}),l.push({width:37,height:6,x:51,y:16.5+41*I,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:18,height:3,x:52,y:26.5+41*I,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:28,height:3,x:52,y:34.5+41*I,className:"cBuilderSvg__box--secondaryColoring"});return T.jsxs(ur,{...r,blocks:l,rotate:!0,children:[T.jsx(cn,{x:12,y:12,height:35,width:35}),T.jsx(cn,{x:12,y:53,height:35,width:35})]});case"featured-carousel":return l.push({width:38,height:6,x:51,y:25,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:20,height:3,x:52,y:35,className:"cBuilderSvg__box--secondaryColoring"}),l.push({width:30,height:3,x:52,y:43,className:"cBuilderSvg__box--secondaryColoring"}),l.push({x:12,y:19.5,height:41,width:80}),T.jsx(ur,{...r,arrows:_l.map(I=>I.map(P=>({y:P.y-5,x:P.x}))),blocks:l,rotate:!0,children:T.jsx(cn,{x:12,y:22.5,height:35,width:35})});case"minimal":case"minimal-carousel":for(let I=20;I<=(e==="minimal"?80:60);I+=20)s.push({points:[{x:20,y:I},{x:80,y:I}],className:"cBuilderSvg__path"});e==="minimal-carousel"&&o.splice(o.length,0,..._l);break;default:l.push({x:4,y:7,width:53,height:100/3-10,className:"cBuilderSvg__box--outlined"}),l.push({x:63,y:7,width:34,height:100/3-10,className:"cBuilderSvg__box--outlined"}),l.push({x:0,y:100/3+3,width:17,height:100/3+2,className:"cBuilderSvg__box--outlined"}),l.push({x:23,y:100/3+3,width:49,height:100/3+2,className:"cBuilderSvg__box--outlined"}),l.push({x:78,y:100/3+3,width:22,height:100/3+2,className:"cBuilderSvg__box--outlined"}),l.push({x:4,y:2*100/3+12,width:43,height:100/3-18,className:"cBuilderSvg__box--outlined"}),l.push({x:53,y:2*100/3+12,width:44,height:100/3-18,className:"cBuilderSvg__box--outlined"})}return T.jsx(ur,{blocks:l,arrows:o,rotate:t,lines:s,flip:!0,...r})}function Xk({noGap:e=!1,horizontal:t=!0,...r}){const l=[{points:[{y:65,x:35},{y:65,x:65}],marker:"both"}],o=[{x:0,y:15,width:30,height:70,className:"cBuilderSvg__box--outlined"},{x:70,y:15,width:30,height:70,className:"cBuilderSvg__box--outlined"}],s=[];if(e){const c=t?"y":"x",f=t?"x":"y";s.push({points:[{[c]:10,[f]:10},{[c]:90,[f]:90}],className:"cBuilderSvg__path"})}return T.jsx(ur,{rotate:t,arrows:l,lines:s,blocks:o,...r,children:T.jsx("text",{x:38,y:50,height:18,fontSize:20,width:18,fontWeight:800,color:"currentColor",children:"px"})})}function kn({icon:e,horizontal:t=!1,children:r=[],...l}){if(l["data-icon-name"]=e,l.className=l.className||"",l.className+=` cBuilderSvg--${e}`,e in wr)return T.jsx(Zk,{...l,behavior:e,horizontal:t,children:r});if(["gap","nogap"].includes(e))return T.jsx(Xk,{...l,noGap:e==="nogap",horizontal:t,children:r});const o={blocks:[],arrows:[],lines:[],rotate:!!t,arrowId:Math.round(Math.random()*Math.pow(16,8)).toString(16)};switch(e){case"minSize":o.blocks.push({x:16,y:48,width:68,height:52,className:"cBuilderSvg__box--outlined"}),r.push(T.jsx("text",{x:39.5,y:23,height:21,fontSize:23,width:21,fontWeight:800,color:"currentColor",children:"px"})),r.push(T.jsx("path",{d:"M17, 44 Q17,34 27,34 L44,34 Q49,33 50, 27 Q51, 33 56,34 L73,34 Q83,34 83, 44",fill:"none",stroke:"currentColor",strokeWidth:4,strokeLinejoin:"miter",className:"cBuilderSvg__path"}));break;case"box":case"nobox":for(let w=0;w<18;w++)r.push(T.jsx("path",{d:`M${200*w/18-100}, 0 l 100, 100`,fill:"none",strokeWidth:"4px",stroke:"currentColor",clipPath:`url(#clip3_${o.arrowId})`}));r.push(T.jsx("rect",{x:15,y:15,width:60,height:60,rx:5,fill:"currentColor",className:"cBuilderSvg__box--outlined"})),o.rotate=!0;break;case"paddingInline":case"paddingBlock":e==="paddingBlock"&&(o.rotate=!o.rotate);for(let w=0;w<16;w++)r.push(T.jsx("path",{d:`M${200*w/16-100}, 0 l 100, 100`,fill:"none",strokeWidth:4,stroke:"currentColor",clipPath:`url(#clip1_${o.arrowId})`,className:"cBuilderSvg__path"}));for(let w=0;w<16;w++)r.push(T.jsx("path",{d:`M${200*w/16-100}, 0 l 100, 100`,fill:"none",strokeWidth:4,stroke:"currentColor",clipPath:`url(#clip2_${o.arrowId})`,className:"cBuilderSvg__path"}));for(let w=0;w<2;w++)for(let x=0;x<2;x++)o.blocks.push({x:27.5+x*25,y:25+30*w,width:20,height:20,className:"cBuilderSvg__box--outlined"});break;case"interval":case"nointerval":const s=30,c=(s-5)/Math.cos(30*Math.PI/180),f=Math.PI*320/180,d=50+s*Math.cos(f),m=50-Math.abs(s*Math.sin(f)),y=2;r.push(T.jsx("path",{d:`M40 ${(100-c)/2} L 40 ${c+(100-c)/2} L 65 50 Z`,strokeLinejoin:"round",strokeWidth:6,stroke:"currentColor",fill:"currentColor",className:"cBuilderSvg__solid"})),r.push(T.jsx("path",{d:`M${s+50} 50 A ${s} ${s} 0 1 1 ${d} ${m} L ${d-Math.tan(f+-5*Math.PI/180)*y} ${m-y/Math.tan(f+-5*Math.PI/180)}`,fill:"none",stroke:"currentColor",strokeWidth:8,className:"cBuilderSvg__path",markerEnd:`url(#arrow_${o.arrowId})`}));break;case"noimages":case"images":r.push(T.jsx(cn,{x:20,y:20,width:60,height:60}));break;default:throw new RangeError(`The icon ${e} is not recognized`)}return["noimages","nogap","nointerval","nobox"].includes(e)&&r.push(T.jsx("path",{d:"M15,15 L85,85",fill:"none",stroke:"currentColor",strokeWidth:6,strokeLinecap:"round",className:"cBuilderSvg__path"})),T.jsx(ur,{...l,...o,children:r.map((s,c)=>T.jsx("g",{children:s},c))})}document.addEventListener("click",e=>{var l;const t=new WeakSet;let r=e.target.parentElement;for(;r instanceof Element;)t.add(r),r=r.parentElement;for(const[o,s]of hf.entries()){const c=o.current;c instanceof Element&&!t.has(c)&&c.classList.contains("cWidgetContainer__menu_dropout--open")&&(e.stopPropagation(),(l=e.stopImmediatePropagation)==null||l.call(e),s())}});const hf=new Map;function Jk(e,t,r){X.useMemo(()=>{t?hf.set(e,()=>r(!1)):hf.delete(e)},[t,r,e])}function bk(e,t){X.useEffect(()=>{if(t&&e.current){const r=e.current.querySelector(".cWidgetContainer__other_children");if(r){const l=e.current.getBoundingClientRect();let o=r.getBoundingClientRect();r.style.left=`${(o.width-l.width)/-2}px`,o=r.getBoundingClientRect(),o.left<10&&(r.style.left=`${(o.width-l.width)/-2+10-o.left}px`)}}},[t])}function e3({children:e=[],direction:t="right",className:r,hidden:l=!1,...o},s){const[c,f]=X.useState(!1),d=X.useRef(null);Jk(d,c,f),bk(d,c),X.useImperativeHandle(s,()=>d.current);const m=[],y=[];let w;e.forEach(k=>{Array.isArray(k)?k[2]?w=k[0]:(k[1]?y:m).push(k[0]):m.push(k)}),e=m;const x=w||e[0];return T.jsxs("div",{className:`cWidgetContainer__menu_dropout cWidgetContainer__menu_dropout--${t} ${r||""}${c?"cWidgetContainer__menu_dropout--open":""}`,...o,hidden:l||!x,ref:d,onClick:k=>{var O,I;(I=(O=k.target)==null?void 0:O.closest)!=null&&I.call(O,".cWidgetContainer__other_children")||setTimeout(()=>f(!c))},children:[y,x,T.jsx("div",{className:"cWidgetContainer__other_children","data-role":`${e.length?"otherChildren":"emptyPlaceholder"}`,style:void 0,children:e})]})}const t3=X.forwardRef(e3);function n3({list:e=[],field:t,onChange:r,children:l=[],root:o,hideWhenEmpty:s=!1,...c},f){let d={};if(s&&(!l.length&&!e.length||l.length+e.length<=1))return T.jsx(T.Fragment,{});if(e.length&&!Array.isArray(e[0])){let y=[];for(const w of e)y.push([w,w]);e=y}const m=e.map(([y,w,x={}])=>T.jsx("button",{type:"button",className:"cWidgetContainer__menu-icon",onClick:k=>{y!==e[0]?r(y):(k.stopPropagation(),k.preventDefault())},title:t&&window.ips.haveString(`core_pagebuilder_${t}__${y}`)?window.ips.getString(`core_pagebuilder_${t}__${y}`):y,...x,children:w},y));return m.splice(0,0,[T.jsx("div",{hidden:!d.title,children:T.jsx("i",{...d,className:"fa-solid fa-info-circle ipsTitle--h4",style:{position:"absolute",backgroundColor:"#fff",borderRadius:"50%",zIndex:"3",marginTop:"37px",marginLeft:"3px",padding:"2px"}})},`info_${e.length}`),!0]),o&&m.splice(1,0,[T.jsx("span",{children:o},"menudropout_label"),!1,!0]),l&&!(Symbol.iterator in l)?l=[l]:l||(l=[]),T.jsx(t3,{...c,ref:f,children:[...m,...l]})}const ji=X.forwardRef(n3);function r3({wrapBehavior:e,onChange:t,allowedBehaviors:r,menuOptions:l,getParent:o,otherOptions:s,widgets:c}){const f=X.useRef(null),d=X.useRef(null),m=r.includes(e)?e:r[0],y=m in Xe&&r.includes(Xe[m])?Xe[m]:m,w=()=>{d.current&&f.current&&(f.current.querySelectorAll(`.cWidgetContainer__other_children [data-active][data-value]:not([data-value='${d.current}'])`).forEach(x=>x.removeAttribute("data-active")),f.current.querySelectorAll(`.cWidgetContainer__other_children [data-value='${d.current}']`).forEach(x=>x.setAttribute("data-active","")))};return X.useEffect(w),T.jsxs(ji,{ref:f,list:r.filter(x=>!(x in Xe)).map(x=>[x,T.jsxs(T.Fragment,{children:[T.jsx(kn,{icon:x,horizontal:!0}),T.jsx("p",{children:window.ips.getString(`core_pagebuilder_wrap__${x}`)})]}),{"data-active":x===y||y!=null&&y.endsWith("-carousel")&&Xe[y]===x?"":void 0,"data-value":x}]),root:T.jsx(kn,{icon:y||"wrap",horizontal:!0}),"data-role":"wrapBehavior",field:"wrap",onChange:x=>{let k=x;if(m in Xe&&x in yr&&r.includes(yr[x])&&(x=yr[x]),d.current=k,x===e){w();return}t({newState:{wrapBehavior:x},reloadWidget:!0})},hidden:!l.has("wrap"),title:window.ips.getString("core_pagebuilder_wrapBehavior"),children:[T.jsx(i3,{wrapBehavior:m,allowedBehaviors:r,onChange:t,getParent:o}),T.jsx(l3,{otherOptions:s,widgets:c,onChange:t,wrapBehavior:e})]})}function i3({wrapBehavior:e,allowedBehaviors:t,onChange:r,getParent:l}){var y;const o=X.useRef(null),s=((y=l==null?void 0:l())==null?void 0:y.wrapBehavior)==="carousel";X.useEffect(()=>{if(!o.current)return;const w=window.$(o.current.parentElement);window.ips.cleanContentsOf(w),s&&window.$(document).trigger("contentChange",[w])});let c=e in Xe?e:yr[e];if((c===void 0||!t.includes(c))&&(c=t.find(w=>w in Xe)),!c)return o.current=null,T.jsx(T.Fragment,{});let f=!1;const d=()=>{if(f)return;f=!0;let w;t.includes(Xe[e])?w=Xe[e]:t.includes(yr[e])?w=yr[e]:e in Xe?w=t.find(x=>!(x in Xe))||e:w=c,r({newState:{wrapBehavior:w},reloadWidget:!0})},m=e in Xe;return T.jsxs("button",{ref:o,disabled:s,"data-ipstooltip":s?"":void 0,title:s?window.ips.getString("core_pagebuilder_wrap__nested-carousel-info"):window.ips.getString("core_pagebuilder_wrap__toggle-carousel"),className:"cWidgetContainer__menu-icon cWidgetContainer__menu-icon--carousel-toggle",onClick:w=>{w.preventDefault(),!s&&d()},children:[T.jsx(kn,{icon:c,horizontal:!0}),T.jsx("p",{children:window.ips.getString("core_pagebuilder_wrap__toggle-carousel")}),T.jsx("span",{"data-checked":m?"":void 0,className:"cWidgetContainer__menu-checkbox"})]})}function l3({wrapBehavior:e,otherOptions:t,onChange:r,widgets:l}){if(!l.length)return T.jsx(T.Fragment,{});const o=!t.showImages,s=!Sv.has(e);return T.jsxs("button",{disabled:s,className:"cWidgetContainer__menu-icon cWidgetContainer__menu-icon--images-toggle",onClick:s?void 0:c=>{c.preventDefault(),r({newState:{otherOptions:{showImages:!t.showImages}}})},children:[T.jsx(kn,{icon:"noimages",horizontal:!0}),T.jsx("p",{children:window.ips.getString("core_pagebuilder_wrap__hide-images")}),T.jsx("span",{"data-checked":o?"":void 0,className:"cWidgetContainer__menu-checkbox"})]})}function uo({value:e,onChange:t,onInput:r,interval:l=2e3,formatter:o,name:s,min:c,max:f,step:d=1,...m}){const[y,w]=X.useState(e),x=X.useMemo(()=>Qn.debounce(t,l),[t,l]),k=async(...O)=>x(...O);return T.jsxs("div",{"data-role":`${s}rangecontainer`,className:"rangecontainer",children:[T.jsx("label",{"data-role":`${s}display`,disabled:m.disabled,children:o instanceof Function?o(y):y}),T.jsx("input",{type:"range",min:c,max:f,step:d,defaultValue:e,onInput:O=>{O.stopPropagation(),w(parseFloat(O.target.value)),r==null||r(parseFloat(O.target.value)),k(parseFloat(O.target.value))},...m})]})}function o3({menuOptions:e,otherOptions:t,onChange:r,areaId:l}){return T.jsxs(ji,{hidden:!e.has("carousel"),"data-role":"area-carousel_interval",title:window.ips.getString("core_pagebuilder_area-carousel_interval"),root:T.jsx(kn,{icon:t.interval?"interval":"nointerval",horizontal:!0}),children:[T.jsxs("div",{children:[T.jsx("label",{htmlFor:`area_option_has_interval${l}`,children:window.ips.getString("core_pagebuilder_area-autoplay")}),T.jsx("input",{id:`area_option_has_interval${l}`,type:"checkbox",checked:!!(t.interval&&t.interval>=1),onChange:()=>r({newState:{otherOptions:{interval:t.interval?void 0:5}}})})]}),T.jsx(uo,{name:"carousel_interval",value:t.interval||5,onChange:o=>{r({newState:{otherOptions:{interval:Math.round(o)}},reloadWidget:!0})},formatter:o=>`Every ${o} second${o===1?"":"s"}`,onInput:o=>{o=Math.round(o),t.interval=o},min:2,max:10,step:1,disabled:!t.interval||t.interval<=1})]})}function u3({menuOptions:e,otherOptions:t,onChange:r,widgets:l,areaRef:o}){return T.jsx(ji,{hidden:!e.has("gap"),"data-role":"area-gaps",title:window.ips.getString("core_pagebuilder_area-gap_size"),root:T.jsx(kn,{icon:(t.gapSize,"gap"),horizontal:!0}),children:T.jsx(uo,{name:"gap_size",value:t.gapSize||20,formatter:s=>T.jsxs(T.Fragment,{children:[s,"px"]}),onChange:s=>{r({newState:{otherOptions:{gapSize:Math.round(s)}}})},min:0,max:50,onInput:s=>{s=Math.round(s),t.gapSize=s,o.current instanceof HTMLElement&&(l.length?o.current.style.setProperty("--i-widget--gap",`${s}px`):o.current.style.setProperty("--i-block--gap",`${s}px`),o.current.dataset.widgetGapSize=`${s}`)}})})}function s3({otherOptions:e,wrapBehavior:t,areaId:r,areaRef:l,onChange:o,widgets:s,menuOptions:c}){const f=!Number.isNaN(e.minSize)&&e.minSize?e.minSize:300;return T.jsxs(ji,{hidden:!c.has("min_size"),title:window.ips.getString("core_pagebuilder_area-min_size"),"data-role":"area-min_size",root:T.jsx(kn,{icon:"minSize",horizontal:!0}),children:[T.jsxs("div",{hidden:!t.match(/carousel$/i),children:[T.jsx("label",{htmlFor:`area_option_full_width_items${r}`,children:window.ips.getString("core_pagebuilder_area-full_width")}),T.jsx("input",{id:`area_option_full_width_items${r}`,type:"checkbox",value:e.fullWidthItems?1:0,checked:!!e.fullWidthItems,onChange:()=>o({newState:{otherOptions:{fullWidthItems:!e.fullWidthItems,minSize:f}}})})]}),T.jsx(uo,{disabled:t.match(/carousel$/i)&&!!e.fullWidthItems,name:"min_size",value:f,onChange:d=>{o({newState:{otherOptions:{minSize:Math.round(d)}}})},formatter:d=>`${d}px`,onInput:d=>{d=Math.round(d),e.minSize=d,l.current instanceof HTMLElement&&(s.length?l.current.style.setProperty("--i-widget--size",`${d}px`):l.current.style.setProperty("--i-block--size",`${d}px`),l.current.dataset.widgetMinSize=`${d}`)},min:250,max:900,step:5})]})}function a3({otherOptions:e,onChange:t,menuOptions:r,areaRef:l,widgets:o}){return T.jsx(ji,{title:window.ips.getString("core_pagebuilder_area-padding_block"),"data-role":"area-padding_block",hidden:!r.has("padding_block"),root:T.jsx(kn,{icon:"paddingBlock",horizontal:!0}),children:T.jsx(uo,{name:"padding_block",value:e.paddingBlock||0,onChange:s=>t({newState:{otherOptions:{...e,paddingBlock:Math.round(s)}}}),formatter:s=>`${s}px`,onInput:s=>{s=Math.round(s),e.paddingBlock=s,l.current instanceof HTMLElement&&(o.length?l.current.style.setProperty("--i-widget--padding-block",`${s}`):l.current.style.setProperty("--i-block--padding-block",`${s}`),l.current.dataset.widgetPaddingBlock=`${s}`)},min:0,max:50,step:1})})}function c3({otherOptions:e,onChange:t,widgets:r,menuOptions:l,areaRef:o}){return T.jsx(ji,{title:window.ips.getString("core_pagebuilder_area-padding_inline"),"data-role":"area-padding_inline",root:T.jsx(kn,{icon:"paddingInline",horizontal:!0}),hidden:!l.has("padding_inline"),children:T.jsx(uo,{name:"padding_inline",value:e.paddingInline||0,onChange:s=>t({newState:{otherOptions:{...e,paddingInline:Math.round(s)}}}),formatter:s=>`${s}px`,onInput:s=>{s=Math.round(s),e.paddingInline=s,o.current instanceof HTMLElement&&(r.length?o.current.style.setProperty("--i-widget--padding-inline",`${s}`):o.current.style.setProperty("--i-block--padding-inline",`${s}`),o.current.dataset.widgetPaddingInline=`${s}`)},min:0,max:50,step:1})})}function f3({menuOptions:e}){return T.jsx("div",{hidden:!!e.size,className:"cBuilderMenuText",children:window.ips.getString("core_pagebuilder_area-no_options")})}function d3({moveUp:e,moveDown:t,menuOptions:r}){return T.jsxs(T.Fragment,{children:[T.jsx("button",{className:"cWidgetContainer__menu_item cWidgetContainer__menu_item--reposition",hidden:!(r!=null&&r.has("reposition")),type:"button","data-role":"moveup",disabled:!(e instanceof Function),"data-ipstooltip":"",title:window.ips.getString("core_pagebuilder_area-move-up"),onClick:()=>{e==null||e()},children:T.jsx("i",{className:"fa-solid fa-chevron-up"})}),T.jsx("button",{className:"cWidgetContainer__menu_item cWidgetContainer__menu_item--reposition",hidden:!(r!=null&&r.has("reposition")),type:"button",disabled:!(t instanceof Function),"data-ipstooltip":"",title:window.ips.getString("core_pagebuilder_area-move-down"),onClick:()=>{t==null||t()},"data-role":"movedown",children:T.jsx("i",{className:"fa-solid fa-chevron-down"})})]})}const p3=X.forwardRef(function(t,r){var B,b;let{editing:l,setEditing:o,getParent:s,isLeaf:c=!1,onChange:f,wrapBehavior:d="wrap",otherOptions:m,widgets:y,menuRef:w,depth:x}=t;const k=X.useRef(l),O=X.useRef(0),I=({newState:H,...ee})=>{H.otherOptions&&Object.assign(m,H.otherOptions),H.otherOptions={...m},d=H.wrapBehavior||d,f({newState:H,...ee})},P=X.useRef();X.useEffect(()=>{var H,ee,ve,ie,ce,se,$e;if(!l&&m.shouldBeEditing){delete m.shouldBeEditing,document.body.dispatchEvent(new is(r.current)),o(!0);return}if(delete m.shouldBeEditing,P.current&&document.body.removeEventListener("click",P.current),P.current=le=>{l&&!Object.is(le.root,r.current)&&o(!1)},document.body.addEventListener("ips.widgetAreaMenuOpened",P.current),l&&!k.current)O.current=0,(ve=(ee=(H=r.current)==null?void 0:H.querySelectorAll)==null?void 0:ee.call(H,".cWidgetContainer__menu_dropout"))==null||ve.forEach(le=>{var Q,G;(Q=le.classList)==null||Q.add("dropoutNoShow"),(G=le.querySelector('[data-role="otherChildren"]'))==null||G.setAttribute("hidden","true");const $=Qn.debounce(()=>{var Z,we,He;O.current++>1&&((He=(we=(Z=r.current)==null?void 0:Z.querySelectorAll)==null?void 0:we.call(Z,".cWidgetContainer__menu_dropout"))==null||He.forEach(Ee=>{Ee.removeEventListener("mousemove",$),Ee.classList.remove("dropoutNoShow")}))},50);setTimeout(()=>{var Z;(Z=le.querySelector('[data-role="otherChildren"]'))==null||Z.removeAttribute("hidden"),le.addEventListener("mousemove",$)},750)}),(ie=r.current)==null||ie.animate(r0,{duration:140,easing:"ease-in-out"});else if(!l&&k.current){const le=(ce=r.current)==null?void 0:ce.querySelector(":scope > .cWidgetContainer__menu");le instanceof Element&&((se=r.current.querySelector(":scope > button"))==null||se.setAttribute("hidden","true"),le.removeAttribute("hidden"),($e=r.current)==null||$e.animate(r0.reverse(),{duration:140}),setTimeout(()=>{var $;k.current||(c&&(($=r.current.querySelector(":scope > button"))==null||$.removeAttribute("hidden")),le.setAttribute("hidden","true"))},100))}k.current=l});const v=((B=t.otherOptions)==null?void 0:B.area)==="sidebar",_=!(v&&!y.length)&&(!y.length||["1","true"].includes((b=xr(y[0].blockID))==null?void 0:b.dataset.widgetCustomizable))&&!(v&&t.depth>1),C=y.length&&hd(y[0].blockID),M=H=>!(!c&&dd.has(H)||C!=null&&C.size&&!(C!=null&&C.has(H))),z=_?[...Object.keys(wr)].filter(M):[],U=h3({allowedBehaviors:z,customizable:_,wrapBehavior:d,widgets:y,isSidebar:v,getParent:s,depth:x}),A={otherOptions:m,wrapBehavior:d,onChange:I,menuOptions:U,widgets:y,getParent:s,areaId:t.areaId,areaRef:t.areaRef,depth:x,moveUp:t.moveUp,moveDown:t.moveDown};return T.jsx("div",{className:"cWidgetContainer__menu_region",ref:r,children:cd.createPortal(T.jsxs("form",{ref:w,"data-current":l?"yes":"no",hidden:!l,"data-role":"widgetAreaConfigForm",className:`cWidgetContainer__menu ${l?"ipsMenu":""} ${U.size?"":"cWidgetContainer__menu--empty"}`,onSubmit:H=>{H.preventDefault(),H.stopPropagation(),window.Debug.warn("Closing a widget area form because it was submitted; these forms should never be submitted"),o(!1)},children:[T.jsx(r3,{...A,allowedBehaviors:z}),T.jsx(o3,{...A}),T.jsx(u3,{...A}),T.jsx(s3,{...A}),T.jsx(a3,{...A}),T.jsx(c3,{...A}),T.jsx(f3,{menuOptions:U}),T.jsx(d3,{...A})]}),document.body,"area_menu")})});function h3({customizable:e,allowedBehaviors:t,wrapBehavior:r,widgets:l,isSidebar:o,getParent:s,depth:c}){var d,m;const f=new Set;return e&&t.length>1&&f.add("wrap"),e&&r.match(/carousel$/)&&((d=s())==null?void 0:d.wrapBehavior)!=="carousel"&&f.add("carousel"),r!=="carousel"&&!(l.length&&pd.has(r))&&e&&f.add("gap"),!o&&!_v.has(r)&&(e||!l.length)&&f.add("min_size"),!o&&!(l.length&&!x3(l[0].blockID))&&(f.add("padding_block"),r.match(/carousel$/)||f.add("padding_inline")),c===1&&((m=s())==null?void 0:m.children.length)>1&&f.add("reposition"),f}class is extends Event{constructor(t){super("ips.widgetAreaMenuOpened"),this.root=t}}const r0=[{transform:"scaleY(0)",transformOrigin:"top"},{transform:"scaleY(1)",transformOrigin:"top"}],Yr=X.createContext({area:void 0}),xv=/^(?:ipsHide|cWidgetContainer(?:--.+)?)$/;function Cv(e,t=null){const r={orientation:kv(e)?"horizontal":"vertical",children:[],wrapBehavior:"wrap",otherOptions:{},widgets:[]};if(t!=null&&t.orientation&&(r.orientation=t.orientation==="vertical"?"horizontal":"vertical"),e.dataset.widgetLayout in wr)r.wrapBehavior=e.dataset.widgetLayout;else for(const o in wr)if(e.classList.contains(wr[o])){r.wrapBehavior=o;break}r.areaClasses=[];for(const o of e.classList)xv.test(o)||r.areaClasses.push(o);for(const o in e.dataset)if(o.match(/^widget[A-Z0-9_]+$/i)){const s=o.match(/^(?:widget)+([A-Z0-9_]+)$/i)[1].replace(/^(.)/i,(c,f)=>f.toLowerCase());r.otherOptions[s]=e.dataset[o]}delete r.otherOptions.shouldBeEditing,e.querySelectorAll('[data-controller="core.front.widgets.area"],[data-controller="core.front.widgets.block"]').forEach(o=>{delete o.dataset.dataController});for(const o of e.querySelectorAll(":scope > .cWidgetContainer"))r.children.push(Cv(o,r));let l=[];for(const o of e.querySelectorAll(":scope > .ipsWidget__content--wrap > :is(.ipsWidget, [data-blocktitle], [data-blockid])"))l.push({title:o.dataset.blocktitle,blockID:o.dataset.blockid,config:!!o.dataset.blockconfig,blank:!!o.querySelector(":scope > .ipsWidgetBlank"),contentRaw:[...o.querySelectorAll(":scope > :not(.ipsWidgetBlank,.cSidebarBlock_managing)")].map(s=>s.outerHTML).join("")});return l.length<2?r.widgets=l:r.children=l.map(o=>({orientation:r.orientation==="horizontal"?"vertical":"horizontal",areaClasses:[],children:[],wrapBehavior:r.wrapBehavior,otherOptions:{},widgets:[o]})),r}function ls(e,t=null,r=[],l=0,o=void 0){var c;t!==null&&(e.orientation=t==="horizontal"?"vertical":"horizontal"),delete e.otherOptions.layout,!o&&l===0&&((c=e.otherOptions)!=null&&c.area)?o=e.otherOptions.area:o&&(e.otherOptions=e.otherOptions||{},e.otherOptions.area=o,o==="sidebar"&&l===1&&e.children.length&&!["carousel"].includes(e.wrapBehavior)&&(e.wrapBehavior="carousel")),e.areaClasses=(e.areaClasses instanceof Array?e.areaClasses:[]).filter(f=>typeof f=="string"&&!xv.test(f));for(const[f,d]of Object.entries({gapSize:20,areaId:void 0}))(typeof e.otherOptions[f]!="number"||Number.isNaN(e.otherOptions[f]))&&(e.otherOptions[f]=typeof e.otherOptions[f]=="string"?Number(e.otherOptions[f]):void 0,Number.isNaN(e.otherOptions[f])&&d!==void 0&&(e.otherOptions[f]=d));for(const[f,d]of Object.entries({fullWidthItems:!1,showImages:!0}))typeof e.otherOptions[f]!="boolean"&&(f in e.otherOptions?e.otherOptions[f]=!["0","false",""].includes(e.otherOptions[f]):e.otherOptions[f]=d);for(let f=0;f<e.children.length;f++){let d=e.children[f];for(d.children=d.children.filter(m=>!r.includes(m.areaId)&&(m.children.length||m.widgets.length));d.children.length===1&&!r.includes(d.areaId);)d=d.children[0],d.children=d.children.filter(m=>!r.includes(m.areaId)&&(m.children.length||m.widgets.length));if(r.includes(d.areaId)||d.children.length===0&&d.widgets.length===0)e.children.splice(f--,1);else if(d.children.length===1||d.children.length&&d.orientation===e.orientation){const m=d.children.filter(y=>!r.includes(y.areaId)&&(y.children.length||y.widgets.length)).map(y=>ls(y,e.orientation,r,l+1));e.children.splice(f--,1,...m),f+=m.length}else e.children.splice(f,1,ls(d,e.orientation,r,l+1,o))}if(l>=fd&&e.children.length){const f=[];for(const d of e.children)f.splice(f.length,0,...d.widgets);e.children=[]}const s=new Set;if(e.children=e.children.filter(f=>f.widgets.length&&s.has(f.widgets[0].blockID)?!1:!!(!f.widgets.length||s.add(f.widgets[0].blockID)||!0)),!e.widgets.length&&dd.has(e.wrapBehavior)&&(e.wrapBehavior="wrap"),"gapSize"in e.otherOptions||(e.widgets.length&&pd.has(e.wrapBehavior)?e.otherOptions.gapSize=0:e.otherOptions.gapSize=20),delete e.otherOptions.hasGaps,e.widgets.length){const f=hd(e.widgets[0].blockID);f.size&&!f.has(e.wrapBehavior)?e.wrapBehavior=f.values().next().value:!f.size&&!pf.has(e.wrapBehavior)&&(e.wrapBehavior="table")}else if(e.wrapBehavior==="carousel"&&e.children.length)for(const f of e.children)f.wrapBehavior in Xe&&(f.wrapBehavior=Xe[f.wrapBehavior],f.widgets.length&&(f.widgets[0].blank=!0,f.widgets[0].contentRaw=`<div class="ipsLoading">${f.widgets[0].contentRaw||""}</div>`));return e.children.length&&(delete e.otherOptions.showImages,e.areaClasses=[]),Ev(e),e}function Ev(e,t={current:0}){e.otherOptions=e.otherOptions||{},e.areaId=e.otherOptions.areaId=t.current++;for(const r of e.children)Ev(r,t)}function kv(e){if(!(e instanceof Element))return!1;for(const t of["stack","accordion","main"])if(e.classList.contains(`cWidgetContainer--${t}`))return!1;return!0}function Lv(e,t,r){var x,k,O,I;const l=kv(e.closest(".cWidgetContainer")),o=Sl(e.getBoundingClientRect()),s=((x=e.lastElementChild)==null?void 0:x.getBoundingClientRect())||o,c=Math.min(45,window.innerHeight/10,Math.max(15,(l?s.height:s.width)*.15));if((k=e.parentElement)!=null&&k.closest(".cWidgetContainer")&&(l&&r<o.top+c||!l&&t<o.left+c))return"before";if((O=e.parentElement)!=null&&O.closest(".cWidgetContainer")&&(l&&r>o.bottom-c||!l&&t>o.right-c))return"after";const f=[...e.querySelectorAll(":scope > :is(.cWidgetContainer__accordionWrapper, .cWidgetContainer)")];if(!f.length){if(e.querySelector(".ipsWidget__content--wrap")){const v=(e.querySelector(".ipsWidget__content--wrap .cSidebarBlock_managing")||e.querySelector(".ipsWidget__content--wrap")).getBoundingClientRect(),_=l?"x":"y",C=l?"right":"bottom",M=(v[_]+v[C])/2;return{x:t,y:r}[_]>M?1:0}return 0}let d={left:void 0,top:void 0,height:0,width:0},m=0,y,w;for(y=0;y<f.length;y++){if(f[y].hidden)continue;const P=Sl(f[y].getBoundingClientRect());if(g3(P,{x:t,y:r})){const v=(l?P.left+P.right:P.top+P.bottom)/2;return(l?t:r)>=v?y+1:y}if(d.left!==void 0&&d.top!==void 0&&w&&(l&&(P.left<=w.left||P.top+20>=d.top+d.height)||!l&&(P.top<=w.top+10||P.left+20>=d.left+d.width))){w=void 0,l?d.height=(d.height+Math.max(d.height,P.top-d.top))/2:d.width=(d.width+Math.max(d.width,P.right-d.right))/2;let v=Sl(new DOMRect(d.left,d.top,d.width,d.height));if(l&&v.top<=r&&v.bottom>=r||!l&&v.left<=t&&v.right>=t){y=Math.max(0,y-1);break}m=y,d={left:l?P.left:v.right,top:l?v.bottom:P.top,height:P.height,width:P.width}}(d.left===void 0||P.left<d.left)&&(d.left!==void 0&&(d.width+=d.left-P.left),d.left=P.left),P.right>d.left+d.width&&(d.width=P.right-d.left),(d.top===void 0||P.top<d.top)&&(d.top!==void 0&&(d.height+=d.top-P.top),d.top=P.top),P.bottom>d.top+d.height&&(d.height=P.bottom-d.top),w=P}if(l&&t<=d.left||!l&&r<=d.top)return m;if(l&&t>=d.left+d.width||!l&&r>=d.top+d.height)return y+1;for(let P=m;P<=y;P++){const v=Sl(f[P].getBoundingClientRect()),_=Sl((I=f[P+1])==null?void 0:I.getBoundingClientRect());if(P===y||!_){const C=(l?v.left+v.right:v.top+v.bottom)/2;return(l?t:r)>C?P+1:P}else if(l&&v.left<t&&(_.right+_.left)/2>t||!l&&v.top<r&&(_.bottom+_.top)/2>r)return l?t>(v.left+v.right)/2?P+1:P:r>(v.top+v.bottom)/2?P+1:P}return window.Debug.warn(new Error("Something went wrong when evaluating which child is being hovered over based on the client x and y position. A default value of the last element is returned so as to not break things, however this is a bug which may need further investigation.")),f.length}function Sl(e){if(e)for(const t of["width","height"])t in e&&isNaN(e[t])&&(e[t]=0);return e}const g3=(e,t)=>{if(t instanceof DOMRect){const r=t.left>=e.left&&t.right<=e.right,l=t.top>=e.top&&t.bottom<=e.bottom;return r&&l}else{const{x:r,y:l}=t;return r>=e.left&&r<=e.right&&l>=e.top&&l<=e.bottom}};async function m3(e,t){try{await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"POST",data:{...so(),do:"removeBlock",blockIDs:e,pageArea:t,area:t,pageApp:document.body.dataset.pageapp,pageModule:document.body.dataset.pagemodule,pageController:document.body.dataset.pagecontroller}})}catch(r){window.Debug.log("An error occurred when attempting to remove the block from the page"),window.Debug.error(r)}}function Iv(e){e=JSON.parse(JSON.stringify(e)),"areaId"in e&&(e.otherOptions=e.otherOptions||{},e.otherOptions.areaId=e.areaId);for(const t in e.widgets)delete e.widgets[t].contentRaw,delete e.widgets[t].blank;for(const t in e.children)e.children[t]=Iv(e.children[t]);return e}const yu={},di={};function Rv(e,t,r=!0){return new Promise(async l=>{if(yu[t]){if(r){di[t]&&await di[t](!1),di[t]=e instanceof Function?e:async o=>(l(o),e);return}e instanceof Function&&e(!1).then(()=>{}),l(!1);return}try{if(yu[t]=!0,e instanceof Function&&(e=await e(!0)),l(!0),await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"POST",data:{...so(),do:"saveWidgetTree",tree:JSON.stringify(Iv(e)),pageApp:document.body.dataset.pageapp,pageModule:document.body.dataset.pagemodule,pageController:document.body.dataset.pagecontroller,pageArea:t,area:t}}),yu[t]=!1,di[t]){let o=di[t];di[t]=null,Rv(o,t,!1).then(()=>{})}return}catch(o){yu[t]=!1,window.Debug.log("An error occurred when attempting to update the page tree"),window.Debug.error(o)}l(!1)})}function v3(){var e,t,r;return((t=(e=window.ips)==null?void 0:e.getSetting)==null?void 0:t.call(e,"pageID"))||((r=window.document.querySelector("#elCmsPageWrap"))==null?void 0:r.dataset.pageid)||""}function so(){const e=v3();return{app:e?"cms":"core",module:e?"pages":"system",controller:e?"builder":"widgets",pageID:e}}function w3(e,t){do{if(e===t)return!0;e=e.parentElement}while(e);return!1}function y3({blockID:e,setState:t,state:r,title:l,blockArea:o,reloadContent:s},c){const[f,d]=X.useState({}),[m,y]=X.useState(null),w=X.useRef(null),x=X.useRef(null),k=X.useRef(null),O=X.useRef(null);r==="editing"&&!O.current&&(O.current=document.createElement("div")),X.useEffect(()=>()=>{var v;r==="editing"&&((v=O.current)==null||v.remove(),O.current=null)},[r]);const I=_3();X.useEffect(()=>{if(r==="editing"&&c.current){const v=c.current.querySelector(":scope > .ipsWidget");v&&!v.querySelector(".ipsForm")&&f.element.parentElement!==v&&(v.innerHTML="",v.classList.add("ipsLoading"),v.appendChild(f.element),P(f.element),window.$(document).trigger("contentChange",[window.$(f.element),window.$(c.current.querySelector(".cSidebarBlock_managing"))]),v.classList.remove("ipsLoading")),k.current&&(k.current.storage.ipsInlineEditing.applyStickyStyles=!0)}w.current=r}),X.useEffect(()=>{},[I,e]);function P(v,_=!1){var M,z;const C=new Set;if(console.log("hiding stuff"),v.querySelectorAll(".ipsComposeArea_editor").forEach(U=>{let A=U.parentElement;for(;A&&A!==v;)A.querySelectorAll(":scope > *").forEach(B=>{_?(B.ipsShow(),C.add(B)):C.has(B)||B.ipsHide()}),A=A.parentElement;for(A=_?U.parentElement:U,_&&U.ipsHide();A&&A!==v;)C.add(A),A.style.display==="none"&&(A.style.display=""),A.ipsShow(),A=A.parentElement}),_){(M=v.querySelector("#ipsTabs_tabs_form_form_tab_settings_panel"))==null||M.ipsHide(),v.querySelectorAll('[id="form_tab_settings"]').forEach(A=>{A.parentElement.ipsHide()});const U=v.querySelectorAll('#tabs_form > ul[role="tablist"] > li:not([hidden]) a');U[0]&&(U[0].click(),U.length===1&&((z=U[0].closest("#tabs_form"))==null||z.ipsHide()))}else x.current&&!v.querySelector(".tiptap.ProseMirror")&&(c.current.style.height=x.current+"px",v.addEventListener("ips:editorAfterInit",U=>{var A;c.current&&setTimeout(()=>c.current.style.height="",100),k.current=((A=U.detail)==null?void 0:A.instance)||k.current},{once:!0}))}return{toolList:m,blockUsesInlineEditing:I,editForm:f,tiptapRef:k,toolListWrap:O,captureHeight(){x.current=c.current.getBoundingClientRect().height},async setEditing(){if(!(r!=="default"||!I)){if(!f.configId||!f.element){const v=`${window.ips.getSetting("baseURL")}index.php?${Object.entries(so()).map(([U,A])=>`${encodeURIComponent(U)}=${encodeURIComponent(A)}`).join("&")}&do=getConfiguration&block=${encodeURIComponent(e)}&pageApp=${encodeURIComponent(document.body.dataset.pageapp)}&pageModule=${encodeURIComponent(document.body.dataset.pagemodule)}&pageController=${encodeURIComponent(document.body.dataset.pagecontroller)}&pageArea=${encodeURIComponent(o)}&area=${encodeURIComponent(o)}`,_=window.ips.ui.dialog.create({title:l,forceReload:!1,content:'<div><div class="ipsLoading" style="width: 100%;height: 100%;"></div></div>',destructOnClose:!1,remoteSubmit:!1,remoteVerify:!1});t("loading");const C=await window.ips.fetch(v,{method:"GET"}),M=window.ips.uid(),z=document.createElement("div");z.setAttribute("data-ipsconfigform",M),z.innerHTML=C,z.querySelectorAll("form").forEach(U=>U.addEventListener("submit",A=>{var ce;A.preventDefault();const B=[...new FormData(U).entries()],b=Object.fromEntries(B),H=window.ips.ui.editorv5.getObj(c.current.querySelector("[data-ipseditorv5]")),ee=(H==null?void 0:H.getInstance())||k.current,ve=b.content||(ee==null?void 0:ee.getHTML());(ce=ee==null?void 0:ee.commands)==null||ce.resetStickyAncestorStyles(),H==null||H.destruct();try{window.ips.cleanContentsOf(z)}catch(se){window.Debug.warn(se)}k.current=null;const ie=ve!==void 0?c.current.querySelector(":scope > .ipsWidget").getBoundingClientRect():c.current.getBoundingClientRect();if(ve!==void 0){c.current.classList.remove("ipsWidget__content--wrap--editing");const se=c.current.querySelector(":scope > .ipsWidget");se&&(se.innerHTML=`
<div
class="ipsLoading"
style="width:${ie.width}px; height:${ie.height}px; position:static !important;"
>
<div class="ipsRichText ipsWidget__content ipsWidget__padding">
${ve}
</div>
</div>`)}else c.current.style.height=`${ie.height}px`,c.current.style.width=`${ie.width}px`;setTimeout(async()=>{let se;try{se=await window.ips.fetch(U.action,{data:b,method:"post",bypassRedirect:!0})}catch($e){window.Debug.error($e)}_.hide(),z.remove(),t("default"),d({}),s(se)},100)})),_.addContentProcessor(U=>{var b,H;const A=(b=z.parentElement)==null?void 0:b.getBoundingClientRect();if(A){const ee=z.parentElement;ee.style.width=A.width+"px",ee.style.height=A.height+"px";const ve=(H=U.closest(".ipsDialog"))==null?void 0:H.getAttribute("id");if(ve){const ie=(ce,{dialogID:se})=>{ve===se&&(ee.style.width="",ee.style.height="",ee.appendChild(z),P(z),window.$(document).off("hideDialog",ie))};window.$(document).on("hideDialog",ie)}}let B=z;for(;B;){if(B.parentElement===U)return;B=B.parentElement}U.innerHTML="",U.appendChild(z),P(z,!0)}),d({element:z,configId:M,dialogRef:_})}t("editing")}}}}function eo(e){return(e instanceof Element?e:document).querySelector("[data-ipsconfigform]")}function _3(e){return!1}function S3({blockID:e,title:t,config:r,update:l,defaultConfiguration:o,blank:s,getArea:c,contentRaw:f,selectArea:d},m){const[y,w]=X.useState("default"),x=X.useRef(null),k=H=>{y==="default"&&H==="editing"&&e.startsWith("app_cms_Wysiwyg")&&(_==null||_()),w(H)};let O=!1;const{area:I}=X.useContext(Yr),{setEditing:P,editForm:v,captureHeight:_,blockUsesInlineEditing:C,toolList:M,tiptapRef:z,toolListWrap:U}=y3({blockID:e,setState:k,state:y,blockArea:I,title:t,reloadContent:B,contentRaw:f},m);X.useEffect(()=>{if(y==="default"){const H=e.split("_");(!H[3]||s)&&(O=!H[3],O&&(e+=`_${Math.random().toString(36).slice(2,9)}`),B(),k("loading"))}}),X.useEffect(()=>{var H;r&&x.current&&((H=x.current)==null?void 0:H.dataset.menuListenerSet)!=="true"&&(x.current.dataset.menuListenerSet="true",window.$(document).trigger("contentChange",[window.$(x.current.parentElement)]),x.current.addEventListener("ipsMenuOpened",async ee=>{if(await new Promise(ie=>setTimeout(ie,1)),C){await d(),b(),await P();return}let ve=`${window.ips.getSetting("baseURL")}index.php?${Object.entries(so()).map(([ie,ce])=>`${encodeURIComponent(ie)}=${encodeURIComponent(ce)}`).join("&")}&do=getConfiguration&block=${encodeURIComponent(e)}&pageApp=${encodeURIComponent(document.body.dataset.pageapp)}&pageModule=${encodeURIComponent(document.body.dataset.pagemodule)}&pageController=${encodeURIComponent(document.body.dataset.pagecontroller)}&pageArea=${encodeURIComponent(I)}&area=${encodeURIComponent(I)}`;try{if(A()==="modal"){b();const ie=window.ips.ui.dialog.create({title:t,url:ve,forceReload:!0,destructOnClose:!0,remoteSubmit:!0});ie.show(),document.querySelectorAll(`[id="${e}_edit_menu"]`).ipsHide();const ce=Qn.throttle(se=>{se.dialogID===ie.dialogID&&(se.stopImmediatePropagation(),se.preventDefault(),B(se.response))},200);document.addEventListener("dialogSubmission",ce,{once:!0})}else ee.menu.html(window.$("<div/>").addClass("ipsLoading").css({height:"100px"})),setTimeout(async()=>{const ie=await window.ips.fetch(ve),ce=ee.menu.get(0);if(ce.id)for(const se of document.querySelectorAll(`[id="${ce.id}"]`))se!==ce&&se.remove();ee.menu.html(ie).find("form").on("submit",async se=>{var $e;se.preventDefault();try{const le=await window.ips.fetch(window.$(se.currentTarget).attr("action"),{data:window.$(se.currentTarget).serialize(),type:"post"});typeof le=="object"||(($e=le==null?void 0:le.toLowerCase)==null?void 0:$e.call(le))==="ok"?(await B(le),ee.menu.trigger("closeMenu")):typeof le=="string"&&ee.menu.html(le)}catch(le){window.Debug.warn(le),window.ips.ui.alert.show({type:"alert",icon:"warn",message:window.ips.getString("sidebarConfigError"),callbacks:{}})}}),ee.menu.trigger("contentChange",[ee.menu])},10);document.body.dispatchEvent(new is(null))}catch(ie){window.Debug.warn(ie),window.ips.ui.alert("Something went wrong when loading the configuration settings")}await d()}))});function A(){var H;return((H=xr(e))==null?void 0:H.dataset.menustyle)||"none"}async function B(H){const ee={blockID:e,title:t,config:r,blank:!1,contentRaw:"Error"};(H==null?void 0:H.areaClasses)instanceof Array&&(ee.areaClasses=Array.from(new Set(H.areaClasses)));try{const ve=await Tv(e,o,I,O,c().wrapBehavior);ee.contentRaw=ve,ee.defaultConfiguration=void 0,l==null||l(ee),k("default")}catch(ve){l==null||l(ee),k("contentLoadError"),window.Debug.log("something went wrong when loading a block's content."),window.Debug.error(ve)}}function b(){document.querySelectorAll(`[id="${e}_edit_menu"]`).ipsHide()}return{reloadContent:B,state:y,setState:k,editForm:v,blockUsesInlineEditing:C,manageBlockRef:x,toolList:M,tiptapRef:z,toolListWrap:U}}function ao(e){return e.split("_").slice(0,3).join("_")}function xr(e){if(typeof e!="string")return window.Debug.warn("Could not get a block base because the id is not a string"),null;const t=ao(e);return t?document.querySelector(`[data-role="availableBlocks"] :is([data-blockID="${t}"],[data-blockID*="${t}_"])`):(window.Debug.warn(`The block id ${JSON.stringify(e)} does not have a valid base identifier (expecting an id of the format '{"app"|"plugin"}_{appname}_{widgetkey}*')`),null)}const _u={};function hd(e){if(typeof e!="string")return window.Debug.warn("Could not get a block base because the id is not a string"),new Set(pf);const t=ao(e);if(!(t in _u)){const r=xr(e);if(r!=null&&r.dataset.widgetLayouts){_u[t]=new Set;for(const l of r.dataset.widgetLayouts.split(","))_u[t].add(l.trim())}else return new Set(pf)}return _u[t]}const wc={};function x3(e){var r;const t=ao(e);if(!t)return!1;if(!(t in wc)){const l=xr(e);if(!l)return!1;wc[t]=["1","true",""].includes((r=l.dataset)==null?void 0:r.widgetPaddingallowed)}return wc[t]}async function Tv(e,t,r,l,o){const s={...so(),do:"getBlock",blockID:e,pageApp:document.body.dataset.pageapp,pageModule:document.body.dataset.pagemodule,pageController:document.body.dataset.pagecontroller,pageArea:r,area:r,orientation:"vertical",createIfDoesNotExist:l?!0:void 0,defaultConfiguration:JSON.stringify(t||""),currentURL:window.location.href};o&&(s.layout=o);const c=await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"POST",data:s});if(typeof c!="string")throw new TypeError("The response is not a string");return new DOMParser().parseFromString(c,"text/html").querySelector("body").innerHTML}const us=class us extends CustomEvent{constructor({widget:t,area:r}){super(us.key,{bubbles:!0}),this.blockID=t.blockID,this.area=r}};Qh(us,"key","ips_widget_drop");let to=us;const Il={};document.addEventListener(to.key,e=>{var t;!(e instanceof to)||typeof e.blockID!="string"||typeof e.area!="string"||((t=Il[e.blockID])==null||t.call(Il,e),delete Il[e.blockID])});function C3({remove:e,blockID:t}){const{area:r}=X.useContext(Yr);t!==ao(t)&&(Il[t]=l=>{l.area!==r&&e({shallow:!0})})}const i0=new Set;let xl;function Av(){return new Promise(e=>{var t,r,l;if(xl)e(xl);else if(((l=(r=(t=window==null?void 0:window.ips)==null?void 0:t.utils)==null?void 0:r.crypto)==null?void 0:l.md5)instanceof Function){xl=window.ips.utils.crypto.md5(Date.now()+Math.round(Math.random()*1e4).toString(16));for(const o of i0)o(xl);e(xl)}else i0.add(e)})}function E3({children:e,parentRef:t,state:r,blockID:l,blockUsesInlineEditing:o,toolList:s,tiptapRef:c,toolListWrap:f}){const d=X.useRef(null),m=X.useRef(null);X.useEffect(()=>{m.current&&f.current&&f.current.parentElement!==m.current&&(m.current.appendChild(f.current),f.current.dataset.role="tiptap-messages-portal-root")});const y=w=>{if(w=w||t.current,!w){d.current.setAttribute("hidden","");return}const x=w.getBoundingClientRect();let k=d.current.parentElement;for(;k&&!["relative","absolute","fixed","sticky"].includes(getComputedStyle(k).position.toLowerCase());)k=k.parentElement;const O=(k||document.documentElement).getBoundingClientRect();d.current.style.left=`calc(${x.right-O.left}px + var(--i-hz-offset, 20px))`,d.current.style.top=`${x.top-O.top}px`;let I=!1;const P=d.current.getBoundingClientRect();P.right>window.innerWidth-10&&(d.current.style.left=`calc(${x.left-O.left-P.width}px - var(--i-hz-offset, 20px))`,I=!0);const v=d.current.querySelector('[data-role="toollist-wrap"]');s?(s.parentElement!==v&&(v.innerHTML="",v.appendChild(s)),v.style.top=`calc(${x.height}px + var(--i-hz-offset, 20px))`,v.style.width=`${x.width}px`,I?(v.style.right="revert",v.style.left="calc(100% + var(--i-hz-offset, 20px))"):(v.style.right="",v.style.left="")):v.innerHTML=""};return X.useEffect(()=>{var U;if(!o||r!=="editing")return;const w=t.current;let x=Date.now();const k=A=>{var B,b,H;Date.now()-x<100||(x=Date.now(),y((b=(B=A.detail)==null?void 0:B.instance)==null?void 0:b.view.dom),c.current=((H=A.detail)==null?void 0:H.instance)||c.current)};w==null||w.addEventListener("ips:editorUpdated",k);let O=0;const I=2e3,P=100,v=setInterval(()=>{if(O>=I){clearInterval(O);return}O+=P,y()},P),_=window._.debounce(()=>{var A,B;d.current.removeAttribute("hidden"),(A=c.current)==null||A.commands.showMenu(),y(((B=c.current)==null?void 0:B.view.dom)||w),document.dispatchEvent(new CustomEvent("ipsAnchorPosition"))},200),C=()=>{var A,B;if(c.current&&!((A=c.current.storage.ipsInlineEditing)!=null&&A.stickyAncestor)){document.removeEventListener("scroll",C);return}(B=c.current)==null||B.commands.hideMenu(),d.current.setAttribute("hidden",""),_()};(!c.current||(U=c.current.storage.ipsInlineEditing)!=null&&U.stickyAncestor)&&document.addEventListener("scroll",C);const M=A=>{var B,b;(b=c.current||((B=A==null?void 0:A.detail)==null?void 0:B.instance))==null||b.commands.hideMenu(),d.current.setAttribute("hidden","")},z=A=>{var B,b,H,ee,ve;(b=c.current||((B=A==null?void 0:A.detail)==null?void 0:B.instance))==null||b.commands.showMenu(),d.current.removeAttribute("hidden"),y((ve=(ee=(H=A==null?void 0:A.detail)==null?void 0:H.instance)==null?void 0:ee.view)==null?void 0:ve.dom)};return w==null||w.addEventListener("ips:editorHidePanes",M),w==null||w.addEventListener("ips:editorShowPanes",z),()=>{w==null||w.removeEventListener("ips:editorUpdated",k),w==null||w.removeEventListener("ips:editorHidePanes",M),w==null||w.removeEventListener("ips:editorShowPanes",z),document.removeEventListener("scroll",C),clearInterval(v)}}),cd.createPortal(T.jsxs("div",{className:"cWidgetContainer__portal-menu",id:`pagebuilder_portal_menu--${l}`,hidden:r!=="editing",ref:d,children:[e,T.jsx("div",{"data-role":"toollist-wrap",ref:m})]}),document.body)}function k3({blockID:e,state:t,title:r,config:l,editForm:o,setState:s,remove:c,blockUsesInlineEditing:f,parentRef:d,manageBlockRef:m,toolList:y,tiptapRef:w,toolListWrap:x,getArea:k}){const{area:O}=X.useContext(Yr);return T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"cSidebarBlock_managing",hidden:t==="editing"&&f,id:`elWidgetMenu--${e}`,children:[T.jsx("h4",{className:"cSidebarBlock_managing__heading",hidden:t==="editing",children:r}),T.jsx("button",{ref:m,"data-ipsmenu":"","data-ipsmenu-closeonclick":"false",id:e+"_edit","data-action":"manageBlock",className:"ipsButton ipsButton--primary ipsButton--icon","data-ipstooltip":"",title:window.ips.getString("editBlock"),hidden:!l||t==="editing","data-ipsmenu-appendto":`[data-widget-area-id="${k().areaId}"][data-widgetarea="${O}"]`,children:T.jsx("i",{className:"fa-solid fa-pencil"})}),T.jsx("button",{className:"ipsButton ipsButton--icon ipsButton--inherit","data-action":"removeBlock","data-ipstooltip":"",title:window.ips.getString("removeBlock"),onClick:c,children:T.jsx("i",{className:"fa-solid fa-xmark"})}),T.jsx("div",{className:"ipsMenu ipsMenu_wide ipsHide",id:`${e}_edit_menu`})]}),T.jsxs(E3,{parentRef:d,state:t,blockID:e,blockUsesInlineEditing:f,toolList:y,tiptapRef:w,toolListWrap:x,children:[T.jsx("button",{id:e+"_save","data-action":"saveBlock",className:"ipsButton ipsButton--positive ipsButton--icon","data-ipstooltip":"",title:window.ips.getString("save"),hidden:t!=="editing",onClick:()=>{var I;(I=d.current.querySelector(".ipsWidget [data-ipsconfigform] form"))==null||I.dispatchEvent(new Event("submit"))},children:T.jsx("i",{className:"fa-solid fa-save"})}),T.jsx("button",{id:e+"_edit_more","data-action":"manageBlock",className:"ipsButton ipsButton--primary ipsButton--icon","data-ipstooltip":"",title:"More Options",hidden:t!=="editing",onClick:()=>{var I;(I=o.dialogRef)==null||I.show()},children:T.jsx("i",{className:"fa-solid fa-ellipsis"})}),T.jsx("button",{className:"ipsButton ipsButton--icon ipsButton--inherit","data-action":"cancel","data-ipstooltip":"",title:window.ips.getString("cancel"),onClick:()=>{var I;w.current&&(w.current.storage.ipsInlineEditing.applyStickyStyles=!1,w.current.commands.resetStickyAncestorStyles()),(I=o.dialogRef)==null||I.hide(),o.element&&(window.ips.cleanContentsOf(o.element),w.current=null),s("default")},children:T.jsx("i",{className:"fa-solid fa-xmark"})})]})]})}function L3(e){let{blockID:t,title:r,config:l,blank:o,contentRaw:s,areaId:c,remove:f,getArea:d}=e;const m=X.useRef(null),{state:y,setState:w,editForm:x,blockUsesInlineEditing:k,manageBlockRef:O,toolList:I,tiptapRef:P,toolListWrap:v}=S3(e,m),{area:_}=X.useContext(Yr);C3({remove:f,blockID:t});const C=!["loading","editing"].includes(y),M=Qn.debounce(()=>{var z;return(z=eo(m.current.closest(".pageBuilderRoot, body")))==null?void 0:z.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},300);return T.jsxs("div",{ref:m,className:`ipsWidget__content--wrap ${{editing:"ipsWidget__content--wrap--editing",loading:"ipsLoading"}[y]||""}`,draggable:C,onDragStart:async z=>{if(!C||!m.current)return;if(eo(m.current.closest(".pageBuilderRoot, body"))){z.preventDefault(),window.ips.ui.flashMsg.show(window.ips.getString("core_pagebuilder_widget-cannot-drag")),M();return}const U=await Av(),A=d();document.querySelectorAll(".cWidgetContainer__menu_region.ipsMenu").forEach(b=>b.style.display="none");const B={areaDetails:{wrapBehavior:A.wrapBehavior,otherOptions:A.otherOptions},blockID:t,blockTitle:r,config:l,blank:o,contentRaw:s,areaId:c,area:_,pageHash:U};z.dataTransfer.setData("application/x.ipsblock",JSON.stringify(B)),window.ipsSettings.__pageeditor_last_dragged_widget_data__=B,setTimeout(()=>{var b,H;(H=(b=m.current)==null?void 0:b.closest("section.cWidgetContainer"))==null||H.setAttribute("hidden","")},100)},onDragEnd:()=>{delete window.ipsSettings.__pageeditor_last_dragged_widget_data__,setTimeout(()=>{var z,U;document.querySelectorAll(".cWidgetContainer__menu_region.ipsMenu").forEach(A=>A.style.display=""),(U=(z=m.current)==null?void 0:z.closest("section.cWidgetContainer"))==null||U.removeAttribute("hidden")},200)},children:[T.jsx("div",{className:"ipsWidgetBlank",hidden:!o||!!s,children:"This widget is empty"}),T.jsx("div",{className:"ipsWidget",dangerouslySetInnerHTML:y==="editing"?void 0:{__html:s||""},"data-blocktitle":r,"data-blockid":t,"data-blockerrormessage":o?window.ips.getString("core_pagebuilder_widget-load_error"):void 0,"data-blockconfig":l?"true":void 0}),T.jsx(k3,{...e,editForm:x,setState:w,state:y,parentRef:m,blockUsesInlineEditing:k,manageBlockRef:O,toolList:I,tiptapRef:P,toolListWrap:v,getArea:d})]})}function I3({orientation:e="vertical",children:t=[],wrapBehavior:r,onChange:l=()=>{},otherOptions:o={},widgets:s=[],insertSibling:c=()=>{},areaId:f,getParent:d,depth:m=0},y){r===void 0&&(r=s.length?"table":"wrap");const{area:w}=X.useContext(Yr);if(m>=fd)return{};const x=Qn.debounce(()=>{var k;(k=eo(y.current.closest(".pageBuilderRoot, body")))==null||k.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},300);return{onDragEnter:k=>k.preventDefault(),onDrop:async k=>{var O,I,P,v,_,C,M,z,U;if(eo(y.current.closest(".pageBuilderRoot"))){k.preventDefault(),k.stopPropagation(),window.ips.ui.flashMsg.show(window.ips.getString("core_pagebuilder_widget-cannot-drag")),x();return}k.stopPropagation(),k.preventDefault();try{let A;const B=JSON.parse(k.dataTransfer.getData("application/x.ipsblock")||"null");for(const ie of["blockTitle","blockID","config","blank"])if(!B||typeof B!="object"||!(ie in B)){let ce=k.dataTransfer.getData("text/html")||k.dataTransfer.getData("text/plain")||"";k.dataTransfer.types.includes("text/uri-list")&&!ce&&(ce=k.dataTransfer.getData("text/uri-list").split(/\s*\n\s*/).filter(Q=>!Q.match(/^#/)).map(Q=>`${Q}`).join(`
`)),await window.ips.ui.editorv5.whenLoaded();const se=document.createElement("div");se.setAttribute("hidden",""),document.body.appendChild(se);const[$e,le]=await window.ips.utils.tiptap.editorInstance(se,{...window.ips.ui.editorv5.buildConfig({}),content:ce});if(await new Promise($=>setTimeout($)),ce=$e.getHTML(),$e.destroy(),le.unmount(),se.remove(),ce){A={orientation:e==="horizontal"?"vertical":"horizontal",children:[],wrapBehavior:"table",otherOptions:{},widgets:[{title:"WYSIWYG Editor",blockID:"app_cms_Wysiwyg",config:!0,blank:!1,contentRaw:ce,defaultConfiguration:{content:ce}}]};break}throw new Error(`The data from the drop event did not include ${ie}, so the block could not be inserted in the widget area tree`)}const b=(B==null?void 0:B.blockID)||((O=A==null?void 0:A.widgets)==null?void 0:O[0].blockID),H=b?xr(b):null;if(new Set(((P=(I=H==null?void 0:H.dataset)==null?void 0:I.widgetDisallowedAreas)==null?void 0:P.split(",").map(ie=>ie.trim()))||[]).has(w)){document.querySelectorAll("section.cWidgetContainer:not([data-controller])").forEach(ie=>{ie.removeAttribute("hidden"),ie.querySelectorAll(":scope > .cWidgetContainer__menu_region").forEach(ce=>ce.style.display="")});return}const ve=y.current;if(ve){if(B.blockID.startsWith("app_cms_Blocks:")){const $=xr(B.blockID),Q=$==null?void 0:$.dataset.customblockid;if(!Q)throw new Error("The dropped block is a custom block but the block id is invalid");const G=await window.ips.fetch(window.ips.getSetting("baseURL"),{method:"get",data:{app:"cms",module:"pages",controller:"builder",do:"getCustomBlockContent",id:Q}});if(typeof G.content!="string"||typeof G.block_key!="string"||typeof((v=G.configuration)==null?void 0:v.blocktitle)!="string")throw new TypeError("Could not add a custom block because the server didn't return a string for it's content, blocktitle data attribute, or block key (as in the key of the custom block)");B.contentRaw=G.content,B.defaultConfiguration={cms_widget_custom_block:G.block_key},B.blockID=`app_cms_Blocks_${Math.round(Math.random()*Math.pow(16,8)).toString(16)}`,B.blockTitle=G.configuration.blocktitle}const ie=Lv(ve,k.clientX,k.clientY),ce=B.areaDetails,se={title:B.blockTitle,blockID:B.blockID,config:B.config,blank:B.blank,contentRaw:B.contentRaw||"<div class='ipsLoading'></div>"};B.defaultConfiguration&&(se.defaultConfiguration=se.configuration=B.defaultConfiguration),A=A||{orientation:e==="horizontal"?"vertical":"horizontal",children:[],wrapBehavior:(ce==null?void 0:ce.wrapBehavior)||B.ipsWrapBehavior||((M=(C=(_=hd(B.blockID))==null?void 0:_.values())==null?void 0:C.next())==null?void 0:M.value)||"table",otherOptions:{...ce==null?void 0:ce.otherOptions},widgets:[se]};const $e=await Av(),le=[];if(Number.isInteger(B==null?void 0:B.areaId)&&B.area===w&&B.pageHash===$e&&le.push(B.areaId),le.includes(f))return;if(ao(A.widgets[0].blockID)===A.widgets[0].blockID){A.widgets[0].blockID+="_";for(let $=0;$<6;$++)A.widgets[0].blockID+=Math.round(Math.random()*16).toString(16);A.widgets[0].contentRaw=await Tv(A.widgets[0].blockID,A.widgets[0].defaultConfiguration,w,!0,A.wrapBehavior),A.widgets[0].blank=!1}if((z=y==null?void 0:y.current)!=null&&z.closest(".cWidgetContainer--carousel")&&A.wrapBehavior in Xe&&(A.wrapBehavior=Xe[A.wrapBehavior],A.widgets.length&&(A.widgets[0].blank=!0,A.widgets[0].contentRaw=`<div class="ipsLoading">${A.widgets[0].contentRaw||""}</div>`)),["before","after"].includes(ie))A.orientation=e,c==null||c(A,ie==="before",le);else if(!t.length&&s.length){const $={orientation:e==="horizontal"?"vertical":"horizontal",children:[],wrapBehavior:r,otherOptions:o,widgets:s,areaId:f};l({newState:{children:ie===0?[A,$]:[$,A],wrapBehavior:"wrap",widgets:[],otherOptions:{}},toRemove:le})}else t.splice(ie,0,A),l({newState:{children:t},toRemove:le});(U=y.current)==null||U.dispatchEvent(new to({widget:A.widgets[0],area:w}))}}catch(A){window.Debug.warn(A),window.Debug.log("Could not insert the content dropped inside a widget area"),window.ips.ui.alert.show({message:"This content cannot be dropped in the page"})}document.querySelectorAll("section.cWidgetContainer:not([data-controller])").forEach(A=>{A.removeAttribute("hidden"),A.querySelectorAll(":scope > .cWidgetContainer__menu_region").forEach(B=>B.style.display="")})},onDragOver:k=>{k.preventDefault(),k.stopPropagation(),A3({e:k,ref:y,orientation:e,wrapBehavior:r,getParent:d,children:t,clientX:k.clientX,clientY:k.clientY,blockArea:w})}}}function R3(e,t){if(e!=null&&e.classList.contains("cWidgetContainer--dragInside")){const r=e.getBoundingClientRect();let l;if(e.scrollWidth<=r.width)return!1;if(t<r.left+Math.min(r.width/10,70))l="prev";else if(t>r.right-Math.max(r.width/10,70))l="next";else return!1;if(l&&!window.ips.ui.carousel.containerAtEnd(e,l))return T3(e,l),!0}return!1}const T3=Qn.throttle((e,t)=>{e.dispatchEvent(new CustomEvent("scrollPanels",{detail:{direction:t,loop:!1}}))},1e3),A3=Qn.throttle(function({ref:e,orientation:t,wrapBehavior:r,getParent:l,children:o,clientX:s,clientY:c,blockArea:f}){var m,y,w;const d=window.ipsSettings.__pageeditor_last_dragged_widget_data__;if(!(f&&typeof(d==null?void 0:d.blockID)=="string"&&(m=xr(d.blockID).dataset.widgetDisallowedAreas)!=null&&m.split(",").map(k=>k.trim().toLowerCase()).includes(f.toLowerCase()))&&e.current){if(eo(e.current.closest(".pageBuilderRoot")))return;const x=l==null?void 0:l();try{let k,O,I=e.current,P=Lv(I,s,c),v=t;if(["stack","accordion"].includes(r)&&(t="vertical"),["before","after"].includes(P)){v=t==="horizontal"?"vertical":"horizontal";const M=P;if(I=(y=e.current.parentElement)==null?void 0:y.closest(".pageBuilderRoot .cWidgetContainer"),I){let z=I.querySelectorAll(":is(:scope, :scope > .cWidgetContainer__accordionWrapper) > :is(.cWidgetContainer, .ipsWidget)");for(P=0,P=0;P<z.length;P++){const U=z[P];if(Object.is(U,e.current))break;if(P===z.length-1)return}M!=="before"&&P++}else return}else!o.length&&x&&(P===0?(k=null,O=I.querySelector(".ipsWidget__content--wrap .cSidebarBlock_managing")||I):(k=I.querySelector(".ipsWidget__content--wrap .cSidebarBlock_managing")||I,O=null),pi(I,"cWidgetContainer--dragInside"),I=null);(w=I==null?void 0:I.querySelector(":scope > :first-child"))!=null&&w.classList.contains("cWidgetContainer__menu_region")&&(P+=1);let _=1,C=P*_;if(I&&(P>0&&(k=I.querySelector(`:scope > :is(.cWidgetContainer,.ipsWidget, .cWidgetContainer__accordionWrapper):nth-child(${C})`)),O=I.querySelector(`:scope > :is(.cWidgetContainer, .ipsWidget, .cWidgetContainer__accordionWrapper):nth-child(${C+_})`),pi(I,"cWidgetContainer--dragInside"),I.classList.contains("cWidgetContainer--carousel")&&(k?O||pi(I,"cWidgetContainer--dragAfterLast"):pi(I,"cWidgetContainer--dragBeforeFirst"),I.classList.contains("ipsScrolling")||R3(I,s))))return;k&&pi(k,v==="horizontal"?"cWidgetContainer--dragLeft":"cWidgetContainer--dragBelow"),O&&pi(O,v==="horizontal"?"cWidgetContainer--dragRight":"cWidgetContainer--dragAbove")}catch(k){k.message=`An unexpected error occurred when handling the drag over event
`+k.message,window.Debug.warn(k)}}},200);function pi(e,t,r=400){var l;tt.has(e)||tt.set(e,new Map);for(const o of t.split(/\s+/).filter(s=>!!s)){tt.get(e).has(o)&&(clearTimeout(tt.get(e).get(o)),tt.get(e).delete(o)),e.classList.add(o),document.querySelectorAll(`.${o}`).forEach(c=>{var f;if(c!==e){c.classList.remove(o);const d=(f=tt.get(c))==null?void 0:f.get(o);d&&(clearTimeout(d),tt.get(c).delete(o))}});const s=setTimeout(()=>{var f;e.classList.remove(o);const c=(f=tt.get(e))==null?void 0:f.get(o);c&&(clearTimeout(c),tt.get(e).delete(o),tt.get(e).size||tt.delete(e))},r);tt.get(e).set(o,s)}(l=tt.get(e))!=null&&l.size||tt.delete(e)}setInterval(()=>{for(const e of tt.keys())if(e.closest("body")!==document.body){for(const t of tt.get(e).values())clearTimeout(t);tt.delete(e)}},5e3);const tt=new Map;function O3({wrapBehavior:e,widgets:t,scrollRef:r}){const l=X.useRef(null),o=e==="carousel"&&!t.length;X.useEffect(()=>{if(o&&(d(),r.current)){const y=r.current;os.set(y,d);const w=k=>{var M;const[O,I,P]=c(),v=((M=k==null?void 0:k.detail)==null?void 0:M.direction)||"next",_=v!=="prev"&&(O>=I-1||P[I-1].getBoundingClientRect().right<=y.getBoundingClientRect().right);if(v==="prev"&&O===0||v!=="prev"&&_)return;const C=y.querySelector(`[data-carousel-arrow="${v}"]`);C instanceof HTMLElement&&m({target:C})};y.addEventListener("scrollPanels",w);const x=new ResizeObserver(Qn.debounce(d,100));return x.observe(r.current),()=>{os.delete(y),y.removeEventListener("scrollPanels",w),x.disconnect()}}});function s(){var y;return(y=r.current)!=null&&y.classList.contains("cWidgetContainer--carousel")?r.current:null}function c(){var I;const y=s(),w=y==null?void 0:y.querySelectorAll(":scope > .cWidgetContainer");if(!w)throw new ReferenceError;const x=w.length;if(gf.has(y))return[parseInt(((I=l.current)==null?void 0:I.dataset.actualOffset)||"0"),x,w];const k=y.getBoundingClientRect();let O;for(O=0;O<x;O++)if(w[O].getBoundingClientRect().left>=k.left-1)return[O,x,w];return[x-1,x,w]}function f(){var k,O;const y=(k=r.current)==null?void 0:k.getBoundingClientRect(),w=(O=r.current)==null?void 0:O.querySelectorAll(":scope > .cWidgetContainer");if(!y||!(w!=null&&w.length)||w.length===1)return 1;const x=Math.abs(w[w.length-1].getBoundingClientRect().right-w[0].getBoundingClientRect().left);if(x){let I=Math.ceil(x/y.width);return w.length>2&&w[w.length-1].getBoundingClientRect().right-w[w.length-2].getBoundingClientRect().left>y.width&&I++,I}return 1}function d(){if(!l.current)return;let[y,w]=c();const x=f();y=Math.min(y,x),w=Math.min(w,x),l.current.innerText=`${y+1}/${w}`,l.current.closest(".cWidgetContainer__carousel-buttons").querySelectorAll("button").forEach(k=>w<=1?k.setAttribute("disabled",""):k.removeAttribute("disabled"))}function m(y){const w=s();if(!w)return;const x=y.target instanceof HTMLElement&&y.target.dataset.carouselArrow||"next",[k,O,I]=c();if(I.length<=1)return;const P=w.getBoundingClientRect(),v=x!=="prev"&&(k+1>=O||I[O-1].getBoundingClientRect().right<=P.right),_=(x==="prev"&&k===0?O-1:v?0:k+(x==="prev"?-1:1))%O;let C=(_===O-1?I[_].getBoundingClientRect().right:I[_].getBoundingClientRect().left)-P.left;l.current.dataset.actualOffset=`${_}`,gf.add(w),w.scrollTo({left:r.current.scrollLeft+C,behavior:"smooth"}),d()}return{indicatorRef:l,scroll:m}}const gf=new WeakSet,os=new WeakMap;function Ov(e,t=!1){var r,l;if((r=e.classList)!=null&&r.contains("cWidgetContainer--carousel")&&e.querySelector(".ipsWidget__content--wrap--editing")){const o=e.querySelector(".ipsWidget__content--wrap--editing"),s=(l=window.ips.ui.editorv5.getObj(window.$(o.querySelector("[data-ipseditorv5]"))))==null?void 0:l.getInstance();t?o==null||o.dispatchEvent(new CustomEvent("ips:editorHidePanes",{detail:{instance:s},bubbles:!0,cancelable:!0})):o.dispatchEvent(new CustomEvent("ips:editorShowPanes",{detail:{instance:s},bubbles:!0,cancelable:!0}))}}function l0(e){let t=e.target;for(;t instanceof HTMLElement;){if(Ov(t),os.has(t)){let r=!1;const l=e.stopPropagation;if(e.stopPropagation=(function(){r=!0,l.call(this)}).bind(e),os.get(t)(e),gf.delete(t),r)break;e.stopPropagation=l.bind(e)}t=t.parentElement}}"onscrollend"in HTMLElement.prototype?window.addEventListener("scrollend",l0,{capture:!0}):window.addEventListener("scroll",Qn.debounce(l0,200),{capture:!0});window.addEventListener("scroll",e=>{var r;let t=e.target;(r=t==null?void 0:t.classList)!=null&&r.contains("cWidgetContainer--carousel")&&Ov(t,!0)},{capture:!0});function P3({widgets:e,scrollRef:t,wrapBehavior:r}){const{indicatorRef:l,scroll:o}=O3({widgets:e,scrollRef:t,wrapBehavior:r});return T.jsxs("div",{className:"cWidgetContainer__carousel-buttons","data-controller":"core.front.widgets.carouselControls",children:[T.jsx("div",{className:"cWidgetContainer__carousel-indicator",ref:l}),[["prev","left"],["next","right"]].map(([s,c])=>T.jsx("button",{onClick:o,"data-carousel-arrow":s,children:T.jsx("i",{className:`fa-solid fa-chevron-${c}`})},s))]})}function Pv({...e}){var A,B,b,H,ee,ve,ie,ce,se,$e,le;const{onChange:t=({...$})=>window.Debug.warn({...$,message:"An area was changed but cannot propagate to its parent because its neglectful child protection services widget area parent didn't provide an onChange prop"}),areaId:r,depth:l=0}=e,{area:o}=X.useContext(Yr),s=X.useRef({});Object.assign(s.current,{children:e.children||[],widgets:e.widgets||[],otherOptions:e.otherOptions||{},wrapBehavior:e.wrapBehavior||"wrap",areaClasses:e.areaClasses});const c=X.useRef(null),f=(A=e.getParent)==null?void 0:A.call(e),[d,m]=X.useState(!1),[y,w]=X.useState(0);s.current.wrapBehavior in wr||(s.current.wrapBehavior=e.wrapBehavior="wrap");const x=X.useRef(null),k=X.useRef(null),O=I3(e,x),I=(b=(B=s.current.widgets)==null?void 0:B[0])==null?void 0:b.blockID,P=X.useMemo(()=>I?xr(I):null,[I]),v=["cWidgetContainer","cWidgetContainer_managing"];(H=e.getParent)!=null&&H.call(e)&&!((ve=(ee=e.getParent()).getParent)!=null&&ve.call(ee))&&v.push("cWidgetContainer--editable"),!s.current.widgets.length&&f&&v.push("cWidgetContainer--isGroup"),s.current.widgets.length||v.push(wr[s.current.wrapBehavior]),s.current.widgets.length&&(s.current.children=[],v.push("cWidgetContainer--isWidget"));let _=!1;f||(v.push("cWidgetContainer--main"),s.current.widgets.length||(_=!0)),d&&v.push("cWidgetContainer--menu_open"),s.current.areaClasses instanceof Array&&v.push(...s.current.areaClasses),s.current.otherOptions.showImages===!1&&s.current.widgets.length&&Sv.has(s.current.wrapBehavior)&&v.push("cWidgetContainer--noImages");const C={},M=s.current.widgets.length?"widget":"block";if((f&&!s.current.widgets.length||f&&((ie=P==null?void 0:P.dataset.widgetLayouts)==null?void 0:ie.split(",").length)>1)&&(s.current.widgets.length||Object.assign(C,{"--i-block--padding-block":s.current.otherOptions.paddingBlock||0,"--i-block--padding-inline":s.current.otherOptions.paddingInline||0})),!pd.has(s.current.wrapBehavior)||!s.current.widgets.length?C[`--i-${M}--gap`]=(typeof s.current.otherOptions.gapSize=="number"?s.current.otherOptions.gapSize:20)+"px":C[`--i-${M}--gap`]="0px",s.current.otherOptions.fullWidthItems&&s.current.wrapBehavior.match(/carousel$/)?C[`--i-${M}--size`]="100%":(_v.has(s.current.wrapBehavior)?s.current.wrapBehavior in vc&&(C[`--i-${M}--size`]=`${vc[s.current.wrapBehavior]}`):C[`--i-${M}--size`]=`${s.current.otherOptions.minSize||vc[s.current.wrapBehavior]||300}`,(ce=C[`--i-${M}--size`])!=null&&ce.match(/^\d+(?:\.\d*)?$|^\.\d+$/)&&(C[`--i-${M}--size`]+="px")),C[`--i-${M}--size`]==="100%"&&s.current.wrapBehavior.match(/carousel$/)&&(s.current.otherOptions.fullWidthItems=!0,e.otherOptions.fullWidthItems=!0),s.current.widgets.length){const $={paddingBlock:"padding-block",paddingInline:"padding-inline"};for(const Q in $)C[`--i-widget--${$[Q]}`]=s.current.otherOptions[Q]||"0"}const U={"data-widget-layout":s.current.wrapBehavior};for(const $ in s.current.otherOptions){const Q=$.replaceAll(/([A-Z])/g,(G,Z)=>`-${Z}`.toLowerCase()).toLowerCase().trim().replaceAll(/[^0-9a-z_]+/g,"-").replaceAll(/^[^0-9a-z_]+|[^0-9a-z_]+$/g,"");U["data-widget-"+Q]=(($e=(se=s.current.otherOptions[$])==null?void 0:se.toString)==null?void 0:$e.call(se).toLowerCase())||void 0}return _&&!((le=s.current.children)!=null&&le.length)&&window.ips.haveString("page_editor_cta")&&(U["data-pageeditor-empty-message"]=window.ips.getString("page_editor_cta")),T.jsxs("section",{"data-depth":l,"data-max-depth":fd,className:v.join(" "),ref:x,...U,"data-widget-area-id":r,"data-widget-area":o,"data-widgetarea":o,style:C,onMouseDown:$=>{var Q,G,Z,we,He,Ee;if(c.current&&w3($.target,c.current)){$.stopPropagation();return}(Z=(G=(Q=$.currentTarget)==null?void 0:Q.closest)==null?void 0:G.call(Q,".pageBuilderRoot"))!=null&&Z.querySelector("[data-ipsconfigform]")||(!d&&k.current&&(l<=1||e.parentIsEditing||(He=(we=x.current)==null?void 0:we.parentElement)!=null&&He.querySelector(".cWidgetContainer--menu_open.cWidgetContainer"))?($.stopPropagation(),document.body.dispatchEvent(new is(k.current)),setTimeout(()=>m(!0),10)):d&&l!==1&&((Ee=e.setParentEditing)==null||Ee.call(e,!0)))},...O,children:[_?T.jsx(T.Fragment,{}):T.jsx(p3,{...e,areaRef:x,depth:l,editing:d,setEditing:m,setParentEditing:e.setParentEditing,isLeaf:s.current.widgets.length&&!s.current.children.length,ref:k,menuRef:c}),s.current.children.map(($,Q)=>X.createElement(Pv,{...$,key:$.areaId,onChange:({newState:G,toRemove:Z=[],removedBlocks:we=[],reloadWidget:He=!1})=>{var ft,dt;let Ee=s.current.children.findIndex(Tt=>Tt.areaId===$.areaId&&Tt.areaId!==void 0);if(Ee>=0&&Number.isInteger(Ee)){if(G.otherOptions&&Object.assign(s.current.children[Ee].otherOptions,G.otherOptions),Object.assign(s.current.children[Ee],G),He&&s.current.children[Ee].widgets.length){s.current.children[Ee].widgets[0].blank=!0;const Tt=(dt=(ft=document.querySelector(`[data-blockid="${s.current.children[Ee].widgets[0].blockID}"]`))==null?void 0:ft.getBoundingClientRect)==null?void 0:dt.call(ft);Tt instanceof DOMRect&&(s.current.children[Ee].widgets[0].contentRaw=`<div class="ipsLoading" data-role="widget_loading_placeholder" style="width:${Tt.width}px;height:${Tt.height}px;"></div>`)}t({newState:{children:s.current.children},toRemove:Z,removedBlocks:we,reloadWidget:He})}},insertSibling:(G,Z=!1,we=[])=>{let He=s.current.children.findIndex(Ee=>Ee.areaId===$.areaId&&Ee.areaId);He||(He=0),s.current.children.splice(Z?He:He+1,0,G),t({newState:{children:s.current.children},toRemove:we})},setParentEditing:m,parentIsEditing:!!d,getParent:()=>e,isCurrent:Q===y,setCurrent:()=>w(Q),depth:l+1,moveUp:Q===0?void 0:()=>{const[G,Z]=s.current.children.slice(Q-1,Q+1);Z.otherOptions=Z.otherOptions||{},Z.otherOptions.shouldBeEditing=!0,G.otherOptions.shouldBeEditing&&delete G.otherOptions.shouldBeEditing,s.current.children.splice(Q-1,2,Z,G),t({newState:{children:s.current.children}})},moveDown:Q===s.current.children.length-1?void 0:()=>{const[G,Z]=s.current.children.slice(Q,Q+2);G.otherOptions=G.otherOptions||{},G.otherOptions.shouldBeEditing=!0,Z.otherOptions.shouldBeEditing&&delete Z.otherOptions.shouldBeEditing,s.current.children.splice(Q,2,Z,G),t({newState:{children:s.current.children}})}})),s.current.widgets.map(($,Q)=>T.jsx(L3,{...$,areaId:r,remove:({shallow:G=!1})=>{var Z;s.current.widgets.splice(Q,1),t({newState:{widgets:((Z=s.current)==null?void 0:Z.widgets)||[]},toRemove:G?[r]:[],removedBlocks:G?[]:[$.blockID]})},update:G=>{let Z;G.areaClasses instanceof Array&&(Z=G.areaClasses),delete G.areaClasses,Object.assign(s.current.widgets[Q],G);const we={newState:{widgets:s.current.widgets},toRemove:[]};Z&&(s.current.areaClasses=we.newState.areaClasses=Z),t(we)},parentOptions:s.current.otherOptions,getArea:()=>({...e,...s.current}),selectArea:()=>new Promise(G=>{document.body.dispatchEvent(new is(k.current)),setTimeout(()=>{m(!0),G()})})},$.blockID+Q)),s.current.wrapBehavior==="carousel"?T.jsx(P3,{widgets:s.current.widgets,scrollRef:x,wrapBehavior:s.current.wrapBehavior}):T.jsx(T.Fragment,{})]})}function N3({tree:e,onChange:t,area:r,effect:l}){const[o,s]=X.useState(e),[c,f]=X.useState(()=>!!document.querySelector('[data-role="availableBlocks"] [data-blockid]')),{Provider:d}=Yr;return X.useEffect(()=>l==null?void 0:l()),X.useEffect(()=>{c||document.addEventListener("ipsWidgetManagerLoaded",()=>f(!0))},[c]),T.jsx(d,{value:{area:r},children:T.jsx(Pv,{...o,onChange:async({newState:m,toRemove:y=[],removedBlocks:w=[],reloadWidget:x=!0})=>{w.length&&await m3(w,r),Object.assign(o,m),m=JSON.parse(JSON.stringify({...ls(o,null,y)})),Rv(m,r).then(k=>{k&&(t==null||t({newState:m}))}),s(m)}})})}window.ips.createModule("ips.utils.pagebuilder",()=>{const e={};return{initializePageBuilderTree(t,r,l){var d,m;const o=ls(Cv(r)),s=((d=r.closest("[data-widget-area]"))==null?void 0:d.dataset.widgetArea)||((m=r.closest("[data-widgetarea]"))==null?void 0:m.dataset.widgetarea),c=yc.createRoot(t);let f;return new Promise(y=>{c.render(T.jsx(D2.StrictMode,{children:T.jsx(N3,{tree:o,area:s,onChange:l,effect:()=>{f||(f=!0,y({root:c,domRoot:t}))}})}))})},fillSemanticIcon(t,r){return S2(()=>Promise.resolve({}),["assets/main-51be5621.css"]).then(()=>window.Debug.log("Loaded SVG css file")),new Promise(l=>{e[r]?(t.innerHTML=e[r],l()):yv(t).render(T.jsx(kn,{icon:r,className:"ipsButton ipsButton--icon pagebuildericon",includeInlineStyle:!0,horizontal:!0,width:"88px",effect:()=>{e[r]=t.innerHTML,t.innerHTML=e[r],l()}}))})}}});