Files
DC_CMS/admin/admin.js
T
2026-11-13 17:56:23 +03:00

430 lines
502 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 yS=Object.create;var rh=Object.defineProperty;var xS=Object.getOwnPropertyDescriptor;var vS=Object.getOwnPropertyNames;var bS=Object.getPrototypeOf,LS=Object.prototype.hasOwnProperty;var SS=(e,t,a)=>()=>{if(a)throw a[0];try{return e&&(t=e(e=0)),t}catch(n){throw a=[n],n}};var ua=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}};var CS=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of vS(t))!LS.call(e,l)&&l!==a&&rh(e,l,{get:()=>t[l],enumerable:!(n=xS(t,l))||n.enumerable});return e};var E=(e,t,a)=>(a=e!=null?yS(bS(e)):{},CS(t||!e||!e.__esModule?rh(a,"default",{value:e,enumerable:!0}):a,e));var yh=ua(P=>{"use strict";/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zd=Symbol.for("react.transitional.element"),wS=Symbol.for("react.portal"),IS=Symbol.for("react.fragment"),kS=Symbol.for("react.strict_mode"),ES=Symbol.for("react.profiler"),MS=Symbol.for("react.consumer"),AS=Symbol.for("react.context"),DS=Symbol.for("react.forward_ref"),TS=Symbol.for("react.suspense"),NS=Symbol.for("react.memo"),ch=Symbol.for("react.lazy"),RS=Symbol.for("react.activity"),ih=Symbol.iterator;function BS(e){return e===null||typeof e!="object"?null:(e=ih&&e[ih]||e["@@iterator"],typeof e=="function"?e:null)}var fh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mh=Object.assign,ph={};function kl(e,t,a){this.props=e,this.context=t,this.refs=ph,this.updater=a||fh}kl.prototype.isReactComponent={};kl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};kl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hh(){}hh.prototype=kl.prototype;function qd(e,t,a){this.props=e,this.context=t,this.refs=ph,this.updater=a||fh}var Ud=qd.prototype=new hh;Ud.constructor=qd;mh(Ud,kl.prototype);Ud.isPureReactComponent=!0;var uh=Array.isArray;function _d(){}var me={H:null,A:null,T:null,S:null},gh=Object.prototype.hasOwnProperty;function Hd(e,t,a){var n=a.ref;return{$$typeof:zd,type:e,key:t,ref:n!==void 0?n:null,props:a}}function OS(e,t){return Hd(e.type,t,e.props)}function Pd(e){return typeof e=="object"&&e!==null&&e.$$typeof===zd}function _S(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var sh=/\/+/g;function Od(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_S(""+e.key):t.toString(36)}function zS(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(_d,_d):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Il(e,t,a,n,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(o){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case zd:case wS:r=!0;break;case ch:return r=e._init,Il(r(e._payload),t,a,n,l)}}if(r)return l=l(e),r=n===""?"."+Od(e,0):n,uh(l)?(a="",r!=null&&(a=r.replace(sh,"$&/")+"/"),Il(l,t,a,"",function(s){return s})):l!=null&&(Pd(l)&&(l=OS(l,a+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(sh,"$&/")+"/")+r)),t.push(l)),1;r=0;var i=n===""?".":n+":";if(uh(e))for(var u=0;u<e.length;u++)n=e[u],o=i+Od(n,u),r+=Il(n,t,a,o,l);else if(u=BS(e),typeof u=="function")for(e=u.call(e),u=0;!(n=e.next()).done;)n=n.value,o=i+Od(n,u++),r+=Il(n,t,a,o,l);else if(o==="object"){if(typeof e.then=="function")return Il(zS(e),t,a,n,l);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 r}function Lu(e,t,a){if(e==null)return e;var n=[],l=0;return Il(e,n,"","",function(o){return t.call(a,o,l++)}),n}function qS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},US={map:Lu,forEach:function(e,t,a){Lu(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Lu(e,function(){t++}),t},toArray:function(e){return Lu(e,function(t){return t})||[]},only:function(e){if(!Pd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};P.Activity=RS;P.Children=US;P.Component=kl;P.Fragment=IS;P.Profiler=ES;P.PureComponent=qd;P.StrictMode=kS;P.Suspense=TS;P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=me;P.__COMPILER_RUNTIME={__proto__:null,c:function(e){return me.H.useMemoCache(e)}};P.cache=function(e){return function(){return e.apply(null,arguments)}};P.cacheSignal=function(){return null};P.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=mh({},e.props),l=e.key;if(t!=null)for(o in t.key!==void 0&&(l=""+t.key),t)!gh.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(n[o]=t[o]);var o=arguments.length-2;if(o===1)n.children=a;else if(1<o){for(var r=Array(o),i=0;i<o;i++)r[i]=arguments[i+2];n.children=r}return Hd(e.type,l,n)};P.createContext=function(e){return e={$$typeof:AS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:MS,_context:e},e};P.createElement=function(e,t,a){var n,l={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)gh.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(l[n]=t[n]);var r=arguments.length-2;if(r===1)l.children=a;else if(1<r){for(var i=Array(r),u=0;u<r;u++)i[u]=arguments[u+2];l.children=i}if(e&&e.defaultProps)for(n in r=e.defaultProps,r)l[n]===void 0&&(l[n]=r[n]);return Hd(e,o,l)};P.createRef=function(){return{current:null}};P.forwardRef=function(e){return{$$typeof:DS,render:e}};P.isValidElement=Pd;P.lazy=function(e){return{$$typeof:ch,_payload:{_status:-1,_result:e},_init:qS}};P.memo=function(e,t){return{$$typeof:NS,type:e,compare:t===void 0?null:t}};P.startTransition=function(e){var t=me.T,a={};me.T=a;try{var n=e(),l=me.S;l!==null&&l(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(_d,dh)}catch(o){dh(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),me.T=t}};P.unstable_useCacheRefresh=function(){return me.H.useCacheRefresh()};P.use=function(e){return me.H.use(e)};P.useActionState=function(e,t,a){return me.H.useActionState(e,t,a)};P.useCallback=function(e,t){return me.H.useCallback(e,t)};P.useContext=function(e){return me.H.useContext(e)};P.useDebugValue=function(){};P.useDeferredValue=function(e,t){return me.H.useDeferredValue(e,t)};P.useEffect=function(e,t){return me.H.useEffect(e,t)};P.useEffectEvent=function(e){return me.H.useEffectEvent(e)};P.useId=function(){return me.H.useId()};P.useImperativeHandle=function(e,t,a){return me.H.useImperativeHandle(e,t,a)};P.useInsertionEffect=function(e,t){return me.H.useInsertionEffect(e,t)};P.useLayoutEffect=function(e,t){return me.H.useLayoutEffect(e,t)};P.useMemo=function(e,t){return me.H.useMemo(e,t)};P.useOptimistic=function(e,t){return me.H.useOptimistic(e,t)};P.useReducer=function(e,t,a){return me.H.useReducer(e,t,a)};P.useRef=function(e){return me.H.useRef(e)};P.useState=function(e){return me.H.useState(e)};P.useSyncExternalStore=function(e,t,a){return me.H.useSyncExternalStore(e,t,a)};P.useTransition=function(){return me.H.useTransition()};P.version="19.2.7"});var q=ua((nk,xh)=>{"use strict";xh.exports=yh()});var Mh=ua(xe=>{"use strict";/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function Vd(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,l=e[n];if(0<Su(l,t))e[n]=t,e[a]=l,a=n;else break e}}function sa(e){return e.length===0?null:e[0]}function wu(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,l=e.length,o=l>>>1;n<o;){var r=2*(n+1)-1,i=e[r],u=r+1,s=e[u];if(0>Su(i,a))u<l&&0>Su(s,i)?(e[n]=s,e[u]=a,n=u):(e[n]=i,e[r]=a,n=r);else if(u<l&&0>Su(s,a))e[n]=s,e[u]=a,n=u;else break e}}return t}function Su(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}xe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(vh=performance,xe.unstable_now=function(){return vh.now()}):(Fd=Date,bh=Fd.now(),xe.unstable_now=function(){return Fd.now()-bh});var vh,Fd,bh,ba=[],$a=[],HS=1,Ut=null,We=3,Xd=!1,jo=!1,Go=!1,Kd=!1,Ch=typeof setTimeout=="function"?setTimeout:null,wh=typeof clearTimeout=="function"?clearTimeout:null,Lh=typeof setImmediate<"u"?setImmediate:null;function Cu(e){for(var t=sa($a);t!==null;){if(t.callback===null)wu($a);else if(t.startTime<=e)wu($a),t.sortIndex=t.expirationTime,Vd(ba,t);else break;t=sa($a)}}function Yd(e){if(Go=!1,Cu(e),!jo)if(sa(ba)!==null)jo=!0,Ml||(Ml=!0,El());else{var t=sa($a);t!==null&&$d(Yd,t.startTime-e)}}var Ml=!1,Vo=-1,Ih=5,kh=-1;function Eh(){return Kd?!0:!(xe.unstable_now()-kh<Ih)}function jd(){if(Kd=!1,Ml){var e=xe.unstable_now();kh=e;var t=!0;try{e:{jo=!1,Go&&(Go=!1,wh(Vo),Vo=-1),Xd=!0;var a=We;try{t:{for(Cu(e),Ut=sa(ba);Ut!==null&&!(Ut.expirationTime>e&&Eh());){var n=Ut.callback;if(typeof n=="function"){Ut.callback=null,We=Ut.priorityLevel;var l=n(Ut.expirationTime<=e);if(e=xe.unstable_now(),typeof l=="function"){Ut.callback=l,Cu(e),t=!0;break t}Ut===sa(ba)&&wu(ba),Cu(e)}else wu(ba);Ut=sa(ba)}if(Ut!==null)t=!0;else{var o=sa($a);o!==null&&$d(Yd,o.startTime-e),t=!1}}break e}finally{Ut=null,We=a,Xd=!1}t=void 0}}finally{t?El():Ml=!1}}}var El;typeof Lh=="function"?El=function(){Lh(jd)}:typeof MessageChannel<"u"?(Gd=new MessageChannel,Sh=Gd.port2,Gd.port1.onmessage=jd,El=function(){Sh.postMessage(null)}):El=function(){Ch(jd,0)};var Gd,Sh;function $d(e,t){Vo=Ch(function(){e(xe.unstable_now())},t)}xe.unstable_IdlePriority=5;xe.unstable_ImmediatePriority=1;xe.unstable_LowPriority=4;xe.unstable_NormalPriority=3;xe.unstable_Profiling=null;xe.unstable_UserBlockingPriority=2;xe.unstable_cancelCallback=function(e){e.callback=null};xe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ih=0<e?Math.floor(1e3/e):5};xe.unstable_getCurrentPriorityLevel=function(){return We};xe.unstable_next=function(e){switch(We){case 1:case 2:case 3:var t=3;break;default:t=We}var a=We;We=t;try{return e()}finally{We=a}};xe.unstable_requestPaint=function(){Kd=!0};xe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=We;We=e;try{return t()}finally{We=a}};xe.unstable_scheduleCallback=function(e,t,a){var n=xe.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=a+l,e={id:HS++,callback:t,priorityLevel:e,startTime:a,expirationTime:l,sortIndex:-1},a>n?(e.sortIndex=a,Vd($a,e),sa(ba)===null&&e===sa($a)&&(Go?(wh(Vo),Vo=-1):Go=!0,$d(Yd,a-n))):(e.sortIndex=l,Vd(ba,e),jo||Xd||(jo=!0,Ml||(Ml=!0,El()))),e};xe.unstable_shouldYield=Eh;xe.unstable_wrapCallback=function(e){var t=We;return function(){var a=We;We=t;try{return e.apply(this,arguments)}finally{We=a}}}});var Dh=ua((ok,Ah)=>{"use strict";Ah.exports=Mh()});var Nh=ua(ot=>{"use strict";/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var PS=q();function Th(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function Za(){}var lt={d:{f:Za,r:function(){throw Error(Th(522))},D:Za,C:Za,L:Za,m:Za,X:Za,S:Za,M:Za},p:0,findDOMNode:null},FS=Symbol.for("react.portal");function jS(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:FS,key:n==null?null:""+n,children:e,containerInfo:t,implementation:a}}var Xo=PS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Iu(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt;ot.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Th(299));return jS(e,t,null,a)};ot.flushSync=function(e){var t=Xo.T,a=lt.p;try{if(Xo.T=null,lt.p=2,e)return e()}finally{Xo.T=t,lt.p=a,lt.d.f()}};ot.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,lt.d.C(e,t))};ot.prefetchDNS=function(e){typeof e=="string"&&lt.d.D(e)};ot.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,n=Iu(a,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?lt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:l,fetchPriority:o}):a==="script"&&lt.d.X(e,{crossOrigin:n,integrity:l,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ot.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Iu(t.as,t.crossOrigin);lt.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&lt.d.M(e)};ot.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,n=Iu(a,t.crossOrigin);lt.d.L(e,a,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ot.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Iu(t.as,t.crossOrigin);lt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else lt.d.m(e)};ot.requestFormReset=function(e){lt.d.r(e)};ot.unstable_batchedUpdates=function(e,t){return e(t)};ot.useFormState=function(e,t,a){return Xo.H.useFormState(e,t,a)};ot.useFormStatus=function(){return Xo.H.useHostTransitionStatus()};ot.version="19.2.7"});var ea=ua((ik,Bh)=>{"use strict";function Rh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rh)}catch(e){console.error(e)}}Rh(),Bh.exports=Nh()});var Xx=ua(Zs=>{"use strict";/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _e=Dh(),r0=q(),GS=ea();function k(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function i0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nr(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function u0(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 s0(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Oh(e){if(Nr(e)!==e)throw Error(k(188))}function VS(e){var t=e.alternate;if(!t){if(t=Nr(e),t===null)throw Error(k(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var o=l.alternate;if(o===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===a)return Oh(l),e;if(o===n)return Oh(l),t;o=o.sibling}throw Error(k(188))}if(a.return!==n.return)a=l,n=o;else{for(var r=!1,i=l.child;i;){if(i===a){r=!0,a=l,n=o;break}if(i===n){r=!0,n=l,a=o;break}i=i.sibling}if(!r){for(i=o.child;i;){if(i===a){r=!0,a=o,n=l;break}if(i===n){r=!0,n=o,a=l;break}i=i.sibling}if(!r)throw Error(k(189))}}if(a.alternate!==n)throw Error(k(190))}if(a.tag!==3)throw Error(k(188));return a.stateNode.current===a?e:t}function d0(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d0(e),t!==null)return t;e=e.sibling}return null}var ge=Object.assign,XS=Symbol.for("react.element"),ku=Symbol.for("react.transitional.element"),er=Symbol.for("react.portal"),Bl=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),Ac=Symbol.for("react.profiler"),f0=Symbol.for("react.consumer"),Ma=Symbol.for("react.context"),If=Symbol.for("react.forward_ref"),Dc=Symbol.for("react.suspense"),Tc=Symbol.for("react.suspense_list"),kf=Symbol.for("react.memo"),Qa=Symbol.for("react.lazy"),Nc=Symbol.for("react.activity"),KS=Symbol.for("react.memo_cache_sentinel"),_h=Symbol.iterator;function Ko(e){return e===null||typeof e!="object"?null:(e=_h&&e[_h]||e["@@iterator"],typeof e=="function"?e:null)}var YS=Symbol.for("react.client.reference");function Rc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===YS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bl:return"Fragment";case Ac:return"Profiler";case c0:return"StrictMode";case Dc:return"Suspense";case Tc:return"SuspenseList";case Nc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case er:return"Portal";case Ma:return e.displayName||"Context";case f0:return(e._context.displayName||"Context")+".Consumer";case If: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:Rc(e.type)||"Memo";case Qa:t=e._payload,e=e._init;try{return Rc(e(t))}catch{}}return null}var tr=Array.isArray,U=r0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=GS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$n={pending:!1,data:null,method:null,action:null},Bc=[],Ol=-1;function pa(e){return{current:e}}function He(e){0>Ol||(e.current=Bc[Ol],Bc[Ol]=null,Ol--)}function ce(e,t){Ol++,Bc[Ol]=e.current,e.current=t}var ma=pa(null),xr=pa(null),sn=pa(null),os=pa(null);function rs(e,t){switch(ce(sn,t),ce(xr,e),ce(ma,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jg(t),e=Nx(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}He(ma),ce(ma,e)}function Jl(){He(ma),He(xr),He(sn)}function Oc(e){e.memoizedState!==null&&ce(os,e);var t=ma.current,a=Nx(t,e.type);t!==a&&(ce(xr,e),ce(ma,a))}function is(e){xr.current===e&&(He(ma),He(xr)),os.current===e&&(He(os),Ar._currentValue=$n)}var Zd,zh;function Vn(e){if(Zd===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Zd=t&&t[1]||"",zh=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zd+e+zh}var Qd=!1;function Wd(e,t){if(!e||Qd)return"";Qd=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(h){var p=h}Reflect.construct(e,[],m)}else{try{m.call()}catch(h){p=h}e.call(m.prototype)}}else{try{throw Error()}catch(h){p=h}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(h){if(h&&p&&typeof h.stack=="string")return[h.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),r=o[0],i=o[1];if(r&&i){var u=r.split(`
`),s=i.split(`
`);for(l=n=0;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;for(;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;if(n===u.length||l===s.length)for(n=u.length-1,l=s.length-1;1<=n&&0<=l&&u[n]!==s[l];)l--;for(;1<=n&&0<=l;n--,l--)if(u[n]!==s[l]){if(n!==1||l!==1)do if(n--,l--,0>l||u[n]!==s[l]){var f=`
`+u[n].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=n&&0<=l);break}}}finally{Qd=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Vn(a):""}function $S(e,t){switch(e.tag){case 26:case 27:case 5:return Vn(e.type);case 16:return Vn("Lazy");case 13:return e.child!==t&&t!==null?Vn("Suspense Fallback"):Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 15:return Wd(e.type,!1);case 11:return Wd(e.type.render,!1);case 1:return Wd(e.type,!0);case 31:return Vn("Activity");default:return""}}function qh(e){try{var t="",a=null;do t+=$S(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var _c=Object.prototype.hasOwnProperty,Ef=_e.unstable_scheduleCallback,Jd=_e.unstable_cancelCallback,ZS=_e.unstable_shouldYield,QS=_e.unstable_requestPaint,Dt=_e.unstable_now,WS=_e.unstable_getCurrentPriorityLevel,m0=_e.unstable_ImmediatePriority,p0=_e.unstable_UserBlockingPriority,us=_e.unstable_NormalPriority,JS=_e.unstable_LowPriority,h0=_e.unstable_IdlePriority,e1=_e.log,t1=_e.unstable_setDisableYieldValue,Rr=null,Tt=null;function nn(e){if(typeof e1=="function"&&t1(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(Rr,e)}catch{}}var Nt=Math.clz32?Math.clz32:l1,a1=Math.log,n1=Math.LN2;function l1(e){return e>>>=0,e===0?32:31-(a1(e)/n1|0)|0}var Eu=256,Mu=262144,Au=4194304;function Xn(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Bs(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,o=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var i=n&134217727;return i!==0?(n=i&~o,n!==0?l=Xn(n):(r&=i,r!==0?l=Xn(r):a||(a=i&~e,a!==0&&(l=Xn(a))))):(i=n&~o,i!==0?l=Xn(i):r!==0?l=Xn(r):a||(a=n&~e,a!==0&&(l=Xn(a)))),l===0?0:t!==0&&t!==l&&(t&o)===0&&(o=l&-l,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:l}function Br(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function o1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function g0(){var e=Au;return Au<<=1,(Au&62914560)===0&&(Au=4194304),e}function ec(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Or(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function r1(e,t,a,n,l,o){var r=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(a=r&~a;0<a;){var f=31-Nt(a),m=1<<f;i[f]=0,u[f]=-1;var p=s[f];if(p!==null)for(s[f]=null,f=0;f<p.length;f++){var h=p[f];h!==null&&(h.lane&=-536870913)}a&=~m}n!==0&&y0(e,n,0),o!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=o&~(r&~t))}function y0(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Nt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function x0(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Nt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function v0(e,t){var a=t&-t;return a=(a&42)!==0?1:Mf(a),(a&(e.suspendedLanes|t))!==0?0:a}function Mf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Af(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function b0(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:jx(e.type))}function Uh(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Sn=Math.random().toString(36).slice(2),Ke="__reactFiber$"+Sn,pt="__reactProps$"+Sn,co="__reactContainer$"+Sn,zc="__reactEvents$"+Sn,i1="__reactListeners$"+Sn,u1="__reactHandles$"+Sn,Hh="__reactResources$"+Sn,_r="__reactMarker$"+Sn;function Df(e){delete e[Ke],delete e[pt],delete e[zc],delete e[i1],delete e[u1]}function _l(e){var t=e[Ke];if(t)return t;for(var a=e.parentNode;a;){if(t=a[co]||a[Ke]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Yg(e);e!==null;){if(a=e[Ke])return a;e=Yg(e)}return t}e=a,a=e.parentNode}return null}function fo(e){if(e=e[Ke]||e[co]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ar(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(k(33))}function Xl(e){var t=e[Hh];return t||(t=e[Hh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ue(e){e[_r]=!0}var L0=new Set,S0={};function ol(e,t){eo(e,t),eo(e+"Capture",t)}function eo(e,t){for(S0[e]=t,e=0;e<t.length;e++)L0.add(t[e])}var s1=RegExp("^[: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]*$"),Ph={},Fh={};function d1(e){return _c.call(Fh,e)?!0:_c.call(Ph,e)?!1:s1.test(e)?Fh[e]=!0:(Ph[e]=!0,!1)}function Gu(e,t,a){if(d1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Du(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function La(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function C0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c1(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(r){a=""+r,o.call(this,r)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qc(e){if(!e._valueTracker){var t=C0(e)?"checked":"value";e._valueTracker=c1(e,t,""+e[t])}}function w0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=C0(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function ss(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}}var f1=/[\n"\\]/g;function Gt(e){return e.replace(f1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uc(e,t,a,n,l,o,r,i){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pt(t)):e.value!==""+Pt(t)&&(e.value=""+Pt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Hc(e,r,Pt(t)):a!=null?Hc(e,r,Pt(a)):n!=null&&e.removeAttribute("value"),l==null&&o!=null&&(e.defaultChecked=!!o),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+Pt(i):e.removeAttribute("name")}function I0(e,t,a,n,l,o,r,i){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){qc(e);return}a=a!=null?""+Pt(a):"",t=t!=null?""+Pt(t):a,i||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=i?e.checked:!!n,e.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),qc(e)}function Hc(e,t,a){t==="number"&&ss(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Kl(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Pt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function k0(e,t,a){if(t!=null&&(t=""+Pt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Pt(a):""}function E0(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(k(92));if(tr(n)){if(1<n.length)throw Error(k(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Pt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),qc(e)}function to(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var m1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jh(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||m1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function M0(e,t,a){if(t!=null&&typeof t!="object")throw Error(k(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var l in t)n=t[l],t.hasOwnProperty(l)&&a[l]!==n&&jh(e,l,n)}else for(var o in t)t.hasOwnProperty(o)&&jh(e,o,t[o])}function Tf(e){if(e.indexOf("-")===-1)return!1;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 p1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),h1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vu(e){return h1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Aa(){}var Pc=null;function Nf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zl=null,Yl=null;function Gh(e){var t=fo(e);if(t&&(e=t.stateNode)){var a=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var l=n[pt]||null;if(!l)throw Error(k(90));Uc(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&w0(n)}break e;case"textarea":k0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kl(e,!!a.multiple,t,!1)}}}var tc=!1;function A0(e,t,a){if(tc)return e(t,a);tc=!0;try{var n=e(t);return n}finally{if(tc=!1,(zl!==null||Yl!==null)&&(Xs(),zl&&(t=zl,e=Yl,Yl=zl=null,Gh(t),e)))for(t=0;t<e.length;t++)Gh(e[t])}}function vr(e,t){var a=e.stateNode;if(a===null)return null;var n=a[pt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(k(231,t,typeof a));return a}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fc=!1;if(Ba)try{Al={},Object.defineProperty(Al,"passive",{get:function(){Fc=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{Fc=!1}var Al,ln=null,Rf=null,Xu=null;function D0(){if(Xu)return Xu;var e,t=Rf,a=t.length,n,l="value"in ln?ln.value:ln.textContent,o=l.length;for(e=0;e<a&&t[e]===l[e];e++);var r=a-e;for(n=1;n<=r&&t[a-n]===l[o-n];n++);return Xu=l.slice(e,1<n?1-n: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 Tu(){return!0}function Vh(){return!1}function ht(e){function t(a,n,l,o,r){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=o,this.target=r,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Tu:Vh,this.isPropagationStopped=Vh,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Tu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Tu)},persist:function(){},isPersistent:Tu}),t}var rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Os=ht(rl),zr=ge({},rl,{view:0,detail:0}),g1=ht(zr),ac,nc,Yo,_s=ge({},zr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bf,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!==Yo&&(Yo&&e.type==="mousemove"?(ac=e.screenX-Yo.screenX,nc=e.screenY-Yo.screenY):nc=ac=0,Yo=e),ac)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),Xh=ht(_s),y1=ge({},_s,{dataTransfer:0}),x1=ht(y1),v1=ge({},zr,{relatedTarget:0}),lc=ht(v1),b1=ge({},rl,{animationName:0,elapsedTime:0,pseudoElement:0}),L1=ht(b1),S1=ge({},rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C1=ht(S1),w1=ge({},rl,{data:0}),Kh=ht(w1),I1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k1={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"},E1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E1[e])?!!t[e]:!1}function Bf(){return M1}var A1=ge({},zr,{key:function(e){if(e.key){var t=I1[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"?k1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bf,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}}),D1=ht(A1),T1=ge({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yh=ht(T1),N1=ge({},zr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bf}),R1=ht(N1),B1=ge({},rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),O1=ht(B1),_1=ge({},_s,{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}),z1=ht(_1),q1=ge({},rl,{newState:0,oldState:0}),U1=ht(q1),H1=[9,13,27,32],Of=Ba&&"CompositionEvent"in window,or=null;Ba&&"documentMode"in document&&(or=document.documentMode);var P1=Ba&&"TextEvent"in window&&!or,T0=Ba&&(!Of||or&&8<or&&11>=or),$h=" ",Zh=!1;function N0(e,t){switch(e){case"keyup":return H1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function F1(e,t){switch(e){case"compositionend":return R0(t);case"keypress":return t.which!==32?null:(Zh=!0,$h);case"textInput":return e=t.data,e===$h&&Zh?null:e;default:return null}}function j1(e,t){if(ql)return e==="compositionend"||!Of&&N0(e,t)?(e=D0(),Xu=Rf=ln=null,ql=!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 T0&&t.locale!=="ko"?null:t.data;default:return null}}var G1={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 Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G1[e.type]:t==="textarea"}function B0(e,t,a,n){zl?Yl?Yl.push(n):Yl=[n]:zl=n,t=Es(t,"onChange"),0<t.length&&(a=new Os("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var rr=null,br=null;function V1(e){Ax(e,0)}function zs(e){var t=ar(e);if(w0(t))return e}function Wh(e,t){if(e==="change")return t}var O0=!1;Ba&&(Ba?(Ru="oninput"in document,Ru||(oc=document.createElement("div"),oc.setAttribute("oninput","return;"),Ru=typeof oc.oninput=="function"),Nu=Ru):Nu=!1,O0=Nu&&(!document.documentMode||9<document.documentMode));var Nu,Ru,oc;function Jh(){rr&&(rr.detachEvent("onpropertychange",_0),br=rr=null)}function _0(e){if(e.propertyName==="value"&&zs(br)){var t=[];B0(t,br,e,Nf(e)),A0(V1,t)}}function X1(e,t,a){e==="focusin"?(Jh(),rr=t,br=a,rr.attachEvent("onpropertychange",_0)):e==="focusout"&&Jh()}function K1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zs(br)}function Y1(e,t){if(e==="click")return zs(t)}function $1(e,t){if(e==="input"||e==="change")return zs(t)}function Z1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:Z1;function Lr(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!_c.call(t,l)||!Bt(e[l],t[l]))return!1}return!0}function eg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tg(e,t){var a=eg(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=eg(a)}}function z0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?z0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ss(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ss(e.document)}return t}function _f(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")}var Q1=Ba&&"documentMode"in document&&11>=document.documentMode,Ul=null,jc=null,ir=null,Gc=!1;function ag(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Gc||Ul==null||Ul!==ss(n)||(n=Ul,"selectionStart"in n&&_f(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ir&&Lr(ir,n)||(ir=n,n=Es(jc,"onSelect"),0<n.length&&(t=new Os("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ul)))}function Gn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Hl={animationend:Gn("Animation","AnimationEnd"),animationiteration:Gn("Animation","AnimationIteration"),animationstart:Gn("Animation","AnimationStart"),transitionrun:Gn("Transition","TransitionRun"),transitionstart:Gn("Transition","TransitionStart"),transitioncancel:Gn("Transition","TransitionCancel"),transitionend:Gn("Transition","TransitionEnd")},rc={},U0={};Ba&&(U0=document.createElement("div").style,"AnimationEvent"in window||(delete Hl.animationend.animation,delete Hl.animationiteration.animation,delete Hl.animationstart.animation),"TransitionEvent"in window||delete Hl.transitionend.transition);function il(e){if(rc[e])return rc[e];if(!Hl[e])return e;var t=Hl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in U0)return rc[e]=t[a];return e}var H0=il("animationend"),P0=il("animationiteration"),F0=il("animationstart"),W1=il("transitionrun"),J1=il("transitionstart"),eC=il("transitioncancel"),j0=il("transitionend"),G0=new Map,Vc="abort auxClick beforeToggle 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(" ");Vc.push("scrollEnd");function na(e,t){G0.set(e,t),ol(t,[e])}var ds=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],Pl=0,zf=0;function qs(){for(var e=Pl,t=zf=Pl=0;t<e;){var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var o=Ht[t];if(Ht[t++]=null,n!==null&&l!==null){var r=n.pending;r===null?l.next=l:(l.next=r.next,r.next=l),n.pending=l}o!==0&&V0(a,l,o)}}function Us(e,t,a,n){Ht[Pl++]=e,Ht[Pl++]=t,Ht[Pl++]=a,Ht[Pl++]=n,zf|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function qf(e,t,a,n){return Us(e,t,a,n),cs(e)}function ul(e,t){return Us(e,null,null,t),cs(e)}function V0(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,o=e.return;o!==null;)o.childLanes|=a,n=o.alternate,n!==null&&(n.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(l=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,l&&t!==null&&(l=31-Nt(a),e=o.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),o):null}function cs(e){if(50<gr)throw gr=0,mf=null,Error(k(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fl={};function tC(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,a,n){return new tC(e,t,a,n)}function Uf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ta(e,t){var a=e.alternate;return a===null?(a=Mt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function X0(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yu(e,t,a,n,l,o){var r=0;if(n=e,typeof e=="function")Uf(e)&&(r=1);else if(typeof e=="string")r=lw(e,a,ma.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Nc:return e=Mt(31,a,t,l),e.elementType=Nc,e.lanes=o,e;case Bl:return Zn(a.children,l,o,t);case c0:r=8,l|=24;break;case Ac:return e=Mt(12,a,t,l|2),e.elementType=Ac,e.lanes=o,e;case Dc:return e=Mt(13,a,t,l),e.elementType=Dc,e.lanes=o,e;case Tc:return e=Mt(19,a,t,l),e.elementType=Tc,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ma:r=10;break e;case f0:r=9;break e;case If:r=11;break e;case kf:r=14;break e;case Qa:r=16,n=null;break e}r=29,a=Error(k(130,e===null?"null":typeof e,"")),n=null}return t=Mt(r,a,t,l),t.elementType=e,t.type=n,t.lanes=o,t}function Zn(e,t,a,n){return e=Mt(7,e,n,t),e.lanes=a,e}function ic(e,t,a){return e=Mt(6,e,null,t),e.lanes=a,e}function K0(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function uc(e,t,a){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ng=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=ng.get(e);return a!==void 0?a:(t={value:e,source:t,stack:qh(t)},ng.set(e,t),t)}return{value:e,source:t,stack:qh(t)}}var jl=[],Gl=0,fs=null,Sr=0,Ft=[],jt=0,xn=null,da=1,ca="";function ka(e,t){jl[Gl++]=Sr,jl[Gl++]=fs,fs=e,Sr=t}function Y0(e,t,a){Ft[jt++]=da,Ft[jt++]=ca,Ft[jt++]=xn,xn=e;var n=da;e=ca;var l=32-Nt(n)-1;n&=~(1<<l),a+=1;var o=32-Nt(t)+l;if(30<o){var r=l-l%5;o=(n&(1<<r)-1).toString(32),n>>=r,l-=r,da=1<<32-Nt(t)+l|a<<l|n,ca=o+e}else da=1<<o|a<<l|n,ca=e}function Hf(e){e.return!==null&&(ka(e,1),Y0(e,1,0))}function Pf(e){for(;e===fs;)fs=jl[--Gl],jl[Gl]=null,Sr=jl[--Gl],jl[Gl]=null;for(;e===xn;)xn=Ft[--jt],Ft[jt]=null,ca=Ft[--jt],Ft[jt]=null,da=Ft[--jt],Ft[jt]=null}function $0(e,t){Ft[jt++]=da,Ft[jt++]=ca,Ft[jt++]=xn,da=t.id,ca=t.overflow,xn=e}var Ye=null,he=null,X=!1,dn=null,Xt=!1,Xc=Error(k(519));function vn(e){var t=Error(k(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cr(Vt(t,e)),Xc}function lg(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Ke]=e,t[pt]=n,a){case"dialog":j("cancel",t),j("close",t);break;case"iframe":case"object":case"embed":j("load",t);break;case"video":case"audio":for(a=0;a<Er.length;a++)j(Er[a],t);break;case"source":j("error",t);break;case"img":case"image":case"link":j("error",t),j("load",t);break;case"details":j("toggle",t);break;case"input":j("invalid",t),I0(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":j("invalid",t);break;case"textarea":j("invalid",t),E0(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Tx(t.textContent,a)?(n.popover!=null&&(j("beforetoggle",t),j("toggle",t)),n.onScroll!=null&&j("scroll",t),n.onScrollEnd!=null&&j("scrollend",t),n.onClick!=null&&(t.onclick=Aa),t=!0):t=!1,t||vn(e,!0)}function og(e){for(Ye=e.return;Ye;)switch(Ye.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:Ye=Ye.return}}function Dl(e){if(e!==Ye)return!1;if(!X)return og(e),X=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||xf(e.type,e.memoizedProps)),a=!a),a&&he&&vn(e),og(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));he=Kg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));he=Kg(e)}else t===27?(t=he,Cn(e.type)?(e=Sf,Sf=null,he=e):he=t):he=Ye?Yt(e.stateNode.nextSibling):null;return!0}function el(){he=Ye=null,X=!1}function sc(){var e=dn;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),dn=null),e}function Cr(e){dn===null?dn=[e]:dn.push(e)}var Kc=pa(null),sl=null,Da=null;function Ja(e,t,a){ce(Kc,t._currentValue),t._currentValue=a}function Na(e){e._currentValue=Kc.current,He(Kc)}function Yc(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function $c(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var o=l.dependencies;if(o!==null){var r=l.child;o=o.firstContext;e:for(;o!==null;){var i=o;o=l;for(var u=0;u<t.length;u++)if(i.context===t[u]){o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Yc(o.return,a,e),n||(r=null);break e}o=i.next}}else if(l.tag===18){if(r=l.return,r===null)throw Error(k(341));r.lanes|=a,o=r.alternate,o!==null&&(o.lanes|=a),Yc(r,a,e),r=null}else r=l.child;if(r!==null)r.return=l;else for(r=l;r!==null;){if(r===e){r=null;break}if(l=r.sibling,l!==null){l.return=r.return,r=l;break}r=r.return}l=r}}function mo(e,t,a,n){e=null;for(var l=t,o=!1;l!==null;){if(!o){if((l.flags&524288)!==0)o=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var r=l.alternate;if(r===null)throw Error(k(387));if(r=r.memoizedProps,r!==null){var i=l.type;Bt(l.pendingProps.value,r.value)||(e!==null?e.push(i):e=[i])}}else if(l===os.current){if(r=l.alternate,r===null)throw Error(k(387));r.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ar):e=[Ar])}l=l.return}e!==null&&$c(t,e,a,n),t.flags|=262144}function ms(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){sl=e,Da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Z0(sl,e)}function Bu(e,t){return sl===null&&tl(e),Z0(e,t)}function Z0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Da===null){if(e===null)throw Error(k(308));Da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Da=Da.next=t;return a}var aC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},nC=_e.unstable_scheduleCallback,lC=_e.unstable_NormalPriority,De={$$typeof:Ma,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ff(){return{controller:new aC,data:new Map,refCount:0}}function qr(e){e.refCount--,e.refCount===0&&nC(lC,function(){e.controller.abort()})}var ur=null,Zc=0,ao=0,$l=null;function oC(e,t){if(ur===null){var a=ur=[];Zc=0,ao=mm(),$l={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Zc++,t.then(rg,rg),t}function rg(){if(--Zc===0&&ur!==null){$l!==null&&($l.status="fulfilled");var e=ur;ur=null,ao=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rC(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var ig=U.S;U.S=function(e,t){dx=Dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&oC(e,t),ig!==null&&ig(e,t)};var Qn=pa(null);function jf(){var e=Qn.current;return e!==null?e:re.pooledCache}function $u(e,t){t===null?ce(Qn,Qn.current):ce(Qn,t.pool)}function Q0(){var e=jf();return e===null?null:{parent:De._currentValue,pool:e}}var po=Error(k(460)),Gf=Error(k(474)),Hs=Error(k(542)),ps={then:function(){}};function ug(e){return e=e.status,e==="fulfilled"||e==="rejected"}function W0(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Aa,Aa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dg(e),e;default:if(typeof t.status=="string")t.then(Aa,Aa);else{if(e=re,e!==null&&100<e.shellSuspendCounter)throw Error(k(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dg(e),e}throw Wn=t,po}}function Kn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Wn=a,po):a}}var Wn=null;function sg(){if(Wn===null)throw Error(k(459));var e=Wn;return Wn=null,e}function dg(e){if(e===po||e===Hs)throw Error(k(483))}var Zl=null,wr=0;function Ou(e){var t=wr;return wr+=1,Zl===null&&(Zl=[]),W0(Zl,e,t)}function $o(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _u(e,t){throw t.$$typeof===XS?Error(k(525)):(e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function J0(e){function t(g,y){if(e){var v=g.deletions;v===null?(g.deletions=[y],g.flags|=16):v.push(y)}}function a(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function n(g){for(var y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function l(g,y){return g=Ta(g,y),g.index=0,g.sibling=null,g}function o(g,y,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<y?(g.flags|=67108866,y):v):(g.flags|=67108866,y)):(g.flags|=1048576,y)}function r(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function i(g,y,v,L){return y===null||y.tag!==6?(y=ic(v,g.mode,L),y.return=g,y):(y=l(y,v),y.return=g,y)}function u(g,y,v,L){var M=v.type;return M===Bl?f(g,y,v.props.children,L,v.key):y!==null&&(y.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Qa&&Kn(M)===y.type)?(y=l(y,v.props),$o(y,v),y.return=g,y):(y=Yu(v.type,v.key,v.props,null,g.mode,L),$o(y,v),y.return=g,y)}function s(g,y,v,L){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=uc(v,g.mode,L),y.return=g,y):(y=l(y,v.children||[]),y.return=g,y)}function f(g,y,v,L,M){return y===null||y.tag!==7?(y=Zn(v,g.mode,L,M),y.return=g,y):(y=l(y,v),y.return=g,y)}function m(g,y,v){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=ic(""+y,g.mode,v),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ku:return v=Yu(y.type,y.key,y.props,null,g.mode,v),$o(v,y),v.return=g,v;case er:return y=uc(y,g.mode,v),y.return=g,y;case Qa:return y=Kn(y),m(g,y,v)}if(tr(y)||Ko(y))return y=Zn(y,g.mode,v,null),y.return=g,y;if(typeof y.then=="function")return m(g,Ou(y),v);if(y.$$typeof===Ma)return m(g,Bu(g,y),v);_u(g,y)}return null}function p(g,y,v,L){var M=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return M!==null?null:i(g,y,""+v,L);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ku:return v.key===M?u(g,y,v,L):null;case er:return v.key===M?s(g,y,v,L):null;case Qa:return v=Kn(v),p(g,y,v,L)}if(tr(v)||Ko(v))return M!==null?null:f(g,y,v,L,null);if(typeof v.then=="function")return p(g,y,Ou(v),L);if(v.$$typeof===Ma)return p(g,y,Bu(g,v),L);_u(g,v)}return null}function h(g,y,v,L,M){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return g=g.get(v)||null,i(y,g,""+L,M);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case ku:return g=g.get(L.key===null?v:L.key)||null,u(y,g,L,M);case er:return g=g.get(L.key===null?v:L.key)||null,s(y,g,L,M);case Qa:return L=Kn(L),h(g,y,v,L,M)}if(tr(L)||Ko(L))return g=g.get(v)||null,f(y,g,L,M,null);if(typeof L.then=="function")return h(g,y,v,Ou(L),M);if(L.$$typeof===Ma)return h(g,y,v,Bu(y,L),M);_u(y,L)}return null}function b(g,y,v,L){for(var M=null,A=null,I=y,N=y=0,T=null;I!==null&&N<v.length;N++){I.index>N?(T=I,I=null):T=I.sibling;var w=p(g,I,v[N],L);if(w===null){I===null&&(I=T);break}e&&I&&w.alternate===null&&t(g,I),y=o(w,y,N),A===null?M=w:A.sibling=w,A=w,I=T}if(N===v.length)return a(g,I),X&&ka(g,N),M;if(I===null){for(;N<v.length;N++)I=m(g,v[N],L),I!==null&&(y=o(I,y,N),A===null?M=I:A.sibling=I,A=I);return X&&ka(g,N),M}for(I=n(I);N<v.length;N++)T=h(I,g,N,v[N],L),T!==null&&(e&&T.alternate!==null&&I.delete(T.key===null?N:T.key),y=o(T,y,N),A===null?M=T:A.sibling=T,A=T);return e&&I.forEach(function(O){return t(g,O)}),X&&ka(g,N),M}function S(g,y,v,L){if(v==null)throw Error(k(151));for(var M=null,A=null,I=y,N=y=0,T=null,w=v.next();I!==null&&!w.done;N++,w=v.next()){I.index>N?(T=I,I=null):T=I.sibling;var O=p(g,I,w.value,L);if(O===null){I===null&&(I=T);break}e&&I&&O.alternate===null&&t(g,I),y=o(O,y,N),A===null?M=O:A.sibling=O,A=O,I=T}if(w.done)return a(g,I),X&&ka(g,N),M;if(I===null){for(;!w.done;N++,w=v.next())w=m(g,w.value,L),w!==null&&(y=o(w,y,N),A===null?M=w:A.sibling=w,A=w);return X&&ka(g,N),M}for(I=n(I);!w.done;N++,w=v.next())w=h(I,g,N,w.value,L),w!==null&&(e&&w.alternate!==null&&I.delete(w.key===null?N:w.key),y=o(w,y,N),A===null?M=w:A.sibling=w,A=w);return e&&I.forEach(function(te){return t(g,te)}),X&&ka(g,N),M}function x(g,y,v,L){if(typeof v=="object"&&v!==null&&v.type===Bl&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ku:e:{for(var M=v.key;y!==null;){if(y.key===M){if(M=v.type,M===Bl){if(y.tag===7){a(g,y.sibling),L=l(y,v.props.children),L.return=g,g=L;break e}}else if(y.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Qa&&Kn(M)===y.type){a(g,y.sibling),L=l(y,v.props),$o(L,v),L.return=g,g=L;break e}a(g,y);break}else t(g,y);y=y.sibling}v.type===Bl?(L=Zn(v.props.children,g.mode,L,v.key),L.return=g,g=L):(L=Yu(v.type,v.key,v.props,null,g.mode,L),$o(L,v),L.return=g,g=L)}return r(g);case er:e:{for(M=v.key;y!==null;){if(y.key===M)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){a(g,y.sibling),L=l(y,v.children||[]),L.return=g,g=L;break e}else{a(g,y);break}else t(g,y);y=y.sibling}L=uc(v,g.mode,L),L.return=g,g=L}return r(g);case Qa:return v=Kn(v),x(g,y,v,L)}if(tr(v))return b(g,y,v,L);if(Ko(v)){if(M=Ko(v),typeof M!="function")throw Error(k(150));return v=M.call(v),S(g,y,v,L)}if(typeof v.then=="function")return x(g,y,Ou(v),L);if(v.$$typeof===Ma)return x(g,y,Bu(g,v),L);_u(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,y!==null&&y.tag===6?(a(g,y.sibling),L=l(y,v),L.return=g,g=L):(a(g,y),L=ic(v,g.mode,L),L.return=g,g=L),r(g)):a(g,y)}return function(g,y,v,L){try{wr=0;var M=x(g,y,v,L);return Zl=null,M}catch(I){if(I===po||I===Hs)throw I;var A=Mt(29,I,null,g.mode);return A.lanes=L,A.return=g,A}}}var al=J0(!0),ey=J0(!1),Wa=!1;function Vf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function cn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fn(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=cs(e),V0(e,null,a),t}return Us(e,n,t,a),cs(e)}function sr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,x0(e,a)}}function dc(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var r={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?l=o=r:o=o.next=r,a=a.next}while(a!==null);o===null?l=o=t:o=o.next=t}else l=o=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Wc=!1;function dr(){if(Wc){var e=$l;if(e!==null)throw e}}function cr(e,t,a,n){Wc=!1;var l=e.updateQueue;Wa=!1;var o=l.firstBaseUpdate,r=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var u=i,s=u.next;u.next=null,r===null?o=s:r.next=s,r=u;var f=e.alternate;f!==null&&(f=f.updateQueue,i=f.lastBaseUpdate,i!==r&&(i===null?f.firstBaseUpdate=s:i.next=s,f.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;r=0,f=s=u=null,i=o;do{var p=i.lane&-536870913,h=p!==i.lane;if(h?(V&p)===p:(n&p)===p){p!==0&&p===ao&&(Wc=!0),f!==null&&(f=f.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var b=e,S=i;p=t;var x=a;switch(S.tag){case 1:if(b=S.payload,typeof b=="function"){m=b.call(x,m,p);break e}m=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=S.payload,p=typeof b=="function"?b.call(x,m,p):b,p==null)break e;m=ge({},m,p);break e;case 2:Wa=!0}}p=i.callback,p!==null&&(e.flags|=64,h&&(e.flags|=8192),h=l.callbacks,h===null?l.callbacks=[p]:h.push(p))}else h={lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},f===null?(s=f=h,u=m):f=f.next=h,r|=p;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;h=i,i=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);f===null&&(u=m),l.baseState=u,l.firstBaseUpdate=s,l.lastBaseUpdate=f,o===null&&(l.shared.lanes=0),Ln|=r,e.lanes=r,e.memoizedState=m}}function ty(e,t){if(typeof e!="function")throw Error(k(191,e));e.call(t)}function ay(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ty(a[e],t)}var no=pa(null),hs=pa(0);function cg(e,t){e=qa,ce(hs,e),ce(no,t),qa=e|t.baseLanes}function Jc(){ce(hs,qa),ce(no,no.current)}function Xf(){qa=hs.current,He(no),He(hs)}var Ot=pa(null),Kt=null;function en(e){var t=e.alternate;ce(ke,ke.current&1),ce(Ot,e),Kt===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(Kt=e)}function ef(e){ce(ke,ke.current),ce(Ot,e),Kt===null&&(Kt=e)}function ny(e){e.tag===22?(ce(ke,ke.current),ce(Ot,e),Kt===null&&(Kt=e)):tn(e)}function tn(){ce(ke,ke.current),ce(Ot,Ot.current)}function Et(e){He(Ot),Kt===e&&(Kt=null),He(ke)}var ke=pa(0);function gs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||bf(a)||Lf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Oa=0,F=null,ne=null,Me=null,ys=!1,Ql=!1,nl=!1,xs=0,Ir=0,Wl=null,iC=0;function Ce(){throw Error(k(321))}function Kf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Bt(e[a],t[a]))return!1;return!0}function Yf(e,t,a,n,l,o){return Oa=o,F=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?By:om,nl=!1,o=a(n,l),nl=!1,Ql&&(o=oy(t,a,n,l)),ly(e),o}function ly(e){U.H=kr;var t=ne!==null&&ne.next!==null;if(Oa=0,Me=ne=F=null,ys=!1,Ir=0,Wl=null,t)throw Error(k(300));e===null||Te||(e=e.dependencies,e!==null&&ms(e)&&(Te=!0))}function oy(e,t,a,n){F=e;var l=0;do{if(Ql&&(Wl=null),Ir=0,Ql=!1,25<=l)throw Error(k(301));if(l+=1,Me=ne=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}U.H=Oy,o=t(a,n)}while(Ql);return o}function uC(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Ur(t):t,e=e.useState()[0],(ne!==null?ne.memoizedState:null)!==e&&(F.flags|=1024),t}function $f(){var e=xs!==0;return xs=0,e}function Zf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Qf(e){if(ys){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ys=!1}Oa=0,Me=ne=F=null,Ql=!1,Ir=xs=0,Wl=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?F.memoizedState=Me=e:Me=Me.next=e,Me}function Ee(){if(ne===null){var e=F.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=Me===null?F.memoizedState:Me.next;if(t!==null)Me=t,ne=e;else{if(e===null)throw F.alternate===null?Error(k(467)):Error(k(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},Me===null?F.memoizedState=Me=e:Me=Me.next=e}return Me}function Ps(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ur(e){var t=Ir;return Ir+=1,Wl===null&&(Wl=[]),e=W0(Wl,e,t),t=F,(Me===null?t.memoizedState:Me.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?By:om),e}function Fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ur(e);if(e.$$typeof===Ma)return $e(e)}throw Error(k(438,String(e)))}function Wf(e){var t=null,a=F.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=F.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ps(),F.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=KS;return t.index++,a}function _a(e,t){return typeof t=="function"?t(e):t}function Zu(e){var t=Ee();return Jf(t,ne,e)}function Jf(e,t,a){var n=e.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=a;var l=e.baseQueue,o=n.pending;if(o!==null){if(l!==null){var r=l.next;l.next=o.next,o.next=r}t.baseQueue=l=o,n.pending=null}if(o=e.baseState,l===null)e.memoizedState=o;else{t=l.next;var i=r=null,u=null,s=t,f=!1;do{var m=s.lane&-536870913;if(m!==s.lane?(V&m)===m:(Oa&m)===m){var p=s.revertLane;if(p===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),m===ao&&(f=!0);else if((Oa&p)===p){s=s.next,p===ao&&(f=!0);continue}else m={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(i=u=m,r=o):u=u.next=m,F.lanes|=p,Ln|=p;m=s.action,nl&&a(o,m),o=s.hasEagerState?s.eagerState:a(o,m)}else p={lane:m,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(i=u=p,r=o):u=u.next=p,F.lanes|=m,Ln|=m;s=s.next}while(s!==null&&s!==t);if(u===null?r=o:u.next=i,!Bt(o,e.memoizedState)&&(Te=!0,f&&(a=$l,a!==null)))throw a;e.memoizedState=o,e.baseState=r,e.baseQueue=u,n.lastRenderedState=o}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function cc(e){var t=Ee(),a=t.queue;if(a===null)throw Error(k(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,o=t.memoizedState;if(l!==null){a.pending=null;var r=l=l.next;do o=e(o,r.action),r=r.next;while(r!==l);Bt(o,t.memoizedState)||(Te=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,n]}function ry(e,t,a){var n=F,l=Ee(),o=X;if(o){if(a===void 0)throw Error(k(407));a=a()}else a=t();var r=!Bt((ne||l).memoizedState,a);if(r&&(l.memoizedState=a,Te=!0),l=l.queue,em(sy.bind(null,n,l,e),[e]),l.getSnapshot!==t||r||Me!==null&&Me.memoizedState.tag&1){if(n.flags|=2048,lo(9,{destroy:void 0},uy.bind(null,n,l,a,t),null),re===null)throw Error(k(349));o||(Oa&127)!==0||iy(n,t,a)}return a}function iy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=F.updateQueue,t===null?(t=Ps(),F.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function uy(e,t,a,n){t.value=a,t.getSnapshot=n,dy(t)&&cy(e)}function sy(e,t,a){return a(function(){dy(t)&&cy(e)})}function dy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Bt(e,a)}catch{return!0}}function cy(e){var t=ul(e,2);t!==null&&mt(t,e,2)}function tf(e){var t=rt();if(typeof e=="function"){var a=e;if(e=a(),nl){nn(!0);try{a()}finally{nn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function fy(e,t,a,n){return e.baseState=a,Jf(e,ne,typeof n=="function"?n:_a)}function sC(e,t,a,n,l){if(Gs(e))throw Error(k(485));if(e=t.action,e!==null){var o={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){o.listeners.push(r)}};U.T!==null?a(!0):o.isTransition=!1,n(o),a=t.pending,a===null?(o.next=t.pending=o,my(t,o)):(o.next=a.next,t.pending=a.next=o)}}function my(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var o=U.T,r={};U.T=r;try{var i=a(l,n),u=U.S;u!==null&&u(r,i),fg(e,t,i)}catch(s){af(e,t,s)}finally{o!==null&&r.types!==null&&(o.types=r.types),U.T=o}}else try{o=a(l,n),fg(e,t,o)}catch(s){af(e,t,s)}}function fg(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){mg(e,t,n)},function(n){return af(e,t,n)}):mg(e,t,a)}function mg(e,t,a){t.status="fulfilled",t.value=a,py(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,my(e,a)))}function af(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,py(t),t=t.next;while(t!==n)}e.action=null}function py(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hy(e,t){return t}function pg(e,t){if(X){var a=re.formState;if(a!==null){e:{var n=F;if(X){if(he){t:{for(var l=he,o=Xt;l.nodeType!==8;){if(!o){l=null;break t}if(l=Yt(l.nextSibling),l===null){l=null;break t}}o=l.data,l=o==="F!"||o==="F"?l:null}if(l){he=Yt(l.nextSibling),n=l.data==="F!";break e}}vn(n)}n=!1}n&&(t=a[0])}}return a=rt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hy,lastRenderedState:t},a.queue=n,a=Ty.bind(null,F,n),n.dispatch=a,n=tf(!1),o=lm.bind(null,F,!1,n.queue),n=rt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=sC.bind(null,F,l,o,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function hg(e){var t=Ee();return gy(t,ne,e)}function gy(e,t,a){if(t=Jf(e,t,hy)[0],e=Zu(_a)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ur(t)}catch(r){throw r===po?Hs:r}else n=t;t=Ee();var l=t.queue,o=l.dispatch;return a!==t.memoizedState&&(F.flags|=2048,lo(9,{destroy:void 0},dC.bind(null,l,a),null)),[n,o,e]}function dC(e,t){e.action=t}function gg(e){var t=Ee(),a=ne;if(a!==null)return gy(t,a,e);Ee(),t=t.memoizedState,a=Ee();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function lo(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=F.updateQueue,t===null&&(t=Ps(),F.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function yy(){return Ee().memoizedState}function Qu(e,t,a,n){var l=rt();F.flags|=e,l.memoizedState=lo(1|t,{destroy:void 0},a,n===void 0?null:n)}function js(e,t,a,n){var l=Ee();n=n===void 0?null:n;var o=l.memoizedState.inst;ne!==null&&n!==null&&Kf(n,ne.memoizedState.deps)?l.memoizedState=lo(t,o,a,n):(F.flags|=e,l.memoizedState=lo(1|t,o,a,n))}function yg(e,t){Qu(8390656,8,e,t)}function em(e,t){js(2048,8,e,t)}function cC(e){F.flags|=4;var t=F.updateQueue;if(t===null)t=Ps(),F.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function xy(e){var t=Ee().memoizedState;return cC({ref:t,nextImpl:e}),function(){if(($&2)!==0)throw Error(k(440));return t.impl.apply(void 0,arguments)}}function vy(e,t){return js(4,2,e,t)}function by(e,t){return js(4,4,e,t)}function Ly(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sy(e,t,a){a=a!=null?a.concat([e]):null,js(4,4,Ly.bind(null,t,e),a)}function tm(){}function Cy(e,t){var a=Ee();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Kf(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function wy(e,t){var a=Ee();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Kf(t,n[1]))return n[0];if(n=e(),nl){nn(!0);try{e()}finally{nn(!1)}}return a.memoizedState=[n,t],n}function am(e,t,a){return a===void 0||(Oa&1073741824)!==0&&(V&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=fx(),F.lanes|=e,Ln|=e,a)}function Iy(e,t,a,n){return Bt(a,t)?a:no.current!==null?(e=am(e,a,n),Bt(e,t)||(Te=!0),e):(Oa&42)===0||(Oa&1073741824)!==0&&(V&261930)===0?(Te=!0,e.memoizedState=a):(e=fx(),F.lanes|=e,Ln|=e,t)}function ky(e,t,a,n,l){var o=Z.p;Z.p=o!==0&&8>o?o:8;var r=U.T,i={};U.T=i,lm(e,!1,t,a);try{var u=l(),s=U.S;if(s!==null&&s(i,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=rC(u,n);fr(e,t,f,Rt(e))}else fr(e,t,n,Rt(e))}catch(m){fr(e,t,{then:function(){},status:"rejected",reason:m},Rt())}finally{Z.p=o,r!==null&&i.types!==null&&(r.types=i.types),U.T=r}}function fC(){}function nf(e,t,a,n){if(e.tag!==5)throw Error(k(476));var l=Ey(e).queue;ky(e,l,t,$n,a===null?fC:function(){return My(e),a(n)})}function Ey(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$n,baseState:$n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:$n},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function My(e){var t=Ey(e);t.next===null&&(t=e.alternate.memoizedState),fr(e,t.next.queue,{},Rt())}function nm(){return $e(Ar)}function Ay(){return Ee().memoizedState}function Dy(){return Ee().memoizedState}function mC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=cn(a);var n=fn(t,e,a);n!==null&&(mt(n,t,a),sr(n,t,a)),t={cache:Ff()},e.payload=t;return}t=t.return}}function pC(e,t,a){var n=Rt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gs(e)?Ny(t,a):(a=qf(e,t,a,n),a!==null&&(mt(a,e,n),Ry(a,t,n)))}function Ty(e,t,a){var n=Rt();fr(e,t,a,n)}function fr(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))Ny(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var r=t.lastRenderedState,i=o(r,a);if(l.hasEagerState=!0,l.eagerState=i,Bt(i,r))return Us(e,t,l,0),re===null&&qs(),!1}catch{}if(a=qf(e,t,l,n),a!==null)return mt(a,e,n),Ry(a,t,n),!0}return!1}function lm(e,t,a,n){if(n={lane:2,revertLane:mm(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gs(e)){if(t)throw Error(k(479))}else t=qf(e,a,n,2),t!==null&&mt(t,e,2)}function Gs(e){var t=e.alternate;return e===F||t!==null&&t===F}function Ny(e,t){Ql=ys=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ry(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,x0(e,a)}}var kr={readContext:$e,use:Fs,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};kr.useEffectEvent=Ce;var By={readContext:$e,use:Fs,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:yg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Qu(4194308,4,Ly.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Qu(4194308,4,e,t)},useInsertionEffect:function(e,t){Qu(4,2,e,t)},useMemo:function(e,t){var a=rt();t=t===void 0?null:t;var n=e();if(nl){nn(!0);try{e()}finally{nn(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=rt();if(a!==void 0){var l=a(t);if(nl){nn(!0);try{a(t)}finally{nn(!1)}}}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=pC.bind(null,F,e),[n.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=tf(e);var t=e.queue,a=Ty.bind(null,F,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:tm,useDeferredValue:function(e,t){var a=rt();return am(a,e,t)},useTransition:function(){var e=tf(!1);return e=ky.bind(null,F,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=F,l=rt();if(X){if(a===void 0)throw Error(k(407));a=a()}else{if(a=t(),re===null)throw Error(k(349));(V&127)!==0||iy(n,t,a)}l.memoizedState=a;var o={value:a,getSnapshot:t};return l.queue=o,yg(sy.bind(null,n,o,e),[e]),n.flags|=2048,lo(9,{destroy:void 0},uy.bind(null,n,o,a,t),null),a},useId:function(){var e=rt(),t=re.identifierPrefix;if(X){var a=ca,n=da;a=(n&~(1<<32-Nt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xs++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=iC++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:nm,useFormState:pg,useActionState:pg,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=lm.bind(null,F,!0,a),a.dispatch=t,[e,t]},useMemoCache:Wf,useCacheRefresh:function(){return rt().memoizedState=mC.bind(null,F)},useEffectEvent:function(e){var t=rt(),a={impl:e};return t.memoizedState=a,function(){if(($&2)!==0)throw Error(k(440));return a.impl.apply(void 0,arguments)}}},om={readContext:$e,use:Fs,useCallback:Cy,useContext:$e,useEffect:em,useImperativeHandle:Sy,useInsertionEffect:vy,useLayoutEffect:by,useMemo:wy,useReducer:Zu,useRef:yy,useState:function(){return Zu(_a)},useDebugValue:tm,useDeferredValue:function(e,t){var a=Ee();return Iy(a,ne.memoizedState,e,t)},useTransition:function(){var e=Zu(_a)[0],t=Ee().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:ry,useId:Ay,useHostTransitionStatus:nm,useFormState:hg,useActionState:hg,useOptimistic:function(e,t){var a=Ee();return fy(a,ne,e,t)},useMemoCache:Wf,useCacheRefresh:Dy};om.useEffectEvent=xy;var Oy={readContext:$e,use:Fs,useCallback:Cy,useContext:$e,useEffect:em,useImperativeHandle:Sy,useInsertionEffect:vy,useLayoutEffect:by,useMemo:wy,useReducer:cc,useRef:yy,useState:function(){return cc(_a)},useDebugValue:tm,useDeferredValue:function(e,t){var a=Ee();return ne===null?am(a,e,t):Iy(a,ne.memoizedState,e,t)},useTransition:function(){var e=cc(_a)[0],t=Ee().memoizedState;return[typeof e=="boolean"?e:Ur(e),t]},useSyncExternalStore:ry,useId:Ay,useHostTransitionStatus:nm,useFormState:gg,useActionState:gg,useOptimistic:function(e,t){var a=Ee();return ne!==null?fy(a,ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Wf,useCacheRefresh:Dy};Oy.useEffectEvent=xy;function fc(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:ge({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var lf={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Rt(),l=cn(n);l.payload=t,a!=null&&(l.callback=a),t=fn(e,l,n),t!==null&&(mt(t,e,n),sr(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Rt(),l=cn(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=fn(e,l,n),t!==null&&(mt(t,e,n),sr(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),n=cn(a);n.tag=2,t!=null&&(n.callback=t),t=fn(e,n,a),t!==null&&(mt(t,e,a),sr(t,e,a))}};function xg(e,t,a,n,l,o,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,r):t.prototype&&t.prototype.isPureReactComponent?!Lr(a,n)||!Lr(l,o):!0}function vg(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&lf.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=ge({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function _y(e){ds(e)}function zy(e){console.error(e)}function qy(e){ds(e)}function vs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function bg(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function of(e,t,a){return a=cn(a),a.tag=3,a.payload={element:null},a.callback=function(){vs(e,t)},a}function Uy(e){return e=cn(e),e.tag=3,e}function Hy(e,t,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var o=n.value;e.payload=function(){return l(o)},e.callback=function(){bg(t,a,n)}}var r=a.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){bg(t,a,n),typeof l!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})})}function hC(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&mo(t,a,l,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return Kt===null?ws():a.alternate===null&&we===0&&(we=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===ps?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Cc(e,n,l)),!1;case 22:return a.flags|=65536,n===ps?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Cc(e,n,l)),!1}throw Error(k(435,a.tag))}return Cc(e,n,l),ws(),!1}if(X)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Xc&&(e=Error(k(422),{cause:n}),Cr(Vt(e,a)))):(n!==Xc&&(t=Error(k(423),{cause:n}),Cr(Vt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Vt(n,a),l=of(e.stateNode,n,l),dc(e,l),we!==4&&(we=2)),!1;var o=Error(k(520),{cause:n});if(o=Vt(o,a),hr===null?hr=[o]:hr.push(o),we!==4&&(we=2),t===null)return!0;n=Vt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=of(a.stateNode,n,e),dc(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(mn===null||!mn.has(o))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Uy(l),Hy(l,e,a,n),dc(a,l),!1}a=a.return}while(a!==null);return!1}var rm=Error(k(461)),Te=!1;function Xe(e,t,a,n){t.child=e===null?ey(t,null,a,n):al(t,e.child,a,n)}function Lg(e,t,a,n,l){a=a.render;var o=t.ref;if("ref"in n){var r={};for(var i in n)i!=="ref"&&(r[i]=n[i])}else r=n;return tl(t),n=Yf(e,t,a,r,o,l),i=$f(),e!==null&&!Te?(Zf(e,t,l),za(e,t,l)):(X&&i&&Hf(t),t.flags|=1,Xe(e,t,n,l),t.child)}function Sg(e,t,a,n,l){if(e===null){var o=a.type;return typeof o=="function"&&!Uf(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,Py(e,t,o,n,l)):(e=Yu(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!im(e,l)){var r=o.memoizedProps;if(a=a.compare,a=a!==null?a:Lr,a(r,n)&&e.ref===t.ref)return za(e,t,l)}return t.flags|=1,e=Ta(o,n),e.ref=t.ref,e.return=t,t.child=e}function Py(e,t,a,n,l){if(e!==null){var o=e.memoizedProps;if(Lr(o,n)&&e.ref===t.ref)if(Te=!1,t.pendingProps=n=o,im(e,l))(e.flags&131072)!==0&&(Te=!0);else return t.lanes=e.lanes,za(e,t,l)}return rf(e,t,a,n,l)}function Fy(e,t,a,n){var l=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(n=t.child=e.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~o}else n=0,t.child=null;return Cg(e,t,o,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$u(t,o!==null?o.cachePool:null),o!==null?cg(t,o):Jc(),ny(t);else return n=t.lanes=536870912,Cg(e,t,o!==null?o.baseLanes|a:a,a,n)}else o!==null?($u(t,o.cachePool),cg(t,o),tn(t),t.memoizedState=null):(e!==null&&$u(t,null),Jc(),tn(t));return Xe(e,t,l,a),t.child}function nr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Cg(e,t,a,n,l){var o=jf();return o=o===null?null:{parent:De._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&$u(t,null),Jc(),ny(t),e!==null&&mo(e,t,n,!0),t.childLanes=l,null}function Wu(e,t){return t=bs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wg(e,t,a){return al(t,e.child,null,a),e=Wu(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function gC(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(X){if(n.mode==="hidden")return e=Wu(t,n),t.lanes=536870912,nr(null,e);if(ef(t),(e=he)?(e=Bx(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xn!==null?{id:da,overflow:ca}:null,retryLane:536870912,hydrationErrors:null},a=K0(e),a.return=t,t.child=a,Ye=t,he=null)):e=null,e===null)throw vn(t);return t.lanes=536870912,null}return Wu(t,n)}var o=e.memoizedState;if(o!==null){var r=o.dehydrated;if(ef(t),l)if(t.flags&256)t.flags&=-257,t=wg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(k(558));else if(Te||mo(e,t,a,!1),l=(a&e.childLanes)!==0,Te||l){if(n=re,n!==null&&(r=v0(n,a),r!==0&&r!==o.retryLane))throw o.retryLane=r,ul(e,r),mt(n,e,r),rm;ws(),t=wg(e,t,a)}else e=o.treeContext,he=Yt(r.nextSibling),Ye=t,X=!0,dn=null,Xt=!1,e!==null&&$0(t,e),t=Wu(t,n),t.flags|=4096;return t}return e=Ta(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ju(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(k(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rf(e,t,a,n,l){return tl(t),a=Yf(e,t,a,n,void 0,l),n=$f(),e!==null&&!Te?(Zf(e,t,l),za(e,t,l)):(X&&n&&Hf(t),t.flags|=1,Xe(e,t,a,l),t.child)}function Ig(e,t,a,n,l,o){return tl(t),t.updateQueue=null,a=oy(t,n,a,l),ly(e),n=$f(),e!==null&&!Te?(Zf(e,t,o),za(e,t,o)):(X&&n&&Hf(t),t.flags|=1,Xe(e,t,a,o),t.child)}function kg(e,t,a,n,l){if(tl(t),t.stateNode===null){var o=Fl,r=a.contextType;typeof r=="object"&&r!==null&&(o=$e(r)),o=new a(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=lf,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},Vf(t),r=a.contextType,o.context=typeof r=="object"&&r!==null?$e(r):Fl,o.state=t.memoizedState,r=a.getDerivedStateFromProps,typeof r=="function"&&(fc(t,a,r,n),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(r=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),r!==o.state&&lf.enqueueReplaceState(o,o.state,null),cr(t,n,o,l),dr(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var i=t.memoizedProps,u=ll(a,i);o.props=u;var s=o.context,f=a.contextType;r=Fl,typeof f=="object"&&f!==null&&(r=$e(f));var m=a.getDerivedStateFromProps;f=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i||s!==r)&&vg(t,o,n,r),Wa=!1;var p=t.memoizedState;o.state=p,cr(t,n,o,l),dr(),s=t.memoizedState,i||p!==s||Wa?(typeof m=="function"&&(fc(t,a,m,n),s=t.memoizedState),(u=Wa||xg(t,a,u,n,p,s,r))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=r,n=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Qc(e,t),r=t.memoizedProps,f=ll(a,r),o.props=f,m=t.pendingProps,p=o.context,s=a.contextType,u=Fl,typeof s=="object"&&s!==null&&(u=$e(s)),i=a.getDerivedStateFromProps,(s=typeof i=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r!==m||p!==u)&&vg(t,o,n,u),Wa=!1,p=t.memoizedState,o.state=p,cr(t,n,o,l),dr();var h=t.memoizedState;r!==m||p!==h||Wa||e!==null&&e.dependencies!==null&&ms(e.dependencies)?(typeof i=="function"&&(fc(t,a,i,n),h=t.memoizedState),(f=Wa||xg(t,a,f,n,p,h,u)||e!==null&&e.dependencies!==null&&ms(e.dependencies))?(s||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,h,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,h,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),o.props=n,o.state=h,o.context=u,n=f):(typeof o.componentDidUpdate!="function"||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,Ju(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=al(t,e.child,null,l),t.child=al(t,null,a,l)):Xe(e,t,a,l),t.memoizedState=o.state,e=t.child):e=za(e,t,l),e}function Eg(e,t,a,n){return el(),t.flags|=256,Xe(e,t,a,n),t.child}var mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:Q0()}}function hc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=At),e}function jy(e,t,a){var n=t.pendingProps,l=!1,o=(t.flags&128)!==0,r;if((r=o)||(r=e!==null&&e.memoizedState===null?!1:(ke.current&2)!==0),r&&(l=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(X){if(l?en(t):tn(t),(e=he)?(e=Bx(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xn!==null?{id:da,overflow:ca}:null,retryLane:536870912,hydrationErrors:null},a=K0(e),a.return=t,t.child=a,Ye=t,he=null)):e=null,e===null)throw vn(t);return Lf(e)?t.lanes=32:t.lanes=536870912,null}var i=n.children;return n=n.fallback,l?(tn(t),l=t.mode,i=bs({mode:"hidden",children:i},l),n=Zn(n,l,a,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n=t.child,n.memoizedState=pc(a),n.childLanes=hc(e,r,a),t.memoizedState=mc,nr(null,n)):(en(t),uf(t,i))}var u=e.memoizedState;if(u!==null&&(i=u.dehydrated,i!==null)){if(o)t.flags&256?(en(t),t.flags&=-257,t=gc(e,t,a)):t.memoizedState!==null?(tn(t),t.child=e.child,t.flags|=128,t=null):(tn(t),i=n.fallback,l=t.mode,n=bs({mode:"visible",children:n.children},l),i=Zn(i,l,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,al(t,e.child,null,a),n=t.child,n.memoizedState=pc(a),n.childLanes=hc(e,r,a),t.memoizedState=mc,t=nr(null,n));else if(en(t),Lf(i)){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;r=s,n=Error(k(419)),n.stack="",n.digest=r,Cr({value:n,source:null,stack:null}),t=gc(e,t,a)}else if(Te||mo(e,t,a,!1),r=(a&e.childLanes)!==0,Te||r){if(r=re,r!==null&&(n=v0(r,a),n!==0&&n!==u.retryLane))throw u.retryLane=n,ul(e,n),mt(r,e,n),rm;bf(i)||ws(),t=gc(e,t,a)}else bf(i)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,he=Yt(i.nextSibling),Ye=t,X=!0,dn=null,Xt=!1,e!==null&&$0(t,e),t=uf(t,n.children),t.flags|=4096);return t}return l?(tn(t),i=n.fallback,l=t.mode,u=e.child,s=u.sibling,n=Ta(u,{mode:"hidden",children:n.children}),n.subtreeFlags=u.subtreeFlags&65011712,s!==null?i=Ta(s,i):(i=Zn(i,l,a,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,nr(null,n),n=t.child,i=e.child.memoizedState,i===null?i=pc(a):(l=i.cachePool,l!==null?(u=De._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Q0(),i={baseLanes:i.baseLanes|a,cachePool:l}),n.memoizedState=i,n.childLanes=hc(e,r,a),t.memoizedState=mc,nr(e.child,n)):(en(t),a=e.child,e=a.sibling,a=Ta(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a)}function uf(e,t){return t=bs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bs(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function gc(e,t,a){return al(t,e.child,null,a),e=uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mg(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Yc(e.return,t,a)}function yc(e,t,a,n,l,o){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:o}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=a,r.tailMode=l,r.treeForkCount=o)}function Gy(e,t,a){var n=t.pendingProps,l=n.revealOrder,o=n.tail;n=n.children;var r=ke.current,i=(r&2)!==0;if(i?(r=r&1|2,t.flags|=128):r&=1,ce(ke,r),Xe(e,t,n,a),n=X?Sr:0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mg(e,a,t);else if(e.tag===19)Mg(e,a,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}switch(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&gs(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),yc(t,!1,l,a,o,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&gs(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}yc(t,!0,a,null,o,n);break;case"together":yc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function za(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(mo(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,a=Ta(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ta(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function im(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ms(e)))}function yC(e,t,a){switch(t.tag){case 3:rs(t,t.stateNode.containerInfo),Ja(t,De,e.memoizedState.cache),el();break;case 27:case 5:Oc(t);break;case 4:rs(t,t.stateNode.containerInfo);break;case 10:Ja(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ef(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(en(t),t.flags|=128,null):(a&t.child.childLanes)!==0?jy(e,t,a):(en(t),e=za(e,t,a),e!==null?e.sibling:null);en(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(mo(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Gy(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ce(ke,ke.current),n)break;return null;case 22:return t.lanes=0,Fy(e,t,a,t.pendingProps);case 24:Ja(t,De,e.memoizedState.cache)}return za(e,t,a)}function Vy(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Te=!0;else{if(!im(e,a)&&(t.flags&128)===0)return Te=!1,yC(e,t,a);Te=(e.flags&131072)!==0}else Te=!1,X&&(t.flags&1048576)!==0&&Y0(t,Sr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Kn(t.elementType),t.type=e,typeof e=="function")Uf(e)?(n=ll(e,n),t.tag=1,t=kg(null,t,e,n,a)):(t.tag=0,t=rf(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===If){t.tag=11,t=Lg(null,t,e,n,a);break e}else if(l===kf){t.tag=14,t=Sg(null,t,e,n,a);break e}}throw t=Rc(e)||e,Error(k(306,t,""))}}return t;case 0:return rf(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=ll(n,t.pendingProps),kg(e,t,n,l,a);case 3:e:{if(rs(t,t.stateNode.containerInfo),e===null)throw Error(k(387));n=t.pendingProps;var o=t.memoizedState;l=o.element,Qc(e,t),cr(t,n,null,a);var r=t.memoizedState;if(n=r.cache,Ja(t,De,n),n!==o.cache&&$c(t,[De],a,!0),dr(),n=r.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Eg(e,t,n,a);break e}else if(n!==l){l=Vt(Error(k(424)),t),Cr(l),t=Eg(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,he=Yt(e.firstChild),Ye=t,X=!0,dn=null,Xt=!0,a=ey(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(el(),n===l){t=za(e,t,a);break e}Xe(e,t,n,a)}t=t.child}return t;case 26:return Ju(e,t),e===null?(a=Zg(t.type,null,t.pendingProps,null))?t.memoizedState=a:X||(a=t.type,e=t.pendingProps,n=Ms(sn.current).createElement(a),n[Ke]=t,n[pt]=e,Ze(n,a,e),Ue(n),t.stateNode=n):t.memoizedState=Zg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Oc(t),e===null&&X&&(n=t.stateNode=Ox(t.type,t.pendingProps,sn.current),Ye=t,Xt=!0,l=he,Cn(t.type)?(Sf=l,he=Yt(n.firstChild)):he=l),Xe(e,t,t.pendingProps.children,a),Ju(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&X&&((l=n=he)&&(n=VC(n,t.type,t.pendingProps,Xt),n!==null?(t.stateNode=n,Ye=t,he=Yt(n.firstChild),Xt=!1,l=!0):l=!1),l||vn(t)),Oc(t),l=t.type,o=t.pendingProps,r=e!==null?e.memoizedProps:null,n=o.children,xf(l,o)?n=null:r!==null&&xf(l,r)&&(t.flags|=32),t.memoizedState!==null&&(l=Yf(e,t,uC,null,null,a),Ar._currentValue=l),Ju(e,t),Xe(e,t,n,a),t.child;case 6:return e===null&&X&&((e=a=he)&&(a=XC(a,t.pendingProps,Xt),a!==null?(t.stateNode=a,Ye=t,he=null,e=!0):e=!1),e||vn(t)),null;case 13:return jy(e,t,a);case 4:return rs(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=al(t,null,n,a):Xe(e,t,n,a),t.child;case 11:return Lg(e,t,t.type,t.pendingProps,a);case 7:return Xe(e,t,t.pendingProps,a),t.child;case 8:return Xe(e,t,t.pendingProps.children,a),t.child;case 12:return Xe(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Ja(t,t.type,n.value),Xe(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,tl(t),l=$e(l),n=n(l),t.flags|=1,Xe(e,t,n,a),t.child;case 14:return Sg(e,t,t.type,t.pendingProps,a);case 15:return Py(e,t,t.type,t.pendingProps,a);case 19:return Gy(e,t,a);case 31:return gC(e,t,a);case 22:return Fy(e,t,a,t.pendingProps);case 24:return tl(t),n=$e(De),e===null?(l=jf(),l===null&&(l=re,o=Ff(),l.pooledCache=o,o.refCount++,o!==null&&(l.pooledCacheLanes|=a),l=o),t.memoizedState={parent:n,cache:l},Vf(t),Ja(t,De,l)):((e.lanes&a)!==0&&(Qc(e,t),cr(t,null,null,a),dr()),l=e.memoizedState,o=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Ja(t,De,n)):(n=o.cache,Ja(t,De,n),n!==l.cache&&$c(t,[De],a,!0))),Xe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(k(156,t.tag))}function Sa(e){e.flags|=4}function xc(e,t,a,n,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(hx())e.flags|=8192;else throw Wn=ps,Gf}else e.flags&=-16777217}function Ag(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qx(t))if(hx())e.flags|=8192;else throw Wn=ps,Gf}function zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?g0():536870912,e.lanes|=t,oo|=t)}function Zo(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function xC(e,t,a){var n=t.pendingProps;switch(Pf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return pe(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Na(De),Jl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?Sa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sc())),pe(t),null;case 26:var l=t.type,o=t.memoizedState;return e===null?(Sa(t),o!==null?(pe(t),Ag(t,o)):(pe(t),xc(t,l,null,n,a))):o?o!==e.memoizedState?(Sa(t),pe(t),Ag(t,o)):(pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Sa(t),pe(t),xc(t,l,e,n,a)),null;case 27:if(is(t),a=sn.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Sa(t);else{if(!n){if(t.stateNode===null)throw Error(k(166));return pe(t),null}e=ma.current,Dl(t)?lg(t,e):(e=Ox(l,n,a),t.stateNode=e,Sa(t))}return pe(t),null;case 5:if(is(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Sa(t);else{if(!n){if(t.stateNode===null)throw Error(k(166));return pe(t),null}if(o=ma.current,Dl(t))lg(t,o);else{var r=Ms(sn.current);switch(o){case 1:o=r.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:o=r.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":o=r.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":o=r.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":o=r.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?r.createElement(l,{is:n.is}):r.createElement(l)}}o[Ke]=t,o[pt]=n;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)o.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=o;e:switch(Ze(o,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Sa(t)}}return pe(t),xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Sa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(k(166));if(e=sn.current,Dl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=Ye,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[Ke]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Tx(e.nodeValue,a)),e||vn(t,!0)}else e=Ms(e).createTextNode(n),e[Ke]=t,t.stateNode=e}return pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Dl(t),a!==null){if(e===null){if(!n)throw Error(k(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(557));e[Ke]=t}else el(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pe(t),e=!1}else a=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(k(558))}return pe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Dl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(k(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(k(317));l[Ke]=t}else el(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pe(t),l=!1}else l=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==l&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zu(t,t.updateQueue),pe(t),null);case 4:return Jl(),e===null&&pm(t.stateNode.containerInfo),pe(t),null;case 10:return Na(t.type),pe(t),null;case 19:if(He(ke),n=t.memoizedState,n===null)return pe(t),null;if(l=(t.flags&128)!==0,o=n.rendering,o===null)if(l)Zo(n,!1);else{if(we!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=gs(e),o!==null){for(t.flags|=128,Zo(n,!1),e=o.updateQueue,t.updateQueue=e,zu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)X0(a,e),a=a.sibling;return ce(ke,ke.current&1|2),X&&ka(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Dt()>Ss&&(t.flags|=128,l=!0,Zo(n,!1),t.lanes=4194304)}else{if(!l)if(e=gs(o),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,zu(t,e),Zo(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!X)return pe(t),null}else 2*Dt()-n.renderingStartTime>Ss&&a!==536870912&&(t.flags|=128,l=!0,Zo(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Dt(),e.sibling=null,a=ke.current,ce(ke,l?a&1|2:a&1),X&&ka(t,n.treeForkCount),e):(pe(t),null);case 22:case 23:return Et(t),Xf(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),a=t.updateQueue,a!==null&&zu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&He(Qn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Na(De),pe(t),null;case 25:return null;case 30:return null}throw Error(k(156,t.tag))}function vC(e,t){switch(Pf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(De),Jl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return is(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(k(340));el()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));el()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(ke),null;case 4:return Jl(),null;case 10:return Na(t.type),null;case 22:case 23:return Et(t),Xf(),e!==null&&He(Qn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Na(De),null;case 25:return null;default:return null}}function Xy(e,t){switch(Pf(t),t.tag){case 3:Na(De),Jl();break;case 26:case 27:case 5:is(t);break;case 4:Jl();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:He(ke);break;case 10:Na(t.type);break;case 22:case 23:Et(t),Xf(),e!==null&&He(Qn);break;case 24:Na(De)}}function Hr(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var o=a.create,r=a.inst;n=o(),r.destroy=n}a=a.next}while(a!==l)}}catch(i){ee(t,t.return,i)}}function bn(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){var r=n.inst,i=r.destroy;if(i!==void 0){r.destroy=void 0,l=t;var u=a,s=i;try{s()}catch(f){ee(l,u,f)}}}n=n.next}while(n!==o)}}catch(f){ee(t,t.return,f)}}function Ky(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ay(t,a)}catch(n){ee(e,e.return,n)}}}function Yy(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){ee(e,t,n)}}function mr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){ee(e,t,l)}}function fa(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){ee(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){ee(e,t,l)}else a.current=null}function $y(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){ee(e,e.return,l)}}function vc(e,t,a){try{var n=e.stateNode;UC(n,e.type,a,t),n[pt]=t}catch(l){ee(e,e.return,l)}}function Zy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cn(e.type)||e.tag===4}function bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zy(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.tag===27&&Cn(e.type)||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 sf(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Aa));else if(n!==4&&(n===27&&Cn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(sf(e,t,a),e=e.sibling;e!==null;)sf(e,t,a),e=e.sibling}function Ls(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Cn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ls(e,t,a),e=e.sibling;e!==null;)Ls(e,t,a),e=e.sibling}function Qy(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Ze(t,n,a),t[Ke]=e,t[pt]=a}catch(o){ee(e,e.return,o)}}var Ea=!1,Ae=!1,Lc=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,qe=null;function bC(e,t){if(e=e.containerInfo,gf=Ns,e=q0(e),_f(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var r=0,i=-1,u=-1,s=0,f=0,m=e,p=null;t:for(;;){for(var h;m!==a||l!==0&&m.nodeType!==3||(i=r+l),m!==o||n!==0&&m.nodeType!==3||(u=r+n),m.nodeType===3&&(r+=m.nodeValue.length),(h=m.firstChild)!==null;)p=m,m=h;for(;;){if(m===e)break t;if(p===a&&++s===l&&(i=r),p===o&&++f===n&&(u=r),(h=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=h}a=i===-1||u===-1?null:{start:i,end:u}}else a=null}a=a||{start:0,end:0}}else a=null;for(yf={focusedElem:e,selectionRange:a},Ns=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){switch(t=qe,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,l=o.memoizedProps,o=o.memoizedState,n=a.stateNode;try{var b=ll(a.type,l);e=n.getSnapshotBeforeUpdate(b,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(S){ee(a,a.return,S)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)vf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(k(163))}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}}function Wy(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:wa(e,a),n&4&&Hr(5,a);break;case 1:if(wa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(r){ee(a,a.return,r)}else{var l=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){ee(a,a.return,r)}}n&64&&Ky(a),n&512&&mr(a,a.return);break;case 3:if(wa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ay(e,t)}catch(r){ee(a,a.return,r)}}break;case 27:t===null&&n&4&&Qy(a);case 26:case 5:wa(e,a),t===null&&n&4&&$y(a),n&512&&mr(a,a.return);break;case 12:wa(e,a);break;case 31:wa(e,a),n&4&&tx(e,a);break;case 13:wa(e,a),n&4&&ax(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=AC.bind(null,a),KC(e,a))));break;case 22:if(n=a.memoizedState!==null||Ea,!n){t=t!==null&&t.memoizedState!==null||Ae,l=Ea;var o=Ae;Ea=n,(Ae=t)&&!o?Ia(e,a,(a.subtreeFlags&8772)!==0):wa(e,a),Ea=l,Ae=o}break;case 30:break;default:wa(e,a)}}function Jy(e){var t=e.alternate;t!==null&&(e.alternate=null,Jy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Df(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ve=null,ct=!1;function Ca(e,t,a){for(a=a.child;a!==null;)ex(e,t,a),a=a.sibling}function ex(e,t,a){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Rr,a)}catch{}switch(a.tag){case 26:Ae||fa(a,t),Ca(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ae||fa(a,t);var n=ve,l=ct;Cn(a.type)&&(ve=a.stateNode,ct=!1),Ca(e,t,a),yr(a.stateNode),ve=n,ct=l;break;case 5:Ae||fa(a,t);case 6:if(n=ve,l=ct,ve=null,Ca(e,t,a),ve=n,ct=l,ve!==null)if(ct)try{(ve.nodeType===9?ve.body:ve.nodeName==="HTML"?ve.ownerDocument.body:ve).removeChild(a.stateNode)}catch(o){ee(a,t,o)}else try{ve.removeChild(a.stateNode)}catch(o){ee(a,t,o)}break;case 18:ve!==null&&(ct?(e=ve,Vg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),so(e)):Vg(ve,a.stateNode));break;case 4:n=ve,l=ct,ve=a.stateNode.containerInfo,ct=!0,Ca(e,t,a),ve=n,ct=l;break;case 0:case 11:case 14:case 15:bn(2,a,t),Ae||bn(4,a,t),Ca(e,t,a);break;case 1:Ae||(fa(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Yy(a,t,n)),Ca(e,t,a);break;case 21:Ca(e,t,a);break;case 22:Ae=(n=Ae)||a.memoizedState!==null,Ca(e,t,a),Ae=n;break;default:Ca(e,t,a)}}function tx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{so(e)}catch(a){ee(t,t.return,a)}}}function ax(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{so(e)}catch(a){ee(t,t.return,a)}}function LC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dg),t;default:throw Error(k(435,e.tag))}}function qu(e,t){var a=LC(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=DC.bind(null,e,n);n.then(l,l)}})}function st(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],o=e,r=t,i=r;e:for(;i!==null;){switch(i.tag){case 27:if(Cn(i.type)){ve=i.stateNode,ct=!1;break e}break;case 5:ve=i.stateNode,ct=!1;break e;case 3:case 4:ve=i.stateNode.containerInfo,ct=!0;break e}i=i.return}if(ve===null)throw Error(k(160));ex(o,r,l),ve=null,ct=!1,o=l.alternate,o!==null&&(o.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)nx(t,e),t=t.sibling}var aa=null;function nx(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:st(t,e),dt(e),n&4&&(bn(3,e,e.return),Hr(3,e),bn(5,e,e.return));break;case 1:st(t,e),dt(e),n&512&&(Ae||a===null||fa(a,a.return)),n&64&&Ea&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=aa;if(st(t,e),dt(e),n&512&&(Ae||a===null||fa(a,a.return)),n&4){var o=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":o=l.getElementsByTagName("title")[0],(!o||o[_r]||o[Ke]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=l.createElement(n),l.head.insertBefore(o,l.querySelector("head > title"))),Ze(o,n,a),o[Ke]=e,Ue(o),n=o;break e;case"link":var r=Wg("link","href",l).get(n+(a.href||""));if(r){for(var i=0;i<r.length;i++)if(o=r[i],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(i,1);break t}}o=l.createElement(n),Ze(o,n,a),l.head.appendChild(o);break;case"meta":if(r=Wg("meta","content",l).get(n+(a.content||""))){for(i=0;i<r.length;i++)if(o=r[i],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(i,1);break t}}o=l.createElement(n),Ze(o,n,a),l.head.appendChild(o);break;default:throw Error(k(468,n))}o[Ke]=e,Ue(o),n=o}e.stateNode=n}else Jg(l,e.type,e.stateNode);else e.stateNode=Qg(l,n,e.memoizedProps);else o!==n?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,n===null?Jg(l,e.type,e.stateNode):Qg(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&vc(e,e.memoizedProps,a.memoizedProps)}break;case 27:st(t,e),dt(e),n&512&&(Ae||a===null||fa(a,a.return)),a!==null&&n&4&&vc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(st(t,e),dt(e),n&512&&(Ae||a===null||fa(a,a.return)),e.flags&32){l=e.stateNode;try{to(l,"")}catch(b){ee(e,e.return,b)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,vc(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Lc=!0);break;case 6:if(st(t,e),dt(e),n&4){if(e.stateNode===null)throw Error(k(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(b){ee(e,e.return,b)}}break;case 3:if(as=null,l=aa,aa=As(t.containerInfo),st(t,e),aa=l,dt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{so(t.containerInfo)}catch(b){ee(e,e.return,b)}Lc&&(Lc=!1,lx(e));break;case 4:n=aa,aa=As(e.stateNode.containerInfo),st(t,e),dt(e),aa=n;break;case 12:st(t,e),dt(e);break;case 31:st(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qu(e,n)));break;case 13:st(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Vs=Dt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qu(e,n)));break;case 22:l=e.memoizedState!==null;var u=a!==null&&a.memoizedState!==null,s=Ea,f=Ae;if(Ea=s||l,Ae=f||u,st(t,e),Ae=f,Ea=s,dt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||u||Ea||Ae||Yn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){u=a=t;try{if(o=u.stateNode,l)r=o.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{i=u.stateNode;var m=u.memoizedProps.style,p=m!=null&&m.hasOwnProperty("display")?m.display:null;i.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(b){ee(u,u.return,b)}}}else if(t.tag===6){if(a===null){u=t;try{u.stateNode.nodeValue=l?"":u.memoizedProps}catch(b){ee(u,u.return,b)}}}else if(t.tag===18){if(a===null){u=t;try{var h=u.stateNode;l?Xg(h,!0):Xg(u.stateNode,!1)}catch(b){ee(u,u.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,qu(e,a))));break;case 19:st(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qu(e,n)));break;case 30:break;case 21:break;default:st(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Zy(n)){a=n;break}n=n.return}if(a==null)throw Error(k(160));switch(a.tag){case 27:var l=a.stateNode,o=bc(e);Ls(e,o,l);break;case 5:var r=a.stateNode;a.flags&32&&(to(r,""),a.flags&=-33);var i=bc(e);Ls(e,i,r);break;case 3:case 4:var u=a.stateNode.containerInfo,s=bc(e);sf(e,s,u);break;default:throw Error(k(161))}}catch(f){ee(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wy(e,t.alternate,t),t=t.sibling}function Yn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bn(4,t,t.return),Yn(t);break;case 1:fa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Yy(t,t.return,a),Yn(t);break;case 27:yr(t.stateNode);case 26:case 5:fa(t,t.return),Yn(t);break;case 22:t.memoizedState===null&&Yn(t);break;case 30:Yn(t);break;default:Yn(t)}e=e.sibling}}function Ia(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,o=t,r=o.flags;switch(o.tag){case 0:case 11:case 15:Ia(l,o,a),Hr(4,o);break;case 1:if(Ia(l,o,a),n=o,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(s){ee(n,n.return,s)}if(n=o,l=n.updateQueue,l!==null){var i=n.stateNode;try{var u=l.shared.hiddenCallbacks;if(u!==null)for(l.shared.hiddenCallbacks=null,l=0;l<u.length;l++)ty(u[l],i)}catch(s){ee(n,n.return,s)}}a&&r&64&&Ky(o),mr(o,o.return);break;case 27:Qy(o);case 26:case 5:Ia(l,o,a),a&&n===null&&r&4&&$y(o),mr(o,o.return);break;case 12:Ia(l,o,a);break;case 31:Ia(l,o,a),a&&r&4&&tx(l,o);break;case 13:Ia(l,o,a),a&&r&4&&ax(l,o);break;case 22:o.memoizedState===null&&Ia(l,o,a),mr(o,o.return);break;case 30:break;default:Ia(l,o,a)}t=t.sibling}}function um(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&qr(a))}function sm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qr(e))}function ta(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ox(e,t,a,n),t=t.sibling}function ox(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:ta(e,t,a,n),l&2048&&Hr(9,t);break;case 1:ta(e,t,a,n);break;case 3:ta(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qr(e)));break;case 12:if(l&2048){ta(e,t,a,n),e=t.stateNode;try{var o=t.memoizedProps,r=o.id,i=o.onPostCommit;typeof i=="function"&&i(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){ee(t,t.return,u)}}else ta(e,t,a,n);break;case 31:ta(e,t,a,n);break;case 13:ta(e,t,a,n);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?o._visibility&2?ta(e,t,a,n):pr(e,t):o._visibility&2?ta(e,t,a,n):(o._visibility|=2,Nl(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&um(r,t);break;case 24:ta(e,t,a,n),l&2048&&sm(t.alternate,t);break;default:ta(e,t,a,n)}}function Nl(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,r=t,i=a,u=n,s=r.flags;switch(r.tag){case 0:case 11:case 15:Nl(o,r,i,u,l),Hr(8,r);break;case 23:break;case 22:var f=r.stateNode;r.memoizedState!==null?f._visibility&2?Nl(o,r,i,u,l):pr(o,r):(f._visibility|=2,Nl(o,r,i,u,l)),l&&s&2048&&um(r.alternate,r);break;case 24:Nl(o,r,i,u,l),l&&s&2048&&sm(r.alternate,r);break;default:Nl(o,r,i,u,l)}t=t.sibling}}function pr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:pr(a,n),l&2048&&um(n.alternate,n);break;case 24:pr(a,n),l&2048&&sm(n.alternate,n);break;default:pr(a,n)}t=t.sibling}}var lr=8192;function Tl(e,t,a){if(e.subtreeFlags&lr)for(e=e.child;e!==null;)rx(e,t,a),e=e.sibling}function rx(e,t,a){switch(e.tag){case 26:Tl(e,t,a),e.flags&lr&&e.memoizedState!==null&&ow(a,aa,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,a);break;case 3:case 4:var n=aa;aa=As(e.stateNode.containerInfo),Tl(e,t,a),aa=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=lr,lr=16777216,Tl(e,t,a),lr=n):Tl(e,t,a));break;default:Tl(e,t,a)}}function ix(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Qo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];qe=n,sx(n,e)}ix(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ux(e),e=e.sibling}function ux(e){switch(e.tag){case 0:case 11:case 15:Qo(e),e.flags&2048&&bn(9,e,e.return);break;case 3:Qo(e);break;case 12:Qo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,es(e)):Qo(e);break;default:Qo(e)}}function es(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];qe=n,sx(n,e)}ix(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bn(8,t,t.return),es(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,es(t));break;default:es(t)}e=e.sibling}}function sx(e,t){for(;qe!==null;){var a=qe;switch(a.tag){case 0:case 11:case 15:bn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:qr(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,qe=n;else e:for(a=e;qe!==null;){n=qe;var l=n.sibling,o=n.return;if(Jy(n),n===a){qe=null;break e}if(l!==null){l.return=o,qe=l;break e}qe=o}}}var SC={getCacheForType:function(e){var t=$e(De),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return $e(De).controller.signal}},CC=typeof WeakMap=="function"?WeakMap:Map,$=0,re=null,G=null,V=0,J=0,kt=null,on=!1,ho=!1,dm=!1,qa=0,we=0,Ln=0,Jn=0,cm=0,At=0,oo=0,hr=null,ft=null,df=!1,Vs=0,dx=0,Ss=1/0,Cs=null,mn=null,Oe=0,pn=null,ro=null,Ra=0,cf=0,ff=null,cx=null,gr=0,mf=null;function Rt(){return($&2)!==0&&V!==0?V&-V:U.T!==null?mm():b0()}function fx(){if(At===0)if((V&536870912)===0||X){var e=Mu;Mu<<=1,(Mu&3932160)===0&&(Mu=262144),At=e}else At=536870912;return e=Ot.current,e!==null&&(e.flags|=32),At}function mt(e,t,a){(e===re&&(J===2||J===9)||e.cancelPendingCommit!==null)&&(io(e,0),rn(e,V,At,!1)),Or(e,a),(($&2)===0||e!==re)&&(e===re&&(($&2)===0&&(Jn|=a),we===4&&rn(e,V,At,!1)),ha(e))}function mx(e,t,a){if(($&6)!==0)throw Error(k(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Br(e,t),l=n?kC(e,t):Sc(e,t,!0),o=n;do{if(l===0){ho&&!n&&rn(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!wC(a)){l=Sc(e,t,!1),o=!1;continue}if(l===2){if(o=t,e.errorRecoveryDisabledLanes&o)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var i=e;l=hr;var u=i.current.memoizedState.isDehydrated;if(u&&(io(i,r).flags|=256),r=Sc(i,r,!1),r!==2){if(dm&&!u){i.errorRecoveryDisabledLanes|=o,Jn|=o,l=4;break e}o=ft,ft=l,o!==null&&(ft===null?ft=o:ft.push.apply(ft,o))}l=r}if(o=!1,l!==2)continue}}if(l===1){io(e,0),rn(e,t,0,!0);break}e:{switch(n=e,o=l,o){case 0:case 1:throw Error(k(345));case 4:if((t&4194048)!==t)break;case 6:rn(n,t,At,!on);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(k(329))}if((t&62914560)===t&&(l=Vs+300-Dt(),10<l)){if(rn(n,t,At,!on),Bs(n,0,!0)!==0)break e;Ra=t,n.timeoutHandle=Rx(Tg.bind(null,n,a,ft,Cs,df,t,At,Jn,oo,on,o,"Throttled",-0,0),l);break e}Tg(n,a,ft,Cs,df,t,At,Jn,oo,on,o,null,-0,0)}}break}while(!0);ha(e)}function Tg(e,t,a,n,l,o,r,i,u,s,f,m,p,h){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Aa},rx(t,o,m);var b=(o&62914560)===o?Vs-Dt():(o&4194048)===o?dx-Dt():0;if(b=rw(m,b),b!==null){Ra=o,e.cancelPendingCommit=b(Rg.bind(null,e,t,o,a,n,l,r,i,u,f,m,null,p,h)),rn(e,o,r,!s);return}}Rg(e,t,o,a,n,l,r,i,u)}function wC(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],o=l.getSnapshot;l=l.value;try{if(!Bt(o(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 rn(e,t,a,n){t&=~cm,t&=~Jn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var o=31-Nt(l),r=1<<o;n[o]=-1,l&=~r}a!==0&&y0(e,a,t)}function Xs(){return($&6)===0?(Pr(0,!1),!1):!0}function fm(){if(G!==null){if(J===0)var e=G.return;else e=G,Da=sl=null,Qf(e),Zl=null,wr=0,e=G;for(;e!==null;)Xy(e.alternate,e),e=e.return;G=null}}function io(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,FC(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ra=0,fm(),re=e,G=a=Ta(e.current,null),V=t,J=0,kt=null,on=!1,ho=Br(e,t),dm=!1,oo=At=cm=Jn=Ln=we=0,ft=hr=null,df=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-Nt(n),o=1<<l;t|=e[l],n&=~o}return qa=t,qs(),a}function px(e,t){F=null,U.H=kr,t===po||t===Hs?(t=sg(),J=3):t===Gf?(t=sg(),J=4):J=t===rm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kt=t,G===null&&(we=1,vs(e,Vt(t,e.current)))}function hx(){var e=Ot.current;return e===null?!0:(V&4194048)===V?Kt===null:(V&62914560)===V||(V&536870912)!==0?e===Kt:!1}function gx(){var e=U.H;return U.H=kr,e===null?kr:e}function yx(){var e=U.A;return U.A=SC,e}function ws(){we=4,on||(V&4194048)!==V&&Ot.current!==null||(ho=!0),(Ln&134217727)===0&&(Jn&134217727)===0||re===null||rn(re,V,At,!1)}function Sc(e,t,a){var n=$;$|=2;var l=gx(),o=yx();(re!==e||V!==t)&&(Cs=null,io(e,t)),t=!1;var r=we;e:do try{if(J!==0&&G!==null){var i=G,u=kt;switch(J){case 8:fm(),r=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var s=J;if(J=0,kt=null,Vl(e,i,u,s),a&&ho){r=0;break e}break;default:s=J,J=0,kt=null,Vl(e,i,u,s)}}IC(),r=we;break}catch(f){px(e,f)}while(!0);return t&&e.shellSuspendCounter++,Da=sl=null,$=n,U.H=l,U.A=o,G===null&&(re=null,V=0,qs()),r}function IC(){for(;G!==null;)xx(G)}function kC(e,t){var a=$;$|=2;var n=gx(),l=yx();re!==e||V!==t?(Cs=null,Ss=Dt()+500,io(e,t)):ho=Br(e,t);e:do try{if(J!==0&&G!==null){t=G;var o=kt;t:switch(J){case 1:J=0,kt=null,Vl(e,t,o,1);break;case 2:case 9:if(ug(o)){J=0,kt=null,Ng(t);break}t=function(){J!==2&&J!==9||re!==e||(J=7),ha(e)},o.then(t,t);break e;case 3:J=7;break e;case 4:J=5;break e;case 7:ug(o)?(J=0,kt=null,Ng(t)):(J=0,kt=null,Vl(e,t,o,7));break;case 5:var r=null;switch(G.tag){case 26:r=G.memoizedState;case 5:case 27:var i=G;if(r?qx(r):i.stateNode.complete){J=0,kt=null;var u=i.sibling;if(u!==null)G=u;else{var s=i.return;s!==null?(G=s,Ks(s)):G=null}break t}}J=0,kt=null,Vl(e,t,o,5);break;case 6:J=0,kt=null,Vl(e,t,o,6);break;case 8:fm(),we=6;break e;default:throw Error(k(462))}}EC();break}catch(f){px(e,f)}while(!0);return Da=sl=null,U.H=n,U.A=l,$=a,G!==null?0:(re=null,V=0,qs(),we)}function EC(){for(;G!==null&&!ZS();)xx(G)}function xx(e){var t=Vy(e.alternate,e,qa);e.memoizedProps=e.pendingProps,t===null?Ks(e):G=t}function Ng(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ig(a,t,t.pendingProps,t.type,void 0,V);break;case 11:t=Ig(a,t,t.pendingProps,t.type.render,t.ref,V);break;case 5:Qf(t);default:Xy(a,t),t=G=X0(t,qa),t=Vy(a,t,qa)}e.memoizedProps=e.pendingProps,t===null?Ks(e):G=t}function Vl(e,t,a,n){Da=sl=null,Qf(t),Zl=null,wr=0;var l=t.return;try{if(hC(e,l,t,a,V)){we=1,vs(e,Vt(a,e.current)),G=null;return}}catch(o){if(l!==null)throw G=l,o;we=1,vs(e,Vt(a,e.current)),G=null;return}t.flags&32768?(X||n===1?e=!0:ho||(V&536870912)!==0?e=!1:(on=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ot.current,n!==null&&n.tag===13&&(n.flags|=16384))),vx(t,e)):Ks(t)}function Ks(e){var t=e;do{if((t.flags&32768)!==0){vx(t,on);return}e=t.return;var a=xC(t.alternate,t,qa);if(a!==null){G=a;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);we===0&&(we=5)}function vx(e,t){do{var a=vC(e.alternate,e);if(a!==null){a.flags&=32767,G=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=a}while(e!==null);we=6,G=null}function Rg(e,t,a,n,l,o,r,i,u){e.cancelPendingCommit=null;do Ys();while(Oe!==0);if(($&6)!==0)throw Error(k(327));if(t!==null){if(t===e.current)throw Error(k(177));if(o=t.lanes|t.childLanes,o|=zf,r1(e,a,o,r,i,u),e===re&&(G=re=null,V=0),ro=t,pn=e,Ra=a,cf=o,ff=l,cx=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,TC(us,function(){return wx(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null,l=Z.p,Z.p=2,r=$,$|=4;try{bC(e,t,a)}finally{$=r,Z.p=l,U.T=n}}Oe=1,bx(),Lx(),Sx()}}function bx(){if(Oe===1){Oe=0;var e=pn,t=ro,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var n=Z.p;Z.p=2;var l=$;$|=4;try{nx(t,e);var o=yf,r=q0(e.containerInfo),i=o.focusedElem,u=o.selectionRange;if(r!==i&&i&&i.ownerDocument&&z0(i.ownerDocument.documentElement,i)){if(u!==null&&_f(i)){var s=u.start,f=u.end;if(f===void 0&&(f=s),"selectionStart"in i)i.selectionStart=s,i.selectionEnd=Math.min(f,i.value.length);else{var m=i.ownerDocument||document,p=m&&m.defaultView||window;if(p.getSelection){var h=p.getSelection(),b=i.textContent.length,S=Math.min(u.start,b),x=u.end===void 0?S:Math.min(u.end,b);!h.extend&&S>x&&(r=x,x=S,S=r);var g=tg(i,S),y=tg(i,x);if(g&&y&&(h.rangeCount!==1||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var v=m.createRange();v.setStart(g.node,g.offset),h.removeAllRanges(),S>x?(h.addRange(v),h.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),h.addRange(v))}}}}for(m=[],h=i;h=h.parentNode;)h.nodeType===1&&m.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<m.length;i++){var L=m[i];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Ns=!!gf,yf=gf=null}finally{$=l,Z.p=n,U.T=a}}e.current=t,Oe=2}}function Lx(){if(Oe===2){Oe=0;var e=pn,t=ro,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var n=Z.p;Z.p=2;var l=$;$|=4;try{Wy(e,t.alternate,t)}finally{$=l,Z.p=n,U.T=a}}Oe=3}}function Sx(){if(Oe===4||Oe===3){Oe=0,QS();var e=pn,t=ro,a=Ra,n=cx;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Oe=5:(Oe=0,ro=pn=null,Cx(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(mn=null),Af(a),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Rr,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=U.T,l=Z.p,Z.p=2,U.T=null;try{for(var o=e.onRecoverableError,r=0;r<n.length;r++){var i=n[r];o(i.value,{componentStack:i.stack})}}finally{U.T=t,Z.p=l}}(Ra&3)!==0&&Ys(),ha(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===mf?gr++:(gr=0,mf=e):gr=0,Pr(0,!1)}}function Cx(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qr(t)))}function Ys(){return bx(),Lx(),Sx(),wx()}function wx(){if(Oe!==5)return!1;var e=pn,t=cf;cf=0;var a=Af(Ra),n=U.T,l=Z.p;try{Z.p=32>a?32:a,U.T=null,a=ff,ff=null;var o=pn,r=Ra;if(Oe=0,ro=pn=null,Ra=0,($&6)!==0)throw Error(k(331));var i=$;if($|=4,ux(o.current),ox(o,o.current,r,a),$=i,Pr(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Rr,o)}catch{}return!0}finally{Z.p=l,U.T=n,Cx(e,t)}}function Bg(e,t,a){t=Vt(a,t),t=of(e.stateNode,t,2),e=fn(e,t,2),e!==null&&(Or(e,2),ha(e))}function ee(e,t,a){if(e.tag===3)Bg(e,e,a);else for(;t!==null;){if(t.tag===3){Bg(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(mn===null||!mn.has(n))){e=Vt(a,e),a=Uy(2),n=fn(t,a,2),n!==null&&(Hy(a,n,t,e),Or(n,2),ha(n));break}}t=t.return}}function Cc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new CC;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(dm=!0,l.add(a),e=MC.bind(null,e,t,a),t.then(e,e))}function MC(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,re===e&&(V&a)===a&&(we===4||we===3&&(V&62914560)===V&&300>Dt()-Vs?($&2)===0&&io(e,0):cm|=a,oo===V&&(oo=0)),ha(e)}function Ix(e,t){t===0&&(t=g0()),e=ul(e,t),e!==null&&(Or(e,t),ha(e))}function AC(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ix(e,a)}function DC(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(k(314))}n!==null&&n.delete(t),Ix(e,a)}function TC(e,t){return Ef(e,t)}var Is=null,Rl=null,pf=!1,ks=!1,wc=!1,un=0;function ha(e){e!==Rl&&e.next===null&&(Rl===null?Is=Rl=e:Rl=Rl.next=e),ks=!0,pf||(pf=!0,RC())}function Pr(e,t){if(!wc&&ks){wc=!0;do for(var a=!1,n=Is;n!==null;){if(!t)if(e!==0){var l=n.pendingLanes;if(l===0)var o=0;else{var r=n.suspendedLanes,i=n.pingedLanes;o=(1<<31-Nt(42|e)+1)-1,o&=l&~(r&~i),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Og(n,o))}else o=V,o=Bs(n,n===re?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||Br(n,o)||(a=!0,Og(n,o));n=n.next}while(a);wc=!1}}function NC(){kx()}function kx(){ks=pf=!1;var e=0;un!==0&&PC()&&(e=un);for(var t=Dt(),a=null,n=Is;n!==null;){var l=n.next,o=Ex(n,t);o===0?(n.next=null,a===null?Is=l:a.next=l,l===null&&(Rl=a)):(a=n,(e!==0||(o&3)!==0)&&(ks=!0)),n=l}Oe!==0&&Oe!==5||Pr(e,!1),un!==0&&(un=0)}function Ex(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var r=31-Nt(o),i=1<<r,u=l[r];u===-1?((i&a)===0||(i&n)!==0)&&(l[r]=o1(i,t)):u<=t&&(e.expiredLanes|=i),o&=~i}if(t=re,a=V,a=Bs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(J===2||J===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Jd(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Br(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Jd(n),Af(a)){case 2:case 8:a=p0;break;case 32:a=us;break;case 268435456:a=h0;break;default:a=us}return n=Mx.bind(null,e),a=Ef(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Jd(n),e.callbackPriority=2,e.callbackNode=null,2}function Mx(e,t){if(Oe!==0&&Oe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ys()&&e.callbackNode!==a)return null;var n=V;return n=Bs(e,e===re?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(mx(e,n,t),Ex(e,Dt()),e.callbackNode!=null&&e.callbackNode===a?Mx.bind(null,e):null)}function Og(e,t){if(Ys())return null;mx(e,t,!0)}function RC(){jC(function(){($&6)!==0?Ef(m0,NC):kx()})}function mm(){if(un===0){var e=ao;e===0&&(e=Eu,Eu<<=1,(Eu&261888)===0&&(Eu=256)),un=e}return un}function _g(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vu(""+e)}function zg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function BC(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var o=_g((l[pt]||null).action),r=n.submitter;r&&(t=(t=r[pt]||null)?_g(t.formAction):r.getAttribute("formAction"),t!==null&&(o=t,r=null));var i=new Os("action","action",null,n,l);e.push({event:i,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(un!==0){var u=r?zg(l,r):new FormData(l);nf(a,{pending:!0,data:u,method:l.method,action:o},null,u)}}else typeof o=="function"&&(i.preventDefault(),u=r?zg(l,r):new FormData(l),nf(a,{pending:!0,data:u,method:l.method,action:o},o,u))},currentTarget:l}]})}}for(Uu=0;Uu<Vc.length;Uu++)Hu=Vc[Uu],qg=Hu.toLowerCase(),Ug=Hu[0].toUpperCase()+Hu.slice(1),na(qg,"on"+Ug);var Hu,qg,Ug,Uu;na(H0,"onAnimationEnd");na(P0,"onAnimationIteration");na(F0,"onAnimationStart");na("dblclick","onDoubleClick");na("focusin","onFocus");na("focusout","onBlur");na(W1,"onTransitionRun");na(J1,"onTransitionStart");na(eC,"onTransitionCancel");na(j0,"onTransitionEnd");eo("onMouseEnter",["mouseout","mouseover"]);eo("onMouseLeave",["mouseout","mouseover"]);eo("onPointerEnter",["pointerout","pointerover"]);eo("onPointerLeave",["pointerout","pointerover"]);ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ol("onBeforeInput",["compositionend","keypress","textInput","paste"]);ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="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(" "),OC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Er));function Ax(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var r=n.length-1;0<=r;r--){var i=n[r],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==o&&l.isPropagationStopped())break e;o=i,l.currentTarget=s;try{o(l)}catch(f){ds(f)}l.currentTarget=null,o=u}else for(r=0;r<n.length;r++){if(i=n[r],u=i.instance,s=i.currentTarget,i=i.listener,u!==o&&l.isPropagationStopped())break e;o=i,l.currentTarget=s;try{o(l)}catch(f){ds(f)}l.currentTarget=null,o=u}}}}function j(e,t){var a=t[zc];a===void 0&&(a=t[zc]=new Set);var n=e+"__bubble";a.has(n)||(Dx(t,e,2,!1),a.add(n))}function Ic(e,t,a){var n=0;t&&(n|=4),Dx(a,e,n,t)}var Pu="_reactListening"+Math.random().toString(36).slice(2);function pm(e){if(!e[Pu]){e[Pu]=!0,L0.forEach(function(a){a!=="selectionchange"&&(OC.has(a)||Ic(a,!1,e),Ic(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pu]||(t[Pu]=!0,Ic("selectionchange",!1,t))}}function Dx(e,t,a,n){switch(jx(t)){case 2:var l=sw;break;case 8:l=dw;break;default:l=xm}a=l.bind(null,t,a,e),l=void 0,!Fc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function kc(e,t,a,n,l){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var i=n.stateNode.containerInfo;if(i===l)break;if(r===4)for(r=n.return;r!==null;){var u=r.tag;if((u===3||u===4)&&r.stateNode.containerInfo===l)return;r=r.return}for(;i!==null;){if(r=_l(i),r===null)return;if(u=r.tag,u===5||u===6||u===26||u===27){n=o=r;continue e}i=i.parentNode}}n=n.return}A0(function(){var s=o,f=Nf(a),m=[];e:{var p=G0.get(e);if(p!==void 0){var h=Os,b=e;switch(e){case"keypress":if(Ku(a)===0)break e;case"keydown":case"keyup":h=D1;break;case"focusin":b="focus",h=lc;break;case"focusout":b="blur",h=lc;break;case"beforeblur":case"afterblur":h=lc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=x1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=R1;break;case H0:case P0:case F0:h=L1;break;case j0:h=O1;break;case"scroll":case"scrollend":h=g1;break;case"wheel":h=z1;break;case"copy":case"cut":case"paste":h=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Yh;break;case"toggle":case"beforetoggle":h=U1}var S=(t&4)!==0,x=!S&&(e==="scroll"||e==="scrollend"),g=S?p!==null?p+"Capture":null:p;S=[];for(var y=s,v;y!==null;){var L=y;if(v=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||v===null||g===null||(L=vr(y,g),L!=null&&S.push(Mr(y,L,v))),x)break;y=y.return}0<S.length&&(p=new h(p,b,null,a,f),m.push({event:p,listeners:S}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&a!==Pc&&(b=a.relatedTarget||a.fromElement)&&(_l(b)||b[co]))break e;if((h||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,h?(b=a.relatedTarget||a.toElement,h=s,b=b?_l(b):null,b!==null&&(x=Nr(b),S=b.tag,b!==x||S!==5&&S!==27&&S!==6)&&(b=null)):(h=null,b=s),h!==b)){if(S=Xh,L="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(S=Yh,L="onPointerLeave",g="onPointerEnter",y="pointer"),x=h==null?p:ar(h),v=b==null?p:ar(b),p=new S(L,y+"leave",h,a,f),p.target=x,p.relatedTarget=v,L=null,_l(f)===s&&(S=new S(g,y+"enter",b,a,f),S.target=v,S.relatedTarget=x,L=S),x=L,h&&b)t:{for(S=_C,g=h,y=b,v=0,L=g;L;L=S(L))v++;L=0;for(var M=y;M;M=S(M))L++;for(;0<v-L;)g=S(g),v--;for(;0<L-v;)y=S(y),L--;for(;v--;){if(g===y||y!==null&&g===y.alternate){S=g;break t}g=S(g),y=S(y)}S=null}else S=null;h!==null&&Hg(m,p,h,S,!1),b!==null&&x!==null&&Hg(m,x,b,S,!0)}}e:{if(p=s?ar(s):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var A=Wh;else if(Qh(p))if(O0)A=$1;else{A=K1;var I=X1}else h=p.nodeName,!h||h.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?s&&Tf(s.elementType)&&(A=Wh):A=Y1;if(A&&(A=A(e,s))){B0(m,A,a,f);break e}I&&I(e,p,s),e==="focusout"&&s&&p.type==="number"&&s.memoizedProps.value!=null&&Hc(p,"number",p.value)}switch(I=s?ar(s):window,e){case"focusin":(Qh(I)||I.contentEditable==="true")&&(Ul=I,jc=s,ir=null);break;case"focusout":ir=jc=Ul=null;break;case"mousedown":Gc=!0;break;case"contextmenu":case"mouseup":case"dragend":Gc=!1,ag(m,a,f);break;case"selectionchange":if(Q1)break;case"keydown":case"keyup":ag(m,a,f)}var N;if(Of)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else ql?N0(e,a)&&(T="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(T="onCompositionStart");T&&(T0&&a.locale!=="ko"&&(ql||T!=="onCompositionStart"?T==="onCompositionEnd"&&ql&&(N=D0()):(ln=f,Rf="value"in ln?ln.value:ln.textContent,ql=!0)),I=Es(s,T),0<I.length&&(T=new Kh(T,e,null,a,f),m.push({event:T,listeners:I}),N?T.data=N:(N=R0(a),N!==null&&(T.data=N)))),(N=P1?F1(e,a):j1(e,a))&&(T=Es(s,"onBeforeInput"),0<T.length&&(I=new Kh("onBeforeInput","beforeinput",null,a,f),m.push({event:I,listeners:T}),I.data=N)),BC(m,e,s,a,f)}Ax(m,t)})}function Mr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Es(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,o=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||o===null||(l=vr(e,a),l!=null&&n.unshift(Mr(e,l,o)),l=vr(e,t),l!=null&&n.push(Mr(e,l,o))),e.tag===3)return n;e=e.return}return[]}function _C(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hg(e,t,a,n,l){for(var o=t._reactName,r=[];a!==null&&a!==n;){var i=a,u=i.alternate,s=i.stateNode;if(i=i.tag,u!==null&&u===n)break;i!==5&&i!==26&&i!==27||s===null||(u=s,l?(s=vr(a,o),s!=null&&r.unshift(Mr(a,s,u))):l||(s=vr(a,o),s!=null&&r.push(Mr(a,s,u)))),a=a.return}r.length!==0&&e.push({event:t,listeners:r})}var zC=/\r\n?/g,qC=/\u0000|\uFFFD/g;function Pg(e){return(typeof e=="string"?e:""+e).replace(zC,`
`).replace(qC,"")}function Tx(e,t){return t=Pg(t),Pg(e)===t}function ae(e,t,a,n,l,o){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||to(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&to(e,""+n);break;case"className":Du(e,"class",n);break;case"tabIndex":Du(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Du(e,a,n);break;case"style":M0(e,n,o);break;case"data":if(t!=="object"){Du(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Vu(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&ae(e,t,"name",l.name,l,null),ae(e,t,"formEncType",l.formEncType,l,null),ae(e,t,"formMethod",l.formMethod,l,null),ae(e,t,"formTarget",l.formTarget,l,null)):(ae(e,t,"encType",l.encType,l,null),ae(e,t,"method",l.method,l,null),ae(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Vu(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Aa);break;case"onScroll":n!=null&&j("scroll",e);break;case"onScrollEnd":n!=null&&j("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(k(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(k(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Vu(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":j("beforetoggle",e),j("toggle",e),Gu(e,"popover",n);break;case"xlinkActuate":La(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":La(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":La(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":La(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":La(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":La(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":La(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":La(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":La(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Gu(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=p1.get(a)||a,Gu(e,a,n))}}function hf(e,t,a,n,l,o){switch(a){case"style":M0(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(k(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(k(60));e.innerHTML=a}}break;case"children":typeof n=="string"?to(e,n):(typeof n=="number"||typeof n=="bigint")&&to(e,""+n);break;case"onScroll":n!=null&&j("scroll",e);break;case"onScrollEnd":n!=null&&j("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!S0.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),o=e[pt]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,l),typeof n=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Gu(e,a,n)}}}function Ze(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":j("error",e),j("load",e);var n=!1,l=!1,o;for(o in a)if(a.hasOwnProperty(o)){var r=a[o];if(r!=null)switch(o){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(k(137,t));default:ae(e,t,o,r,a,null)}}l&&ae(e,t,"srcSet",a.srcSet,a,null),n&&ae(e,t,"src",a.src,a,null);return;case"input":j("invalid",e);var i=o=r=l=null,u=null,s=null;for(n in a)if(a.hasOwnProperty(n)){var f=a[n];if(f!=null)switch(n){case"name":l=f;break;case"type":r=f;break;case"checked":u=f;break;case"defaultChecked":s=f;break;case"value":o=f;break;case"defaultValue":i=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(k(137,t));break;default:ae(e,t,n,f,a,null)}}I0(e,o,i,u,s,r,l,!1);return;case"select":j("invalid",e),n=r=o=null;for(l in a)if(a.hasOwnProperty(l)&&(i=a[l],i!=null))switch(l){case"value":o=i;break;case"defaultValue":r=i;break;case"multiple":n=i;default:ae(e,t,l,i,a,null)}t=o,a=r,e.multiple=!!n,t!=null?Kl(e,!!n,t,!1):a!=null&&Kl(e,!!n,a,!0);return;case"textarea":j("invalid",e),o=l=n=null;for(r in a)if(a.hasOwnProperty(r)&&(i=a[r],i!=null))switch(r){case"value":n=i;break;case"defaultValue":l=i;break;case"children":o=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(k(91));break;default:ae(e,t,r,i,a,null)}E0(e,n,l,o);return;case"option":for(u in a)a.hasOwnProperty(u)&&(n=a[u],n!=null)&&(u==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":ae(e,t,u,n,a,null));return;case"dialog":j("beforetoggle",e),j("toggle",e),j("cancel",e),j("close",e);break;case"iframe":case"object":j("load",e);break;case"video":case"audio":for(n=0;n<Er.length;n++)j(Er[n],e);break;case"image":j("error",e),j("load",e);break;case"details":j("toggle",e);break;case"embed":case"source":case"link":j("error",e),j("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in a)if(a.hasOwnProperty(s)&&(n=a[s],n!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(k(137,t));default:ae(e,t,s,n,a,null)}return;default:if(Tf(t)){for(f in a)a.hasOwnProperty(f)&&(n=a[f],n!==void 0&&hf(e,t,f,n,a,void 0));return}}for(i in a)a.hasOwnProperty(i)&&(n=a[i],n!=null&&ae(e,t,i,n,a,null))}function UC(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,o=null,r=null,i=null,u=null,s=null,f=null;for(h in a){var m=a[h];if(a.hasOwnProperty(h)&&m!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=m;default:n.hasOwnProperty(h)||ae(e,t,h,null,n,m)}}for(var p in n){var h=n[p];if(m=a[p],n.hasOwnProperty(p)&&(h!=null||m!=null))switch(p){case"type":o=h;break;case"name":l=h;break;case"checked":s=h;break;case"defaultChecked":f=h;break;case"value":r=h;break;case"defaultValue":i=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(k(137,t));break;default:h!==m&&ae(e,t,p,h,n,m)}}Uc(e,r,i,u,s,f,o,l);return;case"select":h=r=i=p=null;for(o in a)if(u=a[o],a.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":h=u;default:n.hasOwnProperty(o)||ae(e,t,o,null,n,u)}for(l in n)if(o=n[l],u=a[l],n.hasOwnProperty(l)&&(o!=null||u!=null))switch(l){case"value":p=o;break;case"defaultValue":i=o;break;case"multiple":r=o;default:o!==u&&ae(e,t,l,o,n,u)}t=i,a=r,n=h,p!=null?Kl(e,!!a,p,!1):!!n!=!!a&&(t!=null?Kl(e,!!a,t,!0):Kl(e,!!a,a?[]:"",!1));return;case"textarea":h=p=null;for(i in a)if(l=a[i],a.hasOwnProperty(i)&&l!=null&&!n.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:ae(e,t,i,null,n,l)}for(r in n)if(l=n[r],o=a[r],n.hasOwnProperty(r)&&(l!=null||o!=null))switch(r){case"value":p=l;break;case"defaultValue":h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(k(91));break;default:l!==o&&ae(e,t,r,l,n,o)}k0(e,p,h);return;case"option":for(var b in a)p=a[b],a.hasOwnProperty(b)&&p!=null&&!n.hasOwnProperty(b)&&(b==="selected"?e.selected=!1:ae(e,t,b,null,n,p));for(u in n)p=n[u],h=a[u],n.hasOwnProperty(u)&&p!==h&&(p!=null||h!=null)&&(u==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":ae(e,t,u,p,n,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var S in a)p=a[S],a.hasOwnProperty(S)&&p!=null&&!n.hasOwnProperty(S)&&ae(e,t,S,null,n,p);for(s in n)if(p=n[s],h=a[s],n.hasOwnProperty(s)&&p!==h&&(p!=null||h!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(k(137,t));break;default:ae(e,t,s,p,n,h)}return;default:if(Tf(t)){for(var x in a)p=a[x],a.hasOwnProperty(x)&&p!==void 0&&!n.hasOwnProperty(x)&&hf(e,t,x,void 0,n,p);for(f in n)p=n[f],h=a[f],!n.hasOwnProperty(f)||p===h||p===void 0&&h===void 0||hf(e,t,f,p,n,h);return}}for(var g in a)p=a[g],a.hasOwnProperty(g)&&p!=null&&!n.hasOwnProperty(g)&&ae(e,t,g,null,n,p);for(m in n)p=n[m],h=a[m],!n.hasOwnProperty(m)||p===h||p==null&&h==null||ae(e,t,m,p,n,h)}function Fg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function HC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],o=l.transferSize,r=l.initiatorType,i=l.duration;if(o&&i&&Fg(r)){for(r=0,i=l.responseEnd,n+=1;n<a.length;n++){var u=a[n],s=u.startTime;if(s>i)break;var f=u.transferSize,m=u.initiatorType;f&&Fg(m)&&(u=u.responseEnd,r+=f*(u<i?1:(i-s)/(u-s)))}if(--n,t+=8*(o+r)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var gf=null,yf=null;function Ms(e){return e.nodeType===9?e:e.ownerDocument}function jg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Nx(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ec=null;function PC(){var e=window.event;return e&&e.type==="popstate"?e===Ec?!1:(Ec=e,!0):(Ec=null,!1)}var Rx=typeof setTimeout=="function"?setTimeout:void 0,FC=typeof clearTimeout=="function"?clearTimeout:void 0,Gg=typeof Promise=="function"?Promise:void 0,jC=typeof queueMicrotask=="function"?queueMicrotask:typeof Gg<"u"?function(e){return Gg.resolve(null).then(e).catch(GC)}:Rx;function GC(e){setTimeout(function(){throw e})}function Cn(e){return e==="head"}function Vg(e,t){var a=t,n=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(l),so(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")yr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,yr(a);for(var o=a.firstChild;o;){var r=o.nextSibling,i=o.nodeName;o[_r]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=r}}else a==="body"&&yr(e.ownerDocument.body);a=l}while(a);so(t)}function Xg(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function vf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":vf(a),Df(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function VC(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[_r])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function XC(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function Bx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function bf(e){return e.data==="$?"||e.data==="$~"}function Lf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function KC(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Yt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Sf=null;function Kg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Yg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Ox(e,t,a){switch(t=Ms(a),e){case"html":if(e=t.documentElement,!e)throw Error(k(452));return e;case"head":if(e=t.head,!e)throw Error(k(453));return e;case"body":if(e=t.body,!e)throw Error(k(454));return e;default:throw Error(k(451))}}function yr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Df(e)}var $t=new Map,$g=new Set;function As(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ua=Z.d;Z.d={f:YC,r:$C,D:ZC,C:QC,L:WC,m:JC,X:tw,S:ew,M:aw};function YC(){var e=Ua.f(),t=Xs();return e||t}function $C(e){var t=fo(e);t!==null&&t.tag===5&&t.type==="form"?My(t):Ua.r(e)}var go=typeof document>"u"?null:document;function _x(e,t,a){var n=go;if(n&&typeof t=="string"&&t){var l=Gt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),$g.has(l)||($g.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),Ze(t,"link",e),Ue(t),n.head.appendChild(t)))}}function ZC(e){Ua.D(e),_x("dns-prefetch",e,null)}function QC(e,t){Ua.C(e,t),_x("preconnect",e,t)}function WC(e,t,a){Ua.L(e,t,a);var n=go;if(n&&e&&t){var l='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Gt(a.imageSizes)+'"]')):l+='[href="'+Gt(e)+'"]';var o=l;switch(t){case"style":o=uo(e);break;case"script":o=yo(e)}$t.has(o)||(e=ge({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(o,e),n.querySelector(l)!==null||t==="style"&&n.querySelector(Fr(o))||t==="script"&&n.querySelector(jr(o))||(t=n.createElement("link"),Ze(t,"link",e),Ue(t),n.head.appendChild(t)))}}function JC(e,t){Ua.m(e,t);var a=go;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Gt(n)+'"][href="'+Gt(e)+'"]',o=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=yo(e)}if(!$t.has(o)&&(e=ge({rel:"modulepreload",href:e},t),$t.set(o,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(jr(o)))return}n=a.createElement("link"),Ze(n,"link",e),Ue(n),a.head.appendChild(n)}}}function ew(e,t,a){Ua.S(e,t,a);var n=go;if(n&&e){var l=Xl(n).hoistableStyles,o=uo(e);t=t||"default";var r=l.get(o);if(!r){var i={loading:0,preload:null};if(r=n.querySelector(Fr(o)))i.loading=5;else{e=ge({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(o))&&hm(e,a);var u=r=n.createElement("link");Ue(u),Ze(u,"link",e),u._p=new Promise(function(s,f){u.onload=s,u.onerror=f}),u.addEventListener("load",function(){i.loading|=1}),u.addEventListener("error",function(){i.loading|=2}),i.loading|=4,ts(r,t,n)}r={type:"stylesheet",instance:r,count:1,state:i},l.set(o,r)}}}function tw(e,t){Ua.X(e,t);var a=go;if(a&&e){var n=Xl(a).hoistableScripts,l=yo(e),o=n.get(l);o||(o=a.querySelector(jr(l)),o||(e=ge({src:e,async:!0},t),(t=$t.get(l))&&gm(e,t),o=a.createElement("script"),Ue(o),Ze(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(l,o))}}function aw(e,t){Ua.M(e,t);var a=go;if(a&&e){var n=Xl(a).hoistableScripts,l=yo(e),o=n.get(l);o||(o=a.querySelector(jr(l)),o||(e=ge({src:e,async:!0,type:"module"},t),(t=$t.get(l))&&gm(e,t),o=a.createElement("script"),Ue(o),Ze(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(l,o))}}function Zg(e,t,a,n){var l=(l=sn.current)?As(l):null;if(!l)throw Error(k(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=uo(a.href),a=Xl(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=uo(a.href);var o=Xl(l).hoistableStyles,r=o.get(e);if(r||(l=l.ownerDocument||l,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,r),(o=l.querySelector(Fr(e)))&&!o._p&&(r.instance=o,r.state.loading=5),$t.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,a),o||nw(l,e,a,r.state))),t&&n===null)throw Error(k(528,""));return r}if(t&&n!==null)throw Error(k(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yo(a),a=Xl(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(k(444,e))}}function uo(e){return'href="'+Gt(e)+'"'}function Fr(e){return'link[rel="stylesheet"]['+e+"]"}function zx(e){return ge({},e,{"data-precedence":e.precedence,precedence:null})}function nw(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Ze(t,"link",a),Ue(t),e.head.appendChild(t))}function yo(e){return'[src="'+Gt(e)+'"]'}function jr(e){return"script[async]"+e}function Qg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(n)return t.instance=n,Ue(n),n;var l=ge({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ue(n),Ze(n,"style",l),ts(n,a.precedence,e),t.instance=n;case"stylesheet":l=uo(a.href);var o=e.querySelector(Fr(l));if(o)return t.state.loading|=4,t.instance=o,Ue(o),o;n=zx(a),(l=$t.get(l))&&hm(n,l),o=(e.ownerDocument||e).createElement("link"),Ue(o);var r=o;return r._p=new Promise(function(i,u){r.onload=i,r.onerror=u}),Ze(o,"link",n),t.state.loading|=4,ts(o,a.precedence,e),t.instance=o;case"script":return o=yo(a.src),(l=e.querySelector(jr(o)))?(t.instance=l,Ue(l),l):(n=a,(l=$t.get(o))&&(n=ge({},a),gm(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),Ue(l),Ze(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(k(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ts(n,a.precedence,e));return t.instance}function ts(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,o=l,r=0;r<n.length;r++){var i=n[r];if(i.dataset.precedence===t)o=i;else if(o!==l)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function hm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var as=null;function Wg(e,t,a){if(as===null){var n=new Map,l=as=new Map;l.set(a,n)}else l=as,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var o=a[l];if(!(o[_r]||o[Ke]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var r=o.getAttribute(t)||"";r=e+r;var i=n.get(r);i?i.push(o):n.set(r,[o])}}return n}function Jg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function lw(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function qx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ow(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=uo(n.href),o=t.querySelector(Fr(l));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ds.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,Ue(o);return}o=t.ownerDocument||t,n=zx(n),(l=$t.get(l))&&hm(n,l),o=o.createElement("link"),Ue(o);var r=o;r._p=new Promise(function(i,u){r.onload=i,r.onerror=u}),Ze(o,"link",n),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ds.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Mc=0;function rw(e,t){return e.stylesheets&&e.count===0&&ns(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&ns(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Mc===0&&(Mc=62500*HC());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ns(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Mc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ns(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ts=null;function ns(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ts=new Map,t.forEach(iw,e),Ts=null,Ds.call(e))}function iw(e,t){if(!(t.state.loading&4)){var a=Ts.get(e);if(a)var n=a.get(null);else{a=new Map,Ts.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<l.length;o++){var r=l[o];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(a.set(r.dataset.precedence,r),n=r)}n&&a.set(null,n)}l=t.instance,r=l.getAttribute("data-precedence"),o=a.get(r)||n,o===n&&a.set(null,l),a.set(r,l),this.count++,n=Ds.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),o?o.parentNode.insertBefore(l,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ar={$$typeof:Ma,Provider:null,Consumer:null,_currentValue:$n,_currentValue2:$n,_threadCount:0};function uw(e,t,a,n,l,o,r,i,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ec(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.hiddenUpdates=ec(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=o,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function Ux(e,t,a,n,l,o,r,i,u,s,f,m){return e=new uw(e,t,a,r,u,s,f,m,i),t=1,o===!0&&(t|=24),o=Mt(3,null,null,t),e.current=o,o.stateNode=e,t=Ff(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:a,cache:t},Vf(o),e}function Hx(e){return e?(e=Fl,e):Fl}function Px(e,t,a,n,l,o){l=Hx(l),n.context===null?n.context=l:n.pendingContext=l,n=cn(t),n.payload={element:a},o=o===void 0?null:o,o!==null&&(n.callback=o),a=fn(e,n,t),a!==null&&(mt(a,e,t),sr(a,e,t))}function e0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ym(e,t){e0(e,t),(e=e.alternate)&&e0(e,t)}function Fx(e){if(e.tag===13||e.tag===31){var t=ul(e,67108864);t!==null&&mt(t,e,67108864),ym(e,67108864)}}function t0(e){if(e.tag===13||e.tag===31){var t=Rt();t=Mf(t);var a=ul(e,t);a!==null&&mt(a,e,t),ym(e,t)}}var Ns=!0;function sw(e,t,a,n){var l=U.T;U.T=null;var o=Z.p;try{Z.p=2,xm(e,t,a,n)}finally{Z.p=o,U.T=l}}function dw(e,t,a,n){var l=U.T;U.T=null;var o=Z.p;try{Z.p=8,xm(e,t,a,n)}finally{Z.p=o,U.T=l}}function xm(e,t,a,n){if(Ns){var l=Cf(n);if(l===null)kc(e,t,n,Rs,a),a0(e,n);else if(fw(l,e,t,a,n))n.stopPropagation();else if(a0(e,n),t&4&&-1<cw.indexOf(e)){for(;l!==null;){var o=fo(l);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var r=Xn(o.pendingLanes);if(r!==0){var i=o;for(i.pendingLanes|=2,i.entangledLanes|=2;r;){var u=1<<31-Nt(r);i.entanglements[1]|=u,r&=~u}ha(o),($&6)===0&&(Ss=Dt()+500,Pr(0,!1))}}break;case 31:case 13:i=ul(o,2),i!==null&&mt(i,o,2),Xs(),ym(o,2)}if(o=Cf(n),o===null&&kc(e,t,n,Rs,a),o===l)break;l=o}l!==null&&n.stopPropagation()}else kc(e,t,n,null,a)}}function Cf(e){return e=Nf(e),vm(e)}var Rs=null;function vm(e){if(Rs=null,e=_l(e),e!==null){var t=Nr(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=u0(t),e!==null)return e;e=null}else if(a===31){if(e=s0(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Rs=e,null}function jx(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(WS()){case m0:return 2;case p0:return 8;case us:case JS:return 32;case h0:return 268435456;default:return 32}default:return 32}}var wf=!1,hn=null,gn=null,yn=null,Dr=new Map,Tr=new Map,an=[],cw="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".split(" ");function a0(e,t){switch(e){case"focusin":case"focusout":hn=null;break;case"dragenter":case"dragleave":gn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":Dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tr.delete(t.pointerId)}}function Wo(e,t,a,n,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:o,targetContainers:[l]},t!==null&&(t=fo(t),t!==null&&Fx(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function fw(e,t,a,n,l){switch(t){case"focusin":return hn=Wo(hn,e,t,a,n,l),!0;case"dragenter":return gn=Wo(gn,e,t,a,n,l),!0;case"mouseover":return yn=Wo(yn,e,t,a,n,l),!0;case"pointerover":var o=l.pointerId;return Dr.set(o,Wo(Dr.get(o)||null,e,t,a,n,l)),!0;case"gotpointercapture":return o=l.pointerId,Tr.set(o,Wo(Tr.get(o)||null,e,t,a,n,l)),!0}return!1}function Gx(e){var t=_l(e.target);if(t!==null){var a=Nr(t);if(a!==null){if(t=a.tag,t===13){if(t=u0(a),t!==null){e.blockedOn=t,Uh(e.priority,function(){t0(a)});return}}else if(t===31){if(t=s0(a),t!==null){e.blockedOn=t,Uh(e.priority,function(){t0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Cf(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Pc=n,a.target.dispatchEvent(n),Pc=null}else return t=fo(a),t!==null&&Fx(t),e.blockedOn=a,!1;t.shift()}return!0}function n0(e,t,a){ls(e)&&a.delete(t)}function mw(){wf=!1,hn!==null&&ls(hn)&&(hn=null),gn!==null&&ls(gn)&&(gn=null),yn!==null&&ls(yn)&&(yn=null),Dr.forEach(n0),Tr.forEach(n0)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,wf||(wf=!0,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,mw)))}var ju=null;function l0(e){ju!==e&&(ju=e,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,function(){ju===e&&(ju=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(vm(n||a)===null)continue;break}var o=fo(a);o!==null&&(e.splice(t,3),t-=3,nf(o,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function so(e){function t(u){return Fu(u,e)}hn!==null&&Fu(hn,e),gn!==null&&Fu(gn,e),yn!==null&&Fu(yn,e),Dr.forEach(t),Tr.forEach(t);for(var a=0;a<an.length;a++){var n=an[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<an.length&&(a=an[0],a.blockedOn===null);)Gx(a),a.blockedOn===null&&an.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],o=a[n+1],r=l[pt]||null;if(typeof o=="function")r||l0(a);else if(r){var i=null;if(o&&o.hasAttribute("formAction")){if(l=o,r=o[pt]||null)i=r.formAction;else if(vm(l)!==null)continue}else i=r.action;typeof i=="function"?a[n+1]=i:(a.splice(n,3),n-=3),l0(a)}}}function Vx(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(r){return l=r})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function bm(e){this._internalRoot=e}$s.prototype.render=bm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));var a=t.current,n=Rt();Px(a,n,e,t,null,null)};$s.prototype.unmount=bm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Px(e.current,2,null,e,null,null),Xs(),t[co]=null}};function $s(e){this._internalRoot=e}$s.prototype.unstable_scheduleHydration=function(e){if(e){var t=b0();e={blockedOn:null,target:e,priority:t};for(var a=0;a<an.length&&t!==0&&t<an[a].priority;a++);an.splice(a,0,e),a===0&&Gx(e)}};var o0=r0.version;if(o0!=="19.2.7")throw Error(k(527,o0,"19.2.7"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=VS(t),e=e!==null?d0(e):null,e=e===null?null:e.stateNode,e};var pw={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Jo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Jo.isDisabled&&Jo.supportsFiber))try{Rr=Jo.inject(pw),Tt=Jo}catch{}var Jo;Zs.createRoot=function(e,t){if(!i0(e))throw Error(k(299));var a=!1,n="",l=_y,o=zy,r=qy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Ux(e,1,!1,null,null,a,n,null,l,o,r,Vx),e[co]=t.current,pm(e),new bm(t)};Zs.hydrateRoot=function(e,t,a){if(!i0(e))throw Error(k(299));var n=!1,l="",o=_y,r=zy,i=qy,u=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(r=a.onCaughtError),a.onRecoverableError!==void 0&&(i=a.onRecoverableError),a.formState!==void 0&&(u=a.formState)),t=Ux(e,1,!0,t,a??null,n,l,u,o,r,i,Vx),t.context=Hx(null),a=t.current,n=Rt(),n=Mf(n),l=cn(n),l.callback=null,fn(a,l,n),a=n,t.current.lanes=a,Or(t,a),ha(t),e[co]=t.current,pm(e),new $s(t)};Zs.version="19.2.7"});var Lm=ua((sk,Yx)=>{"use strict";function Kx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kx)}catch(e){console.error(e)}}Kx(),Yx.exports=Xx()});var Zx=ua(Qs=>{"use strict";/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hw=Symbol.for("react.transitional.element"),gw=Symbol.for("react.fragment");function $x(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var l in t)l!=="key"&&(a[l]=t[l])}else a=t;return t=a.ref,{$$typeof:hw,type:e,key:n,ref:t!==void 0?t:null,props:a}}Qs.Fragment=gw;Qs.jsx=$x;Qs.jsxs=$x});var z=ua((ck,Qx)=>{"use strict";Qx.exports=Zx()});var ek={};function Ge(e,t){return fetch(No(e),t)}async function Ap(){let e=await fetch("/api/sites");Ld=(await Qt(e,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u0430\u0439\u0442\u044B")).sites;for(let n of[document.querySelector("#site-selector"),document.querySelector("#new-site-source")])n.replaceChildren(...Ld.map(l=>{let o=document.createElement("option");return o.value=l.id,o.textContent=l.name,o.selected=l.id===d.projectConfig?.id,o}));let a=document.querySelector("#site-preview");a.href=No("index.html")}function rL(){return!(d.dirty||d.projectConfigDirty)||window.confirm("\u0415\u0441\u0442\u044C \u043D\u0435\u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F. \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0434\u0440\u0443\u0433\u043E\u043C\u0443 \u0441\u0430\u0439\u0442\u0443 \u0431\u0435\u0437 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u044F?")}async function H4(){await Ap(),document.querySelector("#new-site-error").textContent="",document.querySelector("#new-site-dialog").showModal()}async function P4(){await Ap(),document.querySelector("#transfer-site-source").replaceChildren(...Ld.filter(t=>t.id!==d.projectConfig.id).map(t=>{let a=document.createElement("option");return a.value=t.id,a.textContent=t.name,a})),document.querySelector("#transfer-site-error").textContent="",document.querySelector("#transfer-site-dialog").showModal()}function Ro(){try{return JSON.parse(localStorage.getItem(iL)||"{}")}catch{return{}}}function F4(e){try{localStorage.setItem(iL,JSON.stringify(e))}catch{}}function Eo(e){F4({...Ro(),...e})}function j4(){let e=Ro().collections||{};return new Map(Object.entries(e).map(([t,a])=>[t,new Set(Array.isArray(a)?a:[])]))}function uL(){return String(Ro().lastMediaDirectory||"").replace(/^\/+/,"")}function G4(){let e=Ro().mode;return e==="seo"||e==="knowledge"?e:"content"}function Q(e,t,a="text",n=a==="html"?"html":"text",l=null,o={}){return{path:e,label:t,kind:a,renderAs:n,group:l||CL(e),...o}}function yp(e,t,a,n,l){return{path:e,label:t,kind:"collection",renderAs:"collection",group:a,itemTemplate:n,itemFields:l}}function D(e){c.status.textContent=e}async function Qt(e,t="\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u043F\u0440\u043E\u0441\u0430"){let a=await e.json().catch(()=>null);if(e.status===401&&a?.loginUrl)throw D("\u0421\u0435\u0441\u0441\u0438\u044F CMS \u0438\u0441\u0442\u0435\u043A\u043B\u0430. \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u043C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u044B\u0439 \u0432\u0445\u043E\u0434..."),window.location.assign(a.loginUrl),new Error("\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u044B\u0439 \u0432\u0445\u043E\u0434 \u0432 CMS");if(!e.ok||!a)throw new Error(a?.error||t);return a}function mL(){return d.mode==="knowledge"?"knowledge":"home"}function Oo(){d.dirty=Bo.size>0;let e=Je()?d.projectConfigDirty:d.dirty;c.dirtyState.dataset.dirty=String(e),c.dirtyState.textContent=e?"\u0415\u0441\u0442\u044C \u043D\u0435\u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F":Je()?"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043E":fL}function Bp(e){Bo.delete(e),Oo()}function be(e=null){Je()||Bo.set(mL(),++$4),Oo(),e&&D(e)}function cu(e,t=e){fL=e,c.dirtyState.title=t,Oo(),D(t)}function Z4(){let e=document.createElement("input");return e.type="file",e.accept=sL,e.className="admin-file-picker-input",e.tabIndex=-1,e.setAttribute("aria-hidden","true"),document.body.append(e),e}function yl(e){d.filePickerActive=e,e?document.body.dataset.filePickerActive="true":delete document.body.dataset.filePickerActive}function ra(){Ve()&&(c.knowledgeForm.classList.add("hidden"),c.projectSettingsForm.classList.add("hidden"),c.empty.classList.add("hidden"),c.form.classList.remove("hidden"))}function vt(e){return JSON.parse(JSON.stringify(e))}function du(e){return String(e??"").replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Ie(e,t){return t.split(".").reduce((a,n)=>a?.[n],e)}function Wt(e,t,a){let n=t.split("."),l=n.pop(),o=e;n.forEach((r,i)=>{let u=n[i+1]??l;(o[r]==null||typeof o[r]!="object")&&(o[r]=/^\d+$/.test(u)?[]:{}),o=o[r]}),o[l]=a}function Je(){return d.selected?.kind==="project-settings"}function Op(){return d.projectConfig?.name||"NODE.DC"}function pL(){return d.projectConfig?.role||"\u0410\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440 \u0441\u0430\u0439\u0442\u0430"}function bp(){return d.projectConfig?.site||{ready:!1,missingFiles:[]}}function ja(){return!!bp().ready}function _p(){c.workspaceName&&(c.workspaceName.textContent=Op()),c.workspaceRole&&!Je()&&(c.workspaceRole.textContent=d.mode==="knowledge"?"\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432":d.mode==="seo"?"SEO-\u0440\u0435\u0436\u0438\u043C \u0441\u0430\u0439\u0442\u0430":pL())}async function pu(){let e=await Ge("/api/project/config"),t=await Qt(e,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430");return d.projectConfig=t,d.projectConfigDirty=!1,_p(),await Ap(),d.publishResumeAttempted||(d.publishResumeAttempted=!0,u2().catch(()=>{})),t}function Q4(e){return Ie(d.projectConfig||{},e)}function W4(e,t){d.projectConfig||(d.projectConfig={}),Wt(d.projectConfig,e,t),d.projectConfigDirty=!0}function hL(e){return e.type==="checkbox"?e.checked:e.type==="number"?Number(e.value||0):e.value.trim()}function J4(){if(!(!c.projectSettingsForm||!d.projectConfig))for(let e of c.projectSettingsForm.querySelectorAll("[data-project-path]"))Wt(d.projectConfig,e.dataset.projectPath,hL(e))}async function e2(){J4();let e=await Ge("/api/project/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(d.projectConfig)}),t=await e.json().catch(()=>null);if(!e.ok||!t?.ok)throw new Error(t?.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430");d.projectConfig=t.project,d.projectConfigDirty=!1,Oo(),_p(),Sl(),D("\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B.")}async function t2(){let[e,t,a]=await Promise.all([Ge("/api/page/home"),Ge("/api/knowledge"),Ge("/api/media/site-size")]);if(!e.ok)throw new Error(`home.json: ${await e.text()}`);if(!t.ok)throw new Error(`knowledge.json: ${await t.text()}`);let n=a.ok?await a.json():null;D(`\u041F\u0440\u043E\u0435\u043A\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0420\u0430\u0437\u043C\u0435\u0440 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: ${n?.label||"\u043D\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043D"}.`)}async function gL(){let e=await Ge("/api/project/publish/start",{method:"POST"}),t=await Qt(e,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044E \u043F\u0440\u043E\u0435\u043A\u0442\u0430");if(!t?.ok||!t.job?.id)throw new Error(t?.error||"\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0432\u0435\u0440\u043D\u0443\u043B ID \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438");return d.publishJob=t.job,Id(),t.job}async function a2(){let e=await gL();await zp(e.id)}async function n2(){if(!d.backupDownloading){d.backupDownloading=!0,c.downloadBackup.disabled=!0,c.downloadBackup.textContent="\u0413\u043E\u0442\u043E\u0432\u0438\u043C \u0431\u044D\u043A\u0430\u043F\u2026",D("\u041F\u043E\u0434\u0433\u043E\u0442\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C ZIP \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u0430\u0439\u0442\u0430\u2026");try{let e=await Ge("/api/project/backup",{method:"POST"}),t=await Qt(e,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u0438\u0442\u044C \u0431\u044D\u043A\u0430\u043F");if(!t?.ok||!/^\/api\/project\/backup\?token=[a-f0-9]{48}$/.test(t.downloadUrl||""))throw new Error("\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0432\u0435\u0440\u043D\u0443\u043B \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0431\u044D\u043A\u0430\u043F");let a=document.createElement("a");a.href=No(t.downloadUrl),a.download=t.fileName,document.body.append(a),a.click(),a.remove(),D(`\u0411\u044D\u043A\u0430\u043F \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D: ${t.fileName}. \u0421\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u043F\u0435\u0440\u0435\u0434\u0430\u043D\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443.`)}finally{d.backupDownloading=!1,c.downloadBackup.disabled=!ja(),c.downloadBackup.textContent="\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0431\u044D\u043A\u0430\u043F"}}}function wd(e=d.publishJob){return!!(e&&!["completed","failed"].includes(e.state))}function yL(e){return{queued:"\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430 \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u044C",building:"\u0421\u043E\u0431\u0438\u0440\u0430\u0435\u043C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0441\u0430\u0439\u0442\u0430",scanning:"\u0421\u0447\u0438\u0442\u0430\u0435\u043C \u0444\u0430\u0439\u043B\u044B \u0438 \u043E\u0431\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C",connecting:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0430\u0435\u043C\u0441\u044F \u043A \u0445\u043E\u0441\u0442\u0438\u043D\u0433\u0443",publishing:"\u041F\u0435\u0440\u0435\u0434\u0430\u0451\u043C \u0444\u0430\u0439\u043B\u044B \u043F\u043E SFTP",completed:"\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430",failed:"\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 \u0441 \u043E\u0448\u0438\u0431\u043A\u043E\u0439"}[e?.state]||"\u041F\u043E\u0434\u0433\u043E\u0442\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044E"}function l2(){if(!c.publish)return;let e=wd(),t=!!d.projectConfig?.deploy?.enabled;c.publish.disabled=e||!t||!ja()||d.projectConfigDirty,c.publish.textContent=e?`${Number(d.publishJob?.percent||0).toLocaleString("ru-RU")}%`:"\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C"}function o2(){let e=document.createElement("section");return e.className="settings-card publish-progress-card",e.dataset.publishProgress="true",e.innerHTML=`
<div class="publish-progress-head">
<div>
<div class="section-kicker">\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F</div>
<h3 data-publish-title></h3>
</div>
<strong data-publish-percent></strong>
</div>
<div class="publish-progress-track" role="progressbar" aria-label="\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438" aria-valuemin="0" aria-valuemax="100">
<span data-publish-bar></span>
</div>
<div class="publish-progress-stats">
<span data-publish-volume></span>
<span data-publish-files></span>
<span data-publish-uploaded></span>
<span data-publish-skipped></span>
</div>
<p class="publish-progress-current" data-publish-current></p>
<p class="publish-progress-error hidden" data-publish-error></p>
`,e}function Id(){l2();let e=d.publishJob;if(!e||!c.projectSettingsForm||c.projectSettingsForm.classList.contains("hidden"))return;let t=c.projectSettingsForm.querySelector("[data-publish-progress]");t||(t=o2(),c.projectSettingsForm.prepend(t));let a=Number(e.percent||0);t.dataset.state=e.state||"queued",t.querySelector("[data-publish-title]").textContent=yL(e),t.querySelector("[data-publish-percent]").textContent=`${a.toLocaleString("ru-RU")}%`,t.querySelector(".publish-progress-track").setAttribute("aria-valuenow",String(a)),t.querySelector("[data-publish-bar]").style.width=`${a}%`,t.querySelector("[data-publish-volume]").textContent=`${e.processedLabel||"0 \u0411"} \u0438\u0437 ${e.totalLabel||"0 \u0411"}`,t.querySelector("[data-publish-files]").textContent=`\u041F\u0440\u043E\u0432\u0435\u0440\u0435\u043D\u043E: ${Number(e.processedFiles||0).toLocaleString("ru-RU")}/${Number(e.totalFiles||0).toLocaleString("ru-RU")}`,t.querySelector("[data-publish-uploaded]").textContent=`\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043E: ${Number(e.uploadedFiles||0).toLocaleString("ru-RU")}`,t.querySelector("[data-publish-skipped]").textContent=`\u0411\u0435\u0437 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439: ${Number(e.skippedFiles||0).toLocaleString("ru-RU")}`,t.querySelector("[data-publish-current]").textContent=e.currentFile?`\u0421\u0435\u0439\u0447\u0430\u0441: ${e.currentFile}`:e.host?`${e.host}/${e.remoteRoot||""}`:"";let l=t.querySelector("[data-publish-error]");l.textContent=e.error||"",l.classList.toggle("hidden",!e.error)}function r2(e){let t=e.currentFile?` \xB7 ${e.currentFile}`:"";return`${yL(e)}: ${Number(e.percent||0).toLocaleString("ru-RU")}% \xB7 ${e.processedLabel||"0 \u0411"}/${e.totalLabel||"0 \u0411"}${t}`}async function xL(e=""){let t=e?`?jobId=${encodeURIComponent(e)}`:"",a=await Ge(`/api/project/publish/status${t}`);return a.status===404?null:(await Qt(a,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438")).job||null}function zp(e){if(!gd.has(e)){let t=i2(e).finally(()=>gd.delete(e));gd.set(e,t)}return gd.get(e)}async function i2(e){for(;;){let t=await xL(e);if(!t)throw new Error("\u0421\u0435\u0440\u0432\u0435\u0440 \u043F\u043E\u0442\u0435\u0440\u044F\u043B \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438");if(d.publishJob=t,Id(),wd(t)&&cu("\u041F\u0443\u0431\u043B\u0438\u043A\u0443\u0435\u0442\u0441\u044F\u2026",r2(t)),t.state==="completed")return cu("\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u043E",s2({publish:t}).trim()||"\u041F\u0440\u043E\u0435\u043A\u0442 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D."),t;if(t.state==="failed")throw new Error(`\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430: ${t.error||"\u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430"}. \u0424\u0430\u0439\u043B: ${t.currentFile||"\u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D"}`);await new Promise(a=>window.setTimeout(a,700))}}async function u2(){let e=await xL();e&&(d.publishJob=e,Id(),wd(e)?await zp(e.id):e.state==="failed"&&D(`\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C \u0441 \u043E\u0448\u0438\u0431\u043A\u043E\u0439: ${e.error||"\u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430"}. \u0424\u0430\u0439\u043B: ${e.currentFile||"\u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D"}`))}function s2(e){let t=e?.publish;if(!t)return"";let a=Number(t.uploadedFiles||0).toLocaleString("ru-RU"),n=Number(t.skippedFiles||0).toLocaleString("ru-RU"),l=Number(t.totalFiles||0).toLocaleString("ru-RU"),o=t.uploadedLabel||"0 \u041C\u0411";return` \u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u043E \u043D\u0430 ${t.host}: \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043E ${a}/${l}, \u043F\u0440\u043E\u043F\u0443\u0449\u0435\u043D\u043E ${n}, \u043E\u0431\u044A\u0435\u043C ${o}.`}function vL(){d.page&&(d.page.seo={...V4,...d.page.seo||{}})}function d2(e){!e||et()||(e.seo={...Np,...e.seo||{}})}function c2(){vL();for(let e of d.page?.regions||[])for(let t of e.blocks||[])t.seo={...Np,...t.seo||{}}}function qp(e){if(!ja()&&!Je()){d.mode="content",Eo({mode:d.mode}),Ed();return}let t=e==="seo"||e==="knowledge"?e:"content";if(d.mode=t,Je()&&(d.selected=t==="knowledge"?null:{kind:"static"}),Eo({mode:t}),t==="knowledge"&&!d.knowledge){nh().catch(a=>D(a.message)),Mo();return}d.page?bt():Mo()}function Mo(){Oo();let e=d.mode==="seo",t=d.mode==="knowledge",a=ja();document.body.dataset.adminMode=d.mode,c.modeNav?.classList.toggle("hidden",!a),c.modeContent&&(c.modeContent.dataset.active=String(!e&&!t)),c.modeSeo&&(c.modeSeo.dataset.active=String(e)),c.modeKnowledge&&(c.modeKnowledge.dataset.active=String(t)),c.sidebarTitle&&(c.sidebarTitle.textContent=t?"\u0411\u0430\u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u0439":e?"SEO":"\u0410\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435"),c.workspaceRole&&(c.workspaceRole.textContent=t?"\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432":e?"SEO-\u0440\u0435\u0436\u0438\u043C \u0441\u0430\u0439\u0442\u0430":pL()),c.editorHeading&&(c.editorHeading.textContent=t?"\u0411\u0430\u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u0439":e?"SEO \u0441\u0430\u0439\u0442\u0430":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0430\u0439\u0442\u0430"),c.panelKicker&&(c.panelKicker.textContent=t?"Knowledge":e?"SEO":"\u041A\u043E\u043D\u0442\u0435\u043D\u0442"),c.panelTitle&&(c.panelTitle.textContent=t?"\u0414\u0435\u0440\u0435\u0432\u043E \u0438 \u0441\u0442\u0430\u0442\u044C\u044F":e?"\u0421\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430 \u0438 \u0441\u043D\u0438\u043F\u043F\u0435\u0442\u044B":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u043F\u043E\u043B\u044F"),c.panelNote&&(c.panelNote.textContent=t?"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044E\u0442\u0441\u044F \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 SEO-\u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0440\u0430\u0437\u0434\u0435\u043B\u0430 /knowledge/.":e?"\u041F\u043E\u043B\u044F \u0433\u043E\u0442\u043E\u0432\u044F\u0442 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u0438 \u0441\u0435\u043A\u0446\u0438\u0438 \u043A \u0441\u0435\u043C\u0430\u043D\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0435 \u0438 \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0435\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438.":"\u041F\u043E\u043B\u044F \u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043F\u043E \u0441\u043C\u044B\u0441\u043B\u043E\u0432\u044B\u043C \u043F\u043E\u0434\u0431\u043B\u043E\u043A\u0430\u043C \u0432\u0435\u0440\u0441\u0442\u043A\u0438."),c.addBlock&&(c.addBlock.title=t?"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0437\u0434\u0435\u043B \u0432 \u043A\u043E\u0440\u0435\u043D\u044C \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0431\u043B\u043E\u043A",c.addBlock.setAttribute("aria-label",c.addBlock.title),c.addBlock.disabled=!a),c.addProject&&(c.addProject.title="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0430\u0439\u0442",c.addProject.setAttribute("aria-label","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0430\u0439\u0442")),c.save&&(c.save.textContent="\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",c.save.title=d.projectConfig?.deploy?.enabled&&d.projectConfig?.deploy?.deployOnRender?"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C \u043D\u0430 \u0441\u0430\u0439\u0442\u0435":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438 \u043F\u0435\u0440\u0435\u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B",c.save.disabled=!a&&!Je()),c.render&&(c.render.textContent=d.projectConfig?.deploy?.enabled?"\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440",c.render.title=d.projectConfig?.deploy?.enabled?"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u043A\u0438 \u0438 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C \u0441\u0430\u0439\u0442 \u043D\u0430 \u0445\u043E\u0441\u0442\u0438\u043D\u0433\u0435":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u043A\u0438 \u0438 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440",c.render.disabled=!a&&!Je()),c.publish&&(c.publish.classList.add("hidden"),c.publish.disabled=!0),c.downloadBackup?.classList.add("hidden"),c.reload&&(c.reload.disabled=!a&&!Je())}function bL(e){return d.mode==="seo"&&et()?d.page?.seo||{}:e||{}}function f2(e){let t=new Map;for(let a of e){let n=a.group||"SEO";t.has(n)||t.set(n,[]),t.get(n).push(a)}return t}function Lp(e){return e==null?"":Array.isArray(e)?e.map(Lp).join(" "):typeof e=="object"?Object.values(e).map(Lp).join(" "):String(e).replace(/<[^>]*>/g," ").replace(/https?:\/\/\S+/g," ").replace(/\s+/g," ").trim()}function vd(e,t,a){let n=String(e||"").trim().length;return!t&&!a?{status:"info",text:n?`${n} \u0441\u0438\u043C\u0432.`:"\u043F\u0443\u0441\u0442\u043E"}:n?t&&n<t||a&&n>a?{status:"warn",text:`${n} \u0441\u0438\u043C\u0432. \xB7 \u0446\u0435\u043B\u044C ${t||0}-${a||"\u221E"}`}:{status:"good",text:`${n} \u0441\u0438\u043C\u0432.`}:{status:"bad",text:`\u043F\u0443\u0441\u0442\u043E \xB7 \u0446\u0435\u043B\u044C ${t||0}-${a||"\u221E"}`}}function _n(e,t,a="info"){let n=document.createElement("div"),l=document.createElement("span"),o=document.createElement("strong");return n.className="seo-metric",n.dataset.status=a,l.textContent=e,o.textContent=t,n.append(l,o),n}function m2(e){let t=Lp(e?.content||""),a=t?t.split(/\s+/).filter(Boolean).length:0;return{text:t,words:a,chars:t.length}}function p2({targetModel:e,fields:t,isStatic:a}){let n=document.createElement("section"),l=document.createElement("div"),o=document.createElement("h3"),r=document.createElement("p"),i=document.createElement("div");if(n.className="seo-diagnostics",l.className="group-head",o.textContent=a?"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B":"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0430 \u0431\u043B\u043E\u043A\u0430",r.className="group-desc",r.textContent=a?"\u0411\u0430\u0437\u043E\u0432\u044B\u0435 \u043F\u043E\u043B\u044F, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u043F\u0430\u0434\u0430\u044E\u0442 \u0432 head, Open Graph, sitemap \u0438 structured data.":"\u0427\u0435\u0440\u043D\u043E\u0432\u043E\u0439 \u0441\u043B\u043E\u0439 \u0434\u043B\u044F \u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0438 \u0431\u043B\u043E\u043A\u0430. \u041F\u043E\u0437\u0436\u0435 \u0435\u0433\u043E \u0441\u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u043E\u043B\u043D\u044F\u0442\u044C \u0432\u043D\u0435\u0448\u043D\u0438\u0439 SEO-\u043C\u043E\u0434\u0443\u043B\u044C.",l.append(o,r),i.className="seo-metric-grid",a){let u=vd(Ie(e,"seo.title"),35,70),s=vd(Ie(e,"seo.description"),110,170),f=String(Ie(e,"seo.canonicalUrl")||""),m=String(Ie(e,"seo.ogImage")||"");i.append(_n("Title",u.text,u.status),_n("Description",s.text,s.status),_n("Canonical",f.startsWith("https://")?"\u0430\u0431\u0441\u043E\u043B\u044E\u0442\u043D\u044B\u0439":"\u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C",f.startsWith("https://")?"good":"warn"),_n("OG image",m?"\u0437\u0430\u0434\u0430\u043D":"\u043F\u0443\u0441\u0442\u043E",m?"good":"bad"))}else{let u=m2(e),s=String(Ie(e,"seo.primaryQuery")||"").trim(),f=String(Ie(e,"seo.secondaryQueries")||"").split(/\n|,/).map(p=>p.trim()).filter(Boolean),m=vd(Ie(e,"seo.title"),35,80);i.append(_n("\u0422\u0435\u043A\u0441\u0442 \u0431\u043B\u043E\u043A\u0430",`${u.words} \u0441\u043B\u043E\u0432`,u.words>=40?"good":"warn"),_n("\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0437\u0430\u043F\u0440\u043E\u0441",s?"\u0437\u0430\u0434\u0430\u043D":"\u043F\u0443\u0441\u0442\u043E",s?"good":"bad"),_n("\u0421\u043C\u0435\u0436\u043D\u044B\u0435 \u0437\u0430\u043F\u0440\u043E\u0441\u044B",`${f.length}`,f.length?"good":"warn"),_n("SEO-\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",m.text,m.status))}return n.append(l,i),n}function Xb(e,t,a){if(!e)return;let n=vd(Td(t),a.min,a.max);e.dataset.status=n.status,e.textContent=n.text}function h2({targetModel:e,seoField:t,grid:a}){let n=!!t.mediaKind,l=document.createElement(n?"div":"label"),o=document.createElement(n?"label":"span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("span"),s=t.kind==="textarea",f=t.kind==="select"?document.createElement("select"):s?document.createElement("textarea"):document.createElement("input"),m=Ie(e,t.path)??"",p=t.min||t.max?document.createElement("span"):null;if(l.className=`field-control seo-field${s||n?" wide":""}`,o.className="field-label-row",r.className="field-label-text",r.textContent=t.label||t.path,i.className="field-kind",i.textContent=t.kind||"text",u.className="field-path",u.textContent=t.path,o.append(r,i),t.kind==="select"){let h=new Set([...t.options||[],m].filter(Boolean));for(let b of h){let S=document.createElement("option");S.value=b,S.textContent=b,f.append(S)}}else s||(f.autocomplete="off",f.type=t.kind==="url"?"url":"text");if(f.dataset.seoPath=t.path,f.value=m,f.placeholder=t.placeholder||"",Xb(p,f,t),f.addEventListener(t.kind==="select"?"change":"input",()=>{Wt(et()?d.page:e,t.path,Td(f)),Xb(p,f,t),c.json.value=JSON.stringify(bL(Ve()),null,2),be("SEO-\u043F\u043E\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB.")}),l.append(o),n){f.id="seo-og-image",o.htmlFor=f.id;let h=document.createElement("div");h.className="seo-media-controls";let b=document.createElement("button");b.type="button",b.textContent="\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u0444\u0430\u0439\u043B\u043E\u0432";let S=document.createElement("span");S.className="media-upload-error",S.setAttribute("role","alert"),b.addEventListener("click",async()=>{S.textContent="";let x;try{if(x=new URL(d.projectConfig?.publicUrl),!["https:","http:"].includes(x.protocol)||x.username||x.password)throw Error()}catch{S.textContent="\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439 \u0434\u043E\u043C\u0435\u043D \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0430\u0439\u0442\u0430.";return}x.search=x.hash="",x.pathname.endsWith("/")||(x.pathname+="/");let g=new URL("assets/",x).href,y=f.value.startsWith(g)?"./assets/"+f.value.slice(g.length):"";await Dd({block:e,editableField:t,currentUrl:y,initialDirectory:"assets",requiredKind:t.mediaKind,error:S,onSelect(v){f.value=new URL(v,x).href,f.dispatchEvent(new Event("input",{bubbles:!0}))}}).catch(v=>{S.textContent=v.message})}),h.append(f,b),l.append(h,S)}else l.append(f);p&&(p.className="seo-field-meter",l.append(p)),l.append(u),a.append(l)}function g2(e){let t=et(),a=t?d.page:e,n=t?X4:K4;t?vL():d2(e),c.contentFields.innerHTML="",c.contentFields.append(p2({targetModel:a,fields:n,isStatic:t}));for(let[l,o]of f2(n)){let r=document.createElement("section"),i=document.createElement("div"),u=document.createElement("div"),s=document.createElement("h3"),f=document.createElement("p"),m=document.createElement("div");r.className="content-group seo-group",i.className="group-head",s.textContent=l,f.className="group-desc",f.textContent=t?"\u041F\u043E\u043B\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0438 \u043F\u043E\u0438\u0441\u043A\u043E\u0432\u043E\u0433\u043E \u0441\u043D\u0438\u043F\u043F\u0435\u0442\u0430.":"\u041F\u043E\u043B\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0441\u0435\u043A\u0446\u0438\u0438 \u0434\u043B\u044F \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u0441\u0435\u043C\u0430\u043D\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043A\u0430\u0440\u0442\u044B.",u.append(s,f),i.append(u),m.className="group-grid";for(let p of o)h2({targetModel:a,seoField:p,grid:m});r.append(i,m),c.contentFields.append(r)}}function LL(e){return y2.has(String(e||"").trim())}function Sp(e){return/^(https?:)?\/\//i.test(String(e||""))||/^(mailto:|tel:)/i.test(String(e||""))}function kd(e){let t=String(e||"").trim();if(!t||/^javascript:/i.test(t)||Sp(t))return"";let a=t;return a.includes("#")&&(a=a.slice(a.indexOf("#")+1)),a=a.replace(/^\/+/,"").replace(/^index\.html#?/i,"").replace(/^#+/,"").trim(),!a||a==="/"||a==="index.html"||a.startsWith("knowledge/")||LL(a)?"":a}function xl(){let e=[];for(let t of d.page?.regions||[])for(let a of t.blocks||[]){if(a.enabled===!1)continue;let n=kd(a.anchor);n&&e.push({block:a,id:a.id,label:a.adminLabel||a.id,target:n})}return e.sort((t,a)=>t.target.localeCompare(a.target,"ru"))}function x2(e){let t=String(e||"").trim(),a=kd(t),n=t.toLowerCase(),l=a.toLowerCase();return xl().find(o=>o.target.toLowerCase()===l)||xl().find(o=>o.id.toLowerCase()===n)||xl().find(o=>o.label.toLowerCase()===n)||null}function Up(e,t=null){let a=new Set(xl().filter(r=>r.block!==t).map(r=>r.target)),n=Pp(kd(e)||e||"section"),l=n,o=2;for(;a.has(l);)l=`${n}-${o}`,o+=1;return l}function SL(){let e=new Map,t=[];for(let a of xl()){if(e.has(a.target)){t.push({target:a.target,first:e.get(a.target),second:a});continue}e.set(a.target,a)}return t}function v2(){let e=SL();if(!e.length)return;let t=e.map(({target:a,first:n,second:l})=>`${a}: ${n.label} / ${l.label}`).join("; ");throw new Error(`Target \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u043C \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u0431\u043B\u043E\u043A\u0430. \u0414\u0443\u0431\u043B\u0438: ${t}`)}function Cp(){if(c.targetOptions){c.targetOptions.innerHTML="";for(let{target:e,label:t}of xl()){let a=document.createElement("option");a.value=e,a.label=t,c.targetOptions.append(a)}}}function b2(e,t={}){if(!e||typeof e!="object")return;let a=e.href??t.href??"",n=e.target??t.target??"",l=e.linkTarget??t.linkTarget??"";LL(n)&&(l||=n,n="");let o=Sp(a)?"href":"target",r=e.linkMode==="href"||e.linkMode==="target"?e.linkMode:o;r==="target"&&!n&&a&&!Sp(a)&&(n=a,a=""),e.enabled=e.enabled!==!1,e.href=a,e.target=n,e.linkMode=r,e.linkTarget=l}function L2(e,t=[]){Array.isArray(e)&&e.forEach((a,n)=>b2(a,t[n]||t[0]||{}))}function CL(e){return e.startsWith("content.navigation.")?"\u0428\u0430\u043F\u043A\u0430":e.startsWith("content.notifications.")?"\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F":e.startsWith("content.dock.")?"Dock":e.startsWith("content.assets.")?"\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B":e.startsWith("content.cards.")?"\u0422\u0435\u0437\u0438\u0441\u044B \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u044D\u043A\u0440\u0430\u043D\u0430":e.startsWith("content.app.")||e.startsWith("content.accessCard.")?"\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430":e.startsWith("content.form.")?"\u0424\u043E\u0440\u043C\u0430":e==="content.legalHtml"||e.startsWith("content.legal.")?"\u042E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0431\u043B\u043E\u043A":e==="content.windowTitle"||e==="content.videoSrc"?"\u0412\u0438\u0434\u0435\u043E-\u043E\u043A\u043D\u043E":e.startsWith("content.features.")?"\u041F\u0443\u043D\u043A\u0442\u044B":e.startsWith("content.scroll.")?"\u0421\u043A\u0440\u043E\u043B\u043B":e.startsWith("content.sliderItems.")?"\u0421\u043B\u0430\u0439\u0434\u0435\u0440":e.startsWith("content.bottomInfo.")?"\u041D\u0438\u0436\u043D\u0438\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A":e.startsWith("content.oneClick.")?"\u041E\u0434\u0438\u043D \u043A\u043B\u0438\u043A":e.startsWith("content.mcp.")?"MCP":e.startsWith("content.faq.")?"FAQ":e.startsWith("content.cta.")?"CTA":e.startsWith("content.plans.")||e.startsWith("content.pricing.")?"\u0422\u0430\u0440\u0438\u0444\u044B":e.startsWith("content.pricingCells.")?"\u0421\u0442\u0440\u043E\u043A\u0438 \u0442\u0430\u0440\u0438\u0444\u043E\u0432":e==="content.galleryItems"||e.startsWith("content.galleryItems.")?"\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442\u043E\u0432":e==="content.filesEnabled"||e.startsWith("content.files.")?"TXT-\u0444\u0430\u0439\u043B\u044B":e==="content.footer.policyEnabled"||e==="content.footer.policyHtml"?"\u041F\u043E\u043B\u0438\u0442\u0438\u043A\u0438":e.startsWith("content.footer.navLinks.")?"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u0444\u0443\u0442\u0435\u0440\u0430":e.startsWith("content.footer.contactLinks.")?"\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438":e.startsWith("content.footer.")?"\u0424\u0443\u0442\u0435\u0440":e.startsWith("content.heading.")||e==="content.introHtml"?"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A":"\u041A\u043E\u043D\u0442\u0435\u043D\u0442"}function S2(e={},t={}){return[{enabled:!0,title:"NODE.DC",href:"javascript:void(0)",linkTarget:"",targetId:e.appTarget||"app-data",iconSrc:t.appIconSrc||je.content.assets.appIconSrc,iconAlt:t.appIconAlt||je.content.assets.appIconAlt,className:"dock-icon nodedc-app",iconClass:"logo",dividerBefore:!1},{enabled:!0,title:"\u041A\u043E\u0440\u0437\u0438\u043D\u0430",href:"javascript:void(0)",linkTarget:"",targetId:"",iconSrc:"./assets/site/images/69a9ae818a76c773dc3cf7bc_trash.avif",iconAlt:e.trashAlt||"\u0411\u0435\u043B\u0430\u044F \u0438\u043A\u043E\u043D\u043A\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u044B.",className:"dock-icon no-bg",iconClass:"dock-app-img trash",dividerBefore:!0}]}function C2(e,t={}){let a=S2(e,t);Array.isArray(e.items)?e.items=e.items.map((n,l)=>{let o=a[l]||a[0],r=i=>Object.prototype.hasOwnProperty.call(n,i);return{enabled:n.enabled!==!1,title:n.title||o.title||`\u042D\u043B\u0435\u043C\u0435\u043D\u0442 ${l+1}`,href:n.href??o.href??"",linkTarget:n.linkTarget??o.linkTarget??"",targetId:n.targetId??o.targetId??"",iconSrc:r("iconSrc")?n.iconSrc:o.iconSrc,iconAlt:r("iconAlt")?n.iconAlt:n.alt||o.iconAlt,className:n.className||o.className||"dock-icon nodedc-app",iconClass:r("iconClass")?n.iconClass:o.iconClass||"logo",dividerBefore:!!n.dividerBefore}}):e.items=a,e.demoFileLabel||=je.content.dock.demoFileLabel,delete e.appTarget,delete e.trashAlt}function w2(){if(!d.page.staticElements){d.page.staticElements=vt(je);return}d.page.staticElements.id||=je.id,d.page.staticElements.type||=je.type,d.page.staticElements.adminLabel||=je.adminLabel,d.page.staticElements.enabled=!0,d.page.staticElements.content||=vt(je.content),d.page.staticElements.content.navigation||=vt(je.content.navigation),d.page.staticElements.content.navigation.logoSrc||=je.content.navigation.logoSrc,d.page.staticElements.content.navigation.links||=vt(je.content.navigation.links),L2(d.page.staticElements.content.navigation.links,je.content.navigation.links),d.page.staticElements.content.notifications||=vt(je.content.notifications),d.page.staticElements.content.notifications.forEach((e,t)=>{e.enabled=e.enabled!==!1,e.eyebrowClass||=je.content.notifications[t]?.eyebrowClass||"red-txt gray"}),d.page.staticElements.content.assets||=vt(je.content.assets);for(let[e,t]of Object.entries(je.content.assets))Object.prototype.hasOwnProperty.call(d.page.staticElements.content.assets,e)||(d.page.staticElements.content.assets[e]=t);d.page.staticElements.content.dock||=vt(je.content.dock),C2(d.page.staticElements.content.dock,d.page.staticElements.content.assets),d.page.staticElements.editableFields=vt(je.editableFields)}function I2(){let t=(Array.isArray(d.page.regions)?d.page.regions:[]).flatMap(a=>(a.blocks??[]).map(n=>(n.region||=a.id,n)));d.page.regions=[{id:Dp,label:Tp,description:"\u0415\u0434\u0438\u043D\u044B\u0439 \u043F\u043E\u0440\u044F\u0434\u043E\u043A \u0441\u0435\u043A\u0446\u0438\u0439 \u0433\u043B\u0430\u0432\u043D\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B.",blocks:t}]}function k2(){return Math.max(0,d.page.regions.findIndex(e=>e.id===Dp))}function et(){return d.selected?.kind==="static"}function Ll(){return d.selected?et()?{id:"static",label:"\u0421\u0442\u0430\u0442\u0438\u0447\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",description:"Shell-\u0441\u043B\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B: \u0448\u0430\u043F\u043A\u0430, \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F, dock \u0438 \u0431\u0430\u0437\u043E\u0432\u044B\u0435 \u0430\u0441\u0441\u0435\u0442\u044B."}:d.page.regions[d.selected.regionIndex]:null}function Ve(){if(!d.selected)return null;if(et())return d.page.staticElements;let e=Ll();return!e||d.selected.blockIndex==null?null:e.blocks[d.selected.blockIndex]}function Hp(e){let t=new Set([d.page.staticElements?.id,...d.page.regions.flatMap(l=>l.blocks.map(o=>o.id))]),a=`${e}-copy`,n=2;for(;t.has(a);)a=`${e}-copy-${n}`,n+=1;return a}function E2(e){return Hp(Pp(e||"block").replace(/-copy(?:-\d+)?$/,""))}function hu(e,t=22){return e?e.length>t?`${e.slice(0,t-1)}\u2026`:e:""}function Ga(e){if(!e)return"\u0424\u0430\u0439\u043B \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D";try{let t=e.split("?")[0].split("#")[0];return decodeURIComponent(t.slice(t.lastIndexOf("/")+1))||e}catch{return e}}function Pp(e){return String(e||"site").normalize("NFKD").replace(/[^\w.-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()||"site"}function fu(e){return e?/^(blob:|data:|https?:)/i.test(e)?e:No(e):""}function wL(e){return e?/\.(mp4|webm|mov|m4v|avi|mkv)(\?.*)?$/i.test(e)?"video":/\.(png|jpe?g|gif|svg|ico|avif|webp)(\?.*)?$/i.test(e)?"image":/\.(glb|gltf)(\?.*)?$/i.test(e)?"model":/\.(woff2?|ttf|otf)(\?.*)?$/i.test(e)?"font":null:null}function IL(e){let t=Number(e);if(!Number.isFinite(t)||t<0)return"";if(t<1024)return`${t} B`;let a=["KB","MB","GB"],n=t/1024,l=0;for(;n>=1024&&l<a.length-1;)n/=1024,l+=1;return`${n>=10?n.toFixed(0):n.toFixed(1)} ${a[l]}`}function Kb(e){let t=Number(e);return Number.isFinite(t)?new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(t)):""}function Fp(e){return e?.usage?.status||"unused"}function Sd(e){return e?.usage?.label||"\u041D\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F"}function Yb(e){return[e.kind,e.extension,IL(e.size)].filter(Boolean).join(" \xB7 ")}function _o(){let e=d.mediaLibrary.selectedEntry;return e?.type==="file"?e:null}function M2(e){let t=String(e?.path||"").toLowerCase(),a=String(e?.label||"").toLowerCase();return/logo|icon|wordmark|логотип|икон/.test(`${t} ${a}`)}function jp(e,t){let a=t.path.toLowerCase(),n=String(Ie(e,t.path)??"").toLowerCase(),l=Pp(e?.id||e?.type||"site"),o="images";return(a.includes("webgl")||n.endsWith(".glb")||n.endsWith(".gltf"))&&(o="models"),(a.includes("video")||a.includes("media")||a.includes("sliders")||a.includes("slideritems"))&&(o="media"),(a.includes("font")||/\.(woff2?|ttf|otf)(\?.*)?$/i.test(n))&&(o="fonts"),a.includes("favicon")?"favicon":`${o}/${l}`}function kL(e){let t=e.id||"",a=e.type||"";return t==="static-elements"?"SE":t.includes("gallery")||t.includes("screenshot")?"SC":t.includes("hero")?"H":t.includes("feature")||t.includes("video")?"V":t.includes("component")?"C":t.includes("modes")?"AI":t.includes("faq")?"Q":t.includes("pricing")?"P":t.includes("waitlist")?"W":t.includes("footer")?"F":a.includes("Cta")?"GO":"B"}function A2(e){return e.id===Dp||e.id==="beforeCViz"||e.id==="cViz"?Tp:e.label||e.id}function EL(e){return e.template||e.type||e.id}function Fa(){d.drag=null,d.dragTarget=null,document.querySelectorAll(".dragging, .drag-over, .sorting-source, .sorting-active").forEach(e=>{e.classList.remove("dragging","drag-over","sorting-source","sorting-active")}),document.querySelectorAll(".sortable-ghost, .sortable-placeholder").forEach(e=>e.remove())}function ML(e,t){let a=e.getBoundingClientRect(),n=e.cloneNode(!0);return n.classList.add("sortable-ghost"),n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.dataset.dragOffsetX=String(t.clientX-a.left),n.dataset.dragOffsetY=String(t.clientY-a.top),document.body.append(n),Gp(n,t),n}function Gp(e,t){e.style.left=`${t.clientX-Number(e.dataset.dragOffsetX||0)}px`,e.style.top=`${t.clientY-Number(e.dataset.dragOffsetY||0)}px`}function AL(e){let t=e.getBoundingClientRect(),a=document.createElement("div");return a.className="sortable-placeholder",a.style.height=`${t.height}px`,a}function D2(e,t){return e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom}function DL({event:e,list:t,source:a,placeholder:n,selector:l}){let o=t.getBoundingClientRect();if(!D2(e,o))return;let r=[...t.querySelectorAll(l)].filter(i=>i!==a&&i!==n);for(let i of r){let u=i.getBoundingClientRect();if(e.clientY<u.top+u.height/2){t.insertBefore(n,i);return}}t.append(n)}function TL({list:e,placeholder:t,source:a,selector:n}){return[...e.querySelectorAll(`${n}, .sortable-placeholder`)].filter(l=>l===t||l!==a).indexOf(t)}function T2(e,t,a){let n=d.page.regions[e];if(!n||t===a||a<0){Fa();return}let[l]=n.blocks.splice(t,1);n.blocks.splice(Math.min(a,n.blocks.length),0,l),d.selected={kind:"block",regionIndex:e,blockIndex:Math.min(a,n.blocks.length-1)},Fa(),bt(),be("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u0431\u043B\u043E\u043A\u043E\u0432 \u0438\u0437\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB.")}function N2(e,t,a){if(e.button!==0)return;e.preventDefault(),e.stopPropagation();let n=t.closest(".block-list");if(!n)return;let l=AL(t),o=ML(t,e);d.drag=a,d.dragTarget=a,t.classList.add("dragging","sorting-source"),n.classList.add("sorting-active"),t.after(l);let r=s=>{Gp(o,s),DL({event:s,list:n,source:t,placeholder:l,selector:".block-btn.has-drag-handle"})},i=()=>{document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",i),document.removeEventListener("pointercancel",u);let s=TL({list:n,placeholder:l,source:t,selector:".block-btn.has-drag-handle"});T2(a.regionIndex,a.blockIndex,s)},u=()=>{document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",i),document.removeEventListener("pointercancel",u),Fa()};document.addEventListener("pointermove",r),document.addEventListener("pointerup",i),document.addEventListener("pointercancel",u)}function R2(e,t){if(!e||e.regionIndex!==t.regionIndex||e.blockIndex===t.blockIndex){Fa();return}let a=d.page.regions[e.regionIndex];if(!a){Fa();return}let[n]=a.blocks.splice(e.blockIndex,1),l=t.blockIndex;e.blockIndex<t.blockIndex&&(l-=1),a.blocks.splice(l,0,n),d.selected={kind:"block",regionIndex:e.regionIndex,blockIndex:l},Fa(),bt(),be("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u0431\u043B\u043E\u043A\u043E\u0432 \u0438\u0437\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB.")}function $b({list:e,block:t,meta:a,active:n,disabled:l,onClick:o,dragContext:r=null}){let i=document.createElement("div"),u=document.createElement("span"),s=document.createElement("span"),f=document.createElement("span"),m=document.createElement("span"),p=!!r;if(i.role="button",i.tabIndex=0,i.className=`block-btn${n?" active":""}${l?" disabled":""}${p?" has-drag-handle":""}`,i.dataset.adminBlockId=t.id||"",i.dataset.adminBlockType=t.type||"",i.dataset.adminBlockTemplate=t.template||"",p&&(i.dataset.regionIndex=String(r.regionIndex),i.dataset.blockIndex=String(r.blockIndex)),u.className="block-icon",u.textContent=kL(t),s.className="block-copy",f.className="block-name",f.textContent=t.adminLabel||t.id,m.className="block-meta",m.textContent=a,s.append(f,m),i.append(u,s),p){let h=document.createElement("span");h.className="block-drag-handle",h.draggable=!1,h.title="\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u0431\u043B\u043E\u043A",h.setAttribute("aria-label","\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u0431\u043B\u043E\u043A"),h.textContent="\u22EE\u22EE",h.addEventListener("click",b=>b.stopPropagation()),h.addEventListener("pointerdown",b=>N2(b,i,r)),h.addEventListener("dragstart",b=>{d.drag=r,i.classList.add("dragging"),b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",`${r.regionIndex}:${r.blockIndex}`)}),h.addEventListener("dragend",Fa),h.addEventListener("keydown",b=>b.stopPropagation()),i.append(h)}p&&(i.addEventListener("dragover",h=>{!d.drag||d.drag.regionIndex!==r.regionIndex||(h.preventDefault(),h.dataTransfer.dropEffect="move",i.classList.add("drag-over"))}),i.addEventListener("dragleave",()=>i.classList.remove("drag-over")),i.addEventListener("drop",h=>{h.preventDefault(),i.classList.remove("drag-over"),R2(d.drag,r)})),i.addEventListener("click",o),i.addEventListener("keydown",h=>{h.key!=="Enter"&&h.key!==" "||(h.preventDefault(),o(h))}),e.append(i)}function wp(){c.regions.innerHTML="";let e=document.createElement("section"),t=document.createElement("h3"),a=document.createElement("div");t.className="region-title",t.textContent="Static",a.className="block-list",$b({list:a,block:d.page.staticElements,meta:"shell \xB7 nav \xB7 notifications \xB7 dock",active:et(),disabled:!1,onClick:()=>{d.selected={kind:"static"},bt()}}),e.append(t,a),c.regions.append(e),d.page.regions.forEach((n,l)=>{let o=document.createElement("section"),r=document.createElement("h3"),i=document.createElement("div");r.className="region-title",r.textContent=A2(n),i.className="block-list",n.blocks.forEach((u,s)=>{let f=d.selected?.kind==="block"&&d.selected?.regionIndex===l&&d.selected?.blockIndex===s;$b({list:i,block:u,meta:EL(u),active:f,disabled:u.enabled===!1,dragContext:{regionIndex:l,blockIndex:s},onClick:()=>{d.selected={kind:"block",regionIndex:l,blockIndex:s},bt()}})}),o.append(r,i),c.regions.append(o)})}function NL(){let e=k2();return d.templates.map(t=>({...t,regionIndex:e,regionLabel:Tp}))}function B2(){c.templateList.innerHTML="";for(let e of NL()){let t=document.createElement("button"),a=document.createElement("span"),n=document.createElement("span"),l=document.createElement("span"),o=document.createElement("span"),r=document.createElement("span");t.type="button",t.className="template-card",a.className="template-card-icon",a.textContent=kL(e.block),n.className="template-card-copy",l.className="template-card-title",l.textContent=e.block.adminLabel||e.block.id,o.className="template-card-meta",o.textContent=EL(e.block),r.className="template-card-region",r.textContent=`\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u0441\u044F \u0432: ${e.regionLabel}`,n.append(l,o,r),t.append(a,n),t.addEventListener("click",()=>_2(e.key)),c.templateList.append(t)}}function O2(){B2(),c.templateModal.classList.remove("hidden"),c.templateList.querySelector("button")?.focus()}function gu(){c.templateModal.classList.add("hidden"),c.addBlock?.focus()}function Ao(e=!1){let t=d.deleteConfirmResolve;d.deleteConfirmResolve=null,c.deleteModal.classList.add("hidden"),t&&t(e)}function zo({title:e="\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435",body:t="\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430?"}={}){return d.deleteConfirmResolve&&Ao(!1),new Promise(a=>{d.deleteConfirmResolve=a,c.deleteModalTitle.textContent=e,c.deleteModalBody.textContent=t,c.deleteModal.classList.remove("hidden"),c.deleteModalConfirm.focus()})}function Do(e=null){let t=d.mediaActionResolve;d.mediaActionResolve=null,c.mediaActionModal.classList.add("hidden"),t&&t(e)}function RL({title:e="\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435",body:t="\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043C\u044F.",label:a="\u0418\u043C\u044F",value:n="",confirmLabel:l="\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C"}={}){return d.mediaActionResolve&&Do(null),new Promise(o=>{d.mediaActionResolve=o,c.mediaActionTitle.textContent=e,c.mediaActionBody.textContent=t,c.mediaActionLabel.textContent=a,c.mediaActionConfirm.textContent=l,c.mediaActionInput.value=n,c.mediaActionModal.classList.remove("hidden"),c.mediaActionInput.focus(),c.mediaActionInput.select()})}function _2(e){let t=NL().find(l=>l.key===e);if(!t)return;let a=d.page.regions[t.regionIndex],n=vt(t.block);n.id=E2(n.id),n.enabled=!0,n.anchor&&(n.anchor=Up(n.anchor||n.adminLabel||n.id,n)),n.scopeIds=!0,n.seo={...Np,...n.seo||{}},a.blocks.push(n),d.selected={kind:"block",regionIndex:t.regionIndex,blockIndex:a.blocks.length-1},gu(),bt(),be(`\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0431\u043B\u043E\u043A \xAB${n.adminLabel||n.id}\xBB. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB.`)}function z2(e){for(let t of[c.moveUp,c.moveDown,c.duplicate,c.copy,c.pasteAfter,c.deleteBlock])t.disabled=e}function q2(e){console.error(e),c.knowledgeForm.classList.add("hidden"),c.projectSettingsForm.classList.add("hidden"),c.empty.classList.add("hidden"),c.form.classList.remove("hidden"),c.contentFields.innerHTML="";let t=document.createElement("div");t.className="empty-note editor-error-note",t.textContent=`\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 \u043D\u0435 \u0441\u043C\u043E\u0433 \u043E\u0442\u0440\u0438\u0441\u043E\u0432\u0430\u0442\u044C \u043F\u043E\u043B\u044F \u0431\u043B\u043E\u043A\u0430: ${e.message}`,c.contentFields.append(t),D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u043E\u0440\u0430: ${e.message}`)}function va({path:e,label:t,type:a="text",placeholder:n="",options:l=[],hint:o=""}){let r=document.createElement("label"),i=document.createElement("span"),u=document.createElement("span"),s=l.length?document.createElement("select"):document.createElement("input"),f=Q4(e),m=a==="password";if(r.className=a==="checkbox"?"toggle-row":"field-control",i.textContent=t,a==="checkbox")s.type="checkbox",s.checked=!!f,r.append(s,i);else{if(l.length){for(let h of l){let b=document.createElement("option");b.value=h,b.textContent=h,s.append(b)}s.value=f||l[0]||""}else s.type=a,s.value=f??"",s.placeholder=n;if(u.className="field-kind",u.textContent=l.length?"SELECT":a==="number"?"NUMBER":m?"SECRET":"TEXT",r.append(i,u),m){let h=document.createElement("span"),b=document.createElement("button");h.className="secret-input-wrap",b.className="secret-toggle-button",b.type="button",b.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M2.75 12s3.25-5.5 9.25-5.5 9.25 5.5 9.25 5.5-3.25 5.5-9.25 5.5S2.75 12 2.75 12Z"></path><path d="M12 9.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5Z"></path></svg>',b.setAttribute("aria-label","\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"),b.title="\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",b.addEventListener("click",()=>{let S=s.type==="text";s.type=S?"password":"text",b.setAttribute("aria-label",S?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435":"\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"),b.title=S?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435":"\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"}),h.append(s,b),r.append(h)}else r.append(s)}s.dataset.projectPath=e;let p=()=>{W4(e,hL(s)),be("\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u044B. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\xBB."),e==="deploy.enabled"&&Sl()};if(s.addEventListener("input",p),s.addEventListener("change",p),o&&a!=="checkbox"){let h=document.createElement("small");h.className="field-hint",h.textContent=o,r.append(h)}return r}function xp({kicker:e,title:t,note:a="",fields:n=[],runtime:l=!1,actions:o=null}){let r=document.createElement("section"),i=document.createElement("div"),u=document.createElement("div"),s=document.createElement("div"),f=document.createElement("h3"),m=document.createElement("div");if(r.className="settings-card",i.className="card-head",u.append(s,f),s.className="section-kicker",s.textContent=e,f.textContent=t,i.append(u),a){let p=document.createElement("p");p.className="project-settings-hint",p.textContent=a,i.append(p)}if(m.className=l?"project-settings-runtime":"field-grid",n.forEach(p=>m.append(p)),r.append(i,m),o){let p=document.createElement("div");p.className="project-settings-actions",p.append(...o),r.append(p)}return r}async function U2(e,t=!0){if(!e)return;let a=new FormData;a.append("file",e,e.name);let n=await new Promise((o,r)=>{let i=new XMLHttpRequest;i.open("POST",No(`/api/project/upload-site?backup=${t?"1":"0"}`)),i.responseType="json",i.upload.addEventListener("progress",u=>{if(!u.lengthComputable){D(`\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C \u0430\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430: ${e.name}...`);return}let s=Math.round(u.loaded/u.total*1e3)/10;D(`\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C \u0430\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430: ${s.toLocaleString("ru-RU")}% \xB7 ${e.name}`)}),i.upload.addEventListener("load",()=>{D(`\u0410\u0440\u0445\u0438\u0432 ${e.name} \u043F\u0435\u0440\u0435\u0434\u0430\u043D. \u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u043C \u0438 \u0440\u0430\u0441\u043F\u0430\u043A\u043E\u0432\u044B\u0432\u0430\u0435\u043C \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435...`)}),i.addEventListener("load",()=>{let u=i.response&&typeof i.response=="object"?i.response:(()=>{try{return JSON.parse(i.responseText||"null")}catch{return null}})();if(i.status===401&&u?.loginUrl){window.location.assign(u.loginUrl),r(new Error("\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u044B\u0439 \u0432\u0445\u043E\u0434 \u0432 CMS"));return}if(i.status<200||i.status>=300||!u?.ok){r(new Error(u?.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0430\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430"));return}o(u)}),i.addEventListener("error",()=>r(new Error("\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 \u043E\u0431\u043E\u0440\u0432\u0430\u043B\u043E\u0441\u044C \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 \u0430\u0440\u0445\u0438\u0432\u0430"))),i.send(a)});d.projectConfig=await pu(),Sl();let l=n.backup?.saved?` \u0411\u044D\u043A\u0430\u043F \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D: ${n.backup.fileName} (${n.backup.label}).`:" \u0411\u044D\u043A\u0430\u043F \u043D\u0435 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u043B\u0441\u044F.";D(`\u0410\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D: ${Number(n.files||0).toLocaleString("ru-RU")} \u0444\u0430\u0439\u043B\u043E\u0432, workspace ${n.size?.label||n.label||"\u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D"}.${l}`)}function H2(){let e=document.createElement("div"),t=document.createElement("span"),a=document.createElement("span"),n=document.createElement("div"),l=document.createElement("button"),o=document.createElement("input"),r=document.createElement("label"),i=document.createElement("input"),u=document.createElement("span"),s=document.createElement("small");return e.className="field-control project-archive-field",t.textContent="\u0410\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430",a.className="field-kind",a.textContent="ZIP",n.className="project-archive-control",l.className="ghost-btn project-archive-button",l.type="button",l.textContent="\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0430\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430",o.type="file",o.accept=".zip,application/zip",o.className="hidden",r.className="toggle-row project-archive-backup-toggle",i.type="checkbox",i.checked=d.keepSiteArchiveBackup,u.textContent="\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0431\u044D\u043A\u0430\u043F \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435",r.append(i,u),s.className="field-hint",s.textContent="\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u043E\u043C \u0431\u044D\u043A\u0430\u043F\u0435 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 ZIP \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0432 .cms-backups. ZIP \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C content/pages/home.json, content/knowledge.json, templates \u0438 tools \u0440\u0435\u043D\u0434\u0435\u0440\u0430.",l.addEventListener("click",()=>o.click()),i.addEventListener("change",()=>{d.keepSiteArchiveBackup=i.checked}),o.addEventListener("change",()=>{let f=o.files?.[0];o.value="",U2(f,i.checked).catch(m=>D(m.message))}),n.append(l,o,r),e.append(t,a,n,s),e}function yd(e,t){let a=document.createElement("div"),n=document.createElement("code");return a.append(`${e}: `,n),n.textContent=t||"\u043D\u0435 \u0437\u0430\u0434\u0430\u043D\u043E",a}function BL({icon:e="ND",title:t,body:a,stateName:n=""}){c.empty.dataset.state=n,c.empty.innerHTML=`
<div class="empty-icon">${du(e)}</div>
<div>
<h3>${du(t)}</h3>
<p>${du(a)}</p>
</div>
`}function Ed(){Mo(),_p(),c.regions.innerHTML="",c.form.classList.add("hidden"),c.knowledgeForm.classList.add("hidden"),c.projectSettingsForm.classList.add("hidden"),c.empty.classList.remove("hidden");let e=bp().missingFiles||[],t=e.length?` \u0421\u0435\u0439\u0447\u0430\u0441 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442: ${e.join(", ")}.`:"",a=bp().root||d.projectConfig?.runtime?.siteRoot||"",n=a?` \u041B\u043E\u043A\u0430\u043B\u044C\u043D\u0430\u044F \u043F\u0430\u043F\u043A\u0430: ${a}.`:"";BL({icon:"DC",title:"\u0421\u0430\u0439\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",body:`\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043A \u0445\u043E\u0441\u0442\u0438\u043D\u0433\u0443 \u0438\u043B\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0430\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430 \u0432 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 workspace CMS.${t}${n}`,stateName:"site-unavailable"}),c.editorHeading&&(c.editorHeading.textContent="DC CMS"),c.selectedRegion.textContent=`DC CMS / ${Op()} / \u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435`,c.selectedTitle.textContent="\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u0430\u0439\u0442",Oo()}function Sl(){if(Mo(),c.empty.classList.add("hidden"),c.form.classList.add("hidden"),c.knowledgeForm.classList.add("hidden"),c.projectSettingsForm.classList.remove("hidden"),c.projectSettingsForm.innerHTML="",!d.projectConfig){c.projectSettingsForm.innerHTML='<div class="empty-note">\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430...</div>',pu().then(Sl).catch(o=>D(o.message));return}if(c.workspaceRole&&(c.workspaceRole.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F"),c.editorHeading&&(c.editorHeading.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 CMS"),c.selectedRegion.textContent=`DC CMS / ${Op()} / \u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435`,c.selectedTitle.textContent="\u041F\u0440\u043E\u0435\u043A\u0442 \u0438 \u0434\u0435\u043F\u043B\u043E\u0439",c.save&&(c.save.textContent="\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",c.save.title="\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430"),c.render&&(c.render.textContent="\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442",c.render.title="\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043C\u043E\u0434\u0435\u043B\u0438, \u0431\u0430\u0437\u0435 \u0437\u043D\u0430\u043D\u0438\u0439 \u0438 \u0444\u0430\u0439\u043B\u0430\u043C \u043F\u0440\u043E\u0435\u043A\u0442\u0430"),c.publish){let o=!!d.projectConfig?.deploy?.enabled;c.publish.classList.toggle("hidden",!o),c.publish.disabled=!o||!ja()||d.projectConfigDirty,c.publish.title=d.projectConfigDirty?"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430":o?"\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043A\u043E\u043F\u0438\u044E \u0441\u0430\u0439\u0442\u0430 \u043D\u0430 \u0445\u043E\u0441\u0442\u0438\u043D\u0433":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0434\u0435\u043F\u043B\u043E\u0439 \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u043F\u0440\u043E\u0435\u043A\u0442\u0430"}let e=xp({kicker:"\u041F\u0440\u043E\u0435\u043A\u0442",title:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0439 \u0441\u0430\u0439\u0442",note:"\u041F\u0440\u043E\u0435\u043A\u0442 \u0445\u0440\u0430\u043D\u0438\u0442\u0441\u044F \u0432 workspace CMS. \u0410\u0440\u0445\u0438\u0432 \u0441\u0430\u0439\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u043E\u0434\u0438\u043D \u0440\u0430\u0437 \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u043C\u0438\u043D\u043A\u0443.",fields:[va({path:"name",label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u0430"}),va({path:"publicUrl",label:"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439 \u0434\u043E\u043C\u0435\u043D",placeholder:"https://nodedc.ru/"}),H2()]});c.downloadBackup.classList.remove("hidden"),c.downloadBackup.disabled=!ja()||d.backupDownloading,c.downloadBackup.title="\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430: \u043A\u043E\u043D\u0442\u0435\u043D\u0442, \u0448\u0430\u0431\u043B\u043E\u043D\u044B, \u043A\u043E\u0434 \u0438 \u043C\u0435\u0434\u0438\u0430";let t=document.createElement("button");t.type="button",t.className="secondary-button",t.textContent="\u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0442\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u0441 \u0434\u0440\u0443\u0433\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430",t.disabled=!!d.projectConfig?.deploy?.host||Ld.length<2,t.addEventListener("click",()=>P4().catch(o=>D(o.message)));let a=xp({kicker:"\u041F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u044F",title:"\u0414\u0435\u043F\u043B\u043E\u0439 \u043D\u0430 \u0445\u043E\u0441\u0442\u0438\u043D\u0433",note:"\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0445\u043E\u0441\u0442\u0438\u043D\u0433\u0443. \u041F\u0430\u0440\u043E\u043B\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432 \u0437\u0430\u0448\u0438\u0444\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u043C \u0432\u0438\u0434\u0435 \u0438 \u043D\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044F \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440.",fields:[t,va({path:"deploy.enabled",label:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0434\u0435\u043F\u043B\u043E\u0439",type:"checkbox"}),va({path:"deploy.deployOnRender",label:"\u041F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0438 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0438",type:"checkbox"}),va({path:"deploy.method",label:"\u041C\u0435\u0442\u043E\u0434",options:["sftp","ftp"]}),va({path:"deploy.host",label:"FTP / SFTP host",placeholder:"a0000.ftp.mchost.ru"}),va({path:"deploy.port",label:"\u041F\u043E\u0440\u0442",type:"number",placeholder:"22"}),va({path:"deploy.username",label:"\u041B\u043E\u0433\u0438\u043D"}),va({path:"deploy.password",label:"\u041F\u0430\u0440\u043E\u043B\u044C",type:"password",placeholder:d.projectConfig?.deploy?.passwordConfigured?"\u041F\u0430\u0440\u043E\u043B\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D. \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0434\u043B\u044F \u0437\u0430\u043C\u0435\u043D\u044B":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C",hint:d.projectConfig?.deploy?.passwordConfigured?"\u041F\u0430\u0440\u043E\u043B\u044C \u0443\u0436\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041F\u043E\u043B\u0435 \u043F\u0443\u0441\u0442\u043E\u0435, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0441\u0435\u043A\u0440\u0435\u0442 \u043D\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044F \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440.":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437 \u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\xBB."}),va({path:"deploy.remotePath",label:"\u041F\u0430\u043F\u043A\u0430 \u0441\u0430\u0439\u0442\u0430 \u043D\u0430 \u0445\u043E\u0441\u0442\u0438\u043D\u0433\u0435",placeholder:"httpdocs"})]}),n=d.projectConfig.runtime||{},l=xp({kicker:"Runtime",title:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0441\u0432\u044F\u0437\u043A\u0430",runtime:!0,fields:[yd("CMS root",n.cmsRoot),yd("Site root",n.siteRoot),yd("Config",n.configPath),yd("\u0412\u0430\u0436\u043D\u043E",n.siteRootChangesRequireRestart?"\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 siteRoot \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u043A\u0430 CMS":"")]});c.projectSettingsForm.append(e,a,l),Id()}function P2(){Mo(),c.knowledgeForm.classList.add("hidden"),c.projectSettingsForm.classList.add("hidden");let e=Ll(),t=Ve(),a=et(),n=d.mode==="seo";if(!t){c.empty.classList.remove("hidden"),c.form.classList.add("hidden"),BL({icon:"ND",title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0431\u043B\u043E\u043A \u0441\u043B\u0435\u0432\u0430",body:"\u0421\u0442\u0430\u0442\u0438\u043A\u0430, hero, \u0444\u043E\u0440\u043C\u0430 \u0438 \u0441\u0435\u043A\u0446\u0438\u0438 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u044B \u043D\u0430 \u0440\u0430\u0431\u043E\u0447\u0438\u0435 \u0433\u0440\u0443\u043F\u043F\u044B. \u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u043C typed-\u043F\u043E\u043B\u044F, \u0441\u044B\u0440\u043E\u0439 JSON \u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u043A\u0430\u043A \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0439 fallback."}),c.selectedRegion.textContent="NODE.DC / \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0431\u043B\u043E\u043A",c.selectedTitle.textContent=n?"SEO-\u0441\u043B\u043E\u0439":"\u041A\u043E\u043D\u0442\u0435\u043D\u0442\u043D\u044B\u0439 \u0441\u043B\u043E\u0439",Cp();return}c.empty.classList.add("hidden"),c.form.classList.remove("hidden"),c.form.dataset.static=String(a),c.form.dataset.mode=d.mode,c.selectedRegion.textContent=n?`NODE.DC / SEO / ${a?"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430":e.label||e.id}`:`NODE.DC / ${e.label||e.id}`,c.selectedTitle.textContent=n?`SEO: ${a?"\u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430":t.adminLabel||t.id}`:t.adminLabel||t.id,c.id.value=t.id||"",c.label.value=t.adminLabel||"",c.template.value=t.template||t.type||"",c.anchor.value=t.anchor||"",c.anchor.placeholder="hub-video / engine-video / applied-modules",c.anchor.title="\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439 Target \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0433\u043E \u0431\u043B\u043E\u043A\u0430: \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043A\u0430\u043A \u044F\u043A\u043E\u0440\u044C \u043B\u0435\u043D\u0434\u0438\u043D\u0433\u0430 \u0438 \u043A\u0430\u043A \u0441\u0441\u044B\u043B\u043A\u0430 \u0438\u0437 Knowledge.",Cp(),c.enabled.checked=t.enabled!==!1,c.id.readOnly=a,c.anchor.disabled=a,c.enabled.disabled=a,c.enabled.closest(".toggle-row").hidden=a,z2(a||n);try{n?g2(t):tS(t)}catch(l){q2(l)}c.json.value=JSON.stringify(bL(t),null,2)}function bt(){try{if(!ja()&&!Je()){Ed();return}if(Je()){d.mode==="knowledge"&&d.knowledge?(Jp(),Rd()):wp(),Sl();return}if(d.mode==="knowledge"){Po();return}wp(),P2()}catch(e){console.error(e),D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0435\u043D\u0434\u0435\u0440\u0430 \u0430\u0434\u043C\u0438\u043D\u043A\u0438: ${e.message}`)}}function Zb(){let e=Ve();if(e){if(NI(),e.adminLabel=c.label.value.trim()||e.adminLabel||e.id,!et()){e.id=c.id.value.trim(),e.anchor=kd(c.anchor.value)||null,c.anchor.value=e.anchor||"",e.enabled=c.enabled.checked,Cp();let t=SL().find(a=>a.second.block===e||a.first.block===e);t&&D(`Target \xAB${t.target}\xBB \u0443\u0436\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432 \u0434\u0440\u0443\u0433\u043E\u043C \u0431\u043B\u043E\u043A\u0435. \u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u0443\u0439\u0442\u0435 \u043E\u0434\u0438\u043D \u0438\u0437 target-\u043E\u0432 \u043F\u0435\u0440\u0435\u0434 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u043C.`)}c.json.value=JSON.stringify(e,null,2),wp(),be()}}function F2(e){let t=new Map;for(let a of e.editableFields??[]){let n=a.group||CL(a.path);t.has(n)||t.set(n,[]),t.get(n).push(a)}return t}function Qb(e,t){e.classList.remove("is-image","is-video","is-solid-dark"),e.innerHTML="",e.title="",t&&(t.textContent="")}function j2(e,t,a,n){if(!(!a||!M2(n)))try{let o=document.createElement("canvas"),r=o.getContext("2d",{willReadFrequently:!0});if(!r)return;o.width=24,o.height=24,r.drawImage(e,0,0,24,24);let i=r.getImageData(0,0,24,24).data,u=0,s=0,f=0;for(let b=0;b<24;b+=1)for(let S=0;S<24;S+=1){let x=(b*24+S)*4;if(i[x+3]<240)continue;u+=1;let y=S<=1||b<=1||S>=22||b>=22,v=i[x]+i[x+1]+i[x+2]<66;y&&(s+=1,v&&(f+=1))}let m=576,p=s?f/s:0;u/m>.92&&p>.82&&(t.classList.add("is-solid-dark"),a.textContent="\u0424\u0430\u0439\u043B \u0441 \u043D\u0435\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u043C \u0442\u0451\u043C\u043D\u044B\u043C \u0444\u043E\u043D\u043E\u043C. \u0414\u043B\u044F \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u0430 \u043D\u0430 \u0442\u0451\u043C\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043B\u0443\u0447\u0448\u0435 PNG/SVG \u0441 \u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u043E\u0441\u0442\u044C\u044E.")}catch{}}function Vp(e,t,a=null,n=null){Qb(e,a);let l=fu(t),o=wL(t);if(!l){e.textContent="FILE";return}if(o==="video"){let r=document.createElement("video");e.classList.add("is-video"),r.src=l,r.autoplay=!0,r.loop=!0,r.muted=!0,r.playsInline=!0,e.append(r);return}if(o==="image"){let r=document.createElement("img");e.classList.add("is-image"),r.src=l,r.alt="",r.loading="lazy",r.addEventListener("load",()=>j2(r,e,a,n)),r.addEventListener("error",()=>{Qb(e,a),e.textContent="FILE",a&&(a.textContent="\u041F\u0440\u0435\u0432\u044C\u044E \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u043E\u0441\u044C. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u0443\u0442\u044C \u0438\u043B\u0438 \u0432\u043D\u0435\u0448\u043D\u0438\u0439 URL.")}),e.append(r);return}e.textContent="FILE"}function Xp({block:e,editableField:t,hiddenInput:a,urlInput:n,fileName:l,preview:o,hint:r,value:i}){a.value=i,n.value=i,l.textContent=hu(Ga(i),28),l.title=Ga(i),Wt(e,t.path,i),Vp(o,i,r,t),Ve()===e&&(c.json.value=JSON.stringify(e,null,2)),be()}async function OL({block:e,editableField:t,hiddenInput:a,urlInput:n,fileName:l,preview:o,hint:r,error:i,setSource:u,afterUpload:s,onSelect:f,requiredKind:m,mode:p,file:h}){if(h){if(m&&wL(h.name)!==m){i.textContent="\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F.",c.mediaModalSubtitle.textContent=i.textContent,D(i.textContent);return}d.mediaUploadActive=!0,yl(!0),ra(),i.textContent="",l&&(l.textContent="\u0421\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u043C \u0432 assets...");try{let b=new FormData;b.append("file",h,h.name),b.append("fileName",h.name),b.append("mimeType",h.type||"application/octet-stream"),b.append("bucket",p==="manage"?"media/library":jp(e,t));let S=await Ge("/api/upload/asset",{method:"POST",body:b}),x=await S.json().catch(()=>({ok:!1,error:`\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B ${S.status}`}));if(!S.ok||!x.ok)throw new Error(x.error||"\u0424\u0430\u0439\u043B \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C");return!f&&p!=="manage"&&(Xp({block:e,editableField:t,hiddenInput:a,urlInput:n,fileName:l,preview:o,hint:r,value:x.url}),u("file"),be(`\u0424\u0430\u0439\u043B \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D: ${x.url}. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u043F\u0443\u0442\u044C \u0432 content/pages/home.json.`)),typeof s=="function"&&await s(x),p==="manage"&&D(`\u0424\u0430\u0439\u043B \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D \u0432 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0443: ${x.url}`),x}catch(b){return i.textContent=b.message,l&&a&&(l.textContent=hu(Ga(a.value),28)),m&&(c.mediaModalSubtitle.textContent=b.message),D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438: ${b.message}`),null}finally{d.mediaUploadActive=!1,qn.value="",yl(!1),ra()}}}function G2(e){yl(!0),ra(),window.clearTimeout(d.filePickerResetTimer),qn.accept=e.requiredKind==="image"?"image/*":sL,qn.value="",qn.oncancel=()=>{yl(!1),ra()},qn.onchange=async()=>{let t=qn.files?.[0];if(!t){yl(!1),ra();return}await OL({...e,file:t})},window.addEventListener("focus",()=>{window.setTimeout(()=>{d.mediaUploadActive||qn.files?.length||(yl(!1),ra())},180)},{once:!0});try{qn.click()}catch(t){yl(!1),ra(),e.error.textContent=t.message,D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0444\u0430\u0439\u043B\u0430: ${t.message}`)}}function V2(e,t,{large:a=!1}={}){if(e.innerHTML="",e.classList.remove("is-image","is-video"),!t){e.textContent="FILE";return}if(t.kind==="image"){let l=document.createElement("img");e.classList.add("is-image"),l.src=fu(t.url),l.alt=t.name||"",l.loading="lazy",l.decoding="async",e.append(l);return}if(t.kind==="video"){let l=document.createElement("video");e.classList.add("is-video"),l.src=fu(t.url),l.muted=!0,l.loop=!0,l.playsInline=!0,l.preload="metadata",a&&(l.controls=!0),e.append(l);return}let n=t.kind==="model"?"3D":t.kind==="font"?"FONT":t.extension?.toUpperCase()||"FILE";e.textContent=n}function X2(){c.mediaKindFilters.innerHTML="",c.mediaRootFilters.innerHTML="";let e=K2();for(let[t,a]of Y4){if(d.mediaLibrary.context?.requiredKind&&t!==d.mediaLibrary.context.requiredKind)continue;let n=document.createElement("button");n.type="button",n.className="media-filter-button",n.dataset.active=String(d.mediaLibrary.kind===t),n.disabled=d.mediaLibrary.trashMode,n.textContent=a,n.addEventListener("click",()=>{d.mediaLibrary.kind=t,St()}),c.mediaKindFilters.append(n)}for(let[t,a]of dL){let n=document.createElement("button");n.type="button",n.className="media-filter-button",n.dataset.active=String(e===t),n.disabled=d.mediaLibrary.trashMode,n.textContent=a,n.title=t||"\u041A\u043E\u0440\u0435\u043D\u044C \u043F\u0440\u043E\u0435\u043A\u0442\u0430 NODEDC_SITE",n.addEventListener("click",async()=>{d.mediaLibrary.root=t,d.mediaLibrary.selectedEntry=null,d.mediaLibrary.selectedUrl="",await tt(t).catch(l=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0438: ${l.message}`))}),c.mediaRootFilters.append(n)}}function Kp(e){return String(e||"").split("/").filter(Boolean)}function _L(e,t){return t?e===t||e.startsWith(`${t}/`):!e}function K2(){let e=d.mediaLibrary.selectedPath||d.mediaLibrary.root||"",t="";for(let[a]of dL)a&&_L(e,a)&&(t=a);return t}function Y2(e){let t=Kp(e),a=[""],n="";for(let l of t)n=n?`${n}/${l}`:l,a.push(n);return a}function Lt(e){let t=Kp(e);return t.pop(),t.join("/")}function zL(e){let t=String(e||"").replace(/^\/+/,"");t!=="__trash__"&&(d.mediaLibrary.lastPath=t,Eo({lastMediaDirectory:t}))}function Va(e){let t=String(e||"").split("?")[0].split("#")[0];t.startsWith("./")&&(t=t.slice(2));try{t=decodeURIComponent(t)}catch{}return t}function $2(e){let t=Va(e);if(!t)return[];let a=t.split("/").map(l=>encodeURIComponent(l)).join("/"),n=[t,`./${t}`,`/${t}`,a,`./${a}`,`/${a}`];return[...new Set(n)].sort((l,o)=>o.length-l.length)}function qL(e,t){let a=e;for(let n of t){let l=$2(n.fromUrl||n.from),o=Va(n.toUrl||n.to);if(!l.length||!o)continue;let r=o.split("/").map(i=>encodeURIComponent(i)).join("/");for(let i of l){let u=i.startsWith("./"),s=i.startsWith("/"),f=`${u?"./":s?"/":""}${i.includes("%")?r:o}`;a=a.split(i).join(f)}}return a}function Ip(e,t){if(typeof e=="string")return qL(e,t);if(Array.isArray(e)){let a=!1,n=e.map(l=>{let o=Ip(l,t);return a||=o!==l,o});return a?n:e}if(e&&typeof e=="object"){let a=!1,n={...e};for(let[l,o]of Object.entries(e)){let r=Ip(o,t);r!==o&&(n[l]=r,a=!0)}return a?n:e}return e}async function Z2(e){let t=await Ge(`/api/media/browse?path=${encodeURIComponent(e||"")}`),a=await t.json().catch(()=>({ok:!1,error:`\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B ${t.status}`}));if(!t.ok||!a.ok)throw new Error(a.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043F\u043A\u0443");return a}async function Un(){if(!c.mediaSiteSize)return;c.mediaSiteSize.textContent="\u0421\u0430\u0439\u0442: \u0441\u0447\u0438\u0442\u0430\u0435\u043C...";let e=await Ge("/api/media/site-size"),t=await e.json().catch(()=>({ok:!1,error:`\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B ${e.status}`}));if(!e.ok||!t.ok)throw c.mediaSiteSize.textContent="\u0421\u0430\u0439\u0442: --",new Error(t.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u0440\u0430\u0437\u043C\u0435\u0440 \u0441\u0430\u0439\u0442\u0430");c.mediaSiteSize.textContent=`\u0421\u0430\u0439\u0442: ${t.label}`,c.mediaSiteSize.title=`${Number(t.bytes||0).toLocaleString("ru-RU")} \u0431\u0430\u0439\u0442`}async function Hn(e,t={}){let a=await Ge(e,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),n=await a.json().catch(()=>({ok:!1,error:`\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B ${a.status}`}));if(!a.ok||!n.ok)throw new Error(n.error||"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430");return n}function Md(e){return Array.from(e.dataTransfer?.types||[]).includes(Rp)}function UL(e){let t=e.dataTransfer?.getData(Rp);if(!t)return null;try{return JSON.parse(t)}catch{return null}}function Q2(e,t){if(!e||!t)return;let{block:a,editableField:n,hiddenInput:l,urlInput:o,fileName:r,preview:i,hint:u}=e;l.value=t,o.value=t,r.textContent=hu(Ga(t),28),r.title=Ga(t),Wt(a,n.path,t),Vp(i,t,u,n),Ve()===a&&(c.json.value=JSON.stringify(a,null,2)),e.setSource("file")}function HL(e=[]){let t=d.mediaLibrary.context;if(!Array.isArray(e)||!e.length)return!1;let a=!1,n=t?.hiddenInput?Va(t.hiddenInput.value||""):"",l=Ip(d.page,e);if(l!==d.page&&(d.page=l,a=!0),document.querySelectorAll("input.service-media-hidden-input").forEach(r=>{let i=qL(r.value||"",e);if(i===r.value)return;r.value=i;let u=r.closest(".service-media-field"),s=u?.querySelector(".service-media-file-name"),f=u?.querySelector(".service-media-url-input");f&&(f.value=i),s&&(s.textContent=hu(Ga(i),28),s.title=Ga(i)),a=!0}),Ve()&&(c.json.value=JSON.stringify(Ve(),null,2)),!t?.hiddenInput)return a;let o=e.find(r=>Va(r.fromUrl||r.from||"")===n);return o?.toUrl?(Q2(t,o.toUrl),!0):a}function Yp(e,t){if(!e||d.mediaLibrary.trashMode||!e.path)return!1;let a=String(t||"").replace(/^\/+/,""),n=Lt(e.path);return e.type==="directory"&&(a===e.path||a.startsWith(`${e.path}/`))?!1:a!==n}function Ad(e,t){if(e){if(t){e.dataset.dropActive="true";return}delete e.dataset.dropActive}}function PL(e,t){if(!Md(e))return;let a=UL(e)||ia(d.mediaLibrary.dragEntryPath);e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=Yp(a,t)?"move":"none",Ad(e.currentTarget,e.dataTransfer.dropEffect==="move")}function FL(e){e.currentTarget.contains(e.relatedTarget)||Ad(e.currentTarget,!1)}async function W2(e,t){if(!Yp(e,t))return;let a=await Hn("/api/media/move",{path:e.path,targetPath:t});HL(a.replacements);let n=Lt(a.path);await tt(n,{selectedUrl:a.url||""});let l=ia(a.path);l&&(d.mediaLibrary.selectedPath=n,d.mediaLibrary.selectedEntry=l,d.mediaLibrary.selectedUrl=l.type==="file"&&l.url||"",St());let o=Array.isArray(a.updatedFiles)?a.updatedFiles.length:0;D(`\u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0435\u043D\u043E: ${a.path}${o?`. \u0421\u0441\u044B\u043B\u043A\u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B: ${o}`:""}.`)}function jL(e,t){if(!Md(e))return;let a=UL(e)||ia(d.mediaLibrary.dragEntryPath);e.preventDefault(),e.stopPropagation(),Ad(e.currentTarget,!1),Yp(a,t)&&W2(a,t).catch(n=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0435\u0440\u0435\u043D\u043E\u0441\u0430: ${n.message}`))}async function J2(){let e=await Ge("/api/media/trash"),t=await e.json().catch(()=>({ok:!1,error:`\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B ${e.status}`}));if(!e.ok||!t.ok)throw new Error(t.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0435");return{ok:!0,path:"__trash__",breadcrumbs:[{name:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0435",path:"__trash__"}],entries:t.files||[]}}function GL(e){let t=d.mediaLibrary.query.trim().toLowerCase();return t&&![e.name,e.path,e.url,Sd(e)].filter(Boolean).some(n=>String(n).toLowerCase().includes(t))?!1:e.type==="directory"||d.mediaLibrary.kind==="all"?!0:e.kind===d.mediaLibrary.kind}function eI(e){for(let t of d.mediaLibrary.columns){let a=t.entries.find(n=>n.url===e);if(a)return a}return null}function ia(e){if(!e)return null;for(let t of d.mediaLibrary.columns){let a=t.entries.find(n=>n.path===e);if(a)return a}return null}function Cd(e){if(!e||d.mediaLibrary.trashMode)return!1;if(e.type==="directory")return e.path?.startsWith("assets/")&&!e.path.split("/").includes(".trash");let t=d.mediaLibrary.context?.hiddenInput?.value===e.url;return e.type==="file"&&e.writable&&Fp(e)==="unused"&&!t}function $p(e,t=d.mediaLibrary.selectedPath){e&&(e.type==="file"?(d.mediaLibrary.selectedPath=t,d.mediaLibrary.selectedUrl=e.url||""):d.mediaLibrary.selectedUrl="",d.mediaLibrary.selectedEntry=e,St())}function qo(){c.mediaContextMenu.classList.add("hidden"),c.mediaContextMenu.innerHTML="",d.mediaLibrary.contextMenu=null}function ko(e,t,{disabled:a=!1}={}){let n=document.createElement("button");n.type="button",n.setAttribute("role","menuitem"),n.textContent=e,n.disabled=a,n.addEventListener("click",()=>{qo(),t()}),c.mediaContextMenu.append(n)}function VL(e,{entry:t=null,columnPath:a=d.mediaLibrary.selectedPath}={}){if(e.preventDefault(),qo(),d.mediaLibrary.contextMenu={entry:t,columnPath:a},t&&$p(t,a),d.mediaLibrary.trashMode?t?.type==="file"&&(ko("\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",()=>QL().catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F: ${r.message}`))),ko("\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0430\u0432\u0441\u0435\u0433\u0434\u0430",()=>WL().catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B: ${r.message}`)))):t?.type==="file"||t?.type==="directory"?(ko("\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",()=>gI(t).catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ${r.message}`))),ko("\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",()=>hI(t).catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u044F: ${r.message}`))),ko("\u0423\u0434\u0430\u043B\u0438\u0442\u044C",()=>Qp().catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F: ${r.message}`)),{disabled:!Cd(t)})):ko("\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0443",()=>pI(a).catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043F\u0430\u043F\u043A\u0438: ${r.message}`))),!c.mediaContextMenu.children.length)return;c.mediaContextMenu.classList.remove("hidden");let n=c.mediaContextMenu.getBoundingClientRect(),l=Math.min(e.clientX,window.innerWidth-n.width-12),o=Math.min(e.clientY,window.innerHeight-n.height-12);c.mediaContextMenu.style.left=`${Math.max(12,l)}px`,c.mediaContextMenu.style.top=`${Math.max(12,o)}px`}function tI(){window.requestAnimationFrame(()=>{let t=[...c.mediaList.querySelectorAll(".media-column")].at(-1),n=c.mediaList.querySelector('.media-entry[data-exact-active="true"]')||c.mediaList.querySelector('.media-entry[data-active="true"]');if(t){let o=Math.max(0,c.mediaList.scrollWidth-c.mediaList.clientWidth),r=t.offsetLeft+t.offsetWidth+14,i=t.offsetLeft-14,u=c.mediaList.scrollLeft;r>u+c.mediaList.clientWidth&&(u=r-c.mediaList.clientWidth),i<u&&(u=i),c.mediaList.scrollLeft=Math.min(Math.max(u,0),o)}if(n){let l=n.closest(".media-column-list");if(!l)return;let o=8,r=n.offsetHeight+4,i=n.offsetTop+n.offsetHeight+r+o,u=n.offsetTop-o,s=Math.max(0,l.scrollHeight-l.clientHeight),f=l.scrollTop;i>f+l.clientHeight&&(f=i-l.clientHeight),u<f&&(f=u),l.scrollTop=Math.min(Math.max(f,0),s)}})}async function tt(e,{selectedUrl:t=d.mediaLibrary.selectedUrl}={}){let a=String(e||"").replace(/^\/+/,""),n=Y2(a),l=[];d.mediaLibrary.trashMode=!1,D("\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u043C \u0444\u0430\u0439\u043B\u043E\u0432\u0443\u044E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0443...");for(let o of n)l.push(await Z2(o));d.mediaLibrary.columns=l,d.mediaLibrary.selectedPath=a,d.mediaLibrary.loaded=!0,d.mediaLibrary.selectedUrl=t||"",d.mediaLibrary.selectedEntry=t?eI(t):ia(a),zL(a),St(),D(`\u0424\u0430\u0439\u043B\u043E\u0432\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430: ${a||"\u043A\u043E\u0440\u0435\u043D\u044C \u043F\u0440\u043E\u0435\u043A\u0442\u0430"}.`)}async function yu({selectedTrashPath:e=""}={}){D("\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u043C \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B...");let t=await J2();d.mediaLibrary.trashMode=!0,d.mediaLibrary.columns=[t],d.mediaLibrary.selectedPath="__trash__",d.mediaLibrary.selectedUrl="",d.mediaLibrary.loaded=!0,d.mediaLibrary.selectedEntry=e?ia(e):t.entries[0]||null,St(),D(`\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B: ${t.entries.length}.`)}function aI(){c.mediaBreadcrumbs.innerHTML="";let e=d.mediaLibrary.columns.at(-1)?.breadcrumbs||[{name:"NODEDC_SITE",path:""}];e.forEach((t,a)=>{let n=document.createElement("button");n.type="button",n.className="media-breadcrumb-button",n.textContent=t.name,n.dataset.active=String(a===e.length-1),n.addEventListener("click",()=>{d.mediaLibrary.root=t.path,d.mediaLibrary.selectedEntry=null,d.mediaLibrary.selectedUrl="",tt(t.path).catch(l=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0438: ${l.message}`))}),c.mediaBreadcrumbs.append(n)})}function nI(e,t){let a=document.createElement("button"),n=document.createElement("span"),l=document.createElement("span"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("span"),s=d.mediaLibrary.selectedEntry?.path===e.path,f=s||e.type==="directory"&&_L(d.mediaLibrary.selectedPath,e.path);if(a.type="button",a.className="media-entry",a.dataset.type=e.type,a.dataset.path=e.path,a.dataset.active=String(f),a.dataset.exactActive=String(s),a.title=e.url||e.path,a.draggable=!d.mediaLibrary.trashMode,n.className="media-entry-icon",e.type==="file"&&e.url&&e.kind==="image"){let m=document.createElement("img");n.classList.add("is-preview"),m.src=fu(e.url),m.alt="",m.loading="lazy",m.decoding="async",n.append(m)}else if(e.type==="file"&&e.url&&e.kind==="video"){let m=document.createElement("video");n.classList.add("is-preview"),m.src=fu(e.url),m.muted=!0,m.playsInline=!0,m.preload="metadata",n.append(m)}else n.textContent=e.type==="directory"?"DIR":e.kind==="model"?"3D":e.kind==="font"?"Aa":e.extension?.toUpperCase()||"FILE";return l.className="media-entry-copy",o.className="media-entry-name",o.textContent=e.name,r.className="media-entry-meta",r.textContent=e.type==="directory"?e.path||"\u041A\u043E\u0440\u0435\u043D\u044C \u043F\u0440\u043E\u0435\u043A\u0442\u0430":[Sd(e),e.extension,IL(e.size)].filter(Boolean).join(" \xB7 "),l.append(o,r),i.className="media-status-dot media-entry-status",i.dataset.status=Fp(e),i.title=Sd(e),u.className="media-entry-arrow",u.textContent=e.type==="directory"?"\u203A":"",a.append(n,l),e.type==="file"&&a.append(i),a.append(u),a.addEventListener("click",async()=>{if(e.type==="directory"){d.mediaLibrary.root=e.path,d.mediaLibrary.selectedEntry=e,d.mediaLibrary.selectedUrl="",await tt(e.path);return}$p(e,t)}),a.addEventListener("contextmenu",m=>{m.stopPropagation(),VL(m,{entry:e,columnPath:t})}),a.addEventListener("dblclick",()=>{e.type==="file"&&e.selectable&&ZL()}),a.addEventListener("dragstart",m=>{if(d.mediaLibrary.trashMode){m.preventDefault();return}let p=JSON.stringify({path:e.path,type:e.type});d.mediaLibrary.dragEntryPath=e.path,a.dataset.dragging="true",m.dataTransfer.effectAllowed="move",m.dataTransfer.setData(Rp,p),m.dataTransfer.setData("text/plain",e.path)}),a.addEventListener("dragend",()=>{d.mediaLibrary.dragEntryPath="",delete a.dataset.dragging,c.mediaList.querySelectorAll("[data-drop-active]").forEach(m=>Ad(m,!1))}),e.type==="directory"&&(a.addEventListener("dragover",m=>PL(m,e.path)),a.addEventListener("dragleave",FL),a.addEventListener("drop",m=>jL(m,e.path))),a}function lI(e){let t=document.createElement("section"),a=document.createElement("div"),n=document.createElement("div"),l=document.createElement("div"),o=document.createElement("div"),r=(e.entries||[]).filter(GL);t.className="media-column",a.className="media-column-head",n.className="media-column-title",n.textContent=e.path?Kp(e.path).at(-1):"NODEDC_SITE",l.className="media-column-count",l.textContent=`${r.length}`,a.append(n,l),o.className="media-column-list",o.dataset.path=e.path||"",o.addEventListener("dragover",i=>PL(i,e.path||"")),o.addEventListener("dragleave",FL),o.addEventListener("drop",i=>jL(i,e.path||"")),o.addEventListener("contextmenu",i=>{i.target.closest(".media-entry")||VL(i,{columnPath:e.path||""})});for(let i of r)o.append(nI(i,e.path));if(!r.length){let i=document.createElement("div");i.className="media-column-empty",i.textContent="\u041F\u0443\u0441\u0442\u043E",o.append(i)}return t.append(a,o),t}function XL(e){return d.mediaLibrary.columns.find(t=>t.path===e)||null}function KL(e){if(!e?.path)return"";let t=YL(e)||XL(Lt(e.path));if(!t)return"";let a=Zp(t),n=a.findIndex(o=>o.path===e.path),l=n>=0?a[n+1]||a[n-1]:null;return l||(n=t.entries.findIndex(o=>o.path===e.path),l=n>=0?t.entries[n+1]||t.entries[n-1]:null),l?.path||""}function Zp(e){return(e?.entries||[]).filter(GL)}function YL(e){return e&&d.mediaLibrary.columns.find(t=>t.entries.some(a=>a.path===e.path))||null}function oI(){return YL(d.mediaLibrary.selectedEntry)||d.mediaLibrary.columns.find(e=>e.path===d.mediaLibrary.selectedPath)||d.mediaLibrary.columns.at(-1)||null}async function Wb(e){let t=oI(),a=Zp(t);if(!t||!a.length)return;let n=a.findIndex(i=>i.path===d.mediaLibrary.selectedEntry?.path),l=e>0?0:a.length-1,o=n<0?l:Math.min(Math.max(n+e,0),a.length-1),r=a[o];if(r.type==="directory"&&!d.mediaLibrary.trashMode){d.mediaLibrary.root=r.path,d.mediaLibrary.selectedUrl="",await tt(r.path,{selectedUrl:""});let i=ia(r.path);i&&(d.mediaLibrary.selectedPath=t.path,d.mediaLibrary.selectedEntry=i,d.mediaLibrary.selectedUrl="",St());return}$p(r,t.path)}async function rI(){let e=d.mediaLibrary.selectedEntry;if(!e||e.type!=="directory"||d.mediaLibrary.trashMode)return;d.mediaLibrary.root=e.path,d.mediaLibrary.selectedEntry=e,d.mediaLibrary.selectedUrl="",await tt(e.path,{selectedUrl:""});let t=XL(e.path),a=Zp(t)[0];a&&(d.mediaLibrary.selectedPath=e.path,d.mediaLibrary.selectedEntry=a,d.mediaLibrary.selectedUrl=a.type==="file"&&a.url||"",St())}async function iI(){if(d.mediaLibrary.trashMode)return;let e=d.mediaLibrary.selectedPath||d.mediaLibrary.selectedEntry?.path||"";if(!e)return;let t=Lt(e);d.mediaLibrary.selectedUrl="",await tt(t,{selectedUrl:""});let a=ia(e);a&&(d.mediaLibrary.selectedPath=t,d.mediaLibrary.selectedEntry=a,d.mediaLibrary.selectedUrl="",St())}function uI(e){return!!e?.closest?.("input, textarea, select, [contenteditable='true']")}function sI(){let e=_o(),t=d.mediaLibrary.selectedEntry,a=c.mediaPreviewUsage.lastElementChild;if(V2(c.mediaPreview,e,{large:!0}),c.mediaSelect.textContent=d.mediaLibrary.trashMode?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",c.mediaSelect.classList.toggle("hidden",d.mediaLibrary.context?.mode==="manage"&&!d.mediaLibrary.trashMode),c.mediaSelect.disabled=!e,c.mediaDownload.disabled=!e?.selectable||d.mediaLibrary.trashMode,c.mediaDelete.disabled=!0,!t){c.mediaPreviewName.textContent="\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0438\u043B\u0438 \u043F\u0430\u043F\u043A\u0443",c.mediaPreviewPath.textContent=d.mediaLibrary.selectedPath||"NODEDC_SITE",c.mediaPreviewMeta.textContent="Column view \u043F\u0440\u043E\u0435\u043A\u0442\u0430",c.mediaPreviewUsage.dataset.status="idle",a&&(a.textContent="\u041D\u0435\u0442 \u0432\u044B\u0431\u043E\u0440\u0430");return}if(t.type==="directory"){let l=Cd(t);c.mediaPreview.innerHTML="<span>DIR</span>",c.mediaPreviewName.textContent=t.name,c.mediaPreviewPath.textContent=t.path||"NODEDC_SITE",c.mediaPreviewPath.title=t.path||"NODEDC_SITE",c.mediaPreviewMeta.textContent="\u041F\u0430\u043F\u043A\u0430 \u043F\u0440\u043E\u0435\u043A\u0442\u0430",c.mediaPreviewUsage.dataset.status="idle",a&&(a.textContent="\u041F\u0430\u043F\u043A\u0430"),c.mediaDelete.disabled=!l,c.mediaDelete.title=l?"\u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0442\u0438 \u043F\u0430\u043F\u043A\u0443 \u0432 assets/.trash":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043F\u0430\u043F\u043E\u043A \u0432\u043D\u0443\u0442\u0440\u0438 assets";return}if(d.mediaLibrary.trashMode){c.mediaSelect.disabled=!t.restorable,c.mediaPreviewName.textContent=t.originalName||t.name,c.mediaPreviewPath.textContent=t.originalPath||t.path,c.mediaPreviewPath.title=t.originalPath||t.path,c.mediaPreviewMeta.textContent=[Yb(t),Kb(t.mtimeMs)].filter(Boolean).join(" \xB7 "),c.mediaPreviewUsage.dataset.status="trash",a&&(a.textContent="\u0423\u0434\u0430\u043B\u0451\u043D"),c.mediaDelete.disabled=!t.trashPath,c.mediaDelete.title="\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B \u043D\u0430\u0432\u0441\u0435\u0433\u0434\u0430";return}let n=Cd(t);c.mediaSelect.disabled=!t.selectable||!$L(t),c.mediaPreviewName.textContent=t.name,c.mediaPreviewPath.textContent=t.url||t.path,c.mediaPreviewPath.title=t.url||t.path,c.mediaPreviewMeta.textContent=[Yb(t),Kb(t.mtimeMs)].filter(Boolean).join(" \xB7 "),c.mediaPreviewUsage.dataset.status=Fp(t),a&&(a.textContent=t.selectable?Sd(t):"\u041D\u0435 \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439 asset"),c.mediaDelete.disabled=!n,c.mediaDelete.title=n?"\u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0442\u0438 unused-\u0444\u0430\u0439\u043B \u0432 assets/.trash":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F unused-\u0444\u0430\u0439\u043B\u043E\u0432 \u0438\u0437 assets"}function St(){c.mediaTrashToggle.dataset.active=String(d.mediaLibrary.trashMode),c.mediaUpload.textContent=d.mediaLibrary.trashMode?"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043A\u043E\u0440\u0437\u0438\u043D\u0443":"+ \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",X2(),aI(),c.mediaList.innerHTML="",c.mediaList.classList.add("media-columns");let e=d.mediaLibrary.columns||[];c.mediaEmpty.classList.toggle("hidden",e.length>0);for(let t of e)c.mediaList.append(lI(t));sI(),tI()}async function dI(){if(await Un().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${e.message}`)),d.mediaLibrary.trashMode){await yu({selectedTrashPath:d.mediaLibrary.selectedEntry?.trashPath||""});return}await tt(d.mediaLibrary.selectedPath||d.mediaLibrary.root||"")}async function cI(){if(d.mediaLibrary.trashMode){await tt(d.mediaLibrary.previousPath||d.mediaLibrary.root||"");return}d.mediaLibrary.previousPath=d.mediaLibrary.selectedPath||d.mediaLibrary.root||"",d.mediaLibrary.selectedEntry=null,d.mediaLibrary.selectedUrl="",await yu()}async function Dd(e){let t=e.currentUrl??e.hiddenInput?.value??"",a=Va(t),n=e.mode==="manage",l=n?"assets":`assets/uploads/${jp(e.block,e.editableField)}`,o=d.mediaLibrary.lastPath||uL(),r=(e.requiredKind&&a?Lt(a):o)||(a?Lt(a):e.initialDirectory||l);d.mediaLibrary.context=e,d.mediaLibrary.trashMode=!1,d.mediaLibrary.previousPath="",d.mediaLibrary.selectedUrl=t,d.mediaLibrary.selectedEntry=null,d.mediaLibrary.selectedPath=r,d.mediaLibrary.query="",d.mediaLibrary.root=r,d.mediaLibrary.kind=e.requiredKind||"all",c.mediaSearch.value="",c.mediaModalTitle.textContent=n?`\u0424\u0430\u0439\u043B\u044B \u2014 ${d.projectConfig?.name||d.projectConfig?.id||"\u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u0441\u0430\u0439\u0442"}`:e.editableField.label||"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0444\u0430\u0439\u043B",c.mediaModalSubtitle.textContent=n?"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F, \u0432\u0438\u0434\u0435\u043E \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043B\u044B \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0441\u0430\u0439\u0442\u0430.":`${e.editableField.path} -> ${l}`,c.mediaModalCancel.textContent=n?"\u0417\u0430\u043A\u0440\u044B\u0442\u044C":"\u041E\u0442\u043C\u0435\u043D\u0430",c.mediaModal.classList.remove("hidden"),c.mediaSearch.focus(),Un().catch(i=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${i.message}`));try{await tt(r,{selectedUrl:t})}catch(i){D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0438: ${i.message}`),St()}}function xu(){let e=d.mediaLibrary.context?.mode==="manage";qo(),c.mediaModal.classList.add("hidden"),delete c.mediaDropZone.dataset.dragActive,d.mediaLibrary.context=null,d.mediaLibrary.trashMode=!1,d.mediaLibrary.selectedUrl="",d.mediaLibrary.selectedEntry=null,ra(),e&&c.modeFiles?.focus()}function fI(){let e=_o();if(!e?.selectable||d.mediaLibrary.trashMode)return;let t=document.createElement("a");t.href=No(`/api/media/download?path=${encodeURIComponent(e.path)}`),t.download=e.name,document.body.append(t),t.click(),t.remove()}function $L(e){return!d.mediaLibrary.context?.requiredKind||e.kind===d.mediaLibrary.context.requiredKind}function ZL(){let e=_o(),t=d.mediaLibrary.context;if(!(!e||!t)){if(d.mediaLibrary.trashMode){QL().catch(a=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F: ${a.message}`));return}t.mode==="manage"||!e.selectable||!$L(e)||(typeof t.onSelect=="function"?t.onSelect(e.url,e):(Xp({...t,value:e.url}),t.setSource("file")),zL(e.directory||Lt(Va(e.url))),xu(),be(`\u0412\u044B\u0431\u0440\u0430\u043D \u0444\u0430\u0439\u043B: ${e.url}. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u043F\u0443\u0442\u044C.`))}}async function QL(){let e=_o();if(!e?.trashPath)return;let t=await Hn("/api/media/restore",{trashPath:e.trashPath});await yu(),await Un().catch(a=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${a.message}`)),D(`\u0424\u0430\u0439\u043B \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D: ${t.path}.`)}async function mI(){await zo({title:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043A\u043E\u0440\u0437\u0438\u043D\u0443?",body:"\u0412\u0441\u0435 \u0444\u0430\u0439\u043B\u044B \u0438\u0437 \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0445 \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043B\u0435\u043D\u044B \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E."})&&(await Hn("/api/media/trash/clear"),await yu(),await Un().catch(t=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${t.message}`)),D("\u041A\u043E\u0440\u0437\u0438\u043D\u0430 \u043E\u0447\u0438\u0449\u0435\u043D\u0430."))}async function pI(e){if(d.mediaLibrary.trashMode)return;let t=await RL({title:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0443",body:`\u041D\u043E\u0432\u0430\u044F \u043F\u0430\u043F\u043A\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0437\u0434\u0430\u043D\u0430 \u0432 ${e||"\u043A\u043E\u0440\u043D\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u0430"}.`,label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043F\u0430\u043F\u043A\u0438",value:"new-folder",confirmLabel:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C"});if(!t)return;let a=await Hn("/api/media/folder",{path:e,name:t});await tt(e),d.mediaLibrary.selectedEntry=ia(a.path),d.mediaLibrary.selectedUrl="",St(),D(`\u041F\u0430\u043F\u043A\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0430: ${a.path}.`)}async function hI(e){if(!e||d.mediaLibrary.trashMode)return;let t=await RL({title:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",body:e.path,label:"\u041D\u043E\u0432\u043E\u0435 \u0438\u043C\u044F",value:e.name,confirmLabel:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C"});if(!t||t===e.name)return;let a=await Hn("/api/media/rename",{path:e.path,name:t});HL(a.replacements),await tt(Lt(a.path),{selectedUrl:a.url||""});let n=ia(a.path);n&&(d.mediaLibrary.selectedPath=Lt(a.path),d.mediaLibrary.selectedEntry=n,d.mediaLibrary.selectedUrl=n.type==="file"&&n.url||"",St());let l=Array.isArray(a.updatedFiles)?a.updatedFiles.length:0;D(`\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043E: ${a.path}${l?`. \u0421\u0441\u044B\u043B\u043A\u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B: ${l}`:""}.`)}async function gI(e){if(!e||d.mediaLibrary.trashMode)return;let t=await Hn("/api/media/duplicate",{path:e.path});await tt(Lt(t.path),{selectedUrl:t.url||""}),await Un().catch(a=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${a.message}`)),t.url||(d.mediaLibrary.selectedEntry=ia(t.path),d.mediaLibrary.selectedUrl="",St()),D(`${t.type==="directory"?"\u041F\u0430\u043F\u043A\u0430":"\u0424\u0430\u0439\u043B"} \u043F\u0440\u043E\u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D: ${t.path}.`)}async function yI(e){let t=d.mediaLibrary.context;!t||!e||await OL({...t,file:e,afterUpload:async a=>{d.mediaLibrary.selectedUrl=a.url;let n=Va(a.url);await tt(Lt(n),{selectedUrl:a.url}),await Un().catch(l=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${l.message}`))}})}function xI(){let e=d.mediaLibrary.context;e&&G2({...e,afterUpload:async t=>{d.mediaLibrary.selectedUrl=t.url;let a=Va(t.url);await tt(Lt(a),{selectedUrl:t.url}),await Un().catch(n=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${n.message}`))}})}async function WL(){let e=_o();if(!e?.trashPath)return;let t=KL(e);await zo({title:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B \u043D\u0430\u0432\u0441\u0435\u0433\u0434\u0430?",body:"\u042D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043B\u0451\u043D \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0435\u0433\u043E \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u043C\u0438\u043D\u043A\u0443 \u0443\u0436\u0435 \u043D\u0435 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0441\u044F."})&&(await Hn("/api/media/trash/delete",{trashPath:e.trashPath}),await yu({selectedTrashPath:t}),D(`\u0424\u0430\u0439\u043B \u0443\u0434\u0430\u043B\u0451\u043D \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B \u043D\u0430\u0432\u0441\u0435\u0433\u0434\u0430: ${e.originalPath||e.path}.`))}async function Qp(){let e=d.mediaLibrary.selectedEntry;if(!e||c.mediaDelete.disabled)return;if(d.mediaLibrary.trashMode){await WL();return}let t=e.type==="file"?d.mediaLibrary.selectedPath||Lt(Va(e.url)):Lt(e.path),a=KL(e);if(!await zo({title:e.type==="directory"?"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u0430\u043F\u043A\u0443?":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C unused-\u0444\u0430\u0439\u043B?",body:e.type==="directory"?"\u041F\u0430\u043F\u043A\u0430 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043D\u0435\u0441\u0435\u043D\u0430 \u0432 assets/.trash. \u0415\u0441\u043B\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u0435\u0441\u0442\u044C \u0444\u0430\u0439\u043B\u044B, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u0432 \u043C\u043E\u0434\u0435\u043B\u0438 \u0438\u043B\u0438 \u0442\u0435\u043A\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0442\u043A\u0435, \u0441\u0435\u0440\u0432\u0435\u0440 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435.":"\u0424\u0430\u0439\u043B \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043D\u0435\u0441\u0451\u043D \u0432 assets/.trash. \u0424\u0430\u0439\u043B\u044B, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u0432 \u043C\u043E\u0434\u0435\u043B\u0438 \u0438\u043B\u0438 \u0442\u0435\u043A\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0442\u043A\u0435, \u0441\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0443\u0434\u0430\u043B\u044F\u0435\u0442."}))return;let l=await Hn("/api/media/delete-entry",{path:e.path});await tt(t,{selectedUrl:""}),await Un().catch(r=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430: ${r.message}`));let o=a?ia(a):null;o&&(d.mediaLibrary.selectedPath=t,d.mediaLibrary.selectedEntry=o,d.mediaLibrary.selectedUrl=o.type==="file"&&o.url||"",St()),D(`${l.type==="directory"?"\u041F\u0430\u043F\u043A\u0430":"\u0424\u0430\u0439\u043B"} \u043F\u0435\u0440\u0435\u043D\u0435\u0441\u0451\u043D \u0432 ${l.trashPath}.`)}function JL({block:e,editableField:t,grid:a}){let n=Ie(e,t.path)??"",l=document.createElement("div"),o=document.createElement("div"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("input"),s=document.createElement("div"),f=document.createElement("div"),m=document.createElement("button"),p=document.createElement("span"),h=document.createElement("input"),b=document.createElement("div"),S=document.createElement("button"),x=document.createElement("button"),g=document.createElement("div"),y=document.createElement("span"),v=document.createElement("span"),L=document.createElement("span"),M=/^(https?:)?\/\//i.test(n)?"url":"file";function A(I){M=I,f.hidden=M!=="file",h.hidden=M!=="url",S.dataset.active=String(M==="file"),x.dataset.active=String(M==="url")}l.className="field-control wide service-media-field",o.className="field-label-row",r.className="field-label-text",r.textContent=t.label||t.path,i.className="field-kind",i.textContent=t.kind||"media",o.append(r,i),u.className="service-media-hidden-input",u.type="hidden",u.dataset.path=t.path,u.value=n,s.className="service-media-control",f.className="service-media-file-control",m.className="service-media-file-button",m.type="button",m.textContent="\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B",p.className="service-media-file-name",p.textContent=hu(Ga(n),28),p.title=Ga(n),f.append(m,p),h.className="service-media-url-input",h.type="text",h.placeholder="https://...",h.autocomplete="off",h.value=n,b.className="service-media-source-switch",b.setAttribute("aria-label",`${t.label||t.path}: \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A`),S.className="service-media-source-button",S.type="button",S.title="\u0424\u0430\u0439\u043B \u0441 \u0434\u0438\u0441\u043A\u0430",S.setAttribute("aria-label","\u0424\u0430\u0439\u043B \u0441 \u0434\u0438\u0441\u043A\u0430"),S.textContent="HD",x.className="service-media-source-button",x.type="button",x.title="\u0412\u043D\u0435\u0448\u043D\u044F\u044F \u0441\u0441\u044B\u043B\u043A\u0430",x.setAttribute("aria-label","\u0412\u043D\u0435\u0448\u043D\u044F\u044F \u0441\u0441\u044B\u043B\u043A\u0430"),x.textContent="URL",b.append(S,x),g.className="service-media-preview",Vp(g,n,v,t),y.className="field-path",y.textContent=`${t.path} -> assets/uploads/${jp(e,t)}`,v.className="media-upload-hint",L.className="media-upload-error",S.addEventListener("click",()=>A("file")),x.addEventListener("click",()=>{A("url"),h.focus()}),h.addEventListener("input",()=>{Xp({block:e,editableField:t,hiddenInput:u,urlInput:h,fileName:p,preview:g,hint:v,value:h.value})}),m.addEventListener("click",()=>{Dd({block:e,editableField:t,hiddenInput:u,urlInput:h,fileName:p,preview:g,hint:v,error:L,setSource:A}).catch(I=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0438: ${I.message}`))}),A(M),s.append(f,h,b,g),l.append(o,u,s,y,v,L),a.append(l)}function vI(e,t){let a=Ie(e,t.path);if(Array.isArray(a))return a;let n=[];return Wt(e,t.path,n),n}function bI(e,t){return e?.adminLabel||e?.title||e?.name||e?.label||e?.question||e?.windowTitle||`\u042D\u043B\u0435\u043C\u0435\u043D\u0442 ${t+1}`}function LI(e){if(e.itemTemplate){let a=vt(e.itemTemplate);return e.path==="content.dock.items"&&(a.iconSrc="",a.iconAlt="",a.iconClass=""),a}let t={};for(let a of e.itemFields??[])Wt(t,a.path,a.defaultValue??"");return t}function SI(e,t){let a=String(t||"item").trim()||"item",n=new Set(e.map(o=>o?.id).filter(Boolean));if(!n.has(a))return a;let l=2;for(;n.has(`${a}-${l}`);)l+=1;return`${a}-${l}`}function Jb(e,t){let a=vt(t);return Object.prototype.hasOwnProperty.call(a,"id")&&(a.id=SI(e,a.id)),a}function CI(e,t){return`${e?.id||"static-elements"}::${t.path}`}function eL(e){return String(e||"").normalize("NFKD").replace(/[^\w.-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase().slice(0,80)}function bd(e,t){if(e&&typeof e=="object"){if(e.id)return`id:${e.id}`;let a=e.targetId||e.href||"",n=eL(a);if(n)return`item:${n}`;let l=e.title||e.name||e.label||e.question||e.windowTitle||e.adminLabel||"",o=eL(l);if(o)return`item:${o}`;let r=Fb.get(e);return r||(jb+=1,r=`runtime:${jb}`,Fb.set(e,r)),r}return`value:${t}:${String(e)}`}function gl(){let e={};for(let[t,a]of d.collectionOpenState.entries())e[t]=[...a];Eo({collections:e})}function wI(e,t,a){let n=CI(e,t),l=d.collectionOpenState.get(n);return l||(l=new Set,a.length>0&&a.length<=8&&l.add(bd(a[0],0)),d.collectionOpenState.set(n,l),gl()),l}function Td(e){if(e.type==="checkbox")return e.checked;if(e.dataset.valueType==="number"||e.type==="range"||e.type==="number"){let t=Number.parseFloat(e.value);return Number.isFinite(t)?t:0}return e.value}function Uo(e,t,a){Wt(e,t,Td(a)),c.json.value=JSON.stringify(e,null,2),be()}function II({block:e,editableField:t,grid:a}){let n=document.createElement("label"),l=document.createElement("span"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("input");if(n.className="field-control boolean-field",l.className="field-label-row",o.className="field-label-text",o.textContent=t.label||t.path,r.className="field-kind",r.textContent=t.kind||"boolean",i.className="field-path",i.textContent=t.path,l.append(o,r),u.dataset.path=t.path,u.type="checkbox",u.checked=!!Ie(e,t.path),u.addEventListener("change",()=>{let s=Ve();s&&Uo(s,t.path,u)}),n.append(l,u,i),t.layout==="row"){let s=document.querySelector("#ds-settingRow").content.firstElementChild.cloneNode(!0);s.classList.add("wide"),s.querySelector(".nodedc-settings-card__body").remove(),s.querySelector("h2").textContent=t.title||t.label||t.path,s.querySelector('[data-slot="control"]').replaceWith(n),a.append(s)}else a.append(n)}function tL(e,t){let a=Number.parseFloat(t.step??1),n=Number.isFinite(a)&&a>0&&a<1&&String(a).split(".")[1]?.length||0;return`${Number(e).toFixed(n)}${t.suffix||""}`}function kI({block:e,editableField:t,grid:a}){let n=document.createElement("label"),l=document.createElement("span"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("span"),s=document.createElement("input"),f=document.createElement("span"),m=Number.parseFloat(t.min??0),p=Number.parseFloat(t.max??1),h=Number.parseFloat(t.step??.01),b=Number.parseFloat(Ie(e,t.path)),S=Number.isFinite(b)?b:m;n.className="field-control range-field wide",l.className="field-label-row",o.className="field-label-text",o.textContent=t.label||t.path,r.className="field-kind",r.textContent=t.kind||"range",i.className="field-path",i.textContent=t.path,u.className="range-control",f.className="range-value",l.append(o,r),s.dataset.path=t.path,s.dataset.valueType="number",s.type="range",s.min=Number.isFinite(m)?String(m):"0",s.max=Number.isFinite(p)?String(p):"1",s.step=Number.isFinite(h)?String(h):"0.01",s.value=String(S),f.textContent=tL(S,t),s.addEventListener("input",()=>{let x=Ve();x&&(f.textContent=tL(s.value,t),Uo(x,t.path,s))}),u.append(s,f),n.append(l,u,i),a.append(n)}function EI({block:e,editableField:t,grid:a}){let n=document.createElement("label"),l=document.createElement("span"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("span"),s=document.createElement("input"),f=document.createElement("span"),m=Number.parseFloat(Ie(e,t.path)),p=Number.parseFloat(t.defaultValue??t.min??0),h=Number.isFinite(m)?m:p;n.className="field-control number-field",l.className="field-label-row",o.className="field-label-text",o.textContent=t.label||t.path,r.className="field-kind",r.textContent=t.kind||"number",i.className="field-path",i.textContent=t.path,u.className="number-control",f.className="number-suffix",f.textContent=t.suffix||"",l.append(o,r),s.dataset.path=t.path,s.dataset.valueType="number",s.type="number",s.value=Number.isFinite(h)?String(h):"0",s.autocomplete="off",t.min!=null&&(s.min=String(t.min)),t.max!=null&&(s.max=String(t.max)),t.step!=null&&(s.step=String(t.step)),s.addEventListener("input",()=>{let b=Ve();b&&Uo(b,t.path,s)}),u.append(s),f.textContent&&u.append(f),n.append(l,u,i),a.append(n)}function aL(e,t){let a=e.split(".");return a[a.length-1]=t,a.join(".")}function MI({block:e,field:t,grid:a}){let n=document.createElement("div"),l=document.createElement("div"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("input"),u=document.createElement("div"),s=document.createElement("span"),f=aL(t.path,t.hrefPath||"href"),m=aL(t.path,t.targetPath||"target"),p=Ie(e,t.path)==="href"?"href":"target";function h({mode:b,title:S,inputPath:x,placeholder:g}){let y=document.createElement("label"),v=document.createElement("input"),L=document.createElement("span"),M=document.createElement("input");return y.className="link-mode-row",v.type="checkbox",v.checked=p===b,v.setAttribute("aria-label",`${S}: \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C`),L.textContent=S,M.dataset.path=x,M.type="text",M.autocomplete="off",M.placeholder=g,M.value=Ie(e,x)??"",v.addEventListener("change",()=>{if(!v.checked){v.checked=!0;return}let A=Ve();A&&(i.value=b,Wt(A,t.path,b),u.querySelectorAll('input[type="checkbox"]').forEach(I=>{I.checked=I===v}),c.json.value=JSON.stringify(A,null,2),be(b==="href"?"\u0410\u043A\u0442\u0438\u0432\u0435\u043D \u0432\u043D\u0435\u0448\u043D\u0438\u0439 \u0430\u0434\u0440\u0435\u0441.":"\u0410\u043A\u0442\u0438\u0432\u0435\u043D Target."))}),M.addEventListener("input",()=>{let A=Ve();A&&Uo(A,x,M)}),y.append(v,L,M),y}n.className="field-control wide link-mode-field",l.className="field-label-row",o.className="field-label-text",o.textContent=t.label||"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0441\u044B\u043B\u043A\u0438",r.className="field-kind",r.textContent="link",l.append(o,r),i.type="hidden",i.dataset.path=t.path,i.value=p,u.className="link-mode-grid",u.append(h({mode:"href",title:"\u0410\u0434\u0440\u0435\u0441",inputPath:f,placeholder:"https://..."}),h({mode:"target",title:"Target",inputPath:m,placeholder:"index.html#section"})),s.className="field-path",s.textContent=`${t.path} \xB7 ${f} \xB7 ${m}`,n.append(l,i,u,s),a.append(n)}function AI({block:e,editableField:t,head:a}){let n=document.createElement("label"),l=document.createElement("input"),o=document.createElement("span");n.className="group-head-toggle",l.dataset.path=t.path,l.type="checkbox",l.checked=!!Ie(e,t.path),o.textContent="\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",l.addEventListener("change",()=>{let r=Ve();r&&Uo(r,t.path,l)}),n.append(l,o),a.append(n)}function eS({block:e,field:t,grid:a}){if(t.kind==="link-mode"){MI({block:e,field:t,grid:a});return}if(t.kind==="boolean"){II({block:e,editableField:t,grid:a});return}if(t.kind==="range"){kI({block:e,editableField:t,grid:a});return}if(t.kind==="number"){EI({block:e,editableField:t,grid:a});return}let n=t.kind==="color",l=document.createElement(n?"div":"label"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("span"),s=Ie(e,t.path)??"",f=t.kind==="html"||t.kind==="textarea",m=f?document.createElement("textarea"):document.createElement("input");l.className=`field-control${f?" wide":""}`,o.className="field-label-row",r.className="field-label-text",r.textContent=t.label||t.path,i.className="field-kind",i.textContent=t.kind||"text",u.className="field-path",u.textContent=t.path,o.append(r,i),m.dataset.path=t.path,m.value=s,n?(m.type="hidden",m.dataset.colorField=r.textContent):f||(m.type="text",m.autocomplete="off"),m.addEventListener("input",()=>{let p=Ve();p&&Uo(p,t.path,m)}),l.append(o,m,u),a.append(l)}function DI(e,t,a,n,l){if(e.button!==0)return;e.preventDefault(),e.stopPropagation();let o=t.closest(".collection-list");if(!o)return;let r=AL(t),i=ML(t,e);t.classList.add("dragging","sorting-source"),o.classList.add("sorting-active"),t.after(r);let u=m=>{Gp(i,m),DL({event:m,list:o,source:t,placeholder:r,selector:".collection-item-card"})},s=()=>{document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",s),document.removeEventListener("pointercancel",f);let m=TL({list:o,placeholder:r,source:t,selector:".collection-item-card"});if(Fa(),m<0||m===n)return;let[p]=a.splice(n,1);a.splice(Math.min(m,a.length),0,p),l("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u0438\u0437\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.")},f=()=>{document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",s),document.removeEventListener("pointercancel",f),Fa()};document.addEventListener("pointermove",u),document.addEventListener("pointerup",s),document.addEventListener("pointercancel",f)}function TI({block:e,editableField:t,grid:a}){let n=vI(e,t),l=wI(e,t,n),o=document.createElement("section"),r=document.createElement("div"),i=document.createElement("div"),u=document.createElement("button"),s=document.createElement("div");function f(m=null){c.json.value=JSON.stringify(e,null,2),tS(e),be(m)}o.className="collection-field",r.className="collection-head",i.className="collection-title",i.textContent=t.label||t.path,u.className="collection-add-btn",u.type="button",u.title=`\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432 \xAB${t.label||t.path}\xBB`,u.setAttribute("aria-label",u.title),u.textContent="+",u.addEventListener("click",()=>{let m=Jb(n,LI(t));n.push(m),l.add(bd(m,n.length-1)),gl(),f(`\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432 \xAB${t.label||t.path}\xBB.`)}),r.append(i,u),s.className="collection-list",n.forEach((m,p)=>{let h=bd(m,p),b=document.createElement("details"),S=document.createElement("summary"),x=document.createElement("span"),g=document.createElement("span"),y=document.createElement("button"),v=document.createElement("div"),L=document.createElement("div"),M=m&&typeof m=="object"&&(Object.prototype.hasOwnProperty.call(m,"enabled")||Object.prototype.hasOwnProperty.call(t.itemTemplate??{},"enabled"));if(b.className="collection-item-card",b.classList.toggle("is-hidden",m?.enabled===!1),b.open=l.has(h),b.addEventListener("toggle",()=>{b.open?l.add(h):l.delete(h),gl()}),S.className="collection-summary",x.className="collection-summary-title",x.textContent=bI(m,p),g.className="collection-item-actions",y.className="collection-drag-handle",y.type="button",y.title="\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442",y.setAttribute("aria-label","\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442"),y.innerHTML='<svg viewBox="0 0 12 18" aria-hidden="true" focusable="false"><circle cx="4" cy="4" r="1.25"></circle><circle cx="8" cy="4" r="1.25"></circle><circle cx="4" cy="9" r="1.25"></circle><circle cx="8" cy="9" r="1.25"></circle><circle cx="4" cy="14" r="1.25"></circle><circle cx="8" cy="14" r="1.25"></circle></svg>',y.addEventListener("click",A=>{A.preventDefault(),A.stopPropagation()}),y.addEventListener("pointerdown",A=>DI(A,b,n,p,f)),M){Object.prototype.hasOwnProperty.call(m,"enabled")||(m.enabled=!0);let A=document.createElement("span"),I=document.createElement("input"),N=document.createElement("span");A.className="collection-visibility-toggle",A.title="\u0421\u043A\u0440\u044B\u0442\u044C/\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",A.setAttribute("aria-label","\u0421\u043A\u0440\u044B\u0442\u044C/\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C"),I.type="checkbox",I.checked=m.enabled!==!1,N.textContent="\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",A.addEventListener("click",T=>T.stopPropagation()),I.addEventListener("click",T=>T.stopPropagation()),I.addEventListener("change",()=>{m.enabled=I.checked,f(I.checked?"\u042D\u043B\u0435\u043C\u0435\u043D\u0442 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.":"\u042D\u043B\u0435\u043C\u0435\u043D\u0442 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u0441\u043A\u0440\u044B\u0442 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.")}),A.append(I,N),g.append(A)}[["\u2191","\u041F\u043E\u0434\u043D\u044F\u0442\u044C",()=>{if(p===0)return;let[A]=n.splice(p,1);n.splice(p-1,0,A),gl(),f("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u0438\u0437\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.")}],["\u2193","\u041E\u043F\u0443\u0441\u0442\u0438\u0442\u044C",()=>{if(p>=n.length-1)return;let[A]=n.splice(p,1);n.splice(p+1,0,A),gl(),f("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u0438\u0437\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.")}],["\u29C9","\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",()=>{let A=Jb(n,m);n.splice(p+1,0,A),b.open&&l.add(bd(A,p+1)),gl(),f("\u042D\u043B\u0435\u043C\u0435\u043D\u0442 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043F\u0440\u043E\u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.")}],[cL,"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",async()=>{await zo()&&(l.delete(h),n.splice(p,1),gl(),f("\u042D\u043B\u0435\u043C\u0435\u043D\u0442 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u0443\u0434\u0430\u043B\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E."))}]].forEach(([A,I,N])=>{let T=document.createElement("button");T.className="collection-icon-btn",T.type="button",T.title=I,T.setAttribute("aria-label",I),I==="\u0423\u0434\u0430\u043B\u0438\u0442\u044C"?T.innerHTML=A:T.textContent=A,T.addEventListener("click",w=>{w.preventDefault(),w.stopPropagation(),Promise.resolve(N()).catch(O=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438: ${O.message}`))}),g.append(T)}),g.append(y),S.append(x,g),v.className="collection-item-body",L.className="group-grid";for(let A of t.itemFields??[]){let I={...A,path:`${t.path}.${p}.${A.path}`,label:A.label||A.path,group:t.group};I.kind==="media"?JL({block:e,editableField:I,grid:L}):eS({block:e,field:I,grid:L})}v.append(L),b.append(S,v),s.append(b)}),o.append(r,s),a.append(o)}function tS(e){if(c.contentFields.innerHTML="",!e.editableFields?.length){let t=document.createElement("div");t.className="empty-note",t.textContent="\u0414\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0431\u043B\u043E\u043A\u0430 typed-\u043F\u043E\u043B\u044F \u0435\u0449\u0451 \u043D\u0435 \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u044B. \u041F\u043E\u043A\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 JSON.",c.contentFields.append(t);return}for(let[t,a]of F2(e)){let n=document.createElement("section"),l=document.createElement("div"),o=document.createElement("div"),r=document.createElement("h3"),i=document.createElement("p"),u=document.createElement("div");n.className="content-group",l.className="group-head",r.textContent=t,i.className="group-desc",i.textContent=Pb[t]||Pb.\u041A\u043E\u043D\u0442\u0435\u043D\u0442,o.append(r,i),l.append(o),u.className="group-grid";let s=a.filter(m=>m.kind==="boolean"&&m.headerToggle),f=a.filter(m=>!s.includes(m));s.forEach(m=>AI({block:e,editableField:m,head:l}));for(let m of f){if(m.kind==="collection"){TI({block:e,editableField:m,grid:u});continue}if(m.kind==="media"){JL({block:e,editableField:m,grid:u});continue}eS({block:e,field:m,grid:u})}n.append(l,u),c.contentFields.append(n)}}function NI(){let e=Ve();if(e)for(let t of c.contentFields.querySelectorAll("[data-path]"))Wt(e,t.dataset.path,Td(t))}function RI(){if(!d.selected)return!1;try{let e=JSON.parse(c.json.value);if(d.mode==="seo"&&et())d.page.seo=e;else if(et())d.page.staticElements=e;else{let t=Ll();if(!t)return!1;t.blocks[d.selected.blockIndex]=e}return bt(),be("JSON \u0431\u043B\u043E\u043A\u0430 \u043F\u0440\u0438\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0444\u0430\u0439\u043B."),!0}catch(e){return D(`\u041E\u0448\u0438\u0431\u043A\u0430 JSON: ${e.message}`),!1}}function To(){return d.knowledge?(Array.isArray(d.knowledge.tree)||(d.knowledge.tree=[]),d.knowledge.tree):[]}function Wp(e=To(),t=null,a=()=>{}){e.forEach((n,l)=>{a(n,t,e,l),Wp(Array.isArray(n.children)?n.children:[],n,a)})}function BI(){let e=new Set;return Wp(To(),null,t=>{t.id&&e.add(t.id)}),e}function bl(e){let t=null,a=null,n=null,l=-1;return Wp(To(),null,(o,r,i,u)=>{t||o.id!==e||(t=o,a=r,n=i,l=u)}),t?{node:t,parent:a,siblings:n,index:l}:null}function OI(e){return e===mu}function Nd(){return OI(d.knowledgeSelectedId)}function kp(){return d.knowledge?.title||d.knowledge?.settings?.navTitle||"Knowledge"}function _I(){return Nd()?d.knowledge:bl(d.knowledgeSelectedId)?.node||null}function zI(e,t="material"){let a={\u0430:"a",\u0431:"b",\u0432:"v",\u0433:"g",\u0434:"d",\u0435:"e",\u0451:"e",\u0436:"zh",\u0437:"z",\u0438:"i",\u0439:"y",\u043A:"k",\u043B:"l",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"p",\u0440:"r",\u0441:"s",\u0442:"t",\u0443:"u",\u0444:"f",\u0445:"h",\u0446:"c",\u0447:"ch",\u0448:"sh",\u0449:"sch",\u044A:"",\u044B:"y",\u044C:"",\u044D:"e",\u044E:"yu",\u044F:"ya"};return String(e||"").toLowerCase().replace(/[а-яё]/g,l=>a[l]||"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||t}function nL(e,t){let a=t||"material";if(!e.has(a))return a;let n=2;for(;e.has(`${a}-${n}`);)n+=1;return`${a}-${n}`}function qI(e="\u041D\u043E\u0432\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",t=[]){let a=BI(),n=new Set(t.map(o=>o.slug).filter(Boolean)),l=nL(n,zI(e));return{id:nL(a,l),title:e,slug:l,enabled:!0,useContent:!0,seo:{title:e,description:""},bodyHtml:"<p>\u041D\u043E\u0432\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439.</p>",children:[]}}function Jp(){!d.knowledge||Nd()||d.knowledgeSelectedId&&bl(d.knowledgeSelectedId)||(d.knowledgeSelectedId=mu)}function aS(e){d.knowledgeSelectedId=e,Eo({knowledgeSelectedId:e}),Po()}function UI(){Eo({knowledgeOpenIds:[...d.knowledgeOpenIds]})}function nS(e,t){e&&(t?d.knowledgeOpenIds.add(e):d.knowledgeOpenIds.delete(e),UI())}function eh(e=null){let t=e?bl(e)?.node:null,a=t?t.children||=[]:To(),n=qI(t?"\u041D\u043E\u0432\u044B\u0439 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B":"\u041D\u043E\u0432\u044B\u0439 \u0440\u0430\u0437\u0434\u0435\u043B",a);a.push(n),t&&nS(t.id,!0),d.knowledgeSelectedId=n.id,Po(),be("\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u0432 \u0434\u0435\u0440\u0435\u0432\u043E \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439.")}function lL(e,t){let a=bl(e);if(!a)return;let n=a.index+t;if(n<0||n>=a.siblings.length)return;let[l]=a.siblings.splice(a.index,1);a.siblings.splice(n,0,l),Po(),be("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u0434\u0435\u0440\u0435\u0432\u0430 \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439 \u0438\u0437\u043C\u0435\u043D\u0451\u043D.")}async function HI(e){let t=bl(e);!t||!await zo({title:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B?",body:`\xAB${t.node.title||t.node.id}\xBB \u0438 \u0432\u0441\u0435 \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043B\u0435\u043D\u044B \u0438\u0437 \u0434\u0435\u0440\u0435\u0432\u0430.`})||(t.siblings.splice(t.index,1),d.knowledgeSelectedId===e&&(d.knowledgeSelectedId=t.siblings[Math.min(t.index,t.siblings.length-1)]?.id||t.parent?.id||mu),Po(),be("\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B \u0443\u0434\u0430\u043B\u0451\u043D \u0438\u0437 \u0434\u0435\u0440\u0435\u0432\u0430 \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439."))}function lS(e,t=0){let a=document.createElement("div"),n=document.createElement("div"),l=document.createElement("button"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("span"),s=document.createElement("span"),f=Array.isArray(e.children)?e.children:[],m=f.length>0,p=d.knowledgeOpenIds.has(e.id)||e.id===d.knowledgeSelectedId||f.some(h=>h.id===d.knowledgeSelectedId);if(a.className="knowledge-tree-item",a.style.setProperty("--depth",String(t)),n.className="knowledge-tree-row",n.dataset.active=String(e.id===d.knowledgeSelectedId),n.dataset.disabled=String(e.enabled===!1),l.className="knowledge-tree-select",l.type="button",o.className="knowledge-tree-icon",o.textContent=m?p?"\u25BE":"\u203A":e.useContent===!1?"G":"A",r.className="knowledge-tree-copy",i.className="knowledge-tree-title",i.textContent=e.title||e.id,u.className="knowledge-tree-meta",u.textContent=e.useContent===!1?"\u0433\u0440\u0443\u043F\u043F\u0430":m?"\u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 + \u0432\u0435\u0442\u043A\u0430":"\u0441\u0442\u0430\u0442\u044C\u044F",r.append(i,u),l.append(o,r),l.addEventListener("click",()=>{m&&nS(e.id,!p),aS(e.id)}),s.className="knowledge-tree-actions",[["+","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",()=>eh(e.id)],["\u2191","\u041F\u043E\u0434\u043D\u044F\u0442\u044C",()=>lL(e.id,-1)],["\u2193","\u041E\u043F\u0443\u0441\u0442\u0438\u0442\u044C",()=>lL(e.id,1)],[cL,"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",()=>HI(e.id)]].forEach(([h,b,S])=>{let x=document.createElement("button");x.type="button",x.className="knowledge-tree-action",x.title=b,x.setAttribute("aria-label",b),b==="\u0423\u0434\u0430\u043B\u0438\u0442\u044C"?x.innerHTML=h:x.textContent=h,x.addEventListener("click",g=>{g.stopPropagation(),Promise.resolve(S()).catch(y=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0434\u0435\u0440\u0435\u0432\u0430: ${y.message}`))}),s.append(x)}),n.append(l,s),a.append(n),m&&p){let h=document.createElement("div");h.className="knowledge-tree-children",f.forEach(b=>h.append(lS(b,t+1))),a.append(h)}return a}function PI(){let e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("button"),n=document.createElement("span"),l=document.createElement("span"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("button");return e.className="knowledge-tree-item knowledge-root-item",e.style.setProperty("--depth","0"),t.className="knowledge-tree-row",t.dataset.active=String(Nd()),t.dataset.disabled="false",a.className="knowledge-tree-select",a.type="button",n.className="knowledge-tree-icon",n.textContent="K",l.className="knowledge-tree-copy",o.className="knowledge-tree-title",o.textContent=kp(),r.className="knowledge-tree-meta",r.textContent="/knowledge/ \u0433\u043B\u0430\u0432\u043D\u0430\u044F",l.append(o,r),a.append(n,l),a.addEventListener("click",()=>aS(mu)),i.className="knowledge-tree-actions",u.type="button",u.className="knowledge-tree-action",u.title="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0437\u0434\u0435\u043B \u0432 \u043A\u043E\u0440\u0435\u043D\u044C",u.setAttribute("aria-label","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0437\u0434\u0435\u043B \u0432 \u043A\u043E\u0440\u0435\u043D\u044C"),u.textContent="+",u.addEventListener("click",s=>{s.stopPropagation(),eh(null)}),i.append(u),t.append(a,i),e.append(t),e}function Rd(){c.regions.innerHTML="";let e=document.createElement("section"),t=document.createElement("h2"),a=document.createElement("div");if(e.className="region-group knowledge-region",t.className="region-title",t.textContent="\u0411\u0430\u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u0439",a.className="knowledge-tree",a.append(PI()),To().length)To().forEach(n=>a.append(lS(n)));else{let n=document.createElement("div");n.className="empty-note knowledge-empty-tree",n.textContent="\u0414\u0435\u0440\u0435\u0432\u043E \u043F\u0443\u0441\u0442\u043E\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043F\u043B\u044E\u0441 \u0441\u0432\u0435\u0440\u0445\u0443, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0432\u044B\u0439 \u0440\u0430\u0437\u0434\u0435\u043B.",a.append(n)}e.append(t,a),c.regions.append(e)}function oS(e,t,a,n="\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439 \u043E\u0431\u043D\u043E\u0432\u043B\u0451\u043D."){Wt(e,t,a),be(n)}function oa({node:e,path:t,label:a,kind:n="text",wide:l=!1,placeholder:o=""}){let r=document.createElement("label"),i=document.createElement("span"),u=document.createElement("span"),s=document.createElement("span"),f=n==="textarea"?document.createElement("textarea"):document.createElement("input"),m=document.createElement("span");return r.className=`field-control${l||n==="textarea"?" wide":""}`,i.className="field-label-row",u.className="field-label-text",u.textContent=a,s.className="field-kind",s.textContent=n,f.value=Ie(e,t)??"",f.placeholder=o,f.dataset.knowledgePath=t,f.tagName==="INPUT"&&(f.type=n==="url"?"url":"text",f.autocomplete="off"),f.addEventListener("input",()=>{oS(e,t,f.value),(t==="title"||t==="settings.navTitle")&&Rd()}),m.className="field-path",m.textContent=t,i.append(u,s),r.append(i,f,m),r}function vp({node:e,path:t,label:a,checkedDefault:n=!0}){let l=document.createElement("label"),o=document.createElement("span"),r=document.createElement("span"),i=document.createElement("span"),u=document.createElement("input"),s=document.createElement("span");l.className="field-control boolean-field",o.className="field-label-row",r.className="field-label-text",r.textContent=a,i.className="field-kind",i.textContent="boolean",u.type="checkbox";let f=Ie(e,t);return u.checked=f==null?n:f!==!1,u.addEventListener("change",()=>{oS(e,t,u.checked),sS(),Rd()}),s.className="field-path",s.textContent=t,o.append(r,i),l.append(o,u,s),l}function Ep(e,t){if(!e||!t)return!1;let a=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return!!(a&&e.contains(a))}function vl(){let e=window.getSelection();if(!e?.rangeCount)return;let t=c.knowledgeForm.querySelector("[data-knowledge-richtext]");!Ep(t,e.anchorNode)||!Ep(t,e.focusNode)||(d.knowledgeSavedSelection=e.getRangeAt(0).cloneRange())}function rS(e){e.focus();let t=d.knowledgeSavedSelection;(!t||!Ep(e,t.commonAncestorContainer))&&(t=document.createRange(),t.selectNodeContents(e),t.collapse(!1),d.knowledgeSavedSelection=t.cloneRange());let a=window.getSelection();return a.removeAllRanges(),a.addRange(t),t}function th(e,t){Wt(e,t.dataset.knowledgeBodyPath||"bodyHtml",t.innerHTML.trim()),be("\u0422\u0435\u043A\u0441\u0442 \u0441\u0442\u0430\u0442\u044C\u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0451\u043D.")}function zn(e,t,a,n=null){rS(e),document.execCommand(a,!1,n),th(t,e)}function iS(e,t,a){rS(e),document.execCommand("insertHTML",!1,a),vl(),th(t,e)}function xd(e){return String(e??"").replace(/\s+/g," ").trim().replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("[","(").replaceAll("]",")")}function uS(e){return String(e||"").trim().replace(/^#+/,"").replace(/^index\.html#/i,"").replace(/^\/?#/,"")}function Bd(e){return(String(e??"").trim()||"/").replace(/^\/+(https?:\/\/)/i,"$1").replace(/^\/+((?:mailto|tel):)/i,"$1")}function FI({name:e,link:t,target:a,blockId:n}){let l=xd(e||"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C"),o=xd(Bd(t)),r=uS(a),i=String(n||"").trim(),u=i?` block="${xd(i)}"`:"",s=r?` target="${xd(r)}"`:"";return`[button name="${l}" link="${o}"${u}${s}]`}function jI(){if(!c.knowledgeButtonTargetOptions)return;c.knowledgeButtonTargetOptions.innerHTML="";let e=new Set;for(let{id:t,label:a,target:n}of xl()){let l=n.toLowerCase();if(!e.has(l)){let r=document.createElement("option");r.value=n,r.label=`${a} / ${t}`,c.knowledgeButtonTargetOptions.append(r),e.add(l)}let o=String(t||"").toLowerCase();if(t&&!e.has(o)){let r=document.createElement("option");r.value=t,r.label=`${a} / block id`,c.knowledgeButtonTargetOptions.append(r),e.add(o)}}}function ah(e=""){c.knowledgeButtonError&&(c.knowledgeButtonError.textContent=e)}function Ho(e=null){let t=d.knowledgeButtonResolve;d.knowledgeButtonResolve=null,c.knowledgeButtonModal.classList.add("hidden"),ah(""),t&&t(e)}function Mp(){let e=c.knowledgeButtonName.value.trim();if(!e){ah("\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043D\u043E\u043F\u043A\u0438 \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E."),c.knowledgeButtonName.focus();return}let t=Bd(c.knowledgeButtonLink.value);c.knowledgeButtonLink.value=t,Ho({name:e,link:t,targetInput:c.knowledgeButtonTarget.value.trim()})}function GI({name:e="\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0434\u0435\u043C\u043E",link:t="/",target:a=""}={}){return d.knowledgeButtonResolve&&Ho(null),new Promise(n=>{d.knowledgeButtonResolve=n,jI(),ah(""),c.knowledgeButtonName.value=e,c.knowledgeButtonLink.value=Bd(t),c.knowledgeButtonTarget.value=uS(a),c.knowledgeButtonModal.classList.remove("hidden"),c.knowledgeButtonName.focus(),c.knowledgeButtonName.select()})}function VI(e,t){vl();let a={value:""},n={textContent:"",title:""},l=document.createElement("div"),o=document.createElement("span"),r=document.createElement("span"),i={value:""};Dd({block:{id:t.id||"knowledge"},editableField:{path:"content.bodyHtml",label:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u0430\u0442\u044C\u0438"},hiddenInput:a,urlInput:i,fileName:n,preview:l,hint:o,error:r,setSource(){},onSelect(u){let s=String(u||"");s&&iS(e,t,`<img src="${du(s)}" alt="" loading="lazy">`)}}).catch(u=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0438: ${u.message}`))}function XI(e,t){let a=document.createElement("div");return a.className="knowledge-rich-toolbar",[["P","\u0410\u0431\u0437\u0430\u0446",()=>zn(e,t,"formatBlock","P")],["H2","\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A H2",()=>zn(e,t,"formatBlock","H2")],["H3","\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A H3",()=>zn(e,t,"formatBlock","H3")],["B","\u0416\u0438\u0440\u043D\u044B\u0439",()=>zn(e,t,"bold")],["I","\u041A\u0443\u0440\u0441\u0438\u0432",()=>zn(e,t,"italic")],["UL","\u0421\u043F\u0438\u0441\u043E\u043A",()=>zn(e,t,"insertUnorderedList")],["OL","\u041D\u0443\u043C\u0435\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A",()=>zn(e,t,"insertOrderedList")],["Link","\u0421\u0441\u044B\u043B\u043A\u0430",()=>{let l=window.prompt("\u0410\u0434\u0440\u0435\u0441 \u0441\u0441\u044B\u043B\u043A\u0438","/knowledge/");l&&zn(e,t,"createLink",l)}],["Button","\u041A\u043D\u043E\u043F\u043A\u0430",async()=>{vl();let l=await GI();if(!l)return;let o=l.targetInput,r=x2(o),i=r?r.target:o,u=r?.id||"";iS(e,t,`<p>${du(FI({name:l.name,link:l.link,target:i,blockId:u}))}</p>`)}],["Image","\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",()=>VI(e,t)]].forEach(([l,o,r])=>{let i=document.createElement("button");i.type="button",i.textContent=l,i.title=o,i.addEventListener("mousedown",u=>u.preventDefault()),i.addEventListener("click",r),a.append(i)}),a}function sS(){let e=Nd(),t=_I();if(c.empty.classList.add("hidden"),c.form.classList.add("hidden"),c.projectSettingsForm.classList.add("hidden"),c.knowledgeForm.classList.remove("hidden"),c.knowledgeForm.innerHTML="",!d.knowledge){c.knowledgeForm.innerHTML='<div class="empty-note">\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C \u0431\u0430\u0437\u0443 \u0437\u043D\u0430\u043D\u0438\u0439...</div>';return}if(!t){let v=document.createElement("section");v.className="content-panel",v.innerHTML='<h3>\u0414\u0435\u0440\u0435\u0432\u043E \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439 \u043F\u0443\u0441\u0442\u043E\u0435</h3><p class="group-desc">\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043F\u043B\u044E\u0441 \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u044B\u0439 \u0440\u0430\u0437\u0434\u0435\u043B.</p>',c.knowledgeForm.append(v);return}d.knowledge.settings||={},d.knowledge.seo||={},d.knowledge.seo.title||(d.knowledge.seo.title=d.knowledge.title||"Knowledge"),!d.knowledge.seo.description&&d.knowledge.settings.description&&(d.knowledge.seo.description=d.knowledge.settings.description);let a=e?"introHtml":"bodyHtml",l=(e?null:bl(t.id))?.parent?.title||d.knowledge.title||"\u0411\u0430\u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u0439";c.selectedRegion.textContent=e?`NODE.DC / ${kp()} / /knowledge/`:`NODE.DC / ${d.knowledge.title||"\u0411\u0430\u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u0439"} / ${l}`,c.selectedTitle.textContent=e?kp():t.title||"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B";let o=document.createElement("section"),r=document.createElement("div"),i=document.createElement("h3"),u=document.createElement("div"),s=document.createElement("div");o.className="content-panel",r.className="panel-head",u.className="section-kicker",u.textContent=e?"\u041A\u043E\u0440\u043D\u0435\u0432\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430":"\u0423\u0437\u0435\u043B \u0434\u0435\u0440\u0435\u0432\u0430",i.textContent=e?"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 /knowledge/":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430",r.append(Object.assign(document.createElement("div"),{innerHTML:`${u.outerHTML}<h3>${i.textContent}</h3>`})),s.className="group-grid",e?s.append(oa({node:t,path:"title",label:"H1 / \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0432 sidebar",wide:!1}),oa({node:t,path:"settings.navTitle",label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0432 \u0448\u0430\u043F\u043A\u0435",wide:!1}),oa({node:t,path:"settings.searchPlaceholder",label:"Placeholder \u043F\u043E\u0438\u0441\u043A\u0430",wide:!1}),oa({node:t,path:"settings.homeHref",label:"\u0421\u0441\u044B\u043B\u043A\u0430 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u0430",kind:"url",wide:!1}),oa({node:t,path:"settings.themeDefault",label:"\u0422\u0435\u043C\u0430 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",wide:!1}),vp({node:t,path:"settings.downloadEnabled",label:"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C Download",checkedDefault:!1})):s.append(oa({node:t,path:"title",label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",wide:!1}),oa({node:t,path:"slug",label:"Slug",wide:!1}),vp({node:t,path:"enabled",label:"\u041F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C"}),vp({node:t,path:"useContent",label:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043A\u0430\u043A \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443"})),o.append(r,s);let f=document.createElement("section"),m=document.createElement("div"),p=document.createElement("div");f.className="content-panel",m.className="panel-head",m.innerHTML=`<div><div class="section-kicker">SEO</div><h3>${e?"\u0421\u043D\u0438\u043F\u043F\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043B\u0430":"\u0421\u043D\u0438\u043F\u043F\u0435\u0442 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B"}</h3></div><span class="panel-note">\u041F\u043E\u043B\u044F \u043F\u043E\u043F\u0430\u0434\u0443\u0442 \u0432 title, description, Open Graph \u0438 sitemap.</span>`,p.className="group-grid",e?p.append(oa({node:t,path:"seo.title",label:"SEO title",wide:!0}),oa({node:t,path:"seo.description",label:"SEO description / \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",kind:"textarea",wide:!0})):(t.seo||={},p.append(oa({node:t,path:"seo.title",label:"SEO title",wide:!0}),oa({node:t,path:"seo.description",label:"SEO description",kind:"textarea",wide:!0}))),f.append(m,p);let h=document.createElement("section"),b=document.createElement("div"),S=document.createElement("div");if(h.className="content-panel knowledge-rich-panel",b.className="panel-head",b.innerHTML=`<div><div class="section-kicker">\u041A\u043E\u043D\u0442\u0435\u043D\u0442</div><h3>${e?"\u0422\u0435\u043A\u0441\u0442 \u0433\u043B\u0430\u0432\u043D\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B":"\u0422\u0435\u043A\u0441\u0442 \u0441\u0442\u0430\u0442\u044C\u0438"}</h3></div><span class="panel-note">H2/H3 \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u044E\u0442 \u043F\u0440\u0430\u0432\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u201C\u041D\u0430 \u044D\u0442\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435\u201D.</span>`,S.className="knowledge-rich-editor",S.contentEditable=e||t.useContent!==!1?"true":"false",S.dataset.knowledgeRichtext="true",S.dataset.knowledgeBodyPath=a,S.innerHTML=Ie(t,a)||"<p></p>",S.addEventListener("focusout",()=>vl()),S.addEventListener("keyup",()=>vl()),S.addEventListener("mouseup",()=>vl()),S.addEventListener("input",()=>th(t,S)),h.append(b,XI(S,t),S),!e&&t.useContent===!1){let v=document.createElement("p");v.className="group-desc",v.textContent="\u041A\u043E\u043D\u0442\u0435\u043D\u0442 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0441\u044F \u0432 \u043C\u043E\u0434\u0435\u043B\u0438, \u043D\u043E \u043F\u0443\u0431\u043B\u0438\u0447\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0443\u0437\u043B\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F, \u043F\u043E\u043A\u0430 \u0444\u043B\u0430\u0433 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D.",h.append(v)}let x=document.createElement("details");x.className="json-details knowledge-json",x.innerHTML=`<summary>${e?"JSON \u0432\u0441\u0435\u0439 \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439":"JSON \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430"}</summary>`;let g=document.createElement("label"),y=document.createElement("textarea");g.className="json-field",y.value=JSON.stringify(t,null,2),y.addEventListener("blur",()=>{try{let v=JSON.parse(y.value);if(e)d.knowledge=v,d.knowledgeSelectedId=mu;else{let L=bl(t.id);if(!L)return;L.siblings[L.index]=v,d.knowledgeSelectedId=v.id||t.id}Po(),be(e?"JSON \u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439 \u043F\u0440\u0438\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.":"JSON \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430 \u043F\u0440\u0438\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.")}catch(v){D(`\u041E\u0448\u0438\u0431\u043A\u0430 JSON ${e?"\u0431\u0430\u0437\u044B \u0437\u043D\u0430\u043D\u0438\u0439":"\u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430"}: ${v.message}`)}}),g.innerHTML="<span>\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435</span>",g.append(y),x.append(g),c.knowledgeForm.append(o,f,h,x)}function Po(){Mo(),Jp(),Rd(),sS()}async function nh(){if(!ja()){Ed();return}let e=await Ge("/api/knowledge");d.knowledge=await Qt(e,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0437\u043D\u0430\u043D\u0438\u0439"),d.knowledgeSelectedId=Ro().knowledgeSelectedId||d.knowledgeSelectedId||null,Jp(),bt(),Bp("knowledge"),D("\u041C\u043E\u0434\u0435\u043B\u044C knowledge.json \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u0430.")}async function KI(e){let t=mL(),a=[];for(let[l,o]of Bo){l==="home"&&v2();let r=l==="home"?d.page:d.knowledge;a.push({page:l,revision:o,body:JSON.stringify(r)})}let n=Vb.then(()=>YI(a,t,e));return Vb=n.catch(()=>{}),n.then(l=>l&&zp(l.id))}async function YI(e,t,a){let n=[];for(let{page:o,revision:r,body:i}of e){if((Gb.get(o)||0)>=r)continue;let s=await Ge(o==="home"?"/api/page/home":"/api/knowledge",{method:"PUT",headers:{"content-type":"application/json"},body:i}),f=await Qt(s,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F");if(!f.ok)throw new Error(f.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F");Gb.set(o,r),Bo.get(o)===r&&Bp(o),n.push(o)}cu("\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043E");let l=d.projectConfig?.deploy;if(l?.enabled&&(a||l.deployOnRender))return!n.length&&wd()?d.publishJob:gL();for(let o of n.length?n:[t]){let r=await Ge(`/api/render/${o}`,{method:"POST"}),i=await Qt(r,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440");if(!i.ok)throw new Error(i.error||"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440");if(i.publishJob?.id)return i.publishJob}cu("\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043E","\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B, \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043E\u0431\u043D\u043E\u0432\u043B\u0451\u043D.")}function dS(e){KI(e).catch(t=>{cu("\u041E\u0448\u0438\u0431\u043A\u0430",t.message)})}async function cS(){let e=await pu();if(d.projectConfig=e,Bo.has("knowledge")||(d.knowledge=null),!ja()){d.page=null,d.templates=[],d.selected=null,Ed(),D("\u0421\u0430\u0439\u0442 \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D \u0432 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 workspace CMS.");return}let[t,a]=await Promise.all([Ge("/api/page/home"),Ge("/api/block-templates/home")]);d.page=await Qt(t,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C home.json"),d.templates=await Qt(a,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u044B \u0431\u043B\u043E\u043A\u043E\u0432"),w2(),I2(),c2(),d.selected={kind:"static"},bt(),Bp("home"),D("\u041C\u043E\u0434\u0435\u043B\u044C home.json \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u0430."),d.mode==="knowledge"&&!d.knowledge&&await nh()}function fS(e){if(et())return;let t=Ll(),a=d.selected?.blockIndex;if(!t||a==null)return;let n=a+e;if(n<0||n>=t.blocks.length)return;let[l]=t.blocks.splice(a,1);t.blocks.splice(n,0,l),d.selected.blockIndex=n,bt(),be("\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u0431\u043B\u043E\u043A\u043E\u0432 \u0438\u0437\u043C\u0435\u043D\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB.")}function $I(){if(et())return;let e=Ll(),t=Ve();if(!e||!t)return;let a=vt(t);a.id=Hp(t.id),a.adminLabel=`${t.adminLabel||t.id} \u2014 \u043A\u043E\u043F\u0438\u044F`,a.anchor&&(a.anchor=Up(a.anchor,a)),a.scopeIds=!0,e.blocks.splice(d.selected.blockIndex+1,0,a),d.selected.blockIndex+=1,bt(),be(`\u0411\u043B\u043E\u043A \xAB${a.adminLabel||a.id}\xBB \u043F\u0440\u043E\u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.`)}function ZI(){if(et())return;let e=Ve();e&&(d.clipboard=vt(e),D(`\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D \u0431\u043B\u043E\u043A: ${e.adminLabel||e.id}`))}function QI(){if(et())return;let e=Ll();if(!e||!d.clipboard)return;let t=vt(d.clipboard);t.id=Hp(t.id),t.adminLabel=`${t.adminLabel||t.id} \u2014 \u0432\u0441\u0442\u0430\u0432\u043A\u0430`,t.anchor&&(t.anchor=Up(t.anchor,t)),t.scopeIds=!0,e.blocks.splice(d.selected.blockIndex+1,0,t),d.selected.blockIndex+=1,bt(),be(`\u0411\u043B\u043E\u043A \xAB${t.adminLabel||t.id}\xBB \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E.`)}async function WI(){if(et())return;let e=Ll();!e||d.selected.blockIndex==null||!await zo()||(e.blocks.splice(d.selected.blockIndex,1),d.selected.blockIndex=Math.min(d.selected.blockIndex,e.blocks.length-1),d.selected.blockIndex<0&&(d.selected={kind:"static"}),bt(),be("\u0411\u043B\u043E\u043A \u0443\u0434\u0430\u043B\u0451\u043D \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \xAB\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\xBB."))}function JI(){d.selected={kind:"project-settings"},bt()}var oL,No,Ld,iL,mu,d,Dp,Tp,V4,Np,X4,K4,c,je,Pb,sL,Rp,Y4,dL,cL,qn,Fb,jb,Bo,Gb,$4,fL,Vb,gd,y2,mS=SS(()=>{oL=window.location.pathname.match(/^\/s\/[a-z][a-z0-9-]*/)?.[0]||"",No=e=>`${oL}/${String(e).replace(/^\.?\//,"")}`;Ld=[];document.querySelector("#site-selector").addEventListener("change",e=>{rL()?window.location.assign(`/s/${e.target.value}/`):e.target.value=d.projectConfig.id});document.querySelectorAll("[data-close-dialog]").forEach(e=>e.addEventListener("click",()=>e.closest("dialog").close()));document.querySelector("#new-site-form").addEventListener("submit",async e=>{e.preventDefault();let t=e.submitter;t.disabled=!0;try{if(!rL())return;let a=Object.fromEntries(new FormData(e.target)),n=await fetch("/api/sites",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(a)}),l=await Qt(n,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0441\u0430\u0439\u0442");window.location.assign(`/s/${l.project.id}/`)}catch(a){document.querySelector("#new-site-error").textContent=a.message}finally{t.disabled=!1}});document.querySelector("#transfer-site-form").addEventListener("submit",async e=>{e.preventDefault();let t=e.submitter;t.disabled=!0;try{if(d.projectConfigDirty)throw new Error("\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430");let a=await fetch(`/api/sites/${d.projectConfig.id}/deploy-transfer`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({fromSiteId:document.querySelector("#transfer-site-source").value})});await Qt(a,"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u043D\u0435\u0441\u0442\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"),await pu(),Sl(),document.querySelector("#transfer-site-dialog").close(),D("\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0435\u0440\u0435\u043D\u0435\u0441\u0435\u043D\u044B. \u041E\u0431\u0430 \u0441\u0430\u0439\u0442\u0430 \u043F\u043E\u043A\u0430 \u043D\u0435 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u044E\u0442\u0441\u044F. \u0412\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0434\u0435\u043F\u043B\u043E\u0439 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438.")}catch(a){document.querySelector("#transfer-site-error").textContent=a.message}finally{t.disabled=!1}});iL=oL+"nodedc-admin-layout-v1",mu="__knowledge-root__";d={mode:G4(),page:null,projectConfig:null,projectConfigDirty:!1,keepSiteArchiveBackup:!0,publishJob:null,backupDownloading:!1,publishResumeAttempted:!1,knowledge:null,knowledgeSelectedId:null,knowledgeSavedSelection:null,knowledgeOpenIds:new Set(Ro().knowledgeOpenIds||[]),templates:[],selected:null,clipboard:null,drag:null,dragTarget:null,dirty:!1,filePickerActive:!1,mediaUploadActive:!1,filePickerResetTimer:null,deleteConfirmResolve:null,mediaActionResolve:null,knowledgeButtonResolve:null,collectionOpenState:j4(),mediaLibrary:{columns:[],context:null,contextMenu:null,trashMode:!1,previousPath:"",selectedPath:"",selectedEntry:null,selectedUrl:"",root:"",kind:"all",query:"",loaded:!1,dragEntryPath:"",lastPath:uL()}},Dp="sections",Tp="\u0421\u0435\u043A\u0446\u0438\u0438",V4={title:"NODE.DC - \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u043E\u0432, \u0434\u0430\u043D\u043D\u044B\u0445 \u0438 \u0418\u0418-\u0430\u0433\u0435\u043D\u0442\u043E\u0432",description:"NODE.DC \u043E\u0431\u044A\u0435\u0434\u0438\u043D\u044F\u0435\u0442 Hub, Engine, Ops, \u043F\u0440\u0438\u043A\u043B\u0430\u0434\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438 \u0438 \u0441\u043A\u0432\u043E\u0437\u043D\u043E\u0433\u043E \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442\u0430 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447, workflow, \u0434\u0430\u043D\u043D\u044B\u0445, \u0440\u043E\u043B\u0435\u0439, \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0438 \u0438\u043D\u0436\u0435\u043D\u0435\u0440\u043D\u044B\u0445 \u043C\u043E\u0434\u0435\u043B\u0435\u0439.",canonicalUrl:"https://nodedc.dctouch.ru/",robots:"index,follow,max-image-preview:large",siteName:"NODE.DC",locale:"ru_RU",ogImage:"https://nodedc.dctouch.ru/assets/site/images/69b6acdde3123ef078e2b7f3_og-img.jpg",imageAlt:"NODE.DC - \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u043E\u0432, \u0434\u0430\u043D\u043D\u044B\u0445 \u0438 \u0418\u0418-\u0430\u0433\u0435\u043D\u0442\u043E\u0432",organizationName:"DCTOUCH",organizationUrl:"https://dctouch.ru/",applicationCategory:"BusinessApplication"},Np={targetCluster:"",searchIntent:"",primaryQuery:"",secondaryQueries:"",title:"",description:"",coverageNotes:"",indexHint:"section"},X4=[{path:"seo.title",label:"Title \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B",kind:"text",group:"\u0421\u043D\u0438\u043F\u043F\u0435\u0442",min:35,max:70},{path:"seo.description",label:"Description \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B",kind:"textarea",group:"\u0421\u043D\u0438\u043F\u043F\u0435\u0442",min:110,max:170},{path:"seo.canonicalUrl",label:"Canonical URL",kind:"url",group:"\u0418\u043D\u0434\u0435\u043A\u0441\u0430\u0446\u0438\u044F"},{path:"seo.robots",label:"Robots meta",kind:"select",group:"\u0418\u043D\u0434\u0435\u043A\u0441\u0430\u0446\u0438\u044F",options:["index,follow,max-image-preview:large","noindex,nofollow","index,follow"]},{path:"seo.siteName",label:"Site name",kind:"text",group:"Open Graph"},{path:"seo.locale",label:"Locale",kind:"text",group:"Open Graph"},{path:"seo.ogImage",label:"OG image",kind:"url",mediaKind:"image",group:"Open Graph"},{path:"seo.imageAlt",label:"OG image alt",kind:"textarea",group:"Open Graph",min:20,max:120},{path:"seo.organizationName",label:"Organization",kind:"text",group:"Schema.org"},{path:"seo.organizationUrl",label:"Organization URL",kind:"url",group:"Schema.org"},{path:"seo.applicationCategory",label:"Application category",kind:"text",group:"Schema.org"}],K4=[{path:"seo.targetCluster",label:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440",kind:"text",group:"\u0421\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430"},{path:"seo.searchIntent",label:"\u0418\u043D\u0442\u0435\u043D\u0442",kind:"textarea",group:"\u0421\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430",min:20,max:220},{path:"seo.primaryQuery",label:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0437\u0430\u043F\u0440\u043E\u0441",kind:"text",group:"\u0421\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430"},{path:"seo.secondaryQueries",label:"\u0421\u043C\u0435\u0436\u043D\u044B\u0435 \u0437\u0430\u043F\u0440\u043E\u0441\u044B",kind:"textarea",group:"\u0421\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430"},{path:"seo.title",label:"SEO-\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0431\u043B\u043E\u043A\u0430",kind:"text",group:"\u0421\u043D\u0438\u043F\u043F\u0435\u0442 \u0431\u043B\u043E\u043A\u0430",min:35,max:80},{path:"seo.description",label:"SEO-\u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0431\u043B\u043E\u043A\u0430",kind:"textarea",group:"\u0421\u043D\u0438\u043F\u043F\u0435\u0442 \u0431\u043B\u043E\u043A\u0430",min:90,max:180},{path:"seo.indexHint",label:"\u0420\u043E\u043B\u044C \u0432 \u0438\u043D\u0434\u0435\u043A\u0441\u0430\u0446\u0438\u0438",kind:"select",group:"\u0418\u043D\u0434\u0435\u043A\u0441\u0430\u0446\u0438\u044F",options:["section","supporting","conversion","noindex"]},{path:"seo.coverageNotes",label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438 \u043F\u043E \u043E\u0445\u0432\u0430\u0442\u0443",kind:"textarea",group:"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u043A\u0430",min:20,max:500}],c={modeContent:document.querySelector("#admin-mode-content"),modeFiles:document.querySelector("#admin-mode-files"),modeSeo:document.querySelector("#admin-mode-seo"),modeKnowledge:document.querySelector("#admin-mode-knowledge"),modeNav:document.querySelector(".nodedc-expanded-nav-group"),sidebarTitle:document.querySelector("#sidebar-title"),workspaceName:document.querySelector("#workspace-name"),workspaceRole:document.querySelector("#workspace-role"),editorHeading:document.querySelector("#editor-heading"),panelKicker:document.querySelector("#content-panel-kicker"),panelTitle:document.querySelector("#content-panel-title"),panelNote:document.querySelector("#content-panel-note"),regions:document.querySelector("#regions"),addProject:document.querySelector("#add-project"),projectSettings:document.querySelector("#project-settings"),addBlock:document.querySelector("#add-block"),reload:document.querySelector("#reload"),save:document.querySelector("#save"),render:document.querySelector("#render"),publish:document.querySelector("#publish"),downloadBackup:document.querySelector("#download-backup"),dirtyState:document.querySelector("#dirty-state"),status:document.querySelector("#status"),empty:document.querySelector("#empty-state"),form:document.querySelector("#block-form"),knowledgeForm:document.querySelector("#knowledge-form"),projectSettingsForm:document.querySelector("#project-settings-form"),selectedRegion:document.querySelector("#selected-region"),selectedTitle:document.querySelector("#selected-title"),id:document.querySelector("#block-id"),label:document.querySelector("#block-label"),template:document.querySelector("#block-template"),anchor:document.querySelector("#block-anchor"),targetOptions:document.querySelector("#block-target-options"),enabled:document.querySelector("#block-enabled"),contentFields:document.querySelector("#content-fields"),json:document.querySelector("#block-json"),moveUp:document.querySelector("#move-up"),moveDown:document.querySelector("#move-down"),duplicate:document.querySelector("#duplicate"),copy:document.querySelector("#copy"),pasteAfter:document.querySelector("#paste-after"),deleteBlock:document.querySelector("#delete-block"),templateModal:document.querySelector("#template-modal"),templateList:document.querySelector("#template-list"),templateModalClose:document.querySelector("#template-modal-close"),templateModalCancel:document.querySelector("#template-modal-cancel"),deleteModal:document.querySelector("#delete-modal"),deleteModalTitle:document.querySelector("#delete-modal-title"),deleteModalBody:document.querySelector("#delete-modal-body"),deleteModalCancel:document.querySelector("#delete-modal-cancel"),deleteModalConfirm:document.querySelector("#delete-modal-confirm"),mediaModal:document.querySelector("#media-modal"),mediaModalTitle:document.querySelector("#media-modal-title"),mediaModalSubtitle:document.querySelector("#media-modal-subtitle"),mediaSiteSize:document.querySelector("#media-site-size"),mediaModalClose:document.querySelector("#media-modal-close"),mediaModalCancel:document.querySelector("#media-modal-cancel"),mediaTrashToggle:document.querySelector("#media-trash-toggle"),mediaSearch:document.querySelector("#media-search"),mediaKindFilters:document.querySelector("#media-kind-filters"),mediaRootFilters:document.querySelector("#media-root-filters"),mediaUpload:document.querySelector("#media-upload"),mediaRefresh:document.querySelector("#media-refresh"),mediaDropZone:document.querySelector("#media-drop-zone"),mediaBreadcrumbs:document.querySelector("#media-breadcrumbs"),mediaList:document.querySelector("#media-list"),mediaEmpty:document.querySelector("#media-empty"),mediaPreview:document.querySelector("#media-preview"),mediaPreviewName:document.querySelector("#media-preview-name"),mediaPreviewPath:document.querySelector("#media-preview-path"),mediaPreviewMeta:document.querySelector("#media-preview-meta"),mediaPreviewUsage:document.querySelector("#media-preview-usage"),mediaSelect:document.querySelector("#media-select"),mediaDownload:document.querySelector("#media-download"),mediaDelete:document.querySelector("#media-delete"),mediaContextMenu:document.querySelector("#media-context-menu"),mediaActionModal:document.querySelector("#media-action-modal"),mediaActionTitle:document.querySelector("#media-action-title"),mediaActionBody:document.querySelector("#media-action-body"),mediaActionLabel:document.querySelector("#media-action-label"),mediaActionInput:document.querySelector("#media-action-input"),mediaActionCancel:document.querySelector("#media-action-cancel"),mediaActionConfirm:document.querySelector("#media-action-confirm"),knowledgeButtonModal:document.querySelector("#knowledge-button-modal"),knowledgeButtonClose:document.querySelector("#knowledge-button-close"),knowledgeButtonName:document.querySelector("#knowledge-button-name"),knowledgeButtonLink:document.querySelector("#knowledge-button-link"),knowledgeButtonTarget:document.querySelector("#knowledge-button-target"),knowledgeButtonTargetOptions:document.querySelector("#knowledge-button-target-options"),knowledgeButtonError:document.querySelector("#knowledge-button-error"),knowledgeButtonCancel:document.querySelector("#knowledge-button-cancel"),knowledgeButtonConfirm:document.querySelector("#knowledge-button-confirm")},je={id:"static-elements",type:"staticElements",adminLabel:"\u0421\u0442\u0430\u0442\u0438\u0447\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",enabled:!0,content:{navigation:{logoSrc:"./assets/site/images/69ad964d951f9d17cc5a919e_logo-app.svg",logoAlt:"\u0433\u043B\u0430\u0432\u043D\u0430\u044F",brandLabel:"NODE.DC",links:[{enabled:!0,label:"\u041E \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0435",href:"",target:"index.html#platform-composition",linkMode:"target",linkTarget:""},{enabled:!0,label:"\u041B\u0438\u0441\u0442 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F",href:"",target:"index.html#hero",linkMode:"target",linkTarget:""},{enabled:!0,label:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F",href:"https://nodedc.dctouch.ru/",target:"",linkMode:"href",linkTarget:"_blank"},{enabled:!0,label:"\u0422\u0430\u0440\u0438\u0444\u044B",href:"",target:"index.html#pricing-intro",linkMode:"target",linkTarget:""}]},notifications:[{enabled:!0,eyebrowHtml:'<span class="darker-70">\u0414\u0410\u041B\u0415\u0415</span> \u2014 \u0418\u042E\u041B\u042C 2026',eyebrowClass:"red-txt gray",title:"\u041E\u0442\u043A\u0440\u044B\u0442\u0430\u044F \u0431\u0435\u0442\u0430",body:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u043C \u0434\u043E\u0441\u0442\u0443\u043F \u0432\u0441\u0435\u043C. \u0411\u0443\u0434\u0435\u043C \u0441\u043E\u0431\u0438\u0440\u0430\u0442\u044C \u0438 \u043E\u0442\u043B\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u043C\u0435\u0441\u0442\u0435."},{enabled:!0,eyebrowHtml:'<span class="darker-70">\u0414\u0410\u041B\u0415\u0415</span> \u2014<span class="darker-70"> </span>\u0418\u042E\u041B\u042C 2026',eyebrowClass:"red-txt gray",title:"\u0410\u043B\u044C\u0444\u0430 \u0434\u043B\u044F Founder-\u0434\u043E\u0441\u0442\u0443\u043F\u0430",body:"\u041D\u0430 \u0432\u0442\u043E\u0440\u043E\u0439 \u0444\u0430\u0437\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0435\u0442\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u0430 \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043F\u043E\u0434\u043F\u0438\u0441\u0447\u0438\u043A\u043E\u0432 Founder-\u0442\u0430\u0440\u0438\u0444\u0430."},{enabled:!0,eyebrowHtml:"\u0421\u0415\u0419\u0427\u0410\u0421",eyebrowClass:"red-txt",title:"\u0418\u043D\u0432\u0430\u0439\u0442\u044B \u0432 \u0437\u0430\u043A\u0440\u044B\u0442\u0443\u044E \u0431\u0435\u0442\u0443 \u0443\u0436\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B.",body:"\u0421\u0435\u0439\u0447\u0430\u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043C \u0431\u0430\u0437\u043E\u0432\u0443\u044E \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0438 \u0418\u0418-\u0438\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044E. "}],dock:{items:[{enabled:!0,title:"NODE.DC",href:"javascript:void(0)",linkTarget:"",targetId:"app-data",iconSrc:"./assets/site/images/69ad964d951f9d17cc5a919e_logo-app.svg",iconAlt:"\u0418\u043A\u043E\u043D\u043A\u0430 NODE.DC",className:"dock-icon nodedc-app",iconClass:"logo",dividerBefore:!1},{enabled:!0,title:"\u041A\u043E\u0440\u0437\u0438\u043D\u0430",href:"javascript:void(0)",linkTarget:"",targetId:"",iconSrc:"./assets/site/images/69a9ae818a76c773dc3cf7bc_trash.avif",iconAlt:"\u0411\u0435\u043B\u0430\u044F \u0438\u043A\u043E\u043D\u043A\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u044B.",className:"dock-icon no-bg",iconClass:"dock-app-img trash",dividerBefore:!0}],demoFileLabel:"\u0434\u0435\u043C\u043E-\u0432\u0438\u0434\u0435\u043E.txt"},assets:{webglModelSrc:"./assets/custom/icon.glb",logoPng:"./assets/uploads/images/Logo/dclogo_white_alpha-mqus5if2.png",logoPngAlt:"\u041B\u043E\u0433\u043E\u0442\u0438\u043F NODE.DC",appIconSrc:"./assets/site/images/69ad964d951f9d17cc5a919e_logo-app.svg",appIconAlt:"\u0418\u043A\u043E\u043D\u043A\u0430 NODE.DC",appWordmarkSrc:"./assets/site/images/69ad96a28b06b7552a339137_logtype.svg?v=node-dc",appWordmarkAlt:"\u041B\u043E\u0433\u043E\u0442\u0438\u043F NODE.DC",faviconSvg:"./assets/uploads/favicon/icon-adaptive.svg",faviconIco:"./assets/uploads/favicon/favicon.ico",faviconAppleTouchIcon:"./assets/uploads/favicon/apple-touch-icon.png",faviconPng192:"./assets/uploads/favicon/icon-192.png",faviconPng512:"./assets/uploads/favicon/icon-512.png",faviconManifest:"./assets/uploads/favicon/manifest.webmanifest.json"}},editableFields:[Q("content.navigation.logoSrc","\u041B\u043E\u0433\u043E\u0442\u0438\u043F \u0432 \u0448\u0430\u043F\u043A\u0435","media","attr","\u0428\u0430\u043F\u043A\u0430: \u043B\u043E\u0433\u043E\u0442\u0438\u043F"),Q("content.navigation.logoAlt","\u041B\u043E\u0433\u043E\u0442\u0438\u043F \u0432 \u0448\u0430\u043F\u043A\u0435: alt","text","text","\u0428\u0430\u043F\u043A\u0430: \u043B\u043E\u0433\u043E\u0442\u0438\u043F"),Q("content.navigation.brandLabel","\u0411\u0440\u0435\u043D\u0434 \u0432 \u0448\u0430\u043F\u043A\u0435","text","text","\u0428\u0430\u043F\u043A\u0430: \u043B\u043E\u0433\u043E\u0442\u0438\u043F"),yp("content.navigation.links","\u041A\u043D\u043E\u043F\u043A\u0438 \u0448\u0430\u043F\u043A\u0438","\u0428\u0430\u043F\u043A\u0430: \u0441\u0441\u044B\u043B\u043A\u0438",{enabled:!0,label:"\u041D\u043E\u0432\u0430\u044F \u0441\u0441\u044B\u043B\u043A\u0430",href:"",target:"index.html#",linkMode:"target",linkTarget:""},[Q("label","\u0422\u0435\u043A\u0441\u0442 \u043A\u043D\u043E\u043F\u043A\u0438","text","text","\u0428\u0430\u043F\u043A\u0430: \u0441\u0441\u044B\u043B\u043A\u0438"),Q("linkMode","\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0441\u044B\u043B\u043A\u0438","link-mode","attr","\u0428\u0430\u043F\u043A\u0430: \u0441\u0441\u044B\u043B\u043A\u0438")]),yp("content.notifications","\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F","\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F",{enabled:!0,eyebrowHtml:"\u0421\u0415\u0419\u0427\u0410\u0421",eyebrowClass:"red-txt gray",title:"\u041D\u043E\u0432\u043E\u0435 \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435",body:"\u0422\u0435\u043A\u0441\u0442 \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F."},[Q("eyebrowHtml","\u0414\u0430\u0442\u0430 / \u0441\u0442\u0430\u0442\u0443\u0441","html","html","\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F"),Q("eyebrowClass","CSS-\u043A\u043B\u0430\u0441\u0441 \u0441\u0442\u0430\u0442\u0443\u0441\u0430","text","attr","\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F"),Q("title","\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","text","text","\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F"),Q("body","\u0422\u0435\u043A\u0441\u0442","textarea","text","\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F")]),yp("content.dock.items","\u0418\u043A\u043E\u043D\u043A\u0438 dock-\u043F\u0430\u043D\u0435\u043B\u0438","Dock",{enabled:!0,title:"\u041D\u043E\u0432\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435",href:"javascript:void(0)",linkTarget:"",targetId:"",iconSrc:"",iconAlt:"",className:"dock-icon nodedc-app",iconClass:"",dividerBefore:!1},[Q("enabled","\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","boolean","boolean","Dock"),Q("title","\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435","text","text","Dock"),Q("href","\u0421\u0441\u044B\u043B\u043A\u0430 / \u0430\u0434\u0440\u0435\u0441","url","attr","Dock"),Q("linkTarget","Target \u0441\u0441\u044B\u043B\u043A\u0438","text","attr","Dock"),Q("targetId","ID \u043E\u043A\u043D\u0430 / \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","text","attr","Dock"),Q("iconSrc","\u0418\u043A\u043E\u043D\u043A\u0430","media","attr","Dock"),Q("iconAlt","Alt \u0438\u043A\u043E\u043D\u043A\u0438","text","text","Dock"),Q("dividerBefore","\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C \u0441\u043B\u0435\u0432\u0430","boolean","boolean","Dock")]),Q("content.dock.demoFileLabel","Dock: \u043F\u043E\u0434\u043F\u0438\u0441\u044C \u0434\u0435\u043C\u043E-\u0444\u0430\u0439\u043B\u0430","text","text","Dock"),Q("content.assets.webglModelSrc","WebGL-\u043C\u043E\u0434\u0435\u043B\u044C \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u0430","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.logoPng","PNG-\u043B\u043E\u0433\u043E\u0442\u0438\u043F","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.logoPngAlt","PNG-\u043B\u043E\u0433\u043E\u0442\u0438\u043F: alt","text","text","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.appIconSrc","\u0418\u043A\u043E\u043D\u043A\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.appIconAlt","\u0418\u043A\u043E\u043D\u043A\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F: alt","text","text","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.appWordmarkSrc","Wordmark \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.appWordmarkAlt","Wordmark \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F: alt","text","text","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.faviconSvg","Favicon SVG","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.faviconIco","Favicon ICO","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.faviconAppleTouchIcon","Favicon Apple 180","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.faviconPng192","Favicon PNG 192","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.faviconPng512","Favicon PNG 512","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B"),Q("content.assets.faviconManifest","Favicon manifest","media","attr","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B")]},Pb={\u041A\u0430\u0440\u0443\u0441\u0435\u043B\u044C:"\u041E\u0431\u0449\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0438 \u043F\u043E\u0440\u044F\u0434\u043E\u043A \u0441\u043B\u0430\u0439\u0434\u043E\u0432.","\u0428\u0430\u043F\u043A\u0430: \u043B\u043E\u0433\u043E\u0442\u0438\u043F":"\u0421\u0442\u0430\u0442\u0438\u0447\u043D\u044B\u0439 \u0437\u043D\u0430\u043A \u0432\u0435\u0440\u0445\u043D\u0435\u0439 mac-\u043F\u0430\u043D\u0435\u043B\u0438: \u0444\u0430\u0439\u043B \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u0430, alt \u0438 \u0431\u0440\u0435\u043D\u0434\u043E\u0432\u0430\u044F \u043F\u043E\u0434\u043F\u0438\u0441\u044C.","\u0428\u0430\u043F\u043A\u0430: \u0441\u0441\u044B\u043B\u043A\u0438":"\u041F\u0443\u043D\u043A\u0442\u044B \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u0432\u0435\u0440\u0445\u043D\u0435\u0439 mac-\u043F\u0430\u043D\u0435\u043B\u0438. \u041A\u0430\u0436\u0434\u044B\u0439 \u043F\u0443\u043D\u043A\u0442 \u043C\u043E\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C, \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044C.",\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F:"\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0439 \u0441\u043F\u0440\u0430\u0432\u0430 \u0441\u0432\u0435\u0440\u0445\u0443. \u041F\u043E\u0440\u044F\u0434\u043E\u043A \u0432 \u0430\u0434\u043C\u0438\u043D\u043A\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043F\u043E\u0440\u044F\u0434\u043A\u0443 \u043D\u0430 \u0441\u0430\u0439\u0442\u0435.",Dock:"\u041D\u0438\u0436\u043D\u044F\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u0430\u044F \u043F\u0430\u043D\u0435\u043B\u044C: \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F, \u043A\u043E\u0440\u0437\u0438\u043D\u0430, \u0441\u0441\u044B\u043B\u043A\u0438 \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0438 \u0444\u0430\u0439\u043B\u043E\u0432.","\u041C\u043E\u0434\u0435\u043B\u044C \u0438 \u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B":"\u0411\u0430\u0437\u043E\u0432\u044B\u0435 \u0430\u0441\u0441\u0435\u0442\u044B \u0441\u0442\u0430\u0442\u0438\u0447\u043D\u043E\u0433\u043E \u0441\u043B\u043E\u044F: GLB-\u043C\u043E\u0434\u0435\u043B\u044C, PNG/SVG-\u043B\u043E\u0433\u043E\u0442\u0438\u043F\u044B, favicon-\u043A\u043E\u043C\u043F\u043B\u0435\u043A\u0442 \u0438 alt-\u0442\u0435\u043A\u0441\u0442\u044B.",\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A:"\u0413\u043B\u0430\u0432\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0438 \u0432\u0432\u043E\u0434\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u0441\u0435\u043A\u0446\u0438\u0438.","\u0412\u0435\u0440\u0445\u043D\u0438\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A":"\u0412\u0435\u0440\u0445\u043D\u044F\u044F \u043F\u0430\u0440\u0430: \u0434\u043B\u0438\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442 \u0438 \u043A\u0440\u0443\u043F\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043D\u0430\u0434 \u043C\u0435\u0434\u0438\u0430\u0441\u043B\u0430\u0439\u0434\u0435\u0440\u043E\u043C.","\u041D\u0438\u0436\u043D\u0438\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A":"\u041D\u0438\u0436\u043D\u044F\u044F \u0437\u0435\u0440\u043A\u0430\u043B\u044C\u043D\u0430\u044F \u043F\u0430\u0440\u0430: \u043A\u0440\u0443\u043F\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0438 \u0434\u043B\u0438\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442 \u043F\u043E\u0434 \u043C\u0435\u0434\u0438\u0430\u0441\u043B\u0430\u0439\u0434\u0435\u0440\u043E\u043C.","\u0422\u0435\u0437\u0438\u0441\u044B \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u044D\u043A\u0440\u0430\u043D\u0430":"\u0427\u0435\u0442\u044B\u0440\u0435 \u0441\u043C\u044B\u0441\u043B\u043E\u0432\u044B\u0445 \u0442\u0435\u0437\u0438\u0441\u0430 \u0432\u043E\u043A\u0440\u0443\u0433 \u0444\u043E\u0440\u043C\u044B \u0440\u0430\u043D\u043D\u0435\u0433\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u0430.","\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430":"\u0415\u0434\u0438\u043D\u044B\u0439 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442 \u043E\u043A\u043D\u0430 \u0437\u0430\u044F\u0432\u043A\u0438: \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0437\u0434\u0435\u0441\u044C \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0435\u0442\u0441\u044F \u0432 \u043D\u0438\u0436\u043D\u0435\u043C \u0431\u043B\u043E\u043A\u0435 \u0437\u0430\u043F\u0440\u043E\u0441\u0430 DEMO.",\u0424\u043E\u0440\u043C\u0430:"\u041F\u043B\u0435\u0439\u0441\u0445\u043E\u043B\u0434\u0435\u0440\u044B, \u043A\u043D\u043E\u043F\u043A\u0438, success/failure \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u0444\u043E\u0440\u043C\u044B.","\u042E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0431\u043B\u043E\u043A":"\u041F\u043E\u043B\u0438\u0442\u0438\u043A\u0438, \u043F\u0440\u0430\u0432\u0430 \u0438 \u043D\u0438\u0436\u043D\u0438\u0439 \u0442\u0435\u043A\u0441\u0442 \u0444\u043E\u0440\u043C\u044B.","\u0412\u0438\u0434\u0435\u043E-\u043E\u043A\u043D\u043E":"\u041E\u043A\u043D\u043E \u0434\u0435\u043C\u043E-\u0432\u0438\u0434\u0435\u043E \u0438 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0434\u0438\u0430-\u0444\u0430\u0439\u043B.",\u041F\u0443\u043D\u043A\u0442\u044B:"\u0422\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0435 \u043F\u0443\u043D\u043A\u0442\u044B \u0432\u043D\u0443\u0442\u0440\u0438 \u0441\u0435\u043A\u0446\u0438\u0438.",\u0421\u043B\u0430\u0439\u0434\u0435\u0440:"\u0412\u0438\u0434\u0435\u043E-\u043F\u0440\u0435\u0432\u044C\u044E \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0438 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u0432\u043D\u0443\u0442\u0440\u0438 \u0433\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043B\u0430\u0439\u0434\u0435\u0440\u0430.",\u0421\u043A\u0440\u043E\u043B\u043B:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0439 \u043F\u0440\u043E\u043A\u0440\u0443\u0442\u043A\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u0431\u043B\u043E\u043A\u0430: \u043C\u0435\u043D\u044C\u0448\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u2014 \u0441\u043F\u043E\u043A\u043E\u0439\u043D\u0435\u0435 \u0448\u0430\u0433, \u0431\u043E\u043B\u044C\u0448\u0435 \u2014 \u0431\u044B\u0441\u0442\u0440\u0435\u0435.","\u041E\u0434\u0438\u043D \u043A\u043B\u0438\u043A":"\u041F\u043E\u0434\u0431\u043B\u043E\u043A \u043F\u0440\u043E \u0431\u044B\u0441\u0442\u0440\u043E\u0435 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043E\u0432.",MCP:"\u041F\u043E\u0434\u0431\u043B\u043E\u043A \u043F\u0440\u043E MCP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 NODE.DC.","\u041E\u043A\u043D\u043E FAQ":"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043E\u043A\u043D\u0430 FAQ \u0438 \u0441\u043B\u0443\u0436\u0435\u0431\u043D\u044B\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0438 mail-\u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u0435\u043B\u044C:"\u041F\u0440\u043E\u0444\u0438\u043B\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0432 FAQ: \u0430\u0432\u0430\u0442\u0430\u0440, \u0438\u043C\u044F \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0438 \u043F\u0438\u0441\u044C\u043C\u0430.",FAQ:"\u0412\u043E\u043F\u0440\u043E\u0441\u044B \u0438 \u043E\u0442\u0432\u0435\u0442\u044B mail-\u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u041A\u0430\u0436\u0434\u044B\u0439 \u043F\u0443\u043D\u043A\u0442 \u043C\u043E\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C, \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044C.",CTA:"\u0424\u0438\u043D\u0430\u043B\u044C\u043D\u044B\u0439 \u043F\u0440\u0438\u0437\u044B\u0432 \u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044E: \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A, \u043F\u043E\u044F\u0441\u043D\u0435\u043D\u0438\u0435, \u043A\u043D\u043E\u043F\u043A\u0430 \u0438 \u0441\u0441\u044B\u043B\u043A\u0430.","\u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442":"\u041E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0439 \u0431\u043B\u043E\u043A: \u043D\u0430\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A, \u043A\u0440\u0443\u043F\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430 \u0438 \u0442\u0440\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u0438.",\u0422\u0430\u0440\u0438\u0444\u044B:"\u041E\u043A\u043D\u043E \u0442\u0430\u0440\u0438\u0444\u043D\u043E\u0439 \u0442\u0430\u0431\u043B\u0438\u0446\u044B: \u043F\u043B\u0430\u043D\u044B, \u0446\u0435\u043D\u044B, \u043A\u043D\u043E\u043F\u043A\u0438 \u0438 \u043F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u044F.","\u0421\u0442\u0440\u043E\u043A\u0438 \u0442\u0430\u0440\u0438\u0444\u043E\u0432":"\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u0435\u043C\u044B\u0435 \u0441\u0442\u0440\u043E\u043A\u0438 \u0442\u0430\u0440\u0438\u0444\u043D\u043E\u0439 \u0442\u0430\u0431\u043B\u0438\u0446\u044B \u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u043A\u0430\u0436\u0434\u043E\u043C\u0443 \u043F\u043B\u0430\u043D\u0443.","\u041C\u0435\u0434\u0438\u0430-\u0433\u0430\u043B\u0435\u0440\u0435\u044F":"\u041E\u043A\u043D\u0430 \u0441 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u043C\u0438, \u043F\u043E\u0434\u043F\u0438\u0441\u0438 \u0444\u0430\u0439\u043B\u043E\u0432 \u0438 \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0438\u043A\u043E\u043D\u043A\u0438.","\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442\u043E\u0432":"\u0421\u043A\u0440\u0438\u043D\u0448\u043E\u0442\u044B \u0432 \u0432\u0438\u0434\u0435 \u043E\u043A\u043E\u043D \u0438 \u0444\u0430\u0439\u043B\u043E\u0432: \u043A\u0430\u0436\u0434\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043C\u043E\u0436\u043D\u043E \u0441\u043A\u0440\u044B\u0442\u044C, \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044C, \u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0438\u0442\u044C.","TXT-\u0444\u0430\u0439\u043B\u044B":"\u0421\u043F\u0438\u0441\u043E\u043A \u0444\u0430\u0439\u043B\u043E\u0432 \u043B\u0438\u0441\u0442\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F: \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043E\u043A\u043D\u0430, \u043F\u043E\u0434\u043F\u0438\u0441\u044C \u0438 \u0442\u0435\u043A\u0441\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043B\u0430.",\u0424\u0443\u0442\u0435\u0440:"\u0411\u0440\u0435\u043D\u0434\u043E\u0432\u044B\u0439 \u0431\u043B\u043E\u043A, \u043A\u043E\u043F\u0438\u0440\u0430\u0439\u0442 \u0438 \u0431\u0430\u0437\u043E\u0432\u044B\u0435 \u0430\u0441\u0441\u0435\u0442\u044B \u0444\u0443\u0442\u0435\u0440\u0430.","\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u0444\u0443\u0442\u0435\u0440\u0430":"\u0421\u0441\u044B\u043B\u043A\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439 \u043A\u043E\u043B\u043E\u043D\u043A\u0438 \u0444\u0443\u0442\u0435\u0440\u0430. \u041A\u0430\u0436\u0434\u044B\u0439 \u043F\u0443\u043D\u043A\u0442 \u043C\u043E\u0436\u043D\u043E \u0441\u043A\u0440\u044B\u0442\u044C, \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044C, \u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0438\u0442\u044C.","\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438":"\u0421\u0441\u044B\u043B\u043A\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0439 \u043A\u043E\u043B\u043E\u043D\u043A\u0438 \u0444\u0443\u0442\u0435\u0440\u0430. \u041A\u0430\u0436\u0434\u044B\u0439 \u043F\u0443\u043D\u043A\u0442 \u043C\u043E\u0436\u043D\u043E \u0441\u043A\u0440\u044B\u0442\u044C, \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044C, \u0434\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0438\u0442\u044C.",\u041F\u043E\u043B\u0438\u0442\u0438\u043A\u0438:"\u041D\u0438\u0436\u043D\u044F\u044F \u0441\u0442\u0440\u043E\u043A\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F.",\u041A\u043E\u043D\u0442\u0435\u043D\u0442:"\u041E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 typed-\u043F\u043E\u043B\u044F \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0431\u043B\u043E\u043A\u0430."},sL="image/*,video/*,.gif,.webm,.mov,.mp4,.m4v,.avi,.mkv,.glb,.gltf,.svg,.ico,.avif,.webp,.webmanifest,.json,.woff,.woff2",Rp="application/x-nodedc-media-entry",Y4=[["all","\u0412\u0441\u0435"],["image","\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F"],["video","\u0412\u0438\u0434\u0435\u043E"],["model","3D"]],dL=[["","\u041F\u0440\u043E\u0435\u043A\u0442"],["assets","Assets"],["assets/uploads","Uploads"],["assets/media","Media"],["assets/site/images","NODE.DC"],["assets/custom","Custom"]],cL='<svg class="trash-can-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M3.75 6.75h16.5"></path><path d="M8.25 6.75V4.9c0-.64.51-1.15 1.15-1.15h5.2c.64 0 1.15.51 1.15 1.15v1.85"></path><path d="M6.25 6.75l.7 12.15c.06.78.7 1.35 1.47 1.35h7.16c.77 0 1.41-.57 1.47-1.35l.7-12.15"></path><path d="M10 10.75v5.5"></path><path d="M14 10.75v5.5"></path></svg>',qn=Z4(),Fb=new WeakMap,jb=0;Bo=new Map,Gb=new Map,$4=0,fL="\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043E",Vb=Promise.resolve();gd=new Map;y2=new Set(["_blank","_self","_parent","_top"]);for(let e of[c.id,c.label,c.anchor,c.enabled])e.addEventListener("input",Zb),e.addEventListener("change",Zb);c.modeContent?.addEventListener("click",()=>qp("content"));c.modeSeo?.addEventListener("click",()=>qp("seo"));c.modeKnowledge?.addEventListener("click",()=>qp("knowledge"));c.modeFiles?.setAttribute("aria-haspopup","dialog");c.modeFiles?.setAttribute("aria-controls","media-modal");c.modeFiles?.addEventListener("click",()=>Dd({mode:"manage",error:c.mediaModalSubtitle}));c.addProject?.addEventListener("click",()=>H4().catch(e=>D(e.message)));c.projectSettings?.addEventListener("click",JI);c.json.addEventListener("blur",()=>{if(d.mode!=="knowledge"){if(d.filePickerActive||d.mediaUploadActive){ra();return}RI()}});c.addBlock?.addEventListener("click",()=>{if(d.mode==="knowledge"){eh(null);return}O2()});c.templateModalClose.addEventListener("click",gu);c.templateModalCancel.addEventListener("click",gu);c.templateModal.addEventListener("click",e=>{e.target===c.templateModal&&gu()});c.deleteModalCancel.addEventListener("click",()=>Ao(!1));c.deleteModalConfirm.addEventListener("click",()=>Ao(!0));c.deleteModal.addEventListener("click",e=>{e.target===c.deleteModal&&Ao(!1)});c.mediaActionCancel.addEventListener("click",()=>Do(null));c.mediaActionConfirm.addEventListener("click",()=>Do(c.mediaActionInput.value.trim()));c.mediaActionModal.addEventListener("click",e=>{e.target===c.mediaActionModal&&Do(null)});c.knowledgeButtonClose.addEventListener("click",()=>Ho(null));c.knowledgeButtonCancel.addEventListener("click",()=>Ho(null));c.knowledgeButtonConfirm.addEventListener("click",Mp);c.knowledgeButtonLink.addEventListener("blur",()=>{c.knowledgeButtonLink.value=Bd(c.knowledgeButtonLink.value)});c.knowledgeButtonModal.addEventListener("click",e=>{e.target===c.knowledgeButtonModal&&Ho(null)});c.mediaModalClose.addEventListener("click",xu);c.mediaModalCancel.addEventListener("click",xu);c.mediaModal.addEventListener("click",e=>{e.target===c.mediaModal&&xu()});c.mediaSearch.addEventListener("input",()=>{d.mediaLibrary.query=c.mediaSearch.value,St()});c.mediaRefresh.addEventListener("click",()=>dI().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043C\u0435\u0434\u0438\u0430\u0442\u0435\u043A\u0438: ${e.message}`)));c.mediaUpload.addEventListener("click",()=>{if(d.mediaLibrary.trashMode){mI().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0447\u0438\u0441\u0442\u043A\u0438 \u043A\u043E\u0440\u0437\u0438\u043D\u044B: ${e.message}`));return}xI()});c.mediaSelect.addEventListener("click",ZL);c.mediaDownload.addEventListener("click",fI);c.mediaDelete.addEventListener("click",()=>Qp().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F: ${e.message}`)));c.mediaTrashToggle.addEventListener("click",()=>cI().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u044B: ${e.message}`)));c.mediaDropZone.addEventListener("dragover",e=>{d.mediaLibrary.context&&(Md(e)||(e.preventDefault(),c.mediaDropZone.dataset.dragActive="true"))});c.mediaDropZone.addEventListener("dragleave",e=>{c.mediaDropZone.contains(e.relatedTarget)||delete c.mediaDropZone.dataset.dragActive});c.mediaDropZone.addEventListener("drop",e=>{if(!d.mediaLibrary.context||Md(e))return;e.preventDefault(),delete c.mediaDropZone.dataset.dragActive;let t=e.dataTransfer?.files?.[0];yI(t).catch(a=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438: ${a.message}`))});document.addEventListener("click",e=>{c.mediaContextMenu.classList.contains("hidden")||c.mediaContextMenu.contains(e.target)||qo()});document.addEventListener("contextmenu",e=>{c.mediaModal.classList.contains("hidden")||c.mediaModal.contains(e.target)||qo()});document.addEventListener("selectionchange",()=>{d.mode==="knowledge"&&vl()});document.addEventListener("keydown",e=>{if(!c.deleteModal.classList.contains("hidden")){e.key==="Enter"&&(e.preventDefault(),Ao(!0)),e.key==="Escape"&&(e.preventDefault(),Ao(!1));return}if(!c.mediaActionModal.classList.contains("hidden")){e.key==="Enter"&&(e.preventDefault(),Do(c.mediaActionInput.value.trim())),e.key==="Escape"&&(e.preventDefault(),Do(null));return}if(!c.knowledgeButtonModal.classList.contains("hidden")){e.key==="Enter"&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),Mp()),e.key==="Enter"&&e.target!==c.knowledgeButtonTarget&&(e.preventDefault(),Mp()),e.key==="Escape"&&(e.preventDefault(),Ho(null));return}if(!c.mediaModal.classList.contains("hidden")){if(!c.mediaContextMenu.classList.contains("hidden")&&e.key==="Escape"){e.preventDefault(),qo();return}if(uI(e.target))return;if(e.key==="ArrowDown"){e.preventDefault(),Wb(1).catch(t=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: ${t.message}`));return}if(e.key==="ArrowUp"){e.preventDefault(),Wb(-1).catch(t=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: ${t.message}`));return}if(e.key==="ArrowRight"){e.preventDefault(),rI().catch(t=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: ${t.message}`));return}if(e.key==="ArrowLeft"){e.preventDefault(),iI().catch(t=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: ${t.message}`));return}if(e.key==="Delete"||e.key==="Backspace"){(d.mediaLibrary.trashMode?_o()?.trashPath:Cd(d.mediaLibrary.selectedEntry))&&(e.preventDefault(),Qp().catch(t=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F: ${t.message}`)));return}e.key==="Escape"&&(e.preventDefault(),xu());return}e.key==="Escape"&&!c.templateModal.classList.contains("hidden")&&gu()});c.reload.addEventListener("click",()=>{if(Je()){pu().then(Sl).then(()=>D("\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u043F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B.")).catch(t=>D(t.message));return}(d.mode==="knowledge"?nh:cS)().catch(t=>D(t.message))});c.save.addEventListener("click",()=>{if(Je()){e2().catch(e=>D(e.message));return}dS(!1)});c.render.addEventListener("click",()=>{if(Je()){t2().catch(e=>D(e.message));return}dS(!0)});c.publish?.addEventListener("click",()=>{Je()&&a2().catch(e=>D(e.message))});c.downloadBackup?.addEventListener("click",()=>{Je()&&n2().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0431\u044D\u043A\u0430\u043F\u0430: ${e.message}`))});c.moveUp.addEventListener("click",()=>fS(-1));c.moveDown.addEventListener("click",()=>fS(1));c.duplicate.addEventListener("click",$I);c.copy.addEventListener("click",ZI);c.pasteAfter.addEventListener("click",QI);c.deleteBlock.addEventListener("click",()=>WI().catch(e=>D(`\u041E\u0448\u0438\u0431\u043A\u0430 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F: ${e.message}`)));window.addEventListener("error",e=>{ra(),D(`\u041E\u0448\u0438\u0431\u043A\u0430 JS: ${e.message}`)});window.addEventListener("unhandledrejection",e=>{ra();let t=e.reason instanceof Error?e.reason.message:String(e.reason);D(`\u041E\u0448\u0438\u0431\u043A\u0430 JS: ${t}`)});cS().catch(e=>D(e.message))});var qb=E(q(),1),Ub=E(Lm(),1),Pa=E(ea(),1);var xo=E(z(),1);function Wx({children:e,ref:t}){return(0,xo.jsx)("div",{ref:t,className:"nodedc-header__profile",children:e})}function Jx({children:e,type:t="button",...a}){return(0,xo.jsx)("button",{type:t,className:"nodedc-header__profile-button",...a,children:e})}function vo({label:e,imageUrl:t}){return(0,xo.jsx)("span",{className:"nodedc-header__avatar",title:e,children:t?(0,xo.jsx)("img",{src:t,alt:""}):e.slice(0,2).toUpperCase()})}var ev=E(z(),1);function B(...e){return e.filter(Boolean).join(" ")}function Ws({size:e="default",label:t,className:a,...n}){let l=t?.trim()||void 0;return(0,ev.jsx)("span",{...n,className:B("nodedc-activity-indicator",a),"data-size":e==="default"?void 0:e,role:l?"status":void 0,"aria-label":l,"aria-hidden":l?void 0:"true"})}var av=E(z(),1),Gr=E(q(),1);var tv=E(q(),1),Js=(0,tv.createContext)(null);var nv=E(z(),1);function lv({className:e,...t}){return(0,nv.jsx)("p",{...t,className:B("nodedc-description",e)})}var ov=E(z(),1);var Ev=E(z(),1);var Sv=E(z(),1),Co=E(q(),1),Hw=E(ea(),1);var zt=E(q()),xv=E(ea());var Vr=E(q());var rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ed(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Sm(e){return"nodeType"in e}function _t(e){var t,a;return e?ed(e)?e:Sm(e)&&(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window:window}function Cm(e){let{Document:t}=_t(e);return e instanceof t}function wm(e){return ed(e)?!1:e instanceof _t(e).HTMLElement}function Im(e){return e instanceof _t(e).SVGElement}function bo(e){return e?ed(e)?e.document:Sm(e)?Cm(e)?e:wm(e)||Im(e)?e.ownerDocument:document:document:document}function iv(e){return function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),l=1;l<a;l++)n[l-1]=arguments[l];return n.reduce((o,r)=>{let i=Object.entries(r);for(let[u,s]of i){let f=o[u];f!=null&&(o[u]=f+e*s)}return o},{...t})}}var uv=iv(1),Xr=iv(-1);function yw(e){return"clientX"in e&&"clientY"in e}function km(e){if(!e)return!1;let{KeyboardEvent:t}=_t(e.target);return t&&e instanceof t}function xw(e){if(!e)return!1;let{TouchEvent:t}=_t(e.target);return t&&e instanceof t}function Em(e){if(xw(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}return yw(e)?{x:e.clientX,y:e.clientY}:null}var Mm=E(q());var sv;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(sv||(sv={}));var Kr=Object.freeze({x:0,y:0});function Lw(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Sw(e,t,a){let n=Lw(t);if(!n)return e;let{scaleX:l,scaleY:o,x:r,y:i}=n,u=e.left-r-(1-l)*parseFloat(a),s=e.top-i-(1-o)*parseFloat(a.slice(a.indexOf(" ")+1)),f=l?e.width/l:e.width,m=o?e.height/o:e.height;return{width:f,height:m,top:s,right:u+f,bottom:s+m,left:u}}var Cw={ignoreTransform:!1};function td(e,t){t===void 0&&(t=Cw);let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:s,transformOrigin:f}=_t(e).getComputedStyle(e);s&&(a=Sw(a,s,f))}let{top:n,left:l,width:o,height:r,bottom:i,right:u}=a;return{top:n,left:l,width:o,height:r,bottom:i,right:u}}function dv(e){return td(e,{ignoreTransform:!0})}function ww(e,t){return t===void 0&&(t=_t(e).getComputedStyle(e)),t.position==="fixed"}function Iw(e,t){t===void 0&&(t=_t(e).getComputedStyle(e));let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(l=>{let o=t[l];return typeof o=="string"?a.test(o):!1})}function vv(e,t){let a=[];function n(l){if(t!=null&&a.length>=t||!l)return a;if(Cm(l)&&l.scrollingElement!=null&&!a.includes(l.scrollingElement))return a.push(l.scrollingElement),a;if(!wm(l)||Im(l)||a.includes(l))return a;let o=_t(e).getComputedStyle(l);return l!==e&&Iw(l,o)&&a.push(l),ww(l,o)?a:n(l.parentNode)}return e?n(e):a}function kw(e){let[t]=vv(e,1);return t??null}var Lo;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Lo||(Lo={}));function Ew(e){return!rv||!e?!1:e===document.scrollingElement}function Mw(e){let t={x:0,y:0},a=Ew(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},l=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,r=e.scrollTop>=n.y,i=e.scrollLeft>=n.x;return{isTop:l,isLeft:o,isBottom:r,isRight:i,maxScroll:n,minScroll:t}}function Aw(e){if(e===document.scrollingElement){let{innerWidth:o,innerHeight:r}=window;return{top:0,left:0,right:o,bottom:r,width:o,height:r}}let{top:t,left:a,right:n,bottom:l}=e.getBoundingClientRect();return{top:t,left:a,right:n,bottom:l,width:e.clientWidth,height:e.clientHeight}}function Dw(e,t){if(t===void 0&&(t=td),!e)return;let{top:a,left:n,bottom:l,right:o}=t(e);kw(e)&&(l<=0||o<=0||a>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var dl=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(a=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...a)})},this.target=t}add(t,a,n){var l;(l=this.target)==null||l.addEventListener(t,a,n),this.listeners.push([t,a,n])}};function Tw(e){let{EventTarget:t}=_t(e);return e instanceof t?e:bo(e)}function Am(e,t){let a=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(a**2+n**2)>t:"x"in t&&"y"in t?a>t.x&&n>t.y:"x"in t?a>t.x:"y"in t?n>t.y:!1}var Zt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Zt||(Zt={}));function cv(e){e.preventDefault()}function Nw(e){e.stopPropagation()}var Y;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Y||(Y={}));var bv={start:[Y.Space,Y.Enter],cancel:[Y.Esc],end:[Y.Space,Y.Enter,Y.Tab]},Rw=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case Y.Right:return{...a,x:a.x+25};case Y.Left:return{...a,x:a.x-25};case Y.Down:return{...a,y:a.y+25};case Y.Up:return{...a,y:a.y-25}}},Tm=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:a}}=t;this.props=t,this.listeners=new dl(bo(a)),this.windowListeners=new dl(_t(a)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Zt.Resize,this.handleCancel),this.windowListeners.add(Zt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Zt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:a}=this.props,n=t.node.current;n&&Dw(n),a(Kr)}handleKeyDown(t){if(km(t)){let{active:a,context:n,options:l}=this.props,{keyboardCodes:o=bv,coordinateGetter:r=Rw,scrollBehavior:i="smooth"}=l,{code:u}=t;if(o.end.includes(u)){this.handleEnd(t);return}if(o.cancel.includes(u)){this.handleCancel(t);return}let{collisionRect:s}=n.current,f=s?{x:s.left,y:s.top}:Kr;this.referenceCoordinates||(this.referenceCoordinates=f);let m=r(t,{active:a,context:n.current,currentCoordinates:f});if(m){let p=Xr(m,f),h={x:0,y:0},{scrollableAncestors:b}=n.current;for(let S of b){let x=t.code,{isTop:g,isRight:y,isLeft:v,isBottom:L,maxScroll:M,minScroll:A}=Mw(S),I=Aw(S),N={x:Math.min(x===Y.Right?I.right-I.width/2:I.right,Math.max(x===Y.Right?I.left:I.left+I.width/2,m.x)),y:Math.min(x===Y.Down?I.bottom-I.height/2:I.bottom,Math.max(x===Y.Down?I.top:I.top+I.height/2,m.y))},T=x===Y.Right&&!y||x===Y.Left&&!v,w=x===Y.Down&&!L||x===Y.Up&&!g;if(T&&N.x!==m.x){let O=S.scrollLeft+p.x,te=x===Y.Right&&O<=M.x||x===Y.Left&&O>=A.x;if(te&&!p.y){S.scrollTo({left:O,behavior:i});return}te?h.x=S.scrollLeft-O:h.x=x===Y.Right?S.scrollLeft-M.x:S.scrollLeft-A.x,h.x&&S.scrollBy({left:-h.x,behavior:i});break}else if(w&&N.y!==m.y){let O=S.scrollTop+p.y,te=x===Y.Down&&O<=M.y||x===Y.Up&&O>=A.y;if(te&&!p.x){S.scrollTo({top:O,behavior:i});return}te?h.y=S.scrollTop-O:h.y=x===Y.Down?S.scrollTop-M.y:S.scrollTop-A.y,h.y&&S.scrollBy({top:-h.y,behavior:i});break}}this.handleMove(t,uv(Xr(m,this.referenceCoordinates),h))}}}handleMove(t,a){let{onMove:n}=this.props;t.preventDefault(),n(a)}handleEnd(t){let{onEnd:a}=this.props;t.preventDefault(),this.detach(),a()}handleCancel(t){let{onCancel:a}=this.props;t.preventDefault(),this.detach(),a()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Tm.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:n=bv,onActivation:l}=t,{active:o}=a,{code:r}=e.nativeEvent;if(n.start.includes(r)){let i=o.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),l?.({event:e.nativeEvent}),!0)}return!1}}];function fv(e){return!!(e&&"distance"in e)}function mv(e){return!!(e&&"delay"in e)}var Yr=class{constructor(t,a,n){var l;n===void 0&&(n=Tw(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=a;let{event:o}=t,{target:r}=o;this.props=t,this.events=a,this.document=bo(r),this.documentListeners=new dl(this.document),this.listeners=new dl(n),this.windowListeners=new dl(_t(r)),this.initialCoordinates=(l=Em(o))!=null?l:Kr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:a,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Zt.Resize,this.handleCancel),this.windowListeners.add(Zt.DragStart,cv),this.windowListeners.add(Zt.VisibilityChange,this.handleCancel),this.windowListeners.add(Zt.ContextMenu,cv),this.documentListeners.add(Zt.Keydown,this.handleKeydown),a){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(mv(a)){this.timeoutId=setTimeout(this.handleStart,a.delay),this.handlePending(a);return}if(fv(a)){this.handlePending(a);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,a){let{active:n,onPending:l}=this.props;l(n,t,this.initialCoordinates,a)}handleStart(){let{initialCoordinates:t}=this,{onStart:a}=this.props;t&&(this.activated=!0,this.documentListeners.add(Zt.Click,Nw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Zt.SelectionChange,this.removeTextSelection),a(t))}handleMove(t){var a;let{activated:n,initialCoordinates:l,props:o}=this,{onMove:r,options:{activationConstraint:i}}=o;if(!l)return;let u=(a=Em(t))!=null?a:Kr,s=Xr(l,u);if(!n&&i){if(fv(i)){if(i.tolerance!=null&&Am(s,i.tolerance))return this.handleCancel();if(Am(s,i.distance))return this.handleStart()}if(mv(i)&&Am(s,i.tolerance))return this.handleCancel();this.handlePending(i,s);return}t.cancelable&&t.preventDefault(),r(u)}handleEnd(){let{onAbort:t,onEnd:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleCancel(){let{onAbort:t,onCancel:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleKeydown(t){t.code===Y.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},Bw={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},$r=class extends Yr{constructor(t){let{event:a}=t,n=bo(a.target);super(t,Bw,n)}};$r.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:n}=t;return!a.isPrimary||a.button!==0?!1:(n?.({event:a}),!0)}}];var Ow={move:{name:"mousemove"},end:{name:"mouseup"}},Nm;(function(e){e[e.RightClick=2]="RightClick"})(Nm||(Nm={}));var Rm=class extends Yr{constructor(t){super(t,Ow,bo(t.event.target))}};Rm.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:n}=t;return a.button===Nm.RightClick?!1:(n?.({event:a}),!0)}}];var Dm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Bm=class extends Yr{constructor(t){super(t,Dm)}static setup(){return window.addEventListener(Dm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Dm.move.name,t)};function t(){}}};Bm.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:n}=t,{touches:l}=a;return l.length>1?!1:(n?.({event:a}),!0)}}];var pv;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(pv||(pv={}));var hv;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(hv||(hv={}));var qk={x:{[Lo.Backward]:!1,[Lo.Forward]:!1},y:{[Lo.Backward]:!1,[Lo.Forward]:!1}};var Om;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Om||(Om={}));var _m;(function(e){e.Optimized="optimized"})(_m||(_m={}));var Uk={draggable:{measure:dv},droppable:{measure:dv,strategy:Om.WhileDragging,frequency:_m.Optimized},dragOverlay:{measure:td}};var Hk=(0,zt.createContext)({...Kr,scaleX:1,scaleY:1}),gv;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(gv||(gv={}));var So=E(q());var Yk=[Y.Down,Y.Right,Y.Up,Y.Left];var rE=(0,Co.createContext)(!1);var kv=E(z(),1);var nd=E(q());/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Cv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ad=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim();var Zr=E(q());/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var wv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Iv=(0,Zr.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:l="",children:o,iconNode:r,...i},u)=>(0,Zr.createElement)("svg",{ref:u,...wv,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:ad("lucide",l),...i},[...r.map(([s,f])=>(0,Zr.createElement)(s,f)),...Array.isArray(o)?o:[o]]));/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var C=(e,t)=>{let a=(0,nd.forwardRef)(({className:n,...l},o)=>(0,nd.createElement)(Iv,{ref:o,iconNode:t,className:ad(`lucide-${Cv(e)}`,n),...l}));return a.displayName=`${e}`,a};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Qr=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Wr=C("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Jr=C("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ei=C("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ti=C("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ai=C("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ni=C("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var li=C("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var oi=C("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ri=C("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var wn=C("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var In=C("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ii=C("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ui=C("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var kn=C("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var si=C("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var di=C("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ci=C("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var En=C("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var fi=C("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var mi=C("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var pi=C("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var hi=C("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var gi=C("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var yi=C("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var xi=C("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var vi=C("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var bi=C("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Mn=C("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Li=C("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Si=C("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ci=C("LocateFixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var wi=C("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ii=C("MailPlus",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ki=C("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ei=C("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Mi=C("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ai=C("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Di=C("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ti=C("Move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ni=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ri=C("PanelTop",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Bi=C("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Oi=C("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var _i=C("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var zi=C("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var qi=C("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ui=C("RectangleHorizontal",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Hi=C("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Pi=C("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Fi=C("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var ji=C("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Gi=C("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Vi=C("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Xi=C("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ki=C("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Yi=C("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var $i=C("Spline",[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Zi=C("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Qi=C("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Wi=C("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var An=C("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Ji=C("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Dn=C("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var eu=C("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var tu=C("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Pw={"add-point":wn,perspective:Wr,orthographic:Gi,select:Di,move:Ti,pen:Bi,rectangle:Ui,curve:$i,undo:Ji,redo:Hi,activity:Qr,alert:An,apps:Jr,building:ei,camera:ti,check:ai,"chevron-down":ni,"chevron-up":ri,"chevron-left":li,"chevron-right":oi,circle:ii,clipboard:ui,close:tu,copy:si,database:di,download:ci,edit:Oi,eye:pi,"eye-off":mi,expand:Ei,external:fi,file:hi,folder:gi,globe:En,grid:Li,image:yi,inbox:xi,info:vi,key:bi,layers:Mn,list:Si,target:Ci,lock:wi,mail:Ii,minimize:Mi,network:Ni,panel:Ri,plan:ki,play:_i,power:qi,plus:zi,minus:Ai,profile:In,refresh:Pi,"rotate-clockwise":Fi,save:ji,search:Vi,settings:Xi,shield:Ki,sliders:Yi,stop:Zi,terminal:Qi,trash:Wi,upload:kn,users:Dn,video:eu};function ie({name:e,label:t,size:a=16,strokeWidth:n=1.6,fill:l,...o}){let r=Pw[e],i=e==="play"||e==="stop";return(0,kv.jsx)(r,{size:a,strokeWidth:i?0:n,fill:l??(i?"currentColor":"none"),"aria-hidden":t?void 0:"true","aria-label":t,role:t?"img":void 0,focusable:"false",...o})}var Mv=E(z(),1);var zm=E(z(),1),cl=E(q(),1),jw=E(ea(),1),oD=(0,cl.createContext)(null);var Av=E(z(),1);var Dv=E(q(),1);var ga=E(z(),1),Gm=E(q(),1);function Nv(e){return Math.max(0,Math.min(255,Math.round(e)))}function Gw(e){let t=Nv(e)/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Vw(e){let[t,a,n]=e.map(Gw);return t*.2126+a*.7152+n*.0722}function Rv(e){return Vw(e)>.46?[11,17,23]:[247,248,244]}function Tv(e){return e.map(Nv).join(" ")}function au(e){return{"--nodedc-accent-rgb":Tv(e),"--nodedc-on-accent-rgb":Tv(Rv(e))}}function qm({anchor:e,surfaceWidth:t,surfaceHeight:a,placement:n="bottom-start",offset:l=8,flip:o=!0,viewportWidth:r=typeof window>"u"?1920:window.innerWidth,viewportHeight:i=typeof window>"u"?1080:window.innerHeight,viewportPadding:u=8}){let s=Math.max(0,i-u*2);if(n.startsWith("left")||n.startsWith("right")){let A=Math.max(0,e.left-l-u),I=Math.max(0,r-e.right-l-u),N=n.startsWith("left"),w=o&&(N?t>A&&I>A:t>I&&A>I)?!N:N,O=w?A:I,te=Math.min(t,O),se=Math.min(a,s);return{left:w?e.left-l-te:e.right+l,top:Math.max(u,Math.min(e.top,i-u-se)),maxHeight:s,maxWidth:O,resolvedPlacement:w?"left-start":"right-start"}}let f=Math.min(s,Math.max(0,i-e.bottom-l-u)),m=Math.min(s,Math.max(0,e.top-l-u)),p=n.startsWith("top"),b=o&&(p?a>m&&f>m:a>f&&m>f)?`${p?"bottom":"top"}-${n.endsWith("end")?"end":"start"}`:n,S=b.endsWith("end")?e.right-t:e.left,x=Math.min(Math.max(u,S),Math.max(u,r-t-u)),g=b.startsWith("top")?m:f,y=Math.min(s,Math.max(Math.min(96,s),g)),v=Math.min(a,y),L=b.startsWith("top")?e.top-l-v:e.bottom+l;return{top:Math.min(Math.max(u,L),Math.max(u,i-v-u)),left:x,maxHeight:y,resolvedPlacement:b}}var Um=Object.freeze({theme:"dark",appearance:"mission",edges:"flat"}),Hm=Object.freeze({theme:"light",appearance:"mission",edges:"flat"});function Bv([e,t,a]){return`${e} ${t} ${a}`}function ld(e){return Math.max(0,Math.min(1,e))}function Pm(e,{theme:t="dark",accent:a,material:n,appearance:l="mission",edges:o="flat"}={}){if(e.dataset.nodedcTheme=t,e.dataset.nodedcAppearance=l,e.dataset.nodedcEdges=o,e.dataset.nodedcUi="true",a){let r=au(a);Object.entries(r).forEach(([i,u])=>{e.style.setProperty(i,u)})}if(n){if(n.panel&&e.style.setProperty("--nodedc-panel-material-rgb",Bv(n.panel)),typeof n.panelOpacity=="number"&&Number.isFinite(n.panelOpacity)){let r=ld(n.panelOpacity);e.style.setProperty("--nodedc-panel-material-opacity",String(r)),e.style.setProperty("--nodedc-panel-material-strong-opacity",String(ld(r+.12))),e.style.setProperty("--nodedc-panel-material-soft-opacity",String(ld(Math.max(.12,r-.2))))}n.field&&e.style.setProperty("--nodedc-field-material-rgb",Bv(n.field)),typeof n.fieldOpacity=="number"&&Number.isFinite(n.fieldOpacity)&&e.style.setProperty("--nodedc-field-material-opacity",String(ld(n.fieldOpacity)))}}function Fm(e){e.style.removeProperty("--nodedc-accent-rgb"),e.style.removeProperty("--nodedc-on-accent-rgb")}var Ov=Object.freeze({background:"#111115",border:"#111117",outline:"#1c1c1c",minSize:25,maxSize:87,lensCount:5,gap:10,padding:6,hideDelay:5e3}),LD=Object.freeze({mass:.1,stiffness:170,damping:12,maxStep:1/240});var la=(0,Gm.forwardRef)(function({variant:t="secondary",tone:a="theme",size:n="default",width:l="auto",shape:o="default",accent:r,icon:i,className:u,children:s,style:f,type:m="button",loading:p=!1,disabled:h,...b},S){let x=r?au(r):void 0;return(0,ga.jsxs)("button",{ref:S,type:m,className:B("nodedc-button",u),"data-variant":t,"data-tone":a==="theme"?void 0:a,"data-size":n==="default"?void 0:n,"data-width":l==="auto"?void 0:l,"data-shape":o==="default"?void 0:o,style:x?{...x,...f}:f,...b,disabled:h||p,"aria-busy":p||b["aria-busy"],"data-loading":p||void 0,children:[(0,ga.jsxs)("span",{className:"nodedc-button__content",children:[i?(0,ga.jsx)("span",{className:"nodedc-button__icon","aria-hidden":"true",children:i}):null,s]}),p?(0,ga.jsx)("span",{className:"nodedc-action-loading","aria-hidden":"true",children:(0,ga.jsx)(Ws,{size:"compact"})}):null]})}),gt=(0,Gm.forwardRef)(function({label:t,shape:a="circle",className:n,children:l,type:o="button",loading:r=!1,disabled:i,...u},s){return(0,ga.jsxs)("button",{ref:s,type:o,className:B("nodedc-icon-button",n),"data-shape":a==="circle"?void 0:a,"aria-label":t,title:t,...u,disabled:i||r,"aria-busy":r||u["aria-busy"],"data-loading":r||void 0,children:[l,r?(0,ga.jsx)("span",{className:"nodedc-action-loading","aria-hidden":"true",children:(0,ga.jsx)(Ws,{size:"compact"})}):null]})});var Xm=E(z(),1),$w=E(q(),1);var Vm=E(z(),1);function nu({label:e,value:t,valueText:a,className:n,style:l,...o}){let r=typeof t=="number"&&Number.isFinite(t)?Math.max(0,Math.min(1,t)):void 0;return(0,Vm.jsx)("div",{...o,className:B("nodedc-progress-bar",n),role:"progressbar","aria-label":e,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r===void 0?void 0:Math.round(r*100),"aria-valuetext":a,"data-indeterminate":r===void 0||void 0,style:{...l,"--nodedc-progress-fraction":r??0},children:(0,Vm.jsx)("span",{className:"nodedc-progress-bar__fill"})})}var Uv=E(z(),1);var $m=E(z(),1),Zm=E(q(),1);var ze=E(z(),1),le=E(q(),1),jv=E(ea(),1);var Hv=E(q(),1),wo=(0,Hv.createContext)(!1);var Pv=E(q(),1),Km=(0,Pv.createContext)(null);var Ym=["n","s","e","w","ne","nw","se","sw"],Tn=(e,t,a)=>Math.max(t,Math.min(a,e));function Nn(e,t){let a=Tn(e.width,Math.min(320,t.width-16),Math.max(1,t.width-16)),n=Tn(e.height,Math.min(200,t.height-16),Math.max(1,t.height-16));return{width:a,height:n,left:Tn(e.left,8,Math.max(8,t.width-a-8)),top:Tn(e.top,8,Math.max(8,t.height-n-8))}}function od(e,t,a,n,l){let o=Nn(e,l),r=o.left+o.width,i=o.top+o.height,u=Math.min(320,l.width-16),s=Math.min(200,l.height-16),f=t.includes("w")?Tn(o.left+a,8,r-u):o.left,m=t.includes("n")?Tn(o.top+n,8,i-s):o.top,p=t.includes("e")?Tn(r+a,f+u,l.width-8):r,h=t.includes("s")?Tn(i+n,m+s,l.height-8):i;return{left:f,top:m,width:p-f,height:h-m}}var Fv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[tabindex]:not([tabindex='-1'])"].join(",");function rd({open:e,title:t,subtitle:a,children:n,footer:l,headerActions:o,size:r="md",placement:i="center",closeLabel:u="\u0417\u0430\u043A\u0440\u044B\u0442\u044C",closeOnBackdrop:s,closeOnEscape:f=!0,lockBodyScroll:m,trapFocus:p,draggable:h=!1,resizable:b=!1,initialRect:S,rect:x,onRectCommit:g,allowFloating:y=!0,onClose:v,className:L,style:M,...A}){let[I,N]=(0,le.useState)(0),T=(0,le.useCallback)(()=>(N(_=>_+1),()=>N(_=>Math.max(0,_-1))),[]),w=I>0,O=(0,le.useId)(),te=(0,le.useId)(),se=(0,le.useRef)(null),at=(0,le.useRef)(v),de=(0,le.useRef)(null),[H,qt]=(0,le.useState)(null),[ut,Re]=(0,le.useState)(!1),[oe,Jt]=(0,le.useState)(null),Ct=(0,le.useRef)(null),Xa=(0,le.useRef)(null),Ka=(0,le.useRef)(g);Ka.current=g;let Pn=_=>{Ct.current=_,Jt(_)},Cl=(0,le.useRef)(!1),Ya=(0,le.useRef)(null),wt=ut&&y&&i==="center",It=wt||b&&i==="end",vu=h||It,lh=!w&&!wt&&(m??i==="center"),oh=!w&&!wt&&(p??i==="center"),Fo=(0,le.useRef)({shouldTrapFocus:oh,isFloating:wt,suspended:w});if(Fo.current={shouldTrapFocus:oh,isFloating:wt,suspended:w},at.current=v,(0,le.useEffect)(()=>{if(!e||typeof document>"u")return;let _=document.activeElement instanceof HTMLElement?document.activeElement:null,Le=window.requestAnimationFrame(()=>{(Array.from(se.current?.querySelectorAll(Fv)??[]).find(nt=>nt.getClientRects().length>0)??se.current)?.focus()}),Be=Se=>{if(Se.defaultPrevented||Fo.current.suspended)return;let nt=document.activeElement?.closest('[role="dialog"]');if(nt&&nt!==se.current)return;if(!nt){let wl=Array.from(document.querySelectorAll('[role="dialog"][aria-modal="true"]')).filter(gS=>gS.getClientRects().length>0).at(-1);if(wl&&wl!==se.current)return}if(Se.key==="Escape"&&f&&(!Fo.current.isFloating||se.current?.contains(document.activeElement))){Se.preventDefault(),at.current();return}if(Se.key!=="Tab"||!Fo.current.shouldTrapFocus||!se.current)return;let Fn=Array.from(se.current.querySelectorAll(Fv)).filter(wl=>wl.getClientRects().length>0);if(Fn.length===0){Se.preventDefault(),se.current.focus();return}let jn=Fn[0],bu=Fn[Fn.length-1];Se.shiftKey&&document.activeElement===jn?(Se.preventDefault(),bu.focus()):!Se.shiftKey&&document.activeElement===bu&&(Se.preventDefault(),jn.focus())};return document.addEventListener("keydown",Be),()=>{window.cancelAnimationFrame(Le),document.removeEventListener("keydown",Be),(!Fo.current.isFloating||document.activeElement===document.body||se.current?.contains(document.activeElement))&&_?.focus()}},[f,e]),(0,le.useEffect)(()=>{if(!e||!lh)return;let _=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=_}},[e,lh]),(0,le.useLayoutEffect)(()=>{if(e&&It&&!de.current&&!Ya.current){if(i==="center"&&!g&&!x&&Ct.current)return;let _=se.current?.getBoundingClientRect();_&&(Xa.current??=S??{left:_.left,top:_.top,width:_.width,height:_.height},Pn(Nn(x??Xa.current,{width:window.innerWidth,height:window.innerHeight})))}},[e,It,x?.left,x?.top,x?.width,x?.height]),(0,le.useEffect)(()=>{e||(qt(null),Re(!1),Pn(null),Xa.current=null,de.current=null,Ya.current=null)},[e]),(0,le.useEffect)(()=>{if(!vu||!e)return;let _=Be=>{let Se=Ya.current;if(Se&&Be.pointerId===Se.pointerId){Cl.current=!0,Pn(od(Se.rect,Se.edge,Be.clientX-Se.x,Be.clientY-Se.y,{width:window.innerWidth,height:window.innerHeight}));return}let nt=de.current,Fn=se.current;if(!nt||!Fn||Be.pointerId!==nt.pointerId)return;let jn=Fn.getBoundingClientRect();if(It){Cl.current=!0,Pn(Nn({left:Be.clientX-nt.offsetX,top:Be.clientY-nt.offsetY,width:jn.width,height:jn.height},{width:window.innerWidth,height:window.innerHeight}));return}let bu=Math.max(8,Math.min(window.innerWidth-jn.width-8,Be.clientX-nt.offsetX)),wl=Math.max(76,Math.min(window.innerHeight-jn.height-8,Be.clientY-nt.offsetY));qt({left:bu,top:wl})},Le=Be=>{let Se=de.current?.pointerId===Be.pointerId||Ya.current?.pointerId===Be.pointerId;de.current?.pointerId===Be.pointerId&&(de.current=null),Ya.current?.pointerId===Be.pointerId&&(Ya.current=null),Se&&Cl.current&&Ct.current&&(Cl.current=!1,Ka.current?.({...Ct.current}))};return window.addEventListener("pointermove",_),window.addEventListener("pointerup",Le),window.addEventListener("pointercancel",Le),()=>{window.removeEventListener("pointermove",_),window.removeEventListener("pointerup",Le),window.removeEventListener("pointercancel",Le)}},[vu,It,e]),(0,le.useEffect)(()=>{if(!It||!e)return;let _=()=>{Ct.current&&Pn(Nn(x??Ct.current,{width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[It,e,x]),!e||typeof document>"u")return null;let pS=!wt&&(s??i==="center"),hS=_=>{pS&&_.target===_.currentTarget&&v()};return(0,jv.createPortal)((0,ze.jsx)(Js.Provider,{value:null,children:(0,ze.jsx)(wo.Provider,{value:!1,children:(0,ze.jsx)(Km.Provider,{value:T,children:(0,ze.jsx)("div",{className:"nodedc-overlay nodedc-ui-root",style:w?{display:"none"}:void 0,"data-placement":i,"data-floating":wt||void 0,onPointerDown:hS,children:(0,ze.jsxs)("div",{ref:se,className:B("nodedc-window nodedc-glass-material nodedc-material-rim",L),"data-material":"glass-v4","data-size":r==="md"?void 0:r,"data-placement":i,"data-draggable":vu?"true":void 0,"data-resizable":It||void 0,"data-floating":wt||void 0,role:"dialog","aria-modal":i==="center"&&!wt?"true":void 0,"aria-labelledby":O,"aria-describedby":a?te:void 0,tabIndex:-1,style:It&&oe?{...M,position:"fixed",...oe,right:"auto",bottom:"auto",maxWidth:"none",maxHeight:"none"}:H?{...M,position:"fixed",left:H.left,top:H.top,right:"auto",bottom:"auto"}:M,...A,children:[(0,ze.jsxs)("header",{className:"nodedc-window__head",tabIndex:It?0:void 0,"aria-label":It?"\u041F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043E\u043A\u043D\u0430: \u0441\u0442\u0440\u0435\u043B\u043A\u0438; \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0440\u0430\u0437\u043C\u0435\u0440\u0430: Shift \u0438 \u0441\u0442\u0440\u0435\u043B\u043A\u0438":void 0,onKeyDown:_=>{if(!It||!oe||_.target!==_.currentTarget||!_.key.startsWith("Arrow"))return;_.preventDefault();let Le=_.key==="ArrowLeft"?-10:_.key==="ArrowRight"?10:0,Be=_.key==="ArrowUp"?-10:_.key==="ArrowDown"?10:0,Se={width:window.innerWidth,height:window.innerHeight},nt=_.shiftKey?od(oe,"se",Le,Be,Se):Nn({...oe,left:oe.left+Le,top:oe.top+Be},Se);Pn(nt),Ka.current?.(nt)},onPointerDown:_=>{if(!vu||_.button!==0||_.target.closest("button, input, select, textarea, a"))return;let Le=se.current?.getBoundingClientRect();Le&&(de.current={pointerId:_.pointerId,offsetX:_.clientX-Le.left,offsetY:_.clientY-Le.top},Cl.current=!1,_.currentTarget.setPointerCapture(_.pointerId),_.preventDefault())},children:[(0,ze.jsxs)("div",{className:"nodedc-window__titles",children:[(0,ze.jsx)("h2",{id:O,className:"nodedc-window__title",children:t}),a?(0,ze.jsx)("p",{id:te,className:"nodedc-window__subtitle",children:a}):null]}),(0,ze.jsxs)("div",{className:"nodedc-window__actions",children:[o,y&&i==="center"&&(0,ze.jsx)(gt,{label:wt?"\u0412\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u043E\u0434\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C":"\u0421\u0432\u043E\u0431\u043E\u0434\u043D\u043E\u0435 \u043E\u043A\u043D\u043E","aria-pressed":wt,onClick:()=>{if(de.current=null,Ya.current=null,!wt){let _=se.current?.getBoundingClientRect();_&&Pn(Nn(Ct.current??{left:_.left,top:_.top,width:_.width,height:_.height},{width:window.innerWidth,height:window.innerHeight}))}Re(!wt)},children:(0,ze.jsx)(ie,{name:"move"})}),(0,ze.jsx)("button",{type:"button",className:"nodedc-window__close","aria-label":u,onClick:v,children:(0,ze.jsx)(ie,{name:"close",size:16,strokeWidth:1.6})})]})]}),It&&Ym.map(_=>(0,ze.jsx)("div",{className:"nodedc-window__resize","data-edge":_,"aria-hidden":"true",onPointerDown:Le=>{Le.button!==0||!oe||(Ya.current={pointerId:Le.pointerId,x:Le.clientX,y:Le.clientY,rect:oe,edge:_},Cl.current=!1,Le.currentTarget.setPointerCapture(Le.pointerId),Le.preventDefault(),Le.stopPropagation())}},_)),(0,ze.jsx)("div",{className:"nodedc-window__body",children:n}),l?(0,ze.jsx)("footer",{className:"nodedc-window__footer",children:l}):null]})})})})}),document.fullscreenElement??document.body)}var lu=E(z(),1),fe=E(q(),1),Xv=E(ea(),1);var Vv=(0,fe.createContext)([]),Qm=new Map;function ya({trigger:e,children:t,placement:a="bottom-start",minWidth:n=180,width:l="anchor",offset:o=8,disabled:r=!1,className:i,surfaceClassName:u,surfaceRole:s="menu",onOpenChange:f,getAnchorRect:m,flip:p=!0,onPointerDownOutside:h}){let b=(0,fe.useId)(),S=(0,fe.useContext)(Vv),x=(0,fe.useMemo)(()=>[...S,b],[S,b]),g=`${b.replaceAll(":","")}-surface`,[y,v]=(0,fe.useState)(!1),[L,M]=(0,fe.useState)(null),[A,I]=(0,fe.useState)(null),N=(0,fe.useRef)(null),[T,w]=(0,fe.useState)({visibility:"hidden"});(0,fe.useEffect)(()=>{f?.(y)},[y,f]);let O=(0,fe.useCallback)(()=>v(!1),[]),te=(0,fe.useCallback)(()=>{r||v(!0)},[r]),se=(0,fe.useCallback)(()=>{r||v(de=>!de)},[r]),at=(0,fe.useCallback)(()=>{let de=L??A;if(!de||!N.current)return;let H=m?.()??de.getBoundingClientRect();if(!(H.bottom>0&&H.top<window.innerHeight&&H.right>0&&H.left<window.innerWidth)){O();return}let ut=N.current.getBoundingClientRect(),Re=typeof l=="number"?l:Math.max(n,H.width,ut.width),oe=Math.max(1,N.current.scrollHeight),Jt=qm({anchor:H,surfaceWidth:Re,surfaceHeight:oe,placement:a,offset:o,flip:p}),Ct={top:Jt.top,left:Jt.left,width:Math.min(Re,Jt.maxWidth??Re),maxHeight:Jt.maxHeight,visibility:"visible"};w(Xa=>Object.keys(Ct).every(Ka=>Xa[Ka]===Ct[Ka])?Xa:Ct)},[L,O,n,o,a,A,l,m,p]);return(0,fe.useLayoutEffect)(()=>{y&&at()},[y,at]),(0,fe.useEffect)(()=>{if(!y||!m)return;let de,H=()=>{at(),de=requestAnimationFrame(H)};return de=requestAnimationFrame(H),()=>cancelAnimationFrame(de)},[y,m,at]),(0,fe.useEffect)(()=>{if(!y)return;let de=Re=>{let oe=Re.target;!(oe instanceof Node)||L?.contains(oe)||A?.contains(oe)||N.current?.contains(oe)||(oe instanceof Element?oe:oe.parentElement)?.closest("[data-dropdown-lineage]")?.getAttribute("data-dropdown-lineage")?.split(" ").includes(b)||(O(),h?.(Re))},H=Re=>{if(Re.key==="Escape"&&!Re.defaultPrevented){if([...Qm].some(([oe,Jt])=>oe!==b&&Jt.includes(b)))return;O(),Re.preventDefault(),Re.stopImmediatePropagation(),A?.focus()}},qt=Re=>{let oe=Re.detail;oe.id!==b&&!oe.lineage?.includes(b)&&O()},ut=()=>at();return Qm.set(b,x),window.dispatchEvent(new CustomEvent("nodedc-dropdown-open",{detail:{id:b,lineage:x}})),document.addEventListener("pointerdown",de,!0),document.addEventListener("keydown",H,!0),window.addEventListener("nodedc-dropdown-open",qt),window.addEventListener("resize",ut),window.addEventListener("scroll",ut,!0),()=>{Qm.delete(b),document.removeEventListener("pointerdown",de,!0),document.removeEventListener("keydown",H,!0),window.removeEventListener("nodedc-dropdown-open",qt),window.removeEventListener("resize",ut),window.removeEventListener("scroll",ut,!0)}},[L,O,b,y,A,at,x,h]),(0,lu.jsxs)("span",{className:B("nodedc-dropdown-anchor",i),children:[e({open:y,show:te,close:O,toggle:se,setAnchorRef:M,setTriggerRef:I,surfaceId:g}),y&&typeof document<"u"?(0,Xv.createPortal)((0,lu.jsx)("div",{ref:N,id:g,"data-dropdown-lineage":x.join(" "),className:B("nodedc-dropdown-surface",u),role:s,style:T,children:(0,lu.jsx)(Vv.Provider,{value:x,children:typeof t=="function"?t({close:O}):t})}),document.fullscreenElement??document.body):null]})}var Qv=E(z(),1),fl=E(q(),1);var Kv=E(z(),1),Yv=E(q(),1);var wT=(0,fl.createContext)({disabled:!0,onKey:()=>{}});var Wv=E(z(),1),id=E(q(),1);var Jv=E(z(),1),Io=E(q(),1),a4=E(ea(),1);var eb=E(z(),1),n4=E(q(),1);var Qe=E(z(),1),ud=E(q(),1);function Wm({open:e,title:t,subtitle:a,identity:n,sections:l,activeSection:o,onSectionChange:r,onClose:i,children:u,footer:s,headerActions:f}){let m=(0,ud.useRef)(null);return(0,ud.useLayoutEffect)(()=>{m.current&&(m.current.scrollTop=0)},[o]),(0,Qe.jsx)(rd,{open:e,title:t,subtitle:a,size:"lg",className:"nodedc-feature-settings-window",footer:s,headerActions:f,closeOnBackdrop:!1,onClose:i,children:(0,Qe.jsxs)("div",{className:"nodedc-feature-settings",children:[(0,Qe.jsxs)("aside",{className:"nodedc-feature-settings__navigation","aria-label":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",tabIndex:0,children:[(0,Qe.jsxs)("div",{className:"nodedc-feature-settings__identity",children:[(0,Qe.jsx)(vo,{label:n.avatarLabel,imageUrl:n.avatarUrl}),(0,Qe.jsxs)("span",{children:[(0,Qe.jsx)("strong",{children:n.title}),n.subtitle?(0,Qe.jsx)("small",{children:n.subtitle}):null]})]}),(0,Qe.jsx)("nav",{children:l.map((p,h)=>{let b=p.group&&p.group!==l[h-1]?.group;return(0,Qe.jsxs)("div",{className:"nodedc-feature-settings__navigation-entry",children:[b?(0,Qe.jsx)("span",{className:"nodedc-feature-settings__group",children:p.group}):null,(0,Qe.jsxs)("button",{type:"button",className:"nodedc-feature-settings__section","data-active":p.id===o?"true":void 0,disabled:p.disabled,onClick:()=>r(p.id),children:[p.icon?(0,Qe.jsx)(ie,{name:p.icon,size:16}):null,(0,Qe.jsx)("span",{children:p.label})]})]},p.id)})})]}),(0,Qe.jsx)("section",{ref:m,className:"nodedc-feature-settings__content","aria-label":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",tabIndex:0,children:u})]})})}var l4=E(z(),1);var tb=E(z(),1),ab=E(q(),1);var K=E(z(),1),Rn=E(q(),1);function ml({value:e,options:t,label:a,onChange:n,searchable:l=!1,searchPlaceholder:o="\u041F\u043E\u0438\u0441\u043A",emptyLabel:r="\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",placement:i="bottom-start",minMenuWidth:u=180,menuWidth:s="anchor",disabled:f=!1,variant:m="integrated",shape:p="default",className:h,triggerClassName:b,menuClassName:S}){let g=(0,Rn.useContext)(wo)?"split":m,[y,v]=(0,Rn.useState)(""),L=(0,Rn.useRef)(null),M=t.find(T=>T.value===e)??t[0],A=t.some(T=>T.action),I=A?"dialog":"listbox",N=(0,Rn.useMemo)(()=>{let T=y.trim().toLocaleLowerCase();return T?t.filter(w=>`${w.label} ${w.description??""}`.toLocaleLowerCase().includes(T)):t},[t,y]);return(0,K.jsx)(ya,{className:B("nodedc-select-anchor",h),placement:i,minWidth:u,width:s,disabled:f,surfaceRole:I,surfaceClassName:B(g==="split"&&"nodedc-select__menu",S),trigger:({open:T,toggle:w,setAnchorRef:O,setTriggerRef:te,surfaceId:se})=>{let at=H=>{L.current=H.currentTarget,w()},de=H=>{L.current=H.currentTarget,(H.key==="ArrowDown"||H.key==="Enter"||H.key===" ")&&(H.preventDefault(),T||w())};return g==="split"?(0,K.jsx)("div",{className:B("nodedc-select",b),"data-shape":p==="pill"?"pill":void 0,"data-disabled":f?"true":void 0,children:(0,K.jsxs)("div",{ref:O,className:"nodedc-select__control",children:[(0,K.jsxs)("div",{className:"nodedc-select__value",children:[M?.icon?(0,K.jsx)("span",{className:"nodedc-select__value-icon",children:M.icon}):null,(0,K.jsx)("span",{children:M?.label??"\u2014"})]}),(0,K.jsx)("button",{ref:te,type:"button",className:"nodedc-select__toggle","aria-label":a,"aria-haspopup":I,"aria-controls":se,"aria-expanded":T,disabled:f,onClick:at,onKeyDown:de,children:(0,K.jsx)("span",{className:"nodedc-select-trigger__chevron","aria-hidden":"true"})})]})}):g==="inline"?(0,K.jsxs)("button",{ref:te,type:"button",className:B("nodedc-select-inline",b),"aria-label":a,"aria-haspopup":I,"aria-controls":se,"aria-expanded":T,disabled:f,onClick:at,onKeyDown:de,children:[M?.icon?(0,K.jsx)("span",{className:"nodedc-select-trigger__icon",children:M.icon}):null,(0,K.jsx)("span",{children:M?.label??"\u2014"})]}):(0,K.jsxs)("button",{ref:te,type:"button",className:B("nodedc-select-trigger",b),"aria-label":a,"aria-haspopup":I,"aria-controls":se,"aria-expanded":T,disabled:f,onClick:at,onKeyDown:de,children:[M?.icon?(0,K.jsx)("span",{className:"nodedc-select-trigger__icon",children:M.icon}):(0,K.jsx)("span",{className:"nodedc-select-trigger__icon","aria-hidden":"true"}),(0,K.jsx)("span",{className:"nodedc-select-trigger__label",children:M?.label??"\u2014"}),(0,K.jsx)("span",{className:"nodedc-select-trigger__chevron","aria-hidden":"true"})]})},children:({close:T})=>(0,K.jsxs)(K.Fragment,{children:[l?(0,K.jsxs)("label",{className:"nodedc-dropdown-search",children:[(0,K.jsx)("span",{"aria-hidden":"true",children:"\u2315"}),(0,K.jsx)("input",{value:y,onChange:w=>v(w.target.value),placeholder:o})]}):null,N.map(w=>(0,K.jsxs)("div",{className:"nodedc-select-option-row",children:[(0,K.jsxs)("button",{type:"button",className:"nodedc-dropdown-option",role:A?void 0:"option","aria-selected":A?void 0:w.value===e,"aria-pressed":A?w.value===e:void 0,"data-selected":w.value===e?"true":void 0,disabled:w.disabled,onClick:()=>{w.disabled||(n(w.value,w),v(""),T())},children:[w.icon?(0,K.jsx)("span",{className:"nodedc-dropdown-option__icon",children:w.icon}):(0,K.jsx)("span",{}),(0,K.jsxs)("span",{className:"nodedc-dropdown-option__body",children:[(0,K.jsx)("span",{className:"nodedc-dropdown-option__label",children:w.label}),w.description?(0,K.jsx)("span",{className:"nodedc-dropdown-option__description",children:w.description}):null]}),w.value===e?(0,K.jsx)("span",{className:"nodedc-dropdown-option__check","aria-hidden":"true",children:"\u2022"}):null]}),w.action?(0,K.jsx)(gt,{label:w.action.label,"data-tone":w.action.tone??"neutral",disabled:w.action.disabled,onClick:()=>{v(""),T(),L.current?.focus(),w.action?.onAction()},children:w.action.icon}):null]},w.value)),N.length===0?(0,K.jsx)("div",{className:"nodedc-empty-state",children:r}):null]})})}var nb=E(z(),1),o4=E(q(),1);var lb=E(z(),1),r4=E(q(),1);var W=E(z(),1),Pe=E(q(),1);var pl=E(z(),1),ib=E(q(),1),sd=E(q(),1);var ou=(e,t,a)=>Math.max(t,Math.min(a,e));function Jm(e,t,a){let n=ou(e[0],t,a);return[n,ou(e[1],n,a)]}function ob([e,t],a){return a<=(e+t)/2?0:1}function rb(e,t,a,n,l,o=1){let r=Jm(e,n,l),i=Number(o),u=ou(a,n,l),s=u===n||u===l||!Number.isFinite(i)||i<=0?u:Number((n+Math.round((u-n)/i)*i).toPrecision(12));return r[t]=t===0?ou(s,n,r[1]):ou(s,r[0],l),r}function ub({label:e,value:t,min:a,max:n,step:l=1,onChange:o,lowerLabel:r=`${e}: \u043D\u0438\u0436\u043D\u044F\u044F \u0433\u0440\u0430\u043D\u0438\u0446\u0430`,upperLabel:i=`${e}: \u0432\u0435\u0440\u0445\u043D\u044F\u044F \u0433\u0440\u0430\u043D\u0438\u0446\u0430`,formatValue:u=String,formatLimit:s=String,limitSide:f="right",disabled:m=!1,className:p,style:h,orientation:b,...S}){let x=n>a?n:a+1,g=Jm(t,a,x),y=(0,sd.useRef)(g);y.current=g;let v=(0,sd.useRef)([]),L=(0,sd.useRef)(null),M=g.map(w=>(w-a)/(x-a)*100),A={...h,"--nodedc-range-lower":`${M[0]}%`,"--nodedc-range-upper":`${M[1]}%`},I=(w,O)=>{let te=rb(y.current,w,O,a,x,l);y.current=te,o(te)},N=w=>{let O=w.currentTarget.getBoundingClientRect();return a+Math.max(0,Math.min(1,(O.bottom-w.clientY)/O.height))*(x-a)},T=w=>{L.current?.id===w.pointerId&&(L.current=null,w.currentTarget.hasPointerCapture(w.pointerId)&&w.currentTarget.releasePointerCapture(w.pointerId))};return(0,pl.jsxs)("div",{className:"nodedc-range-scale","data-band":"true","data-limit-side":f,"data-disabled":m||void 0,style:A,children:[(0,pl.jsx)("div",{className:B("nodedc-range",p),"data-orientation":"vertical",children:(0,pl.jsx)("div",{className:"nodedc-range-band__target",onPointerDown:w=>{if(m||w.button!==0||L.current)return;w.preventDefault(),w.stopPropagation();let O=N(w),te=ob(y.current,O);L.current={id:w.pointerId,boundary:te},v.current[te]?.focus({preventScroll:!0}),w.currentTarget.setPointerCapture(w.pointerId),I(te,O)},onPointerMove:w=>{m||L.current?.id!==w.pointerId||(w.preventDefault(),w.stopPropagation(),I(L.current.boundary,N(w)))},onPointerUp:T,onPointerCancel:T,onLostPointerCapture:()=>{L.current=null},children:[0,1].map(w=>(0,ib.createElement)("input",{...S,key:w,ref:O=>{v.current[w]=O},type:"range","data-boundary":w===0?"lower":"upper",min:a,max:x,step:l,value:g[w],disabled:m,"aria-label":w===0?r:i,"aria-orientation":"vertical","aria-valuemin":w===0?a:g[0],"aria-valuemax":w===0?g[1]:x,"aria-valuetext":u(g[w]),onChange:O=>I(w,Number(O.target.value))}))})}),(0,pl.jsx)("span",{className:"nodedc-range-scale__limit nodedc-range-scale__limit--max",children:s(g[1])}),(0,pl.jsx)("span",{className:"nodedc-range-scale__limit nodedc-range-scale__limit--min",children:s(g[0])})]})}var ep=(e,t,a)=>Math.max(t,Math.min(a,e)),sb=e=>{let[t,a]=String(e).toLowerCase().split("e"),n=t?.split(".")[1]?.length??0;if(a===void 0)return n;let l=Number.parseInt(a,10);return Number.isFinite(l)?Math.max(0,n-l):n},i4=(e,t,a,n,l)=>{let o=l?.min??Number.NEGATIVE_INFINITY,r=l?.max??Number.POSITIVE_INFINITY,i=ep(e,o,r);if(n==="any")return i;let u=n===void 0?1:Number(n);if(!Number.isFinite(u)||u<=0)return i;let s=Math.min(12,Math.max(sb(t),sb(u))),f=t+Math.round((i-t)/u)*u;return ep(Number(f.toFixed(s)),o,r)},ru=e=>Number.isInteger(e)?String(e):String(Number(e.toFixed(12)));function u4(e){return Array.isArray(e.value)}function ap(e){return u4(e)?(0,W.jsx)(ub,{...e}):(0,W.jsx)(s4,{...e})}function s4({label:e,orientation:t="horizontal",value:a,min:n,max:l,exactValueBounds:o,step:r,formatValue:i=String,formatLimit:u=String,limitSide:s="right",onChange:f,className:m,disabled:p=!1,tabIndex:h,...b}){let S=(0,Pe.useRef)(null),x=(0,Pe.useRef)(null),g=(0,Pe.useRef)(null),y=(0,Pe.useRef)(!1),[v,L]=(0,Pe.useState)(!1),[M,A]=(0,Pe.useState)(()=>ru(a)),[I,N]=(0,Pe.useState)("base"),T=l===n?n+1:l,w=Math.max(0,Math.min(100,(a-n)/(T-n)*100)),O=i(a),te=Math.max(1,Math.min(14,v?M.length||ru(a).length:O.length)),se={"--nodedc-range-progress":`${w}%`,"--nodedc-range-editor-characters":te};(0,Pe.useLayoutEffect)(()=>A(ru(a)),[a]),(0,Pe.useEffect)(()=>{v||A(ru(a))},[v,a]),(0,Pe.useLayoutEffect)(()=>{let H=S.current,qt=g.current;if(!H||!qt)return;let ut=()=>{let oe=H.getBoundingClientRect(),Jt=qt.getBoundingClientRect(),Ct=Number.parseFloat(getComputedStyle(qt).paddingRight)||0,Xa=oe.left+oe.width*w/100,Ka=Jt.right-Ct;N(Xa>=Ka?"fill":"base")};ut();let Re=typeof ResizeObserver>"u"?null:new ResizeObserver(ut);return Re?.observe(H),()=>Re?.disconnect()},[te,w]);let at=(H,qt)=>{if(H){let ut=Number(M.trim().replace(",","."));Number.isFinite(ut)&&f(i4(ut,n,l,r,o))}L(!1),qt&&requestAnimationFrame(()=>x.current?.focus())},de=H=>{H.stopPropagation(),H.key==="Enter"&&(H.preventDefault(),H.currentTarget.blur()),H.key==="Escape"&&(H.preventDefault(),y.current=!0,A(ru(a)),L(!1),H.currentTarget.blur(),requestAnimationFrame(()=>x.current?.focus()))};return t==="vertical"?(0,W.jsxs)("div",{className:"nodedc-range-scale","data-limit-side":s,style:se,children:[(0,W.jsx)("div",{ref:S,className:B("nodedc-range",m),style:se,"data-orientation":"vertical",children:(0,W.jsx)("input",{ref:x,...b,type:"range",value:a,min:n,max:T,step:r,disabled:p,tabIndex:h,"aria-label":e,"aria-orientation":"vertical","aria-valuetext":O,onChange:H=>f(Number(H.target.value))})}),(0,W.jsx)("span",{className:"nodedc-range-scale__limit nodedc-range-scale__limit--max",children:u(ep(a,n,T))}),(0,W.jsx)("span",{className:"nodedc-range-scale__limit nodedc-range-scale__limit--min",children:u(n)})]}):(0,W.jsxs)("div",{ref:S,className:B("nodedc-range",m),style:se,"data-editing":v||void 0,children:[(0,W.jsx)("input",{ref:x,...b,type:"range",value:a,min:n,max:T,step:r,disabled:p,tabIndex:v?-1:h,"aria-label":e,"aria-valuetext":O,onChange:H=>f(Number(H.target.value))}),(0,W.jsx)("span",{className:"nodedc-range__label",children:e}),(0,W.jsx)("span",{className:"nodedc-range__value",children:O}),(0,W.jsxs)("span",{className:"nodedc-range__fill-text","aria-hidden":"true",children:[(0,W.jsx)("span",{className:"nodedc-range__label",children:e}),(0,W.jsx)("span",{className:"nodedc-range__value",children:O})]}),(0,W.jsx)("input",{ref:g,className:"nodedc-range__editor",type:"text",inputMode:"decimal",value:M,"aria-label":`${e}: \u0442\u043E\u0447\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435`,disabled:p,spellCheck:!1,"data-active":v||void 0,"data-contrast":I,onFocus:()=>{v||L(!0)},onChange:H=>A(H.target.value),onKeyDown:de,onBlur:()=>{if(y.current){y.current=!1;return}at(!0,!1)}})]})}var d4=["#ff2f92","#ff6caf","#d746ff","#7a3cff","#4ea4ff","#35d7c1","#c3ff66","#ffffff","#404040","#111116"];function iu(e,t,a){return Math.max(t,Math.min(a,e))}function tp(e){let t=/^#?([0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;let a=t[1];return[Number.parseInt(a.slice(0,2),16),Number.parseInt(a.slice(2,4),16),Number.parseInt(a.slice(4,6),16)]}function db(e){let t=tp(e);if(!t)return null;let[a,n,l]=t.map(s=>s/255),o=Math.max(a,n,l),r=Math.min(a,n,l),i=o-r,u=0;return i&&(o===a?u=60*((n-l)/i%6):o===n?u=60*((l-a)/i+2):u=60*((a-n)/i+4)),{h:(u+360)%360,s:o===0?0:i/o*100,v:o*100}}function hl({h:e,s:t,v:a}){let n=(e%360+360)%360,l=iu(t,0,100)/100,o=iu(a,0,100)/100,r=o*l,i=n/60%2,u=r*(1-Math.abs(i-1)),s=n<60?[r,u,0]:n<120?[u,r,0]:n<180?[0,r,u]:n<240?[0,u,r]:n<300?[u,0,r]:[r,0,u],f=o-r;return`#${s.map(m=>Math.round((m+f)*255).toString(16).padStart(2,"0")).join("")}`}function dd({value:e,onChange:t,label:a="\u0426\u0432\u0435\u0442",className:n,disabled:l=!1,onBlur:o,onKeyDown:r,...i}){let[u,s]=(0,Pe.useState)(e);(0,Pe.useEffect)(()=>s(e),[e]);let f=db(e),[m,p]=(0,Pe.useState)(()=>f??{h:330,s:82,v:100}),h={"--nodedc-color-value":hl(f||m)};(0,Pe.useEffect)(()=>{f&&p(f)},[e,f?.h,f?.s,f?.v]);let b=x=>{let g={h:iu(x.h,0,360),s:iu(x.s,0,100),v:iu(x.v,0,100)};p(g),s(hl(g)),t(hl(g))},S=x=>{let g=x.currentTarget.getBoundingClientRect();b({...m,s:(x.clientX-g.left)/g.width*100,v:100-(x.clientY-g.top)/g.height*100})};return(0,W.jsxs)("div",{className:B("nodedc-color-field",n),style:h,children:[(0,W.jsx)(ya,{className:"nodedc-color-field__dropdown",placement:"bottom-start",minWidth:296,width:296,disabled:l,surfaceRole:"dialog",surfaceClassName:"nodedc-color-palette-surface",trigger:({open:x,toggle:g,setTriggerRef:y,surfaceId:v})=>(0,W.jsx)("button",{ref:y,type:"button",className:"nodedc-color-field__picker","aria-label":`\u0412\u044B\u0431\u0440\u0430\u0442\u044C ${a}`,"aria-haspopup":"dialog","aria-controls":v,"aria-expanded":x,"data-open":x?"true":void 0,disabled:l,onClick:g,children:(0,W.jsx)("span",{"aria-hidden":"true"})}),children:(0,W.jsxs)("div",{className:"nodedc-color-palette","aria-label":`\u041F\u0430\u043B\u0438\u0442\u0440\u0430: ${a}`,children:[(0,W.jsx)("div",{className:"nodedc-color-palette__spectrum",role:"slider",tabIndex:l?-1:0,"aria-label":`${a}: \u043D\u0430\u0441\u044B\u0449\u0435\u043D\u043D\u043E\u0441\u0442\u044C \u0438 \u044F\u0440\u043A\u043E\u0441\u0442\u044C`,"aria-valuetext":hl(m),style:{"--nodedc-color-hue":hl({h:m.h,s:100,v:100}),"--nodedc-color-s":`${m.s}%`,"--nodedc-color-v":`${100-m.v}%`},onPointerDown:x=>{l||(x.currentTarget.setPointerCapture(x.pointerId),S(x))},onPointerMove:x=>{x.currentTarget.hasPointerCapture(x.pointerId)&&S(x)},onPointerUp:x=>{x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId)},onKeyDown:x=>{let g=x.shiftKey?10:2;x.key==="ArrowLeft"&&(x.preventDefault(),b({...m,s:m.s-g})),x.key==="ArrowRight"&&(x.preventDefault(),b({...m,s:m.s+g})),x.key==="ArrowDown"&&(x.preventDefault(),b({...m,v:m.v-g})),x.key==="ArrowUp"&&(x.preventDefault(),b({...m,v:m.v+g}))},children:(0,W.jsx)("span",{className:"nodedc-color-palette__marker","aria-hidden":"true"})}),(0,W.jsxs)("label",{className:"nodedc-color-palette__hue",children:[(0,W.jsx)("span",{children:"\u041E\u0442\u0442\u0435\u043D\u043E\u043A"}),(0,W.jsx)("input",{type:"range",min:0,max:360,value:Math.round(m.h),"aria-label":`${a}: \u043E\u0442\u0442\u0435\u043D\u043E\u043A`,disabled:l,onChange:x=>b({...m,h:Number(x.target.value)})})]}),(0,W.jsx)("div",{className:"nodedc-color-palette__presets","aria-label":"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u0446\u0432\u0435\u0442\u0430",children:d4.map(x=>(0,W.jsx)("button",{type:"button","aria-label":`\u0412\u044B\u0431\u0440\u0430\u0442\u044C ${x}`,"aria-pressed":hl(m).toLowerCase()===x,style:{"--nodedc-palette-swatch":x},onClick:()=>{let g=db(x);g&&b(g)}},x))})]})}),(0,W.jsx)("input",{className:"nodedc-color-field__text",...i,value:u,"aria-label":`${a}: HEX`,disabled:l,spellCheck:!1,onChange:x=>{let g=x.target.value;s(g),tp(g)&&t(`#${g.trim().replace(/^#/,"").toLowerCase()}`)},onBlur:x=>{s(tp(u)?`#${u.trim().replace(/^#/,"").toLowerCase()}`:e),o?.(x)},onKeyDown:x=>{x.key==="Escape"&&(x.preventDefault(),x.stopPropagation(),s(e)),x.key==="Enter"&&(x.preventDefault(),x.currentTarget.blur()),r?.(x)}})]})}var cb=E(z(),1);var np=E(z(),1),fb=E(q(),1);var SN=(0,fb.forwardRef)(function({active:t,className:a,type:n="button",...l},o){return(0,np.jsx)("button",{...l,ref:o,type:n,className:B("nodedc-segmented__item",a),"data-active":t?"true":void 0})});var mb=E(z(),1);function pb({tone:e="neutral",variant:t="badge",pulse:a=!1,className:n,children:l,...o}){return(0,mb.jsx)("span",{className:B("nodedc-status",n),"data-tone":e==="neutral"?void 0:e,"data-variant":t==="indicator"?t:void 0,"data-pulse":a?"true":void 0,...o,children:t==="indicator"?null:l})}var yt=E(z(),1);function cd({eyebrow:e,title:t,description:a,actions:n,children:l,align:o="start",className:r,...i}){return(0,yt.jsxs)("section",{className:B("nodedc-settings-card",r),"data-align":o==="center"?"center":void 0,...i,children:[(0,yt.jsxs)("header",{className:"nodedc-settings-card__head",children:[(0,yt.jsxs)("div",{className:"nodedc-settings-card__titles",children:[e?(0,yt.jsx)("span",{children:e}):null,(0,yt.jsx)("h2",{children:t}),a?(0,yt.jsx)(lv,{children:a}):null]}),n?(0,yt.jsx)("div",{className:"nodedc-settings-card__actions",children:n}):null]}),o==="center"&&(l==null||l===!1)?null:(0,yt.jsx)("div",{className:"nodedc-settings-card__body",children:l})]})}function lp({checked:e,label:t,disabled:a=!1,onChange:n}){return(0,yt.jsxs)("button",{type:"button",className:"nodedc-switch",role:"switch","aria-checked":e,disabled:a,onClick:()=>n(!e),children:[(0,yt.jsx)("span",{className:"nodedc-switch__track","aria-hidden":"true",children:(0,yt.jsx)("span",{})}),(0,yt.jsx)("span",{children:t})]})}var op=E(z(),1),rp=E(q(),1);var gb=E(z(),1),fd=E(q(),1);var hb=E(q(),1);var yb=E(z(),1),xb=E(q(),1),h4=E(ea(),1);var ue=E(z(),1);function vb({displayName:e,variant:t="header",subtitle:a,avatarUrl:n,coverImageUrl:l,triggerLabel:o,triggerIcon:r,actions:i}){let u=e||"NODE.DC";return(0,ue.jsx)(ya,{placement:"bottom-end",width:296,offset:10,surfaceClassName:"nodedc-user-profile-menu",trigger:({open:s,toggle:f,setTriggerRef:m,setAnchorRef:p,surfaceId:h})=>t==="header"?(0,ue.jsxs)(Wx,{ref:p,children:[(0,ue.jsx)(Jx,{"aria-haspopup":"menu","aria-expanded":s,"aria-controls":h,onClick:b=>{m(b.currentTarget),f()},children:o??"\u041F\u0440\u043E\u0444\u0438\u043B\u044C"}),(0,ue.jsx)(gt,{ref:m,label:`\u041C\u0435\u043D\u044E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F ${u}`,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":h,onClick:b=>{m(b.currentTarget),f()},children:(0,ue.jsx)(ie,{name:r??"inbox",size:20,strokeWidth:1.7})}),(0,ue.jsx)("button",{type:"button",className:"nodedc-user-profile-menu__trigger","aria-label":`\u041F\u0440\u043E\u0444\u0438\u043B\u044C ${u}`,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":h,onClick:b=>{m(b.currentTarget),f()},children:(0,ue.jsx)(vo,{label:u,imageUrl:n})})]}):(0,ue.jsxs)("button",{ref:m,type:"button",className:"nodedc-user-profile-menu__trigger",title:u,"aria-label":`\u041C\u0435\u043D\u044E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F ${u}`,"aria-expanded":s,"aria-controls":h,onClick:f,children:[o===null?null:(0,ue.jsx)("span",{className:"nodedc-user-profile-menu__trigger-label",children:o??u}),r?(0,ue.jsx)(ie,{name:r,size:18}):null,(0,ue.jsx)(vo,{label:u,imageUrl:n})]}),children:({close:s})=>(0,ue.jsxs)("div",{className:"nodedc-user-profile-card",children:[(0,ue.jsxs)("div",{className:"nodedc-user-profile-card__cover",style:l?{backgroundImage:`linear-gradient(180deg, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.52)), url(${JSON.stringify(l)})`}:void 0,children:[(0,ue.jsx)(vo,{label:u,imageUrl:n}),(0,ue.jsx)("strong",{children:u}),a?(0,ue.jsx)("span",{children:a}):null]}),(0,ue.jsx)("div",{className:"nodedc-user-profile-card__actions",children:i.map(f=>{let m=(0,ue.jsxs)(ue.Fragment,{children:[f.icon?(0,ue.jsx)(ie,{name:f.icon,size:16}):(0,ue.jsx)("span",{}),(0,ue.jsx)("span",{children:f.label})]});return f.href&&!f.disabled?(0,ue.jsx)("a",{className:"nodedc-user-profile-card__action","data-tone":f.tone==="danger"?"danger":void 0,href:f.href,onClick:()=>s(),children:m},f.id):(0,ue.jsx)("button",{type:"button",className:"nodedc-user-profile-card__action","data-tone":f.tone==="danger"?"danger":void 0,disabled:f.disabled,onClick:()=>{f.onSelect?.(),s()},children:m},f.id)})})]})})}var bb=E(z(),1),md=E(q(),1);var Lb=E(z(),1),up=E(q(),1);var ip=E(z(),1),pd=E(q(),1);var sR=["image/png","image/jpeg","image/gif","image/webp","image/avif","video/mp4","video/webm","video/quicktime",".png",".jpg",".jpeg",".gif",".webp",".avif",".mp4",".webm",".mov"].join(",");var g4=E(z(),1),sp=E(q(),1);var Sb=E(z(),1);var Cb=E(z(),1),wb=E(q(),1);var y4=(0,wb.forwardRef)(function({pressed:t=!1,label:a,children:n,className:l,type:o="button",disabled:r,...i},u){return(0,Cb.jsx)("button",{...i,ref:u,type:o,disabled:r,"aria-label":a,title:a,"aria-pressed":t&&!r,className:B("nodedc-key-button",l),children:n})});var Ib=E(z(),1),dp=E(q(),1);var kb=E(z(),1),x4=E(q(),1);var Eb=E(z(),1),Mb=E(q(),1);var v4=(0,Mb.forwardRef)(function({className:t,...a},n){return(0,Eb.jsx)(la,{...a,ref:n,variant:"ghost",size:"dense",className:B("nodedc-scene-annotation",t)})});var Ab=E(z(),1);var xa=E(q(),1),Bb=E(Lm(),1),Ob=E(ea(),1);function Db({root:e,navigationOpen:t=!1,activeView:a=null,contentExpanded:n=!0,onChange:l}={}){let o={navigationOpen:t||a!==null,activeView:a,contentOpen:a!==null,contentExpanded:n},r=i=>{o={...o,...i},o.contentOpen=o.activeView!==null,e?.toggleAttribute("data-navigation-open",o.navigationOpen),e?.toggleAttribute("data-content-open",o.contentOpen),e?.toggleAttribute("data-content-expanded",o.contentOpen&&o.contentExpanded),l?.({...o})};return r({}),{getState:()=>({...o}),openNavigation:()=>r({navigationOpen:!0}),toggleNavigation:()=>r({navigationOpen:!o.navigationOpen,activeView:o.navigationOpen?null:o.activeView}),closeNavigation:()=>r({navigationOpen:!1,activeView:null}),openView:i=>r({navigationOpen:!0,activeView:i,contentExpanded:!0}),closeView:()=>r({activeView:null}),setContentExpanded:i=>r({contentExpanded:i})}}var Tb=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[tabindex]:not([tabindex='-1'])"].join(",");function cp({overlay:e,dialog:t,closeControls:a=[],closeOnBackdrop:n=!0,closeOnEscape:l=!0,lockBodyScroll:o=!0,onOpenChange:r}){let i=!1,u=null,s="",f=Array.from(a);e.classList.add("nodedc-overlay","nodedc-ui-root"),t.classList.add("nodedc-window"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.tabIndex=-1,e.hidden=!0;let m=()=>{(t.querySelector(Tb)??t).focus()},p=()=>{i||(i=!0,u=document.activeElement instanceof HTMLElement?document.activeElement:null,s=document.body.style.overflow,o&&(document.body.style.overflow="hidden"),e.hidden=!1,requestAnimationFrame(m),r?.(!0))},h=()=>{i&&(i=!1,e.hidden=!0,o&&(document.body.style.overflow=s),u?.focus(),r?.(!1))},b=x=>{n&&x.target===e&&h()},S=x=>{if(!i)return;if(x.key==="Escape"&&l){x.preventDefault(),h();return}if(x.key!=="Tab")return;let g=Array.from(t.querySelectorAll(Tb));if(g.length===0){x.preventDefault(),t.focus();return}let y=g[0],v=g[g.length-1];x.shiftKey&&document.activeElement===y?(x.preventDefault(),v.focus()):!x.shiftKey&&document.activeElement===v&&(x.preventDefault(),y.focus())};return e.addEventListener("pointerdown",b),document.addEventListener("keydown",S),f.forEach(x=>x.addEventListener("click",h)),{open:p,close:h,isOpen:()=>i,destroy:()=>{h(),e.removeEventListener("pointerdown",b),document.removeEventListener("keydown",S),f.forEach(x=>x.removeEventListener("click",h))}}}function Nb(e,t,a={width:320,height:200}){let n=(l,o,r)=>Math.max(Math.min(r,Math.max(1,o-32)),Math.min(l,Math.max(1,o-32)));return{width:n(e.width,t.width,a.width),height:n(e.height,t.height,a.height)}}function Rb({dialog:e,initialSize:t,minimum:a,onSizeCommit:n}){let l=e.querySelector(".nodedc-window__head"),o={width:e.style.width,height:e.style.height,maxHeight:e.style.maxHeight,tab:l?.getAttribute("tabindex"),title:l?.getAttribute("title")},r={...t},i=null,u=()=>({width:window.innerWidth,height:window.innerHeight}),s=()=>e.getClientRects().length>0,f=(x=r)=>{let g=Nb(x,u(),a);return e.style.width=`${g.width}px`,e.style.height=`${g.height}px`,e.style.maxHeight="calc(100dvh - 2rem)",g},m=["n","s","e","w","ne","nw","se","sw"].map(x=>{let g=document.createElement("div");return g.className="nodedc-window__resize",g.dataset.edge=x,g.setAttribute("aria-hidden","true"),g.addEventListener("pointerdown",y=>{if(y.button!==0||i)return;let v=e.getBoundingClientRect();i={id:y.pointerId,x:y.clientX,y:y.clientY,edge:x,size:{width:v.width,height:v.height},before:r},g.setPointerCapture(y.pointerId),y.preventDefault()}),e.append(g),g}),p=x=>{if(!i||x.pointerId!==i.id)return;let{size:g,edge:y,x:v,y:L}=i;r=f({width:g.width+(x.clientX-v)*(y.includes("e")?2:y.includes("w")?-2:0),height:g.height+(x.clientY-L)*(y.includes("s")?2:y.includes("n")?-2:0)}),x.preventDefault()},h=x=>{if(!i||x.pointerId!==i.id)return;let g=i.before;if(i=null,x.type==="pointercancel"){r=g,f();return}(r.width!==g.width||r.height!==g.height)&&n?.({...r})},b=x=>{if(x.target!==l||!x.shiftKey||!x.key.startsWith("Arrow"))return;x.preventDefault();let g=Nb(r,u(),a);r=f({width:g.width+(x.key==="ArrowRight"?20:x.key==="ArrowLeft"?-20:0),height:g.height+(x.key==="ArrowDown"?20:x.key==="ArrowUp"?-20:0)}),n?.({...r})},S=()=>{s()&&!i&&f()};return l&&(l.tabIndex=0,l.title="\u0420\u0430\u0437\u043C\u0435\u0440 \u043E\u043A\u043D\u0430: Shift + \u0441\u0442\u0440\u0435\u043B\u043A\u0438. \u041C\u044B\u0448\u044C\u044E \u2014 \u0437\u0430 \u043A\u0440\u0430\u0439 \u0438\u043B\u0438 \u0443\u0433\u043E\u043B.",l.addEventListener("keydown",b)),window.addEventListener("pointermove",p),window.addEventListener("pointerup",h),window.addEventListener("pointercancel",h),window.addEventListener("resize",S),f(),{refresh:S,setSize(x){i||(r={...x},f())},destroy(){window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),window.removeEventListener("resize",S),l?.removeEventListener("keydown",b),m.forEach(x=>x.remove());for(let x of["width","height","maxHeight"])e.style[x]=o[x];if(l)for(let[x,g]of[["tabindex",o.tab],["title",o.title]])g==null?l.removeAttribute(x):l.setAttribute(x,g)}}}var b4=()=>({schemaVersion:1,appearance:{theme:"dark",accent:null},gui:{modals:{}}});function fp(e,t){let a=structuredClone(e);Object.assign(a.appearance,t.appearance);for(let[n,l]of Object.entries(t.gui?.modals||{}))l===null?delete a.gui.modals[n]:a.gui.modals[n]=l;return a}var mp=class{value=b4();status="loading";listeners=new Set;pending=[];running=!1;constructor(){this.ready=this.load()}subscribe(t){return this.listeners.add(t),t(this.value,this.status),()=>this.listeners.delete(t)}notify(){for(let t of this.listeners)t(this.value,this.status)}async request(t="GET",a,n={}){let l=await fetch("/api/user/preferences",{method:t,credentials:"same-origin",headers:{"content-type":"application/json",...n},body:a?JSON.stringify(a):void 0});if(!l.ok)throw new Error("\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430");return l.json()}async load(){try{let t=await this.request(),a;try{a=JSON.parse(localStorage.getItem("dc-cms.ui-preferences.v1"))}catch{}if(!t.exists&&a){let n={theme:a.theme==="light"?"light":"dark",accent:/^#[a-f\d]{6}$/i.test(a.accent||"")?a.accent:null};t=await this.request("PATCH",{appearance:n},{"if-none-match":"*"})}try{localStorage.removeItem("dc-cms.ui-preferences.v1")}catch{}this.value=this.pending.reduce(fp,t.preferences),this.status="saved"}catch{this.status="error"}this.notify()}update(t){this.pending.push(structuredClone(t)),this.value=fp(this.value,t),this.status="saving",this.notify(),this.flush()}async flush(){if(await this.ready,!this.running){this.running=!0;try{for(;this.pending.length;){this.status="saving",this.notify();let t=await this.request("PATCH",this.pending[0]);this.pending.shift(),this.value=this.pending.reduce(fp,t.preferences)}this.status="saved"}catch{this.status="error"}finally{this.running=!1,this.notify()}}}modalSize(t){return this.value.gui.modals[t]}setModalSize(t,a){this.update({gui:{modals:{[t]:{width:Math.round(a.width),height:Math.round(a.height)}}}})}},it=new mp;var xt=xa.default.createElement,L4={theme:"dark",accent:null};function S4(e){return{theme:e?.theme==="light"?"light":"dark",accent:/^#[\da-f]{6}$/i.test(e?.accent||"")?e.accent.toLowerCase():null}}function _b(e){let t=e.accent?.match(/[\da-f]{2}/gi).map(a=>parseInt(a,16));Fm(document.documentElement),Pm(document.documentElement,{...e.theme==="light"?Hm:Um,accent:t})}function C4(){return"#"+getComputedStyle(document.documentElement).getPropertyValue("--nodedc-accent-rgb").trim().split(/\s+/).map(e=>Number(e).toString(16).padStart(2,"0")).join("")}function w4({initial:e}){let[t,a]=(0,xa.useState)(e),[n,l]=(0,xa.useState)(!1),[o,r]=(0,xa.useState)(null),[i,u]=(0,xa.useState)(it.status);(0,xa.useEffect)(()=>{let h=new AbortController;fetch("/api/me",{credentials:"same-origin",signal:h.signal}).then(S=>S.ok?S.json():null).then(r).catch(()=>{});let b=it.subscribe((S,x)=>{let g=S4(S.appearance);_b(g),a(g),u(x)});return()=>{h.abort(),b()}},[]);function s(h){it.update({appearance:h})}let f=o?.user,m=f?.name||f?.username||"\u041F\u0440\u043E\u0444\u0438\u043B\u044C",p=[{id:"appearance",label:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430",icon:"settings",onSelect:()=>l(!0)}];return o?.authEnabled&&p.push({id:"logout",label:"\u0412\u044B\u0439\u0442\u0438",icon:"external",href:"/auth/logout"}),xt(xa.default.Fragment,null,xt(vb,{displayName:m,subtitle:f?.email||void 0,avatarUrl:f?.picture||void 0,triggerLabel:"\u041F\u0440\u043E\u0444\u0438\u043B\u044C",triggerIcon:"inbox",actions:p}),xt(Wm,{open:n,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",subtitle:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441 CMS",identity:{title:m,subtitle:"NODE.DC CMS",avatarLabel:m,avatarUrl:f?.picture||void 0},sections:[{id:"appearance",label:"\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435",icon:"settings",group:"\u041E\u0431\u0449\u0438\u0435"}],activeSection:"appearance",onSectionChange:()=>{},onClose:()=>l(!1),footer:xt(la,{onClick:()=>s(L4),tone:"neutral"},"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435")},xt("div",{className:"cms-preferences-fields"},xt(cd,{title:"\u0422\u0435\u043C\u0430",description:"\u0421\u0432\u0435\u0442\u043B\u044B\u0439 \u0438\u043B\u0438 \u0442\u0451\u043C\u043D\u044B\u0439 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441",actions:xt("div",{className:"cms-preference-controls"},xt(ml,{label:"\u0422\u0435\u043C\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430",value:t.theme,options:[{value:"dark",label:"\u0422\u0451\u043C\u043D\u0430\u044F"},{value:"light",label:"\u0421\u0432\u0435\u0442\u043B\u0430\u044F"}],onChange:h=>s({theme:h})}))}),xt(cd,{title:"\u0410\u043A\u0446\u0435\u043D\u0442\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",description:"\u0426\u0432\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432",actions:xt("div",{className:"cms-preference-controls"},xt(dd,{label:"\u0410\u043A\u0446\u0435\u043D\u0442\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",value:t.accent||C4(),onChange:h=>s({accent:h})}))})),xt("p",{className:"nodedc-description",role:"status"},i==="error"?"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043E\u0441\u0442\u0430\u044E\u0442\u0441\u044F \u0432 \u044D\u0442\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.":i==="saved"?"\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u0440\u0430\u0437\u043C\u0435\u0440\u044B \u043E\u043A\u043E\u043D \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u044E\u0442\u0441\u044F \u0432 \u043F\u0440\u043E\u0444\u0438\u043B\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F.":"\u0421\u0438\u043D\u0445\u0440\u043E\u043D\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u2026"),i==="error"?xt(la,{onClick:()=>it.pending.length?it.flush():it.load()},"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"):null))}function zb(){let e=it.value.appearance;_b(e),(0,Ob.flushSync)(()=>(0,Bb.createRoot)(document.querySelector("#cms-profile")).render(xt(w4,{initial:e})))}var Ne=qb.default.createElement,R=(e,t=document)=>t.querySelector(e),ye=(e,t=document)=>[...t.querySelectorAll(e)],Bn=e=>R(`#ds-${e}`).content.firstElementChild.cloneNode(!0);function Fe(e,t){e&&e.classList.add(...t.split(" "))}var su=new Map,uu=[],pp=!1,hp,I4=0,hd;function Ha(){pp||(pp=!0,queueMicrotask(()=>{pp=!1,gp()}))}function On(e){let t=su.get(e);if(!t){let a=document.createElement("span");a.className="cms-ui-island",e.after(a),e.hidden=!0,e.tabIndex=-1,e.setAttribute("aria-hidden","true"),t={host:a,root:(0,Ub.createRoot)(a),signature:""},su.set(e,t)}return t}function k4(){for(let e of ye("select")){let t=On(e),a=[...e.options].map(r=>({value:r.value,label:e.id==="site-selector"?r.textContent.replace(/^NODE\.?DC\s*[—–-]\s*/i,""):r.textContent,disabled:r.disabled})),n=e.getAttribute("aria-label")||e.closest("label")?.querySelector(".nodedc-field__label")?.textContent||"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",l=JSON.stringify([e.value,a,e.disabled,n]);if(l===t.signature)continue;t.signature=l,(0,Pa.flushSync)(()=>t.root.render(Ne(ml,{variant:e.id==="site-selector"?"split":"integrated",shape:e.id==="site-selector"?"pill":"default",value:e.value,options:a,label:n,disabled:e.disabled,onChange:r=>{e.value=r,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),Ha()}}))),e.id&&e.closest("label")?.setAttribute("for",e.id+"-trigger");let o=R("button",t.host);o&&e.id&&(o.id=e.id+"-trigger")}}function E4(){for(let e of ye("input[type=checkbox]")){let t=e.closest("label")||e.parentElement,a=su.get(e);if(!a){let l=t.querySelector(".field-label-text")?.textContent||[...t.childNodes].filter(o=>o!==e).map(o=>o.textContent).join(" ").trim()||e.getAttribute("aria-label")||"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E";a=On(e),a.label=l.replace(/\s+/g," ").trim();for(let o of[...t.childNodes])o!==e&&o!==a.host&&!(o.nodeType===1&&o.matches("input,select,textarea"))&&(o.nodeType===1?o.hidden=!0:o.nodeType===3&&(o.textContent=""));t.classList.contains("link-mode-row")||t.classList.add("cms-switch-binding");for(let o of ye("input:not([type=checkbox])",t))o.setAttribute("aria-label",a.label);t.addEventListener("click",o=>{o.target.closest("button")&&o.preventDefault()})}let n=JSON.stringify([e.checked,e.disabled]);n!==a.signature&&(a.signature=n,(0,Pa.flushSync)(()=>a.root.render(Ne(lp,{checked:e.checked,disabled:e.disabled,label:a.label,onChange:l=>{e.checked=l,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),Ha()}}))))}}function M4(){for(let e of ye("input[type=range]")){if(e.closest(".cms-ui-island,.nodedc-color-palette-surface"))continue;let t=On(e),a=e.closest(".range-field"),n=a?.querySelector(".range-value");n&&(n.hidden=!0);let l=a?.querySelector(".field-label-text")?.textContent||"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",o=JSON.stringify([e.value,e.min,e.max,e.step,e.disabled]);if(o===t.signature)continue;t.signature=o;let r=Number(e.min),i=Number(e.max);(0,Pa.flushSync)(()=>t.root.render(Ne(ap,{label:l,value:Number(e.value),min:r,max:i,step:e.step,exactValueBounds:{min:r,max:i},disabled:e.disabled,onChange:u=>{e.value=String(u),e.dispatchEvent(new Event("input",{bubbles:!0})),Ha()}})))}}function A4(){for(let e of ye("input[data-color-field]")){let t=On(e),a=e.dataset.colorField,n=JSON.stringify([a,e.value]);t.signature!==n&&(t.signature=n,(0,Pa.flushSync)(()=>t.root.render(Ne(dd,{label:a,value:e.value,onChange:l=>{e.value=l,e.dispatchEvent(new Event("input",{bubbles:!0})),Ha()}}))))}}function D4(){for(let e of ye(".publish-progress-track")){let t=On(e),a=Number(e.getAttribute("aria-valuenow")||0);t.signature!==String(a)&&(t.signature=String(a),(0,Pa.flushSync)(()=>t.root.render(Ne(nu,{label:"\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438",value:a/100}))))}}function T4(){for(let e of ye(".field-control:not(.boolean-field):not(.service-media-field),.json-field,.media-search,.site-dialog label")){if(e.dataset.dsField)continue;e.dataset.dsField="true",Fe(e,"nodedc-field");let t=R(":scope > .field-label-row",e),a=t?.querySelector(".field-label-text")||R(":scope > span:not(.field-kind):not(.field-path):not(.field-hint)",e);if(!t){if(t=Bn("field").querySelector(".nodedc-field__label-row"),a)t.querySelector(".nodedc-field__label").replaceWith(a);else{a=t.querySelector(".nodedc-field__label"),a.textContent=[...e.childNodes].filter(l=>l.nodeType===3).map(l=>l.textContent).join(" ").trim();for(let l of[...e.childNodes])l.nodeType===3&&(l.textContent="")}e.prepend(t)}Fe(t,"nodedc-field__label-row"),Fe(a||R(".field-label-text",t),"nodedc-field__label");let n=R("input:not([type=hidden]):not([type=checkbox]),textarea,select",e);n&&!n.id&&(n.id="cms-field-"+ ++I4),n&&e.tagName==="LABEL"&&(e.htmlFor=n.id);for(let l of ye(".field-hint,.group-desc",e))Fe(l,"nodedc-field__description")}for(let e of ye("input:not([type=hidden]):not([type=checkbox]):not([type=file]):not([type=range]),textarea"))e.closest(".cms-ui-island")||Fe(e,"nodedc-field__control")}function N4(){for(let e of ye(".collection-item-card,.json-details")){if(e.dataset.dsSurface)continue;let t=Bn("nestedSurface");for(let a of t.attributes)a.name==="class"?Fe(e,a.value):e.setAttribute(a.name,a.value);e.dataset.dsSurface="true"}for(let e of ye(".settings-card,.content-group,.content-panel")){if(e.dataset.dsCard)continue;e.dataset.dsCard="true",Fe(e,e.querySelector(":scope > #content-fields")?"cms-content-section":"nodedc-settings-card");let t=R(":scope > .card-head,:scope > .group-head,:scope > .panel-head,:scope > .publish-progress-head",e),a=Bn("card"),n=R(".nodedc-settings-card__head",a),l=R(".nodedc-settings-card__titles",a),o=R(".nodedc-settings-card__body",a);if(n.replaceChildren(l),l.replaceChildren(),o.replaceChildren(),t){let r=R("h3,h2",t)||t,i=R(".section-kicker",t);if(i&&l.append(i),r?.hasAttribute("data-publish-title"))l.append(r);else if(r===t){let s=document.createElement("h2");for(let f of[...r.childNodes])(f.nodeType===3||f.nodeType===1&&!f.matches("label,button"))&&s.append(f);l.append(s);for(let f of[...r.children])n.append(f)}else if(r){let s=document.createElement("h2");for(let f of r.attributes)s.setAttribute(f.name,f.value);s.append(...r.childNodes),l.append(s)}let u=R(".project-settings-hint,.panel-note,.group-desc",t)||R(":scope > .group-desc",e);if(u){let s=document.createElement("p");for(let f of u.attributes)s.setAttribute(f.name,f.value);s.classList.add("nodedc-description"),s.append(...u.childNodes),u.remove(),l.append(s)}for(let s of ye(":scope > .toggle-row,:scope > .button-row,:scope > .group-head-toggle,:scope > [data-publish-percent]",t))n.append(s);t.remove()}else n.remove();o.append(...e.childNodes),e.append(...a.childNodes)}}var R4={"move-up":"chevron-up","move-down":"chevron-down",duplicate:"copy",copy:"copy","paste-after":"clipboard","delete-block":"trash","template-modal-close":"close","media-modal-close":"close","media-trash-toggle":"trash","media-delete":"trash"};function B4(){for(let e of ye("button")){if(e.closest(".cms-ui-island,.nodedc-color-palette-surface")||e.className.includes("nodedc-")||e.matches(".media-entry,.knowledge-tree-select,.service-media-source-button,.service-media-file-button,.media-breadcrumb-button,.template-card"))continue;let t=e.matches(".icon-action-btn,.collection-icon-btn,.knowledge-tree-action,.secret-toggle-button,.collection-drag-handle,.modal-close-button,.media-header-action"),a=Bn(t?"iconButton":"button");if(Fe(e,a.className),t){let n=e.getAttribute("aria-label")||e.title||e.textContent;e.setAttribute("aria-label",n),e.title=n;let l=R4[e.id]||(e.classList.contains("secret-toggle-button")?"eye":/удал/i.test(n)?"trash":/добав/i.test(n)?"plus":/выше|вверх|поднять/i.test(n)?"chevron-up":/ниже|вниз|опустить/i.test(n)?"chevron-down":/коп|дублир/i.test(n)?"copy":"move");e.replaceChildren(e.matches(".collection-drag-handle")?Bn("dragHandle").firstElementChild:Bn("icon-"+l))}else{e.dataset.variant=e.matches(".primary-btn,[type=submit]")?"primary":e.matches(".danger-btn")?"danger":"secondary",e.dataset.tone="neutral";let n=a.firstElementChild;n.replaceChildren(...e.childNodes),e.append(n)}}}function O4(){for(let e of ye(".block-btn,.knowledge-tree-select")){Fe(e,"nodedc-admin-panel__nav-item"),e.dataset.active=String(e.classList.contains("active")||e.closest(".knowledge-tree-row")?.dataset.active==="true");let t=R(".block-name,.knowledge-tree-title",e);t&&(e.title=t.textContent);let a=R(".block-icon,.knowledge-tree-icon",e);a&&!a.dataset.dsIcon&&(a.dataset.dsIcon="true",Fe(a,"nodedc-admin-panel__nav-icon"),a.replaceChildren(Bn("icon-"+(e.classList.contains("knowledge-tree-select")?"file":"layers"))));let n=R(".block-drag-handle",e);n&&(Fe(n,"nodedc-drag-handle"),n.dataset.dsIcon||(n.dataset.dsIcon="true",n.replaceChildren(Bn("dragHandle").firstElementChild)))}for(let e of ye(".region-title"))Fe(e,"nodedc-admin-panel__group-label")}function _4(){for(let e of ye(".knowledge-tree-actions")){let t=ye(":scope > button",e);if(t.length<2)continue;let a=On(e),n=e.closest(".knowledge-tree-row")?.querySelector(".knowledge-tree-title")?.textContent||"\u041C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",l=t.map(r=>({label:r.title||r.getAttribute("aria-label"),disabled:r.disabled})),o=JSON.stringify([n,l]);o!==a.signature&&(a.signature=o,(0,Pa.flushSync)(()=>a.root.render(Ne(ya,{minWidth:240,placement:"bottom-end",trigger:r=>Ne(gt,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F: "+n,ref:i=>{r.setAnchorRef(i),r.setTriggerRef(i)},onClick:r.toggle,"aria-expanded":r.open,"aria-controls":r.surfaceId,"aria-haspopup":"menu"},Ne(ie,{name:"chevron-down"}))},({close:r})=>t.map((i,u)=>Ne("button",{key:u,type:"button",role:"menuitem",className:"nodedc-dropdown-option",disabled:i.disabled,onClick:()=>{r(),i.click()}},Ne("span",null),Ne("span",{className:"nodedc-dropdown-option__body"},Ne("span",{className:"nodedc-dropdown-option__label"},l[u].label))))))))}}function z4(){let e=matchMedia("(max-width:760px)").matches,t=R("#dirty-state"),a=On(t),n=t.dataset.dirty==="true"?"warning":"neutral",l=t.textContent,o=JSON.stringify([n,l,e]);a.signature!==o&&(a.signature=o,(0,Pa.flushSync)(()=>a.root.render(Ne(pb,{tone:n,variant:e?"indicator":"badge",title:l,"aria-label":l,role:"status"},e?null:l))));let r=R("#cms-mobile-actions-binding");r||(r=document.createElement("span"),r.id="cms-mobile-actions-binding",R(".cms-editor-actions").append(r));let i=On(r),u=["reload","render","publish"].map(m=>R("#"+m));for(let m of u)m.hidden=e;if(i.host.hidden=!e,!e)return;let s=u.filter(m=>!m.classList.contains("hidden")).map(m=>({button:m,label:m.id==="reload"?"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435":m.textContent,disabled:m.disabled})),f=JSON.stringify(s.map(({label:m,disabled:p})=>[m,p]));i.signature!==f&&(i.signature=f,(0,Pa.flushSync)(()=>i.root.render(Ne(ya,{minWidth:240,placement:"bottom-end",trigger:m=>Ne(gt,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441 \u0441\u0430\u0439\u0442\u043E\u043C",ref:p=>{m.setAnchorRef(p),m.setTriggerRef(p)},onClick:m.toggle,"aria-expanded":m.open,"aria-controls":m.surfaceId,"aria-haspopup":"menu"},Ne(ie,{name:"chevron-down"}))},({close:m})=>s.map(({button:p,label:h,disabled:b})=>Ne("button",{key:p.id,type:"button",role:"menuitem",className:"nodedc-dropdown-option",disabled:b,onClick:()=>{m(),p.click()}},Ne("span",null),Ne("span",{className:"nodedc-dropdown-option__body"},Ne("span",{className:"nodedc-dropdown-option__label"},h))))))))}function q4(){let e={".service-media-field":"nodedc-media-field",".field-label-row":"nodedc-media-field__label-row",".field-label-text":"nodedc-media-field__label",".service-media-control":"nodedc-media-control",".service-media-file-control":"nodedc-media-file",".service-media-file-button":"nodedc-media-file__button",".service-media-file-name":"nodedc-media-file__name",".service-media-url-input":"nodedc-media-url",".service-media-source-switch":"nodedc-media-source-switch",".service-media-source-button":"nodedc-media-source-button",".service-media-preview":"nodedc-media-preview",".media-upload-hint":"nodedc-media-field__hint",".media-upload-error":"nodedc-media-field__error"};for(let t of ye(".service-media-field")){for(let[n,l]of Object.entries(e))for(let o of t.matches(n)?[t]:ye(n,t))Fe(o,l);for(let n of ye(".service-media-source-button",t))n.setAttribute("aria-pressed",n.dataset.active);let a=R(".service-media-control",t);a&&(a.dataset.source=R(".service-media-url-input",t).hidden?"file":"url")}}function U4(){for(let e of ye(".template-modal-layer")){let t=R(":scope > article",e),a=R(":scope > header",t),n=R(":scope > footer",t),l=document.createElement("div");l.className="nodedc-window__body";for(let u of[...t.children])u!==a&&u!==n&&l.append(u);a&&(Fe(a,"nodedc-window__head"),Fe(R("h2",a),"nodedc-window__title")),n&&Fe(n,"nodedc-window__footer"),t.replaceChildren(...[a,l,n].filter(Boolean)),t.dataset.size=e.id==="media-modal"||e.id==="template-modal"?"lg":"sm",Fe(t,"nodedc-glass nodedc-material-rim"),t.dataset.tone="strong";let o=e.getAttribute("aria-labelledby");o&&t.setAttribute("aria-labelledby",o),e.removeAttribute("role"),e.removeAttribute("aria-modal");let r=cp({overlay:e,dialog:t,closeOnBackdrop:!1,closeOnEscape:!1,lockBodyScroll:!1}),i;e.id==="media-modal"&&(i=Rb({dialog:t,initialSize:it.modalSize("media-library")||{width:1280,height:820},minimum:{width:640,height:480},onSizeCommit:u=>it.setModalSize("media-library",u)}),it.subscribe((u,s)=>{let f=u.gui.modals["media-library"];f&&i.setSize(f);let m=R("#media-size-status");m.textContent=s==="error"?"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0440\u0430\u0437\u043C\u0435\u0440 \u043E\u043A\u043D\u0430.":s==="saving"?"\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0440\u0430\u0437\u043C\u0435\u0440\u0430\u2026":"\u0420\u0430\u0437\u043C\u0435\u0440 \u043E\u043A\u043D\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F \u0432 \u043F\u0440\u043E\u0444\u0438\u043B\u0435",R("#media-size-retry").hidden=s!=="error"}),R("#media-size-retry").addEventListener("click",()=>it.pending.length?it.flush():it.load())),uu.push({overlay:e,dialog:t,controller:r,sizeController:i})}for(let e of ye("dialog.site-dialog")){let t=document.createElement("div");t.className="hidden",e.before(t),t.append(e),e.setAttribute("open",""),e.dataset.size="sm",Fe(e,"nodedc-glass nodedc-material-rim"),e.dataset.tone="strong";let a=R("form",e),n=document.createElement("header"),l=document.createElement("div"),o=R(".site-dialog-actions",a);n.className="nodedc-window__head",l.className="nodedc-window__body";let r=document.createElement("div");r.className="nodedc-window__titles",n.append(r);let i=R("h2",a);i.id=e.id+"-title",e.setAttribute("aria-labelledby",i.id),i.className="nodedc-window__title",r.append(i),l.append(...[...a.childNodes].filter(f=>f!==o)),o.classList.add("nodedc-window__footer"),a.replaceChildren(n,l,o);let u,s=cp({overlay:t,dialog:e,closeOnEscape:!0,lockBodyScroll:!1,onOpenChange:f=>{t.classList.toggle("hidden",!f),f||requestAnimationFrame(()=>u?.focus())}});e.showModal=()=>{u=document.activeElement,document.body.append(t),t.classList.remove("hidden"),s.open()},e.close=()=>{t.classList.add("hidden"),s.close()},uu.push({overlay:t,dialog:e,controller:s})}}function gp(){hp?.disconnect();try{for(let[n,l]of su)n.isConnected||(l.root.unmount(),l.host.remove(),su.delete(n));N4(),T4(),E4(),k4(),M4(),A4(),D4(),B4(),O4(),_4(),z4(),q4(),R("#cms-shell").inert=!1;for(let n of uu)n.dialog.inert=!1;for(let n of uu){let l=!n.overlay.classList.contains("hidden");l&&!n.controller.isOpen()?(document.body.append(n.overlay),n.controller.open(),n.sizeController?.refresh()):!l&&n.controller.isOpen()&&n.controller.close()}let e=ye(".nodedc-overlay:not(.hidden):not([hidden])").at(-1);R("#cms-shell").inert=!!e;for(let n of uu)n.dialog.inert=!!(e&&n.overlay!==e);R("#delete-modal-body").textContent==="\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430?"&&(R("#delete-modal-body").textContent="\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442?"),R("#delete-modal-confirm").textContent.trim()==="\u0414\u0430"&&(R("#delete-modal-confirm").textContent="\u0423\u0434\u0430\u043B\u0438\u0442\u044C");let t=R("#regions > section:first-child .block-btn");if(t){let n=t.closest(".cms-static-row");n||(n=document.createElement("div"),n.className="cms-static-row",t.before(n),n.append(t)),n.append(hd)}else hd&&R("#cms-add-block-parking").append(hd);let a=R("#dirty-state");a.dataset.tone=a.dataset.dirty==="true"?"warning":"neutral";for(let n of ye(".nodedc-header__nav-item"))n.dataset.active==="true"?n.setAttribute("aria-current","page"):n.removeAttribute("aria-current")}finally{hp?.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","disabled","data-dirty","data-active","hidden","aria-valuenow"]})}}function Hb(){zb(),hd=R("#add-block");for(let a of ye("[data-cms-mode]"))a.closest("button").id="admin-mode-"+a.dataset.cmsMode;R(".nodedc-header-navigation").classList.add("nodedc-expanded-nav-group"),R(".nodedc-admin-panel__nav").id="regions",R(".nodedc-application-panel__titles h1").id="selected-title",R(".nodedc-application-panel__titles p").id="selected-region",R("#status").setAttribute("role","status"),R("#status").setAttribute("aria-live","polite");let e=R("#cms-shell"),t=Db({navigationOpen:!0,activeView:"cms",contentExpanded:!0,onChange:a=>{R(".cms-stage").hidden=a.navigationOpen||a.contentOpen,e.dataset.navigationOpen=String(a.navigationOpen),e.dataset.contentOpen=String(a.contentOpen),e.dataset.contentExpanded=String(a.contentExpanded),R(".nodedc-app-shell__navigation").hidden=!a.navigationOpen,R(".nodedc-app-shell__navigation").inert=matchMedia("(max-width:760px)").matches&&a.contentOpen,R(".nodedc-app-shell__content").hidden=!a.contentOpen}});matchMedia("(max-width:760px)").addEventListener("change",a=>{R(".nodedc-app-shell__navigation").inert=a.matches&&t.getState().contentOpen,Ha()}),R("#toggle-navigation").onclick=()=>{matchMedia("(max-width:760px)").matches&&t.getState().contentOpen&&t.closeView(),t.openNavigation()},R("#open-navigation").onclick=()=>t.openNavigation(),R(".nodedc-admin-panel__close").onclick=()=>t.closeNavigation(),R(".nodedc-application-panel [data-action=close]").onclick=()=>{t.closeView(),t.openNavigation()},document.addEventListener("click",a=>{a.target.closest(".block-btn,.knowledge-tree-select,#project-settings,#admin-mode-content,#admin-mode-seo,#admin-mode-knowledge")&&(t.openView("cms"),queueMicrotask(()=>R(".nodedc-application-panel__body").scrollTop=0)),Ha()}),document.addEventListener("input",Ha),document.addEventListener("change",Ha),U4(),gp(),hp=new MutationObserver(Ha),gp()}Hb();await Promise.resolve().then(()=>(mS(),ek));