PasteBarApp/dist-frontend/assets/index-BIPqZpBm.js

8 lines
2.2 MiB

function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/dart-C667kpDq.js","assets/clike-CKh8RrsZ.js","assets/django-BHkfok3M.js","assets/htmlmixed-DYfBZbch.js","assets/css-D2W7DKD8.js","assets/overlay-6jmI1xTp.js","assets/gfm-DIFGgWk3.js","assets/markdown-BzkH4IWd.js","assets/haml-DJceL8fb.js","assets/ruby-DrBlgSIX.js","assets/handlebars-DR4e85cA.js","assets/multiplex-Cx617-xo.js","assets/haskell-literate-CIJKYWZj.js","assets/haskell-CwWQgmjX.js","assets/htmlembedded-BY07fnzD.js","assets/htmlmixed-D-5cijKW.js","assets/markdown-nFIn21h-.js","assets/php-71tO0CUH.js","assets/pug-udiFjUiW.js","assets/rst-x-YdJKUf.js","assets/python-a8ZN5Ifv.js","assets/stex-DJeqGD60.js","assets/ruby-CUv_2cE6.js","assets/sass-DfmYfR5p.js","assets/slim-d7Z4lAts.js","assets/soy-DcmltwnY.js","assets/stex-nTWKGNDo.js","assets/tornado-B3jCObZ9.js","assets/twig-CvmBDsDU.js","assets/vue-NkNgpH_3.js","assets/coffeescript-UYn4tXgp.js","assets/stylus-DBOiHsJ5.js","assets/yaml-frontmatter-DeWJDSuj.js","assets/yaml-0ip59n2H.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
var XSe=Object.defineProperty;var eEe=(Un,ar,Lr)=>ar in Un?XSe(Un,ar,{enumerable:!0,configurable:!0,writable:!0,value:Lr}):Un[ar]=Lr;var gt=(Un,ar,Lr)=>(eEe(Un,typeof ar!="symbol"?ar+"":ar,Lr),Lr),k6=(Un,ar,Lr)=>{if(!ar.has(Un))throw TypeError("Cannot "+Lr)};var be=(Un,ar,Lr)=>(k6(Un,ar,"read from private field"),Lr?Lr.call(Un):ar.get(Un)),Ft=(Un,ar,Lr)=>{if(ar.has(Un))throw TypeError("Cannot add the same private member more than once");ar instanceof WeakSet?ar.add(Un):ar.set(Un,Lr)},Ct=(Un,ar,Lr,Ud)=>(k6(Un,ar,"write to private field"),Ud?Ud.call(Un,Lr):ar.set(Un,Lr),Lr);var qw=(Un,ar,Lr,Ud)=>({set _(he){Ct(Un,ar,he,Lr)},get _(){return be(Un,ar,Ud)}}),pn=(Un,ar,Lr)=>(k6(Un,ar,"access private method"),Lr);let dt,j6,C6,Ai,S6,f,_o,E6,tEe=(async()=>{var ph,Sd,Ym,bB,Km,Ed,Gm,wB,mh,kB,Zm,Qm,ni,Nd,ri,ba,S1,fh,Jm,Yw,Li,fc,jB,ul,CB,hl,E1,So,Xm,pl,Vd,SB,ai,N1,gh,EB,sa,_d,Id,ef,tf,Td,nf,rf,NB,Js,gr,_1,js,vh,af,ml,I1,sf,of,yh,xh,Md,lf,bh,uv,T1,N6,M1,_6,L1,I6,D1,T6,O1,M6,P1,L6,R1,D6,fw,IV,_B,Ld,Dd,Eo,lc,cf,Kw,A1,O6,IB;function Un(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const ar="modulepreload",Lr=function(e){return"/"+e},Ud={},he=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(t.map(c=>{if(c=Lr(c),c in Ud)return;Ud[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(n)for(let m=s.length-1;m>=0;m--){const x=s[m];if(x.href===c&&(!u||x.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(c,'"]').concat(h)))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":ar,u||(p.as="script",p.crossOrigin=""),p.href=c,i&&p.setAttribute("nonce",i),document.head.appendChild(p),u)return new Promise((m,x)=>{p.addEventListener("load",m),p.addEventListener("error",()=>x(new Error("Unable to preload CSS for ".concat(c))))})}))}return r.then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};var kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};_o=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e};function TV(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var P6={exports:{}},hv={},R6={exports:{}},Dn={},Tf=Symbol.for("react.element"),MV=Symbol.for("react.portal"),LV=Symbol.for("react.fragment"),DV=Symbol.for("react.strict_mode"),OV=Symbol.for("react.profiler"),PV=Symbol.for("react.provider"),RV=Symbol.for("react.context"),AV=Symbol.for("react.forward_ref"),zV=Symbol.for("react.suspense"),FV=Symbol.for("react.memo"),HV=Symbol.for("react.lazy"),A6=Symbol.iterator;function $V(e){return e===null||typeof e!="object"?null:(e=A6&&e[A6]||e["@@iterator"],typeof e=="function"?e:null)}var z6={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F6=Object.assign,H6={};function Mh(e,t,n){this.props=e,this.context=t,this.refs=H6,this.updater=n||z6}Mh.prototype.isReactComponent={},Mh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Mh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $6(){}$6.prototype=Mh.prototype;function Gw(e,t,n){this.props=e,this.context=t,this.refs=H6,this.updater=n||z6}var Zw=Gw.prototype=new $6;Zw.constructor=Gw,F6(Zw,Mh.prototype),Zw.isPureReactComponent=!0;var B6=Array.isArray,W6=Object.prototype.hasOwnProperty,Qw={current:null},V6={key:!0,ref:!0,__self:!0,__source:!0};function U6(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)W6.call(t,r)&&!V6.hasOwnProperty(r)&&(s[r]=t[r]);var c=arguments.length-2;if(c===1)s.children=n;else if(1<c){for(var u=Array(c),h=0;h<c;h++)u[h]=arguments[h+2];s.children=u}if(e&&e.defaultProps)for(r in c=e.defaultProps,c)s[r]===void 0&&(s[r]=c[r]);return{$$typeof:Tf,type:e,key:o,ref:i,props:s,_owner:Qw.current}}function BV(e,t){return{$$typeof:Tf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Jw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tf}function WV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var q6=/\/+/g;function Xw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?WV(""+e.key):t.toString(36)}function pv(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Tf:case MV:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Xw(i,0):r,B6(s)?(n="",e!=null&&(n=e.replace(q6,"$&/")+"/"),pv(s,t,n,"",function(h){return h})):s!=null&&(Jw(s)&&(s=BV(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(q6,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",B6(e))for(var c=0;c<e.length;c++){o=e[c];var u=r+Xw(o,c);i+=pv(o,t,n,u,s)}else if(u=$V(e),typeof u=="function")for(e=u.call(e),c=0;!(o=e.next()).done;)o=o.value,u=r+Xw(o,c++),i+=pv(o,t,n,u,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function mv(e,t,n){if(e==null)return e;var r=[],s=0;return pv(e,r,"","",function(o){return t.call(n,o,s++)}),r}function VV(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var os={current:null},fv={transition:null},UV={ReactCurrentDispatcher:os,ReactCurrentBatchConfig:fv,ReactCurrentOwner:Qw};Dn.Children={map:mv,forEach:function(e,t,n){mv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mv(e,function(){t++}),t},toArray:function(e){return mv(e,function(t){return t})||[]},only:function(e){if(!Jw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Dn.Component=Mh,Dn.Fragment=LV,Dn.Profiler=OV,Dn.PureComponent=Gw,Dn.StrictMode=DV,Dn.Suspense=zV,Dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UV,Dn.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=F6({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Qw.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)W6.call(t,u)&&!V6.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&c!==void 0?c[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){c=Array(u);for(var h=0;h<u;h++)c[h]=arguments[h+2];r.children=c}return{$$typeof:Tf,type:e.type,key:s,ref:o,props:r,_owner:i}},Dn.createContext=function(e){return e={$$typeof:RV,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:PV,_context:e},e.Consumer=e},Dn.createElement=U6,Dn.createFactory=function(e){var t=U6.bind(null,e);return t.type=e,t},Dn.createRef=function(){return{current:null}},Dn.forwardRef=function(e){return{$$typeof:AV,render:e}},Dn.isValidElement=Jw,Dn.lazy=function(e){return{$$typeof:HV,_payload:{_status:-1,_result:e},_init:VV}},Dn.memo=function(e,t){return{$$typeof:FV,type:e,compare:t===void 0?null:t}},Dn.startTransition=function(e){var t=fv.transition;fv.transition={};try{e()}finally{fv.transition=t}},Dn.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Dn.useCallback=function(e,t){return os.current.useCallback(e,t)},Dn.useContext=function(e){return os.current.useContext(e)},Dn.useDebugValue=function(){},Dn.useDeferredValue=function(e){return os.current.useDeferredValue(e)},Dn.useEffect=function(e,t){return os.current.useEffect(e,t)},Dn.useId=function(){return os.current.useId()},Dn.useImperativeHandle=function(e,t,n){return os.current.useImperativeHandle(e,t,n)},Dn.useInsertionEffect=function(e,t){return os.current.useInsertionEffect(e,t)},Dn.useLayoutEffect=function(e,t){return os.current.useLayoutEffect(e,t)},Dn.useMemo=function(e,t){return os.current.useMemo(e,t)},Dn.useReducer=function(e,t,n){return os.current.useReducer(e,t,n)},Dn.useRef=function(e){return os.current.useRef(e)},Dn.useState=function(e){return os.current.useState(e)},Dn.useSyncExternalStore=function(e,t,n){return os.current.useSyncExternalStore(e,t,n)},Dn.useTransition=function(){return os.current.useTransition()},Dn.version="18.2.0",R6.exports=Dn,f=R6.exports;let Mf;dt=_o(f),Mf=Un({__proto__:null,default:dt},[f]);var qV=f,YV=Symbol.for("react.element"),KV=Symbol.for("react.fragment"),GV=Object.prototype.hasOwnProperty,ZV=qV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QV={key:!0,ref:!0,__self:!0,__source:!0};function Y6(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)GV.call(t,r)&&!QV.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:YV,type:e,key:o,ref:i,props:s,_owner:ZV.current}}hv.Fragment=KV,hv.jsx=Y6,hv.jsxs=Y6,P6.exports=hv;var a=P6.exports;const JV=_o(a);var Lh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dh=typeof window>"u"||"Deno"in window;function Io(){}function XV(e,t){return typeof e=="function"?e(t):e}function ek(e){return typeof e=="number"&&e>=0&&e!==1/0}function K6(e,t){return Math.max(e+(t||0)-Date.now(),0)}function G6(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:c}=e;if(i){if(r){if(t.queryHash!==tk(i,t.options))return!1}else if(!Lf(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||s&&s!==t.state.fetchStatus||o&&!o(t))}function Z6(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(qd(t.options.mutationKey)!==qd(o))return!1}else if(!Lf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function tk(e,t){return((t==null?void 0:t.queryKeyHashFn)||qd)(e)}function qd(e){return JSON.stringify(e,(t,n)=>nk(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Lf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Lf(e[n],t[n])):!1}function Q6(e,t){if(e===t)return e;const n=J6(e)&&J6(t);if(n||nk(e)&&nk(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,c=n?[]:{};let u=0;for(let h=0;h<i;h++){const p=n?h:o[h];!n&&e[p]===void 0&&t[p]===void 0&&r.includes(p)?(c[p]=void 0,u++):(c[p]=Q6(e[p],t[p]),c[p]===e[p]&&e[p]!==void 0&&u++)}return s===i&&u===s?e:c}return t}function gv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function J6(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nk(e){if(!X6(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!X6(n)||!n.hasOwnProperty("isPrototypeOf"))}function X6(e){return Object.prototype.toString.call(e)==="[object Object]"}function eU(e){return new Promise(t=>{setTimeout(t,e)})}function rk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Q6(e,t):t}function tU(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function nU(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ak=Symbol(),rU=(bB=class extends Lh{constructor(){super();Ft(this,ph,void 0);Ft(this,Sd,void 0);Ft(this,Ym,void 0);Ct(this,Ym,t=>{if(!Dh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){be(this,Sd)||this.setEventListener(be(this,Ym))}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,Sd))==null||t.call(this),Ct(this,Sd,void 0))}setEventListener(t){var n;Ct(this,Ym,t),(n=be(this,Sd))==null||n.call(this),Ct(this,Sd,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){be(this,ph)!==t&&(Ct(this,ph,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof be(this,ph)=="boolean"?be(this,ph):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ph=new WeakMap,Sd=new WeakMap,Ym=new WeakMap,bB),vv=new rU,aU=(wB=class extends Lh{constructor(){super();Ft(this,Km,!0);Ft(this,Ed,void 0);Ft(this,Gm,void 0);Ct(this,Gm,t=>{if(!Dh&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){be(this,Ed)||this.setEventListener(be(this,Gm))}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,Ed))==null||t.call(this),Ct(this,Ed,void 0))}setEventListener(t){var n;Ct(this,Gm,t),(n=be(this,Ed))==null||n.call(this),Ct(this,Ed,t(this.setOnline.bind(this)))}setOnline(t){be(this,Km)!==t&&(Ct(this,Km,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return be(this,Km)}},Km=new WeakMap,Ed=new WeakMap,Gm=new WeakMap,wB),yv=new aU;function sU(e){return Math.min(1e3*2**e,3e4)}function xv(e){return(e!=null?e:"online")==="online"?yv.isOnline():!0}var e8=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function sk(e){return e instanceof e8}function t8(e){let t=!1,n=0,r=!1,s,o,i;const c=new Promise((k,j)=>{o=k,i=j}),u=k=>{var j;r||(C(new e8(k)),(j=e.abort)==null||j.call(e))},h=()=>{t=!0},p=()=>{t=!1},m=()=>!vv.isFocused()||e.networkMode!=="always"&&!yv.isOnline(),x=k=>{var j;r||(r=!0,(j=e.onSuccess)==null||j.call(e,k),s==null||s(),o(k))},C=k=>{var j;r||(r=!0,(j=e.onError)==null||j.call(e,k),s==null||s(),i(k))},b=()=>new Promise(k=>{var j;s=S=>{const E=r||!m();return E&&k(S),E},(j=e.onPause)==null||j.call(e)}).then(()=>{var k;s=void 0,r||((k=e.onContinue)==null||k.call(e))}),g=()=>{if(r)return;let k;try{k=e.fn()}catch(j){k=Promise.reject(j)}Promise.resolve(k).then(x).catch(j=>{var M,L,D;if(r)return;const S=(M=e.retry)!=null?M:Dh?0:3,E=(L=e.retryDelay)!=null?L:sU,N=typeof E=="function"?E(n,j):E,T=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,j);if(t||!T){C(j);return}n++,(D=e.onFail)==null||D.call(e,n,j),eU(N).then(()=>{if(m())return b()}).then(()=>{t?C(j):g()})})};return xv(e.networkMode)?g():b().then(g),{promise:c,cancel:u,continue:()=>s!=null&&s()?c:Promise.resolve(),cancelRetry:h,continueRetry:p}}function oU(){let e=[],t=0,n=p=>{p()},r=p=>{p()},s=p=>setTimeout(p,0);const o=p=>{s=p},i=p=>{let m;t++;try{m=p()}finally{t--,t||h()}return m},c=p=>{t?e.push(p):s(()=>{n(p)})},u=p=>(...m)=>{c(()=>{p(...m)})},h=()=>{const p=e;e=[],p.length&&s(()=>{r(()=>{p.forEach(m=>{n(m)})})})};return{batch:i,batchCalls:u,schedule:c,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Qr=oU(),n8=(kB=class{constructor(){Ft(this,mh,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ek(this.gcTime)&&Ct(this,mh,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Dh?1/0:5*60*1e3)}clearGcTimeout(){be(this,mh)&&(clearTimeout(be(this,mh)),Ct(this,mh,void 0))}},mh=new WeakMap,kB),iU=(jB=class extends n8{constructor(t){super();Ft(this,Jm);Ft(this,Li);Ft(this,Zm,void 0);Ft(this,Qm,void 0);Ft(this,ni,void 0);Ft(this,Nd,void 0);Ft(this,ri,void 0);Ft(this,ba,void 0);Ft(this,S1,void 0);Ft(this,fh,void 0);Ct(this,fh,!1),Ct(this,S1,t.defaultOptions),pn(this,Jm,Yw).call(this,t.options),Ct(this,ba,[]),Ct(this,ni,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ct(this,Zm,t.state||lU(this.options)),this.state=be(this,Zm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!be(this,ba).length&&this.state.fetchStatus==="idle"&&be(this,ni).remove(this)}setData(t,n){const r=rk(this.state.data,t,this.options);return pn(this,Li,fc).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pn(this,Li,fc).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=be(this,Nd);return(r=be(this,ri))==null||r.cancel(t),n?n.then(Io).catch(Io):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(be(this,Zm))}isActive(){return be(this,ba).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||this.state.data===void 0||be(this,ba).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!K6(this.state.dataUpdatedAt,t)}onFocus(){var t,n;(t=be(this,ba).find(r=>r.shouldFetchOnWindowFocus()))==null||t.refetch({cancelRefetch:!1}),(n=be(this,ri))==null||n.continue()}onOnline(){var t,n;(t=be(this,ba).find(r=>r.shouldFetchOnReconnect()))==null||t.refetch({cancelRefetch:!1}),(n=be(this,ri))==null||n.continue()}addObserver(t){be(this,ba).includes(t)||(be(this,ba).push(t),this.clearGcTimeout(),be(this,ni).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){be(this,ba).includes(t)&&(Ct(this,ba,be(this,ba).filter(n=>n!==t)),be(this,ba).length||(be(this,ri)&&(be(this,fh)?be(this,ri).cancel({revert:!0}):be(this,ri).cancelRetry()),this.scheduleGc()),be(this,ni).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return be(this,ba).length}invalidate(){this.state.isInvalidated||pn(this,Li,fc).call(this,{type:"invalidate"})}fetch(t,n){var h,p,m,x;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(be(this,Nd))return(h=be(this,ri))==null||h.continueRetry(),be(this,Nd)}if(t&&pn(this,Jm,Yw).call(this,t),!this.options.queryFn){const C=be(this,ba).find(b=>b.options.queryFn);C&&pn(this,Jm,Yw).call(this,C.options)}const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Ct(this,fh,!0),r.signal)})};o(s);const i=()=>!this.options.queryFn||this.options.queryFn===ak?Promise.reject(new Error("Missing queryFn: '".concat(this.options.queryHash,"'"))):(Ct(this,fh,!1),this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(c),(p=this.options.behavior)==null||p.onFetch(c,this),Ct(this,Qm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&pn(this,Li,fc).call(this,{type:"fetch",meta:(x=c.fetchOptions)==null?void 0:x.meta});const u=C=>{var b,g,k,j;sk(C)&&C.silent||pn(this,Li,fc).call(this,{type:"error",error:C}),sk(C)||((g=(b=be(this,ni).config).onError)==null||g.call(b,C,this),(j=(k=be(this,ni).config).onSettled)==null||j.call(k,this.state.data,C,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ct(this,ri,t8({fn:c.fetchFn,abort:r.abort.bind(r),onSuccess:C=>{var b,g,k,j;if(C===void 0){u(new Error("".concat(this.queryHash," data is undefined")));return}this.setData(C),(g=(b=be(this,ni).config).onSuccess)==null||g.call(b,C,this),(j=(k=be(this,ni).config).onSettled)==null||j.call(k,C,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(C,b)=>{pn(this,Li,fc).call(this,{type:"failed",failureCount:C,error:b})},onPause:()=>{pn(this,Li,fc).call(this,{type:"pause"})},onContinue:()=>{pn(this,Li,fc).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode})),Ct(this,Nd,be(this,ri).promise),be(this,Nd)}},Zm=new WeakMap,Qm=new WeakMap,ni=new WeakMap,Nd=new WeakMap,ri=new WeakMap,ba=new WeakMap,S1=new WeakMap,fh=new WeakMap,Jm=new WeakSet,Yw=function(t){this.options={...be(this,S1),...t},this.updateGcTime(this.options.gcTime)},Li=new WeakSet,fc=function(t){const n=r=>{var s,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:xv(this.options.networkMode)?"fetching":"paused",...r.data===void 0&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return sk(i)&&i.revert&&be(this,Qm)?{...be(this,Qm),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qr.batch(()=>{be(this,ba).forEach(r=>{r.onQueryUpdate()}),be(this,ni).notify({query:this,type:"updated",action:t})})},jB);function lU(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var cU=(CB=class extends Lh{constructor(t={}){super();Ft(this,ul,void 0);this.config=t,Ct(this,ul,new Map)}build(t,n,r){var c;const s=n.queryKey,o=(c=n.queryHash)!=null?c:tk(s,n);let i=this.get(o);return i||(i=new iU({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){be(this,ul).has(t.queryHash)||(be(this,ul).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=be(this,ul).get(t.queryHash);n&&(t.destroy(),n===t&&be(this,ul).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return be(this,ul).get(t)}getAll(){return[...be(this,ul).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>G6(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>G6(t,r)):n}notify(t){Qr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ul=new WeakMap,CB),dU=(SB=class extends n8{constructor(t){super();Ft(this,pl);Ft(this,hl,void 0);Ft(this,E1,void 0);Ft(this,So,void 0);Ft(this,Xm,void 0);this.mutationId=t.mutationId,Ct(this,E1,t.defaultOptions),Ct(this,So,t.mutationCache),Ct(this,hl,[]),this.state=t.state||r8(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...be(this,E1),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){be(this,hl).includes(t)||(be(this,hl).push(t),this.clearGcTimeout(),be(this,So).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ct(this,hl,be(this,hl).filter(n=>n!==t)),this.scheduleGc(),be(this,So).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){be(this,hl).length||(this.state.status==="pending"?this.scheduleGc():be(this,So).remove(this))}continue(){var t,n;return(n=(t=be(this,Xm))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}async execute(t){var s,o,i,c,u,h,p,m,x,C,b,g,k,j,S,E,N,T,M,L;const n=()=>{var D;return Ct(this,Xm,t8({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{pn(this,pl,Vd).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{pn(this,pl,Vd).call(this,{type:"pause"})},onContinue:()=>{pn(this,pl,Vd).call(this,{type:"continue"})},retry:(D=this.options.retry)!=null?D:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),be(this,Xm).promise},r=this.state.status==="pending";try{if(!r){pn(this,pl,Vd).call(this,{type:"pending",variables:t}),await((o=(s=be(this,So).config).onMutate)==null?void 0:o.call(s,t,this));const P=await((c=(i=this.options).onMutate)==null?void 0:c.call(i,t));P!==this.state.context&&pn(this,pl,Vd).call(this,{type:"pending",context:P,variables:t})}const D=await n();return await((h=(u=be(this,So).config).onSuccess)==null?void 0:h.call(u,D,t,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,D,t,this.state.context)),await((C=(x=be(this,So).config).onSettled)==null?void 0:C.call(x,D,null,this.state.variables,this.state.context,this)),await((g=(b=this.options).onSettled)==null?void 0:g.call(b,D,null,t,this.state.context)),pn(this,pl,Vd).call(this,{type:"success",data:D}),D}catch(D){try{throw await((j=(k=be(this,So).config).onError)==null?void 0:j.call(k,D,t,this.state.context,this)),await((E=(S=this.options).onError)==null?void 0:E.call(S,D,t,this.state.context)),await((T=(N=be(this,So).config).onSettled)==null?void 0:T.call(N,void 0,D,this.state.variables,this.state.context,this)),await((L=(M=this.options).onSettled)==null?void 0:L.call(M,void 0,D,t,this.state.context)),D}finally{pn(this,pl,Vd).call(this,{type:"error",error:D})}}}},hl=new WeakMap,E1=new WeakMap,So=new WeakMap,Xm=new WeakMap,pl=new WeakSet,Vd=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!xv(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qr.batch(()=>{be(this,hl).forEach(r=>{r.onMutationUpdate(t)}),be(this,So).notify({mutation:this,type:"updated",action:t})})},SB);function r8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uU=(EB=class extends Lh{constructor(t={}){super();Ft(this,ai,void 0);Ft(this,N1,void 0);Ft(this,gh,void 0);this.config=t,Ct(this,ai,[]),Ct(this,N1,0)}build(t,n,r){const s=new dU({mutationCache:this,mutationId:++qw(this,N1)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){be(this,ai).push(t),this.notify({type:"added",mutation:t})}remove(t){Ct(this,ai,be(this,ai).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Qr.batch(()=>{be(this,ai).forEach(t=>{this.remove(t)})})}getAll(){return be(this,ai)}find(t){const n={exact:!0,...t};return be(this,ai).find(r=>Z6(n,r))}findAll(t={}){return be(this,ai).filter(n=>Z6(t,n))}notify(t){Qr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){var t;return Ct(this,gh,((t=be(this,gh))!=null?t:Promise.resolve()).then(()=>{const n=be(this,ai).filter(r=>r.state.isPaused);return Qr.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(Io)),Promise.resolve()))}).then(()=>{Ct(this,gh,void 0)})),be(this,gh)}},ai=new WeakMap,N1=new WeakMap,gh=new WeakMap,EB);function ok(e){return{onFetch:(t,n)=>{const r=async()=>{var b,g,k,j,S,E;const s=t.options,o=(k=(g=(b=t.fetchOptions)==null?void 0:b.meta)==null?void 0:g.fetchMore)==null?void 0:k.direction,i=((j=t.state.data)==null?void 0:j.pages)||[],c=((S=t.state.data)==null?void 0:S.pageParams)||[],u={pages:[],pageParams:[]};let h=!1;const p=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},m=t.options.queryFn&&t.options.queryFn!==ak?t.options.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(t.options.queryHash,"'"))),x=async(N,T,M)=>{if(h)return Promise.reject();if(T==null&&N.pages.length)return Promise.resolve(N);const L={queryKey:t.queryKey,pageParam:T,direction:M?"backward":"forward",meta:t.options.meta};p(L);const D=await m(L),{maxPages:P}=t.options,A=M?nU:tU;return{pages:A(N.pages,D,P),pageParams:A(N.pageParams,T,P)}};let C;if(o&&i.length){const N=o==="backward",T=N?a8:ik,M={pages:i,pageParams:c},L=T(s,M);C=await x(M,L,N)}else{C=await x(u,(E=c[0])!=null?E:s.initialPageParam);const N=e!=null?e:i.length;for(let T=1;T<N;T++){const M=ik(s,C);C=await x(C,M)}}return C};t.options.persister?t.fetchFn=()=>{var s,o;return(o=(s=t.options).persister)==null?void 0:o.call(s,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function ik(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function a8(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function hU(e,t){return t?ik(e,t)!=null:!1}function pU(e,t){return!t||!e.getPreviousPageParam?!1:a8(e,t)!=null}var mU=(NB=class{constructor(e={}){Ft(this,sa,void 0);Ft(this,_d,void 0);Ft(this,Id,void 0);Ft(this,ef,void 0);Ft(this,tf,void 0);Ft(this,Td,void 0);Ft(this,nf,void 0);Ft(this,rf,void 0);Ct(this,sa,e.queryCache||new cU),Ct(this,_d,e.mutationCache||new uU),Ct(this,Id,e.defaultOptions||{}),Ct(this,ef,new Map),Ct(this,tf,new Map),Ct(this,Td,0)}mount(){qw(this,Td)._++,be(this,Td)===1&&(Ct(this,nf,vv.subscribe(()=>{vv.isFocused()&&(this.resumePausedMutations(),be(this,sa).onFocus())})),Ct(this,rf,yv.subscribe(e=>{e&&(this.resumePausedMutations(),be(this,sa).onOnline())})))}unmount(){var e,t;qw(this,Td)._--,be(this,Td)===0&&((e=be(this,nf))==null||e.call(this),Ct(this,nf,void 0),(t=be(this,rf))==null||t.call(this),Ct(this,rf,void 0))}isFetching(e){return be(this,sa).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return be(this,_d).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=be(this,sa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){var i;const r=this.defaultQueryOptions({queryKey:e}),s=(i=be(this,sa).get(r.queryHash))==null?void 0:i.state.data,o=XV(t,s);if(o!==void 0)return be(this,sa).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Qr.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=be(this,sa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=be(this,sa);Qr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=be(this,sa),r={type:"active",...e};return Qr.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Qr.batch(()=>be(this,sa).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Io).catch(Io)}invalidateQueries(e={},t={}){return Qr.batch(()=>{var r,s;if(be(this,sa).findAll(e).forEach(o=>{o.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:(s=(r=e.refetchType)!=null?r:e.type)!=null?s:"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){var s;const n={...t,cancelRefetch:(s=t==null?void 0:t.cancelRefetch)!=null?s:!0},r=Qr.batch(()=>be(this,sa).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Io)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Io)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=be(this,sa).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Io).catch(Io)}fetchInfiniteQuery(e){return e.behavior=ok(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Io).catch(Io)}resumePausedMutations(){return yv.isOnline()?be(this,_d).resumePausedMutations():Promise.resolve()}getQueryCache(){return be(this,sa)}getMutationCache(){return be(this,_d)}getDefaultOptions(){return be(this,Id)}setDefaultOptions(e){Ct(this,Id,e)}setQueryDefaults(e,t){be(this,ef).set(qd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...be(this,ef).values()];let n={};return t.forEach(r=>{Lf(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){be(this,tf).set(qd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...be(this,tf).values()];let n={};return t.forEach(r=>{Lf(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...be(this,Id).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=tk(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===ak&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...be(this,Id).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){be(this,sa).clear(),be(this,_d).clear()}},sa=new WeakMap,_d=new WeakMap,Id=new WeakMap,ef=new WeakMap,tf=new WeakMap,Td=new WeakMap,nf=new WeakMap,rf=new WeakMap,NB),s8=(_B=class extends Lh{constructor(t,n){super();Ft(this,bh);Ft(this,T1);Ft(this,M1);Ft(this,L1);Ft(this,D1);Ft(this,O1);Ft(this,P1);Ft(this,R1);Ft(this,fw);Ft(this,Js,void 0);Ft(this,gr,void 0);Ft(this,_1,void 0);Ft(this,js,void 0);Ft(this,vh,void 0);Ft(this,af,void 0);Ft(this,ml,void 0);Ft(this,I1,void 0);Ft(this,sf,void 0);Ft(this,of,void 0);Ft(this,yh,void 0);Ft(this,xh,void 0);Ft(this,Md,void 0);Ft(this,lf,new Set);this.options=n,Ct(this,Js,t),Ct(this,ml,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(be(this,gr).addObserver(this),o8(be(this,gr),this.options)?pn(this,bh,uv).call(this):this.updateResult(),pn(this,D1,T6).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lk(be(this,gr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lk(be(this,gr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pn(this,O1,M6).call(this),pn(this,P1,L6).call(this),be(this,gr).removeObserver(this)}setOptions(t,n){const r=this.options,s=be(this,gr);if(this.options=be(this,Js).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");pn(this,R1,D6).call(this),gv(this.options,r)||be(this,Js).getQueryCache().notify({type:"observerOptionsUpdated",query:be(this,gr),observer:this});const o=this.hasListeners();o&&i8(be(this,gr),s,this.options,r)&&pn(this,bh,uv).call(this),this.updateResult(n),o&&(be(this,gr)!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&pn(this,T1,N6).call(this);const i=pn(this,M1,_6).call(this);o&&(be(this,gr)!==s||this.options.enabled!==r.enabled||i!==be(this,Md))&&pn(this,L1,I6).call(this,i)}getOptimisticResult(t){const n=be(this,Js).getQueryCache().build(be(this,Js),t),r=this.createResult(n,t);return gU(this,r)&&(Ct(this,js,r),Ct(this,af,this.options),Ct(this,vh,be(this,gr).state)),r}getCurrentResult(){return be(this,js)}trackResult(t,n){const r={};return Object.keys(t).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),r}trackProp(t){be(this,lf).add(t)}getCurrentQuery(){return be(this,gr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=be(this,Js).defaultQueryOptions(t),r=be(this,Js).getQueryCache().build(be(this,Js),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return pn(this,bh,uv).call(this,{...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),be(this,js)))}createResult(t,n){var T;const r=be(this,gr),s=this.options,o=be(this,js),i=be(this,vh),c=be(this,af),u=t!==r?t.state:be(this,_1),{state:h}=t;let{error:p,errorUpdatedAt:m,fetchStatus:x,status:C}=h,b=!1,g;if(n._optimisticResults){const M=this.hasListeners(),L=!M&&o8(t,n),D=M&&i8(t,r,n,s);(L||D)&&(x=xv(t.options.networkMode)?"fetching":"paused",h.data===void 0&&(C="pending")),n._optimisticResults==="isRestoring"&&(x="idle")}if(n.select&&h.data!==void 0)if(o&&h.data===(i==null?void 0:i.data)&&n.select===be(this,I1))g=be(this,sf);else try{Ct(this,I1,n.select),g=n.select(h.data),g=rk(o==null?void 0:o.data,g,n),Ct(this,sf,g),Ct(this,ml,null)}catch(M){Ct(this,ml,M)}else g=h.data;if(n.placeholderData!==void 0&&g===void 0&&C==="pending"){let M;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData))M=o.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((T=be(this,of))==null?void 0:T.state.data,be(this,of)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),Ct(this,ml,null)}catch(L){Ct(this,ml,L)}M!==void 0&&(C="success",g=rk(o==null?void 0:o.data,M,n),b=!0)}be(this,ml)&&(p=be(this,ml),g=be(this,sf),m=Date.now(),C="error");const k=x==="fetching",j=C==="pending",S=C==="error",E=j&&k,N=h.data!==void 0;return{status:C,fetchStatus:x,isPending:j,isSuccess:C==="success",isError:S,isInitialLoading:E,isLoading:E,data:g,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:k,isRefetching:k&&!j,isLoadingError:S&&!N,isPaused:x==="paused",isPlaceholderData:b,isRefetchError:S&&N,isStale:ck(t,n),refetch:this.refetch}}updateResult(t){const n=be(this,js),r=this.createResult(be(this,gr),this.options);if(Ct(this,vh,be(this,gr).state),Ct(this,af,this.options),be(this,vh).data!==void 0&&Ct(this,of,be(this,gr)),gv(r,n))return;Ct(this,js,r);const s={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,c=typeof i=="function"?i():i;if(c==="all"||!c&&!be(this,lf).size)return!0;const u=new Set(c!=null?c:be(this,lf));return this.options.throwOnError&&u.add("error"),Object.keys(be(this,js)).some(h=>{const p=h;return be(this,js)[p]!==n[p]&&u.has(p)})};(t==null?void 0:t.listeners)!==!1&&o()&&(s.listeners=!0),pn(this,fw,IV).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pn(this,D1,T6).call(this)}},Js=new WeakMap,gr=new WeakMap,_1=new WeakMap,js=new WeakMap,vh=new WeakMap,af=new WeakMap,ml=new WeakMap,I1=new WeakMap,sf=new WeakMap,of=new WeakMap,yh=new WeakMap,xh=new WeakMap,Md=new WeakMap,lf=new WeakMap,bh=new WeakSet,uv=function(t){pn(this,R1,D6).call(this);let n=be(this,gr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Io)),n},T1=new WeakSet,N6=function(){if(pn(this,O1,M6).call(this),Dh||be(this,js).isStale||!ek(this.options.staleTime))return;const t=K6(be(this,js).dataUpdatedAt,this.options.staleTime)+1;Ct(this,yh,setTimeout(()=>{be(this,js).isStale||this.updateResult()},t))},M1=new WeakSet,_6=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(be(this,gr)):this.options.refetchInterval)!=null?t:!1},L1=new WeakSet,I6=function(t){pn(this,P1,L6).call(this),Ct(this,Md,t),!(Dh||this.options.enabled===!1||!ek(be(this,Md))||be(this,Md)===0)&&Ct(this,xh,setInterval(()=>{(this.options.refetchIntervalInBackground||vv.isFocused())&&pn(this,bh,uv).call(this)},be(this,Md)))},D1=new WeakSet,T6=function(){pn(this,T1,N6).call(this),pn(this,L1,I6).call(this,pn(this,M1,_6).call(this))},O1=new WeakSet,M6=function(){be(this,yh)&&(clearTimeout(be(this,yh)),Ct(this,yh,void 0))},P1=new WeakSet,L6=function(){be(this,xh)&&(clearInterval(be(this,xh)),Ct(this,xh,void 0))},R1=new WeakSet,D6=function(){const t=be(this,Js).getQueryCache().build(be(this,Js),this.options);if(t===be(this,gr))return;const n=be(this,gr);Ct(this,gr,t),Ct(this,_1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fw=new WeakSet,IV=function(t){Qr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(be(this,js))}),be(this,Js).getQueryCache().notify({query:be(this,gr),type:"observerResultsUpdated"})})},_B);function fU(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function o8(e,t){return fU(e,t)||e.state.data!==void 0&&lk(e,t,t.refetchOnMount)}function lk(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ck(e,t)}return!1}function i8(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&ck(e,n)}function ck(e,t){return e.isStaleByTime(t.staleTime)}function gU(e,t){return!gv(e.getCurrentResult(),t)}var vU=class extends s8{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:ok()},t)}getOptimisticResult(e){return e.behavior=ok(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var u,h,p,m;const{state:n}=e,r=super.createResult(e,t),{isFetching:s,isRefetching:o}=r,i=s&&((h=(u=n.fetchMeta)==null?void 0:u.fetchMore)==null?void 0:h.direction)==="forward",c=s&&((m=(p=n.fetchMeta)==null?void 0:p.fetchMore)==null?void 0:m.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hU(t,n.data),hasPreviousPage:pU(t,n.data),isFetchingNextPage:i,isFetchingPreviousPage:c,isRefetching:o&&!i&&!c}}},yU=(IB=class extends Lh{constructor(t,n){super();Ft(this,cf);Ft(this,A1);Ft(this,Ld,void 0);Ft(this,Dd,void 0);Ft(this,Eo,void 0);Ft(this,lc,void 0);Ct(this,Ld,t),this.setOptions(n),this.bindMethods(),pn(this,cf,Kw).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=be(this,Ld).defaultMutationOptions(t),gv(this.options,n)||be(this,Ld).getMutationCache().notify({type:"observerOptionsUpdated",mutation:be(this,Eo),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&qd(n.mutationKey)!==qd(this.options.mutationKey)?this.reset():(r=be(this,Eo))==null||r.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,Eo))==null||t.removeObserver(this))}onMutationUpdate(t){pn(this,cf,Kw).call(this),pn(this,A1,O6).call(this,t)}getCurrentResult(){return be(this,Dd)}reset(){var t;(t=be(this,Eo))==null||t.removeObserver(this),Ct(this,Eo,void 0),pn(this,cf,Kw).call(this),pn(this,A1,O6).call(this)}mutate(t,n){var r;return Ct(this,lc,n),(r=be(this,Eo))==null||r.removeObserver(this),Ct(this,Eo,be(this,Ld).getMutationCache().build(be(this,Ld),this.options)),be(this,Eo).addObserver(this),be(this,Eo).execute(t)}},Ld=new WeakMap,Dd=new WeakMap,Eo=new WeakMap,lc=new WeakMap,cf=new WeakSet,Kw=function(){var n,r;const t=(r=(n=be(this,Eo))==null?void 0:n.state)!=null?r:r8();Ct(this,Dd,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},A1=new WeakSet,O6=function(t){Qr.batch(()=>{var n,r,s,o,i,c,u,h;if(be(this,lc)&&this.hasListeners()){const p=be(this,Dd).variables,m=be(this,Dd).context;(t==null?void 0:t.type)==="success"?((r=(n=be(this,lc)).onSuccess)==null||r.call(n,t.data,p,m),(o=(s=be(this,lc)).onSettled)==null||o.call(s,t.data,null,p,m)):(t==null?void 0:t.type)==="error"&&((c=(i=be(this,lc)).onError)==null||c.call(i,t.error,p,m),(h=(u=be(this,lc)).onSettled)==null||h.call(u,void 0,t.error,p,m))}this.listeners.forEach(p=>{p(be(this,Dd))})})},IB),l8=f.createContext(void 0),cn=e=>{const t=f.useContext(l8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xU=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(l8.Provider,{value:e,children:t})),c8=f.createContext(!1),bU=()=>f.useContext(c8);c8.Provider;function wU(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kU=f.createContext(wU()),jU=()=>f.useContext(kU);function d8(e,t){return typeof e=="function"?e(...t):!!e}function CU(){}var SU=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},EU=e=>{f.useEffect(()=>{e.clearReset()},[e])},NU=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&d8(n,[e.error,r]),_U=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},IU=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,TU=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function u8(e,t,n){const r=cn(n),s=bU(),o=jU(),i=r.defaultQueryOptions(e);i._optimisticResults=s?"isRestoring":"optimistic",_U(i),SU(i,o),EU(o);const[c]=f.useState(()=>new t(r,i)),u=c.getOptimisticResult(i);if(f.useSyncExternalStore(f.useCallback(h=>{const p=s?()=>{}:c.subscribe(Qr.batchCalls(h));return c.updateResult(),p},[c,s]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(i,{listeners:!1})},[i,c]),IU(i,u))throw TU(i,c,o);if(NU({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw u.error;return i.notifyOnChangeProps?u:c.trackResult(u)}function MU(e,t){return u8(e,s8,t)}function LU(e,t){const n=cn(t),[r]=f.useState(()=>new yU(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);const s=f.useSyncExternalStore(f.useCallback(i=>r.subscribe(Qr.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=f.useCallback((i,c)=>{r.mutate(i,c).catch(CU)},[r]);if(s.error&&d8(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}function DU(e,t){return u8(e,vU,t)}const h8=1e3*60,OU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",PU="",RU=3;var p8={exports:{}},to={},m8={exports:{}},f8={};(function(e){function t(W,G){var Z=W.length;W.push(G);e:for(;0<Z;){var F=Z-1>>>1,V=W[F];if(0<s(V,G))W[F]=G,W[Z]=V,Z=F;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var G=W[0],Z=W.pop();if(Z!==G){W[0]=Z;e:for(var F=0,V=W.length,q=V>>>1;F<q;){var ne=2*(F+1)-1,Q=W[ne],ae=ne+1,re=W[ae];if(0>s(Q,Z))ae<V&&0>s(re,Q)?(W[F]=re,W[ae]=Z,F=ae):(W[F]=Q,W[ne]=Z,F=ne);else if(ae<V&&0>s(re,Z))W[F]=re,W[ae]=Z,F=ae;else break e}}return G}function s(W,G){var Z=W.sortIndex-G.sortIndex;return Z!==0?Z:W.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var u=[],h=[],p=1,m=null,x=3,C=!1,b=!1,g=!1,k=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(W){for(var G=n(h);G!==null;){if(G.callback===null)r(h);else if(G.startTime<=W)r(h),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(h)}}function N(W){if(g=!1,E(W),!b)if(n(u)!==null)b=!0,U(T);else{var G=n(h);G!==null&&K(N,G.startTime-W)}}function T(W,G){b=!1,g&&(g=!1,j(D),D=-1),C=!0;var Z=x;try{for(E(G),m=n(u);m!==null&&(!(m.expirationTime>G)||W&&!B());){var F=m.callback;if(typeof F=="function"){m.callback=null,x=m.priorityLevel;var V=F(m.expirationTime<=G);G=e.unstable_now(),typeof V=="function"?m.callback=V:m===n(u)&&r(u),E(G)}else r(u);m=n(u)}if(m!==null)var q=!0;else{var ne=n(h);ne!==null&&K(N,ne.startTime-G),q=!1}return q}finally{m=null,x=Z,C=!1}}var M=!1,L=null,D=-1,P=5,A=-1;function B(){return!(e.unstable_now()-A<P)}function z(){if(L!==null){var W=e.unstable_now();A=W;var G=!0;try{G=L(!0,W)}finally{G?R():(M=!1,L=null)}}else M=!1}var R;if(typeof S=="function")R=function(){S(z)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,_=$.port2;$.port1.onmessage=z,R=function(){_.postMessage(null)}}else R=function(){k(z,0)};function U(W){L=W,M||(M=!0,R())}function K(W,G){D=k(function(){W(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){b||C||(b=!0,U(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(W){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var Z=x;x=G;try{return W()}finally{x=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,G){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=x;x=W;try{return G()}finally{x=Z}},e.unstable_scheduleCallback=function(W,G,Z){var F=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?F+Z:F):Z=F,W){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=Z+V,W={id:p++,callback:G,priorityLevel:W,startTime:Z,expirationTime:V,sortIndex:-1},Z>F?(W.sortIndex=Z,t(h,W),n(u)===null&&W===n(h)&&(g?(j(D),D=-1):g=!0,K(N,Z-F))):(W.sortIndex=V,t(u,W),b||C||(b=!0,U(T))),W},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(W){var G=x;return function(){var Z=x;x=G;try{return W.apply(this,arguments)}finally{x=Z}}}})(f8),m8.exports=f8;var AU=m8.exports,g8=f,no=AU;function rt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v8=new Set,Df={};function Yd(e,t){Oh(e,t),Oh(e+"Capture",t)}function Oh(e,t){for(Df[e]=t,e=0;e<t.length;e++)v8.add(t[e])}var xl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dk=Object.prototype.hasOwnProperty,zU=/^[: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]*$/,y8={},x8={};function FU(e){return dk.call(x8,e)?!0:dk.call(y8,e)?!1:zU.test(e)?x8[e]=!0:(y8[e]=!0,!1)}function HU(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $U(e,t,n,r){if(t===null||typeof t>"u"||HU(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function is(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ka={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ka[e]=new is(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ka[t]=new is(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ka[e]=new is(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ka[e]=new is(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ka[e]=new is(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ka[e]=new is(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ka[e]=new is(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ka[e]=new is(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ka[e]=new is(e,5,!1,e.toLowerCase(),null,!1,!1)});var uk=/[\-:]([a-z])/g;function hk(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uk,hk);ka[t]=new is(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uk,hk);ka[t]=new is(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uk,hk);ka[t]=new is(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ka[e]=new is(e,1,!1,e.toLowerCase(),null,!1,!1)}),ka.xlinkHref=new is("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ka[e]=new is(e,1,!1,e.toLowerCase(),null,!0,!0)});function pk(e,t,n,r){var s=ka.hasOwnProperty(t)?ka[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($U(t,n,s,r)&&(n=null),r||s===null?FU(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bl=g8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bv=Symbol.for("react.element"),Ph=Symbol.for("react.portal"),Rh=Symbol.for("react.fragment"),mk=Symbol.for("react.strict_mode"),fk=Symbol.for("react.profiler"),b8=Symbol.for("react.provider"),w8=Symbol.for("react.context"),gk=Symbol.for("react.forward_ref"),vk=Symbol.for("react.suspense"),yk=Symbol.for("react.suspense_list"),xk=Symbol.for("react.memo"),gc=Symbol.for("react.lazy"),k8=Symbol.for("react.offscreen"),j8=Symbol.iterator;function Of(e){return e===null||typeof e!="object"?null:(e=j8&&e[j8]||e["@@iterator"],typeof e=="function"?e:null)}var Cr=Object.assign,bk;function Pf(e){if(bk===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bk=t&&t[1]||""}return"\n"+bk+e}var wk=!1;function kk(e,t){if(!e||wk)return"";wk=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var r=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){r=h}e.call(t.prototype)}else{try{throw Error()}catch(h){r=h}e()}}catch(h){if(h&&r&&typeof h.stack=="string"){for(var s=h.stack.split("\n"),o=r.stack.split("\n"),i=s.length-1,c=o.length-1;1<=i&&0<=c&&s[i]!==o[c];)c--;for(;1<=i&&0<=c;i--,c--)if(s[i]!==o[c]){if(i!==1||c!==1)do if(i--,c--,0>c||s[i]!==o[c]){var u="\n"+s[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=c);break}}}finally{wk=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pf(e):""}function BU(e){switch(e.tag){case 5:return Pf(e.type);case 16:return Pf("Lazy");case 13:return Pf("Suspense");case 19:return Pf("SuspenseList");case 0:case 2:case 15:return e=kk(e.type,!1),e;case 11:return e=kk(e.type.render,!1),e;case 1:return e=kk(e.type,!0),e;default:return""}}function jk(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rh:return"Fragment";case Ph:return"Portal";case fk:return"Profiler";case mk:return"StrictMode";case vk:return"Suspense";case yk:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w8:return(e.displayName||"Context")+".Consumer";case b8:return(e._context.displayName||"Context")+".Provider";case gk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xk:return t=e.displayName||null,t!==null?t:jk(e.type)||"Memo";case gc:t=e._payload,e=e._init;try{return jk(e(t))}catch{}}return null}function WU(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jk(t);case 8:return t===mk?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function C8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VU(e){var t=C8(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wv(e){e._valueTracker||(e._valueTracker=VU(e))}function S8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=C8(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ck(e,t){var n=t.checked;return Cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function E8(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vc(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function N8(e,t){t=t.checked,t!=null&&pk(e,"checked",t,!1)}function Sk(e,t){N8(e,t);var n=vc(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ek(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ek(e,t.type,vc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _8(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ek(e,t,n){(t!=="number"||kv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rf=Array.isArray;function Ah(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vc(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nk(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(rt(91));return Cr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function I8(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(rt(92));if(Rf(n)){if(1<n.length)throw Error(rt(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vc(n)}}function T8(e,t){var n=vc(t.value),r=vc(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function M8(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function L8(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _k(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?L8(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var jv,D8=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(jv=jv||document.createElement("div"),jv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=jv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Af(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},UU=["Webkit","ms","Moz","O"];Object.keys(zf).forEach(function(e){UU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zf[t]=zf[e]})});function O8(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zf.hasOwnProperty(e)&&zf[e]?(""+t).trim():t+"px"}function P8(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=O8(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var qU=Cr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ik(e,t){if(t){if(qU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(rt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(rt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(rt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(rt(62))}}function Tk(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mk=null;function Lk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dk=null,zh=null,Fh=null;function R8(e){if(e=o0(e)){if(typeof Dk!="function")throw Error(rt(280));var t=e.stateNode;t&&(t=qv(t),Dk(e.stateNode,e.type,t))}}function A8(e){zh?Fh?Fh.push(e):Fh=[e]:zh=e}function z8(){if(zh){var e=zh,t=Fh;if(Fh=zh=null,R8(e),t)for(e=0;e<t.length;e++)R8(t[e])}}function F8(e,t){return e(t)}function H8(){}var Ok=!1;function $8(e,t,n){if(Ok)return e(t,n);Ok=!0;try{return F8(e,t,n)}finally{Ok=!1,(zh!==null||Fh!==null)&&(H8(),z8())}}function Ff(e,t){var n=e.stateNode;if(n===null)return null;var r=qv(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(rt(231,t,typeof n));return n}var Pk=!1;if(xl)try{var Hf={};Object.defineProperty(Hf,"passive",{get:function(){Pk=!0}}),window.addEventListener("test",Hf,Hf),window.removeEventListener("test",Hf,Hf)}catch{Pk=!1}function YU(e,t,n,r,s,o,i,c,u){var h=Array.prototype.slice.call(arguments,3);try{t.apply(n,h)}catch(p){this.onError(p)}}var $f=!1,Cv=null,Sv=!1,Rk=null,KU={onError:function(e){$f=!0,Cv=e}};function GU(e,t,n,r,s,o,i,c,u){$f=!1,Cv=null,YU.apply(KU,arguments)}function ZU(e,t,n,r,s,o,i,c,u){if(GU.apply(this,arguments),$f){if($f){var h=Cv;$f=!1,Cv=null}else throw Error(rt(198));Sv||(Sv=!0,Rk=h)}}function Kd(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function B8(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 W8(e){if(Kd(e)!==e)throw Error(rt(188))}function QU(e){var t=e.alternate;if(!t){if(t=Kd(e),t===null)throw Error(rt(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return W8(s),e;if(o===r)return W8(s),t;o=o.sibling}throw Error(rt(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,c=s.child;c;){if(c===n){i=!0,n=s,r=o;break}if(c===r){i=!0,r=s,n=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===n){i=!0,n=o,r=s;break}if(c===r){i=!0,r=o,n=s;break}c=c.sibling}if(!i)throw Error(rt(189))}}if(n.alternate!==r)throw Error(rt(190))}if(n.tag!==3)throw Error(rt(188));return n.stateNode.current===n?e:t}function V8(e){return e=QU(e),e!==null?U8(e):null}function U8(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=U8(e);if(t!==null)return t;e=e.sibling}return null}var q8=no.unstable_scheduleCallback,Y8=no.unstable_cancelCallback,JU=no.unstable_shouldYield,XU=no.unstable_requestPaint,Fr=no.unstable_now,eq=no.unstable_getCurrentPriorityLevel,Ak=no.unstable_ImmediatePriority,K8=no.unstable_UserBlockingPriority,Ev=no.unstable_NormalPriority,tq=no.unstable_LowPriority,G8=no.unstable_IdlePriority,Nv=null,zi=null;function nq(e){if(zi&&typeof zi.onCommitFiberRoot=="function")try{zi.onCommitFiberRoot(Nv,e,void 0,(e.current.flags&128)===128)}catch{}}var oi=Math.clz32?Math.clz32:sq,rq=Math.log,aq=Math.LN2;function sq(e){return e>>>=0,e===0?32:31-(rq(e)/aq|0)|0}var _v=64,Iv=4194304;function Bf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Tv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~s;c!==0?r=Bf(c):(o&=i,o!==0&&(r=Bf(o)))}else i=n&~s,i!==0?r=Bf(i):o!==0&&(r=Bf(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-oi(t),s=1<<n,r|=e[n],t&=~s;return r}function oq(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iq(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-oi(o),c=1<<i,u=s[i];u===-1?(!(c&n)||c&r)&&(s[i]=oq(c,t)):u<=t&&(e.expiredLanes|=c),o&=~c}}function zk(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Z8(){var e=_v;return _v<<=1,!(_v&4194240)&&(_v=64),e}function Fk(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-oi(t),e[t]=n}function lq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-oi(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function Hk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-oi(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var qn=0;function Q8(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var J8,$k,X8,e_,t_,Bk=!1,Mv=[],yc=null,xc=null,bc=null,Vf=new Map,Uf=new Map,wc=[],cq="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function n_(e,t){switch(e){case"focusin":case"focusout":yc=null;break;case"dragenter":case"dragleave":xc=null;break;case"mouseover":case"mouseout":bc=null;break;case"pointerover":case"pointerout":Vf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uf.delete(t.pointerId)}}function qf(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=o0(t),t!==null&&$k(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function dq(e,t,n,r,s){switch(t){case"focusin":return yc=qf(yc,e,t,n,r,s),!0;case"dragenter":return xc=qf(xc,e,t,n,r,s),!0;case"mouseover":return bc=qf(bc,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Vf.set(o,qf(Vf.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Uf.set(o,qf(Uf.get(o)||null,e,t,n,r,s)),!0}return!1}function r_(e){var t=Gd(e.target);if(t!==null){var n=Kd(t);if(n!==null){if(t=n.tag,t===13){if(t=B8(n),t!==null){e.blockedOn=t,t_(e.priority,function(){X8(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vk(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mk=r,n.target.dispatchEvent(r),Mk=null}else return t=o0(n),t!==null&&$k(t),e.blockedOn=n,!1;t.shift()}return!0}function a_(e,t,n){Lv(e)&&n.delete(t)}function uq(){Bk=!1,yc!==null&&Lv(yc)&&(yc=null),xc!==null&&Lv(xc)&&(xc=null),bc!==null&&Lv(bc)&&(bc=null),Vf.forEach(a_),Uf.forEach(a_)}function Yf(e,t){e.blockedOn===t&&(e.blockedOn=null,Bk||(Bk=!0,no.unstable_scheduleCallback(no.unstable_NormalPriority,uq)))}function Kf(e){function t(s){return Yf(s,e)}if(0<Mv.length){Yf(Mv[0],e);for(var n=1;n<Mv.length;n++){var r=Mv[n];r.blockedOn===e&&(r.blockedOn=null)}}for(yc!==null&&Yf(yc,e),xc!==null&&Yf(xc,e),bc!==null&&Yf(bc,e),Vf.forEach(t),Uf.forEach(t),n=0;n<wc.length;n++)r=wc[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wc.length&&(n=wc[0],n.blockedOn===null);)r_(n),n.blockedOn===null&&wc.shift()}var Hh=bl.ReactCurrentBatchConfig,Dv=!0;function hq(e,t,n,r){var s=qn,o=Hh.transition;Hh.transition=null;try{qn=1,Wk(e,t,n,r)}finally{qn=s,Hh.transition=o}}function pq(e,t,n,r){var s=qn,o=Hh.transition;Hh.transition=null;try{qn=4,Wk(e,t,n,r)}finally{qn=s,Hh.transition=o}}function Wk(e,t,n,r){if(Dv){var s=Vk(e,t,n,r);if(s===null)i5(e,t,r,Ov,n),n_(e,r);else if(dq(s,e,t,n,r))r.stopPropagation();else if(n_(e,r),t&4&&-1<cq.indexOf(e)){for(;s!==null;){var o=o0(s);if(o!==null&&J8(o),o=Vk(e,t,n,r),o===null&&i5(e,t,r,Ov,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else i5(e,t,r,null,n)}}var Ov=null;function Vk(e,t,n,r){if(Ov=null,e=Lk(r),e=Gd(e),e!==null)if(t=Kd(e),t===null)e=null;else if(n=t.tag,n===13){if(e=B8(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ov=e,null}function s_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(eq()){case Ak:return 1;case K8:return 4;case Ev:case tq:return 16;case G8:return 536870912;default:return 16}default:return 16}}var kc=null,Uk=null,Pv=null;function o_(){if(Pv)return Pv;var e,t=Uk,n=t.length,r,s="value"in kc?kc.value:kc.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return Pv=s.slice(e,1<r?1-r:void 0)}function Rv(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 Av(){return!0}function i_(){return!1}function ro(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Av:i_,this.isPropagationStopped=i_,this}return Cr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Av)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Av)},persist:function(){},isPersistent:Av}),t}var $h={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qk=ro($h),Gf=Cr({},$h,{view:0,detail:0}),mq=ro(Gf),Yk,Kk,Zf,zv=Cr({},Gf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zk,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!==Zf&&(Zf&&e.type==="mousemove"?(Yk=e.screenX-Zf.screenX,Kk=e.screenY-Zf.screenY):Kk=Yk=0,Zf=e),Yk)},movementY:function(e){return"movementY"in e?e.movementY:Kk}}),l_=ro(zv),fq=Cr({},zv,{dataTransfer:0}),gq=ro(fq),vq=Cr({},Gf,{relatedTarget:0}),Gk=ro(vq),yq=Cr({},$h,{animationName:0,elapsedTime:0,pseudoElement:0}),xq=ro(yq),bq=Cr({},$h,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wq=ro(bq),kq=Cr({},$h,{data:0}),c_=ro(kq),jq={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cq={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"},Sq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eq(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sq[e])?!!t[e]:!1}function Zk(){return Eq}var Nq=Cr({},Gf,{key:function(e){if(e.key){var t=jq[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cq[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zk,charCode:function(e){return e.type==="keypress"?Rv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_q=ro(Nq),Iq=Cr({},zv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),d_=ro(Iq),Tq=Cr({},Gf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zk}),Mq=ro(Tq),Lq=Cr({},$h,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dq=ro(Lq),Oq=Cr({},zv,{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}),Pq=ro(Oq),Rq=[9,13,27,32],Qk=xl&&"CompositionEvent"in window,Qf=null;xl&&"documentMode"in document&&(Qf=document.documentMode);var Aq=xl&&"TextEvent"in window&&!Qf,u_=xl&&(!Qk||Qf&&8<Qf&&11>=Qf),h_=" ",p_=!1;function m_(e,t){switch(e){case"keyup":return Rq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bh=!1;function zq(e,t){switch(e){case"compositionend":return f_(t);case"keypress":return t.which!==32?null:(p_=!0,h_);case"textInput":return e=t.data,e===h_&&p_?null:e;default:return null}}function Fq(e,t){if(Bh)return e==="compositionend"||!Qk&&m_(e,t)?(e=o_(),Pv=Uk=kc=null,Bh=!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 u_&&t.locale!=="ko"?null:t.data;default:return null}}var Hq={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 g_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hq[e.type]:t==="textarea"}function v_(e,t,n,r){A8(r),t=Wv(t,"onChange"),0<t.length&&(n=new qk("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jf=null,Xf=null;function $q(e){P_(e,0)}function Fv(e){var t=Yh(e);if(S8(t))return e}function Bq(e,t){if(e==="change")return t}var y_=!1;if(xl){var Jk;if(xl){var Xk="oninput"in document;if(!Xk){var x_=document.createElement("div");x_.setAttribute("oninput","return;"),Xk=typeof x_.oninput=="function"}Jk=Xk}else Jk=!1;y_=Jk&&(!document.documentMode||9<document.documentMode)}function b_(){Jf&&(Jf.detachEvent("onpropertychange",w_),Xf=Jf=null)}function w_(e){if(e.propertyName==="value"&&Fv(Xf)){var t=[];v_(t,Xf,e,Lk(e)),$8($q,t)}}function Wq(e,t,n){e==="focusin"?(b_(),Jf=t,Xf=n,Jf.attachEvent("onpropertychange",w_)):e==="focusout"&&b_()}function Vq(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fv(Xf)}function Uq(e,t){if(e==="click")return Fv(t)}function qq(e,t){if(e==="input"||e==="change")return Fv(t)}function Yq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ii=typeof Object.is=="function"?Object.is:Yq;function e0(e,t){if(ii(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!dk.call(t,s)||!ii(e[s],t[s]))return!1}return!0}function k_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function j_(e,t){var n=k_(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=k_(n)}}function C_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S_(){for(var e=window,t=kv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kv(e.document)}return t}function e5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Kq(e){var t=S_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&C_(n.ownerDocument.documentElement,n)){if(r!==null&&e5(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=j_(n,o);var i=j_(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gq=xl&&"documentMode"in document&&11>=document.documentMode,Wh=null,t5=null,t0=null,n5=!1;function E_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;n5||Wh==null||Wh!==kv(r)||(r=Wh,"selectionStart"in r&&e5(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),t0&&e0(t0,r)||(t0=r,r=Wv(t5,"onSelect"),0<r.length&&(t=new qk("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wh)))}function Hv(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vh={animationend:Hv("Animation","AnimationEnd"),animationiteration:Hv("Animation","AnimationIteration"),animationstart:Hv("Animation","AnimationStart"),transitionend:Hv("Transition","TransitionEnd")},r5={},N_={};xl&&(N_=document.createElement("div").style,"AnimationEvent"in window||(delete Vh.animationend.animation,delete Vh.animationiteration.animation,delete Vh.animationstart.animation),"TransitionEvent"in window||delete Vh.transitionend.transition);function $v(e){if(r5[e])return r5[e];if(!Vh[e])return e;var t=Vh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in N_)return r5[e]=t[n];return e}var __=$v("animationend"),I_=$v("animationiteration"),T_=$v("animationstart"),M_=$v("transitionend"),L_=new Map,D_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jc(e,t){L_.set(e,t),Yd(t,[e])}for(var a5=0;a5<D_.length;a5++){var s5=D_[a5],Zq=s5.toLowerCase(),Qq=s5[0].toUpperCase()+s5.slice(1);jc(Zq,"on"+Qq)}jc(__,"onAnimationEnd"),jc(I_,"onAnimationIteration"),jc(T_,"onAnimationStart"),jc("dblclick","onDoubleClick"),jc("focusin","onFocus"),jc("focusout","onBlur"),jc(M_,"onTransitionEnd"),Oh("onMouseEnter",["mouseout","mouseover"]),Oh("onMouseLeave",["mouseout","mouseover"]),Oh("onPointerEnter",["pointerout","pointerover"]),Oh("onPointerLeave",["pointerout","pointerover"]),Yd("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yd("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yd("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yd("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yd("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yd("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var n0="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(" "),Jq=new Set("cancel close invalid load scroll toggle".split(" ").concat(n0));function O_(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ZU(r,t,void 0,e),e.currentTarget=null}function P_(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var c=r[i],u=c.instance,h=c.currentTarget;if(c=c.listener,u!==o&&s.isPropagationStopped())break e;O_(s,c,h),o=u}else for(i=0;i<r.length;i++){if(c=r[i],u=c.instance,h=c.currentTarget,c=c.listener,u!==o&&s.isPropagationStopped())break e;O_(s,c,h),o=u}}}if(Sv)throw e=Rk,Sv=!1,Rk=null,e}function dr(e,t){var n=t[p5];n===void 0&&(n=t[p5]=new Set);var r=e+"__bubble";n.has(r)||(R_(t,e,2,!1),n.add(r))}function o5(e,t,n){var r=0;t&&(r|=4),R_(n,e,r,t)}var Bv="_reactListening"+Math.random().toString(36).slice(2);function r0(e){if(!e[Bv]){e[Bv]=!0,v8.forEach(function(n){n!=="selectionchange"&&(Jq.has(n)||o5(n,!1,e),o5(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bv]||(t[Bv]=!0,o5("selectionchange",!1,t))}}function R_(e,t,n,r){switch(s_(t)){case 1:var s=hq;break;case 4:s=pq;break;default:s=Wk}n=s.bind(null,t,n,e),s=void 0,!Pk||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function i5(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var c=r.stateNode.containerInfo;if(c===s||c.nodeType===8&&c.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;i=i.return}for(;c!==null;){if(i=Gd(c),i===null)return;if(u=i.tag,u===5||u===6){r=o=i;continue e}c=c.parentNode}}r=r.return}$8(function(){var h=o,p=Lk(n),m=[];e:{var x=L_.get(e);if(x!==void 0){var C=qk,b=e;switch(e){case"keypress":if(Rv(n)===0)break e;case"keydown":case"keyup":C=_q;break;case"focusin":b="focus",C=Gk;break;case"focusout":b="blur",C=Gk;break;case"beforeblur":case"afterblur":C=Gk;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=l_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=gq;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Mq;break;case __:case I_:case T_:C=xq;break;case M_:C=Dq;break;case"scroll":C=mq;break;case"wheel":C=Pq;break;case"copy":case"cut":case"paste":C=wq;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=d_}var g=(t&4)!==0,k=!g&&e==="scroll",j=g?x!==null?x+"Capture":null:x;g=[];for(var S=h,E;S!==null;){E=S;var N=E.stateNode;if(E.tag===5&&N!==null&&(E=N,j!==null&&(N=Ff(S,j),N!=null&&g.push(a0(S,N,E)))),k)break;S=S.return}0<g.length&&(x=new C(x,b,null,n,p),m.push({event:x,listeners:g}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",x&&n!==Mk&&(b=n.relatedTarget||n.fromElement)&&(Gd(b)||b[wl]))break e;if((C||x)&&(x=p.window===p?p:(x=p.ownerDocument)?x.defaultView||x.parentWindow:window,C?(b=n.relatedTarget||n.toElement,C=h,b=b?Gd(b):null,b!==null&&(k=Kd(b),b!==k||b.tag!==5&&b.tag!==6)&&(b=null)):(C=null,b=h),C!==b)){if(g=l_,N="onMouseLeave",j="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(g=d_,N="onPointerLeave",j="onPointerEnter",S="pointer"),k=C==null?x:Yh(C),E=b==null?x:Yh(b),x=new g(N,S+"leave",C,n,p),x.target=k,x.relatedTarget=E,N=null,Gd(p)===h&&(g=new g(j,S+"enter",b,n,p),g.target=E,g.relatedTarget=k,N=g),k=N,C&&b)t:{for(g=C,j=b,S=0,E=g;E;E=Uh(E))S++;for(E=0,N=j;N;N=Uh(N))E++;for(;0<S-E;)g=Uh(g),S--;for(;0<E-S;)j=Uh(j),E--;for(;S--;){if(g===j||j!==null&&g===j.alternate)break t;g=Uh(g),j=Uh(j)}g=null}else g=null;C!==null&&A_(m,x,C,g,!1),b!==null&&k!==null&&A_(m,k,b,g,!0)}}e:{if(x=h?Yh(h):window,C=x.nodeName&&x.nodeName.toLowerCase(),C==="select"||C==="input"&&x.type==="file")var T=Bq;else if(g_(x))if(y_)T=qq;else{T=Vq;var M=Wq}else(C=x.nodeName)&&C.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(T=Uq);if(T&&(T=T(e,h))){v_(m,T,n,p);break e}M&&M(e,x,h),e==="focusout"&&(M=x._wrapperState)&&M.controlled&&x.type==="number"&&Ek(x,"number",x.value)}switch(M=h?Yh(h):window,e){case"focusin":(g_(M)||M.contentEditable==="true")&&(Wh=M,t5=h,t0=null);break;case"focusout":t0=t5=Wh=null;break;case"mousedown":n5=!0;break;case"contextmenu":case"mouseup":case"dragend":n5=!1,E_(m,n,p);break;case"selectionchange":if(Gq)break;case"keydown":case"keyup":E_(m,n,p)}var L;if(Qk)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Bh?m_(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(u_&&n.locale!=="ko"&&(Bh||D!=="onCompositionStart"?D==="onCompositionEnd"&&Bh&&(L=o_()):(kc=p,Uk="value"in kc?kc.value:kc.textContent,Bh=!0)),M=Wv(h,D),0<M.length&&(D=new c_(D,e,null,n,p),m.push({event:D,listeners:M}),L?D.data=L:(L=f_(n),L!==null&&(D.data=L)))),(L=Aq?zq(e,n):Fq(e,n))&&(h=Wv(h,"onBeforeInput"),0<h.length&&(p=new c_("onBeforeInput","beforeinput",null,n,p),m.push({event:p,listeners:h}),p.data=L))}P_(m,t)})}function a0(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wv(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Ff(e,n),o!=null&&r.unshift(a0(e,o,s)),o=Ff(e,t),o!=null&&r.push(a0(e,o,s))),e=e.return}return r}function Uh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function A_(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var c=n,u=c.alternate,h=c.stateNode;if(u!==null&&u===r)break;c.tag===5&&h!==null&&(c=h,s?(u=Ff(n,o),u!=null&&i.unshift(a0(n,u,c))):s||(u=Ff(n,o),u!=null&&i.push(a0(n,u,c)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Xq=/\r\n?/g,eY=/\u0000|\uFFFD/g;function z_(e){return(typeof e=="string"?e:""+e).replace(Xq,"\n").replace(eY,"")}function Vv(e,t,n){if(t=z_(t),z_(e)!==t&&n)throw Error(rt(425))}function Uv(){}var l5=null,c5=null;function d5(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var u5=typeof setTimeout=="function"?setTimeout:void 0,tY=typeof clearTimeout=="function"?clearTimeout:void 0,F_=typeof Promise=="function"?Promise:void 0,nY=typeof queueMicrotask=="function"?queueMicrotask:typeof F_<"u"?function(e){return F_.resolve(null).then(e).catch(rY)}:u5;function rY(e){setTimeout(function(){throw e})}function h5(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Kf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Kf(t)}function Cc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function H_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qh=Math.random().toString(36).slice(2),Fi="__reactFiber$"+qh,s0="__reactProps$"+qh,wl="__reactContainer$"+qh,p5="__reactEvents$"+qh,aY="__reactListeners$"+qh,sY="__reactHandles$"+qh;function Gd(e){var t=e[Fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wl]||n[Fi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=H_(e);e!==null;){if(n=e[Fi])return n;e=H_(e)}return t}e=n,n=e.parentNode}return null}function o0(e){return e=e[Fi]||e[wl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yh(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(rt(33))}function qv(e){return e[s0]||null}var m5=[],Kh=-1;function Sc(e){return{current:e}}function ur(e){0>Kh||(e.current=m5[Kh],m5[Kh]=null,Kh--)}function lr(e,t){Kh++,m5[Kh]=e.current,e.current=t}var Ec={},Fa=Sc(Ec),Is=Sc(!1),Zd=Ec;function Gh(e,t){var n=e.type.contextTypes;if(!n)return Ec;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ts(e){return e=e.childContextTypes,e!=null}function Yv(){ur(Is),ur(Fa)}function $_(e,t,n){if(Fa.current!==Ec)throw Error(rt(168));lr(Fa,t),lr(Is,n)}function B_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(rt(108,WU(e)||"Unknown",s));return Cr({},n,r)}function Kv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ec,Zd=Fa.current,lr(Fa,e),lr(Is,Is.current),!0}function W_(e,t,n){var r=e.stateNode;if(!r)throw Error(rt(169));n?(e=B_(e,t,Zd),r.__reactInternalMemoizedMergedChildContext=e,ur(Is),ur(Fa),lr(Fa,e)):ur(Is),lr(Is,n)}var kl=null,Gv=!1,f5=!1;function V_(e){kl===null?kl=[e]:kl.push(e)}function oY(e){Gv=!0,V_(e)}function Nc(){if(!f5&&kl!==null){f5=!0;var e=0,t=qn;try{var n=kl;for(qn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kl=null,Gv=!1}catch(s){throw kl!==null&&(kl=kl.slice(e+1)),q8(Ak,Nc),s}finally{qn=t,f5=!1}}return null}var Zh=[],Qh=0,Zv=null,Qv=0,To=[],Mo=0,Qd=null,jl=1,Cl="";function Jd(e,t){Zh[Qh++]=Qv,Zh[Qh++]=Zv,Zv=e,Qv=t}function U_(e,t,n){To[Mo++]=jl,To[Mo++]=Cl,To[Mo++]=Qd,Qd=e;var r=jl;e=Cl;var s=32-oi(r)-1;r&=~(1<<s),n+=1;var o=32-oi(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,jl=1<<32-oi(t)+s|n<<s|r,Cl=o+e}else jl=1<<o|n<<s|r,Cl=e}function g5(e){e.return!==null&&(Jd(e,1),U_(e,1,0))}function v5(e){for(;e===Zv;)Zv=Zh[--Qh],Zh[Qh]=null,Qv=Zh[--Qh],Zh[Qh]=null;for(;e===Qd;)Qd=To[--Mo],To[Mo]=null,Cl=To[--Mo],To[Mo]=null,jl=To[--Mo],To[Mo]=null}var ao=null,so=null,xr=!1,li=null;function q_(e,t){var n=Po(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Y_(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ao=e,so=Cc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ao=e,so=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qd!==null?{id:jl,overflow:Cl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Po(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ao=e,so=null,!0):!1;default:return!1}}function y5(e){return(e.mode&1)!==0&&(e.flags&128)===0}function x5(e){if(xr){var t=so;if(t){var n=t;if(!Y_(e,t)){if(y5(e))throw Error(rt(418));t=Cc(n.nextSibling);var r=ao;t&&Y_(e,t)?q_(r,n):(e.flags=e.flags&-4097|2,xr=!1,ao=e)}}else{if(y5(e))throw Error(rt(418));e.flags=e.flags&-4097|2,xr=!1,ao=e}}}function K_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ao=e}function Jv(e){if(e!==ao)return!1;if(!xr)return K_(e),xr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!d5(e.type,e.memoizedProps)),t&&(t=so)){if(y5(e))throw G_(),Error(rt(418));for(;t;)q_(e,t),t=Cc(t.nextSibling)}if(K_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(rt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){so=Cc(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}so=null}}else so=ao?Cc(e.stateNode.nextSibling):null;return!0}function G_(){for(var e=so;e;)e=Cc(e.nextSibling)}function Jh(){so=ao=null,xr=!1}function b5(e){li===null?li=[e]:li.push(e)}var iY=bl.ReactCurrentBatchConfig;function ci(e,t){if(e&&e.defaultProps){t=Cr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Xv=Sc(null),ey=null,Xh=null,w5=null;function k5(){w5=Xh=ey=null}function j5(e){var t=Xv.current;ur(Xv),e._currentValue=t}function C5(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ep(e,t){ey=e,w5=Xh=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ms=!0),e.firstContext=null)}function Lo(e){var t=e._currentValue;if(w5!==e)if(e={context:e,memoizedValue:t,next:null},Xh===null){if(ey===null)throw Error(rt(308));Xh=e,ey.dependencies={lanes:0,firstContext:e}}else Xh=Xh.next=e;return t}var Xd=null;function S5(e){Xd===null?Xd=[e]:Xd.push(e)}function Z_(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,S5(t)):(n.next=s.next,s.next=n),t.interleaved=n,Sl(e,r)}function Sl(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _c=!1;function E5(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function El(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ic(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pn&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Sl(e,n)}return s=r.interleaved,s===null?(t.next=t,S5(r)):(t.next=s.next,s.next=t),r.interleaved=t,Sl(e,n)}function ty(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hk(e,n)}}function J_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ny(e,t,n,r){var s=e.updateQueue;_c=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,c=s.shared.pending;if(c!==null){s.shared.pending=null;var u=c,h=u.next;u.next=null,i===null?o=h:i.next=h,i=u;var p=e.alternate;p!==null&&(p=p.updateQueue,c=p.lastBaseUpdate,c!==i&&(c===null?p.firstBaseUpdate=h:c.next=h,p.lastBaseUpdate=u))}if(o!==null){var m=s.baseState;i=0,p=h=u=null,c=o;do{var x=c.lane,C=c.eventTime;if((r&x)===x){p!==null&&(p=p.next={eventTime:C,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var b=e,g=c;switch(x=t,C=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){m=b.call(C,m,x);break e}m=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,x=typeof b=="function"?b.call(C,m,x):b,x==null)break e;m=Cr({},m,x);break e;case 2:_c=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,x=s.effects,x===null?s.effects=[c]:x.push(c))}else C={eventTime:C,lane:x,tag:c.tag,payload:c.payload,callback:c.callback,next:null},p===null?(h=p=C,u=m):p=p.next=C,i|=x;if(c=c.next,c===null){if(c=s.shared.pending,c===null)break;x=c,c=x.next,x.next=null,s.lastBaseUpdate=x,s.shared.pending=null}}while(!0);if(p===null&&(u=m),s.baseState=u,s.firstBaseUpdate=h,s.lastBaseUpdate=p,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);nu|=i,e.lanes=i,e.memoizedState=m}}function X_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(rt(191,s));s.call(r)}}}var e7=new g8.Component().refs;function N5(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Cr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ry={isMounted:function(e){return(e=e._reactInternals)?Kd(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cs(),s=Dc(e),o=El(r,s);o.payload=t,n!=null&&(o.callback=n),t=Ic(e,o,s),t!==null&&(hi(t,e,s,r),ty(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cs(),s=Dc(e),o=El(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ic(e,o,s),t!==null&&(hi(t,e,s,r),ty(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cs(),r=Dc(e),s=El(n,r);s.tag=2,t!=null&&(s.callback=t),t=Ic(e,s,r),t!==null&&(hi(t,e,r,n),ty(t,e,r))}};function t7(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!e0(n,r)||!e0(s,o):!0}function n7(e,t,n){var r=!1,s=Ec,o=t.contextType;return typeof o=="object"&&o!==null?o=Lo(o):(s=Ts(t)?Zd:Fa.current,r=t.contextTypes,o=(r=r!=null)?Gh(e,s):Ec),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ry,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function r7(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ry.enqueueReplaceState(t,t.state,null)}function _5(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=e7,E5(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Lo(o):(o=Ts(t)?Zd:Fa.current,s.context=Gh(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(N5(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ry.enqueueReplaceState(s,s.state,null),ny(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function i0(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(rt(309));var r=n.stateNode}if(!r)throw Error(rt(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var c=s.refs;c===e7&&(c=s.refs={}),i===null?delete c[o]:c[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(rt(284));if(!n._owner)throw Error(rt(290,e))}return e}function ay(e,t){throw e=Object.prototype.toString.call(t),Error(rt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function a7(e){var t=e._init;return t(e._payload)}function s7(e){function t(j,S){if(e){var E=j.deletions;E===null?(j.deletions=[S],j.flags|=16):E.push(S)}}function n(j,S){if(!e)return null;for(;S!==null;)t(j,S),S=S.sibling;return null}function r(j,S){for(j=new Map;S!==null;)S.key!==null?j.set(S.key,S):j.set(S.index,S),S=S.sibling;return j}function s(j,S){return j=Pc(j,S),j.index=0,j.sibling=null,j}function o(j,S,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<S?(j.flags|=2,S):E):(j.flags|=2,S)):(j.flags|=1048576,S)}function i(j){return e&&j.alternate===null&&(j.flags|=2),j}function c(j,S,E,N){return S===null||S.tag!==6?(S=dj(E,j.mode,N),S.return=j,S):(S=s(S,E),S.return=j,S)}function u(j,S,E,N){var T=E.type;return T===Rh?p(j,S,E.props.children,N,E.key):S!==null&&(S.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===gc&&a7(T)===S.type)?(N=s(S,E.props),N.ref=i0(j,S,E),N.return=j,N):(N=jy(E.type,E.key,E.props,null,j.mode,N),N.ref=i0(j,S,E),N.return=j,N)}function h(j,S,E,N){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=uj(E,j.mode,N),S.return=j,S):(S=s(S,E.children||[]),S.return=j,S)}function p(j,S,E,N,T){return S===null||S.tag!==7?(S=ou(E,j.mode,N,T),S.return=j,S):(S=s(S,E),S.return=j,S)}function m(j,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return S=dj(""+S,j.mode,E),S.return=j,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case bv:return E=jy(S.type,S.key,S.props,null,j.mode,E),E.ref=i0(j,null,S),E.return=j,E;case Ph:return S=uj(S,j.mode,E),S.return=j,S;case gc:var N=S._init;return m(j,N(S._payload),E)}if(Rf(S)||Of(S))return S=ou(S,j.mode,E,null),S.return=j,S;ay(j,S)}return null}function x(j,S,E,N){var T=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return T!==null?null:c(j,S,""+E,N);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case bv:return E.key===T?u(j,S,E,N):null;case Ph:return E.key===T?h(j,S,E,N):null;case gc:return T=E._init,x(j,S,T(E._payload),N)}if(Rf(E)||Of(E))return T!==null?null:p(j,S,E,N,null);ay(j,E)}return null}function C(j,S,E,N,T){if(typeof N=="string"&&N!==""||typeof N=="number")return j=j.get(E)||null,c(S,j,""+N,T);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case bv:return j=j.get(N.key===null?E:N.key)||null,u(S,j,N,T);case Ph:return j=j.get(N.key===null?E:N.key)||null,h(S,j,N,T);case gc:var M=N._init;return C(j,S,E,M(N._payload),T)}if(Rf(N)||Of(N))return j=j.get(E)||null,p(S,j,N,T,null);ay(S,N)}return null}function b(j,S,E,N){for(var T=null,M=null,L=S,D=S=0,P=null;L!==null&&D<E.length;D++){L.index>D?(P=L,L=null):P=L.sibling;var A=x(j,L,E[D],N);if(A===null){L===null&&(L=P);break}e&&L&&A.alternate===null&&t(j,L),S=o(A,S,D),M===null?T=A:M.sibling=A,M=A,L=P}if(D===E.length)return n(j,L),xr&&Jd(j,D),T;if(L===null){for(;D<E.length;D++)L=m(j,E[D],N),L!==null&&(S=o(L,S,D),M===null?T=L:M.sibling=L,M=L);return xr&&Jd(j,D),T}for(L=r(j,L);D<E.length;D++)P=C(L,j,D,E[D],N),P!==null&&(e&&P.alternate!==null&&L.delete(P.key===null?D:P.key),S=o(P,S,D),M===null?T=P:M.sibling=P,M=P);return e&&L.forEach(function(B){return t(j,B)}),xr&&Jd(j,D),T}function g(j,S,E,N){var T=Of(E);if(typeof T!="function")throw Error(rt(150));if(E=T.call(E),E==null)throw Error(rt(151));for(var M=T=null,L=S,D=S=0,P=null,A=E.next();L!==null&&!A.done;D++,A=E.next()){L.index>D?(P=L,L=null):P=L.sibling;var B=x(j,L,A.value,N);if(B===null){L===null&&(L=P);break}e&&L&&B.alternate===null&&t(j,L),S=o(B,S,D),M===null?T=B:M.sibling=B,M=B,L=P}if(A.done)return n(j,L),xr&&Jd(j,D),T;if(L===null){for(;!A.done;D++,A=E.next())A=m(j,A.value,N),A!==null&&(S=o(A,S,D),M===null?T=A:M.sibling=A,M=A);return xr&&Jd(j,D),T}for(L=r(j,L);!A.done;D++,A=E.next())A=C(L,j,D,A.value,N),A!==null&&(e&&A.alternate!==null&&L.delete(A.key===null?D:A.key),S=o(A,S,D),M===null?T=A:M.sibling=A,M=A);return e&&L.forEach(function(z){return t(j,z)}),xr&&Jd(j,D),T}function k(j,S,E,N){if(typeof E=="object"&&E!==null&&E.type===Rh&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case bv:e:{for(var T=E.key,M=S;M!==null;){if(M.key===T){if(T=E.type,T===Rh){if(M.tag===7){n(j,M.sibling),S=s(M,E.props.children),S.return=j,j=S;break e}}else if(M.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===gc&&a7(T)===M.type){n(j,M.sibling),S=s(M,E.props),S.ref=i0(j,M,E),S.return=j,j=S;break e}n(j,M);break}else t(j,M);M=M.sibling}E.type===Rh?(S=ou(E.props.children,j.mode,N,E.key),S.return=j,j=S):(N=jy(E.type,E.key,E.props,null,j.mode,N),N.ref=i0(j,S,E),N.return=j,j=N)}return i(j);case Ph:e:{for(M=E.key;S!==null;){if(S.key===M)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){n(j,S.sibling),S=s(S,E.children||[]),S.return=j,j=S;break e}else{n(j,S);break}else t(j,S);S=S.sibling}S=uj(E,j.mode,N),S.return=j,j=S}return i(j);case gc:return M=E._init,k(j,S,M(E._payload),N)}if(Rf(E))return b(j,S,E,N);if(Of(E))return g(j,S,E,N);ay(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,S!==null&&S.tag===6?(n(j,S.sibling),S=s(S,E),S.return=j,j=S):(n(j,S),S=dj(E,j.mode,N),S.return=j,j=S),i(j)):n(j,S)}return k}var tp=s7(!0),o7=s7(!1),l0={},Hi=Sc(l0),c0=Sc(l0),d0=Sc(l0);function eu(e){if(e===l0)throw Error(rt(174));return e}function I5(e,t){switch(lr(d0,t),lr(c0,e),lr(Hi,l0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_k(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_k(t,e)}ur(Hi),lr(Hi,t)}function np(){ur(Hi),ur(c0),ur(d0)}function i7(e){eu(d0.current);var t=eu(Hi.current),n=_k(t,e.type);t!==n&&(lr(c0,e),lr(Hi,n))}function T5(e){c0.current===e&&(ur(Hi),ur(c0))}var Sr=Sc(0);function sy(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var M5=[];function L5(){for(var e=0;e<M5.length;e++)M5[e]._workInProgressVersionPrimary=null;M5.length=0}var oy=bl.ReactCurrentDispatcher,D5=bl.ReactCurrentBatchConfig,tu=0,Er=null,Jr=null,ha=null,iy=!1,u0=!1,h0=0,lY=0;function Ha(){throw Error(rt(321))}function O5(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ii(e[n],t[n]))return!1;return!0}function P5(e,t,n,r,s,o){if(tu=o,Er=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oy.current=e===null||e.memoizedState===null?hY:pY,e=n(r,s),u0){o=0;do{if(u0=!1,h0=0,25<=o)throw Error(rt(301));o+=1,ha=Jr=null,t.updateQueue=null,oy.current=mY,e=n(r,s)}while(u0)}if(oy.current=dy,t=Jr!==null&&Jr.next!==null,tu=0,ha=Jr=Er=null,iy=!1,t)throw Error(rt(300));return e}function R5(){var e=h0!==0;return h0=0,e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ha===null?Er.memoizedState=ha=e:ha=ha.next=e,ha}function Do(){if(Jr===null){var e=Er.alternate;e=e!==null?e.memoizedState:null}else e=Jr.next;var t=ha===null?Er.memoizedState:ha.next;if(t!==null)ha=t,Jr=e;else{if(e===null)throw Error(rt(310));Jr=e,e={memoizedState:Jr.memoizedState,baseState:Jr.baseState,baseQueue:Jr.baseQueue,queue:Jr.queue,next:null},ha===null?Er.memoizedState=ha=e:ha=ha.next=e}return ha}function p0(e,t){return typeof t=="function"?t(e):t}function A5(e){var t=Do(),n=t.queue;if(n===null)throw Error(rt(311));n.lastRenderedReducer=e;var r=Jr,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var c=i=null,u=null,h=o;do{var p=h.lane;if((tu&p)===p)u!==null&&(u=u.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),r=h.hasEagerState?h.eagerState:e(r,h.action);else{var m={lane:p,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};u===null?(c=u=m,i=r):u=u.next=m,Er.lanes|=p,nu|=p}h=h.next}while(h!==null&&h!==o);u===null?i=r:u.next=c,ii(r,t.memoizedState)||(Ms=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Er.lanes|=o,nu|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function z5(e){var t=Do(),n=t.queue;if(n===null)throw Error(rt(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);ii(o,t.memoizedState)||(Ms=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function l7(){}function c7(e,t){var n=Er,r=Do(),s=t(),o=!ii(r.memoizedState,s);if(o&&(r.memoizedState=s,Ms=!0),r=r.queue,F5(h7.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ha!==null&&ha.memoizedState.tag&1){if(n.flags|=2048,m0(9,u7.bind(null,n,r,s,t),void 0,null),pa===null)throw Error(rt(349));tu&30||d7(n,t,s)}return s}function d7(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Er.updateQueue,t===null?(t={lastEffect:null,stores:null},Er.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function u7(e,t,n,r){t.value=n,t.getSnapshot=r,p7(t)&&m7(e)}function h7(e,t,n){return n(function(){p7(t)&&m7(e)})}function p7(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ii(e,n)}catch{return!0}}function m7(e){var t=Sl(e,1);t!==null&&hi(t,e,1,-1)}function f7(e){var t=$i();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p0,lastRenderedState:e},t.queue=e,e=e.dispatch=uY.bind(null,Er,e),[t.memoizedState,e]}function m0(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Er.updateQueue,t===null?(t={lastEffect:null,stores:null},Er.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function g7(){return Do().memoizedState}function ly(e,t,n,r){var s=$i();Er.flags|=e,s.memoizedState=m0(1|t,n,void 0,r===void 0?null:r)}function cy(e,t,n,r){var s=Do();r=r===void 0?null:r;var o=void 0;if(Jr!==null){var i=Jr.memoizedState;if(o=i.destroy,r!==null&&O5(r,i.deps)){s.memoizedState=m0(t,n,o,r);return}}Er.flags|=e,s.memoizedState=m0(1|t,n,o,r)}function v7(e,t){return ly(8390656,8,e,t)}function F5(e,t){return cy(2048,8,e,t)}function y7(e,t){return cy(4,2,e,t)}function x7(e,t){return cy(4,4,e,t)}function b7(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function w7(e,t,n){return n=n!=null?n.concat([e]):null,cy(4,4,b7.bind(null,t,e),n)}function H5(){}function k7(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&O5(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function j7(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&O5(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function C7(e,t,n){return tu&21?(ii(n,t)||(n=Z8(),Er.lanes|=n,nu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ms=!0),e.memoizedState=n)}function cY(e,t){var n=qn;qn=n!==0&&4>n?n:4,e(!0);var r=D5.transition;D5.transition={};try{e(!1),t()}finally{qn=n,D5.transition=r}}function S7(){return Do().memoizedState}function dY(e,t,n){var r=Dc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},E7(e))N7(t,n);else if(n=Z_(e,t,n,r),n!==null){var s=cs();hi(n,e,r,s),_7(n,t,r)}}function uY(e,t,n){var r=Dc(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(E7(e))N7(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,c=o(i,n);if(s.hasEagerState=!0,s.eagerState=c,ii(c,i)){var u=t.interleaved;u===null?(s.next=s,S5(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Z_(e,t,s,r),n!==null&&(s=cs(),hi(n,e,r,s),_7(n,t,r))}}function E7(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function N7(e,t){u0=iy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hk(e,n)}}var dy={readContext:Lo,useCallback:Ha,useContext:Ha,useEffect:Ha,useImperativeHandle:Ha,useInsertionEffect:Ha,useLayoutEffect:Ha,useMemo:Ha,useReducer:Ha,useRef:Ha,useState:Ha,useDebugValue:Ha,useDeferredValue:Ha,useTransition:Ha,useMutableSource:Ha,useSyncExternalStore:Ha,useId:Ha,unstable_isNewReconciler:!1},hY={readContext:Lo,useCallback:function(e,t){return $i().memoizedState=[e,t===void 0?null:t],e},useContext:Lo,useEffect:v7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ly(4194308,4,b7.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ly(4194308,4,e,t)},useInsertionEffect:function(e,t){return ly(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$i();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dY.bind(null,Er,e),[r.memoizedState,e]},useRef:function(e){var t=$i();return e={current:e},t.memoizedState=e},useState:f7,useDebugValue:H5,useDeferredValue:function(e){return $i().memoizedState=e},useTransition:function(){var e=f7(!1),t=e[0];return e=cY.bind(null,e[1]),$i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Er,s=$i();if(xr){if(n===void 0)throw Error(rt(407));n=n()}else{if(n=t(),pa===null)throw Error(rt(349));tu&30||d7(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,v7(h7.bind(null,r,o,e),[e]),r.flags|=2048,m0(9,u7.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$i(),t=pa.identifierPrefix;if(xr){var n=Cl,r=jl;n=(r&~(1<<32-oi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=h0++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lY++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pY={readContext:Lo,useCallback:k7,useContext:Lo,useEffect:F5,useImperativeHandle:w7,useInsertionEffect:y7,useLayoutEffect:x7,useMemo:j7,useReducer:A5,useRef:g7,useState:function(){return A5(p0)},useDebugValue:H5,useDeferredValue:function(e){var t=Do();return C7(t,Jr.memoizedState,e)},useTransition:function(){var e=A5(p0)[0],t=Do().memoizedState;return[e,t]},useMutableSource:l7,useSyncExternalStore:c7,useId:S7,unstable_isNewReconciler:!1},mY={readContext:Lo,useCallback:k7,useContext:Lo,useEffect:F5,useImperativeHandle:w7,useInsertionEffect:y7,useLayoutEffect:x7,useMemo:j7,useReducer:z5,useRef:g7,useState:function(){return z5(p0)},useDebugValue:H5,useDeferredValue:function(e){var t=Do();return Jr===null?t.memoizedState=e:C7(t,Jr.memoizedState,e)},useTransition:function(){var e=z5(p0)[0],t=Do().memoizedState;return[e,t]},useMutableSource:l7,useSyncExternalStore:c7,useId:S7,unstable_isNewReconciler:!1};function rp(e,t){try{var n="",r=t;do n+=BU(r),r=r.return;while(r);var s=n}catch(o){s="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:s,digest:null}}function $5(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function B5(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fY=typeof WeakMap=="function"?WeakMap:Map;function I7(e,t,n){n=El(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vy||(vy=!0,nj=r),B5(e,t)},n}function T7(e,t,n){n=El(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){B5(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){B5(e,t),typeof r!="function"&&(Mc===null?Mc=new Set([this]):Mc.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function M7(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fY;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=IY.bind(null,e,t,n),t.then(e,e))}function L7(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function D7(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=El(-1,1),t.tag=2,Ic(n,t,1))),n.lanes|=1),e)}var gY=bl.ReactCurrentOwner,Ms=!1;function ls(e,t,n,r){t.child=e===null?o7(t,null,n,r):tp(t,e.child,n,r)}function O7(e,t,n,r,s){n=n.render;var o=t.ref;return ep(t,s),r=P5(e,t,n,r,o,s),n=R5(),e!==null&&!Ms?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Nl(e,t,s)):(xr&&n&&g5(t),t.flags|=1,ls(e,t,r,s),t.child)}function P7(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!cj(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,R7(e,t,o,r,s)):(e=jy(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:e0,n(i,r)&&e.ref===t.ref)return Nl(e,t,s)}return t.flags|=1,e=Pc(o,r),e.ref=t.ref,e.return=t,t.child=e}function R7(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(e0(o,r)&&e.ref===t.ref)if(Ms=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(Ms=!0);else return t.lanes=e.lanes,Nl(e,t,s)}return W5(e,t,n,r,s)}function A7(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},lr(sp,oo),oo|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,lr(sp,oo),oo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lr(sp,oo),oo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,lr(sp,oo),oo|=r;return ls(e,t,s,n),t.child}function z7(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function W5(e,t,n,r,s){var o=Ts(n)?Zd:Fa.current;return o=Gh(t,o),ep(t,s),n=P5(e,t,n,r,o,s),r=R5(),e!==null&&!Ms?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Nl(e,t,s)):(xr&&r&&g5(t),t.flags|=1,ls(e,t,n,s),t.child)}function F7(e,t,n,r,s){if(Ts(n)){var o=!0;Kv(t)}else o=!1;if(ep(t,s),t.stateNode===null)hy(e,t),n7(t,n,r),_5(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var u=i.context,h=n.contextType;typeof h=="object"&&h!==null?h=Lo(h):(h=Ts(n)?Zd:Fa.current,h=Gh(t,h));var p=n.getDerivedStateFromProps,m=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==r||u!==h)&&r7(t,i,r,h),_c=!1;var x=t.memoizedState;i.state=x,ny(t,r,i,s),u=t.memoizedState,c!==r||x!==u||Is.current||_c?(typeof p=="function"&&(N5(t,n,p,r),u=t.memoizedState),(c=_c||t7(t,n,c,r,x,u,h))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=h,r=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Q_(e,t),c=t.memoizedProps,h=t.type===t.elementType?c:ci(t.type,c),i.props=h,m=t.pendingProps,x=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Lo(u):(u=Ts(n)?Zd:Fa.current,u=Gh(t,u));var C=n.getDerivedStateFromProps;(p=typeof C=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==m||x!==u)&&r7(t,i,r,u),_c=!1,x=t.memoizedState,i.state=x,ny(t,r,i,s);var b=t.memoizedState;c!==m||x!==b||Is.current||_c?(typeof C=="function"&&(N5(t,n,C,r),b=t.memoizedState),(h=_c||t7(t,n,h,r,x,b,u)||!1)?(p||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=u,r=h):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),r=!1)}return V5(e,t,n,r,o,s)}function V5(e,t,n,r,s,o){z7(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&W_(t,n,!1),Nl(e,t,o);r=t.stateNode,gY.current=t;var c=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=tp(t,e.child,null,o),t.child=tp(t,null,c,o)):ls(e,t,c,o),t.memoizedState=r.state,s&&W_(t,n,!0),t.child}function H7(e){var t=e.stateNode;t.pendingContext?$_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$_(e,t.context,!1),I5(e,t.containerInfo)}function $7(e,t,n,r,s){return Jh(),b5(s),t.flags|=256,ls(e,t,n,r),t.child}var U5={dehydrated:null,treeContext:null,retryLane:0};function q5(e){return{baseLanes:e,cachePool:null,transitions:null}}function B7(e,t,n){var r=t.pendingProps,s=Sr.current,o=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(s&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),lr(Sr,s&1),e===null)return x5(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Cy(i,r,0,null),e=ou(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=q5(n),t.memoizedState=U5,e):Y5(t,i));if(s=e.memoizedState,s!==null&&(c=s.dehydrated,c!==null))return vY(e,t,i,r,c,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,c=s.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Pc(s,u),r.subtreeFlags=s.subtreeFlags&14680064),c!==null?o=Pc(c,o):(o=ou(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?q5(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=U5,r}return o=e.child,e=o.sibling,r=Pc(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Y5(e,t){return t=Cy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uy(e,t,n,r){return r!==null&&b5(r),tp(t,e.child,null,n),e=Y5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vY(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=$5(Error(rt(422))),uy(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Cy({mode:"visible",children:r.children},s,0,null),o=ou(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&tp(t,e.child,null,i),t.child.memoizedState=q5(i),t.memoizedState=U5,o);if(!(t.mode&1))return uy(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var c=r.dgst;return r=c,o=Error(rt(419)),r=$5(o,r,void 0),uy(e,t,i,r)}if(c=(i&e.childLanes)!==0,Ms||c){if(r=pa,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Sl(e,s),hi(r,e,s,-1))}return lj(),r=$5(Error(rt(421))),uy(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=TY.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,so=Cc(s.nextSibling),ao=t,xr=!0,li=null,e!==null&&(To[Mo++]=jl,To[Mo++]=Cl,To[Mo++]=Qd,jl=e.id,Cl=e.overflow,Qd=t),t=Y5(t,r.children),t.flags|=4096,t)}function W7(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),C5(e.return,t,n)}function K5(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function V7(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(ls(e,t,r.children,n),r=Sr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&W7(e,n,t);else if(e.tag===19)W7(e,n,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}r&=1}if(lr(Sr,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&sy(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),K5(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&sy(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}K5(t,!0,n,null,o);break;case"together":K5(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hy(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(rt(153));if(t.child!==null){for(e=t.child,n=Pc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yY(e,t,n){switch(t.tag){case 3:H7(t),Jh();break;case 5:i7(t);break;case 1:Ts(t.type)&&Kv(t);break;case 4:I5(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;lr(Xv,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(lr(Sr,Sr.current&1),t.flags|=128,null):n&t.child.childLanes?B7(e,t,n):(lr(Sr,Sr.current&1),e=Nl(e,t,n),e!==null?e.sibling:null);lr(Sr,Sr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return V7(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),lr(Sr,Sr.current),r)break;return null;case 22:case 23:return t.lanes=0,A7(e,t,n)}return Nl(e,t,n)}var U7,G5,q7,Y7;U7=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},G5=function(){},q7=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,eu(Hi.current);var o=null;switch(n){case"input":s=Ck(e,s),r=Ck(e,r),o=[];break;case"select":s=Cr({},s,{value:void 0}),r=Cr({},r,{value:void 0}),o=[];break;case"textarea":s=Nk(e,s),r=Nk(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Uv)}Ik(n,r);var i;n=null;for(h in s)if(!r.hasOwnProperty(h)&&s.hasOwnProperty(h)&&s[h]!=null)if(h==="style"){var c=s[h];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(Df.hasOwnProperty(h)?o||(o=[]):(o=o||[]).push(h,null));for(h in r){var u=r[h];if(c=s==null?void 0:s[h],r.hasOwnProperty(h)&&u!==c&&(u!=null||c!=null))if(h==="style")if(c){for(i in c)!c.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&c[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(h,n)),n=u;else h==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,c=c?c.__html:void 0,u!=null&&c!==u&&(o=o||[]).push(h,u)):h==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(h,""+u):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(Df.hasOwnProperty(h)?(u!=null&&h==="onScroll"&&dr("scroll",e),o||c===u||(o=[])):(o=o||[]).push(h,u))}n&&(o=o||[]).push("style",n);var h=o;(t.updateQueue=h)&&(t.flags|=4)}},Y7=function(e,t,n,r){n!==r&&(t.flags|=4)};function f0(e,t){if(!xr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $a(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xY(e,t,n){var r=t.pendingProps;switch(v5(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $a(t),null;case 1:return Ts(t.type)&&Yv(),$a(t),null;case 3:return r=t.stateNode,np(),ur(Is),ur(Fa),L5(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Jv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,li!==null&&(sj(li),li=null))),G5(e,t),$a(t),null;case 5:T5(t);var s=eu(d0.current);if(n=t.type,e!==null&&t.stateNode!=null)q7(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(rt(166));return $a(t),null}if(e=eu(Hi.current),Jv(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Fi]=t,r[s0]=o,e=(t.mode&1)!==0,n){case"dialog":dr("cancel",r),dr("close",r);break;case"iframe":case"object":case"embed":dr("load",r);break;case"video":case"audio":for(s=0;s<n0.length;s++)dr(n0[s],r);break;case"source":dr("error",r);break;case"img":case"image":case"link":dr("error",r),dr("load",r);break;case"details":dr("toggle",r);break;case"input":E8(r,o),dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},dr("invalid",r);break;case"textarea":I8(r,o),dr("invalid",r)}Ik(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="children"?typeof c=="string"?r.textContent!==c&&(o.suppressHydrationWarning!==!0&&Vv(r.textContent,c,e),s=["children",c]):typeof c=="number"&&r.textContent!==""+c&&(o.suppressHydrationWarning!==!0&&Vv(r.textContent,c,e),s=["children",""+c]):Df.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&dr("scroll",r)}switch(n){case"input":wv(r),_8(r,o,!0);break;case"textarea":wv(r),M8(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Uv)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=L8(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Fi]=t,e[s0]=r,U7(e,t,!1,!1),t.stateNode=e;e:{switch(i=Tk(n,r),n){case"dialog":dr("cancel",e),dr("close",e),s=r;break;case"iframe":case"object":case"embed":dr("load",e),s=r;break;case"video":case"audio":for(s=0;s<n0.length;s++)dr(n0[s],e);s=r;break;case"source":dr("error",e),s=r;break;case"img":case"image":case"link":dr("error",e),dr("load",e),s=r;break;case"details":dr("toggle",e),s=r;break;case"input":E8(e,r),s=Ck(e,r),dr("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Cr({},r,{value:void 0}),dr("invalid",e);break;case"textarea":I8(e,r),s=Nk(e,r),dr("invalid",e);break;default:s=r}Ik(n,s),c=s;for(o in c)if(c.hasOwnProperty(o)){var u=c[o];o==="style"?P8(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&D8(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Af(e,u):typeof u=="number"&&Af(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Df.hasOwnProperty(o)?u!=null&&o==="onScroll"&&dr("scroll",e):u!=null&&pk(e,o,u,i))}switch(n){case"input":wv(e),_8(e,r,!1);break;case"textarea":wv(e),M8(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vc(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ah(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ah(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Uv)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return $a(t),null;case 6:if(e&&t.stateNode!=null)Y7(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(rt(166));if(n=eu(d0.current),eu(Hi.current),Jv(t)){if(r=t.stateNode,n=t.memoizedProps,r[Fi]=t,(o=r.nodeValue!==n)&&(e=ao,e!==null))switch(e.tag){case 3:Vv(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vv(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Fi]=t,t.stateNode=r}return $a(t),null;case 13:if(ur(Sr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xr&&so!==null&&t.mode&1&&!(t.flags&128))G_(),Jh(),t.flags|=98560,o=!1;else if(o=Jv(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(rt(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(rt(317));o[Fi]=t}else Jh(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$a(t),o=!1}else li!==null&&(sj(li),li=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Sr.current&1?Xr===0&&(Xr=3):lj())),t.updateQueue!==null&&(t.flags|=4),$a(t),null);case 4:return np(),G5(e,t),e===null&&r0(t.stateNode.containerInfo),$a(t),null;case 10:return j5(t.type._context),$a(t),null;case 17:return Ts(t.type)&&Yv(),$a(t),null;case 19:if(ur(Sr),o=t.memoizedState,o===null)return $a(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)f0(o,!1);else{if(Xr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=sy(e),i!==null){for(t.flags|=128,f0(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return lr(Sr,Sr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Fr()>op&&(t.flags|=128,r=!0,f0(o,!1),t.lanes=4194304)}else{if(!r)if(e=sy(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),f0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!xr)return $a(t),null}else 2*Fr()-o.renderingStartTime>op&&n!==1073741824&&(t.flags|=128,r=!0,f0(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Fr(),t.sibling=null,n=Sr.current,lr(Sr,r?n&1|2:n&1),t):($a(t),null);case 22:case 23:return ij(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?oo&1073741824&&($a(t),t.subtreeFlags&6&&(t.flags|=8192)):$a(t),null;case 24:return null;case 25:return null}throw Error(rt(156,t.tag))}function bY(e,t){switch(v5(t),t.tag){case 1:return Ts(t.type)&&Yv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return np(),ur(Is),ur(Fa),L5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return T5(t),null;case 13:if(ur(Sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(rt(340));Jh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ur(Sr),null;case 4:return np(),null;case 10:return j5(t.type._context),null;case 22:case 23:return ij(),null;case 24:return null;default:return null}}var py=!1,Ba=!1,wY=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function ap(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Dr(e,t,r)}else n.current=null}function K7(e,t,n){try{n()}catch(r){Dr(e,t,r)}}var G7=!1;function kY(e,t){if(l5=Dv,e=S_(),e5(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,c=-1,u=-1,h=0,p=0,m=e,x=null;t:for(;;){for(var C;m!==n||s!==0&&m.nodeType!==3||(c=i+s),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(C=m.firstChild)!==null;)x=m,m=C;for(;;){if(m===e)break t;if(x===n&&++h===s&&(c=i),x===o&&++p===r&&(u=i),(C=m.nextSibling)!==null)break;m=x,x=m.parentNode}m=C}n=c===-1||u===-1?null:{start:c,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(c5={focusedElem:e,selectionRange:n},Dv=!1,Pt=t;Pt!==null;)if(t=Pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pt=e;else for(;Pt!==null;){t=Pt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,k=b.memoizedState,j=t.stateNode,S=j.getSnapshotBeforeUpdate(t.elementType===t.type?g:ci(t.type,g),k);j.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(rt(163))}}catch(N){Dr(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Pt=e;break}Pt=t.return}return b=G7,G7=!1,b}function g0(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&K7(t,n,o)}s=s.next}while(s!==r)}}function my(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Z5(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Z7(e){var t=e.alternate;t!==null&&(e.alternate=null,Z7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fi],delete t[s0],delete t[p5],delete t[aY],delete t[sY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Q7(e){return e.tag===5||e.tag===3||e.tag===4}function J7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Q7(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Q5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Uv));else if(r!==4&&(e=e.child,e!==null))for(Q5(e,t,n),e=e.sibling;e!==null;)Q5(e,t,n),e=e.sibling}function J5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(J5(e,t,n),e=e.sibling;e!==null;)J5(e,t,n),e=e.sibling}var ja=null,di=!1;function Tc(e,t,n){for(n=n.child;n!==null;)X7(e,t,n),n=n.sibling}function X7(e,t,n){if(zi&&typeof zi.onCommitFiberUnmount=="function")try{zi.onCommitFiberUnmount(Nv,n)}catch{}switch(n.tag){case 5:Ba||ap(n,t);case 6:var r=ja,s=di;ja=null,Tc(e,t,n),ja=r,di=s,ja!==null&&(di?(e=ja,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ja.removeChild(n.stateNode));break;case 18:ja!==null&&(di?(e=ja,n=n.stateNode,e.nodeType===8?h5(e.parentNode,n):e.nodeType===1&&h5(e,n),Kf(e)):h5(ja,n.stateNode));break;case 4:r=ja,s=di,ja=n.stateNode.containerInfo,di=!0,Tc(e,t,n),ja=r,di=s;break;case 0:case 11:case 14:case 15:if(!Ba&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&K7(n,t,i),s=s.next}while(s!==r)}Tc(e,t,n);break;case 1:if(!Ba&&(ap(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){Dr(n,t,c)}Tc(e,t,n);break;case 21:Tc(e,t,n);break;case 22:n.mode&1?(Ba=(r=Ba)||n.memoizedState!==null,Tc(e,t,n),Ba=r):Tc(e,t,n);break;default:Tc(e,t,n)}}function eI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wY),t.forEach(function(r){var s=MY.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ui(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 5:ja=c.stateNode,di=!1;break e;case 3:ja=c.stateNode.containerInfo,di=!0;break e;case 4:ja=c.stateNode.containerInfo,di=!0;break e}c=c.return}if(ja===null)throw Error(rt(160));X7(o,i,s),ja=null,di=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(h){Dr(s,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tI(t,e),t=t.sibling}function tI(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ui(t,e),Bi(e),r&4){try{g0(3,e,e.return),my(3,e)}catch(g){Dr(e,e.return,g)}try{g0(5,e,e.return)}catch(g){Dr(e,e.return,g)}}break;case 1:ui(t,e),Bi(e),r&512&&n!==null&&ap(n,n.return);break;case 5:if(ui(t,e),Bi(e),r&512&&n!==null&&ap(n,n.return),e.flags&32){var s=e.stateNode;try{Af(s,"")}catch(g){Dr(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,c=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{c==="input"&&o.type==="radio"&&o.name!=null&&N8(s,o),Tk(c,i);var h=Tk(c,o);for(i=0;i<u.length;i+=2){var p=u[i],m=u[i+1];p==="style"?P8(s,m):p==="dangerouslySetInnerHTML"?D8(s,m):p==="children"?Af(s,m):pk(s,p,m,h)}switch(c){case"input":Sk(s,o);break;case"textarea":T8(s,o);break;case"select":var x=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var C=o.value;C!=null?Ah(s,!!o.multiple,C,!1):x!==!!o.multiple&&(o.defaultValue!=null?Ah(s,!!o.multiple,o.defaultValue,!0):Ah(s,!!o.multiple,o.multiple?[]:"",!1))}s[s0]=o}catch(g){Dr(e,e.return,g)}}break;case 6:if(ui(t,e),Bi(e),r&4){if(e.stateNode===null)throw Error(rt(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(g){Dr(e,e.return,g)}}break;case 3:if(ui(t,e),Bi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(g){Dr(e,e.return,g)}break;case 4:ui(t,e),Bi(e);break;case 13:ui(t,e),Bi(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(tj=Fr())),r&4&&eI(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Ba=(h=Ba)||p,ui(t,e),Ba=h):ui(t,e),Bi(e),r&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!p&&e.mode&1)for(Pt=e,p=e.child;p!==null;){for(m=Pt=p;Pt!==null;){switch(x=Pt,C=x.child,x.tag){case 0:case 11:case 14:case 15:g0(4,x,x.return);break;case 1:ap(x,x.return);var b=x.stateNode;if(typeof b.componentWillUnmount=="function"){r=x,n=x.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){Dr(r,n,g)}}break;case 5:ap(x,x.return);break;case 22:if(x.memoizedState!==null){aI(m);continue}}C!==null?(C.return=x,Pt=C):aI(m)}p=p.sibling}e:for(p=null,m=e;;){if(m.tag===5){if(p===null){p=m;try{s=m.stateNode,h?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(c=m.stateNode,u=m.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,c.style.display=O8("display",i))}catch(g){Dr(e,e.return,g)}}}else if(m.tag===6){if(p===null)try{m.stateNode.nodeValue=h?"":m.memoizedProps}catch(g){Dr(e,e.return,g)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;p===m&&(p=null),m=m.return}p===m&&(p=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:ui(t,e),Bi(e),r&4&&eI(e);break;case 21:break;default:ui(t,e),Bi(e)}}function Bi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Q7(n)){var r=n;break e}n=n.return}throw Error(rt(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Af(s,""),r.flags&=-33);var o=J7(e);J5(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,c=J7(e);Q5(e,c,i);break;default:throw Error(rt(161))}}catch(u){Dr(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jY(e,t,n){Pt=e,nI(e)}function nI(e,t,n){for(var r=(e.mode&1)!==0;Pt!==null;){var s=Pt,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||py;if(!i){var c=s.alternate,u=c!==null&&c.memoizedState!==null||Ba;c=py;var h=Ba;if(py=i,(Ba=u)&&!h)for(Pt=s;Pt!==null;)i=Pt,u=i.child,i.tag===22&&i.memoizedState!==null?sI(s):u!==null?(u.return=i,Pt=u):sI(s);for(;o!==null;)Pt=o,nI(o),o=o.sibling;Pt=s,py=c,Ba=h}rI(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,Pt=o):rI(e)}}function rI(e){for(;Pt!==null;){var t=Pt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ba||my(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ba)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:ci(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&X_(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}X_(t,i,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var p=h.memoizedState;if(p!==null){var m=p.dehydrated;m!==null&&Kf(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(rt(163))}Ba||t.flags&512&&Z5(t)}catch(x){Dr(t,t.return,x)}}if(t===e){Pt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Pt=n;break}Pt=t.return}}function aI(e){for(;Pt!==null;){var t=Pt;if(t===e){Pt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Pt=n;break}Pt=t.return}}function sI(e){for(;Pt!==null;){var t=Pt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{my(4,t)}catch(u){Dr(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){Dr(t,s,u)}}var o=t.return;try{Z5(t)}catch(u){Dr(t,o,u)}break;case 5:var i=t.return;try{Z5(t)}catch(u){Dr(t,i,u)}}}catch(u){Dr(t,t.return,u)}if(t===e){Pt=null;break}var c=t.sibling;if(c!==null){c.return=t.return,Pt=c;break}Pt=t.return}}var CY=Math.ceil,fy=bl.ReactCurrentDispatcher,X5=bl.ReactCurrentOwner,Oo=bl.ReactCurrentBatchConfig,Pn=0,pa=null,Yr=null,Ca=0,oo=0,sp=Sc(0),Xr=0,v0=null,nu=0,gy=0,ej=0,y0=null,Ls=null,tj=0,op=1/0,_l=null,vy=!1,nj=null,Mc=null,yy=!1,Lc=null,xy=0,x0=0,rj=null,by=-1,wy=0;function cs(){return Pn&6?Fr():by!==-1?by:by=Fr()}function Dc(e){return e.mode&1?Pn&2&&Ca!==0?Ca&-Ca:iY.transition!==null?(wy===0&&(wy=Z8()),wy):(e=qn,e!==0||(e=window.event,e=e===void 0?16:s_(e.type)),e):1}function hi(e,t,n,r){if(50<x0)throw x0=0,rj=null,Error(rt(185));Wf(e,n,r),(!(Pn&2)||e!==pa)&&(e===pa&&(!(Pn&2)&&(gy|=n),Xr===4&&Oc(e,Ca)),Ds(e,r),n===1&&Pn===0&&!(t.mode&1)&&(op=Fr()+500,Gv&&Nc()))}function Ds(e,t){var n=e.callbackNode;iq(e,t);var r=Tv(e,e===pa?Ca:0);if(r===0)n!==null&&Y8(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Y8(n),t===1)e.tag===0?oY(iI.bind(null,e)):V_(iI.bind(null,e)),nY(function(){!(Pn&6)&&Nc()}),n=null;else{switch(Q8(r)){case 1:n=Ak;break;case 4:n=K8;break;case 16:n=Ev;break;case 536870912:n=G8;break;default:n=Ev}n=fI(n,oI.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oI(e,t){if(by=-1,wy=0,Pn&6)throw Error(rt(327));var n=e.callbackNode;if(ip()&&e.callbackNode!==n)return null;var r=Tv(e,e===pa?Ca:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ky(e,r);else{t=r;var s=Pn;Pn|=2;var o=cI();(pa!==e||Ca!==t)&&(_l=null,op=Fr()+500,au(e,t));do try{NY();break}catch(c){lI(e,c)}while(!0);k5(),fy.current=o,Pn=s,Yr!==null?t=0:(pa=null,Ca=0,t=Xr)}if(t!==0){if(t===2&&(s=zk(e),s!==0&&(r=s,t=aj(e,s))),t===1)throw n=v0,au(e,0),Oc(e,r),Ds(e,Fr()),n;if(t===6)Oc(e,r);else{if(s=e.current.alternate,!(r&30)&&!SY(s)&&(t=ky(e,r),t===2&&(o=zk(e),o!==0&&(r=o,t=aj(e,o))),t===1))throw n=v0,au(e,0),Oc(e,r),Ds(e,Fr()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(rt(345));case 2:su(e,Ls,_l);break;case 3:if(Oc(e,r),(r&130023424)===r&&(t=tj+500-Fr(),10<t)){if(Tv(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){cs(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=u5(su.bind(null,e,Ls,_l),t);break}su(e,Ls,_l);break;case 4:if(Oc(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-oi(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=Fr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*CY(r/1960))-r,10<r){e.timeoutHandle=u5(su.bind(null,e,Ls,_l),r);break}su(e,Ls,_l);break;case 5:su(e,Ls,_l);break;default:throw Error(rt(329))}}}return Ds(e,Fr()),e.callbackNode===n?oI.bind(null,e):null}function aj(e,t){var n=y0;return e.current.memoizedState.isDehydrated&&(au(e,t).flags|=256),e=ky(e,t),e!==2&&(t=Ls,Ls=n,t!==null&&sj(t)),e}function sj(e){Ls===null?Ls=e:Ls.push.apply(Ls,e)}function SY(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!ii(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Oc(e,t){for(t&=~ej,t&=~gy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-oi(t),r=1<<n;e[n]=-1,t&=~r}}function iI(e){if(Pn&6)throw Error(rt(327));ip();var t=Tv(e,0);if(!(t&1))return Ds(e,Fr()),null;var n=ky(e,t);if(e.tag!==0&&n===2){var r=zk(e);r!==0&&(t=r,n=aj(e,r))}if(n===1)throw n=v0,au(e,0),Oc(e,t),Ds(e,Fr()),n;if(n===6)throw Error(rt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,su(e,Ls,_l),Ds(e,Fr()),null}function oj(e,t){var n=Pn;Pn|=1;try{return e(t)}finally{Pn=n,Pn===0&&(op=Fr()+500,Gv&&Nc())}}function ru(e){Lc!==null&&Lc.tag===0&&!(Pn&6)&&ip();var t=Pn;Pn|=1;var n=Oo.transition,r=qn;try{if(Oo.transition=null,qn=1,e)return e()}finally{qn=r,Oo.transition=n,Pn=t,!(Pn&6)&&Nc()}}function ij(){oo=sp.current,ur(sp)}function au(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tY(n)),Yr!==null)for(n=Yr.return;n!==null;){var r=n;switch(v5(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yv();break;case 3:np(),ur(Is),ur(Fa),L5();break;case 5:T5(r);break;case 4:np();break;case 13:ur(Sr);break;case 19:ur(Sr);break;case 10:j5(r.type._context);break;case 22:case 23:ij()}n=n.return}if(pa=e,Yr=e=Pc(e.current,null),Ca=oo=t,Xr=0,v0=null,ej=gy=nu=0,Ls=y0=null,Xd!==null){for(t=0;t<Xd.length;t++)if(n=Xd[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}Xd=null}return e}function lI(e,t){do{var n=Yr;try{if(k5(),oy.current=dy,iy){for(var r=Er.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}iy=!1}if(tu=0,ha=Jr=Er=null,u0=!1,h0=0,X5.current=null,n===null||n.return===null){Xr=1,v0=t,Yr=null;break}e:{var o=e,i=n.return,c=n,u=t;if(t=Ca,c.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var h=u,p=c,m=p.tag;if(!(p.mode&1)&&(m===0||m===11||m===15)){var x=p.alternate;x?(p.updateQueue=x.updateQueue,p.memoizedState=x.memoizedState,p.lanes=x.lanes):(p.updateQueue=null,p.memoizedState=null)}var C=L7(i);if(C!==null){C.flags&=-257,D7(C,i,c,o,t),C.mode&1&&M7(o,h,t),t=C,u=h;var b=t.updateQueue;if(b===null){var g=new Set;g.add(u),t.updateQueue=g}else b.add(u);break e}else{if(!(t&1)){M7(o,h,t),lj();break e}u=Error(rt(426))}}else if(xr&&c.mode&1){var k=L7(i);if(k!==null){!(k.flags&65536)&&(k.flags|=256),D7(k,i,c,o,t),b5(rp(u,c));break e}}o=u=rp(u,c),Xr!==4&&(Xr=2),y0===null?y0=[o]:y0.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var j=I7(o,u,t);J_(o,j);break e;case 1:c=u;var S=o.type,E=o.stateNode;if(!(o.flags&128)&&(typeof S.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Mc===null||!Mc.has(E)))){o.flags|=65536,t&=-t,o.lanes|=t;var N=T7(o,c,t);J_(o,N);break e}}o=o.return}while(o!==null)}uI(n)}catch(T){t=T,Yr===n&&n!==null&&(Yr=n=n.return);continue}break}while(!0)}function cI(){var e=fy.current;return fy.current=dy,e===null?dy:e}function lj(){(Xr===0||Xr===3||Xr===2)&&(Xr=4),pa===null||!(nu&268435455)&&!(gy&268435455)||Oc(pa,Ca)}function ky(e,t){var n=Pn;Pn|=2;var r=cI();(pa!==e||Ca!==t)&&(_l=null,au(e,t));do try{EY();break}catch(s){lI(e,s)}while(!0);if(k5(),Pn=n,fy.current=r,Yr!==null)throw Error(rt(261));return pa=null,Ca=0,Xr}function EY(){for(;Yr!==null;)dI(Yr)}function NY(){for(;Yr!==null&&!JU();)dI(Yr)}function dI(e){var t=mI(e.alternate,e,oo);e.memoizedProps=e.pendingProps,t===null?uI(e):Yr=t,X5.current=null}function uI(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bY(n,t),n!==null){n.flags&=32767,Yr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xr=6,Yr=null;return}}else if(n=xY(n,t,oo),n!==null){Yr=n;return}if(t=t.sibling,t!==null){Yr=t;return}Yr=t=e}while(t!==null);Xr===0&&(Xr=5)}function su(e,t,n){var r=qn,s=Oo.transition;try{Oo.transition=null,qn=1,_Y(e,t,n,r)}finally{Oo.transition=s,qn=r}return null}function _Y(e,t,n,r){do ip();while(Lc!==null);if(Pn&6)throw Error(rt(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(rt(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(lq(e,o),e===pa&&(Yr=pa=null,Ca=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yy||(yy=!0,fI(Ev,function(){return ip(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Oo.transition,Oo.transition=null;var i=qn;qn=1;var c=Pn;Pn|=4,X5.current=null,kY(e,n),tI(n,e),Kq(c5),Dv=!!l5,c5=l5=null,e.current=n,jY(n),XU(),Pn=c,qn=i,Oo.transition=o}else e.current=n;if(yy&&(yy=!1,Lc=e,xy=s),o=e.pendingLanes,o===0&&(Mc=null),nq(n.stateNode),Ds(e,Fr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(vy)throw vy=!1,e=nj,nj=null,e;return xy&1&&e.tag!==0&&ip(),o=e.pendingLanes,o&1?e===rj?x0++:(x0=0,rj=e):x0=0,Nc(),null}function ip(){if(Lc!==null){var e=Q8(xy),t=Oo.transition,n=qn;try{if(Oo.transition=null,qn=16>e?16:e,Lc===null)var r=!1;else{if(e=Lc,Lc=null,xy=0,Pn&6)throw Error(rt(331));var s=Pn;for(Pn|=4,Pt=e.current;Pt!==null;){var o=Pt,i=o.child;if(Pt.flags&16){var c=o.deletions;if(c!==null){for(var u=0;u<c.length;u++){var h=c[u];for(Pt=h;Pt!==null;){var p=Pt;switch(p.tag){case 0:case 11:case 15:g0(8,p,o)}var m=p.child;if(m!==null)m.return=p,Pt=m;else for(;Pt!==null;){p=Pt;var x=p.sibling,C=p.return;if(Z7(p),p===h){Pt=null;break}if(x!==null){x.return=C,Pt=x;break}Pt=C}}}var b=o.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var k=g.sibling;g.sibling=null,g=k}while(g!==null)}}Pt=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,Pt=i;else e:for(;Pt!==null;){if(o=Pt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:g0(9,o,o.return)}var j=o.sibling;if(j!==null){j.return=o.return,Pt=j;break e}Pt=o.return}}var S=e.current;for(Pt=S;Pt!==null;){i=Pt;var E=i.child;if(i.subtreeFlags&2064&&E!==null)E.return=i,Pt=E;else e:for(i=S;Pt!==null;){if(c=Pt,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:my(9,c)}}catch(T){Dr(c,c.return,T)}if(c===i){Pt=null;break e}var N=c.sibling;if(N!==null){N.return=c.return,Pt=N;break e}Pt=c.return}}if(Pn=s,Nc(),zi&&typeof zi.onPostCommitFiberRoot=="function")try{zi.onPostCommitFiberRoot(Nv,e)}catch{}r=!0}return r}finally{qn=n,Oo.transition=t}}return!1}function hI(e,t,n){t=rp(n,t),t=I7(e,t,1),e=Ic(e,t,1),t=cs(),e!==null&&(Wf(e,1,t),Ds(e,t))}function Dr(e,t,n){if(e.tag===3)hI(e,e,n);else for(;t!==null;){if(t.tag===3){hI(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mc===null||!Mc.has(r))){e=rp(n,e),e=T7(t,e,1),t=Ic(t,e,1),e=cs(),t!==null&&(Wf(t,1,e),Ds(t,e));break}}t=t.return}}function IY(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=cs(),e.pingedLanes|=e.suspendedLanes&n,pa===e&&(Ca&n)===n&&(Xr===4||Xr===3&&(Ca&130023424)===Ca&&500>Fr()-tj?au(e,0):ej|=n),Ds(e,t)}function pI(e,t){t===0&&(e.mode&1?(t=Iv,Iv<<=1,!(Iv&130023424)&&(Iv=4194304)):t=1);var n=cs();e=Sl(e,t),e!==null&&(Wf(e,t,n),Ds(e,n))}function TY(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pI(e,n)}function MY(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(rt(314))}r!==null&&r.delete(t),pI(e,n)}var mI;mI=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Is.current)Ms=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ms=!1,yY(e,t,n);Ms=!!(e.flags&131072)}else Ms=!1,xr&&t.flags&1048576&&U_(t,Qv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hy(e,t),e=t.pendingProps;var s=Gh(t,Fa.current);ep(t,n),s=P5(null,t,r,e,s,n);var o=R5();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ts(r)?(o=!0,Kv(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,E5(t),s.updater=ry,t.stateNode=s,s._reactInternals=t,_5(t,r,e,n),t=V5(null,t,r,!0,o,n)):(t.tag=0,xr&&o&&g5(t),ls(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hy(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=DY(r),e=ci(r,e),s){case 0:t=W5(null,t,r,e,n);break e;case 1:t=F7(null,t,r,e,n);break e;case 11:t=O7(null,t,r,e,n);break e;case 14:t=P7(null,t,r,ci(r.type,e),n);break e}throw Error(rt(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ci(r,s),W5(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ci(r,s),F7(e,t,r,s,n);case 3:e:{if(H7(t),e===null)throw Error(rt(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Q_(e,t),ny(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=rp(Error(rt(423)),t),t=$7(e,t,r,n,s);break e}else if(r!==s){s=rp(Error(rt(424)),t),t=$7(e,t,r,n,s);break e}else for(so=Cc(t.stateNode.containerInfo.firstChild),ao=t,xr=!0,li=null,n=o7(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jh(),r===s){t=Nl(e,t,n);break e}ls(e,t,r,n)}t=t.child}return t;case 5:return i7(t),e===null&&x5(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,d5(r,s)?i=null:o!==null&&d5(r,o)&&(t.flags|=32),z7(e,t),ls(e,t,i,n),t.child;case 6:return e===null&&x5(t),null;case 13:return B7(e,t,n);case 4:return I5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tp(t,null,r,n):ls(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ci(r,s),O7(e,t,r,s,n);case 7:return ls(e,t,t.pendingProps,n),t.child;case 8:return ls(e,t,t.pendingProps.children,n),t.child;case 12:return ls(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,lr(Xv,r._currentValue),r._currentValue=i,o!==null)if(ii(o.value,i)){if(o.children===s.children&&!Is.current){t=Nl(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){i=o.child;for(var u=c.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=El(-1,n&-n),u.tag=2;var h=o.updateQueue;if(h!==null){h=h.shared;var p=h.pending;p===null?u.next=u:(u.next=p.next,p.next=u),h.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),C5(o.return,n,t),c.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(rt(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),C5(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ls(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,ep(t,n),s=Lo(s),r=r(s),t.flags|=1,ls(e,t,r,n),t.child;case 14:return r=t.type,s=ci(r,t.pendingProps),s=ci(r.type,s),P7(e,t,r,s,n);case 15:return R7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:ci(r,s),hy(e,t),t.tag=1,Ts(r)?(e=!0,Kv(t)):e=!1,ep(t,n),n7(t,r,s),_5(t,r,s,n),V5(null,t,r,!0,e,n);case 19:return V7(e,t,n);case 22:return A7(e,t,n)}throw Error(rt(156,t.tag))};function fI(e,t){return q8(e,t)}function LY(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Po(e,t,n,r){return new LY(e,t,n,r)}function cj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DY(e){if(typeof e=="function")return cj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gk)return 11;if(e===xk)return 14}return 2}function Pc(e,t){var n=e.alternate;return n===null?(n=Po(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jy(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")cj(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Rh:return ou(n.children,s,o,t);case mk:i=8,s|=8;break;case fk:return e=Po(12,n,t,s|2),e.elementType=fk,e.lanes=o,e;case vk:return e=Po(13,n,t,s),e.elementType=vk,e.lanes=o,e;case yk:return e=Po(19,n,t,s),e.elementType=yk,e.lanes=o,e;case k8:return Cy(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b8:i=10;break e;case w8:i=9;break e;case gk:i=11;break e;case xk:i=14;break e;case gc:i=16,r=null;break e}throw Error(rt(130,e==null?e:typeof e,""))}return t=Po(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function ou(e,t,n,r){return e=Po(7,e,r,t),e.lanes=n,e}function Cy(e,t,n,r){return e=Po(22,e,r,t),e.elementType=k8,e.lanes=n,e.stateNode={isHidden:!1},e}function dj(e,t,n){return e=Po(6,e,null,t),e.lanes=n,e}function uj(e,t,n){return t=Po(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function OY(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fk(0),this.expirationTimes=Fk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fk(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function hj(e,t,n,r,s,o,i,c,u){return e=new OY(e,t,n,c,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Po(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},E5(o),e}function PY(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ph,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gI(e){if(!e)return Ec;e=e._reactInternals;e:{if(Kd(e)!==e||e.tag!==1)throw Error(rt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ts(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(rt(171))}if(e.tag===1){var n=e.type;if(Ts(n))return B_(e,n,t)}return t}function vI(e,t,n,r,s,o,i,c,u){return e=hj(n,r,!0,e,s,o,i,c,u),e.context=gI(null),n=e.current,r=cs(),s=Dc(n),o=El(r,s),o.callback=t!=null?t:null,Ic(n,o,s),e.current.lanes=s,Wf(e,s,r),Ds(e,r),e}function Sy(e,t,n,r){var s=t.current,o=cs(),i=Dc(s);return n=gI(n),t.context===null?t.context=n:t.pendingContext=n,t=El(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ic(s,t,i),e!==null&&(hi(e,s,i,o),ty(e,s,i)),i}function Ey(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yI(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pj(e,t){yI(e,t),(e=e.alternate)&&yI(e,t)}function RY(){return null}var xI=typeof reportError=="function"?reportError:function(e){console.error(e)};function mj(e){this._internalRoot=e}Ny.prototype.render=mj.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(rt(409));Sy(e,t,null,null)},Ny.prototype.unmount=mj.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ru(function(){Sy(null,e,null,null)}),t[wl]=null}};function Ny(e){this._internalRoot=e}Ny.prototype.unstable_scheduleHydration=function(e){if(e){var t=e_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wc.length&&t!==0&&t<wc[n].priority;n++);wc.splice(n,0,e),n===0&&r_(e)}};function fj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bI(){}function AY(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var h=Ey(i);o.call(h)}}var i=vI(t,r,e,0,null,!1,!1,"",bI);return e._reactRootContainer=i,e[wl]=i.current,r0(e.nodeType===8?e.parentNode:e),ru(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var c=r;r=function(){var h=Ey(u);c.call(h)}}var u=hj(e,0,!1,null,null,!1,!1,"",bI);return e._reactRootContainer=u,e[wl]=u.current,r0(e.nodeType===8?e.parentNode:e),ru(function(){Sy(t,u,n,r)}),u}function Iy(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var c=s;s=function(){var u=Ey(i);c.call(u)}}Sy(t,i,e,s)}else i=AY(n,t,e,s,r);return Ey(i)}J8=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bf(t.pendingLanes);n!==0&&(Hk(t,n|1),Ds(t,Fr()),!(Pn&6)&&(op=Fr()+500,Nc()))}break;case 13:ru(function(){var r=Sl(e,1);if(r!==null){var s=cs();hi(r,e,1,s)}}),pj(e,1)}},$k=function(e){if(e.tag===13){var t=Sl(e,134217728);if(t!==null){var n=cs();hi(t,e,134217728,n)}pj(e,134217728)}},X8=function(e){if(e.tag===13){var t=Dc(e),n=Sl(e,t);if(n!==null){var r=cs();hi(n,e,t,r)}pj(e,t)}},e_=function(){return qn},t_=function(e,t){var n=qn;try{return qn=e,t()}finally{qn=n}},Dk=function(e,t,n){switch(t){case"input":if(Sk(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=qv(r);if(!s)throw Error(rt(90));S8(r),Sk(r,s)}}}break;case"textarea":T8(e,n);break;case"select":t=n.value,t!=null&&Ah(e,!!n.multiple,t,!1)}},F8=oj,H8=ru;var zY={usingClientEntryPoint:!1,Events:[o0,Yh,qv,A8,z8,oj]},b0={findFiberByHostInstance:Gd,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},FY={bundleType:b0.bundleType,version:b0.version,rendererPackageName:b0.rendererPackageName,rendererConfig:b0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=V8(e),e===null?null:e.stateNode},findFiberByHostInstance:b0.findFiberByHostInstance||RY,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ty=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ty.isDisabled&&Ty.supportsFiber)try{Nv=Ty.inject(FY),zi=Ty}catch{}}to.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zY,to.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fj(t))throw Error(rt(200));return PY(e,t,null,n)},to.createRoot=function(e,t){if(!fj(e))throw Error(rt(299));var n=!1,r="",s=xI;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=hj(e,1,!1,null,null,n,!1,r,s),e[wl]=t.current,r0(e.nodeType===8?e.parentNode:e),new mj(t)},to.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(rt(188)):(e=Object.keys(e).join(","),Error(rt(268,e)));return e=V8(t),e=e===null?null:e.stateNode,e},to.flushSync=function(e){return ru(e)},to.hydrate=function(e,t,n){if(!_y(t))throw Error(rt(200));return Iy(null,e,t,!0,n)},to.hydrateRoot=function(e,t,n){if(!fj(e))throw Error(rt(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=xI;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=vI(t,null,e,1,n!=null?n:null,s,!1,o,i),e[wl]=t.current,r0(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ny(t)},to.render=function(e,t,n){if(!_y(t))throw Error(rt(200));return Iy(null,e,t,!1,n)},to.unmountComponentAtNode=function(e){if(!_y(e))throw Error(rt(40));return e._reactRootContainer?(ru(function(){Iy(null,null,e,!1,function(){e._reactRootContainer=null,e[wl]=null})}),!0):!1},to.unstable_batchedUpdates=oj,to.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_y(n))throw Error(rt(200));if(e==null||e._reactInternals===void 0)throw Error(rt(38));return Iy(e,t,n,!1,r)},to.version="18.2.0-next-9e3b772b8-20220608";function wI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wI)}catch(e){console.error(e)}}wI(),p8.exports=to;var Wa=p8.exports;const kI=_o(Wa),HY=Un({__proto__:null,default:kI},[Wa]);var jI,CI=Wa;jI=CI.createRoot,CI.hydrateRoot;function $Y(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function gj(e,t=!1){const n=$Y(),r="_".concat(n);return Object.defineProperty(window,r,{value:s=>(t&&Reflect.deleteProperty(window,r),e==null?void 0:e(s)),writable:!1,configurable:!0}),n}async function Sa(e,t={}){return new Promise((n,r)=>{const s=gj(i=>{n(i),Reflect.deleteProperty(window,"_".concat(o))},!0),o=gj(i=>{r(i),Reflect.deleteProperty(window,"_".concat(s))},!0);window.__TAURI_IPC__({cmd:e,callback:s,error:o,...t})})}function iu(e,t="asset"){return window.__TAURI__.convertFileSrc(e,t)}async function Wt(e){return Sa("tauri",e)}async function Wi(e,t){var r,s;const n=typeof t=="string"?{title:t}:t;return Wt({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabel:(s=n==null?void 0:n.okLabel)==null?void 0:s.toString()}})}async function vj(e,t){var r,s,o,i,c;const n=typeof t=="string"?{title:t}:t;return Wt({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(s=n==null?void 0:n.okLabel)==null?void 0:s.toString())!=null?o:"Ok",(c=(i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())!=null?c:"Cancel"]}})}async function SI(e,t){return Wt({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function BY(e,t,n){await Wt({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function yj(e,t,n){return Wt({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:gj(n)}}).then(r=>async()=>SI(e,r))}async function WY(e,t,n){return yj(e,t,r=>{n(r),SI(e,r.id).catch(()=>{})})}var ds;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress"})(ds||(ds={}));async function Il(e,t){return yj(e,null,t)}function xj(){return navigator.appVersion.includes("Win")}xj();async function VY(){return Wt({__tauriModule:"Os",message:{cmd:"platform"}})}async function UY(){return Wt({__tauriModule:"Os",message:{cmd:"version"}})}async function EI(){return Wt({__tauriModule:"Os",message:{cmd:"osType"}})}async function NI(){return Wt({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var _I;(function(e){e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog"})(_I||(_I={}));var II;(function(e){e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary"})(II||(II={})),xj(),xj();async function Tl(e,t){return Wt({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}class bj{constructor(t,n){this.type="Logical",this.width=t,this.height=n}}class wj{constructor(t,n){this.type="Physical",this.width=t,this.height=n}toLogical(t){return new bj(this.width/t,this.height/t)}}class qY{constructor(t,n){this.type="Logical",this.x=t,this.y=n}}class kj{constructor(t,n){this.type="Physical",this.x=t,this.y=n}toLogical(t){return new qY(this.x/t,this.y/t)}}var jj;(function(e){e[e.Critical=1]="Critical",e[e.Informational=2]="Informational"})(jj||(jj={}));function TI(){return window.__TAURI_METADATA__.__windows.map(e=>new lu(e.label,{skip:!0}))}const MI=["tauri://created","tauri://error"];class YY{constructor(t){this.label=t,this.listeners=Object.create(null)}async listen(t,n){return this._handleTauriEvent(t,n)?Promise.resolve(()=>{const r=this.listeners[t];r.splice(r.indexOf(n),1)}):yj(t,this.label,n)}async once(t,n){return this._handleTauriEvent(t,n)?Promise.resolve(()=>{const r=this.listeners[t];r.splice(r.indexOf(n),1)}):WY(t,this.label,n)}async emit(t,n){if(MI.includes(t)){for(const r of this.listeners[t]||[])r({event:t,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return BY(t,this.label,n)}_handleTauriEvent(t,n){return MI.includes(t)?(t in this.listeners?this.listeners[t].push(n):this.listeners[t]=[n],!0):!1}}class KY extends YY{async scaleFactor(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:t,y:n})=>new kj(t,n))}async outerPosition(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:t,y:n})=>new kj(t,n))}async innerSize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:t,height:n})=>new wj(t,n))}async outerSize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:t,height:n})=>new wj(t,n))}async isFullscreen(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(t){let n=null;return t&&(t===jj.Critical?n={type:"Critical"}:n={type:"Informational"}),Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:t}}}})}async setMaximizable(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:t}}}})}async setMinimizable(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:t}}}})}async setClosable(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:t}}}})}async setTitle(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:t}}}})}async maximize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:t}}}})}async setAlwaysOnTop(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:t}}}})}async setContentProtected(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:t}}}})}async setSize(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:t.type,data:{width:t.width,height:t.height}}}}}})}async setMinSize(t){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})}async setMaxSize(t){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})}async setPosition(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})}async setFullscreen(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:t}}}})}async setFocus(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof t=="string"?t:Array.from(t)}}}}})}async setSkipTaskbar(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:t}}}})}async setCursorGrab(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:t}}}})}async setCursorVisible(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:t}}}})}async setCursorIcon(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:t}}}})}async setCursorPosition(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})}async setIgnoreCursorEvents(t){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:t}}}})}async startDragging(){return Wt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(t){return this.listen(ds.WINDOW_RESIZED,n=>{n.payload=QY(n.payload),t(n)})}async onMoved(t){return this.listen(ds.WINDOW_MOVED,n=>{n.payload=ZY(n.payload),t(n)})}async onCloseRequested(t){return this.listen(ds.WINDOW_CLOSE_REQUESTED,n=>{const r=new GY(n);Promise.resolve(t(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(t){const n=await this.listen(ds.WINDOW_FOCUS,s=>{t({...s,payload:!0})}),r=await this.listen(ds.WINDOW_BLUR,s=>{t({...s,payload:!1})});return()=>{n(),r()}}async onScaleChanged(t){return this.listen(ds.WINDOW_SCALE_FACTOR_CHANGED,t)}async onMenuClicked(t){return this.listen(ds.MENU,t)}async onFileDropEvent(t){const n=await this.listen(ds.WINDOW_FILE_DROP,o=>{t({...o,payload:{type:"drop",paths:o.payload}})}),r=await this.listen(ds.WINDOW_FILE_DROP_HOVER,o=>{t({...o,payload:{type:"hover",paths:o.payload}})}),s=await this.listen(ds.WINDOW_FILE_DROP_CANCELLED,o=>{t({...o,payload:{type:"cancel"}})});return()=>{n(),r(),s()}}async onThemeChanged(t){return this.listen(ds.WINDOW_THEME_CHANGED,t)}}class GY{constructor(t){this._preventDefault=!1,this.event=t.event,this.windowLabel=t.windowLabel,this.id=t.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}class lu extends KY{constructor(t,n={}){super(t),n!=null&&n.skip||Wt({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:t,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(t){return TI().some(n=>n.label===t)?new lu(t,{skip:!0}):null}static async getFocusedWindow(){for(const t of TI())if(await t.isFocused())return t;return null}}let Va;"__TAURI_METADATA__"in window?Va=new lu(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn('Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label.\nNote that this is not an issue if running this frontend on a browser instead of a Tauri window.'),Va=new lu("main",{skip:!0}));function ZY(e){return new kj(e.x,e.y)}function QY(e){return new wj(e.width,e.height)}const vn=Sa,LI="en",Cj=[{code:"en",name:"English",website:"www.pastebar.app",flag:"\u{1F1FA}\u{1F1F8}"},{code:"es",name:"Espa\xF1ol",flag:"\u{1F1EA}\u{1F1F8}",website:"es.pastebar.app"},{code:"de",name:"Deutsch",flag:"\u{1F1E9}\u{1F1EA}",website:"de.pastebar.app"},{code:"fr",name:"Fran\xE7ais",flag:"\u{1F1EB}\u{1F1F7}",website:"fr.pastebar.app"},{code:"uk",name:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",flag:"\u{1F1FA}\u{1F1E6}",website:"ua.pastebar.app"},{code:"ru",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",website:"www.pastebar.ru",flag:"\u{1F1F7}\u{1F1FA}"}];function My(){throw new Error("Cycle detected")}var JY=Symbol.for("preact-signals");function Sj(){if(lp>1)lp--;else{for(var e,t=!1;w0!==void 0;){var n=w0;for(w0=void 0,Ej++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&OI(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=r}}if(Ej=0,lp--,t)throw e}}var Or=void 0,w0=void 0,lp=0,Ej=0,Ly=0;function DI(e){if(Or!==void 0){var t=e.n;if(t===void 0||t.t!==Or)return t={i:0,S:e,p:Or.s,n:void 0,t:Or,e:void 0,x:void 0,r:t},Or.s!==void 0&&(Or.s.n=t),Or.s=t,e.n=t,32&Or.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Or.s,t.n=void 0,Or.s.n=t,Or.s=t),t}}function Ea(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Ea.prototype.brand=JY,Ea.prototype.h=function(){return!0},Ea.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},Ea.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ea.prototype.subscribe=function(e){var t=this;return zI(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})},Ea.prototype.valueOf=function(){return this.value},Ea.prototype.toString=function(){return this.value+""},Ea.prototype.toJSON=function(){return this.value},Ea.prototype.peek=function(){return this.v},Object.defineProperty(Ea.prototype,"value",{get:function(){var e=DI(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(Or instanceof cu&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ej>100&&My(),this.v=e,this.i++,Ly++,lp++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Sj()}}}});function It(e){return new Ea(e)}function OI(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function PI(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function RI(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function cu(e){Ea.call(this,void 0),this.x=e,this.s=void 0,this.g=Ly-1,this.f=4}(cu.prototype=new Ea).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ly))return!0;if(this.g=Ly,this.f|=1,this.i>0&&!OI(this))return this.f&=-2,!0;var e=Or;try{PI(this),Or=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Or=e,RI(this),this.f&=-2,!0},cu.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ea.prototype.S.call(this,e)},cu.prototype.U=function(e){if(this.t!==void 0&&(Ea.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},cu.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},cu.prototype.peek=function(){if(this.h()||My(),16&this.f)throw this.v;return this.v},Object.defineProperty(cu.prototype,"value",{get:function(){1&this.f&&My();var e=DI(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function AI(e){var t=e.u;if(e.u=void 0,typeof t=="function"){lp++;var n=Or;Or=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Nj(e),r}finally{Or=n,Sj()}}}function Nj(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,AI(e)}function XY(e){if(Or!==this)throw new Error("Out-of-order effect");RI(this),Or=e,this.f&=-2,8&this.f&&Nj(this),Sj()}function k0(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}k0.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},k0.prototype.S=function(){1&this.f&&My(),this.f|=1,this.f&=-9,AI(this),PI(this),lp++;var e=Or;return Or=this,XY.bind(this,e)},k0.prototype.N=function(){2&this.f||(this.f|=2,this.o=w0,w0=this)},k0.prototype.d=function(){this.f|=8,1&this.f||Nj(this)};function zI(e){var t=new k0(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var FI={exports:{}},HI={},cp=f;function eK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tK=typeof Object.is=="function"?Object.is:eK,nK=cp.useState,rK=cp.useEffect,aK=cp.useLayoutEffect,sK=cp.useDebugValue;function oK(e,t){var n=t(),r=nK({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return aK(function(){s.value=n,s.getSnapshot=t,_j(s)&&o({inst:s})},[e,n,t]),rK(function(){return _j(s)&&o({inst:s}),e(function(){_j(s)&&o({inst:s})})},[e]),sK(n),n}function _j(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tK(e,n)}catch{return!0}}function iK(e,t){return t()}var lK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?iK:oK;HI.useSyncExternalStore=cp.useSyncExternalStore!==void 0?cp.useSyncExternalStore:lK,FI.exports=HI;var $I=FI.exports,BI={exports:{}},Ij={},cK=Symbol.for("react.fragment");Ij.Fragment=cK,Ij.jsxDEV=void 0,BI.exports=Ij;var dK=BI.exports;const uK=_o(dK);var WI=!1,Tj=null,Mj=!1,Dy=null,VI=new Map;function UI(e){if(!e)return 1;var t,n=VI.get(e);if(n!==void 0)return n;var r=e.useCallback.toString();if(e.useReducer===e.useEffect)t=1;else if(e.useEffect===e.useImperativeHandle)t=32;else if(/Invalid/.test(r))t=2;else if(/updateCallback/.test(r)||/\[0\]/.test(r)&&/\[1\]/.test(r)){var s=e.useReducer.toString();/rerenderReducer/.test(s)||/return\s*\[\w+,/.test(s)?t=16:t=8}else t=4;return VI.set(e,t),t}var hK=[],pK=Symbol.for("react.element"),qI=function(){};function du(e){return typeof e!="function"?e:function(t,n){if(typeof t=="string"&&n)for(var r in n){var s=n[r];r!=="children"&&s instanceof Ea&&(n[r]=s.value)}return e.call.apply(e,[e,t,n].concat([].slice.call(arguments,2)))}}var Lj,YI=Symbol.dispose||Symbol.for("Symbol.dispose");function KI(e){Lj&&Lj(),Lj=e&&e.effect.S()}var GI,Dj,Oy=function(){return KI()},mK=((GI={effect:{s:void 0,c:function(){},S:function(){return qI},d:function(){}},subscribe:function(){return qI},getSnapshot:function(){return 0},f:function(){}})[YI]=function(){},GI),fK=Promise.prototype.then.bind(Promise.resolve());function ZI(){Oy(),Dj||(Dj=fK(function(){Dj=void 0,Oy()}));var e=f.useRef();e.current==null&&(e.current=function(){var n,r,s,o=0,i=zI(function(){r=this});return r.c=function(){o=o+1|0,s&&s()},(n={effect:r,subscribe:function(c){return s=c,function(){o=o+1|0,s=void 0,i()}},getSnapshot:function(){return o},f:function(){Oy()}})[YI]=function(){Oy()},n}());var t=e.current;return $I.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot),KI(t),t}Object.defineProperties(Ea.prototype,{$$typeof:{configurable:!0,value:pK},type:{configurable:!0,value:function(e){var t=e.data,n=function(){return WI?mK:ZI()}();try{return t.value}finally{n.f()}}},props:{configurable:!0,get:function(){return{data:this}}},ref:{configurable:!0,value:null}});function ea(e){return f.useMemo(function(){return It(e)},hK)}(function(){(function(){WI=!0,Object.defineProperty(f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{get:function(){return Dy},set:function(e){if(Mj)Dy=e;else{var t=UI(Dy),n=UI(e);if(Dy=e,function(s,o){return 1&s&&28&o?!0:2&s||2&o?!1:!!(16&o)}(t,n))Mj=!0,Tj=ZI(),Mj=!1;else if(function(s,o){return!!(28&s&&1&o)}(t,n)){var r;(r=Tj)==null||r.f(),Tj=null}}}})})(),function(){var e=JV,t=uK;dt.createElement=du(dt.createElement),t.jsx&&(t.jsx=du(t.jsx)),e.jsx&&(e.jsx=du(e.jsx)),t.jsxs&&(t.jsxs=du(t.jsxs)),e.jsxs&&(e.jsxs=du(e.jsxs)),t.jsxDEV&&(t.jsxDEV=du(t.jsxDEV)),e.jsxDEV&&(e.jsxDEV=du(e.jsxDEV))}()})();function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Re.apply(this,arguments)}function gK(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Py(...e){return t=>e.forEach(n=>gK(n,t))}function Bn(...e){return f.useCallback(Py(...e),e)}const Rc=f.forwardRef((e,t)=>{const{children:n,...r}=e,s=f.Children.toArray(n),o=s.find(vK);if(o){const i=o.props.children,c=s.map(u=>u===o?f.Children.count(i)>1?f.Children.only(null):f.isValidElement(i)?i.props.children:null:u);return f.createElement(Oj,Re({},r,{ref:t}),f.isValidElement(i)?f.cloneElement(i,void 0,c):null)}return f.createElement(Oj,Re({},r,{ref:t}),n)});Rc.displayName="Slot";const Oj=f.forwardRef((e,t)=>{const{children:n,...r}=e;return f.isValidElement(n)?f.cloneElement(n,{...yK(r,n.props),ref:t?Py(t,n.ref):n.ref}):f.Children.count(n)>1?f.Children.only(null):null});Oj.displayName="SlotClone";const QI=({children:e})=>f.createElement(f.Fragment,null,e);function vK(e){return f.isValidElement(e)&&e.type===QI}function yK(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...i)=>{o(...i),s(...i)}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}const xK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],yn=xK.reduce((e,t)=>{const n=f.forwardRef((r,s)=>{const{asChild:o,...i}=r,c=o?Rc:t;return f.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),f.createElement(c,Re({},i,{ref:s}))});return n.displayName="Primitive.".concat(t),{...e,[t]:n}},{});function JI(e,t){e&&Wa.flushSync(()=>e.dispatchEvent(t))}const Ac=f.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...s}=e;return r?kI.createPortal(f.createElement(yn.div,Re({},s,{ref:t})),r):null});function bK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>r=>{t.forEach(s=>s(r))},t)}const Ry=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dp(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Pj(e){return"nodeType"in e}function us(e){var t,n;return e?dp(e)?e:Pj(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Rj(e){const{Document:t}=us(e);return e instanceof t}function j0(e){return dp(e)?!1:e instanceof us(e).HTMLElement}function XI(e){return e instanceof us(e).SVGElement}function up(e){return e?dp(e)?e.document:Pj(e)?Rj(e)?e:j0(e)||XI(e)?e.ownerDocument:document:document:document}const Ro=Ry?f.useLayoutEffect:f.useEffect;function Ay(e){const t=f.useRef(e);return Ro(()=>{t.current=e}),f.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function wK(){const e=f.useRef(null),t=f.useCallback((r,s)=>{e.current=setInterval(r,s)},[]),n=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function C0(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return Ro(()=>{n.current!==e&&(n.current=e)},t),n}function S0(e,t){const n=f.useRef();return f.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function zy(e){const t=Ay(e),n=f.useRef(null),r=f.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,r]}function Fy(e){const t=f.useRef();return f.useEffect(()=>{t.current=e},[e]),t.current}let Aj={};function E0(e,t){return f.useMemo(()=>{if(t)return t;const n=Aj[e]==null?0:Aj[e]+1;return Aj[e]=n,e+"-"+n},[e,t])}function e9(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((o,i)=>{const c=Object.entries(i);for(const[u,h]of c){const p=o[u];p!=null&&(o[u]=p+e*h)}return o},{...t})}}const hp=e9(1),Hy=e9(-1);function kK(e){return"clientX"in e&&"clientY"in e}function $y(e){if(!e)return!1;const{KeyboardEvent:t}=us(e.target);return t&&e instanceof t}function jK(e){if(!e)return!1;const{TouchEvent:t}=us(e.target);return t&&e instanceof t}function By(e){if(jK(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return kK(e)?{x:e.clientX,y:e.clientY}:null}const Ao=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ao.Translate.toString(e),Ao.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),t9="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function CK(e){return e.matches(t9)?e:e.querySelector(t9)}const SK={display:"none"};function EK(e){let{id:t,value:n}=e;return dt.createElement("div",{id:t,style:SK},n)}function NK(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const s={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return dt.createElement("div",{id:t,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function _K(){const[e,t]=f.useState("");return{announce:f.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const n9=f.createContext(null);function IK(e){const t=f.useContext(n9);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function TK(){const[e]=f.useState(()=>new Set),t=f.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[f.useCallback(n=>{let{type:r,event:s}=n;e.forEach(o=>{var i;return(i=o[r])==null?void 0:i.call(o,s)})},[e]),t]}const MK={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},LK={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function DK(e){let{announcements:t=LK,container:n,hiddenTextDescribedById:r,screenReaderInstructions:s=MK}=e;const{announce:o,announcement:i}=_K(),c=E0("DndLiveRegion"),[u,h]=f.useState(!1);if(f.useEffect(()=>{h(!0)},[]),IK(f.useMemo(()=>({onDragStart(m){let{active:x}=m;o(t.onDragStart({active:x}))},onDragMove(m){let{active:x,over:C}=m;t.onDragMove&&o(t.onDragMove({active:x,over:C}))},onDragOver(m){let{active:x,over:C}=m;o(t.onDragOver({active:x,over:C}))},onDragEnd(m){let{active:x,over:C}=m;o(t.onDragEnd({active:x,over:C}))},onDragCancel(m){let{active:x,over:C}=m;o(t.onDragCancel({active:x,over:C}))}}),[o,t])),!u)return null;const p=dt.createElement(dt.Fragment,null,dt.createElement(EK,{id:r,value:s.draggable}),dt.createElement(NK,{id:c,announcement:i}));return n?Wa.createPortal(p,n):p}var ta;(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"})(ta||(ta={}));function Wy(){}function pp(e,t){return f.useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function zj(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const pi=Object.freeze({x:0,y:0});function Fj(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function OK(e,t){const n=By(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Hj(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function PK(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $j(e){let{left:t,top:n,height:r,width:s}=e;return[{x:t,y:n},{x:t+s,y:n},{x:t,y:n+r},{x:t+s,y:n+r}]}function Bj(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function r9(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const RK=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const s=r9(t,t.left,t.top),o=[];for(const i of r){const{id:c}=i,u=n.get(c);if(u){const h=Fj(r9(u),s);o.push({id:c,data:{droppableContainer:i,value:h}})}}return o.sort(Hj)},AK=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const s=$j(t),o=[];for(const i of r){const{id:c}=i,u=n.get(c);if(u){const h=$j(u),p=s.reduce((x,C,b)=>x+Fj(h[b],C),0),m=Number((p/4).toFixed(4));o.push({id:c,data:{droppableContainer:i,value:m}})}}return o.sort(Hj)};function zK(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=s-r,c=o-n;if(r<s&&n<o){const u=t.width*t.height,h=e.width*e.height,p=i*c,m=p/(u+h-p);return Number(m.toFixed(4))}return 0}const Wj=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const s=[];for(const o of r){const{id:i}=o,c=n.get(i);if(c){const u=zK(c,t);u>0&&s.push({id:i,data:{droppableContainer:o,value:u}})}}return s.sort(PK)};function FK(e,t){const{top:n,left:r,bottom:s,right:o}=t;return n<=e.y&&e.y<=s&&r<=e.x&&e.x<=o}const HK=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const s=[];for(const o of t){const{id:i}=o,c=n.get(i);if(c&&FK(r,c)){const u=$j(c).reduce((p,m)=>p+Fj(r,m),0),h=Number((u/4).toFixed(4));s.push({id:i,data:{droppableContainer:o,value:h}})}}return s.sort(Hj)};function $K(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function a9(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:pi}function BK(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.reduce((o,i)=>({...o,top:o.top+e*i.y,bottom:o.bottom+e*i.y,left:o.left+e*i.x,right:o.right+e*i.x}),{...t})}}const WK=BK(1);function s9(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function VK(e,t,n){const r=s9(t);if(!r)return e;const{scaleX:s,scaleY:o,x:i,y:c}=r,u=e.left-i-(1-s)*parseFloat(n),h=e.top-c-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),p=s?e.width/s:e.width,m=o?e.height/o:e.height;return{width:p,height:m,top:h,right:u+p,bottom:h+m,left:u}}const UK={ignoreTransform:!1};function mp(e,t){t===void 0&&(t=UK);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:p}=us(e).getComputedStyle(e);h&&(n=VK(n,h,p))}const{top:r,left:s,width:o,height:i,bottom:c,right:u}=n;return{top:r,left:s,width:o,height:i,bottom:c,right:u}}function o9(e){return mp(e,{ignoreTransform:!0})}function qK(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function YK(e,t){return t===void 0&&(t=us(e).getComputedStyle(e)),t.position==="fixed"}function KK(e,t){t===void 0&&(t=us(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const s=t[r];return typeof s=="string"?n.test(s):!1})}function Vj(e,t){const n=[];function r(s){if(t!=null&&n.length>=t||!s)return n;if(Rj(s)&&s.scrollingElement!=null&&!n.includes(s.scrollingElement))return n.push(s.scrollingElement),n;if(!j0(s)||XI(s)||n.includes(s))return n;const o=us(e).getComputedStyle(s);return s!==e&&KK(s,o)&&n.push(s),YK(s,o)?n:r(s.parentNode)}return e?r(e):n}function i9(e){const[t]=Vj(e,1);return t!=null?t:null}function Uj(e){return!Ry||!e?null:dp(e)?e:Pj(e)?Rj(e)||e===up(e).scrollingElement?window:j0(e)?e:null:null}function l9(e){return dp(e)?e.scrollX:e.scrollLeft}function c9(e){return dp(e)?e.scrollY:e.scrollTop}function qj(e){return{x:l9(e),y:c9(e)}}var ma;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ma||(ma={}));function d9(e){return!Ry||!e?!1:e===document.scrollingElement}function u9(e){const t={x:0,y:0},n=d9(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},s=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:s,isLeft:o,isBottom:i,isRight:c,maxScroll:r,minScroll:t}}const GK={x:.2,y:.2};function ZK(e,t,n,r,s){let{top:o,left:i,right:c,bottom:u}=n;r===void 0&&(r=10),s===void 0&&(s=GK);const{isTop:h,isBottom:p,isLeft:m,isRight:x}=u9(e),C={x:0,y:0},b={x:0,y:0},g={height:t.height*s.y,width:t.width*s.x};return!h&&o<=t.top+g.height?(C.y=ma.Backward,b.y=r*Math.abs((t.top+g.height-o)/g.height)):!p&&u>=t.bottom-g.height&&(C.y=ma.Forward,b.y=r*Math.abs((t.bottom-g.height-u)/g.height)),!x&&c>=t.right-g.width?(C.x=ma.Forward,b.x=r*Math.abs((t.right-g.width-c)/g.width)):!m&&i<=t.left+g.width&&(C.x=ma.Backward,b.x=r*Math.abs((t.left+g.width-i)/g.width)),{direction:C,speed:b}}function QK(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:s}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:s,width:e.clientWidth,height:e.clientHeight}}function h9(e){return e.reduce((t,n)=>hp(t,qj(n)),pi)}function JK(e){return e.reduce((t,n)=>t+l9(n),0)}function XK(e){return e.reduce((t,n)=>t+c9(n),0)}function p9(e,t){if(t===void 0&&(t=mp),!e)return;const{top:n,left:r,bottom:s,right:o}=t(e);i9(e)&&(s<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const eG=[["x",["left","right"],JK],["y",["top","bottom"],XK]];class Yj{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Vj(n),s=h9(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,c]of eG)for(const u of i)Object.defineProperty(this,u,{get:()=>{const h=c(r),p=s[o]-h;return this.rect[u]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class N0{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var s;(s=this.target)==null||s.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function tG(e){const{EventTarget:t}=us(e);return e instanceof t?e:up(e)}function Kj(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var zo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(zo||(zo={}));function m9(e){e.preventDefault()}function nG(e){e.stopPropagation()}var En;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(En||(En={}));const f9={start:[En.Space,En.Enter],cancel:[En.Esc],end:[En.Space,En.Enter]},rG=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case En.Right:return{...n,x:n.x+25};case En.Left:return{...n,x:n.x-25};case En.Down:return{...n,y:n.y+25};case En.Up:return{...n,y:n.y-25}}};class _0{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new N0(up(n)),this.windowListeners=new N0(us(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zo.Resize,this.handleCancel),this.windowListeners.add(zo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(zo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&p9(r),n(pi)}handleKeyDown(t){if($y(t)){const{active:n,context:r,options:s}=this.props,{keyboardCodes:o=f9,coordinateGetter:i=rG,scrollBehavior:c="smooth"}=s,{code:u}=t;if(o.end.includes(u)){this.handleEnd(t);return}if(o.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:h}=r.current,p=h?{x:h.left,y:h.top}:pi;this.referenceCoordinates||(this.referenceCoordinates=p);const m=i(t,{active:n,context:r.current,currentCoordinates:p});if(m){const x=Hy(m,p),C={x:0,y:0},{scrollableAncestors:b}=r.current;for(const g of b){const k=t.code,{isTop:j,isRight:S,isLeft:E,isBottom:N,maxScroll:T,minScroll:M}=u9(g),L=QK(g),D={x:Math.min(k===En.Right?L.right-L.width/2:L.right,Math.max(k===En.Right?L.left:L.left+L.width/2,m.x)),y:Math.min(k===En.Down?L.bottom-L.height/2:L.bottom,Math.max(k===En.Down?L.top:L.top+L.height/2,m.y))},P=k===En.Right&&!S||k===En.Left&&!E,A=k===En.Down&&!N||k===En.Up&&!j;if(P&&D.x!==m.x){const B=g.scrollLeft+x.x,z=k===En.Right&&B<=T.x||k===En.Left&&B>=M.x;if(z&&!x.y){g.scrollTo({left:B,behavior:c});return}z?C.x=g.scrollLeft-B:C.x=k===En.Right?g.scrollLeft-T.x:g.scrollLeft-M.x,C.x&&g.scrollBy({left:-C.x,behavior:c});break}else if(A&&D.y!==m.y){const B=g.scrollTop+x.y,z=k===En.Down&&B<=T.y||k===En.Up&&B>=M.y;if(z&&!x.x){g.scrollTo({top:B,behavior:c});return}z?C.y=g.scrollTop-B:C.y=k===En.Down?g.scrollTop-T.y:g.scrollTop-M.y,C.y&&g.scrollBy({top:-C.y,behavior:c});break}}this.handleMove(t,hp(Hy(m,this.referenceCoordinates),C))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}_0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=f9,onActivation:s}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const c=o.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),s==null||s({event:e.nativeEvent}),!0)}return!1}}];function g9(e){return!!(e&&"distance"in e)}function v9(e){return!!(e&&"delay"in e)}class Gj{constructor(t,n,r){var s;r===void 0&&(r=tG(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=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=up(i),this.documentListeners=new N0(this.document),this.listeners=new N0(r),this.windowListeners=new N0(us(i)),this.initialCoordinates=(s=By(o))!=null?s:pi,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(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(zo.Resize,this.handleCancel),this.windowListeners.add(zo.DragStart,m9),this.windowListeners.add(zo.VisibilityChange,this.handleCancel),this.windowListeners.add(zo.ContextMenu,m9),this.documentListeners.add(zo.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(v9(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(g9(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(zo.Click,nG,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zo.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:s,props:o}=this,{onMove:i,options:{activationConstraint:c}}=o;if(!s)return;const u=(n=By(t))!=null?n:pi,h=Hy(s,u);if(!r&&c){if(g9(c)){if(c.tolerance!=null&&Kj(h,c.tolerance))return this.handleCancel();if(Kj(h,c.distance))return this.handleStart()}return v9(c)&&Kj(h,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===En.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const aG={move:{name:"pointermove"},end:{name:"pointerup"}};class I0 extends Gj{constructor(t){const{event:n}=t,r=up(n.target);super(t,aG,r)}}I0.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const sG={move:{name:"mousemove"},end:{name:"mouseup"}};var Zj;(function(e){e[e.RightClick=2]="RightClick"})(Zj||(Zj={}));class oG extends Gj{constructor(t){super(t,sG,up(t.event.target))}}oG.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Zj.RightClick?!1:(r==null||r({event:n}),!0)}}];const Qj={move:{name:"touchmove"},end:{name:"touchend"}};class iG extends Gj{constructor(t){super(t,Qj)}static setup(){return window.addEventListener(Qj.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Qj.move.name,t)};function t(){}}}iG.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:s}=n;return s.length>1?!1:(r==null||r({event:n}),!0)}}];var T0;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(T0||(T0={}));var Vy;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Vy||(Vy={}));function lG(e){let{acceleration:t,activator:n=T0.Pointer,canScroll:r,draggingRect:s,enabled:o,interval:i=5,order:c=Vy.TreeOrder,pointerCoordinates:u,scrollableAncestors:h,scrollableAncestorRects:p,delta:m,threshold:x}=e;const C=dG({delta:m,disabled:!o}),[b,g]=wK(),k=f.useRef({x:0,y:0}),j=f.useRef({x:0,y:0}),S=f.useMemo(()=>{switch(n){case T0.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case T0.DraggableRect:return s}},[n,s,u]),E=f.useRef(null),N=f.useCallback(()=>{const M=E.current;if(!M)return;const L=k.current.x*j.current.x,D=k.current.y*j.current.y;M.scrollBy(L,D)},[]),T=f.useMemo(()=>c===Vy.TreeOrder?[...h].reverse():h,[c,h]);f.useEffect(()=>{if(!o||!h.length||!S){g();return}for(const M of T){if((r==null?void 0:r(M))===!1)continue;const L=h.indexOf(M),D=p[L];if(!D)continue;const{direction:P,speed:A}=ZK(M,D,S,t,x);for(const B of["x","y"])C[B][P[B]]||(A[B]=0,P[B]=0);if(A.x>0||A.y>0){g(),E.current=M,b(N,i),k.current=A,j.current=P;return}}k.current={x:0,y:0},j.current={x:0,y:0},g()},[t,N,r,g,o,i,JSON.stringify(S),JSON.stringify(C),b,h,T,p,JSON.stringify(x)])}const cG={x:{[ma.Backward]:!1,[ma.Forward]:!1},y:{[ma.Backward]:!1,[ma.Forward]:!1}};function dG(e){let{delta:t,disabled:n}=e;const r=Fy(t);return S0(s=>{if(n||!r||!s)return cG;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[ma.Backward]:s.x[ma.Backward]||o.x===-1,[ma.Forward]:s.x[ma.Forward]||o.x===1},y:{[ma.Backward]:s.y[ma.Backward]||o.y===-1,[ma.Forward]:s.y[ma.Forward]||o.y===1}}},[n,t,r])}function uG(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return S0(s=>{var o;return t===null?null:(o=r!=null?r:s)!=null?o:null},[r,t])}function hG(e,t){return f.useMemo(()=>e.reduce((n,r)=>{const{sensor:s}=r,o=s.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var uu;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(uu||(uu={}));var Jj;(function(e){e.Optimized="optimized"})(Jj||(Jj={}));const y9=new Map;function pG(e,t){let{dragging:n,dependencies:r,config:s}=t;const[o,i]=f.useState(null),{frequency:c,measure:u,strategy:h}=s,p=f.useRef(e),m=k(),x=C0(m),C=f.useCallback(function(j){j===void 0&&(j=[]),!x.current&&i(S=>S===null?j:S.concat(j.filter(E=>!S.includes(E))))},[x]),b=f.useRef(null),g=S0(j=>{if(m&&!n)return y9;if(!j||j===y9||p.current!==e||o!=null){const S=new Map;for(let E of e){if(!E)continue;if(o&&o.length>0&&!o.includes(E.id)&&E.rect.current){S.set(E.id,E.rect.current);continue}const N=E.node.current,T=N?new Yj(u(N),N):null;E.rect.current=T,T&&S.set(E.id,T)}return S}return j},[e,o,n,m,u]);return f.useEffect(()=>{p.current=e},[e]),f.useEffect(()=>{m||C()},[n,m]),f.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),f.useEffect(()=>{m||typeof c!="number"||b.current!==null||(b.current=setTimeout(()=>{C(),b.current=null},c))},[c,m,C,...r]),{droppableRects:g,measureDroppableContainers:C,measuringScheduled:o!=null};function k(){switch(h){case uu.Always:return!1;case uu.BeforeDragging:return n;default:return!n}}}function Xj(e,t){return S0(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function mG(e,t){return Xj(e,t)}function fG(e){let{callback:t,disabled:n}=e;const r=Ay(t),s=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return f.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function Uy(e){let{callback:t,disabled:n}=e;const r=Ay(t),s=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return f.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function gG(e){return new Yj(mp(e),e)}function x9(e,t,n){t===void 0&&(t=gG);const[r,s]=f.useReducer(c,null),o=fG({callback(u){if(e)for(const h of u){const{type:p,target:m}=h;if(p==="childList"&&m instanceof HTMLElement&&m.contains(e)){s();break}}}}),i=Uy({callback:s});return Ro(()=>{s(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function c(u){if(!e)return null;if(e.isConnected===!1){var h;return(h=u!=null?u:n)!=null?h:null}const p=t(e);return JSON.stringify(u)===JSON.stringify(p)?u:p}}function vG(e){const t=Xj(e);return a9(e,t)}const b9=[];function yG(e){const t=f.useRef(e),n=S0(r=>e?r&&r!==b9&&e&&t.current&&e.parentNode===t.current.parentNode?r:Vj(e):b9,[e]);return f.useEffect(()=>{t.current=e},[e]),n}function xG(e){const[t,n]=f.useState(null),r=f.useRef(e),s=f.useCallback(o=>{const i=Uj(o.target);i&&n(c=>c?(c.set(i,qj(i)),new Map(c)):null)},[]);return f.useEffect(()=>{const o=r.current;if(e!==o){i(o);const c=e.map(u=>{const h=Uj(u);return h?(h.addEventListener("scroll",s,{passive:!0}),[h,qj(h)]):null}).filter(u=>u!=null);n(c.length?new Map(c):null),r.current=e}return()=>{i(e),i(o)};function i(c){c.forEach(u=>{const h=Uj(u);h==null||h.removeEventListener("scroll",s)})}},[s,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>hp(o,i),pi):h9(e):pi,[e,t])}function w9(e,t){t===void 0&&(t=[]);const n=f.useRef(null);return f.useEffect(()=>{n.current=null},t),f.useEffect(()=>{const r=e!==pi;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Hy(e,n.current):pi}function bG(e){f.useEffect(()=>{if(!Ry)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function wG(e,t){return f.useMemo(()=>e.reduce((n,r)=>{let{eventName:s,handler:o}=r;return n[s]=i=>{o(i,t)},n},{}),[e,t])}function k9(e){return f.useMemo(()=>e?qK(e):null,[e])}const eC=[];function kG(e,t){t===void 0&&(t=mp);const[n]=e,r=k9(n?us(n):null),[s,o]=f.useReducer(c,eC),i=Uy({callback:o});return e.length>0&&s===eC&&o(),Ro(()=>{e.length?e.forEach(u=>i==null?void 0:i.observe(u)):(i==null||i.disconnect(),o())},[e]),s;function c(){return e.length?e.map(u=>d9(u)?r:new Yj(t(u),u)):eC}}function j9(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return j0(t)?t:e}function jG(e){let{measure:t}=e;const[n,r]=f.useState(null),s=f.useCallback(h=>{for(const{target:p}of h)if(j0(p)){r(m=>{const x=t(p);return m?{...m,width:x.width,height:x.height}:x});break}},[t]),o=Uy({callback:s}),i=f.useCallback(h=>{const p=j9(h);o==null||o.disconnect(),p&&(o==null||o.observe(p)),r(p?t(p):null)},[t,o]),[c,u]=zy(i);return f.useMemo(()=>({nodeRef:c,rect:n,setRef:u}),[n,c,u])}const CG=[{sensor:I0,options:{}},{sensor:_0,options:{}}],SG={current:{}},qy={draggable:{measure:o9},droppable:{measure:o9,strategy:uu.WhileDragging,frequency:Jj.Optimized},dragOverlay:{measure:mp}};class M0 extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const EG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new M0,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Wy},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:qy,measureDroppableContainers:Wy,windowRect:null,measuringScheduled:!1},C9={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Wy,draggableNodes:new Map,over:null,measureDroppableContainers:Wy},L0=f.createContext(C9),S9=f.createContext(EG);function NG(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new M0}}}function _G(e,t){switch(t.type){case ta.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ta.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case ta.DragEnd:case ta.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ta.RegisterDroppable:{const{element:n}=t,{id:r}=n,s=new M0(e.droppable.containers);return s.set(r,n),{...e,droppable:{...e.droppable,containers:s}}}case ta.SetDroppableDisabled:{const{id:n,key:r,disabled:s}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new M0(e.droppable.containers);return i.set(n,{...o,disabled:s}),{...e,droppable:{...e.droppable,containers:i}}}case ta.UnregisterDroppable:{const{id:n,key:r}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const o=new M0(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function IG(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:s}=f.useContext(L0),o=Fy(r),i=Fy(n==null?void 0:n.id);return f.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!$y(o)||document.activeElement===o.target)return;const c=s.get(i);if(!c)return;const{activatorNode:u,node:h}=c;if(!u.current&&!h.current)return;requestAnimationFrame(()=>{for(const p of[u.current,h.current]){if(!p)continue;const m=CK(p);if(m){m.focus();break}}})}},[r,t,s,i,o]),null}function E9(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((s,o)=>o({transform:s,...r}),n):n}function TG(e){return f.useMemo(()=>({draggable:{...qy.draggable,...e==null?void 0:e.draggable},droppable:{...qy.droppable,...e==null?void 0:e.droppable},dragOverlay:{...qy.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function MG(e){let{activeNode:t,measure:n,initialRect:r,config:s=!0}=e;const o=f.useRef(!1),{x:i,y:c}=typeof s=="boolean"?{x:s,y:s}:s;Ro(()=>{if(!i&&!c||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const h=n(u),p=a9(h,r);if(i||(p.x=0),c||(p.y=0),o.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const m=i9(u);m&&m.scrollBy({top:p.y,left:p.x})}},[t,i,c,r,n])}const Yy=f.createContext({...pi,scaleX:1,scaleY:1});var zc;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zc||(zc={}));const N9=f.memo(function(e){var t,n,r,s;let{id:o,accessibility:i,autoScroll:c=!0,children:u,sensors:h=CG,collisionDetection:p=Wj,measuring:m,modifiers:x,...C}=e;const b=f.useReducer(_G,void 0,NG),[g,k]=b,[j,S]=TK(),[E,N]=f.useState(zc.Uninitialized),T=E===zc.Initialized,{draggable:{active:M,nodes:L,translate:D},droppable:{containers:P}}=g,A=M?L.get(M):null,B=f.useRef({initial:null,translated:null}),z=f.useMemo(()=>{var Qe;return M!=null?{id:M,data:(Qe=A==null?void 0:A.data)!=null?Qe:SG,rect:B}:null},[M,A]),R=f.useRef(null),[$,_]=f.useState(null),[U,K]=f.useState(null),W=C0(C,Object.values(C)),G=E0("DndDescribedBy",o),Z=f.useMemo(()=>P.getEnabled(),[P]),F=TG(m),{droppableRects:V,measureDroppableContainers:q,measuringScheduled:ne}=pG(Z,{dragging:T,dependencies:[D.x,D.y],config:F.droppable}),Q=uG(L,M),ae=f.useMemo(()=>U?By(U):null,[U]),re=ke(),le=mG(Q,F.draggable.measure);MG({activeNode:M?L.get(M):null,config:re.layoutShiftCompensation,initialRect:le,measure:F.draggable.measure});const oe=x9(Q,F.draggable.measure,le),ie=x9(Q?Q.parentElement:null),de=f.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:L,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),xe=P.getNodeFor((t=de.current.over)==null?void 0:t.id),je=jG({measure:F.dragOverlay.measure}),Ee=(n=je.nodeRef.current)!=null?n:Q,Te=T?(r=je.rect)!=null?r:oe:null,Me=!!(je.nodeRef.current&&je.rect),ze=vG(Me?null:oe),qe=k9(Ee?us(Ee):null),Ye=yG(T?xe!=null?xe:Q:null),Ve=kG(Ye),Lt=E9(x,{transform:{x:D.x-ze.x,y:D.y-ze.y,scaleX:1,scaleY:1},activatorEvent:U,active:z,activeNodeRect:oe,containerNodeRect:ie,draggingNodeRect:Te,over:de.current.over,overlayNodeRect:je.rect,scrollableAncestors:Ye,scrollableAncestorRects:Ve,windowRect:qe}),$e=ae?hp(ae,D):null,st=xG(Ye),At=w9(st),Qt=w9(st,[oe]),Vt=hp(Lt,At),_e=Te?WK(Te,Lt):null,sn=z&&_e?p({active:z,collisionRect:_e,droppableRects:V,droppableContainers:Z,pointerCoordinates:$e}):null,Ht=Bj(sn,"id"),[kt,rn]=f.useState(null),Zt=Me?Lt:hp(Lt,Qt),Jt=$K(Zt,(s=kt==null?void 0:kt.rect)!=null?s:null,oe),gn=f.useCallback((Qe,ge)=>{let{sensor:ve,options:Ie}=ge;if(R.current==null)return;const Ae=L.get(R.current);if(!Ae)return;const Ze=Qe.nativeEvent,Je=new ve({active:R.current,activeNode:Ae,event:Ze,options:Ie,context:de,onStart(at){const Ge=R.current;if(Ge==null)return;const yt=L.get(Ge);if(!yt)return;const{onDragStart:Nt}=W.current,bt={active:{id:Ge,data:yt.data,rect:B}};Wa.unstable_batchedUpdates(()=>{Nt==null||Nt(bt),N(zc.Initializing),k({type:ta.DragStart,initialCoordinates:at,active:Ge}),j({type:"onDragStart",event:bt})})},onMove(at){k({type:ta.DragMove,coordinates:at})},onEnd:ot(ta.DragEnd),onCancel:ot(ta.DragCancel)});Wa.unstable_batchedUpdates(()=>{_(Je),K(Qe.nativeEvent)});function ot(at){return async function(){const{active:Ge,collisions:yt,over:Nt,scrollAdjustedTranslate:bt}=de.current;let $t=null;if(Ge&&bt){const{cancelDrop:St}=W.current;$t={activatorEvent:Ze,active:Ge,collisions:yt,delta:bt,over:Nt},at===ta.DragEnd&&typeof St=="function"&&await Promise.resolve(St($t))&&(at=ta.DragCancel)}R.current=null,Wa.unstable_batchedUpdates(()=>{k({type:at}),N(zc.Uninitialized),rn(null),_(null),K(null);const St=at===ta.DragEnd?"onDragEnd":"onDragCancel";if($t){const Rt=W.current[St];Rt==null||Rt($t),j({type:St,event:$t})}})}}},[L]),zt=f.useCallback((Qe,ge)=>(ve,Ie)=>{const Ae=ve.nativeEvent,Ze=L.get(Ie);if(R.current!==null||!Ze||Ae.dndKit||Ae.defaultPrevented)return;const Je={active:Ze};Qe(ve,ge.options,Je)===!0&&(Ae.dndKit={capturedBy:ge.sensor},R.current=Ie,gn(ve,ge))},[L,gn]),Mn=hG(h,zt);bG(h),Ro(()=>{oe&&E===zc.Initializing&&N(zc.Initialized)},[oe,E]),f.useEffect(()=>{const{onDragMove:Qe}=W.current,{active:ge,activatorEvent:ve,collisions:Ie,over:Ae}=de.current;if(!ge||!ve)return;const Ze={active:ge,activatorEvent:ve,collisions:Ie,delta:{x:Vt.x,y:Vt.y},over:Ae};Wa.unstable_batchedUpdates(()=>{Qe==null||Qe(Ze),j({type:"onDragMove",event:Ze})})},[Vt.x,Vt.y]),f.useEffect(()=>{const{active:Qe,activatorEvent:ge,collisions:ve,droppableContainers:Ie,scrollAdjustedTranslate:Ae}=de.current;if(!Qe||R.current==null||!ge||!Ae)return;const{onDragOver:Ze}=W.current,Je=Ie.get(Ht),ot=Je&&Je.rect.current?{id:Je.id,rect:Je.rect.current,data:Je.data,disabled:Je.disabled}:null,at={active:Qe,activatorEvent:ge,collisions:ve,delta:{x:Ae.x,y:Ae.y},over:ot};Wa.unstable_batchedUpdates(()=>{rn(ot),Ze==null||Ze(at),j({type:"onDragOver",event:at})})},[Ht]),Ro(()=>{de.current={activatorEvent:U,active:z,activeNode:Q,collisionRect:_e,collisions:sn,droppableRects:V,draggableNodes:L,draggingNode:Ee,draggingNodeRect:Te,droppableContainers:P,over:kt,scrollableAncestors:Ye,scrollAdjustedTranslate:Vt},B.current={initial:Te,translated:_e}},[z,Q,sn,_e,L,Ee,Te,V,P,kt,Ye,Vt]),lG({...re,delta:D,draggingRect:_e,pointerCoordinates:$e,scrollableAncestors:Ye,scrollableAncestorRects:Ve});const Ce=f.useMemo(()=>({active:z,activeNode:Q,activeNodeRect:oe,activatorEvent:U,collisions:sn,containerNodeRect:ie,dragOverlay:je,draggableNodes:L,droppableContainers:P,droppableRects:V,over:kt,measureDroppableContainers:q,scrollableAncestors:Ye,scrollableAncestorRects:Ve,measuringConfiguration:F,measuringScheduled:ne,windowRect:qe}),[z,Q,oe,U,sn,ie,je,L,P,V,kt,q,Ye,Ve,F,ne,qe]),Be=f.useMemo(()=>({activatorEvent:U,activators:Mn,active:z,activeNodeRect:oe,ariaDescribedById:{draggable:G},dispatch:k,draggableNodes:L,over:kt,measureDroppableContainers:q}),[U,Mn,z,oe,k,G,L,kt,q]);return dt.createElement(n9.Provider,{value:S},dt.createElement(L0.Provider,{value:Be},dt.createElement(S9.Provider,{value:Ce},dt.createElement(Yy.Provider,{value:Jt},u)),dt.createElement(IG,{disabled:(i==null?void 0:i.restoreFocus)===!1})),dt.createElement(DK,{...i,hiddenTextDescribedById:G}));function ke(){const Qe=($==null?void 0:$.autoScrollEnabled)===!1,ge=typeof c=="object"?c.enabled===!1:c===!1,ve=T&&!Qe&&!ge;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),LG=f.createContext(null),_9="button",DG="Droppable";function I9(e){let{id:t,data:n,disabled:r=!1,attributes:s}=e;const o=E0(DG),{activators:i,activatorEvent:c,active:u,activeNodeRect:h,ariaDescribedById:p,draggableNodes:m,over:x}=f.useContext(L0),{role:C=_9,roleDescription:b="draggable",tabIndex:g=0}=s!=null?s:{},k=(u==null?void 0:u.id)===t,j=f.useContext(k?Yy:LG),[S,E]=zy(),[N,T]=zy(),M=wG(i,t),L=C0(n);Ro(()=>(m.set(t,{id:t,key:o,node:S,activatorNode:N,data:L}),()=>{const P=m.get(t);P&&P.key===o&&m.delete(t)}),[m,t]);const D=f.useMemo(()=>({role:C,tabIndex:g,"aria-disabled":r,"aria-pressed":k&&C===_9?!0:void 0,"aria-roledescription":b,"aria-describedby":p.draggable}),[r,C,g,k,b,p.draggable]);return{active:u,activatorEvent:c,activeNodeRect:h,attributes:D,isDragging:k,listeners:r?void 0:M,node:S,over:x,setNodeRef:E,setActivatorNodeRef:T,transform:j}}function T9(){return f.useContext(S9)}const OG="Droppable",PG={timeout:25};function Ky(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:s}=e;const o=E0(OG),{active:i,dispatch:c,over:u,measureDroppableContainers:h}=f.useContext(L0),p=f.useRef({disabled:n}),m=f.useRef(!1),x=f.useRef(null),C=f.useRef(null),{disabled:b,updateMeasurementsFor:g,timeout:k}={...PG,...s},j=C0(g!=null?g:r),S=f.useCallback(()=>{if(!m.current){m.current=!0;return}C.current!=null&&clearTimeout(C.current),C.current=setTimeout(()=>{h(Array.isArray(j.current)?j.current:[j.current]),C.current=null},k)},[k]),E=Uy({callback:S,disabled:b||!i}),N=f.useCallback((D,P)=>{E&&(P&&(E.unobserve(P),m.current=!1),D&&E.observe(D))},[E]),[T,M]=zy(N),L=C0(t);return f.useEffect(()=>{!E||!T.current||(E.disconnect(),m.current=!1,E.observe(T.current))},[T,E]),Ro(()=>(c({type:ta.RegisterDroppable,element:{id:r,key:o,disabled:n,node:T,rect:x,data:L}}),()=>c({type:ta.UnregisterDroppable,key:o,id:r})),[r]),f.useEffect(()=>{n!==p.current.disabled&&(c({type:ta.SetDroppableDisabled,id:r,key:o,disabled:n}),p.current.disabled=n)},[r,o,n,c]),{active:i,rect:x,isOver:(u==null?void 0:u.id)===r,node:T,over:u,setNodeRef:M}}function RG(e){let{animation:t,children:n}=e;const[r,s]=f.useState(null),[o,i]=f.useState(null),c=Fy(n);return!n&&!r&&c&&s(c),Ro(()=>{if(!o)return;const u=r==null?void 0:r.key,h=r==null?void 0:r.props.id;if(u==null||h==null){s(null);return}Promise.resolve(t(h,o)).then(()=>{s(null)})},[t,r,o]),dt.createElement(dt.Fragment,null,n,r?f.cloneElement(r,{ref:i}):null)}const AG={x:0,y:0,scaleX:1,scaleY:1};function zG(e){let{children:t}=e;return dt.createElement(L0.Provider,{value:C9},dt.createElement(Yy.Provider,{value:AG},t))}const FG={position:"fixed",touchAction:"none"},HG=e=>$y(e)?"transform 250ms ease":void 0,$G=f.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:s,children:o,className:i,rect:c,style:u,transform:h,transition:p=HG}=e;if(!c)return null;const m=s?h:{...h,scaleX:1,scaleY:1},x={...FG,width:c.width,height:c.height,top:c.top,left:c.left,transform:Ao.Transform.toString(m),transformOrigin:s&&r?OK(r,c):void 0,transition:typeof p=="function"?p(r):p,...u};return dt.createElement(n,{className:i,style:x,ref:t},o)}),BG=e=>t=>{let{active:n,dragOverlay:r}=t;const s={},{styles:o,className:i}=e;if(o!=null&&o.active)for(const[c,u]of Object.entries(o.active))u!==void 0&&(s[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,u));if(o!=null&&o.dragOverlay)for(const[c,u]of Object.entries(o.dragOverlay))u!==void 0&&r.node.style.setProperty(c,u);return i!=null&&i.active&&n.node.classList.add(i.active),i!=null&&i.dragOverlay&&r.node.classList.add(i.dragOverlay),function(){for(const[c,u]of Object.entries(s))n.node.style.setProperty(c,u);i!=null&&i.active&&n.node.classList.remove(i.active)}},WG=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ao.Transform.toString(t)},{transform:Ao.Transform.toString(n)}]},hu={duration:250,easing:"ease",keyframes:WG,sideEffects:BG({styles:{active:{opacity:"0"}}})};function VG(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:s}=e;return Ay((o,i)=>{if(t===null)return;const c=n.get(o);if(!c)return;const u=c.node.current;if(!u)return;const h=j9(i);if(!h)return;const{transform:p}=us(i).getComputedStyle(i),m=s9(p);if(!m)return;const x=typeof t=="function"?t:UG(t);return p9(u,s.draggable.measure),x({active:{id:o,data:c.data,node:u,rect:s.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:i,rect:s.dragOverlay.measure(h)},droppableContainers:r,measuringConfiguration:s,transform:m})})}function UG(e){const{duration:t,easing:n,sideEffects:r,keyframes:s}={...hu,...e};return o=>{let{active:i,dragOverlay:c,transform:u,...h}=o;if(!t)return;const p={x:c.rect.left-i.rect.left,y:c.rect.top-i.rect.top},m={scaleX:u.scaleX!==1?i.rect.width*u.scaleX/c.rect.width:1,scaleY:u.scaleY!==1?i.rect.height*u.scaleY/c.rect.height:1},x={x:u.x-p.x,y:u.y-p.y,...m},C=s({...h,active:i,dragOverlay:c,transform:{initial:u,final:x}}),[b]=C,g=C[C.length-1];if(JSON.stringify(b)===JSON.stringify(g))return;const k=r==null?void 0:r({active:i,dragOverlay:c,...h}),j=c.node.animate(C,{duration:t,easing:n,fill:"forwards"});return new Promise(S=>{j.onfinish=()=>{k==null||k(),S()}})}}let M9=0;function qG(e){return f.useMemo(()=>{if(e!=null)return M9++,M9},[e])}const L9=dt.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:s,transition:o,modifiers:i,wrapperElement:c="div",className:u,zIndex:h=999}=e;const{activatorEvent:p,active:m,activeNodeRect:x,containerNodeRect:C,draggableNodes:b,droppableContainers:g,dragOverlay:k,over:j,measuringConfiguration:S,scrollableAncestors:E,scrollableAncestorRects:N,windowRect:T}=T9(),M=f.useContext(Yy),L=qG(m==null?void 0:m.id),D=E9(i,{activatorEvent:p,active:m,activeNodeRect:x,containerNodeRect:C,draggingNodeRect:k.rect,over:j,overlayNodeRect:k.rect,scrollableAncestors:E,scrollableAncestorRects:N,transform:M,windowRect:T}),P=Xj(x),A=VG({config:r,draggableNodes:b,droppableContainers:g,measuringConfiguration:S}),B=P?k.setRef:void 0;return dt.createElement(zG,null,dt.createElement(RG,{animation:A},m&&L?dt.createElement($G,{key:L,id:m.id,ref:B,as:c,activatorEvent:p,adjustScale:t,className:u,transition:o,rect:P,style:{zIndex:h,...s},transform:D},n):null))});function Kr(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function YG(e,t){return e.reduce((n,r,s)=>{const o=t.get(r);return o&&(n[s]=o),n},Array(e.length))}function Gy(e){return e!==null&&e>=0}function KG(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function GG(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Zy={scaleX:1,scaleY:1},ZG=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:s,overIndex:o,index:i}=e;const c=(t=n[s])!=null?t:r;if(!c)return null;const u=QG(n,i,s);if(i===s){const h=n[o];return h?{x:s<o?h.left+h.width-(c.left+c.width):h.left-c.left,y:0,...Zy}:null}return i>s&&i<=o?{x:-c.width-u,y:0,...Zy}:i<s&&i>=o?{x:c.width+u,y:0,...Zy}:{x:0,y:0,...Zy}};function QG(e,t,n){const r=e[t],s=e[t-1],o=e[t+1];return!r||!s&&!o?0:n<t?s?r.left-(s.left+s.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(s.left+s.width)}const D9=e=>{let{rects:t,activeIndex:n,overIndex:r,index:s}=e;const o=Kr(t,r,n),i=t[s],c=o[s];return!c||!i?null:{x:c.left-i.left,y:c.top-i.top,scaleX:c.width/i.width,scaleY:c.height/i.height}},O9="Sortable",P9=dt.createContext({activeIndex:-1,containerId:O9,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:D9,disabled:{draggable:!1,droppable:!1}});function tC(e){let{children:t,id:n,items:r,strategy:s=D9,disabled:o=!1}=e;const{active:i,dragOverlay:c,droppableRects:u,over:h,measureDroppableContainers:p}=T9(),m=E0(O9,n),x=c.rect!==null,C=f.useMemo(()=>r.map(M=>typeof M=="object"&&"id"in M?M.id:M),[r]),b=i!=null,g=i?C.indexOf(i.id):-1,k=h?C.indexOf(h.id):-1,j=f.useRef(C),S=!KG(C,j.current),E=k!==-1&&g===-1||S,N=GG(o);Ro(()=>{S&&b&&p(C)},[S,C,b,p]),f.useEffect(()=>{j.current=C},[C]);const T=f.useMemo(()=>({activeIndex:g,containerId:m,disabled:N,disableTransforms:E,items:C,overIndex:k,useDragOverlay:x,sortedRects:YG(C,u),strategy:s}),[g,m,N.draggable,N.droppable,E,C,k,u,x,s]);return dt.createElement(P9.Provider,{value:T},t)}const JG=e=>{let{id:t,items:n,activeIndex:r,overIndex:s}=e;return Kr(n,r,s).indexOf(t)},XG=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:s,items:o,newIndex:i,previousItems:c,previousContainerId:u,transition:h}=e;return!h||!r||c!==o&&s===i?!1:n?!0:i!==s&&t===u},eZ={duration:200,easing:"ease"},R9="transform",tZ=Ao.Transition.toString({property:R9,duration:0,easing:"linear"}),nZ={roleDescription:"sortable"};function rZ(e){let{disabled:t,index:n,node:r,rect:s}=e;const[o,i]=f.useState(null),c=f.useRef(n);return Ro(()=>{if(!t&&n!==c.current&&r.current){const u=s.current;if(u){const h=mp(r.current,{ignoreTransform:!0}),p={x:u.left-h.left,y:u.top-h.top,scaleX:u.width/h.width,scaleY:u.height/h.height};(p.x||p.y)&&i(p)}}n!==c.current&&(c.current=n)},[t,n,r,s]),f.useEffect(()=>{o&&i(null)},[o]),o}function nC(e){let{animateLayoutChanges:t=XG,attributes:n,disabled:r,data:s,getNewIndex:o=JG,id:i,strategy:c,resizeObserverConfig:u,transition:h=eZ}=e;const{items:p,containerId:m,activeIndex:x,disabled:C,disableTransforms:b,sortedRects:g,overIndex:k,useDragOverlay:j,strategy:S}=f.useContext(P9),E=aZ(r,C),N=p.indexOf(i),T=f.useMemo(()=>({sortable:{containerId:m,index:N,items:p},...s}),[m,s,N,p]),M=f.useMemo(()=>p.slice(p.indexOf(i)),[p,i]),{rect:L,node:D,isOver:P,setNodeRef:A}=Ky({id:i,data:T,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...u}}),{active:B,activatorEvent:z,activeNodeRect:R,attributes:$,setNodeRef:_,listeners:U,isDragging:K,over:W,setActivatorNodeRef:G,transform:Z}=I9({id:i,data:T,attributes:{...nZ,...n},disabled:E.draggable}),F=bK(A,_),V=!!B,q=V&&!b&&Gy(x)&&Gy(k),ne=!j&&K,Q=ne&&q?Z:null,ae=q?Q!=null?Q:(c!=null?c:S)({rects:g,activeNodeRect:R,activeIndex:x,overIndex:k,index:N}):null,re=Gy(x)&&Gy(k)?o({id:i,items:p,activeIndex:x,overIndex:k}):N,le=B==null?void 0:B.id,oe=f.useRef({activeId:le,items:p,newIndex:re,containerId:m}),ie=p!==oe.current.items,de=t({active:B,containerId:m,isDragging:K,isSorting:V,id:i,index:N,items:p,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:h,wasDragging:oe.current.activeId!=null}),xe=rZ({disabled:!de,index:N,node:D,rect:L});return f.useEffect(()=>{V&&oe.current.newIndex!==re&&(oe.current.newIndex=re),m!==oe.current.containerId&&(oe.current.containerId=m),p!==oe.current.items&&(oe.current.items=p)},[V,re,m,p]),f.useEffect(()=>{if(le===oe.current.activeId)return;if(le&&!oe.current.activeId){oe.current.activeId=le;return}const Ee=setTimeout(()=>{oe.current.activeId=le},50);return()=>clearTimeout(Ee)},[le]),{active:B,activeIndex:x,attributes:$,data:T,rect:L,index:N,newIndex:re,items:p,isOver:P,isSorting:V,isDragging:K,listeners:U,node:D,overIndex:k,over:W,setNodeRef:F,setActivatorNodeRef:G,setDroppableNodeRef:A,setDraggableNodeRef:_,transform:xe!=null?xe:ae,transition:je()};function je(){if(xe||ie&&oe.current.newIndex===N)return tZ;if(!(ne&&!$y(z)||!h)&&(V||de))return Ao.Transition.toString({...h,property:R9})}}function aZ(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}En.Down,En.Right,En.Up,En.Left;function Os(e,t,n){const r=s=>e.filter(o=>o.parentId===s&&o.tabId===t).map(o=>({...o,id:o.itemId.toString(),children:[],type:o.isBoard?ns:o.isClip?wo:void 0})).sort((o,i)=>o.orderNumber-i.orderNumber).map(o=>{const i=o;return"isBoard"in i&&i.isBoard&&i.type===ns&&(i.children=r(i.id.toString()),i.children.length===0&&delete i.children),i});return r(n||null)}var na={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let sZ=0;function A9(e,t){const n="atom".concat(++sZ),r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=function(s){return s(this)},r.write=function(s,o,i){return o(this,typeof i=="function"?i(s(this)):i)}),t&&(r.write=t),r}const rC=e=>"init"in e,aC=e=>!!e.write,Qy=new WeakMap,oZ=(e,t)=>{Qy.set(e,t),e.catch(()=>{}).finally(()=>Qy.delete(e))},z9=(e,t)=>{const n=Qy.get(e);n&&(Qy.delete(e),n(t))},F9=(e,t)=>{e.status="fulfilled",e.value=t},H9=(e,t)=>{e.status="rejected",e.reason=t},iZ=e=>typeof(e==null?void 0:e.then)=="function",D0=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),$9=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),fp=e=>!!e&&"v"in e&&e.v instanceof Promise,lZ=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,Jy=e=>{if("e"in e)throw e.e;return e.v},cZ=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let r,s;(na?"production":void 0)!=="production"&&(r=new Set,s=new Set);const o=D=>e.get(D),i=(D,P)=>{(na?"production":void 0)!=="production"&&Object.freeze(P);const A=e.get(D);if(e.set(D,P),n.has(D)||n.set(D,A),fp(A)){const B="v"in P?P.v instanceof Promise?P.v:Promise.resolve(P.v):Promise.reject(P.e);A.v!==B&&z9(A.v,B)}},c=(D,P,A)=>{const B=new Map;let z=!1;A.forEach((R,$)=>{!R&&$===D&&(R=P),R?(B.set($,R),P.d.get($)!==R&&(z=!0)):(na?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(z||P.d.size!==B.size)&&(P.d=B)},u=(D,P,A)=>{const B=o(D),z={d:(B==null?void 0:B.d)||new Map,v:P};if(A&&c(D,z,A),D0(B,z)&&B.d===z.d)return B;if(fp(B)&&fp(z)&&lZ(B,z)){if(B.d===z.d)return B;z.v=B.v}return i(D,z),z},h=(D,P,A,B)=>{if(iZ(P)){let z;const R=()=>{const _=o(D);if(!fp(_)||_.v!==$)return;const U=u(D,$,A);t.has(D)&&_.d!==U.d&&T(D,U,_.d)},$=new Promise((_,U)=>{let K=!1;P.then(W=>{K||(K=!0,F9($,W),_(W),R())},W=>{K||(K=!0,H9($,W),U(W),R())}),z=W=>{K||(K=!0,W.then(G=>F9($,G),G=>H9($,G)),_(W))}});return $.orig=P,$.status="pending",oZ($,_=>{_&&z(_),B==null||B()}),u(D,$,A)}return u(D,P,A)},p=(D,P,A)=>{const B=o(D),z={d:(B==null?void 0:B.d)||new Map,e:P};return A&&c(D,z,A),$9(B,z)&&B.d===z.d?B:(i(D,z),z)},m=(D,P)=>{const A=o(D);if(!P&&A&&(t.has(D)||Array.from(A.d).every(([K,W])=>{if(K===D)return!0;const G=m(K);return G===W||D0(G,W)})))return A;const B=new Map;let z=!0;const R=K=>{if(K===D){const G=o(K);if(G)return B.set(K,G),Jy(G);if(rC(K))return B.set(K,void 0),K.init;throw new Error("no atom init")}const W=m(K);return B.set(K,W),Jy(W)};let $,_;const U={get signal(){return $||($=new AbortController),$.signal},get setSelf(){return(na?"production":void 0)!=="production"&&!aC(D)&&console.warn("setSelf function cannot be used with read-only atom"),!_&&aC(D)&&(_=(...K)=>{if((na?"production":void 0)!=="production"&&z&&console.warn("setSelf function cannot be called in sync"),!z)return S(D,...K)}),_}};try{const K=D.read(R,U);return h(D,K,B,()=>$==null?void 0:$.abort())}catch(K){return p(D,K,B)}finally{z=!1}},x=D=>Jy(m(D)),C=D=>{let P=t.get(D);return P||(P=E(D)),P},b=(D,P)=>!P.l.size&&(!P.t.size||P.t.size===1&&P.t.has(D)),g=D=>{const P=t.get(D);P&&b(D,P)&&N(D)},k=D=>{const P=new Map,A=new WeakMap,B=$=>{var _;const U=new Set((_=t.get($))==null?void 0:_.t);return n.forEach((K,W)=>{var G;(G=o(W))!=null&&G.d.has($)&&U.add(W)}),U},z=$=>{B($).forEach(_=>{_!==$&&(P.set(_,(P.get(_)||new Set).add($)),A.set(_,(A.get(_)||0)+1),z(_))})};z(D);const R=$=>{B($).forEach(_=>{var U;if(_!==$){let K=A.get(_);if(K&&A.set(_,--K),!K){let W=!!((U=P.get(_))!=null&&U.size);if(W){const G=o(_),Z=m(_,!0);W=!D0(G,Z)}W||P.forEach(G=>G.delete(_))}R(_)}})};R(D)},j=(D,...P)=>{let A=!0;const B=$=>Jy(m($)),z=($,..._)=>{let U;if($===D){if(!rC($))throw new Error("atom not writable");const K=o($),W=h($,_[0]);D0(K,W)||k($)}else U=j($,..._);if(!A){const K=M();(na?"production":void 0)!=="production"&&r.forEach(W=>W({type:"async-write",flushed:K}))}return U},R=D.write(B,z,...P);return A=!1,R},S=(D,...P)=>{const A=j(D,...P),B=M();return(na?"production":void 0)!=="production"&&r.forEach(z=>z({type:"write",flushed:B})),A},E=(D,P,A)=>{var B;const z=A||[];(B=o(D))==null||B.d.forEach(($,_)=>{const U=t.get(_);U?U.t.add(D):_!==D&&E(_,D,z)}),m(D);const R={t:new Set(P&&[P]),l:new Set};if(t.set(D,R),(na?"production":void 0)!=="production"&&s.add(D),aC(D)&&D.onMount){const{onMount:$}=D;z.push(()=>{const _=$((...U)=>S(D,...U));_&&(R.u=_)})}return A||z.forEach($=>$()),R},N=D=>{var P;const A=(P=t.get(D))==null?void 0:P.u;A&&A(),t.delete(D),(na?"production":void 0)!=="production"&&s.delete(D);const B=o(D);B?(fp(B)&&z9(B.v),B.d.forEach((z,R)=>{if(R!==D){const $=t.get(R);$&&($.t.delete(D),b(R,$)&&N(R))}})):(na?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",D)},T=(D,P,A)=>{const B=new Set(P.d.keys());A==null||A.forEach((z,R)=>{if(B.has(R)){B.delete(R);return}const $=t.get(R);$&&($.t.delete(D),b(R,$)&&N(R))}),B.forEach(z=>{const R=t.get(z);R?R.t.add(D):t.has(D)&&E(z,D)})},M=()=>{let D;for((na?"production":void 0)!=="production"&&(D=new Set);n.size;){const P=Array.from(n);n.clear(),P.forEach(([A,B])=>{const z=o(A);if(z){const R=t.get(A);R&&z.d!==(B==null?void 0:B.d)&&T(A,z,B==null?void 0:B.d),R&&!(!fp(B)&&(D0(B,z)||$9(B,z)))&&(R.l.forEach($=>$()),(na?"production":void 0)!=="production"&&D.add(A))}else(na?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((na?"production":void 0)!=="production")return D},L=(D,P)=>{const A=C(D),B=M(),z=A.l;return z.add(P),(na?"production":void 0)!=="production"&&r.forEach(R=>R({type:"sub",flushed:B})),()=>{z.delete(P),g(D),(na?"production":void 0)!=="production"&&r.forEach(R=>R({type:"unsub"}))}};return(na?"production":void 0)!=="production"?{get:x,set:S,sub:L,dev_subscribe_store:(D,P)=>{if(P!==2)throw new Error("The current StoreListener revision is 2.");return r.add(D),()=>{r.delete(D)}},dev_get_mounted_atoms:()=>s.values(),dev_get_atom_state:D=>e.get(D),dev_get_mounted:D=>t.get(D),dev_restore_atoms:D=>{for(const[A,B]of D)rC(A)&&(h(A,B),k(A));const P=M();r.forEach(A=>A({type:"restore",flushed:P}))}}:{get:x,set:S,sub:L}};let sC;(na?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const dZ=()=>(sC||((na?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),sC=cZ()),sC);function gp(e){const t=A9(e.getState());return t.onMount=n=>{const r=()=>{n(e.getState())},s=e.subscribe(r);return r(),s},A9(n=>n(t),(n,r,s)=>{const o=typeof s=="function"?s(n(t)):s;e.setState(o,!0)})}var uZ={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const B9=e=>{let t;const n=new Set,r=(i,c)=>{const u=typeof i=="function"?i(t):i;if(!Object.is(u,t)){const h=t;t=(c!=null?c:typeof u!="object")?u:Object.assign({},t,u),n.forEach(p=>p(t,h))}},s=()=>t,o={setState:r,getState:s,subscribe:i=>(n.add(i),()=>n.delete(i)),destroy:()=>{(uZ?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,s,o),o},vp=e=>e?B9(e):B9;var hZ={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const W9={appVersion:"0.0.1",isAppReady:!1,appDataDir:"",isHistoryEnabled:!0,isFirstRun:!0,historyDetectLanguagesEnabledList:[],historyExclusionList:"",isExclusionListEnabled:!1,isAutoClearSettingsEnabled:!1,isAutoMaskWordsListEnabled:!1,autoMaskWordsList:"",isHistoryDetectLanguageEnabled:!0,historyDetectLanguageMinLines:3,autoClearSettingsDuration:1,autoClearSettingsDurationType:"months",copyPasteDelay:0,copyPasteSequencePinnedDelay:3,copyPasteSequenceIsReversOrder:!1,pasteSequenceEachSeparator:"",isSearchNameOrLabelOnly:!0,isAutoCloseOnCopyPaste:!1,isAutoPreviewLinkCardsEnabled:!0,isAutoFavoriteOnDoubleCopyEnabled:!0,isShowCollectionNameOnNavBar:!0,isShowDisabledCollectionsOnNavBarMenu:!0,isSkipAutoStartPrompt:!1,userSelectedLanguage:"",isHistoryAutoUpdateOnCaputureEnabled:!0,isIdleScreenAutoLockEnabled:!1,idleScreenAutoLockTimeInMinutes:null,isShowHistoryCaptureOnLockedScreen:!1,screenLockPassCode:null,screenLockPassCodeLength:0,screenLockRecoveryPasswordMasked:null,isAppLocked:!1,isScreenLockPassCodeRequireOnStart:!1,licenseKey:null,isFirstRunAfterUpdate:!1,CONST:{APP_DETECT_LANGUAGES_SUPPORTED:[]},setIsHistoryEnabled:()=>{},setCopyPasteDelay:()=>{},setCopyPasteSequencePinnedDelay:()=>{},setCopyPasteSequenceIsReversOrder:()=>{},setPasteSequenceEachSeparator:()=>{},setIsExclusionListEnabled:()=>{},setHistoryDetectLanguageMinLines:()=>{},setAutoClearSettingsDuration:()=>{},setAutoClearSettingsDurationType:()=>{},setIsHistoryDetectLanguageEnabled:()=>{},setHistoryExclusionList:()=>{},setIsHistoryAutoUpdateOnCaputureEnabled:()=>{},setHistoryDetectLanguagesEnabledList:()=>{},setIsAutoClearSettingsEnabled:()=>{},setIsAutoMaskWordsListEnabled:()=>{},setIsAutoCloseOnCopyPaste:()=>{},setIsAutoPreviewLinkCardsEnabled:()=>{},setIsAutoFavoriteOnDoubleCopyEnabled:()=>{},setIsSearchNameOrLabelOnly:()=>{},setAutoMaskWordsList:()=>{},setIsShowCollectionNameOnNavBar:()=>{},setIsShowDisabledCollectionsOnNavBarMenu:()=>{},setIsSkipAutoStartPrompt:()=>{},setIdleScreenAutoLockTimeInMinutes:()=>{},setIsIdleScreenAutoLockEnabled:()=>{},setIsShowHistoryCaptureOnLockedScreen:()=>{},setScreenLockPassCode:()=>{},setScreenLockPassCodeLength:()=>{},setScreenLockResetTempPassCode:()=>{},setScreenLockRecoveryPasswordMasked:()=>{},setIsAppLocked:()=>{},setIsScreenLockPassCodeRequireOnStart:()=>{},setLicenseKey:()=>{},setIsFirstRunAfterUpdate:()=>{},initConstants:()=>{},setAppDataDir:()=>{},updateSetting:()=>{},setIsFirstRun:()=>{},setAppVersion:()=>{},setUserSelectedLanguage:()=>{},initSettings:()=>{},hashPassword:e=>vn("hash_password",{password:e}),storePassword:(e,t)=>vn("store_os_password",{name:e,password:t}),getStoredPassword:e=>{try{return vn("get_stored_os_password",{name:e})}catch{return Promise.resolve(null)}},verifyStoredPassword:(e,t)=>vn("verify_os_password",{name:e,password:t}),deleteStoredPassword:e=>vn("delete_os_password",{name:e}),verifyPassword:(e,t)=>vn("verify_password",{password:e,hash:t})},yp=vp()((e,t)=>({...W9,updateSetting:async(n,r)=>{let s;typeof r=="boolean"?s={valueBool:r}:typeof r=="string"?s={valueText:r}:typeof r=="number"?s={valueInt:r}:s={valueInt:null,valueText:null,valueBool:null};try{return await vn("update_setting",{setting:{name:n,...s}}),(n==="isHistoryEnabled"||n==="userSelectedLanguage"||n==="isAppLocked")&&vn("build_system_menu"),e(n==="historyDetectLanguagesEnabledList"&&typeof r=="string"?()=>({historyDetectLanguagesEnabledList:r.split(",")}):()=>({[n]:r}))}catch(o){console.error(o)}},setIsHistoryAutoUpdateOnCaputureEnabled:async n=>t().updateSetting("isHistoryAutoUpdateOnCaputureEnabled",n),setIsHistoryEnabled:async n=>t().updateSetting("isHistoryEnabled",n),setIsHistoryDetectLanguageEnabled:async n=>t().updateSetting("isHistoryDetectLanguageEnabled",n),setHistoryDetectLanguageMinLines:async n=>t().updateSetting("historyDetectLanguageMinLines",n),setHistoryExclusionList:async n=>t().updateSetting("historyExclusionList",n),setAutoMaskWordsList:async n=>t().updateSetting("autoMaskWordsList",n),setUserSelectedLanguage:async n=>t().updateSetting("userSelectedLanguage",n),setAutoClearSettingsDuration:async n=>t().updateSetting("autoClearSettingsDuration",n),setAutoClearSettingsDurationType:async n=>t().updateSetting("autoClearSettingsDurationType",n),setIsAutoMaskWordsListEnabled:async n=>t().updateSetting("isAutoMaskWordsListEnabled",n),setIsAutoCloseOnCopyPaste:async n=>t().updateSetting("isAutoCloseOnCopyPaste",n),setIsSearchNameOrLabelOnly:async n=>t().updateSetting("isSearchNameOrLabelOnly",n),setIsAutoClearSettingsEnabled:async n=>t().updateSetting("isAutoClearSettingsEnabled",n),setIsAutoPreviewLinkCardsEnabled:async n=>t().updateSetting("isAutoPreviewLinkCardsEnabled",n),setIsAutoFavoriteOnDoubleCopyEnabled:async n=>t().updateSetting("isAutoFavoriteOnDoubleCopyEnabled",n),setIsExclusionListEnabled:async n=>t().updateSetting("isExclusionListEnabled",n),setIsShowCollectionNameOnNavBar:async n=>t().updateSetting("isShowCollectionNameOnNavBar",n),setIsSkipAutoStartPrompt:async n=>t().updateSetting("isSkipAutoStartPrompt",n),setIsShowDisabledCollectionsOnNavBarMenu:async n=>t().updateSetting("isShowDisabledCollectionsOnNavBarMenu",n),setHistoryDetectLanguagesEnabledList:async n=>t().updateSetting("historyDetectLanguagesEnabledList",n.join()),setCopyPasteDelay:async n=>t().updateSetting("copyPasteDelay",n),setCopyPasteSequencePinnedDelay:async n=>t().updateSetting("copyPasteSequencePinnedDelay",n),setCopyPasteSequenceIsReversOrder:async n=>t().updateSetting("copyPasteSequenceIsReversOrder",n),setPasteSequenceEachSeparator:async n=>t().updateSetting("pasteSequenceEachSeparator",n),setIsIdleScreenAutoLockEnabled:async n=>t().updateSetting("isIdleScreenAutoLockEnabled",n),setIdleScreenAutoLockTimeInMinutes:async n=>t().updateSetting("idleScreenAutoLockTimeInMinutes",n),setIsShowHistoryCaptureOnLockedScreen:async n=>t().updateSetting("isShowHistoryCaptureOnLockedScreen",n),setScreenLockPassCode:async n=>t().updateSetting("screenLockPassCode",n||null),setScreenLockPassCodeLength:async n=>t().updateSetting("screenLockPassCodeLength",n),setScreenLockRecoveryPasswordMasked:async n=>t().updateSetting("screenLockRecoveryPasswordMasked",n),setIsAppLocked:async n=>t().updateSetting("isAppLocked",n),setIsScreenLockPassCodeRequireOnStart:async n=>t().updateSetting("isScreenLockPassCodeRequireOnStart",n),setLicenseKey:async n=>t().updateSetting("licenseKey",n),setIsFirstRunAfterUpdate:async n=>t().updateSetting("isFirstRunAfterUpdate",n),setIsFirstRun:n=>e(()=>({isFirstRun:n})),initConstants:n=>e(()=>({CONST:n})),setAppDataDir:n=>e(()=>({appDataDir:n})),setAppVersion:n=>e(()=>({appVersion:n})),initSettings:n=>{const r=Object.keys(W9).reduce((s,o)=>(typeof n[o]<"u"&&(s[o]=n[o]),s),{});e(s=>({...s,...r}))}})),Nr=gp(yp);hZ.TAURI_DEBUG&&(window.settingsStore=yp);const pZ=(e,t={enabled:!0})=>(n,r,s)=>(t.enabled,e(n,r,s));var mZ={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Xy(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var s;const o=c=>c===null?null:JSON.parse(c,t==null?void 0:t.reviver),i=(s=n.getItem(r))!=null?s:null;return i instanceof Promise?i.then(o):o(i)},setItem:(r,s)=>n.setItem(r,JSON.stringify(s,t==null?void 0:t.replacer)),removeItem:r=>n.removeItem(r)}}const O0=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return O0(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return O0(r)(n)}}}},fZ=(e,t)=>(n,r,s)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:k=>k,version:0,merge:(k,j)=>({...j,...k}),...t},i=!1;const c=new Set,u=new Set;let h;try{h=o.getStorage()}catch{}if(!h)return e((...k)=>{console.warn("[zustand persist middleware] Unable to update item '".concat(o.name,"', the given storage is currently unavailable.")),n(...k)},r,s);const p=O0(o.serialize),m=()=>{const k=o.partialize({...r()});let j;const S=p({state:k,version:o.version}).then(E=>h.setItem(o.name,E)).catch(E=>{j=E});if(j)throw j;return S},x=s.setState;s.setState=(k,j)=>{x(k,j),m()};const C=e((...k)=>{n(...k),m()},r,s);let b;const g=()=>{var k;if(!h)return;i=!1,c.forEach(S=>S(r()));const j=((k=o.onRehydrateStorage)==null?void 0:k.call(o,r()))||void 0;return O0(h.getItem.bind(h))(o.name).then(S=>{if(S)return o.deserialize(S)}).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==o.version){if(o.migrate)return o.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var E;return b=o.merge(S,(E=r())!=null?E:C),n(b,!0),m()}).then(()=>{j==null||j(b,void 0),i=!0,u.forEach(S=>S(b))}).catch(S=>{j==null||j(void 0,S)})};return s.persist={setOptions:k=>{o={...o,...k},k.getStorage&&(h=k.getStorage())},clearStorage:()=>{h==null||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:k=>(c.add(k),()=>{c.delete(k)}),onFinishHydration:k=>(u.add(k),()=>{u.delete(k)})},g(),b||C},gZ=(e,t)=>(n,r,s)=>{let o={storage:Xy(()=>localStorage),partialize:g=>g,version:0,merge:(g,k)=>({...k,...g}),...t},i=!1;const c=new Set,u=new Set;let h=o.storage;if(!h)return e((...g)=>{console.warn("[zustand persist middleware] Unable to update item '".concat(o.name,"', the given storage is currently unavailable.")),n(...g)},r,s);const p=()=>{const g=o.partialize({...r()});return h.setItem(o.name,{state:g,version:o.version})},m=s.setState;s.setState=(g,k)=>{m(g,k),p()};const x=e((...g)=>{n(...g),p()},r,s);let C;const b=()=>{var g,k;if(!h)return;i=!1,c.forEach(S=>{var E;return S((E=r())!=null?E:x)});const j=((k=o.onRehydrateStorage)==null?void 0:k.call(o,(g=r())!=null?g:x))||void 0;return O0(h.getItem.bind(h))(o.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==o.version){if(o.migrate)return o.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var E;return C=o.merge(S,(E=r())!=null?E:x),n(C,!0),p()}).then(()=>{j==null||j(C,void 0),C=r(),i=!0,u.forEach(S=>S(C))}).catch(S=>{j==null||j(void 0,S)})};return s.persist={setOptions:g=>{o={...o,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>i,onHydrate:g=>(c.add(g),()=>{c.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},o.skipHydration||b(),C||x},vZ=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((mZ?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),fZ(e,t)):gZ(e,t),oC=vZ,yZ={avatar:"",userName:"",email:"",authority:[]},xZ=vp()(oC(pZ(e=>({user:{...yZ},signedIn:!1,token:null,setUser:t=>e(n=>({...n,user:{...n.user,avatar:t.avatar,email:t.email,userName:t.userName,authority:t.authority}})),signInSuccess:t=>e(()=>({signedIn:!0,token:t})),signOutSuccess:()=>e(()=>({signedIn:!1,token:null}))}),{enabled:!0}),{name:"auth-store",storage:Xy(()=>localStorage)}));gp(xZ);const bZ=["slate","sky","stone","teal","indigo","green","yellow","blue","purple","rose","lime","emerald","amber","cyan","fuchsia","pink"],xp=["85%","90%","95%","100%","105%","110%","120%","125%"],wZ={fontSize:"100%",isWindows:!1,isSwapPanels:!1,isShowPinned:!0,isShowHistoryPinned:!0,isMacOSX:!0,isLinux:!1,isScrolling:!1,returnRoute:"/menu",setIsShowPinned:()=>{},setIsShowHistoryPinned:()=>{},setReturnRoute:()=>{},setIsSwapPanels:()=>{},setIsScrolling:()=>{},setOSType:()=>{},resetFontSize:()=>{},increaseFontSize:()=>{},setFontSize:()=>{},decreaseFontSize:()=>{},setAppDataDir:()=>{}},V9=vp()(oC((e,t)=>({...wZ,setIsShowPinned:n=>e(()=>({isShowPinned:n})),setIsShowHistoryPinned:n=>e(()=>({isShowHistoryPinned:n})),setIsSwapPanels:n=>e(()=>({isSwapPanels:n})),resetFontSize:()=>{e(()=>({fontSize:"100%"}))},setIsScrolling(n){e(()=>({isScrolling:n}))},setOSType:n=>{e(()=>({isWindows:n==="Windows_NT",isMacOSX:n==="Darwin",isLinux:n==="Linux"}))},setFontSize:n=>{e(()=>({fontSize:n}))},increaseFontSize:()=>{e(n=>{const r=xp.indexOf(n.fontSize),s=Math.min(xp.length-1,r+1);return{fontSize:xp[s]}})},decreaseFontSize:()=>{e(n=>{const r=xp.indexOf(n.fontSize),s=Math.max(0,r-1);return{fontSize:xp[s]}})},setReturnRoute:n=>{e(()=>({returnRoute:n}))}}),{name:"ui-store",storage:Xy(()=>localStorage)})),ra=gp(V9),kZ={direction:"ltr",mode:"system",systemTheme:"light",themeDark:()=>!1,setSystemTheme:()=>{},setDirection:()=>{},setMode:()=>{}},jZ=vp()(oC((e,t)=>({...kZ,themeDark:()=>{const{mode:n,systemTheme:r}=t();return n==="system"?r==="dark":n==="dark"},setSystemTheme:n=>{e({systemTheme:n})},setMode:n=>{e({mode:n})}}),{name:"theme-store",storage:Xy(()=>localStorage),partialize:e=>({mode:e.mode,direction:e.direction})})),pu=gp(jZ);var CZ=typeof global=="object"&&global&&global.Object===Object&&global,SZ=typeof self=="object"&&self&&self.Object===Object&&self,U9=CZ||SZ||Function("return this")(),ex=U9.Symbol,q9=Object.prototype,EZ=q9.hasOwnProperty,NZ=q9.toString,P0=ex?ex.toStringTag:void 0;function _Z(e){var t=EZ.call(e,P0),n=e[P0];try{e[P0]=void 0;var r=!0}catch{}var s=NZ.call(e);return r&&(t?e[P0]=n:delete e[P0]),s}var IZ=Object.prototype,TZ=IZ.toString;function MZ(e){return TZ.call(e)}var LZ="[object Null]",DZ="[object Undefined]",Y9=ex?ex.toStringTag:void 0;function OZ(e){return e==null?e===void 0?DZ:LZ:Y9&&Y9 in Object(e)?_Z(e):MZ(e)}function PZ(e){return e!=null&&typeof e=="object"}var RZ="[object Symbol]";function AZ(e){return typeof e=="symbol"||PZ(e)&&OZ(e)==RZ}var zZ=/\s/;function FZ(e){for(var t=e.length;t--&&zZ.test(e.charAt(t)););return t}var HZ=/^\s+/;function $Z(e){return e&&e.slice(0,FZ(e)+1).replace(HZ,"")}function tx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var K9=NaN,BZ=/^[-+]0x[0-9a-f]+$/i,WZ=/^0b[01]+$/i,VZ=/^0o[0-7]+$/i,UZ=parseInt;function G9(e){if(typeof e=="number")return e;if(AZ(e))return K9;if(tx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$Z(e);var n=WZ.test(e);return n||VZ.test(e)?UZ(e.slice(2),n?2:8):BZ.test(e)?K9:+e}var iC=function(){return U9.Date.now()},qZ="Expected a function",YZ=Math.max,KZ=Math.min;function mu(e,t,n){var r,s,o,i,c,u,h=0,p=!1,m=!1,x=!0;if(typeof e!="function")throw new TypeError(qZ);t=G9(t)||0,tx(n)&&(p=!!n.leading,m="maxWait"in n,o=m?YZ(G9(n.maxWait)||0,t):o,x="trailing"in n?!!n.trailing:x);function C(M){var L=r,D=s;return r=s=void 0,h=M,i=e.apply(D,L),i}function b(M){return h=M,c=setTimeout(j,t),p?C(M):i}function g(M){var L=M-u,D=M-h,P=t-L;return m?KZ(P,o-D):P}function k(M){var L=M-u,D=M-h;return u===void 0||L>=t||L<0||m&&D>=o}function j(){var M=iC();if(k(M))return S(M);c=setTimeout(j,g(M))}function S(M){return c=void 0,x&&r?C(M):(r=s=void 0,i)}function E(){c!==void 0&&clearTimeout(c),h=0,r=u=s=c=void 0}function N(){return c===void 0?i:S(iC())}function T(){var M=iC(),L=k(M);if(r=arguments,s=this,u=M,L){if(c===void 0)return b(u);if(m)return clearTimeout(c),c=setTimeout(j,t),C(u)}return c===void 0&&(c=setTimeout(j,t)),i}return T.cancel=E,T.flush=N,T}var GZ="Expected a function";function Z9(e,t,n){var r=!0,s=!0;if(typeof e!="function")throw new TypeError(GZ);return tx(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),mu(e,t,{leading:r,maxWait:t,trailing:s})}var ZZ={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Q9=vp()((e,t)=>({collections:[],tabs:[],tabsLoaded:!1,isMenuLoaded:!1,pinnedClips:[],currentCollectionId:null,currentTab:"",menuItems:[],clipItems:[],getTabLastBorderIndex:n=>{var o;const{clipItems:r}=t(),s=r.filter(i=>i.isBoard&&i.tabId===n);return((o=s.reduce((i,c)=>i.orderNumber>c.orderNumber?i:c,s[0]))==null?void 0:o.orderNumber)||0},setIsMenuLoaded:n=>{e(()=>({isMenuLoaded:n}))},getCurrentTab:()=>{var n;return t().currentTab||((n=t().tabs[0])==null?void 0:n.tabId)},setClipItemsDebounced:mu(n=>{e(()=>({pinnedClips:n.filter(r=>r.isPinned&&r.isClip).sort((r,s)=>r.pinnedOrderNumber-s.pinnedOrderNumber).map(r=>{var s,o,i;return{id:r.itemId,name:r.name,parentId:r.parentId,orderNumber:r.orderNumber,pinnedOrderNumber:r.pinnedOrderNumber,isPinned:r.isPinned,createdAt:r.createdAt,isFavorite:r.isFavorite,color:(i=(o=r.color)!=null?o:(s=n.find(c=>c.itemId===r.parentId))==null?void 0:s.color)!=null?i:"slate",borderWidth:r.borderWidth,value:r.value,tabId:r.tabId,type:"clip"}}),clipItems:n}))},300,{leading:!0}),setMenuItems:n=>{e(()=>({isMenuLoaded:!0,menuItems:n}))},setClipItems:n=>{e(()=>({pinnedClips:n.filter(r=>r.isPinned&&r.isClip).sort((r,s)=>r.pinnedOrderNumber-s.pinnedOrderNumber).map(r=>{var s,o,i;return{id:r.itemId,name:r.name,parentId:r.parentId,orderNumber:r.orderNumber,createdAt:r.createdAt,isPinned:r.isPinned,isFavorite:r.isFavorite,color:(i=(o=r.color)!=null?o:(s=n.find(c=>c.itemId===r.parentId))==null?void 0:s.color)!=null?i:"slate",borderWidth:r.borderWidth,value:r.value,tabId:r.tabId,type:"clip"}}),clipItems:n}))},isBoardHasChildren:n=>{const{clipItems:r}=t();return r.some(s=>s.parentId===n)},tabHasBoards:n=>{const{clipItems:r}=t();return r.some(s=>s.tabId===n&&s.isBoard)},setTabsByOrder:n=>{e({tabs:n.sort((r,s)=>r.tabOrderNumber-s.tabOrderNumber)})},setTabs:n=>{var h,p,m;const r=t().currentCollectionId,s=localStorage.getItem("currentTabs"),o=s!=null&&s.startsWith(r+":::")?s.split(":::")[1]:"",i=(h=n.find(x=>x.tabId===o))==null?void 0:h.tabId,c=((p=n.find(x=>x.tabId===t().currentTab))==null?void 0:p.tabId)||i||((m=n[0])==null?void 0:m.tabId),u=n.sort((x,C)=>x.tabOrderNumber-C.tabOrderNumber);e({currentTab:c,tabsLoaded:!0,tabs:u})},setCurrentTab:n=>{const r=t().currentCollectionId;r&&localStorage.setItem("currentTabs","".concat(r,":::").concat(n)),e(()=>({currentTab:n}))},getCurrentCollectionTitle:()=>{var s;const{collections:n,currentCollectionId:r}=t();return(s=n.find(o=>o.collectionId===r))==null?void 0:s.title},setCollections:n=>{const r=n.find(s=>s.isSelected);e(()=>({collections:n,currentCollectionId:(r==null?void 0:r.collectionId)||null}))}})),hr=gp(Q9);ZZ.TAURI_DEBUG&&(window.collectionsStore=Q9);var J9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){var n=1e3,r=6e4,s=36e5,o="millisecond",i="second",c="minute",u="hour",h="day",p="week",m="month",x="quarter",C="year",b="date",g="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var _=["th","st","nd","rd"],U=$%100;return"["+$+(_[(U-20)%10]||_[U]||_[0])+"]"}},E=function($,_,U){var K=String($);return!K||K.length>=_?$:""+Array(_+1-K.length).join(U)+$},N={s:E,z:function($){var _=-$.utcOffset(),U=Math.abs(_),K=Math.floor(U/60),W=U%60;return(_<=0?"+":"-")+E(K,2,"0")+":"+E(W,2,"0")},m:function $(_,U){if(_.date()<U.date())return-$(U,_);var K=12*(U.year()-_.year())+(U.month()-_.month()),W=_.clone().add(K,m),G=U-W<0,Z=_.clone().add(K+(G?-1:1),m);return+(-(K+(U-W)/(G?W-Z:Z-W))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:m,y:C,w:p,d:h,D:b,h:u,m:c,s:i,ms:o,Q:x}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},T="en",M={};M[T]=S;var L="$isDayjsObject",D=function($){return $ instanceof z||!(!$||!$[L])},P=function $(_,U,K){var W;if(!_)return T;if(typeof _=="string"){var G=_.toLowerCase();M[G]&&(W=G),U&&(M[G]=U,W=G);var Z=_.split("-");if(!W&&Z.length>1)return $(Z[0])}else{var F=_.name;M[F]=_,W=F}return!K&&W&&(T=W),W||!K&&T},A=function($,_){if(D($))return $.clone();var U=typeof _=="object"?_:{};return U.date=$,U.args=arguments,new z(U)},B=N;B.l=P,B.i=D,B.w=function($,_){return A($,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var z=function(){function $(U){this.$L=P(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[L]=!0}var _=$.prototype;return _.parse=function(U){this.$d=function(K){var W=K.date,G=K.utc;if(W===null)return new Date(NaN);if(B.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(k);if(Z){var F=Z[2]-1||0,V=(Z[7]||"0").substring(0,3);return G?new Date(Date.UTC(Z[1],F,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,V)):new Date(Z[1],F,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,V)}}return new Date(W)}(U),this.init()},_.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},_.$utils=function(){return B},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(U,K){var W=A(U);return this.startOf(K)<=W&&W<=this.endOf(K)},_.isAfter=function(U,K){return A(U)<this.startOf(K)},_.isBefore=function(U,K){return this.endOf(K)<A(U)},_.$g=function(U,K,W){return B.u(U)?this[K]:this.set(W,U)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(U,K){var W=this,G=!!B.u(K)||K,Z=B.p(U),F=function(oe,ie){var de=B.w(W.$u?Date.UTC(W.$y,ie,oe):new Date(W.$y,ie,oe),W);return G?de:de.endOf(h)},V=function(oe,ie){return B.w(W.toDate()[oe].apply(W.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ie)),W)},q=this.$W,ne=this.$M,Q=this.$D,ae="set"+(this.$u?"UTC":"");switch(Z){case C:return G?F(1,0):F(31,11);case m:return G?F(1,ne):F(0,ne+1);case p:var re=this.$locale().weekStart||0,le=(q<re?q+7:q)-re;return F(G?Q-le:Q+(6-le),ne);case h:case b:return V(ae+"Hours",0);case u:return V(ae+"Minutes",1);case c:return V(ae+"Seconds",2);case i:return V(ae+"Milliseconds",3);default:return this.clone()}},_.endOf=function(U){return this.startOf(U,!1)},_.$set=function(U,K){var W,G=B.p(U),Z="set"+(this.$u?"UTC":""),F=(W={},W[h]=Z+"Date",W[b]=Z+"Date",W[m]=Z+"Month",W[C]=Z+"FullYear",W[u]=Z+"Hours",W[c]=Z+"Minutes",W[i]=Z+"Seconds",W[o]=Z+"Milliseconds",W)[G],V=G===h?this.$D+(K-this.$W):K;if(G===m||G===C){var q=this.clone().set(b,1);q.$d[F](V),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else F&&this.$d[F](V);return this.init(),this},_.set=function(U,K){return this.clone().$set(U,K)},_.get=function(U){return this[B.p(U)]()},_.add=function(U,K){var W,G=this;U=Number(U);var Z=B.p(K),F=function(ne){var Q=A(G);return B.w(Q.date(Q.date()+Math.round(ne*U)),G)};if(Z===m)return this.set(m,this.$M+U);if(Z===C)return this.set(C,this.$y+U);if(Z===h)return F(1);if(Z===p)return F(7);var V=(W={},W[c]=r,W[u]=s,W[i]=n,W)[Z]||1,q=this.$d.getTime()+U*V;return B.w(q,this)},_.subtract=function(U,K){return this.add(-1*U,K)},_.format=function(U){var K=this,W=this.$locale();if(!this.isValid())return W.invalidDate||g;var G=U||"YYYY-MM-DDTHH:mm:ssZ",Z=B.z(this),F=this.$H,V=this.$m,q=this.$M,ne=W.weekdays,Q=W.months,ae=W.meridiem,re=function(ie,de,xe,je){return ie&&(ie[de]||ie(K,G))||xe[de].slice(0,je)},le=function(ie){return B.s(F%12||12,ie,"0")},oe=ae||function(ie,de,xe){var je=ie<12?"AM":"PM";return xe?je.toLowerCase():je};return G.replace(j,function(ie,de){return de||function(xe){switch(xe){case"YY":return String(K.$y).slice(-2);case"YYYY":return B.s(K.$y,4,"0");case"M":return q+1;case"MM":return B.s(q+1,2,"0");case"MMM":return re(W.monthsShort,q,Q,3);case"MMMM":return re(Q,q);case"D":return K.$D;case"DD":return B.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return re(W.weekdaysMin,K.$W,ne,2);case"ddd":return re(W.weekdaysShort,K.$W,ne,3);case"dddd":return ne[K.$W];case"H":return String(F);case"HH":return B.s(F,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return oe(F,V,!0);case"A":return oe(F,V,!1);case"m":return String(V);case"mm":return B.s(V,2,"0");case"s":return String(K.$s);case"ss":return B.s(K.$s,2,"0");case"SSS":return B.s(K.$ms,3,"0");case"Z":return Z}return null}(ie)||Z.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(U,K,W){var G,Z=this,F=B.p(K),V=A(U),q=(V.utcOffset()-this.utcOffset())*r,ne=this-V,Q=function(){return B.m(Z,V)};switch(F){case C:G=Q()/12;break;case m:G=Q();break;case x:G=Q()/3;break;case p:G=(ne-q)/6048e5;break;case h:G=(ne-q)/864e5;break;case u:G=ne/s;break;case c:G=ne/r;break;case i:G=ne/n;break;default:G=ne}return W?G:B.a(G)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return M[this.$L]},_.locale=function(U,K){if(!U)return this.$L;var W=this.clone(),G=P(U,K,!0);return G&&(W.$L=G),W},_.clone=function(){return B.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},$}(),R=z.prototype;return A.prototype=R,[["$ms",o],["$s",i],["$m",c],["$H",u],["$W",h],["$M",m],["$y",C],["$D",b]].forEach(function($){R[$[1]]=function(_){return this.$g(_,$[0],$[1])}}),A.extend=function($,_){return $.$i||($(_,z,A),$.$i=!0),A},A.locale=P,A.isDayjs=D,A.unix=function($){return A(1e3*$)},A.en=M[T],A.Ls=M,A.p={},A})})(J9);var QZ=J9.exports;const Vi=_o(QZ);var X9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){return function(n,r,s){var o=r.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},c=function(m,x,C,b,g){var k=m.name?m:m.$locale(),j=i(k[x]),S=i(k[C]),E=j||S.map(function(T){return T.slice(0,b)});if(!g)return E;var N=k.weekStart;return E.map(function(T,M){return E[(M+(N||0))%7]})},u=function(){return s.Ls[s.locale()]},h=function(m,x){return m.formats[x]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,g,k){return g||k.slice(1)})}(m.formats[x.toUpperCase()])},p=function(){var m=this;return{months:function(x){return x?x.format("MMMM"):c(m,"months")},monthsShort:function(x){return x?x.format("MMM"):c(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):c(m,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):c(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):c(m,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return h(m.$locale(),x)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return p.bind(this)()},s.localeData=function(){var m=u();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return s.weekdays()},weekdaysShort:function(){return s.weekdaysShort()},weekdaysMin:function(){return s.weekdaysMin()},months:function(){return s.months()},monthsShort:function(){return s.monthsShort()},longDateFormat:function(x){return h(m,x)},meridiem:m.meridiem,ordinal:m.ordinal}},s.months=function(){return c(u(),"months")},s.monthsShort=function(){return c(u(),"monthsShort","months",3)},s.weekdays=function(m){return c(u(),"weekdays",null,null,m)},s.weekdaysShort=function(m){return c(u(),"weekdaysShort","weekdays",3,m)},s.weekdaysMin=function(m){return c(u(),"weekdaysMin","weekdays",2,m)}}})})(X9);var JZ=X9.exports;const XZ=_o(JZ),eQ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class nx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||eQ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}create(t){return new nx(this.logger,{prefix:"".concat(this.prefix,":").concat(t,":"),...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new nx(this.logger,t)}}var Ui=new nx;class rx{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[i,c]=o;for(let u=0;u<c;u++)i(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[i,c]=o;for(let u=0;u<c;u++)i.apply(i,[t,...r])})}}function R0(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function eT(e){return e==null?"":""+e}function tQ(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const nQ=/###/g;function A0(e,t,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(nQ,"."):c}function s(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let i=0;for(;i<o.length-1;){if(s())return{};const c=r(o[i]);!e[c]&&n&&(e[c]=new n),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++i}return s()?{}:{obj:e,k:r(o[i])}}function tT(e,t,n){const{obj:r,k:s}=A0(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),c=A0(e,i,Object);for(;c.obj===void 0&&i.length;)o="".concat(i[i.length-1],".").concat(o),i=i.slice(0,i.length-1),c=A0(e,i,Object),c&&c.obj&&typeof c.obj["".concat(c.k,".").concat(o)]<"u"&&(c.obj=void 0);c.obj["".concat(c.k,".").concat(o)]=n}function rQ(e,t,n,r){const{obj:s,k:o}=A0(e,t,Object);s[o]=s[o]||[],r&&(s[o]=s[o].concat(n)),r||s[o].push(n)}function ax(e,t){const{obj:n,k:r}=A0(e,t);if(n)return n[r]}function aQ(e,t,n){const r=ax(e,n);return r!==void 0?r:ax(t,n)}function nT(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):nT(e[r],t[r],n):e[r]=t[r]);return e}function bp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var sQ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function oQ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>sQ[t]):e}class iQ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const lQ=[" ",",","?","!",";"],cQ=new iQ(20);function dQ(e,t,n){t=t||"",n=n||"";const r=lQ.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=cQ.getRegExp("(".concat(r.map(i=>i==="?"?"\\?":i).join("|"),")"));let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o}function lC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,c="";for(let u=o;u<r.length;++u)if(u!==o&&(c+=n),c+=r[u],i=s[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<r.length-1)continue;o+=u-o+1;break}s=i}return s}function sx(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class rT extends rx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):typeof r=="string"&&o?c.push(...r.split(o)):c.push(r)));const u=ax(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!i||typeof r!="string"?u:lC(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),s=n,n=c[1]),this.addNamespaces(n),tT(this.data,c,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),s=r,r=n,n=c[1]),this.addNamespaces(n);let u=ax(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?nT(u,r,o):u={...u,...r},tT(this.data,c,u),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var aT={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const sT={};class ox extends rx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tQ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ui.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!dQ(t,r,s);if(i&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:o};const h=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(h[0])>-1)&&(o=h.shift()),t=h.join(s)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),u=c[c.length-1],h=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(p){const E=n.nsSeparator||this.options.nsSeparator;return s?{res:"".concat(u).concat(E).concat(i),usedKey:i,exactUsedKey:i,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:"".concat(u).concat(E).concat(i)}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(t,n);let x=m&&m.res;const C=m&&m.usedKey||i,b=m&&m.exactUsedKey||i,g=Object.prototype.toString.apply(x),k=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&x&&typeof x!="string"&&typeof x!="boolean"&&typeof x!="number"&&k.indexOf(g)<0&&!(typeof j=="string"&&g==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,x,{...n,ns:c}):"key '".concat(i," (").concat(this.language,")' returned an object instead of string.");return s?(m.res=E,m.usedParams=this.getUsedParamsDetails(n),m):E}if(o){const E=g==="[object Array]",N=E?[]:{},T=E?b:C;for(const M in x)if(Object.prototype.hasOwnProperty.call(x,M)){const L="".concat(T).concat(o).concat(M);N[M]=this.translate(L,{...n,joinArrays:!1,ns:c}),N[M]===L&&(N[M]=x[M])}x=N}}else if(S&&typeof j=="string"&&g==="[object Array]")x=x.join(j),x&&(x=this.extendTranslation(x,t,n,r));else{let E=!1,N=!1;const T=n.count!==void 0&&typeof n.count!="string",M=ox.hasDefaultValue(n),L=T?this.pluralResolver.getSuffix(h,n.count,n):"",D=n.ordinal&&T?this.pluralResolver.getSuffix(h,n.count,{ordinal:!1}):"",P=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),A=P&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]||n["defaultValue".concat(L)]||n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(x)&&M&&(E=!0,x=A),this.isValidLookup(x)||(N=!0,x=i);const B=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:x,z=M&&A!==x&&this.options.updateMissing;if(N||E||z){if(this.logger.log(z?"updateKey":"missingKey",h,u,i,z?A:x),o){const U=this.resolve(i,{...n,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let R=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let U=0;U<$.length;U++)R.push($[U]);else this.options.saveMissingTo==="all"?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);const _=(U,K,W)=>{const G=M&&W!==x?W:B;this.options.missingKeyHandler?this.options.missingKeyHandler(U,u,K,G,z,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,u,K,G,z,n),this.emit("missingKey",U,u,K,x)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?R.forEach(U=>{const K=this.pluralResolver.getSuffixes(U,n);P&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]&&K.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&K.push("".concat(this.options.pluralSeparator,"zero")),K.forEach(W=>{_([U],i+W,n["defaultValue".concat(W)]||A)})}):_(R,i,A))}x=this.extendTranslation(x,t,n,m,r),N&&x===i&&this.options.appendNamespaceToMissingKey&&(x="".concat(u,":").concat(i)),(N||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?x=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(i):i,E?x:void 0):x=this.options.parseMissingKeyHandler(x))}return s?(m.res=x,m.usedParams=this.getUsedParamsDetails(n),m):x}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const h=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(h){const x=t.match(this.interpolator.nestingRegexp);p=x&&x.length}let m=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language,r),h){const x=t.match(this.interpolator.nestingRegexp),C=x&&x.length;p<C&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var x=arguments.length,C=new Array(x),b=0;b<x;b++)C[b]=arguments[b];return o&&o[0]===C[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(C[0]," in key: ").concat(n[0])),null):i.translate(...C,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=typeof c=="string"?[c]:c;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=aT.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,c;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(u,n),p=h.key;s=p;let m=h.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const x=n.count!==void 0&&typeof n.count!="string",C=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(k=>{this.isValidLookup(r)||(c=k,!sT["".concat(g[0],"-").concat(k)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(sT["".concat(g[0],"-").concat(k)]=!0,this.logger.warn('key "'.concat(s,'" for languages "').concat(g.join(", "),'" won\'t get resolved as namespace "').concat(c,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(j=>{if(this.isValidLookup(r))return;i=j;const S=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,p,j,k,n);else{let N;x&&(N=this.pluralResolver.getSuffix(j,n.count,n));const T="".concat(this.options.pluralSeparator,"zero"),M="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(x&&(S.push(p+N),n.ordinal&&N.indexOf(M)===0&&S.push(p+N.replace(M,this.options.pluralSeparator)),C&&S.push(p+T)),b){const L="".concat(p).concat(this.options.contextSeparator).concat(n.context);S.push(L),x&&(S.push(L+N),n.ordinal&&N.indexOf(M)===0&&S.push(L+N.replace(M,this.options.pluralSeparator)),C&&S.push(L+T))}}let E;for(;E=S.pop();)this.isValidLookup(r)||(o=E,r=this.getResource(j,k,E,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function cC(e){return e.charAt(0).toUpperCase()+e.slice(1)}class oT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ui.create("languageUtils")}getScriptPartFromCode(t){if(t=sx(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=sx(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cC(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=cC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s||!(o.indexOf("-")<0&&s.indexOf("-")<0)&&o.indexOf(s)===0)return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(i)))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let uQ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],hQ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const pQ=["v1","v2","v3"],mQ=["v4"],iT={zero:0,one:1,two:2,few:3,many:4,other:5};function fQ(){const e={};return uQ.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:hQ[t.fc]}})}),e}class gQ{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ui.create("pluralResolver"),(!this.options.compatibilityJSON||mQ.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=fQ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(sx(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>"".concat(n).concat(s))}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>iT[s]-iT[o]).map(s=>"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(s)):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.ordinal?"ordinal".concat(this.options.prepend):"").concat(s.select(n)):this.getSuffixRetroCompatible(s,n):(this.logger.warn("no plural rule found for: ".concat(t)),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!pQ.includes(this.options.compatibilityJSON)}}function lT(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=aQ(e,t,n);return!o&&s&&typeof n=="string"&&(o=lC(e,n,r),o===void 0&&(o=lC(t,n,r))),o}class vQ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ui.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:oQ,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?bp(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?bp(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?bp(n.nestingPrefix):n.nestingPrefixEscaped||bp("$t("),this.nestingSuffix=n.nestingSuffix?bp(n.nestingSuffix):n.nestingSuffixEscaped||bp(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=t(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=t(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(t,n,r,s){let o,i,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function h(C){return C.replace(/\$/g,"$$$$")}const p=C=>{if(C.indexOf(this.formatSeparator)<0){const j=lT(n,u,C,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,r,{...s,...n,interpolationkey:C}):j}const b=C.split(this.formatSeparator),g=b.shift().trim(),k=b.join(this.formatSeparator).trim();return this.format(lT(n,u,g,this.options.keySeparator,this.options.ignoreJSONStructure),k,r,{...s,...n,interpolationkey:g})};this.resetRegExp();const m=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,x=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:C=>h(C)},{regex:this.regexp,safeValue:C=>this.escapeValue?h(this.escape(C)):h(C)}].forEach(C=>{for(c=0;o=C.regex.exec(t);){const b=o[1].trim();if(i=p(b),i===void 0)if(typeof m=="function"){const k=m(t,o,s);i=typeof k=="string"?k:""}else if(s&&Object.prototype.hasOwnProperty.call(s,b))i="";else if(x){i=o[0];continue}else this.logger.warn("missed to pass in variable ".concat(b," for interpolating ").concat(t)),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=eT(i));const g=C.safeValue(i);if(t=t.replace(o[0],g),x?(C.regex.lastIndex+=i.length,C.regex.lastIndex-=o[0].length):C.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;function c(u,h){const p=this.nestingOptionsSeparator;if(u.indexOf(p)<0)return u;const m=u.split(new RegExp("".concat(p,"[ ]*{")));let x="{".concat(m[1]);u=m[0],x=this.interpolate(x,i);const C=x.match(/'/g),b=x.match(/"/g);(C&&C.length%2===0&&!b||b.length%2!==0)&&(x=x.replace(/'/g,'"'));try{i=JSON.parse(x),h&&(i={...h,...i})}catch(g){return this.logger.warn("failed parsing options string in nesting for key ".concat(u),g),"".concat(u).concat(p).concat(x)}return delete i.defaultValue,u}for(;s=this.nestingRegexp.exec(t);){let u=[];i={...r},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let h=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const p=s[1].split(this.formatSeparator).map(m=>m.trim());s[1]=p.shift(),u=p,h=!0}if(o=n(c.call(this,s[1].trim(),i),i),o&&s[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=eT(o)),o||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),o=""),h&&(o=u.reduce((p,m)=>this.format(p,m,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}function yQ(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[i,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=u),u==="false"&&(n[i.trim()]=!1),u==="true"&&(n[i.trim()]=!0),isNaN(u)||(n[i.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function wp(e){const t={};return function(n,r,s){const o=r+JSON.stringify(s);let i=t[o];return i||(i=e(sx(r),s),t[o]=i),i(n)}}class xQ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ui.create("formatter"),this.options=t,this.formats={number:wp((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return o=>s.format(o)}),currency:wp((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>s.format(o)}),datetime:wp((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return o=>s.format(o)}),relativetime:wp((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return o=>s.format(o,r.range||"day")}),list:wp((n,r)=>{const s=new Intl.ListFormat(n,{...r});return o=>s.format(o)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=wp(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((o,i)=>{const{formatName:c,formatOptions:u}=yQ(i);if(this.formats[c]){let h=o;try{const p=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=p.locale||p.lng||s.locale||s.lng||r;h=this.formats[c](o,m,{...u,...s,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn("there was no format function for ".concat(c));return o},t)}}function bQ(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class wQ extends rx{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Ui.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},c={},u={};return t.forEach(h=>{let p=!0;n.forEach(m=>{const x="".concat(h,"|").concat(m);!r.reload&&this.store.hasResourceBundle(h,m)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?i[x]===void 0&&(i[x]=!0):(this.state[x]=1,p=!1,i[x]===void 0&&(i[x]=!0),o[x]===void 0&&(o[x]=!0),u[m]===void 0&&(u[m]=!0)))}),p||(c[h]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const c={};this.queue.forEach(u=>{rQ(u.loaded,[o],i),bQ(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(h=>{c[h]||(c[h]={});const p=u.loaded[h];p.length&&p.forEach(m=>{c[h][m]===void 0&&(c[h][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const c=(h,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(h&&p&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(h,p)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const h=u(t,n);h&&typeof h.then=="function"?h.then(p=>c(null,p)).catch(c):c(null,h)}catch(h){c(h)}return}return u(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(s," failed"),i),!i&&c&&this.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(s),c),this.loaded(t,i,c)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let p;h.length===5?p=h(t,n,r,s,u):p=h(t,n,r,s),p&&typeof p.then=="function"?p.then(m=>c(null,m)).catch(c):c(null,p)}catch(p){c(p)}else h(t,n,r,s,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function cT(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function dT(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ix(){}function kQ(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})}class z0 extends rx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=dT(t),this.services={},this.logger=Ui,this.modules={external:[]},kQ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=cT();this.options={...s,...this.options,...dT(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?Ui.init(o(this.modules.logger),this.options):Ui.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=xQ);const h=new oT(this.options);this.store=new rT(this.options.resources,this.options);const p=this.services;p.logger=Ui,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new gQ(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(p.formatter=o(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new vQ(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new wQ(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(m){for(var x=arguments.length,C=new Array(x>1?x-1:0),b=1;b<x;b++)C[b-1]=arguments[b];t.emit(m,...C)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new ox(this.services,this.options),this.translator.on("*",function(m){for(var x=arguments.length,C=new Array(x>1?x-1:0),b=1;b<x;b++)C[b-1]=arguments[b];t.emit(m,...C)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ix),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const i=R0(),c=()=>{const u=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),i}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ix;const r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],o=i=>{!i||i==="cimode"||this.services.languageUtils.toResolveHierarchy(i).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(i=>o(i)),this.options.preload&&this.options.preload.forEach(i=>o(i)),this.services.backendConnector.load(s,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(i)})}else n(null)}reloadResources(t,n,r){const s=R0();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ix),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&aT.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=R0();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,h)=>{h?(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const h=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(h)),this.loadResources(h,p=>{i(p,h)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),s}getFixedT(t,n,r){var s=this;const o=function(i,c){let u;if(typeof c!="object"){for(var h=arguments.length,p=new Array(h>2?h-2:0),m=2;m<h;m++)p[m-2]=arguments[m];u=s.options.overloadTranslationOptionHandler([i,c].concat(p))}else u={...c};u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix=u.keyPrefix||r||o.keyPrefix;const x=s.options.keySeparator||".";let C;return u.keyPrefix&&Array.isArray(i)?C=i.map(b=>"".concat(u.keyPrefix).concat(x).concat(b)):C=u.keyPrefix?"".concat(u.keyPrefix).concat(x).concat(i):i,s.t(C,u)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,u)=>{const h=this.services.backendConnector.state["".concat(c,"|").concat(u)];return h===-1||h===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=R0();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=R0();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0);return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new oT(cT());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new z0(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ix;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new z0(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(i=>{o[i]=this[i]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new rT(this.store.data,s),o.services.resourceStore=o.store),o.translator=new ox(o.services,s),o.translator.on("*",function(i){for(var c=arguments.length,u=new Array(c>1?c-1:0),h=1;h<c;h++)u[h-1]=arguments[h];o.emit(i,...u)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const sr=z0.createInstance();sr.createInstance=z0.createInstance,sr.createInstance,sr.dir,sr.init,sr.loadResources,sr.reloadResources,sr.use,sr.changeLanguage,sr.getFixedT,sr.t,sr.exists,sr.setDefaultNamespace,sr.hasLoadedNamespace,sr.loadNamespaces,sr.loadLanguages;function jQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function CQ(e,t){if(fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SQ(e){var t=CQ(e,"string");return fu(t)=="symbol"?t:String(t)}function uT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SQ(r.key),r)}}function EQ(e,t,n){return t&&uT(e.prototype,t),n&&uT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var hT=[],NQ=hT.forEach,_Q=hT.slice;function IQ(e){return NQ.call(_Q.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var pT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,TQ=function(e,t,n){var r=n||{};r.path=r.path||"/";var s=encodeURIComponent(t),o="".concat(e,"=").concat(s);if(r.maxAge>0){var i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(i))}if(r.domain){if(!pT.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!pT.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},mT={create:function(e,t,n,r){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+n*60*1e3)),r&&(s.domain=r),document.cookie=TQ(e,encodeURIComponent(t),s)},read:function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var s=n[r];s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},remove:function(e){this.create(e,"",-1)}},MQ={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document<"u"){var n=mT.read(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document<"u"&&mT.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},LQ={name:"querystring",lookup:function(e){var t;if(typeof window<"u"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1),s=r.split("&"),o=0;o<s.length;o++){var i=s[o].indexOf("=");if(i>0){var c=s[o].substring(0,i);c===e.lookupQuerystring&&(t=s[o].substring(i+1))}}}return t}},F0=null,fT=function(){if(F0!==null)return F0;try{F0=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{F0=!1}return F0},DQ={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&fT()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&fT()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},H0=null,gT=function(){if(H0!==null)return H0;try{H0=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{H0=!1}return H0},OQ={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&gT()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&gT()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},PQ={name:"navigator",lookup:function(e){var t=[];if(typeof navigator<"u"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},RQ={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(t=n.getAttribute("lang")),t}},AQ={name:"path",lookup:function(e){var t;if(typeof window<"u"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof n[e.lookupFromPathIndex]!="string")return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},zQ={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,n=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};function FQ(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var vT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};jQ(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return EQ(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=IQ(n,this.options||{},FQ()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(MQ),this.addDetector(LQ),this.addDetector(DQ),this.addDetector(OQ),this.addDetector(PQ),this.addDetector(RQ),this.addDetector(AQ),this.addDetector(zQ)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var n=this;t||(t=this.options.order);var r=[];return t.forEach(function(s){if(n.detectors[s]){var o=n.detectors[s].lookup(n.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(function(s){return n.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,n){var r=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(function(s){r.detectors[s]&&r.detectors[s].cacheUserLanguage(t,r.options)}))}}]),e}();vT.type="languageDetector";var yT="en",dC={},uC={};function xT(){return yT}function HQ(e){yT=e}function $Q(e){return dC[e]}function BQ(e){if(!e)throw new Error("No locale data passed");dC[e.locale]=e,uC[e.locale.toLowerCase()]=e.locale}function bT(e){if(dC[e])return e;if(uC[e.toLowerCase()])return uC[e.toLowerCase()]}function wT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return kT(e);case"best fit":return kT(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function kT(e){var t=bT(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=bT(e);if(r)return r}}var Ne={af:function(e){return e==1?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-2);return e==0?"zero":e==1?"one":e==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ast:function(e){var t=String(e).split("."),n=!t[1];return e==1&&n?"one":"other"},be:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),s=n&&t[0].slice(-2);return r==1&&s!=11?"one":r>=2&&r<=4&&(s<12||s>14)?"few":n&&r==0||r>=5&&r<=9||s>=11&&s<=14?"many":"other"},br:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),s=n&&t[0].slice(-2),o=n&&t[0].slice(-6);return r==1&&s!=11&&s!=71&&s!=91?"one":r==2&&s!=12&&s!=72&&s!=92?"two":(r==3||r==4||r==9)&&(s<10||s>19)&&(s<70||s>79)&&(s<90||s>99)?"few":e!=0&&n&&o==0?"many":"other"},bs:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",s=!t[1],o=n.slice(-1),i=n.slice(-2),c=r.slice(-1),u=r.slice(-2);return s&&o==1&&i!=11||c==1&&u!=11?"one":s&&o>=2&&o<=4&&(i<12||i>14)||c>=2&&c<=4&&(u<12||u>14)?"few":"other"},ca:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-6);return e==1&&r?"one":n!=0&&s==0&&r?"many":"other"},ceb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",s=!t[1],o=n.slice(-1),i=r.slice(-1);return s&&(n==1||n==2||n==3)||s&&o!=4&&o!=6&&o!=9||!s&&i!=4&&i!=6&&i!=9?"one":"other"},cs:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return e==1&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},cy:function(e){return e==0?"zero":e==1?"one":e==2?"two":e==3?"few":e==6?"many":"other"},da:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e;return e==1||!r&&(n==0||n==1)?"one":"other"},dsb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",s=!t[1],o=n.slice(-2),i=r.slice(-2);return s&&o==1||i==1?"one":s&&o==2||i==2?"two":s&&(o==3||o==4)||i==3||i==4?"few":"other"},dz:function(e){return"other"},es:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-6);return e==1?"one":n!=0&&s==0&&r?"many":"other"},ff:function(e){return e>=0&&e<2?"one":"other"},fr:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-6);return e>=0&&e<2?"one":n!=0&&s==0&&r?"many":"other"},ga:function(e){var t=String(e).split("."),n=Number(t[0])==e;return e==1?"one":e==2?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e){var t=String(e).split("."),n=Number(t[0])==e;return e==1||e==11?"one":e==2||e==12?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},he:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return n==1&&r||n==0&&!r?"one":n==2&&r?"two":"other"},is:function(e){var t=String(e).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),s=Number(t[0])==e,o=n.slice(-1),i=n.slice(-2);return s&&o==1&&i!=11||r%10==1&&r%100!=11?"one":"other"},ksh:function(e){return e==0?"zero":e==1?"one":"other"},lt:function(e){var t=String(e).split("."),n=t[1]||"",r=Number(t[0])==e,s=r&&t[0].slice(-1),o=r&&t[0].slice(-2);return s==1&&(o<11||o>19)?"one":s>=2&&s<=9&&(o<11||o>19)?"few":n!=0?"many":"other"},lv:function(e){var t=String(e).split("."),n=t[1]||"",r=n.length,s=Number(t[0])==e,o=s&&t[0].slice(-1),i=s&&t[0].slice(-2),c=n.slice(-2),u=n.slice(-1);return s&&o==0||i>=11&&i<=19||r==2&&c>=11&&c<=19?"zero":o==1&&i!=11||r==2&&u==1&&c!=11||r!=2&&u==1?"one":"other"},mk:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",s=!t[1],o=n.slice(-1),i=n.slice(-2),c=r.slice(-1),u=r.slice(-2);return s&&o==1&&i!=11||c==1&&u!=11?"one":"other"},mt:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-2);return e==1?"one":e==2?"two":e==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pa:function(e){return e==0||e==1?"one":"other"},pl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-1),o=n.slice(-2);return e==1&&r?"one":r&&s>=2&&s<=4&&(o<12||o>14)?"few":r&&n!=1&&(s==0||s==1)||r&&s>=5&&s<=9||r&&o>=12&&o<=14?"many":"other"},pt:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-6);return n==0||n==1?"one":n!=0&&s==0&&r?"many":"other"},ro:function(e){var t=String(e).split("."),n=!t[1],r=Number(t[0])==e,s=r&&t[0].slice(-2);return e==1&&n?"one":!n||e==0||e!=1&&s>=1&&s<=19?"few":"other"},ru:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-1),o=n.slice(-2);return r&&s==1&&o!=11?"one":r&&s>=2&&s<=4&&(o<12||o>14)?"few":r&&s==0||r&&s>=5&&s<=9||r&&o>=11&&o<=14?"many":"other"},se:function(e){return e==1?"one":e==2?"two":"other"},si:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"";return e==0||e==1||n==0&&r==1?"one":"other"},sl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],s=n.slice(-2);return r&&s==1?"one":r&&s==2?"two":r&&(s==3||s==4)||!r?"few":"other"}};Ne.as=Ne.am,Ne.az=Ne.af,Ne.bg=Ne.af,Ne.bn=Ne.am,Ne.brx=Ne.af,Ne.ce=Ne.af,Ne.chr=Ne.af,Ne.de=Ne.ast,Ne.ee=Ne.af,Ne.el=Ne.af,Ne.en=Ne.ast,Ne.et=Ne.ast,Ne.eu=Ne.af,Ne.fa=Ne.am,Ne.fi=Ne.ast,Ne.fil=Ne.ceb,Ne.fo=Ne.af,Ne.fur=Ne.af,Ne.fy=Ne.ast,Ne.gl=Ne.ast,Ne.gu=Ne.am,Ne.ha=Ne.af,Ne.hi=Ne.am,Ne.hr=Ne.bs,Ne.hsb=Ne.dsb,Ne.hu=Ne.af,Ne.hy=Ne.ff,Ne.ia=Ne.ast,Ne.id=Ne.dz,Ne.ig=Ne.dz,Ne.it=Ne.ca,Ne.ja=Ne.dz,Ne.jgo=Ne.af,Ne.jv=Ne.dz,Ne.ka=Ne.af,Ne.kea=Ne.dz,Ne.kk=Ne.af,Ne.kl=Ne.af,Ne.km=Ne.dz,Ne.kn=Ne.am,Ne.ko=Ne.dz,Ne.ks=Ne.af,Ne.ku=Ne.af,Ne.ky=Ne.af,Ne.lb=Ne.af,Ne.lkt=Ne.dz,Ne.lo=Ne.dz,Ne.ml=Ne.af,Ne.mn=Ne.af,Ne.mr=Ne.af,Ne.ms=Ne.dz,Ne.my=Ne.dz,Ne.nb=Ne.af,Ne.ne=Ne.af,Ne.nl=Ne.ast,Ne.nn=Ne.af,Ne.no=Ne.af,Ne.or=Ne.af,Ne.pcm=Ne.am,Ne.ps=Ne.af,Ne.rm=Ne.af,Ne.sah=Ne.dz,Ne.sc=Ne.ast,Ne.sd=Ne.af,Ne.sk=Ne.cs,Ne.so=Ne.af,Ne.sq=Ne.af,Ne.sr=Ne.bs,Ne.su=Ne.dz,Ne.sv=Ne.ast,Ne.sw=Ne.ast,Ne.ta=Ne.af,Ne.te=Ne.af,Ne.th=Ne.dz,Ne.ti=Ne.pa,Ne.tk=Ne.af,Ne.to=Ne.dz,Ne.tr=Ne.af,Ne.ug=Ne.af,Ne.uk=Ne.ru,Ne.ur=Ne.ast,Ne.uz=Ne.af,Ne.vi=Ne.dz,Ne.wae=Ne.af,Ne.wo=Ne.dz,Ne.xh=Ne.af,Ne.yi=Ne.ast,Ne.yo=Ne.dz,Ne.yue=Ne.dz,Ne.zh=Ne.dz,Ne.zu=Ne.am;const jT=Ne;function CT(e){return e==="pt-PT"?e:VQ(e)}var WQ=/^([a-z0-9]+)/i;function VQ(e){var t=e.match(WQ);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function UQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ST(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qQ(e,t,n){return t&&ST(e.prototype,t),n&&ST(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var hC=function(){function e(t,n){UQ(this,e);var r=e.supportedLocalesOf(t);if(r.length===0)throw new RangeError("Unsupported locale: "+t);if(n&&n.type!=="cardinal")throw new RangeError('Only "cardinal" "type" is supported');this.$=jT[CT(r[0])]}return qQ(e,[{key:"select",value:function(t){return this.$(t)}}],[{key:"supportedLocalesOf",value:function(t){return typeof t=="string"&&(t=[t]),t.filter(function(n){return jT[CT(n)]})}}]),e}();function pC(e){"@babel/helpers - typeof";return pC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pC(e)}function ET(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function NT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ET(Object(n),!0).forEach(function(r){YQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ET(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _T(e,t){return QQ(e)||ZQ(e,t)||GQ(e,t)||KQ()}function KQ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function GQ(e,t){if(e){if(typeof e=="string")return IT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IT(e,t)}}function IT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,o=!1,i,c;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));s=!0);}catch(u){o=!0,c=u}finally{try{!s&&n.return!=null&&n.return()}finally{if(o)throw c}}return r}}function QQ(e){if(Array.isArray(e))return e}function JQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XQ(e,t,n){return t&&TT(e.prototype,t),n&&TT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var eJ=["second","minute","hour","day","week","month","quarter","year"],tJ=["auto","always"],nJ=["long","short","narrow"],rJ=["lookup","best fit"],Fc=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};JQ(this,e);var r=n.numeric,s=n.style,o=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(tJ.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(s!==void 0){if(nJ.indexOf(s)<0)throw new RangeError('Invalid "style" option: '.concat(s));this.style=s}if(o!==void 0){if(rJ.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if(typeof t=="string"&&(t=[t]),t.push(xT()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");hC.supportedLocalesOf(this.locale).length>0?this.pluralRules=new hC(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=wT(this.locale,{localeMatcher:this.localeMatcher})}return XQ(e,[{key:"format",value:function(){var t=MT(arguments),n=_T(t,2),r=n[0],s=n[1];return this.getRule(r,s).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"formatToParts",value:function(){var t=MT(arguments),n=_T(t,2),r=n[0],s=n[1],o=this.getRule(r,s),i=o.indexOf("{0}");if(i<0)return[{type:"literal",value:o}];var c=[];return i>0&&c.push({type:"literal",value:o.slice(0,i)}),c=c.concat(this.formatNumberToParts(Math.abs(r)).map(function(u){return NT(NT({},u),{},{unit:s})})),i+3<o.length-1&&c.push({type:"literal",value:o.slice(i+3)}),c}},{key:"getRule",value:function(t,n){var r=$Q(this.locale)[this.style][n];if(typeof r=="string")return r;if(this.numeric==="auto"){if(t===-2||t===-1){var s=r["previous".concat(t===-1?"":"-"+Math.abs(t))];if(s)return s}else if(t===1||t===2){var o=r["next".concat(t===1?"":"-"+Math.abs(t))];if(o)return o}else if(t===0&&r.current)return r.current}var i=r[lJ(t)?"past":"future"];if(typeof i=="string")return i;var c=this.pluralRules&&this.pluralRules.select(Math.abs(t))||"other";return i[c]||i.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"formatNumberToParts",value:function(t){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(t):[{type:"integer",value:this.formatNumber(t)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}]),e}();Fc.supportedLocalesOf=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return wT(n,t)})},Fc.addLocale=BQ,Fc.setDefaultLocale=HQ,Fc.getDefaultLocale=xT,Fc.PluralRules=hC;var mC='Invalid "unit" argument';function aJ(e){if(pC(e)==="symbol")throw new TypeError(mC);if(typeof e!="string")throw new RangeError("".concat(mC,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),eJ.indexOf(e)<0)throw new RangeError("".concat(mC,": ").concat(e));return e}var sJ='Invalid "number" argument';function oJ(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(sJ,": ").concat(e));return e}function iJ(e){return 1/e===-1/0}function lJ(e){return e<0||e===0&&iJ(e)}function MT(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[oJ(e[0]),aJ(e[1])]}function lx(e){"@babel/helpers - typeof";return lx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lx(e)}function cJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dJ(e,t,n){return t&&LT(e.prototype,t),n&&LT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var DT=function(){function e(){cJ(this,e),this.cache={}}return dJ(e,[{key:"get",value:function(){for(var t=this.cache,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];for(var o=0,i=r;o<i.length;o++){var c=i[o];if(lx(t)!=="object")return;t=t[c]}return t}},{key:"put",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var s=n.pop(),o=n.pop(),i=this.cache,c=0,u=n;c<u.length;c++){var h=u[c];lx(i[h])!=="object"&&(i[h]={}),i=i[h]}return i[o]=s}}]),e}();function fC(e){"@babel/helpers - typeof";return fC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fC(e)}function uJ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=hJ(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hJ(e,t){if(e){if(typeof e=="string")return OT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OT(e,t)}}function OT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pJ(e,t){for(var n=uJ(e),r;!(r=n()).done;){var s=r.value;if(t(s))return s;for(var o=s.split("-");o.length>1;)if(o.pop(),s=o.join("-"),t(s))return s}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function mJ(){var e=(typeof Intl>"u"?"undefined":fC(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function gC(e){"@babel/helpers - typeof";return gC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gC(e)}function fJ(e){return vJ(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var gJ={}.constructor;function vJ(e){return gC(e)!==void 0&&e!==null&&e.constructor===gJ}var Ml=60,cx=60*Ml,gu=24*cx,vC=7*gu,yC=30.44*gu,PT=146097/400*gu;function kp(e){switch(e){case"second":return 1;case"minute":return Ml;case"hour":return cx;case"day":return gu;case"week":return vC;case"month":return yC;case"year":return PT}}function RT(e){return e.factor!==void 0?e.factor:kp(e.unit||e.formatAs)||1}function $0(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function xC(e){switch(e){case"floor":return 1;default:return .5}}function bC(e){"@babel/helpers - typeof";return bC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bC(e)}function AT(e,t){var n=t.prevStep,r=t.timestamp,s=t.now,o=t.future,i=t.round,c;return n&&(n.id||n.unit)&&(c=e["threshold_for_".concat(n.id||n.unit)]),c===void 0&&e.threshold!==void 0&&(c=e.threshold,typeof c=="function"&&(c=c(s,o))),c===void 0&&(c=e.minTime),bC(c)==="object"&&(n&&n.id&&c[n.id]!==void 0?c=c[n.id]:c=c.default),typeof c=="function"&&(c=c(r,{future:o,getMinTimeForUnit:function(u,h){return zT(u,h||n&&n.formatAs,{round:i})}})),c===void 0&&e.test&&(e.test(r,{now:s,future:o})?c=0:c=9007199254740991),c===void 0&&(n?e.formatAs&&n.formatAs&&(c=zT(e.formatAs,n.formatAs,{round:i})):c=0),c===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),c}function zT(e,t,n){var r=n.round,s=kp(e),o;if(t==="now"?o=kp(e):o=kp(t),s!==void 0&&o!==void 0)return s-o*(1-xC(r))}function FT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function yJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FT(Object(n),!0).forEach(function(r){xJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bJ(e,t,n){var r=n.now,s=n.future,o=n.round,i=n.units,c=n.getNextStep;e=kJ(e,i);var u=wJ(e,t,{now:r,future:s,round:o});if(c){if(u){var h=e[e.indexOf(u)-1],p=e[e.indexOf(u)+1];return[h,u,p]}return[void 0,void 0,e[0]]}return u}function wJ(e,t,n){var r=n.now,s=n.future,o=n.round;if(e.length!==0){var i=HT(e,t,{now:r,future:s||t<0,round:o});if(i!==-1){var c=e[i];if(c.granularity){var u=$0(o)(Math.abs(t)/RT(c)/c.granularity)*c.granularity;if(u===0&&i>0)return e[i-1]}return c}}}function HT(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=AT(e[r],yJ({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return s===void 0||Math.abs(t)<s?r-1:r===e.length-1?r:HT(e,t,n,r+1)}function kJ(e,t){return e.filter(function(n){var r=n.unit,s=n.formatAs;return r=r||s,r?t.indexOf(r)>=0:!0})}function jJ(e,t,n){var r=n.now,s=n.round;if(kp(e)){var o=kp(e)*1e3,i=t>r,c=Math.abs(t-r),u=$0(s)(c/o)*o;return i?u>0?c-u+SJ(s,o):c-u+1:-(c-u)+CJ(s,o)}}function CJ(e,t){return xC(e)*t}function SJ(e,t){return(1-xC(e))*t+1}var EJ=365*24*60*60*1e3,$T=1e3*EJ;function NJ(e,t,n){var r=n.prevStep,s=n.nextStep,o=n.now,i=n.future,c=n.round,u=e.getTime?e.getTime():e,h=function(C){return jJ(C,u,{now:o,round:c})},p=IJ(i?t:s,u,{future:i,now:o,round:c,prevStep:i?r:t});if(p!==void 0){var m;if(t&&(t.getTimeToNextUpdate&&(m=t.getTimeToNextUpdate(u,{getTimeToNextUpdateForUnit:h,getRoundFunction:$0,now:o,future:i,round:c})),m===void 0)){var x=t.unit||t.formatAs;x&&(m=h(x))}return m===void 0?p:Math.min(m,p)}}function _J(e,t,n){var r=n.now,s=n.future,o=n.round,i=n.prevStep,c=AT(e,{timestamp:t,now:r,future:s,round:o,prevStep:i});if(c!==void 0)return s?t-c*1e3+1:c===0&&t===r?$T:t+c*1e3}function IJ(e,t,n){var r=n.now,s=n.future,o=n.round,i=n.prevStep;if(e){var c=_J(e,t,{now:r,future:s,round:o,prevStep:i});return c===void 0?void 0:c-r}else return s?t-r+1:$T}var BT={};function jp(e){return BT[e]}function WT(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");BT[e.locale]=e}const TJ=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],wC={steps:TJ,labels:"long"};function VT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function UT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(n),!0).forEach(function(r){MJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kC=UT(UT({},wC),{},{steps:wC.steps.filter(function(e){return e.formatAs!=="second"})}),qT=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:Ml,unit:"minute"},{threshold:2.5*Ml,granularity:5,factor:Ml,unit:"minute"},{threshold:22.5*Ml,factor:.5*cx,unit:"half-hour"},{threshold:42.5*Ml,threshold_for_minute:52.5*Ml,factor:cx,unit:"hour"},{threshold:20.5/24*gu,factor:gu,unit:"day"},{threshold:5.5*gu,factor:vC,unit:"week"},{threshold:3.5*vC,factor:yC,unit:"month"},{threshold:10.5*yC,factor:PT,unit:"year"}],YT={gradation:qT,flavour:"long",units:["now","minute","hour","day","week","month","year"]},LJ={gradation:qT,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function KT(e){return e instanceof Date?e:new Date(e)}var jC=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],qi={},DJ={minTime:function(e,t){t.future;var n=t.getMinTimeForUnit;return n("day")},format:function(e,t){return qi[t]||(qi[t]={}),qi[t].dayMonth||(qi[t].dayMonth=new Intl.DateTimeFormat(t,{month:"short",day:"numeric"})),qi[t].dayMonth.format(KT(e))}},OJ={minTime:function(e,t){var n=t.future;if(n){var r=new Date(new Date(e).getFullYear(),0).getTime()-1;return(e-r)/1e3}else{var s=new Date(new Date(e).getFullYear()+1,0).getTime();return(s-e)/1e3}},format:function(e,t){return qi[t]||(qi[t]={}),qi[t].dayMonthYear||(qi[t].dayMonthYear=new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric"})),qi[t].dayMonthYear.format(KT(e))}};mJ()?jC.push(DJ,OJ):jC.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});const vu={steps:jC,labels:["mini","short-time","narrow","short"]};function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ZT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(n),!0).forEach(function(r){PJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RJ=ZT(ZT({},vu),{},{steps:[{formatAs:"now"}].concat(vu.steps)});function QT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function JT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QT(Object(n),!0).forEach(function(r){AJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CC=JT(JT({},vu),{},{steps:vu.steps.filter(function(e){return e.formatAs!=="second"})});function XT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XT(Object(n),!0).forEach(function(r){zJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FJ=eM(eM({},CC),{},{steps:[{formatAs:"now"}].concat(CC.steps)});function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function dx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){HJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $J=dx(dx({},vu),{},{steps:vu.steps.filter(function(e){return e.formatAs!=="second"}).map(function(e){return e.formatAs==="minute"?dx(dx({},e),{},{minTime:Ml}):e})}),B0={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function nM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function rM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nM(Object(n),!0).forEach(function(r){BJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WJ=rM(rM({},B0),{},{steps:[{formatAs:"now"}].concat(B0.steps)});function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function sM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(r){VJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SC=sM(sM({},B0),{},{steps:B0.steps.filter(function(e){return e.formatAs!=="second"})});function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function iM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(r){UJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qJ=iM(iM({},SC),{},{steps:[{formatAs:"now"}].concat(SC.steps)});function YJ(e){switch(e){case"default":case"round":return wC;case"round-minute":return kC;case"approximate":return YT;case"time":case"approximate-time":return LJ;case"mini":return B0;case"mini-now":return WJ;case"mini-minute":return SC;case"mini-minute-now":return qJ;case"twitter":return vu;case"twitter-now":return RJ;case"twitter-minute":return CC;case"twitter-minute-now":return FJ;case"twitter-first-minute":return $J;default:return YT}}function ux(e){"@babel/helpers - typeof";return ux=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ux(e)}function KJ(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lM(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function GJ(e,t){return JJ(e)||QJ(e,t)||lM(e,t)||ZJ()}function ZJ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lM(e,t){if(e){if(typeof e=="string")return cM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cM(e,t)}}function cM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,o=!1,i,c;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));s=!0);}catch(u){o=!0,c=u}finally{try{!s&&n.return!=null&&n.return()}finally{if(o)throw c}}return r}}function JJ(e){if(Array.isArray(e))return e}function XJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eX(e,t,n){return t&&dM(e.prototype,t),n&&dM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Na=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;XJ(this,e),typeof t=="string"&&(t=[t]),this.locale=pJ(t.concat(e.getDefaultLocale()),jp),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Fc,this.IntlPluralRules=Fc.PluralRules),this.relativeTimeFormatCache=new DT,this.pluralRulesCache=new DT}return eX(e,[{key:"format",value:function(t,n,r){r||(n&&!sX(n)?(r=n,n=void 0):r={}),n||(n=kC),typeof n=="string"&&(n=YJ(n));var s=tX(t),o=this.getLabels(n.flavour||n.labels),i=o.labels,c=o.labelsType,u;n.now!==void 0&&(u=n.now),u===void 0&&r.now!==void 0&&(u=r.now),u===void 0&&(u=Date.now());var h=(u-s)/1e3,p=r.future||h<0,m=aX(i,jp(this.locale).now,jp(this.locale).long,p);if(n.custom){var x=n.custom({now:u,date:new Date(s),time:s,elapsed:h,locale:this.locale});if(x!==void 0)return x}var C=rX(n.units,i,m),b=r.round||n.round,g=bJ(n.gradation||n.steps||kC.steps,h,{now:u,units:C,round:b,future:p,getNextStep:!0}),k=GJ(g,3),j=k[0],S=k[1],E=k[2],N=this.formatDateForStep(s,S,h,{labels:i,labelsType:c,nowLabel:m,now:u,future:p,round:b})||"";if(r.getTimeToNextUpdate){var T=NJ(s,S,{nextStep:E,prevStep:j,now:u,future:p,round:b});return[N,T]}return N}},{key:"formatDateForStep",value:function(t,n,r,s){var o=this,i=s.labels,c=s.labelsType,u=s.nowLabel,h=s.now,p=s.future,m=s.round;if(n){if(n.format)return n.format(t,this.locale,{formatAs:function(g,k){return o.formatValue(k,g,{labels:i,future:p})},now:h,future:p});var x=n.unit||n.formatAs;if(!x)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(n)));if(x==="now")return u;var C=Math.abs(r)/RT(n);n.granularity&&(C=$0(m)(C/n.granularity)*n.granularity);var b=-1*Math.sign(r)*$0(m)(C);switch(b===0&&(p?b=0:b=-0),c){case"long":case"short":case"narrow":return this.getFormatter(c).format(b,x);default:return this.formatValue(b,x,{labels:i,future:p})}}}},{key:"formatValue",value:function(t,n,r){var s=r.labels,o=r.future;return this.getFormattingRule(s,n,t,{future:o}).replace("{0}",this.formatNumber(Math.abs(t)))}},{key:"getFormattingRule",value:function(t,n,r,s){var o=s.future;if(this.locale,t=t[n],typeof t=="string")return t;var i=r===0?o?"future":"past":r<0?"past":"future",c=t[i]||t;if(typeof c=="string")return c;var u=this.getPluralRules().select(Math.abs(r));return c[u]||c.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"getFormatter",value:function(t){return this.relativeTimeFormatCache.get(this.locale,t)||this.relativeTimeFormatCache.put(this.locale,t,new this.IntlRelativeTimeFormat(this.locale,{style:t}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof t=="string"&&(t=[t]),t=t.map(function(i){switch(i){case"tiny":case"mini-time":return"mini";default:return i}}),t=t.concat("long");for(var n=jp(this.locale),r=KJ(t),s;!(s=r()).done;){var o=s.value;if(n[o])return{labelsType:o,labels:n[o]}}}}]),e}(),uM="en";Na.getDefaultLocale=function(){return uM},Na.setDefaultLocale=function(e){return uM=e},Na.addDefaultLocale=function(e){if(hM)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");hM=!0,Na.setDefaultLocale(e.locale),Na.addLocale(e)};var hM;Na.addLocale=function(e){WT(e),Fc.addLocale(e)},Na.locale=Na.addLocale,Na.addLabels=function(e,t,n){var r=jp(e);r||(WT({locale:e}),r=jp(e)),r[t]=n};function tX(e){if(e.constructor===Date||nX(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(ux(e),", ").concat(e))}function nX(e){return ux(e)==="object"&&typeof e.getTime=="function"}function rX(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(s){return s==="now"||r.indexOf(s)>=0})),r}function aX(e,t,n,r){var s=e.now||t&&t.now;if(s)return typeof s=="string"?s:r?s.future:s.past;if(n&&n.second&&n.second.current)return n.second.current}function sX(e){return typeof e=="string"||fJ(e)}const oX={locale:"de",long:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"n\xE4chstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"n\xE4chstes Quartal",past:{one:"vor {0} Quartal",other:"vor {0} Quartalen"},future:{one:"in {0} Quartal",other:"in {0} Quartalen"}},month:{previous:"letzten Monat",current:"diesen Monat",next:"n\xE4chsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"n\xE4chste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"\xFCbermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:{one:"vor {0} Stunde",other:"vor {0} Stunden"},future:{one:"in {0} Stunde",other:"in {0} Stunden"}},minute:{current:"in dieser Minute",past:{one:"vor {0} Minute",other:"vor {0} Minuten"},future:{one:"in {0} Minute",other:"in {0} Minuten"}},second:{current:"jetzt",past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"},future:{one:"in {0} Sekunde",other:"in {0} Sekunden"}}},short:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"n\xE4chstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"n\xE4chstes Quartal",past:"vor {0} Quart.",future:"in {0} Quart."},month:{previous:"letzten Monat",current:"diesen Monat",next:"n\xE4chsten Monat",past:{one:"vor {0} Monat",other:"vor {0}\xA0Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"n\xE4chste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"\xFCbermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} Min.",future:"in {0} Min."},second:{current:"jetzt",past:"vor {0} Sek.",future:"in {0} Sek."}},narrow:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"n\xE4chstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"n\xE4chstes Quartal",past:"vor {0} Q",future:"in {0} Q"},month:{previous:"letzten Monat",current:"diesen Monat",next:"n\xE4chsten Monat",past:{one:"vor {0}\xA0Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"n\xE4chste Woche",past:"vor {0} Wo.",future:"in {0} Wo."},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"\xFCbermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} m",future:"in {0} m"},second:{current:"jetzt",past:"vor {0} s",future:"in {0} s"}},now:{now:{current:"jetzt",future:"in einem Moment",past:"gerade jetzt"}},mini:{year:"{0} J.",month:"{0} Mt.",week:"{0} Wo.",day:"{0} T.",hour:"{0} Std.",minute:"{0} Min.",second:"{0} s",now:"jetzt"},"long-time":{year:{one:"{0} Jahr",other:"{0} Jahre"},month:{one:"{0} Monat",other:"{0} Monate"},week:{one:"{0} Woche",other:"{0} Wochen"},day:{one:"{0} Tag",other:"{0} Tage"},hour:{one:"{0} Stunde",other:"{0} Stunden"},minute:{one:"{0} Minute",other:"{0} Minuten"},second:{one:"{0} Sekunde",other:"{0} Sekunden"}}},iX={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},lX={locale:"es",long:{year:{previous:"el a\xF1o pasado",current:"este a\xF1o",next:"el pr\xF3ximo a\xF1o",past:{one:"hace {0} a\xF1o",other:"hace {0} a\xF1os"},future:{one:"dentro de {0} a\xF1o",other:"dentro de {0} a\xF1os"}},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el pr\xF3ximo trimestre",past:{one:"hace {0} trimestre",other:"hace {0} trimestres"},future:{one:"dentro de {0} trimestre",other:"dentro de {0} trimestres"}},month:{previous:"el mes pasado",current:"este mes",next:"el pr\xF3ximo mes",past:{one:"hace {0} mes",other:"hace {0} meses"},future:{one:"dentro de {0} mes",other:"dentro de {0} meses"}},week:{previous:"la semana pasada",current:"esta semana",next:"la pr\xF3xima semana",past:{one:"hace {0} semana",other:"hace {0} semanas"},future:{one:"dentro de {0} semana",other:"dentro de {0} semanas"}},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"ma\xF1ana","next-2":"pasado ma\xF1ana",past:{one:"hace {0} d\xEDa",other:"hace {0} d\xEDas"},future:{one:"dentro de {0} d\xEDa",other:"dentro de {0} d\xEDas"}},hour:{current:"esta hora",past:{one:"hace {0} hora",other:"hace {0} horas"},future:{one:"dentro de {0} hora",other:"dentro de {0} horas"}},minute:{current:"este minuto",past:{one:"hace {0} minuto",other:"hace {0} minutos"},future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"}},second:{current:"ahora",past:{one:"hace {0} segundo",other:"hace {0} segundos"},future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"}}},short:{year:{previous:"el a\xF1o pasado",current:"este a\xF1o",next:"el pr\xF3ximo a\xF1o",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el pr\xF3ximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el pr\xF3ximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"pr\xF3x. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"ma\xF1ana","next-2":"pasado ma\xF1ana",past:"hace {0} d",future:"dentro de {0} d"},hour:{current:"esta hora",past:"hace {0} h",future:"dentro de {0} h"},minute:{current:"este minuto",past:"hace {0} min",future:"dentro de {0} min"},second:{current:"ahora",past:"hace {0} s",future:"dentro de {0} s"}},narrow:{year:{previous:"el a\xF1o pasado",current:"este a\xF1o",next:"el pr\xF3ximo a\xF1o",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el pr\xF3ximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el pr\xF3ximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"pr\xF3x. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"ma\xF1ana","next-2":"pasado ma\xF1ana",past:"hace {0} d",future:"dentro de {0} d"},hour:{current:"esta hora",past:"hace {0} h",future:"dentro de {0} h"},minute:{current:"este minuto",past:"hace {0} min",future:"dentro de {0} min"},second:{current:"ahora",past:"hace {0} s",future:"dentro de {0} s"}},now:{now:{current:"ahora",future:"enseguida",past:"ahora mismo"}},mini:{year:{one:"{0} a\xF1o",other:"{0} a\xF1os"},month:{one:"{0} mes",other:"{0} meses"},week:"{0} sem.",day:{one:"{0} d\xEDa",other:"{0} d\xEDas"},hour:{one:"{0} hora",other:"{0} horas"},minute:"{0} min.",second:"{0} seg.",now:"ahora"},"long-time":{year:{one:"{0} a\xF1o",other:"{0} a\xF1os"},month:{one:"{0} mes",other:"{0} meses"},week:{one:"{0} semana",other:"{0} semanas"},day:{one:"{0} d\xEDa",other:"{0} d\xEDas"},hour:{one:"{0} hora",other:"{0} horas"},minute:{one:"{0} minuto",other:"{0} minutos"},second:{one:"{0} segundo",other:"{0} segundos"}}},cX={locale:"fr",long:{year:{previous:"l\u2019ann\xE9e derni\xE8re",current:"cette ann\xE9e",next:"l\u2019ann\xE9e prochaine",past:{one:"il y a {0} an",other:"il y a {0} ans"},future:{one:"dans {0} an",other:"dans {0} ans"}},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:{one:"il y a {0} trimestre",other:"il y a {0} trimestres"},future:{one:"dans {0} trimestre",other:"dans {0} trimestres"}},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} mois",future:"dans {0} mois"},week:{previous:"la semaine derni\xE8re",current:"cette semaine",next:"la semaine prochaine",past:{one:"il y a {0} semaine",other:"il y a {0} semaines"},future:{one:"dans {0} semaine",other:"dans {0} semaines"}},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xE8s-demain",past:{one:"il y a {0} jour",other:"il y a {0} jours"},future:{one:"dans {0} jour",other:"dans {0} jours"}},hour:{current:"cette heure-ci",past:{one:"il y a {0} heure",other:"il y a {0} heures"},future:{one:"dans {0} heure",other:"dans {0} heures"}},minute:{current:"cette minute-ci",past:{one:"il y a {0} minute",other:"il y a {0} minutes"},future:{one:"dans {0} minute",other:"dans {0} minutes"}},second:{current:"maintenant",past:{one:"il y a {0} seconde",other:"il y a {0} secondes"},future:{one:"dans {0} seconde",other:"dans {0} secondes"}}},short:{year:{previous:"l\u2019ann\xE9e derni\xE8re",current:"cette ann\xE9e",next:"l\u2019ann\xE9e prochaine",past:"il y a {0} a",future:"dans {0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"il y a {0} trim.",future:"dans {0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} m.",future:"dans {0} m."},week:{previous:"la semaine derni\xE8re",current:"cette semaine",next:"la semaine prochaine",past:"il y a {0} sem.",future:"dans {0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xE8s-demain",past:"il y a {0}\xA0j",future:"dans {0}\xA0j"},hour:{current:"cette heure-ci",past:"il y a {0}\xA0h",future:"dans {0}\xA0h"},minute:{current:"cette minute-ci",past:"il y a {0}\xA0min",future:"dans {0}\xA0min"},second:{current:"maintenant",past:"il y a {0}\xA0s",future:"dans {0}\xA0s"}},narrow:{year:{previous:"l\u2019ann\xE9e derni\xE8re",current:"cette ann\xE9e",next:"l\u2019ann\xE9e prochaine",past:"-{0} a",future:"+{0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"-{0} trim.",future:"+{0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"-{0} m.",future:"+{0} m."},week:{previous:"la semaine derni\xE8re",current:"cette semaine",next:"la semaine prochaine",past:"-{0} sem.",future:"+{0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xE8s-demain",past:"-{0} j",future:"+{0} j"},hour:{current:"cette heure-ci",past:"-{0} h",future:"+{0} h"},minute:{current:"cette minute-ci",past:"-{0} min",future:"+{0} min"},second:{current:"maintenant",past:"-{0} s",future:"+{0} s"}},now:{now:{current:"maintenant",future:"dans un instant",past:"\xE0 l'instant"}},mini:{year:{one:"{0} an",other:"{0} ans"},month:"{0} mois",week:"{0} sem.",day:{one:"{0} jour",other:"{0} jours"},hour:"{0} h",minute:"{0} min.",second:"{0} sec.",now:"maintenant"},"long-time":{year:{one:"{0} an",other:"{0} ans"},month:{one:"{0} mois",other:"{0} mois"},week:{one:"{0} semaine",other:"{0} semaines"},day:{one:"{0} jour",other:"{0} jours"},hour:{one:"{0} heure",other:"{0} heures"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} seconde",other:"{0} secondes"}}},dX={locale:"ru",long:{year:{previous:"\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u0433\u043E\u0434\u0443",current:"\u0432 \u044D\u0442\u043E\u043C \u0433\u043E\u0434\u0443",next:"\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C \u0433\u043E\u0434\u0443",past:{one:"{0} \u0433\u043E\u0434 \u043D\u0430\u0437\u0430\u0434",many:"{0} \u043B\u0435\u0442 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u0433\u043E\u0434\u0430 \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433\u043E\u0434",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043B\u0435\u0442",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433\u043E\u0434\u0430"}},quarter:{previous:"\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0435",current:"\u0432 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0435",next:"\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0435",past:{one:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B \u043D\u0430\u0437\u0430\u0434",many:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u043E\u0432 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0430 \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u043E\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0430"}},month:{previous:"\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u0435\u0441\u044F\u0446\u0435",current:"\u0432 \u044D\u0442\u043E\u043C \u043C\u0435\u0441\u044F\u0446\u0435",next:"\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C \u043C\u0435\u0441\u044F\u0446\u0435",past:{one:"{0} \u043C\u0435\u0441\u044F\u0446 \u043D\u0430\u0437\u0430\u0434",many:"{0} \u043C\u0435\u0441\u044F\u0446\u0435\u0432 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u043C\u0435\u0441\u044F\u0446\u0430 \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0435\u0441\u044F\u0446",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0435\u0441\u044F\u0446\u0435\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0435\u0441\u044F\u0446\u0430"}},week:{previous:"\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439 \u043D\u0435\u0434\u0435\u043B\u0435",current:"\u043D\u0430 \u044D\u0442\u043E\u0439 \u043D\u0435\u0434\u0435\u043B\u0435",next:"\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u043D\u0435\u0434\u0435\u043B\u0435",past:{one:"{0} \u043D\u0435\u0434\u0435\u043B\u044E \u043D\u0430\u0437\u0430\u0434",many:"{0} \u043D\u0435\u0434\u0435\u043B\u044C \u043D\u0430\u0437\u0430\u0434",other:"{0} \u043D\u0435\u0434\u0435\u043B\u0438 \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u043D\u0435\u0434\u0435\u043B\u044E",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043D\u0435\u0434\u0435\u043B\u044C",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u043D\u0435\u0434\u0435\u043B\u0438"}},day:{previous:"\u0432\u0447\u0435\u0440\u0430","previous-2":"\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430",current:"\u0441\u0435\u0433\u043E\u0434\u043D\u044F",next:"\u0437\u0430\u0432\u0442\u0440\u0430","next-2":"\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430",past:{one:"{0} \u0434\u0435\u043D\u044C \u043D\u0430\u0437\u0430\u0434",many:"{0} \u0434\u043D\u0435\u0439 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u0434\u043D\u044F \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u0435\u043D\u044C",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D\u0435\u0439",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D\u044F"}},hour:{current:"\u0432 \u044D\u0442\u043E\u0442 \u0447\u0430\u0441",past:{one:"{0} \u0447\u0430\u0441 \u043D\u0430\u0437\u0430\u0434",many:"{0} \u0447\u0430\u0441\u043E\u0432 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u0447\u0430\u0441\u0430 \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0447\u0430\u0441",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0447\u0430\u0441\u043E\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0447\u0430\u0441\u0430"}},minute:{current:"\u0432 \u044D\u0442\u0443 \u043C\u0438\u043D\u0443\u0442\u0443",past:{one:"{0} \u043C\u0438\u043D\u0443\u0442\u0443 \u043D\u0430\u0437\u0430\u0434",many:"{0} \u043C\u0438\u043D\u0443\u0442 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0438\u043D\u0443\u0442\u0443",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0438\u043D\u0443\u0442",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0438\u043D\u0443\u0442\u044B"}},second:{current:"\u0441\u0435\u0439\u0447\u0430\u0441",past:{one:"{0} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u043D\u0430\u0437\u0430\u0434",many:"{0} \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",other:"{0} \u0441\u0435\u043A\u0443\u043D\u0434\u044B \u043D\u0430\u0437\u0430\u0434"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441\u0435\u043A\u0443\u043D\u0434",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441\u0435\u043A\u0443\u043D\u0434\u044B"}}},short:{year:{previous:"\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u0433.",current:"\u0432 \u044D\u0442\u043E\u043C \u0433.",next:"\u0432 \u0441\u043B\u0435\u0434. \u0433.",past:{many:"{0} \u043B. \u043D\u0430\u0437\u0430\u0434",other:"{0} \u0433. \u043D\u0430\u0437\u0430\u0434"},future:{many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043B.",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433."}},quarter:{previous:"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u043A\u0432.",current:"\u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0432.",next:"\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043A\u0432.",past:"{0} \u043A\u0432. \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432."},month:{previous:"\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u0435\u0441.",current:"\u0432 \u044D\u0442\u043E\u043C \u043C\u0435\u0441.",next:"\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C \u043C\u0435\u0441.",past:"{0} \u043C\u0435\u0441. \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0435\u0441."},week:{previous:"\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439 \u043D\u0435\u0434.",current:"\u043D\u0430 \u044D\u0442\u043E\u0439 \u043D\u0435\u0434.",next:"\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u043D\u0435\u0434.",past:"{0} \u043D\u0435\u0434. \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u043D\u0435\u0434."},day:{previous:"\u0432\u0447\u0435\u0440\u0430","previous-2":"\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430",current:"\u0441\u0435\u0433\u043E\u0434\u043D\u044F",next:"\u0437\u0430\u0432\u0442\u0440\u0430","next-2":"\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430",past:"{0} \u0434\u043D. \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D."},hour:{current:"\u0432 \u044D\u0442\u043E\u0442 \u0447\u0430\u0441",past:"{0} \u0447 \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0447"},minute:{current:"\u0432 \u044D\u0442\u0443 \u043C\u0438\u043D\u0443\u0442\u0443",past:"{0} \u043C\u0438\u043D. \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0438\u043D."},second:{current:"\u0441\u0435\u0439\u0447\u0430\u0441",past:"{0} \u0441\u0435\u043A. \u043D\u0430\u0437\u0430\u0434",future:"\u0447\u0435\u0440\u0435\u0437 {0}\xA0\u0441\u0435\u043A."}},narrow:{year:{previous:"\u0432 \u043F\u0440. \u0433.",current:"\u0432 \u044D\u0442. \u0433.",next:"\u0432 \u0441\u043B. \u0433.",past:{many:"-{0} \u043B.",other:"-{0} \u0433."},future:{many:"+{0} \u043B.",other:"+{0} \u0433."}},quarter:{previous:"\u043F\u043E\u0441\u043B. \u043A\u0432.",current:"\u0442\u0435\u043A. \u043A\u0432.",next:"\u0441\u043B\u0435\u0434. \u043A\u0432.",past:"-{0} \u043A\u0432.",future:"+{0} \u043A\u0432."},month:{previous:"\u0432 \u043F\u0440. \u043C\u0435\u0441.",current:"\u0432 \u044D\u0442. \u043C\u0435\u0441.",next:"\u0432 \u0441\u043B\u0435\u0434. \u043C\u0435\u0441.",past:"-{0} \u043C\u0435\u0441.",future:"+{0} \u043C\u0435\u0441."},week:{previous:"\u043D\u0430 \u043F\u0440. \u043D\u0435\u0434.",current:"\u043D\u0430 \u044D\u0442. \u043D\u0435\u0434.",next:"\u043D\u0430 \u0441\u043B\u0435\u0434. \u043D\u0435\u0434.",past:"-{0} \u043D\u0435\u0434.",future:"+{0} \u043D\u0435\u0434."},day:{previous:"\u0432\u0447\u0435\u0440\u0430","previous-2":"\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430",current:"\u0441\u0435\u0433\u043E\u0434\u043D\u044F",next:"\u0437\u0430\u0432\u0442\u0440\u0430","next-2":"\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430",past:"-{0} \u0434\u043D.",future:"+{0} \u0434\u043D."},hour:{current:"\u0432 \u044D\u0442\u043E\u0442 \u0447\u0430\u0441",past:"-{0} \u0447",future:"+{0} \u0447"},minute:{current:"\u0432 \u044D\u0442\u0443 \u043C\u0438\u043D\u0443\u0442\u0443",past:"-{0} \u043C\u0438\u043D",future:"+{0} \u043C\u0438\u043D"},second:{current:"\u0441\u0435\u0439\u0447\u0430\u0441",past:"-{0} \u0441",future:"+{0} \u0441"}},now:{now:{current:"\u0441\u0435\u0439\u0447\u0430\u0441",past:"\u0442\u043E\u043B\u044C\u043A\u043E \u0447\u0442\u043E",future:"\u0441\u0435\u0439\u0447\u0430\u0441"}},mini:{year:{many:"{0} \u043B",other:"{0} \u0433"},month:"{0} \u043C\u0435\u0441",week:"{0} \u043D\u0435\u0434",day:"{0} \u0434",hour:"{0} \u0447",minute:"{0} \u043C\u0438\u043D",second:"{0} \u0441",now:"\u0441\u0435\u0439\u0447\u0430\u0441"},"short-time":{year:{many:"{0} \u043B.",other:"{0} \u0433."},month:"{0} \u043C\u0435\u0441.",week:"{0} \u043D\u0435\u0434.",day:{one:"{0} \u0434.",other:"{0} \u0434\u043D."},hour:"{0} \u0447.",minute:"{0} \u043C\u0438\u043D.",second:"{0} \u0441\u0435\u043A."},"long-time":{year:{one:"{0} \u0433\u043E\u0434",many:"{0} \u043B\u0435\u0442",other:"{0} \u0433\u043E\u0434\u0430"},month:{one:"{0} \u043C\u0435\u0441\u044F\u0446",many:"{0} \u043C\u0435\u0441\u044F\u0446\u0435\u0432",other:"{0} \u043C\u0435\u0441\u044F\u0446\u0430"},week:{one:"{0} \u043D\u0435\u0434\u0435\u043B\u044E",many:"{0} \u043D\u0435\u0434\u0435\u043B\u044C",other:"{0} \u043D\u0435\u0434\u0435\u043B\u0438"},day:{one:"{0} \u0434\u0435\u043D\u044C",few:"{0} \u0434\u043D\u044F",other:"{0} \u0434\u043D\u0435\u0439"},hour:{one:"{0} \u0447\u0430\u0441",many:"{0} \u0447\u0430\u0441\u043E\u0432",other:"{0} \u0447\u0430\u0441\u0430"},minute:{one:"{0} \u043C\u0438\u043D\u0443\u0442\u0430",many:"{0} \u043C\u0438\u043D\u0443\u0442",other:"{0} \u043C\u0438\u043D\u0443\u0442\u044B"},second:{one:"{0} \u0441\u0435\u043A\u0443\u043D\u0434\u0430",many:"{0} \u0441\u0435\u043A\u0443\u043D\u0434",other:"{0} \u0441\u0435\u043A\u0443\u043D\u0434\u044B"}}},uX={locale:"uk",long:{year:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u0440\u043E\u043A\u0443",current:"\u0446\u044C\u043E\u0433\u043E \u0440\u043E\u043A\u0443",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u0440\u043E\u043A\u0443",past:{one:"{0} \u0440\u0456\u043A \u0442\u043E\u043C\u0443",few:"{0} \u0440\u043E\u043A\u0438 \u0442\u043E\u043C\u0443",many:"{0} \u0440\u043E\u043A\u0456\u0432 \u0442\u043E\u043C\u0443",other:"{0} \u0440\u043E\u043A\u0443 \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0440\u0456\u043A",few:"\u0447\u0435\u0440\u0435\u0437 {0} \u0440\u043E\u043A\u0438",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0440\u043E\u043A\u0456\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0440\u043E\u043A\u0443"}},quarter:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0443",current:"\u0446\u044C\u043E\u0433\u043E \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0443",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0443",past:{one:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B \u0442\u043E\u043C\u0443",few:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0438 \u0442\u043E\u043C\u0443",many:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0456\u0432 \u0442\u043E\u043C\u0443",other:"{0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0443 \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B",few:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0438",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0456\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0443"}},month:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u043C\u0456\u0441\u044F\u0446\u044F",current:"\u0446\u044C\u043E\u0433\u043E \u043C\u0456\u0441\u044F\u0446\u044F",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u043C\u0456\u0441\u044F\u0446\u044F",past:{one:"{0} \u043C\u0456\u0441\u044F\u0446\u044C \u0442\u043E\u043C\u0443",few:"{0} \u043C\u0456\u0441\u044F\u0446\u0456 \u0442\u043E\u043C\u0443",many:"{0} \u043C\u0456\u0441\u044F\u0446\u0456\u0432 \u0442\u043E\u043C\u0443",other:"{0} \u043C\u0456\u0441\u044F\u0446\u044F \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0456\u0441\u044F\u0446\u044C",few:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0456\u0441\u044F\u0446\u0456",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0456\u0441\u044F\u0446\u0456\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0456\u0441\u044F\u0446\u044F"}},week:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",current:"\u0446\u044C\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",past:{one:"{0} \u0442\u0438\u0436\u0434\u0435\u043D\u044C \u0442\u043E\u043C\u0443",few:"{0} \u0442\u0438\u0436\u043D\u0456 \u0442\u043E\u043C\u0443",many:"{0} \u0442\u0438\u0436\u043D\u0456\u0432 \u0442\u043E\u043C\u0443",other:"{0} \u0442\u0438\u0436\u043D\u044F \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0442\u0438\u0436\u0434\u0435\u043D\u044C",few:"\u0447\u0435\u0440\u0435\u0437 {0} \u0442\u0438\u0436\u043D\u0456",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0442\u0438\u0436\u043D\u0456\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0442\u0438\u0436\u043D\u044F"}},day:{previous:"\u0443\u0447\u043E\u0440\u0430","previous-2":"\u043F\u043E\u0437\u0430\u0432\u0447\u043E\u0440\u0430",current:"\u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456",next:"\u0437\u0430\u0432\u0442\u0440\u0430","next-2":"\u043F\u0456\u0441\u043B\u044F\u0437\u0430\u0432\u0442\u0440\u0430",past:{one:"{0} \u0434\u0435\u043D\u044C \u0442\u043E\u043C\u0443",few:"{0} \u0434\u043D\u0456 \u0442\u043E\u043C\u0443",many:"{0} \u0434\u043D\u0456\u0432 \u0442\u043E\u043C\u0443",other:"{0} \u0434\u043D\u044F \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u0435\u043D\u044C",few:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D\u0456",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D\u0456\u0432",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D\u044F"}},hour:{current:"\u0446\u0456\u0454\u0457 \u0433\u043E\u0434\u0438\u043D\u0438",past:{one:"{0} \u0433\u043E\u0434\u0438\u043D\u0443 \u0442\u043E\u043C\u0443",many:"{0} \u0433\u043E\u0434\u0438\u043D \u0442\u043E\u043C\u0443",other:"{0} \u0433\u043E\u0434\u0438\u043D\u0438 \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433\u043E\u0434\u0438\u043D\u0443",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433\u043E\u0434\u0438\u043D",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433\u043E\u0434\u0438\u043D\u0438"}},minute:{current:"\u0446\u0456\u0454\u0457 \u0445\u0432\u0438\u043B\u0438\u043D\u0438",past:{one:"{0} \u0445\u0432\u0438\u043B\u0438\u043D\u0443 \u0442\u043E\u043C\u0443",many:"{0} \u0445\u0432\u0438\u043B\u0438\u043D \u0442\u043E\u043C\u0443",other:"{0} \u0445\u0432\u0438\u043B\u0438\u043D\u0438 \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0445\u0432\u0438\u043B\u0438\u043D\u0443",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0445\u0432\u0438\u043B\u0438\u043D",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0445\u0432\u0438\u043B\u0438\u043D\u0438"}},second:{current:"\u0437\u0430\u0440\u0430\u0437",past:{one:"{0} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u0442\u043E\u043C\u0443",many:"{0} \u0441\u0435\u043A\u0443\u043D\u0434 \u0442\u043E\u043C\u0443",other:"{0} \u0441\u0435\u043A\u0443\u043D\u0434\u0438 \u0442\u043E\u043C\u0443"},future:{one:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",many:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441\u0435\u043A\u0443\u043D\u0434",other:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441\u0435\u043A\u0443\u043D\u0434\u0438"}}},short:{year:{previous:"\u0442\u043E\u0440\u0456\u043A",current:"\u0446\u044C\u043E\u0433\u043E\u0440\u0456\u0447",next:"\u043D\u0430\u0441\u0442. \u0440\u043E\u043A\u0443",past:"{0} \u0440. \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0440."},quarter:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u043A\u0432.",current:"\u0446\u044C\u043E\u0433\u043E \u043A\u0432.",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u043A\u0432.",past:"{0} \u043A\u0432. \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u043A\u0432."},month:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u043C\u0456\u0441\u044F\u0446\u044F",current:"\u0446\u044C\u043E\u0433\u043E \u043C\u0456\u0441\u044F\u0446\u044F",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u043C\u0456\u0441\u044F\u0446\u044F",past:"{0} \u043C\u0456\u0441. \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u043C\u0456\u0441."},week:{previous:"\u043C\u0438\u043D. \u0442\u0438\u0436\u043D\u044F",current:"\u0446\u044C\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",next:"\u043D\u0430\u0441\u0442. \u0442\u0438\u0436\u043D\u044F",past:"{0} \u0442\u0438\u0436. \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0442\u0438\u0436."},day:{previous:"\u0443\u0447\u043E\u0440\u0430","previous-2":"\u043F\u043E\u0437\u0430\u0432\u0447\u043E\u0440\u0430",current:"\u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456",next:"\u0437\u0430\u0432\u0442\u0440\u0430","next-2":"\u043F\u0456\u0441\u043B\u044F\u0437\u0430\u0432\u0442\u0440\u0430",past:"{0} \u0434\u043D. \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0434\u043D."},hour:{current:"\u0446\u0456\u0454\u0457 \u0433\u043E\u0434\u0438\u043D\u0438",past:"{0} \u0433\u043E\u0434 \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0433\u043E\u0434"},minute:{current:"\u0446\u0456\u0454\u0457 \u0445\u0432\u0438\u043B\u0438\u043D\u0438",past:"{0} \u0445\u0432 \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0445\u0432"},second:{current:"\u0437\u0430\u0440\u0430\u0437",past:"{0} \u0441 \u0442\u043E\u043C\u0443",future:"\u0447\u0435\u0440\u0435\u0437 {0} \u0441"}},narrow:{year:{previous:"\u0442\u043E\u0440\u0456\u043A",current:"\u0446\u044C\u043E\u0433\u043E \u0440\u043E\u043A\u0443",next:"\u043D\u0430\u0441\u0442. \u0440.",past:"{0} \u0440. \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u0440."},quarter:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u043A\u0432.",current:"\u0446\u044C\u043E\u0433\u043E \u043A\u0432.",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u043A\u0432.",past:"{0} \u043A\u0432. \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u043A\u0432."},month:{previous:"\u043C\u0438\u043D. \u043C\u0456\u0441.",current:"\u0446\u044C\u043E\u0433\u043E \u043C\u0456\u0441.",next:"\u043D\u0430\u0441\u0442. \u043C\u0456\u0441.",past:"{0} \u043C\u0456\u0441. \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u043C\u0456\u0441."},week:{previous:"\u043C\u0438\u043D\u0443\u043B\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",current:"\u0446\u044C\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",next:"\u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u0442\u0438\u0436\u043D\u044F",past:"{0} \u0442\u0438\u0436. \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u0442\u0438\u0436."},day:{previous:"\u0443\u0447\u043E\u0440\u0430","previous-2":"\u043F\u043E\u0437\u0430\u0432\u0447\u043E\u0440\u0430",current:"\u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456",next:"\u0437\u0430\u0432\u0442\u0440\u0430","next-2":"\u043F\u0456\u0441\u043B\u044F\u0437\u0430\u0432\u0442\u0440\u0430",past:"{0} \u0434\u043D. \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u0434."},hour:{current:"\u0446\u0456\u0454\u0457 \u0433\u043E\u0434\u0438\u043D\u0438",past:"{0} \u0433\u043E\u0434 \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u0433\u043E\u0434"},minute:{current:"\u0446\u0456\u0454\u0457 \u0445\u0432\u0438\u043B\u0438\u043D\u0438",past:"{0} \u0445\u0432 \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u0445\u0432"},second:{current:"\u0437\u0430\u0440\u0430\u0437",past:"{0} \u0441 \u0442\u043E\u043C\u0443",future:"\u0437\u0430 {0} \u0441"}}};var hX={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const pX=_o(hX);var mX=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function pM(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(pX[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var s=new RegExp(mX),o=null;(o=s.exec(e))!==null;)if(o[0].trim())if(o[1]){var i=o[1].trim(),c=[i,""];i.indexOf("=")>-1&&(c=i.split("=")),t.attrs[c[0]]=c[1],s.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var fX=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,gX=/^\s*$/,vX=Object.create(null);function mM(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var s in n)r.push(s+'="'+n[s]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(mM,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var yX={parse:function(e,t){t||(t={}),t.components||(t.components=vX);var n,r=[],s=[],o=-1,i=!1;if(e.indexOf("<")!==0){var c=e.indexOf("<");r.push({type:"text",content:c===-1?e:e.substring(0,c)})}return e.replace(fX,function(u,h){if(i){if(u!=="</"+n.name+">")return;i=!1}var p,m=u.charAt(1)!=="/",x=u.startsWith("<!--"),C=h+u.length,b=e.charAt(C);if(x){var g=pM(u);return o<0?(r.push(g),r):((p=s[o]).children.push(g),r)}if(m&&(o++,(n=pM(u)).type==="tag"&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!b||b==="<"||n.children.push({type:"text",content:e.slice(C,e.indexOf("<",C))}),o===0&&r.push(n),(p=s[o-1])&&p.children.push(n),s[o]=n),(!m||n.voidElement)&&(o>-1&&(n.voidElement||n.name===u.slice(2,-1))&&(o--,n=o===-1?r:s[o]),!i&&b!=="<"&&b)){p=o===-1?r:s[o].children;var k=e.indexOf("<",C),j=e.slice(C,k===-1?void 0:k);gX.test(j)&&(j=" "),(k>-1&&o+p.length>=0||j!==" ")&&p.push({type:"text",content:j})}}),r},stringify:function(e){return e.reduce(function(t,n){return t+mM("",n)},"")}};function hx(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}const fM={};function px(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&fM[t[0]]||(typeof t[0]=="string"&&(fM[t[0]]=new Date),hx(...t))}const gM=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function vM(e,t,n){e.loadNamespaces(t,gM(e,n))}function yM(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,gM(e,r))}function xX(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,u)=>{const h=t.services.backendConnector.state["".concat(c,"|").concat(u)];return h===-1||h===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(r,e)&&(!s||i(o,e)))}function bX(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(px("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}):xX(e,t,n)}const wX=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,kX={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xA9","&#169;":"\xA9","&reg;":"\xAE","&#174;":"\xAE","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},jX=e=>kX[e];let EC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(wX,jX)};function CX(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};EC={...EC,...e}}function xM(){return EC}let bM;function SX(e){bM=e}function NC(){return bM}function _C(e,t){if(!e)return!1;const n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function IC(e){if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?Cp(t):t}function EX(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(t=>f.isValidElement(t))}function Cp(e){return Array.isArray(e)?e:[e]}function NX(e,t){const n={...t};return n.props=Object.assign(e.props,t.props),n}function wM(e,t){if(!e)return"";let n="";const r=Cp(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((o,i)=>{if(typeof o=="string")n+="".concat(o);else if(f.isValidElement(o)){const c=Object.keys(o.props).length,u=s.indexOf(o.type)>-1,h=o.props.children;if(!h&&u&&c===0)n+="<".concat(o.type,"/>");else if(!h&&(!u||c!==0))n+="<".concat(i,"></").concat(i,">");else if(o.props.i18nIsDynamicList)n+="<".concat(i,"></").concat(i,">");else if(u&&c===1&&typeof h=="string")n+="<".concat(o.type,">").concat(h,"</").concat(o.type,">");else{const p=wM(h,t);n+="<".concat(i,">").concat(p,"</").concat(i,">")}}else if(o===null)hx("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof o=="object"){const{format:c,...u}=o,h=Object.keys(u);if(h.length===1){const p=c?"".concat(h[0],", ").concat(c):h[0];n+="{{".concat(p,"}}")}else hx("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",o)}else hx("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",o)}),n}function _X(e,t,n,r,s,o){if(t==="")return[];const i=r.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(i.map(k=>"<".concat(k)).join("|")).test(t);if(!e&&!c&&!o)return[t];const u={};function h(k){Cp(k).forEach(j=>{typeof j!="string"&&(_C(j)?h(IC(j)):typeof j=="object"&&!f.isValidElement(j)&&Object.assign(u,j))})}h(e);const p=yX.parse("<0>".concat(t,"</0>")),m={...u,...s};function x(k,j,S){const E=IC(k),N=b(E,j.children,S);return EX(E)&&N.length===0||k.props&&k.props.i18nIsDynamicList?E:N}function C(k,j,S,E,N){k.dummy?(k.children=j,S.push(f.cloneElement(k,{key:E},N?void 0:j))):S.push(...f.Children.map([k],T=>{const M={...T.props};return delete M.i18nIsDynamicList,f.createElement(T.type,{...M,key:E,ref:T.ref},N?null:j)}))}function b(k,j,S){const E=Cp(k);return Cp(j).reduce((N,T,M)=>{const L=T.children&&T.children[0]&&T.children[0].content&&n.services.interpolator.interpolate(T.children[0].content,m,n.language);if(T.type==="tag"){let D=E[parseInt(T.name,10)];S.length===1&&!D&&(D=S[0][T.name]),D||(D={});const P=Object.keys(T.attrs).length!==0?NX({props:T.attrs},D):D,A=f.isValidElement(P),B=A&&_C(T,!0)&&!T.voidElement,z=c&&typeof P=="object"&&P.dummy&&!A,R=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,T.name);if(typeof P=="string"){const $=n.services.interpolator.interpolate(P,m,n.language);N.push($)}else if(_C(P)||B){const $=x(P,T,S);C(P,$,N,M)}else if(z){const $=b(E,T.children,S);C(P,$,N,M)}else if(Number.isNaN(parseFloat(T.name)))if(R){const $=x(P,T,S);C(P,$,N,M,T.voidElement)}else if(r.transSupportBasicHtmlNodes&&i.indexOf(T.name)>-1)if(T.voidElement)N.push(f.createElement(T.name,{key:"".concat(T.name,"-").concat(M)}));else{const $=b(E,T.children,S);N.push(f.createElement(T.name,{key:"".concat(T.name,"-").concat(M)},$))}else if(T.voidElement)N.push("<".concat(T.name," />"));else{const $=b(E,T.children,S);N.push("<".concat(T.name,">").concat($,"</").concat(T.name,">"))}else if(typeof P=="object"&&!A){const $=T.children[0]?L:null;$&&N.push($)}else C(P,L,N,M,T.children.length!==1||!L)}else if(T.type==="text"){const D=r.transWrapTextNodes,P=o?r.unescape(n.services.interpolator.interpolate(T.content,m,n.language)):n.services.interpolator.interpolate(T.content,m,n.language);D?N.push(f.createElement(D,{key:"".concat(T.name,"-").concat(M)},P)):N.push(P)}return N},[])}const g=b([{dummy:!0,children:e||[]}],p,Cp(e||[]));return IC(g[0])}function IX(e){let{children:t,count:n,parent:r,i18nKey:s,context:o,tOptions:i={},values:c,defaults:u,components:h,ns:p,i18n:m,t:x,shouldUnescape:C,...b}=e;const g=m||NC();if(!g)return px("You will need to pass in an i18next instance by using i18nextReactModule"),t;const k=x||g.t.bind(g)||(z=>z);o&&(i.context=o);const j={...xM(),...g.options&&g.options.react};let S=p||k.ns||g.options&&g.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"];const E=wM(t,j),N=u||E||j.transEmptyNodeValue||s,{hashTransKey:T}=j,M=s||(T?T(E||N):E||N);g.options&&g.options.interpolation&&g.options.interpolation.defaultVariables&&(c=c&&Object.keys(c).length>0?{...c,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});const L=c||n!==void 0?i.interpolation:{interpolation:{...i.interpolation,prefix:"#$?",suffix:"?$#"}},D={...i,count:n,...c,...L,defaultValue:N,ns:S},P=M?k(M,D):N;h&&Object.keys(h).forEach(z=>{const R=h[z];if(typeof R.type=="function"||!R.props||!R.props.children||P.indexOf("".concat(z,"/>"))<0&&P.indexOf("".concat(z," />"))<0)return;function $(){return f.createElement(f.Fragment,null,R)}h[z]=f.createElement($)});const A=_X(h||t,P,g,j,D,C),B=r!==void 0?r:j.defaultTransParent;return B?f.createElement(B,b,A):A}const TX={type:"3rdParty",init(e){CX(e.options.react),SX(e)}},kM=f.createContext();class MX{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Ps(e){let{children:t,count:n,parent:r,i18nKey:s,context:o,tOptions:i={},values:c,defaults:u,components:h,ns:p,i18n:m,t:x,shouldUnescape:C,...b}=e;const{i18n:g,defaultNS:k}=f.useContext(kM)||{},j=m||g||NC(),S=x||j&&j.t.bind(j);return IX({children:t,count:n,parent:r,i18nKey:s,context:o,tOptions:i,values:c,defaults:u,components:h,ns:p||S&&S.ns||k||j&&j.options&&j.options.defaultNS,i18n:j,t:x,shouldUnescape:C,...b})}const LX=(e,t)=>{const n=f.useRef();return f.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function jM(e,t,n,r){return e.getFixedT(t,n,r)}function DX(e,t,n,r){return f.useCallback(jM(e,t,n,r),[e,t,n,r])}function wt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=f.useContext(kM)||{},o=n||r||NC();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new MX),!o){px("You will need to pass in an i18next instance by using initReactI18next");const T=(L,D)=>typeof D=="string"?D:D&&typeof D=="object"&&typeof D.defaultValue=="string"?D.defaultValue:Array.isArray(L)?L[L.length-1]:L,M=[T,{},!1];return M.t=T,M.i18n={},M.ready=!1,M}o.options.react&&o.options.react.wait!==void 0&&px("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...xM(),...o.options.react,...t},{useSuspense:c,keyPrefix:u}=i;let h=e||s||o.options&&o.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(h);const p=(o.isInitialized||o.initializedStoreOnce)&&h.every(T=>bX(T,o,i)),m=DX(o,t.lng||null,i.nsMode==="fallback"?h:h[0],u),x=()=>m,C=()=>jM(o,t.lng||null,i.nsMode==="fallback"?h:h[0],u),[b,g]=f.useState(x);let k=h.join();t.lng&&(k="".concat(t.lng).concat(k));const j=LX(k),S=f.useRef(!0);f.useEffect(()=>{const{bindI18n:T,bindI18nStore:M}=i;S.current=!0,!p&&!c&&(t.lng?yM(o,t.lng,h,()=>{S.current&&g(C)}):vM(o,h,()=>{S.current&&g(C)})),p&&j&&j!==k&&S.current&&g(C);function L(){S.current&&g(C)}return T&&o&&o.on(T,L),M&&o&&o.store.on(M,L),()=>{S.current=!1,T&&o&&T.split(" ").forEach(D=>o.off(D,L)),M&&o&&M.split(" ").forEach(D=>o.store.off(D,L))}},[o,k]);const E=f.useRef(!0);f.useEffect(()=>{S.current&&!E.current&&g(x),E.current=!1},[o,u]);const N=[b,o,p];if(N.t=b,N.i18n=o,N.ready=p,p||!p&&!c)return N;throw new Promise(T=>{t.lng?yM(o,t.lng,h,()=>T()):vM(o,h,()=>T())})}const OX={calendar:{Day:"Day",Days:"Days",Month:"Month",Months:"Months",Week:"Week",Weeks:"Weeks",Year:"Year",Years:"Years","and older":"and older"},collections:{"Add Collection":"Add Collection","Add a description for your collection":"Add a description for your collection","Add default menu, tab and board":"Add default menu, tab and board","Are you sure you want to delete this collection?":"Are you sure you want to delete this collection?","Collection Options":"Collection Options","Collection Title":"Collection Title",Collections:"Collections","Current Collection":"Current Collection","Delete Collection":"Delete Collection","Delete all menu items within this collection":"Delete all menu items within this collection","Deleting the collection will remove it permanently. You can also choose to delete all menu and clips items within the collection by checking the box below.":"Deleting the collection will remove it permanently. You can also choose to delete all menu and clips items within the collection by checking the box below.",Description:"Description","Display full name of selected collection on the navigation bar":"Display full name of selected collection on the navigation bar","Enter collection title":"Enter collection title","Manage Collections":"Manage Collections","Show collection name on the navbar":"Show collection name on the navbar","Switch collections":"Switch collections","You can add the selected text to your clips or menu. Please select the option below.":"You can add the selected text to your clips or menu. Please select the option below.","You need to select a different collection before deleting the current one.":"You need to select a different collection before deleting the current one."},common:{"":""," No":" No"," This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.":" This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.","About PasteBar":"About PasteBar","About PasteBar Pro":"About PasteBar Pro","Action Menu":"Action Menu","Add <b>{{Clipboard}}</b> field to template. This allows you to copy text to the clipboard, and it will be inserted into the template":"Add <b>{{Clipboard}}</b> field to template. This allows you to copy text to the clipboard, and it will be inserted into the template","Add Clip":"Add Clip","Add First Option":"Add First Option","Add License":"Add License","Add Link Card":"Add Link Card","Add Menu":"Add Menu","Add Option":"Add Option","Add PasteBar to Accessibility":"Add PasteBar to Accessibility","Add to":"Add to","Add to Clips":"Add to Clip","Add to Clips or Menu":"Add to Clips or Menu","Add to Menu":"Add to Menu","Add to clip or menu":"Add to clip or menu","Add to template fields":"Add to template fields","Allow PasteBar to Copy and Paste from Clipboard":"Allow PasteBar to Copy and Paste from Clipboard","Are you sure you want to delete?":"Are you sure you want to delete?","Are you sure?":"Are you sure?",Back:"Back","Build on {{buildDate}}":"Build on {{buildDate}}",Cancel:"Cancel","Cancel Reset":"Cancel Reset",Check:"Check","Check / Done":"Check / Done","Check and Close":"Check and Close","Check and Done":"Check and Done","Check for Updates":"Check for Updates","Clear found results and filters":"Clear found results and filters","Click to Confirm":"Click to Confirm",Clip:"Clip",Clipboard:"Clipboard","Clipboard History":"Clipboard History","Clipboard History Settings":"Clipboard History Settings",Close:"Close","Close Edit":"Close Edit","Close Find":"Close Find","Close Large View Edit":"Close Large View Edit",Confirm:"Confirm","Confirm action":"Confirm action","Confirm Delete":"Confirm Delete","Confirm Email":"Confirm Email","Confirm Passcode":"Confirm Passcode","Confirm Password":"Confirm Password","Confirm Remove":"Confirm Remove","Confirm Your Passcode":"Confirm Your Passcode","Confirm license remove":"Confirm license remove","Confirm passcode reset":"Confirm passcode reset","Confirm password reset":"Confirm password reset","Confirm password reset action":"Confirm password reset action","Confirm remove license":"Confirm remove license","Confirm your action":"Confirm your action","Confirm {{action}}":"Confirm {{action}}",Copied:"Copied",Copy:"Copy","Copy & Paste":"Copy & Paste","Copy and Paste":"Copy and Paste","Copy of ":"Copy of ","Copy to Clipboard":"Copy to Clipboard",Create:"Create",Created:"Created","Delay Next":"Delay Next",Delete:"Delete","Deselect All":"Deselect All","Deselect pinned":"Deselect pinned","Digits Only Passcode":"Digits Only Passcode",Disabled:"Disabled",Done:"Done","Done Adding":"Done Adding","Done Edit":"Done Edit","Done Reorder":"Done Reorder",Drag:"Drag","Drag to Move":"Drag to Move","Drop To Add":"Drop To Add","Drop Zone":"Drop Zone",Edit:"Edit","Edit Label":"Edit Label","Edit name":"Edit name",Emoji:"Emoji",Empty:"Empty","Empty Select":"Empty Select","Enable / Disable":"Enable / Disable","Enable PasteBar in Accessibility Settings":"Enable PasteBar in Accessibility Settings",Enabled:"Enabled","Enter Current Passcode":"Enter Current Passcode","Enter Digits Only Passcode":"Enter Digits Only Passcode","Enter Email":"Enter Email","Enter Passcode":"Enter Passcode","Enter Password":"Enter Password","Enter Recovery Email":"Enter Recovery Email","Enter Recovery Password":"Enter Recovery Password","Enter passcode or password to unlock":"Enter passcode or password to unlock","Expires on {{licenseExpInDays}}":"Expires on {{licenseExpInDays}}","Expires on {{proExpiresOn}}":"Expires on {{proExpiresOn}}","Field <b>{{Clipboard}}</b> has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template":"Field <b>{{Clipboard}}</b> has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template","Field is not found in the template":"Field is not found in the template","Find Clip":"Find Clip","Find History":"Find History","Found in template but missing from fields definition":"Found in template but missing from fields definition","Got it":"Got it","Hide Muli Select":"Hide Muli Select","Hide Pinned Board":"Hide Pinned Board",Image:"Image","Image Scale {{ImageScale}}x":"Image Scale {{ImageScale}}x","Image size":"Image size","Image size in pixels":"Image size in pixels","In Large View":"In Large View",Inactive:"Inactive","Large View":"Large View","Large View Edit":"Large View Edit",Later:"Later","License Expired":"License Expired",Light:"Light","Lines Wrap":"Lines Wrap","Make Active":"Make Active","Make Disabled":"Make Disabled","Make Enabled":"Make Enabled","Make Inactive":"Make Inactive",Manage:"Manage","Move Down":"Move Down","Move Up":"Move Up","Multi Select":"Multi Select","Next Delay":"Next Delay",No:"No","No Wrap":"No Wrap","Not found in the template":"Not found in the template","Nothing found":"Nothing found","Number of lines":"Number of lines","Ok, but later":"Ok, but later",Open:"Open","Open Accessibility":"Open Accessibility","Open Window":"Open Window",Options:"Options",Password:"Password","Paste Delay":"Paste Delay","Paste Menu":"Paste Menu","Paste in {{pastingCountDown}}...":"Paste in {{pastingCountDown}}...",PasteBar:"PasteBar","PasteBar Pro":"PasteBar Pro","PasteBar application now can access the clipboard and perform copy and paste operations across applications.":"PasteBar application now can access the clipboard and perform copy and paste operations across applications.","PasteBar was successfuly added to Accessibility settings":"PasteBar was successfuly added to Accessibility settings",Pasted:"Pasted",Path:"Path","Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.":"Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.","Pin Selected":"Pin Selected",Pinned:"Pinned","Please add PasteBar to the list of apps in":"Please add PasteBar to the list of apps in","Please confirm your action!":"Please confirm your action!",Press:"Press","Press ESC key to close":"Press ESC key to close",Pro:"Pro",Quit:"Quit","Rebuild Menu":"Rebuild Menu","Recent History":"Recent History","Recovery Email":"Recovery Email","Recovery Password":"Recovery Password","Register License":"Register License",Remove:"Remove","Remove License":"Remove License","Remove Link Card":"Remove Link Card","Remove Selected Star":"Remove Selected Star","Remove all fields from template":"Remove all fields from template","Remove from template":"Remove from template",Rename:"Rename","Reorder pinned":"Reorder pinned",Reset:"Reset","Reset Passcode":"Reset Passcode","Reset Password":"Reset Password","Reset with Passcode":"Reset with Passcode","Reverse Order":"Reverse Order","Run and Copy Response":"Run and Copy Response","Run and Paste Response":"Run and Paste Response",Running:"Running",Save:"Save","Save It!":"Save It!",Saved:"Saved","Scroll to Top":"Scroll to Top",Second:"Second",Seconds:"Seconds",Select:"Select","Select Default Option":"Select Default Option","Select Language":"Select Language","Select default":"Select default","Select is Empty":"Select is Empty","Select is empty":"Select is empty","Select option":"Select option","Select pinned":"Select pinned","Sequence Copy":"Sequence Copy","Sequence Copy Paste":"Sequence Copy Paste","Sequence Delay Next":"Sequence Delay Next","Sequence Next Delay":"Sequence Next Delay","Sequence Paste":"Sequence Paste","Sequence Reverse Order":"Sequence Reverse Order",Set:"Set","Set Email":"Set Email","Set License":"Set License","Set Password":"Set Password","Show Large View":"Show Large View","Show all":"Show all",Star:"Star","Star Selected":"Star Selected","Success!":"Success!","Swap Panels Layout":"Swap Panels Layout","System Settings -> Privacy & Security -> Accessibility":"System Settings -> Privacy & Security -> Accessibility","Thank you for using Pro":"Thank you for using Pro","This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.":"This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.","Too long":"Too long","Too short":"Too short",Toolbar:{"Blank Text Formatting":"Blank Text Formatting","Bold Formatting":"Bold Formatting","Bold Text Formatting":"Bold Text Formatting","Copy and Paste Formatting":"Copy and Paste Formatting","Header Formatting":"Header Formatting","Hightlight Text Formatting":"Hightlight Text Formatting","Italic Formatting":"Italic Formatting","Masked Text Formatting":"Masked Text Formatting","Remove Text Formatting":"Remove Text Formatting"},Type:{App:"App","Auto Fill":"Auto Fill",AutoFill:"AutoFill",Clip:"Clip",Code:"Code","Code Snippet":"Code Snippet",Command:"Command",Email:"Email",Emoji:"Emoji",Empty:"Empty",Error:"Error","File, Path or App":"File, Path or App","Form Auto Fill":"Form Auto Fill",Image:"Image",Label:"Label",Link:"Link","Link or Email":"Link or Email",Menu:"Menu",Path:"Path","Plain Text":"Plain Text",Request:"Request","Run Auto Fill":"Run Auto Fill",Scraper:"Scraper",Secret:"Secret","Shell Command":"Shell Command",Template:"Template","Template Fill":"Template Fill",Text:"Text",Video:"Video","Web Request (HTTP)":"Web Request (HTTP)","Web Scraper / Parser":"Web Scraper / Parser"},TypeMenu:{"Clip Type":"Clip Type","Code Snippet":"Code Snippet","File, Path or App":"File, Path or App","Form Auto Fill":"Form Auto Fill",Image:"Image","Link or Email":"Link or Email","Link or File, Path or App":"Link or File, Path or App","Plain Text":"Plain Text","Run, Execute":"Run, Execute","Select Language":"Select Language","Shell Command":"Shell Command",Template:"Template","Template Fill":"Template Fill","Text Template":"Text Template","Web Request (HTTP)":"Web Request (HTTP)","Web Scraper / Parser":"Web Scraper / Parser"},"UnPin All":"UnPin All","UnPin Selected":"UnPin Selected","Unlock Application Screen":"Unlock Application Screen","Unlock Pro features":"Unlock Pro features","Unlock Screen":"Unlock Screen","Unlock all features":"Unlock all features","Unsaved label":"Unsaved label","Update history list":"Update history list",Updated:"Updated","Upgrade to Pro":"Upgrade to Pro","Upgrade to Pro \u{1F680}":"Upgrade to Pro \u{1F680}","Use Passcode":"Use Passcode","Use Password":"Use Password","Using <b>{{Clipboard}}</b> field, allows you to copy text to the clipboard, and it will be inserted into the template":"Using <b>{{Clipboard}}</b> field, allows you to copy text to the clipboard, and it will be inserted into the template",Verify:"Verify","Verify Current Password":"Verify Current Password","Verify Recovery Password":"Verify Recovery Password","Version: 1.0.0":"Version: 1.0.0",Views:{"Paste Menu":"Paste Menu"},Yes:"Yes",chars:"chars",found:"found","license Expired":"license Expired",lines:"lines","menu items in":"menu items in",minutes:"minutes",second:"second",seconds:"seconds","show less":"show less"},contextMenus:{Activate:"Activate","Add Board":"Add Board","Add Clip":"Add Clip","Add First Tab":"Add First Tab","Add Item":"Add Item","Add Link Card":"Add Link Card","Add New":"Add New","Add New After":"Add New After","Add New Item":"Add New Item","Add Tab":"Add Tab","Add to":"Add to","Add to Menu":"Add to Menu",AddTo:{"Clip on Board":"Clip on Board","Paste Menu":"Paste Menu"},"Board Icon":"Board Icon","Clip Icon":"Clip Icon","Close Edit":"Close Edit","Close Large":"Close Large","Close Large View":"Close Large View","Copy & Paste":"Copy & Paste","Copy To":"Copy To",CopyTo:{Board:"Board",Tab:"Tab"},"Custom Icon":"Custom Icon",Dashboard:"Dashboard","Delete Board":"Delete Board","Delete Clip":"Delete Clip",Deselect:"Deselect","Detected Language":"Detected Language",Duplicate:"Duplicate","Edit Board":"Edit Board","Edit Clip":"Edit Clip","Edit Label":"Edit Label","Edit Tabs":"Edit Tabs","Edit Value":"Edit Value",Hide:"Hide","Hide Details":"Hide Details","Hide Subtitle":"Hide Subtitle","Icon Visibility":"Icon Visibility","Large View":"Large View","Link To Clip":"Link To Clip","Locate Clip":"Locate Clip","Locate Menu":"Locate Menu","Make Disabled":"Make Disabled","Make Enabled":"Make Enabled","Make Inactive":"Make Inactive",Manage:"Manage","Mask Secret":"Mask Secret",Menu:"Menu","Menu is Not Active":"Menu is Not Active","Move Board To":"Move Board To",MoveTo:{Board:"Board",Tab:"Tab"},"Open Link in Browser":"Open Link in Browser",Organize:"Organize","Organize Layout":"Organize Layout","Paste Delay":"Paste Delay","Paste Menu":"Paste Menu",Pin:"Pin",RESET:"RESET","Remove Link Card":"Remove Link Card","Remove Star":"Remove Star","Save as Image File":"Save as Image File","Save as Text File":"Save as Text File",Select:"Select","Select Icon":"Select Icon",Separator:"Separator",Show:"Show","Show Details":"Show Details","Show Large View":"Show Large View","Show Subtitle":"Show Subtitle",Star:"Star",Submenu:"Submenu",UnPin:"UnPin","UnPin Clip":"UnPin Clip","Unmask Secret":"Unmask Secret","not a code":"not a code"},dashboard:{"API Key":"API Key",Add:"Add","Add Auth":"Add Auth","Add Clipboard Value":"Add Clipboard Value","Add Custom":"Add Custom","Add Custom Field":"Add Custom Field","Add Delay Time":"Add Delay Time","Add First Board":"Add First Board","Add Form Field":"Add Form Field","Add Header":"Add Header","Add Key Press":"Add Key Press","Add Link Card":"Add Link Card","Add Open URL":"Add Open URL","Add Output Template":"Add Output Template","Add Regex Match Group Filter":"Add Regex Match Group Filter","Add Request Header":"Add Request Header","Add Response Filter":"Add Response Filter","Add Scraping Rule":"Add Scraping Rule","Add Section":"Add Section","Add Tab":"Add Tab","Add Template Field":"Add Template Field","Add a Tab":"Add a Tab","Add field <b>&#123;&#123;<b>{{name}}</b>&#125;&#125;</b> into the template":"Add field <b>&#123;&#123;<b>{{name}}</b>&#125;&#125;</b> into the template","Add field <b>{{<b>{{name}}</b>}}</b> into the template":"Add field <b>{{<b>{{name}}</b>}}</b> into the template","Add image":"Add image","Add note":"Add note","Add to Board":"Add to Board","Add {{type}}":"Add {{type}}","All field labels must be unique to ensure they are correctly used within the template.":"All field labels must be unique to ensure they are correctly used within the template.","Are you sure you want to delete <strong>{{boardName}}</strong> board?":"Are you sure you want to delete <strong>{{boardName}}</strong> board?","Are you sure you want to delete <strong>{{tabName}}</strong> tab?":"Are you sure you want to delete <strong>{{tabName}}</strong> tab?","Are you sure you want to delete?":"Are you sure you want to delete?","Are you sure you want to remove image from the clip?":"Are you sure you want to remove image from the clip?",Auth:"Auth","Auto update is Off":"Auto update is Off","Basic Auth":"Basic Auth","Basic Password":"Basic Password","Basic Username":"Basic Username","Bearer Token":"Bearer Token","Board Layout Height":"Board Layout Height","Board Layout Split":"Board Layout Split","Board Menu":"Board Menu","Board is Not Empty":"Board is Not Empty",Boards:"Boards","Border Width":"Border Width","CSS Selector":"CSS Selector",Cancel:"Cancel","Change Layout":"Change Layout","Change color":"Change color",Clear:"Clear","Clear All Fields":"Clear All Fields","Click To Add":"Click To Add","Clip Menu":"Clip Menu","Clip Options":"Clip Options",Clipboard:"Clipboard",Clips:{App:"App","Clip Menu":"Clip Menu",Clips:"Clips",Link:"Link"},"Close Edit":"Close Edit",Command:{error:"error",output:"output"},"Command error":"Command error","Common Fields":"Common Fields","Confirm Clear All Fields":"Confirm Clear All Fields","Confirm to remove Auth":"Confirm to remove Auth","Confirm to remove filters":"Confirm to remove filters","Confirm to remove headers":"Confirm to remove headers","Copy Clip":"Copy Clip","Create Board":"Create Board","Create Tab":"Create Tab","Create tab":"Create tab",Dashboard:"Dashboard",Delay:"Delay","Delete Board":"Delete Board","Delete Clip":"Delete Clip","Delete Tab":"Delete Tab","Delete board":"Delete board","Delete field":"Delete field","Delete tab":"Delete tab","Detect Template Fields":"Detect Template Fields","Detect for Template Fields":"Detect for Template Fields","Done Create Clip":"Done Create Clip","Done Edit":"Done Edit","Done Edit Tabs":"Done Edit Tabs","Done Organize":"Done Organize","Drag & Drop Path":"Drag & Drop Path","Drop To Add":"Drop To Add","Drop image file here, or use a separate window for drag and drop.":"Drop image file here, or use a separate window for drag and drop.","Drop to Pin":"Drop to Pin","Edit Note":"Edit Note","Edit Template":"Edit Template","Edit name":"Edit name","Edit subtitle":"Edit subtitle","Edit tab name":"Edit tab name","Enable / Disable":"Enable / Disable","Enable / Disable URL Open":"Enable / Disable URL Open","Enter Label":"Enter Label","Enter URL":"Enter URL","Enter board subtitle or description":"Enter board subtitle or description","Enter board title":"Enter board title","Enter clip name":"Enter clip name","Enter clip note":"Enter clip note","Enter code":"Enter code","Enter credit card number":"Enter credit card number","Enter default value":"Enter default value","Enter field value":"Enter field value","Enter full path to file, folder or application":"Enter full path to file, folder or application","Enter regex for output filer":"Enter regex for output filer","Enter request url":"Enter request url","Enter secret value":"Enter secret value","Enter section label":"Enter section label","Enter select option":"Enter select option","Enter tab name":"Enter tab name","Enter template or drag from history":"Enter template or drag from history","Enter template value":"Enter template value","Enter value or drag from history":"Enter value or drag from history","Enter web link or email":"Enter web link or email",Errors:{"No fields found in the template.":"No fields found in the template.","Please fix output template or confirm to save as is.":"Please fix output template or confirm to save as is.","Please fix template fields or confirm to save as is.":"Please fix template fields or confirm to save as is.","Please fix the problem or confirm to save as is.":"Please fix the problem or confirm to save as is.","Please verify your link for any errors, or confirm to save as is.":"Please verify your link for any errors, or confirm to save as is.","Please verify your path for any errors, or confirm to save as is.":"Please verify your path for any errors, or confirm to save as is.","Your command runs with errors, confirm you want to save as is.":"Your command runs with errors, confirm you want to save as is.","Your request runs with errors, confirm you want to save as is.":"Your request runs with errors, confirm you want to save as is."},FILTERED_TYPES:{"Dot Path":"Dot Path","JSON Path":"JSON Path",RegEx:"RegEx","RegEx Replace":"RegEx Replace","Remove Quotes":"Remove Quotes"},Field:"Field","Field Options":"Field Options","Fields Value":"Fields Value","File, folder or app path does not exist":"File, folder or app path does not exist","File, folder or app path is valid":"File, folder or app path is valid","File, folder or app path might not be valid":"File, folder or app path might not be valid","Fill Template":"Fill Template","Filter Type":"Filter Type","Filter's Value":"Filter's Value","Find in Clip":"Find in Clip","Find in clip":"Find in clip","Find in history":"Find in history","Form Fields":"Form Fields","General Fields":"General Fields",HTML:"HTML",Headers:"Headers","Hide Label":"Hide Label","History capture is off":"History capture is off","Key Press":"Key Press","Key Press After":"Key Press After","Label Left":"Label Left","Label Top":"Label Top","Label on Left":"Label on Left",Labels:"Labels","Last run":"Last run","Last update":"Last update","Layout Max Width":"Layout Max Width",Name:"Name","New Board":"New Board","New Clip":"New Clip","No Boards":"No Boards","No Clipboard History":"No Clipboard History","No Tabs or Boards":"No Tabs or Boards","Number of columns":"Number of columns",Open:"Open","Open URL Disable / Enable":"Open URL Disable / Enable","Output Template":"Output Template","Please confirm to save as is.":"Please confirm to save as is.",Press:"Press",RETURN_POSITION_TYPES:{"First Only":"First Only","Last Only":"Last Only"},RULES_TYPES:{"CSS Selector":"CSS Selector","RegEx Find":"RegEx Find","RegEx Group Match":"RegEx Group Match","RegEx Match":"RegEx Match","RegEx Replace":"RegEx Replace"},"RegEx Find":"RegEx Find","RegEx Match":"RegEx Match","RegEx Match Group":"RegEx Match Group","RegEx Replace":"RegEx Replace","Regex Match Group Filter":"Regex Match Group Filter","Remove Open URL":"Remove Open URL","Remove headers":"Remove headers","Remove image":"Remove image","Reset to Defaults":"Reset to Defaults","Response Filters":"Response Filters",Result:"Result",SEPARATOR_TYPES:{"Comma (,)":"Comma (,)","New Line (\\n)":"New Line (\\n)","Pipe (|)":"Pipe (|)","Semicolon (;)":"Semicolon (;)","Space (' ')":"Space (' ')","Tab (\\t)":"Tab (\\t)"},"Save as Defaults":"Save as Defaults","Scan for Template Fields":"Scan for Template Fields","Select Color":"Select Color","Select Default Option":"Select Default Option","Select Option":"Select Option","Select Options":"Select Options","Show Label":"Show Label","Special Field":"Special Field",Subtitle:"Subtitle",Tab:"Tab","Tab is Not Empty":"Tab is Not Empty","Tabs Menu":"Tabs Menu",Template:"Template","Template Edit":"Template Edit","Template Fields":"Template Fields","Template should have\u2800<b>{{output}}</b>\u2800placeholder.":"Template should have\u2800<b>{{output}}</b>\u2800placeholder.","Test Request":"Test Request","Test Run":"Test Run",Text:"Text","This action cannot be undone.":"This action cannot be undone.","This field allows to insert text from clipboard":"This field allows to insert text from clipboard","Too long":"Too long","Too short":"Too short","Turn On auto update":"Turn On auto update","Turn on history capture":"Turn on history capture",Type:{Command:"Command",Request:"Request",Scraper:"Scraper"},URL:"URL","Unsaved subtitle":"Unsaved subtitle","Unsaved title":"Unsaved title","Update Link Card":"Update Link Card","Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.":"Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.",Value:"Value",Values:"Values","Vertical Split":"Vertical Split","We need to open a new window where you can drag & drop file, path or application.":"We need to open a new window where you can drag & drop file, path or application.","Web Link or Email might not be valid":"Web Link or Email might not be valid","Web or Email link is valid":"Web or Email link is valid","Website URL":"Website URL","Website URL is valid":"Website URL is valid","Website URL might not be valid":"Website URL might not be valid","Wrap output using {{output}} placeholder":"Wrap output using {{output}} placeholder","You have no rules added":"You have no rules added","You'll need to clear this board of all clips and subboards before it can be deleted.":"You'll need to clear this board of all clips and subboards before it can be deleted.","You'll need to clear this tab of all boards before it can be deleted.":"You'll need to clear this tab of all boards before it can be deleted.","filled template":"filled template","new clips":"new clips",template:"template","{{count}} fields found in template but missing from fields definition._one":"{{count}} fields found in template but missing from fields definition.","{{count}} fields found in template but missing from fields definition._other":"{{count}} fields found in template but missing from fields definition.","{{count}} fields not found in the template._one":"{{count}} fields not found in the template.","{{count}} fields not found in the template._other":"{{count}} fields not found in the template.","{{type}} Field":"{{type}} Field","{{type}} field":"{{type}} field"},history:{"All Clipboard History Settings":"All Clipboard History Settings","All History Settings":"All History Settings","All done! History's been cleared.":"All done! History's been cleared.","Auto Update on Capture":"Auto Update on Capture","Auto-Clear Settings":"Auto-Clear Settings","Capture History":"Capture History",Clear:"Clear","Clear All":"Clear All","Clear All History":"Clear All History","Clear History":"Clear History","Confirm Clear All History":"Confirm Clear All History","Do you really want to remove ALL clipboard history items?":"Do you really want to remove ALL clipboard history items?","Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}":"Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}","Enable Capture History":"Enable Capture History",Filters:{"Clear Filters":"Clear Filters",Code:"Code",Emoji:"Emoji",Image:"Image","Language Filters":"Language Filters",Languages:"Languages","Languages Filter":"Languages Filter","Languages Filters":"Languages Filters",Link:"Link",Pinned:"Pinned",Secret:"Secret","Select Filters":"Select Filters",Starred:"Starred",Text:"Text",Video:"Video"},"Hide pinned history":"Hide pinned history","History Settings":"History Settings","Paste Menu":"Paste Menu","Select Filters":"Select Filters","View pinned history":"View pinned history","{{isAll}} Clipboard History":"{{isAll}} Clipboard History"},menus:{"Add First Item":"Add First Item","Add Item":"Add Item","Add item":"Add item","Close Edit":"Close Edit","Create Menu":"Create Menu","Delete Menu":"Delete Menu","Disabled Item":"Disabled Item","Disabled Menu":"Disabled Menu","Drag items to reorder, double click to rename":"Drag items to reorder, double click to rename","Enter menu label":"Enter menu label","Find in menu":"Find in menu","Link to Clip":"Link to Clip",Menu:"Menu","Menu Item":"Menu Item","Menu Options":"Menu Options","Menu Type":"Menu Type","Menu is a link to a clip":"Menu is a link to a clip","Menu is link to a clip and cannot be renamed. Please rename its linked clip.":"Menu is link to a clip and cannot be renamed. Please rename its linked clip.",Menus:"Menus","New Menu":"New Menu","No Menu Items":"No Menu Items","No {{hasActive}} menu items in":"No {{hasActive}} menu items in","Select item to add a menu after":"Select item to add a menu after",Separator:"Separator",Submenu:"Submenu","Toggle inactive menu items":"Toggle inactive menu items",active:"active","menu items in":"menu items in"},navbar:{"Close Main Window":"Close Main Window","Color Theme":"Color Theme",GlobalSearch:{"Auto Close on Copy & Paste":"Auto Close on Copy & Paste","Excludes clip or menu values":"Excludes clip or menu values","Nothing found in boards.":"Nothing found in boards.","Nothing found in clips, boards or menus.":"Nothing found in clips, boards or menus.","Nothing found in clips.":"Nothing found in clips.","Nothing found in menus.":"Nothing found in menus.","Press / key to search":"Press / key to search",Search:"Search","Search Name or Label Only":"Search Name or Label Only","Search Options":"Search Options","Type what you looking for":"Type what you looking for"},Language:"Language","Lock App Screen":"Lock App Screen",Options:"Options","Show Collections Name":"Show Collections Name","Swap Panels Layout":"Swap Panels Layout",Theme:{Dark:"Dark",Light:"Light",System:"System"},View:"View",Window:{"Close Window":"Close Window","Maximize Window":"Maximize Window","Minimize Window":"Minimize Window"}},pinned:{"Hide Pinned":"Hide Pinned",Pin:"Pin","Show Pinned":"Show Pinned"},settings:{"<strong>{{screenLockPassCodeLength}}</strong> digits passcode is set.":"<strong>{{screenLockPassCodeLength}}</strong> digits passcode is set.","Add a star to the copied text when you copy it twice within 1 second. This allows you to quickly add copied text or links to your favorites and easily find it in the clipboard history.":"Add a star to the copied text when you copy it twice within 1 second. This allows you to quickly add copied text or links to your favorites and easily find it in the clipboard history.","Add an unlimited number of tabs within each collection for better organization and easy access.":"Add an unlimited number of tabs within each collection for better organization and easy access.","Add an unlimited number of tabs within each collection for better organization and easy access. ":"Add an unlimited number of tabs within each collection for better organization and easy access. ","Advanced settings":"Advanced settings","Application Auto Start":"Application Auto Start","Application Color Theme":"Application Color Theme","Application License":"Application License","Application UI Color Theme":"Application UI Color Theme","Application UI Fonts Scale":"Application UI Fonts Scale","Application UI Language":"Application UI Language","Auto Disable History Capture when Screen Unlocked":"Auto Disable History Capture when Screen Unlocked","Auto Lock Application Screen on User Inactivity":"Auto Lock Application Screen on User Inactivity","Auto Lock Screen on User Inactivity":"Auto Lock Screen on User Inactivity","Auto Lock the Screen on User Inactivity":"Auto Lock the Screen on User Inactivity","Auto Masking Words List":"Auto Masking Words List","Auto update on capture":"Auto update on capture","Auto-Clear Settings":"Auto-Clear Settings","Auto-Preview Link on Hover":"Auto-Preview Link on Hover","Auto-Star on Double Copy":"Auto-Star on Double Copy","Auto-Update on Capture":"Auto-Update on Capture","Auto-delete clipboard history after":"Auto-delete clipboard history after",Back:"Back","By upgrading to <strong>PasteBar Pro</strong>, you'll gain access to:":"By upgrading to <strong>PasteBar Pro</strong>, you'll gain access to:","By upgrading to\xA0<strong>PasteBar Pro</strong>, you'll gain access to:":"By upgrading to\xA0<strong>PasteBar Pro</strong>, you'll gain access to:","Capture History":"Capture History","Change the application UI font size scale":"Change the application UI font size scale","Change the application UI language":"Change the application UI language","Change the application user interface color theme":"Change the application user interface color theme","Change the application user interface font size scale":"Change the application user interface font size scale","Change the application user interface language":"Change the application user interface language","Clipboard History Settings":"Clipboard History Settings","Complete details:":"Complete details:","Configure settings to automatically delete clipboard history items after a specified duration.":"Configure settings to automatically delete clipboard history items after a specified duration.","Create a preview card on link hover in the clipboard history. This allows you to preview the link before opening or pasting it.":"Create a preview card on link hover in the clipboard history. This allows you to preview the link before opening or pasting it.","Create an unlimited number of collections to organize your clips and menus.":"Create an unlimited number of collections to organize your clips and menus.","Custom themes":"Custom themes","Decrease UI Font Size":"Decrease UI Font Size","Display clipboard history capture toggle on the locked application screen. This allows you to control history capture settings directly from the lock screen.":"Display clipboard history capture toggle on the locked application screen. This allows you to control history capture settings directly from the lock screen.","Display disabled collections name on the navigation bar collections menu":"Display disabled collections name on the navigation bar collections menu","Display disabled collections name on the navigation bar under collections menu":"Display disabled collections name on the navigation bar under collections menu","Display full name of selected collection on the navigation bar":"Display full name of selected collection on the navigation bar","Email is not valid":"Email is not valid","Email:":"Email:","Emails do not match":"Emails do not match","Enable Auto Start":"Enable Auto Start","Enable application auto start on system boot":"Enable application auto start on system boot","Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.":"Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.","Enable auto lock the application screen when user not active":"Enable auto lock the application screen when user not active","Enable auto update on capture":"Enable auto update on capture","Enable history capture":"Enable history capture","Enable programming language detection":"Enable programming language detection","Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.":"Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.","Enhance security by automatically locking the application screen after a set period of user inactivity.":"Enhance security by automatically locking the application screen after a set period of user inactivity.","Enter Passcode length":"Enter Passcode length","Enter recovery password to reset passcode.":"Enter recovery password to reset passcode.","Enter your\xA0<strong>{{screenLockPassCodeLength}} digits</strong>\xA0passcode":"Enter your\xA0<strong>{{screenLockPassCodeLength}} digits</strong>\xA0passcode","Entered Passcode is invalid":"Entered Passcode is invalid","Execute Web Requests":"Execute Web Requests","Execute terminal or shell commands directly from PasteBar clip and copy the results to the clipboard.":"Execute terminal or shell commands directly from PasteBar clip and copy the results to the clipboard.","Expires:":"Expires:","Forgot Passcode ? Enter your recovery password to reset the passcode.":"Forgot Passcode ? Enter your recovery password to reset the passcode.","Forgot passcode ?":"Forgot passcode ?","Forgot?":"Forgot?","Forgot? Reset using Password":"Forgot? Reset using Password","Free License":"Free License","Get priority email support from us to resolve any issues or questions you may have about PasteBar.":"Get priority email support from us to resolve any issues or questions you may have about PasteBar.","Hint: {{screenLockRecoveryPasswordMasked}}":"Hint: {{screenLockRecoveryPasswordMasked}}","Id:":"Id:",'If you have a license key, you can add it here to unlock the Pro version with all available features. Please paste your license below and click "Add License" to upgrade.':'If you have a license key, you can add it here to unlock the Pro version with all available features. Please paste your license below and click "Add License" to upgrade.',"Incorrect passcode.":"Incorrect passcode.","Increase UI Font Size":"Increase UI Font Size","Issued:":"Issued:",License:"License","License ID:":"License ID:","License Id:":"License Id:","License Settings":"License Settings","License details":"License details","License details:":"License details:","License expires on {{date}}":"License expires on {{date}}","License expires:":"License expires:","License id:":"License id:","License information:":"License information:","License key":"License key","License key is not valid or malformed.":"License key is not valid or malformed.","License key is too short.":"License key is too short.","List each word or sentence on a new line.":"List each word or sentence on a new line.","Lock Screen Clipboard History Capture Control":"Lock Screen Clipboard History Capture Control","Lock Screen PassCode":"Lock Screen PassCode","Lock Screen Passcode":"Lock Screen Passcode","Manage Collections":"Manage Collections","Maximum 10 digits":"Maximum 10 digits","Maximum devices:":"Maximum devices:","Maxumum devices:":"Maxumum devices:","Minimal 4 digits":"Minimal 4 digits","Minimum number of lines to trigger detection":"Minimum number of lines to trigger detection","Name:":"Name:","Open Security Settings":"Open Security Settings","Passcode digits remaining":"Passcode digits remaining","Passcode is locked.":"Passcode is locked.","Passcode is not set":"Passcode is not set","Passcode is not valid":"Passcode is not valid","Passcode length":"Passcode length","Passcode mismatch":"Passcode mismatch","Passcode reset is locked.":"Passcode reset is locked.","Passcode successfully verified":"Passcode successfully verified","Passcode verification error":"Passcode verification error","Passcode verification is locked.":"Passcode verification is locked.","Password is incorrect.":"Password is incorrect.","Password is incorrect. <br/>{{screenLockRecoveryPasswordMasked}}":"Password is incorrect. <br/>{{screenLockRecoveryPasswordMasked}}","Password is incorrect. Hint: {{screenLockRecoveryPasswordMasked}}":"Password is incorrect. Hint: {{screenLockRecoveryPasswordMasked}}","Password is incorrect. Masked password is: {{screenLockRecoveryPasswordMasked}}":"Password is incorrect. Masked password is: {{screenLockRecoveryPasswordMasked}}","Password is incorrect. {{screenLockRecoveryPasswordMasked}}":"Password is incorrect. {{screenLockRecoveryPasswordMasked}}","Passwords do not match":"Passwords do not match","Paste your license below":"Paste your license below","Paste your license here":"Paste your license here","Paste your license key below":"Paste your license key below","PasteBar Settings":"PasteBar Settings","Please try again":"Please try again","Priority support":"Priority support","Pro license is activated":"Pro license is activated","Programming Language Detection":"Programming Language Detection","Programming language selection":"Programming language selection","Protect your data by requiring screen unlock authentication whenever the application starts.":"Protect your data by requiring screen unlock authentication whenever the application starts.","Recovery Email for Passcode and Password Reset":"Recovery Email for Passcode and Password Reset","Recovery Password for Lock Screen Passcode":"Recovery Password for Lock Screen Passcode","Recovery password is set.":"Recovery password is set.","Refresh Application UI":"Refresh Application UI","Register License":"Register License","Register a License":"Register a License","Require Screen Unlock at Application Start":"Require Screen Unlock at Application Start","Require screen unlock at application launch to enhance security. This setting ensures that only authorized users can access the application, protecting your data from unauthorized access right from the start.":"Require screen unlock at application launch to enhance security. This setting ensures that only authorized users can access the application, protecting your data from unauthorized access right from the start.","Reset Font Size":"Reset Font Size","Run Terminal or Shell Commands":"Run Terminal or Shell Commands","Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard.":"Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard.","Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard. ":"Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard. ",Security:"Security","Security Settings":"Security Settings","Send HTTP requests to web APIs or services and copy the response data to the clipboard.":"Send HTTP requests to web APIs or services and copy the response data to the clipboard.","Sensitive words or sentences listed below will automatically be masked if found in the copied text. Case insensitive.":"Sensitive words or sentences listed below will automatically be masked if found in the copied text. Case insensitive.","Set a passcode to unlock the locked screen and protect your data from unauthorized access.":"Set a passcode to unlock the locked screen and protect your data from unauthorized access.","Set a recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.":"Set a recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.",Settings:"Settings","Show Clipboard History Capture Control on Lock Screen":"Show Clipboard History Capture Control on Lock Screen","Show Disable History Capture When Screen Locked":"Show Disable History Capture When Screen Locked","Show Disabled Collections":"Show Disabled Collections","Show clipboard history capture toggle when the application screen is locked. This allow you to control capturing history settings from the application locked screen.":"Show clipboard history capture toggle when the application screen is locked. This allow you to control capturing history settings from the application locked screen.","Show collection name on the navbar":"Show collection name on the navbar","Show disabled collections on the navbar list":"Show disabled collections on the navbar list","Skip auto start prompt on app launch":"Skip auto start prompt on app launch","Stop Words List":"Stop Words List","Swap Panels Layout":"Swap Panels Layout","Switch the layout position of panels in Clipboard History and Paste Menu views":"Switch the layout position of panels in Clipboard History and Paste Menu views","Thank you again for using PasteBar.":"Thank you again for using PasteBar.","Thank you for testing! \u{1F680}":"Thank you for testing! \u{1F680}","Thank you for using PasteBar! We hope you're enjoying the free version. If you'd like to unlock all features and support our development, please consider upgrading to Pro version.":"Thank you for using PasteBar! We hope you're enjoying the free version. If you'd like to unlock all features and support our development, please consider upgrading to Pro version.","Thank you {{name}} for using Pro license.":"Thank you {{name}} for using Pro license.","Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license. Your license grants you access to all available features, priority support, and free updates until the license expires. Please find the complete details below.":"Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license. Your license grants you access to all available features, priority support, and free updates until the license expires. Please find the complete details below.","To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.":"To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.","Try after <strong>{{resetPassCodeNextDelay}}</strong> seconds":"Try after <strong>{{resetPassCodeNextDelay}}</strong> seconds","Try again after <strong>{{resetPassCodeNextDelay}}</strong> seconds":"Try again after <strong>{{resetPassCodeNextDelay}}</strong> seconds","Unlimited Collections":"Unlimited Collections","Unlimited Tabs per Collection":"Unlimited Tabs per Collection","Unlimited paste history":"Unlimited paste history","Use Password":"Use Password","User Preferences":"User Preferences","Web Scraping and Parsing":"Web Scraping and Parsing","Words or sentences listed below will not be captured in clipboard history if found in the copied text. Case insensitive.":"Words or sentences listed below will not be captured in clipboard history if found in the copied text. Case insensitive.","You have a Beta License. Usually, this is a temporary license that grants access to all current and new beta features. After this license expires, you will not have access to Pro features, and you will need to use a regular Pro license or renew your Beta license.":"You have a Beta License. Usually, this is a temporary license that grants access to all current and new beta features. After this license expires, you will not have access to Pro features, and you will need to use a regular Pro license or renew your Beta license.","You license is valid.":"You license is valid.","Your Pro license is activated":"Your Pro license is activated","Your license key":"Your license key","Your license key below":"Your license key below","in {{licenseExpInDays}} days":"in {{licenseExpInDays}} days","in {{licenseIssuedDaysAgo}} days":"in {{licenseIssuedDaysAgo}} days","license remove":"license remove","passcode reset":"passcode reset","password reset":"password reset","remove license":"remove license","{{licenseIssuedDaysAgo}} days ago":"{{licenseIssuedDaysAgo}} days ago"}},PX={settings:{"Change the application user interface font size scale":"Change the application user interface font size scale","Change the application user interface language":"Change the application user interface language"}},RX={calendar:{Day:"\u0414\u0435\u043D\u044C",Days:"\u0414\u043D\u0438",Month:"\u041C\u0435\u0441\u044F\u0446",Months:"\u041C\u0435\u0441\u044F\u0446\u044B",Week:"\u041D\u0435\u0434\u0435\u043B\u044F",Weeks:"\u041D\u0435\u0434\u0435\u043B\u0438",Year:"\u0413\u043E\u0434",Years:"\u0413\u043E\u0434\u044B","and older":"\u0438 \u0441\u0442\u0430\u0440\u0448\u0435"},collections:{"Add Collection":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044E","Add a description for your collection":"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0439 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Add default menu, tab and board":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u043D\u044E, \u0432\u043A\u043B\u0430\u0434\u043A\u0443 \u0438 \u0434\u043E\u0441\u043A\u0443 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Are you sure you want to delete this collection?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u0443 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044E?","Collection Options":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Collection Title":"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438",Collections:"\u041A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Current Collection":"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044F","Delete Collection":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044E","Delete all menu items within this collection":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043C\u0435\u043D\u044E \u0432 \u044D\u0442\u043E\u0439 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Deleting the collection will remove it permanently. You can also choose to delete all menu and clips items within the collection by checking the box below.":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043A \u0435\u0435 \u043F\u043E\u043B\u043D\u043E\u043C\u0443 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044E. \u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043C\u0435\u043D\u044E \u0438 \u043A\u043B\u0438\u043F\u043E\u0432 \u0432 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438, \u043E\u0442\u043C\u0435\u0442\u0438\u0432 \u0444\u043B\u0430\u0436\u043E\u043A \u043D\u0438\u0436\u0435.",Description:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435","Display full name of selected collection on the navigation bar":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Enter collection title":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Manage Collections":"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044F\u043C\u0438","Show collection name on the navbar":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Switch collections":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","You can add the selected text to your clips or menu. Please select the option below.":"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442 \u0432 \u0441\u0432\u043E\u0438 \u043A\u043B\u0438\u043F\u044B \u0438\u043B\u0438 \u043C\u0435\u043D\u044E. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0438\u0436\u0435.","You need to select a different collection before deleting the current one.":"\u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u0443\u044E \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044E \u043F\u0435\u0440\u0435\u0434 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u043C \u0442\u0435\u043A\u0443\u0449\u0435\u0439."},common:{" No":" \u041D\u0435\u0442","About PasteBar":"\u041E PasteBar","About PasteBar Pro":"\u041E PasteBar Pro","Action Menu":"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E","Add <b>{{Clipboard}}</b> field to template. This allows you to copy text to the clipboard, and it will be inserted into the template":"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E\u043B\u0435 <b>{{Clipboard}}</b> \u0432 \u0448\u0430\u0431\u043B\u043E\u043D. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0442\u0435\u043A\u0441\u0442 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430, \u0438 \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u0432 \u0448\u0430\u0431\u043B\u043E\u043D","Add Clip":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u041A\u043B\u0438\u043F","Add First Option":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0432\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","Add Link Card":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0441\u0441\u044B\u043B\u043A\u0438","Add Menu":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u041C\u0435\u043D\u044E","Add Option":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442","Add to":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432","Add to Clips":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u041A\u043B\u0438\u043F\u044B","Add to Clips or Menu":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u041A\u043B\u0438\u043F\u044B \u0438\u043B\u0438 \u041C\u0435\u043D\u044E","Add to Menu":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u041C\u0435\u043D\u044E","Add to clip or menu":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043B\u0438\u043F\u044B \u0438\u043B\u0438 \u043C\u0435\u043D\u044E","Add to template fields":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043F\u043E\u043B\u044F \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Are you sure you want to delete?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C?","Are you sure?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B?",Back:"\u041D\u0430\u0437\u0430\u0434",Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430","Check for Updates":"Check for Updates","Clear found results and filters":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u044B\u0435 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0438 \u0444\u0438\u043B\u044C\u0442\u0440\u044B","Click to Confirm":"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",Clip:"\u041A\u043B\u0438\u043F",Clipboard:"\u0411\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430","Clipboard History":"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0431\u0443\u0444\u0435\u0440\u0430","Clipboard History Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0418\u0441\u0442\u043E\u0440\u0438\u0438 \u0411\u0443\u0444\u0435\u0440\u0430",Close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","Close Edit":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Close Find":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u0438\u0441\u043A","Close Large View Edit":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",Confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C","Confirm Delete":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435","Confirm Passcode":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043A\u043E\u0434","Confirm Password":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C","Confirm passcode reset":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0441\u0431\u0440\u043E\u0441 \u043A\u043E\u0434\u0430","Confirm {{action}}":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C {{action}}",Copied:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","Copy & Paste":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","Copy and Paste":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","Copy of ":"\u041A\u043E\u043F\u0438\u044F ","Copy to Clipboard":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",Create:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C",Created:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E","Delay Next":"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E",Delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","Deselect All":"\u0421\u043D\u044F\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435","Deselect pinned":"\u0421\u043D\u044F\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u044B\u0445","Digits Only Passcode":"\u041A\u043E\u0434 \u0442\u043E\u043B\u044C\u043A\u043E \u0446\u0438\u0444\u0440\u044B",Disabled:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043E",Done:"\u0413\u043E\u0442\u043E\u0432\u043E","Done Adding":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435","Done Edit":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Done Reorder":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u043F\u043E\u0440\u044F\u0434\u043A\u0430",Drag:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C","Drag to Move":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u044F","Drop To Add":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F","Drop Zone":"\u0417\u043E\u043D\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F",Edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C","Edit Label":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435","Edit name":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043C\u044F",Emoji:"\u042D\u043C\u043E\u0434\u0436\u0438",Empty:"\u041F\u0443\u0441\u0442\u043E\u0439","Empty Select":"\u041F\u0443\u0441\u0442\u043E\u0439 \u0432\u044B\u0431\u043E\u0440","Enable / Disable":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C / \u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C",Enabled:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E","Enter Passcode":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430","Enter Password":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C","Enter Recovery Password":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F","Field <b>{{Clipboard}}</b> has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template":"\u041F\u043E\u043B\u0435 <b>{{Clipboard}}</b> \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0442\u0435\u043A\u0441\u0442 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430, \u0438 \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u0432 \u0448\u0430\u0431\u043B\u043E\u043D","Field is not found in the template":"\u041F\u043E\u043B\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435","Find Clip":"\u041D\u0430\u0439\u0442\u0438 \u043A\u043B\u0438\u043F","Find History":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u0438\u0441\u0442\u043E\u0440\u0438\u0438","Found in template but missing from fields definition":"\u041D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435, \u043D\u043E \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u043F\u043E\u043B\u0435\u0439","Got it":"\u041F\u043E\u043D\u044F\u0442\u043D\u043E","Hide Muli Select":"\u0421\u043A\u0440\u044B\u0442\u044C \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0432\u044B\u0431\u043E\u0440","Hide Pinned Board":"\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u0443\u044E \u0434\u043E\u0441\u043A\u0443",Image:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","Image Scale {{ImageScale}}x":"\u041C\u0430\u0441\u0448\u0442\u0430\u0431 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F {{ImageScale}}x","Image size":"\u0420\u0430\u0437\u043C\u0435\u0440 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","Image size in pixels":"\u0420\u0430\u0437\u043C\u0435\u0440 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0432 \u043F\u0438\u043A\u0441\u0435\u043B\u044F\u0445","In Large View":"\u0412 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u043D\u043E\u043C \u0432\u0438\u0434\u0435",Inactive:"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u043E","Large View":"\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u043D\u044B\u0439 \u0432\u0438\u0434","Large View Edit":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0432 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u043D\u043E\u043C \u0432\u0438\u0434\u0435",Light:"\u0421\u0432\u0435\u0442\u043B\u044B\u0439","Lines Wrap":"\u041F\u0435\u0440\u0435\u043D\u043E\u0441 \u0441\u0442\u0440\u043E\u043A","Make Active":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C","Make Disabled":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C\u0438","Make Enabled":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C","Make Inactive":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C",Manage:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435","Move Down":"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437","Move Up":"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u0432\u0435\u0440\u0445","Multi Select":"\u041C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0432\u044B\u0431\u043E\u0440","Next Delay":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0430",No:"\u041D\u0435\u0442","No Wrap":"\u0411\u0435\u0437 \u043F\u0435\u0440\u0435\u043D\u043E\u0441\u0430","Not found in the template":"\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435","Nothing found":"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E","Number of lines":"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u043E\u043A",Open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C","Open Window":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E",Options:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B","Paste Delay":"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u0432\u0441\u0442\u0430\u0432\u043A\u0438","Paste Menu":"\u041C\u0435\u043D\u044E \u0432\u0441\u0442\u0430\u0432\u043A\u0438","Paste in {{pastingCountDown}}...":"\u0412\u0441\u0442\u0430\u0432\u043A\u0430 \u0447\u0435\u0440\u0435\u0437 {{pastingCountDown}}...",PasteBar:"PasteBar","PasteBar Pro":"PasteBar Pro",Pasted:"\u0412\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E",Path:"\u041F\u0443\u0442\u044C","Pin Selected":"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435",Pinned:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435","Please confirm your action!":"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435!",Press:"\u041D\u0430\u0436\u0430\u0442\u044C","Press ESC key to close":"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 ESC \u0434\u043B\u044F \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u044F",Pro:"Pro",Quit:"\u0412\u044B\u0439\u0442\u0438","Rebuild Menu":"\u041F\u0435\u0440\u0435\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043C\u0435\u043D\u044E","Recent History":"\u041D\u0435\u0434\u0430\u0432\u043D\u044F\u044F \u0438\u0441\u0442\u043E\u0440\u0438\u044F","Recovery Password":"\u041F\u0430\u0440\u043E\u043B\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F","Register License":"Register License",Remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","Remove Link Card":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0441\u0441\u044B\u043B\u043A\u0438","Remove Selected Star":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u044B\u0445","Remove all fields from template":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043F\u043E\u043B\u044F \u0438\u0437 \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Remove from template":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u0448\u0430\u0431\u043B\u043E\u043D\u0430",Rename:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C","Reorder pinned":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u043E\u0440\u044F\u0434\u043E\u043A \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u044B\u0445",Reset:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C","Reset Passcode":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430","Reset Password":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C","Reverse Order":"\u041E\u0431\u0440\u0430\u0442\u043D\u044B\u0439 \u043F\u043E\u0440\u044F\u0434\u043E\u043A","Run and Copy Response":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442","Run and Paste Response":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442",Running:"\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F",Save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","Save It!":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0442\u0430\u043A!",Saved:"\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043E","Scroll to Top":"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u044C \u0432\u0432\u0435\u0440\u0445",Second:"\u0421\u0435\u043A\u0443\u043D\u0434\u0430",Seconds:"\u0421\u0435\u043A\u0443\u043D\u0434\u044B",Select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C","Select Default Option":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Select Language":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u044F\u0437\u044B\u043A","Select default":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Select is empty":"\u0412\u044B\u0431\u043E\u0440 \u043F\u0443\u0441\u0442","Select option":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442","Select pinned":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u043E\u0435","Sequence Copy":"\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Sequence Copy Paste":"\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u043A\u0430","Sequence Delay Next":"\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E","Sequence Next Delay":"\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0430","Sequence Paste":"\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u0432\u0441\u0442\u0430\u0432\u043A\u0430","Sequence Reverse Order":"\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043E\u0431\u0440\u0430\u0442\u043D\u044B\u0439 \u043F\u043E\u0440\u044F\u0434\u043E\u043A",Set:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C","Set Password":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C","Show Large View":"\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u043D\u044B\u0439 \u0432\u0438\u0434","Show all":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0432\u0441\u0435",Star:"\u0418\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","Star Selected":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","Swap Panels Layout":"\u041F\u043E\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u0438 \u043C\u0435\u0441\u0442\u0430\u043C\u0438","Thank you for using Pro":"\u0421\u043F\u0430\u0441\u0438\u0431\u043E, \u0447\u0442\u043E \u0432\u044B\u0431\u0440\u0430\u043B\u0438 Pro","Too long":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u044B\u0439","Too short":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043A\u043E\u0440\u043E\u0442\u043A\u0438\u0439",Toolbar:{"Blank Text Formatting":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0443\u0441\u0442\u043E\u0433\u043E \u0442\u0435\u043A\u0441\u0442\u0430","Bold Formatting":"\u041F\u043E\u043B\u0443\u0436\u0438\u0440\u043D\u043E\u0435 \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Bold Text Formatting":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0436\u0438\u0440\u043D\u043E\u0433\u043E \u0442\u0435\u043A\u0441\u0442\u0430","Copy and Paste Formatting":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0438 \u0432\u0441\u0442\u0430\u0432\u043A\u0438","Header Formatting":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430","Hightlight Text Formatting":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043A\u0441\u0442\u0430","Italic Formatting":"\u041A\u0443\u0440\u0441\u0438\u0432\u043D\u043E\u0435 \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Masked Text Formatting":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043A\u0441\u0442\u0430","Remove Text Formatting":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043A\u0441\u0442\u0430"},Type:{App:"\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435","Auto Fill":"\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435",AutoFill:"AutoFill",Clip:"\u041A\u043B\u0438\u043F",Code:"\u041A\u043E\u0434","Code Snippet":"\u0424\u0440\u0430\u0433\u043C\u0435\u043D\u0442 \u043A\u043E\u0434\u0430",Command:"\u041A\u043E\u043C\u0430\u043D\u0434\u0430",Email:"Email",Emoji:"\u042D\u043C\u043E\u0434\u0436\u0438",Empty:"\u041F\u0443\u0441\u0442\u043E\u0439",Error:"\u041E\u0448\u0438\u0431\u043A\u0430","File, Path or App":"\u0424\u0430\u0439\u043B, \u043F\u0443\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435","Form Auto Fill":"\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0444\u043E\u0440\u043C\u044B",Image:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",Label:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",Link:"\u0421\u0441\u044B\u043B\u043A\u0430","Link or Email":"\u0421\u0441\u044B\u043B\u043A\u0430 \u0438\u043B\u0438 email",Menu:"\u041C\u0435\u043D\u044E",Path:"\u041F\u0443\u0442\u044C","Plain Text":"\u041F\u0440\u043E\u0441\u0442\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",Request:"\u0417\u0430\u043F\u0440\u043E\u0441","Run Auto Fill":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435",Scraper:"\u0421\u043A\u0440\u0430\u043F\u0435\u0440",Secret:"\u0421\u0435\u043A\u0440\u0435\u0442","Shell Command":"\u041A\u043E\u043C\u0430\u043D\u0434\u0430 \u043E\u0431\u043E\u043B\u043E\u0447\u043A\u0438",Template:"\u0428\u0430\u0431\u043B\u043E\u043D","Template Fill":"\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u0430",Text:"\u0422\u0435\u043A\u0441\u0442",Video:"\u0412\u0438\u0434\u0435\u043E","Web Request (HTTP)":"\u0412\u0435\u0431-\u0437\u0430\u043F\u0440\u043E\u0441 (HTTP)","Web Scraper / Parser":"\u0412\u0435\u0431-\u0441\u043A\u0440\u0430\u043F\u0435\u0440 / \u043F\u0430\u0440\u0441\u0435\u0440"},TypeMenu:{"Clip Type":"\u0422\u0438\u043F \u043A\u043B\u0438\u043F\u0430","Code Snippet":"\u0424\u0440\u0430\u0433\u043C\u0435\u043D\u0442 \u043A\u043E\u0434\u0430","File, Path or App":"\u0424\u0430\u0439\u043B, \u043F\u0443\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435","Form Auto Fill":"\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0444\u043E\u0440\u043C\u044B",Image:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","Link or Email":"\u0421\u0441\u044B\u043B\u043A\u0430 \u0438\u043B\u0438 email","Link or File, Path or App":"\u0421\u0441\u044B\u043B\u043A\u0430 \u0438\u043B\u0438 \u0444\u0430\u0439\u043B, \u043F\u0443\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435","Plain Text":"\u041F\u0440\u043E\u0441\u0442\u043E\u0439 \u0442\u0435\u043A\u0441\u0442","Run, Execute":"\u0417\u0430\u043F\u0443\u0441\u043A, \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435","Select Language":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u044F\u0437\u044B\u043A","Shell Command":"\u041A\u043E\u043C\u0430\u043D\u0434\u0430 \u043E\u0431\u043E\u043B\u043E\u0447\u043A\u0438","Template Fill":"\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u0430",Template:"\u0428\u0430\u0431\u043B\u043E\u043D","Text Template":"\u0422\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0439 \u0448\u0430\u0431\u043B\u043E\u043D","Web Request (HTTP)":"\u0412\u0435\u0431-\u0437\u0430\u043F\u0440\u043E\u0441 (HTTP)","Web Scraper / Parser":"\u0412\u0435\u0431-\u0441\u043A\u0440\u0430\u043F\u0435\u0440 / \u043F\u0430\u0440\u0441\u0435\u0440"},"UnPin All":"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0432\u0441\u0435","UnPin Selected":"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435","Unlock Application Screen":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u043A\u0440\u0430\u043D \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Unsaved label":"\u041D\u0435\u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043D\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435","Update history list":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0438\u0441\u0442\u043E\u0440\u0438\u0438",Updated:"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E","Using <b>{{Clipboard}}</b> field, allows you to copy text to the clipboard, and it will be inserted into the template":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u043E\u043B\u044F <b>{{Clipboard}}</b> \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0442\u0435\u043A\u0441\u0442 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430, \u0438 \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u0432 \u0448\u0430\u0431\u043B\u043E\u043D",Verify:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C","Verify Current Password":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043F\u0430\u0440\u043E\u043B\u044C",Views:{"Paste Menu":"\u041C\u0435\u043D\u044E \u0432\u0441\u0442\u0430\u0432\u043A\u0438"},Yes:"\u0414\u0430",chars:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",found:"\u043D\u0430\u0439\u0434\u0435\u043D\u043E",lines:"\u0441\u0442\u0440\u043E\u043A","menu items in":"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043C\u0435\u043D\u044E \u0432",minutes:"\u043C\u0438\u043D\u0443\u0442\u044B",nameTitle:"nameTitle",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",seconds:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B","show less":"\u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0441\u0431\u0440\u043E\u0441 \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0441\u0431\u0440\u043E\u0441 \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430"},contextMenus:{Activate:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","Add Board":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0443","Add Clip":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043B\u0438\u043F","Add First Tab":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0432\u0443\u044E \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Add Item":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442","Add Link Card":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0441\u0441\u044B\u043B\u043A\u0438","Add New":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u043E\u0435","Add New After":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u043E\u0435 \u043F\u043E\u0441\u043B\u0435","Add New Item":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442","Add Tab":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Add to":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432","Add to Menu":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043C\u0435\u043D\u044E",AddTo:{"Clip on Board":"\u041A\u043B\u0438\u043F\u044B","Paste Menu":"\u041C\u0435\u043D\u044E"},"Board Icon":"\u0418\u043A\u043E\u043D\u043A\u0430 \u0434\u043E\u0441\u043A\u0438","Clip Icon":"\u0418\u043A\u043E\u043D\u043A\u0430 \u043A\u043B\u0438\u043F\u0430","Close Edit":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Close Large":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u043E\u0435","Close Large View":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0432\u0438\u0434","Copy & Paste":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C","Copy To":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432",CopyTo:{Board:"\u0414\u043E\u0441\u043A\u0430",Tab:"\u0412\u043A\u043B\u0430\u0434\u043A\u0430"},"Custom Icon":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0430\u044F \u0438\u043A\u043E\u043D\u043A\u0430",Dashboard:"\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F","Delete Board":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0443","Delete Clip":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u043B\u0438\u043F",Deselect:"\u0421\u043D\u044F\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435","Detected Language":"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u044F\u0437\u044B\u043A",Duplicate:"\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C","Edit Board":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u043A\u0443","Edit Clip":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043B\u0438\u043F","Edit Label":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435","Edit Tabs":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0438","Edit Value":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",Hide:"\u0421\u043A\u0440\u044B\u0442\u044C","Hide Details":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0435\u0442\u0430\u043B\u0438","Hide Subtitle":"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","Icon Visibility":"\u0412\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0438\u043A\u043E\u043D\u043A\u0438","Large View":"\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u043D\u044B\u0439 \u0432\u0438\u0434","Link To Clip":"\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u043A\u043B\u0438\u043F","Locate Clip":"\u041D\u0430\u0439\u0442\u0438 \u043A\u043B\u0438\u043F","Locate Menu":"\u041D\u0430\u0439\u0442\u0438 \u043C\u0435\u043D\u044E","Make Disabled":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C","Make Enabled":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C\u0438","Make Inactive":"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438",Manage:"\u0423\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C","Mask Secret":"\u041C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u043A\u0440\u0435\u0442",Menu:"\u041C\u0435\u043D\u044E","Menu is Not Active":"\u041C\u0435\u043D\u044E \u043D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u043E","Move Board To":"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0443 \u0432",MoveTo:{Board:"\u0414\u043E\u0441\u043A\u0430",Tab:"\u0412\u043A\u043B\u0430\u0434\u043A\u0430"},"Open Link in Browser":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435",Organize:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430","Organize Layout":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043A\u043E\u043C\u043F\u043E\u043D\u043E\u0432\u043A\u0438","Paste Delay":"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u0432\u0441\u0442\u0430\u0432\u043A\u0438","Paste Menu":"\u041C\u0435\u043D\u044E \u0432\u0441\u0442\u0430\u0432\u043A\u0438",Pin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C",RESET:"\u0421\u0411\u0420\u041E\u0421","Remove Link Card":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0441\u0441\u044B\u043B\u043A\u0438","Remove Star":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u044B\u0445","Save as Image File":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A \u0444\u0430\u0439\u043B \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","Save as Text File":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0439 \u0444\u0430\u0439\u043B",Select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C","Select Icon":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u043A\u043E\u043D\u043A\u0443",Separator:"\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C",Show:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C","Show Details":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0434\u0435\u0442\u0430\u043B\u0438","Show Large View":"\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u043D\u044B\u0439 \u0432\u0438\u0434","Show Subtitle":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",Star:"\u0418\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435",Submenu:"\u041F\u043E\u0434\u043C\u0435\u043D\u044E",UnPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C","UnPin Clip":"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u043A\u043B\u0438\u043F","Unmask Secret":"\u0421\u043D\u044F\u0442\u044C \u043C\u0430\u043A\u0440\u0438\u0440\u043E\u0432\u043A\u0443 \u0441\u0435\u043A\u0440\u0435\u0442\u0430","not a code":"\u043D\u0435 \u043A\u043E\u0434"},dashboard:{"API Key":"API \u043A\u043B\u044E\u0447",Add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C","Add Auth":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E","Add Clipboard Value":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430","Add Custom":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0435","Add Custom Field":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435","Add Delay Time":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438","Add First Board":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0432\u0443\u044E \u0434\u043E\u0441\u043A\u0443","Add Form Field":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u0435 \u0444\u043E\u0440\u043C\u044B","Add Header":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","Add Key Press":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u0430\u0436\u0430\u0442\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","Add Link Card":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0441\u0441\u044B\u043B\u043A\u0438","Add Open URL":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0435 URL","Add Output Template":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D \u0432\u044B\u0432\u043E\u0434\u0430","Add Regex Match Group Filter":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440 \u0433\u0440\u0443\u043F\u043F\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044F \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u043C\u0443 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044E","Add Request Header":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0437\u0430\u043F\u0440\u043E\u0441\u0430","Add Response Filter":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440 \u043E\u0442\u0432\u0435\u0442\u0430","Add Scraping Rule":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u043E \u0441\u043A\u0440\u0430\u043F\u0438\u043D\u0433\u0430","Add Section":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0437\u0434\u0435\u043B","Add Tab":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Add Template Field":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Add a Tab":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Add field <b>&#123;&#123;<b>{{name}}</b>&#125;&#125;</b> into the template":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u0435 <b>&#123;&#123;<b>{{name}}</b>&#125;&#125;</b> \u0432 \u0448\u0430\u0431\u043B\u043E\u043D","Add field <b>{{<b>{{name}}</b>}}</b> into the template":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u043B\u0435 <b>{{<b>{{name}}</b>}}</b> \u0432 \u0448\u0430\u0431\u043B\u043E\u043D","Add image":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","Add note":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u043C\u0435\u0442\u043A\u0443","Add to Board":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u0434\u043E\u0441\u043A\u0443","Add {{type}}":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C {{type}}","All field labels must be unique to ensure they are correctly used within the template.":"\u0412\u0441\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u043B\u0435\u0439 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0438\u0445 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435.","Are you sure you want to delete <strong>{{boardName}}</strong> board?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0443 <strong>{{boardName}}</strong>?","Are you sure you want to delete?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C?","Are you sure you want to remove image from the clip?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0438\u0437 \u043A\u043B\u0438\u043F\u0430?","Auto update is Off":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E","Basic Auth":"\u0411\u0430\u0437\u043E\u0432\u0430\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F","Bearer Token":"\u0422\u043E\u043A\u0435\u043D \u0434\u043E\u0441\u0442\u0443\u043F\u0430","Board Layout Height":"\u0412\u044B\u0441\u043E\u0442\u0430 \u043C\u0430\u043A\u0435\u0442\u0430 \u0434\u043E\u0441\u043A\u0438","Board Layout Split":"\u0420\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u043C\u0430\u043A\u0435\u0442\u0430 \u0434\u043E\u0441\u043A\u0438","Board Menu":"\u041C\u0435\u043D\u044E \u0434\u043E\u0441\u043A\u0438","Board is Not Empty":"\u0414\u043E\u0441\u043A\u0430 \u043D\u0435 \u043F\u0443\u0441\u0442\u0430",Boards:"\u0414\u043E\u0441\u043A\u0438","Border Width":"\u0420\u0430\u0437\u043C\u0435\u0440 \u0433\u0440\u0430\u043D\u0438\u0446\u044B","CSS Selector":"CSS-\u0441\u0435\u043B\u0435\u043A\u0442\u043E\u0440",Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430","Change Layout":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043C\u0430\u043A\u0435\u0442","Change color":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0446\u0432\u0435\u0442",Clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C","Clear All Fields":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u043F\u043E\u043B\u044F","Click To Add":"\u041D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C","Clip Menu":"\u041C\u0435\u043D\u044E \u043A\u043B\u0438\u043F\u0430","Clip Options":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u043B\u0438\u043F\u0430",Clipboard:"\u0411\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430",Clips:{App:"\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435","Clip Menu":"\u041C\u0435\u043D\u044E \u043A\u043B\u0438\u043F\u0430",Clips:"\u041A\u043B\u0438\u043F\u044B",Link:"\u0421\u0441\u044B\u043B\u043A\u0430"},"Close Edit":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",Command:{error:"\u043E\u0448\u0438\u0431\u043A\u0430",output:"\u0432\u044B\u0432\u043E\u0434"},"Command error":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043A\u043E\u043C\u0430\u043D\u0434\u044B","Common Fields":"\u041E\u0431\u0449\u0438\u0435 \u043F\u043E\u043B\u044F","Confirm Clear All Fields":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u043A\u0443 \u0432\u0441\u0435\u0445 \u043F\u043E\u043B\u0435\u0439","Create Board":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0434\u043E\u0441\u043A\u0443","Create Tab":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Create tab":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443",Dashboard:"\u041F\u0430\u043D\u0435\u043B\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F",Delay:"\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430","Delete Board":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0443","Delete Clip":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u043B\u0438\u043F","Delete Tab":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Delete board":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0443","Delete field":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u043E\u043B\u0435","Delete tab":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443","Detect Template Fields":"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Detect for Template Fields":"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Disabled field <b>{{<b>{{name}}</b>}}</b>":"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 <b>{{<b>{{name}}</b>}}</b>","Disabled field <b>{{<b>{{name}}</b>}}</b> has been found in the template":"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 <b>{{<b>{{name}}</b>}}</b> \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435","Done Create Clip":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u043A\u043B\u0438\u043F\u0430","Done Edit":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Done Edit Tabs":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0432\u043A\u043B\u0430\u0434\u043E\u043A","Done Organize":"\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Drag & Drop Path":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u043F\u0443\u0442\u044C","Drop To Add":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C","Drop image file here, or use a separate window for drag and drop.":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0441\u044E\u0434\u0430 \u0438\u043B\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u043E\u0435 \u043E\u043A\u043D\u043E \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.","Drop to Pin":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C","Edit Note":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043C\u0435\u0442\u043A\u0443","Edit Template":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D","Edit name":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u043C\u044F","Edit subtitle":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","Edit tab name":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0432\u043A\u043B\u0430\u0434\u043A\u0438","Enable / Disable":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C / \u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C","Enable / Disable URL Open":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C / \u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0435 URL","Enter Label":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043C\u0435\u0442\u043A\u0443","Enter URL":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 URL","Enter board subtitle or description":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0438\u043B\u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0434\u043E\u0441\u043A\u0438","Enter board title":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0434\u043E\u0441\u043A\u0438","Enter clip name":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043B\u0438\u043F\u0430","Enter clip note":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0443 \u043A \u043A\u043B\u0438\u043F\u0443","Enter code":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434","Enter credit card number":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B","Enter default value":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Enter field value":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u044F","Enter full path to file, folder or application":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u043F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443, \u043F\u0430\u043F\u043A\u0435 \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044E","Enter regex for output filer":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0434\u043B\u044F \u0444\u0438\u043B\u044C\u0442\u0440\u0430 \u0432\u044B\u0432\u043E\u0434\u0430","Enter request url":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 URL \u0437\u0430\u043F\u0440\u043E\u0441\u0430","Enter secret value":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","Enter section label":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043C\u0435\u0442\u043A\u0443 \u0440\u0430\u0437\u0434\u0435\u043B\u0430","Enter select option":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0432\u044B\u0431\u043E\u0440\u0430","Enter tab name":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0432\u043A\u043B\u0430\u0434\u043A\u0438","Enter template or drag from history":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0448\u0430\u0431\u043B\u043E\u043D \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0437 \u0438\u0441\u0442\u043E\u0440\u0438\u0438","Enter template value":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Enter value or drag from history":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0437 \u0438\u0441\u0442\u043E\u0440\u0438\u0438","Enter web link or email":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0435\u0431-\u0441\u0441\u044B\u043B\u043A\u0443 \u0438\u043B\u0438 \u0430\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B",Errors:{"No fields found in the template.":"\u0412 \u0448\u0430\u0431\u043B\u043E\u043D\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043F\u043E\u043B\u0435\u0439.","Please fix output template or confirm to save as is.":"\u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0448\u0430\u0431\u043B\u043E\u043D \u0432\u044B\u0432\u043E\u0434\u0430 \u0438\u043B\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u043A \u0435\u0441\u0442\u044C.","Please fix template fields or confirm to save as is.":"\u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043F\u043E\u043B\u044F \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u0438\u043B\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u043A \u0435\u0441\u0442\u044C.","Please fix the problem or confirm to save as is.":"\u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0443 \u0438\u043B\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u043A \u0435\u0441\u0442\u044C.","Please verify your link for any errors, or confirm to save as is.":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043E\u0448\u0438\u0431\u043E\u043A \u0438\u043B\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u043A \u0435\u0441\u0442\u044C.","Please verify your path for any errors, or confirm to save as is.":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u0443\u0442\u044C \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043E\u0448\u0438\u0431\u043E\u043A \u0438\u043B\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u043A \u0435\u0441\u0442\u044C.","Your command runs with errors, confirm you want to save as is.":"\u0412\u0430\u0448\u0430 \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u0441 \u043E\u0448\u0438\u0431\u043A\u0430\u043C\u0438, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A \u0435\u0441\u0442\u044C.","Your request runs with errors, confirm you want to save as is.":"\u0412\u0430\u0448 \u0437\u0430\u043F\u0440\u043E\u0441 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u0441 \u043E\u0448\u0438\u0431\u043A\u0430\u043C\u0438, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A \u0435\u0441\u0442\u044C."},FILTERED_TYPES:{"Dot Path":"\u0422\u043E\u0447\u0435\u0447\u043D\u044B\u0439 \u043F\u0443\u0442\u044C","JSON Path":"JSON \u043F\u0443\u0442\u044C",RegEx:"\u0420\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435","RegEx Replace":"\u0417\u0430\u043C\u0435\u043D\u0430 \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","Remove Quotes":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0432\u044B\u0447\u043A\u0438"},Field:"\u041F\u043E\u043B\u0435","Field <b>{{<b>{{name}}</b>}}</b> has been found in the template":"\u041F\u043E\u043B\u0435 <b>{{<b>{{name}}</b>}}</b> \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435","Field Options":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u043E\u043B\u044F","Fields Value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0435\u0439","File, folder or app path does not exist":"\u041F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443, \u043F\u0430\u043F\u043A\u0435 \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044E \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442","File, folder or app path is valid":"\u041F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443, \u043F\u0430\u043F\u043A\u0435 \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u0435\u043D","File, folder or app path might not be valid":"\u041F\u0443\u0442\u044C \u043A \u0444\u0430\u0439\u043B\u0443, \u043F\u0430\u043F\u043A\u0435 \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u043C","Fill Template":"\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D","Find in Clip":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u043A\u043B\u0438\u043F\u0435","Find in clip":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u043A\u043B\u0438\u043F\u0435","Find in history":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u0438\u0441\u0442\u043E\u0440\u0438\u0438","Form Fields":"\u041F\u043E\u043B\u044F \u0444\u043E\u0440\u043C\u044B","General Fields":"\u041E\u0431\u0449\u0438\u0435 \u043F\u043E\u043B\u044F",HTML:"HTML","Hide Label":"\u0421\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u0442\u043A\u0443","History capture is off":"\u0417\u0430\u043F\u0438\u0441\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0430","Key Press":"\u041D\u0430\u0436\u0430\u0442\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","Key Press After":"\u041D\u0430\u0436\u0430\u0442\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u043F\u043E\u0441\u043B\u0435","Label Left":"\u041C\u0435\u0442\u043A\u0430 \u0441\u043B\u0435\u0432\u0430","Label Top":"\u041C\u0435\u0442\u043A\u0430 \u0441\u0432\u0435\u0440\u0445\u0443","Label on Left":"\u041C\u0435\u0442\u043A\u0430 \u0441\u043B\u0435\u0432\u0430",Labels:"\u041F\u043E\u043B\u044F","Last run":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0437\u0430\u043F\u0443\u0441\u043A","Last update":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435","Layout Max Width":"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0448\u0438\u0440\u0438\u043D\u0430 \u043C\u0430\u043A\u0435\u0442\u0430","New Board":"\u041D\u043E\u0432\u0430\u044F \u0434\u043E\u0441\u043A\u0430","New Clip":"\u041D\u043E\u0432\u044B\u0439 \u043A\u043B\u0438\u043F","No Boards":"\u041D\u0435\u0442 \u0434\u043E\u0441\u043E\u043A","No Clipboard History":"\u041D\u0435\u0442 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430","No Tabs or Boards":"\u041D\u0435\u0442 \u0432\u043A\u043B\u0430\u0434\u043E\u043A \u0438\u043B\u0438 \u0434\u043E\u0441\u043E\u043A","Number of columns":"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",Open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C","Open URL Disable / Enable":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C URL \u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C / \u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C","Output Template":"\u0428\u0430\u0431\u043B\u043E\u043D \u0432\u044B\u0432\u043E\u0434\u0430","Please confirm to save as is.":"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u043A \u0435\u0441\u0442\u044C.",Press:"\u041D\u0430\u0436\u0430\u0442\u044C",RETURN_POSITION_TYPES:{"First Only":"\u0422\u043E\u043B\u044C\u043A\u043E \u043F\u0435\u0440\u0432\u044B\u0439","Last Only":"\u0422\u043E\u043B\u044C\u043A\u043E \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439"},RULES_TYPES:{"CSS Selector":"CSS-\u0441\u0435\u043B\u0435\u043A\u0442\u043E\u0440","RegEx Find":"\u041F\u043E\u0438\u0441\u043A \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","RegEx Group Match":"\u0421\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0433\u0440\u0443\u043F\u043F\u044B \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","RegEx Match":"\u0421\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","RegEx Replace":"\u0417\u0430\u043C\u0435\u043D\u0430 \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F"},"RegEx Find":"\u041F\u043E\u0438\u0441\u043A \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","RegEx Match":"\u0421\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","RegEx Match Group":"\u0413\u0440\u0443\u043F\u043F\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044F \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","RegEx Replace":"\u0417\u0430\u043C\u0435\u043D\u0430 \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F","Regex Match Group Filter":"\u0424\u0438\u043B\u044C\u0442\u0440 \u0433\u0440\u0443\u043F\u043F\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044F \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E\u043C\u0443 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044E","Remove Open URL":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0435 URL","Remove image":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","Reset to Defaults":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0434\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",Result:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442",SEPARATOR_TYPES:{"Comma (,)":"\u0417\u0430\u043F\u044F\u0442\u0430\u044F (,)","New Line (\\n)":"\u041D\u043E\u0432\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430 (\\n)","Pipe (|)":"\u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u044C\u043D\u0430\u044F \u0447\u0435\u0440\u0442\u0430 (|)","Semicolon (;)":"\u0422\u043E\u0447\u043A\u0430 \u0441 \u0437\u0430\u043F\u044F\u0442\u043E\u0439 (;)","Space (' ')":"\u041F\u0440\u043E\u0431\u0435\u043B (' ')","Tab (\\t)":"\u0422\u0430\u0431\u0443\u043B\u044F\u0446\u0438\u044F (\\t)"},"Save as Defaults":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Scan for Template Fields":"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E\u043B\u044F \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Select Color":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0446\u0432\u0435\u0442","Select Default Option":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","Select Option":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442","Select Options":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u044B","Show Label":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u0442\u043A\u0443","Special Field":"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435",Subtitle:"\u041F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",Tab:"\u0412\u043A\u043B\u0430\u0434\u043A\u0430","Tab is Not Empty":"\u0412\u043A\u043B\u0430\u0434\u043A\u0430 \u043D\u0435 \u043F\u0443\u0441\u0442\u0430","Tabs Menu":"\u041C\u0435\u043D\u044E \u0432\u043A\u043B\u0430\u0434\u043E\u043A",Template:"\u0428\u0430\u0431\u043B\u043E\u043D","Template Edit":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Template Fields":"\u041F\u043E\u043B\u044F \u0448\u0430\u0431\u043B\u043E\u043D\u0430","Template should have\u2800<b>{{output}}</b>\u2800placeholder.":"\u0428\u0430\u0431\u043B\u043E\u043D \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u2800<b>{{output}}</b>\u2800.","Test Request":"\u0422\u0435\u0441\u0442\u043E\u0432\u044B\u0439 \u0437\u0430\u043F\u0440\u043E\u0441","Test Run":"\u0422\u0435\u0441\u0442\u043E\u0432\u044B\u0439 \u0437\u0430\u043F\u0443\u0441\u043A",Text:"\u0422\u0435\u043A\u0441\u0442","This action cannot be undone.":"\u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","This field allows to insert text from clipboard":"\u042D\u0442\u043E \u043F\u043E\u043B\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u0442\u0435\u043A\u0441\u0442 \u0438\u0437 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430","Too long":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u044B\u0439","Too short":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043A\u043E\u0440\u043E\u0442\u043A\u0438\u0439","Turn On auto update":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435","Turn on history capture":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u0438",Type:{Command:"\u041A\u043E\u043C\u0430\u043D\u0434\u0430"},URL:"URL","Unsaved subtitle":"\u041D\u0435\u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","Unsaved title":"\u041D\u0435\u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043D\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435","Update Link Card":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u0441\u0441\u044B\u043B\u043A\u0438","Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0434\u0432\u043E\u0439\u043D\u044B\u0435 \u0444\u0438\u0433\u0443\u0440\u043D\u044B\u0435 \u0441\u043A\u043E\u0431\u043A\u0438 \u0434\u043B\u044F {{field name}}. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{clipboard}} \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430.",Values:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F","Vertical Split":"\u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u044C\u043D\u043E\u0435 \u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u0435","We need to open a new window where you can drag & drop file, path or application.":"\u041D\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u043E\u0432\u043E\u0435 \u043E\u043A\u043D\u043E, \u0433\u0434\u0435 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B, \u043F\u0443\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435.","Web Link or Email might not be valid":"\u0412\u0435\u0431-\u0441\u0441\u044B\u043B\u043A\u0430 \u0438\u043B\u0438 \u0430\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u043C\u0438","Web or Email link is valid":"\u0412\u0435\u0431-\u0441\u0441\u044B\u043B\u043A\u0430 \u0438\u043B\u0438 \u0430\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B","Website URL":"URL \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430","Website URL is valid":"URL \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u0435\u043D","Website URL might not be valid":"URL \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u043C","Wrap output using {{output}} placeholder":"\u041E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u044B\u0432\u043E\u0434 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044F {{output}}","You'll need to clear this board of all clips and subboards before it can be deleted.":"\u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u044D\u0442\u0443 \u0434\u043E\u0441\u043A\u0443 \u043E\u0442 \u0432\u0441\u0435\u0445 \u043A\u043B\u0438\u043F\u043E\u0432 \u0438 \u043F\u043E\u0434\u0434\u043E\u0441\u043E\u043A, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0435\u0435 \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043B\u0438\u0442\u044C.","You'll need to clear this tab of all boards before it can be deleted.":"\u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u044D\u0442\u0443 \u0432\u043A\u043B\u0430\u0434\u043A\u0443 \u043E\u0442 \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u043E\u043A, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0435\u0435 \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043B\u0438\u0442\u044C.","filled template":"\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u044B\u0439 \u0448\u0430\u0431\u043B\u043E\u043D","new clips":"\u043D\u043E\u0432\u044B\u0435 \u043A\u043B\u0438\u043F\u044B",template:"\u0448\u0430\u0431\u043B\u043E\u043D","{{count}} fields found in template but missing from fields definition._one":"{{count}} \u043F\u043E\u043B\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435, \u043D\u043E \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u043F\u043E\u043B\u0435\u0439.","{{count}} fields found in template but missing from fields definition._other":"{{count}} \u043F\u043E\u043B\u0435\u0439 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435, \u043D\u043E \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442 \u0432 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u043F\u043E\u043B\u0435\u0439.","{{count}} fields not found in the template._one":"{{count}} \u043F\u043E\u043B\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435.","{{count}} fields not found in the template._other":"{{count}} \u043F\u043E\u043B\u0435\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435.","{{type}} Field":"\u041F\u043E\u043B\u0435 {{type}}","{{type}} field":"\u043F\u043E\u043B\u0435 {{type}}"},history:{"All History Settings":"\u0412\u0441\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430","Auto Update on Capture":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435","Auto-Clear Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043E\u0447\u0438\u0441\u0442\u043A\u0438","Capture History":"\u0417\u0430\u0445\u0432\u0430\u0442 \u0438\u0441\u0442\u043E\u0440\u0438\u0438",Clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C","Clear All":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435","Clear All History":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u044E \u0438\u0441\u0442\u043E\u0440\u0438\u044E","Clear History":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E","Confirm Clear All History":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u043E\u0447\u0438\u0441\u0442\u043A\u0443 \u0432\u0441\u0435\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438","Do you really want to remove ALL clipboard history items?":"\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0412\u0421\u0415 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430?","Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}":"\u0412\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430 \u0441\u0442\u0430\u0440\u0448\u0435 {{olderThen}} {{durationType}}","Enable Capture History":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0445\u0432\u0430\u0442 \u0438\u0441\u0442\u043E\u0440\u0438\u0438",Filters:{"Clear Filters":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B",Code:"\u041A\u043E\u0434",Emoji:"\u042D\u043C\u043E\u0434\u0436\u0438",Image:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","Language Filters":"\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u044F\u0437\u044B\u043A\u043E\u0432",Languages:"\u042F\u0437\u044B\u043A\u0438","Languages Filter":"\u0424\u0438\u043B\u044C\u0442\u0440 \u044F\u0437\u044B\u043A\u043E\u0432","Languages Filters":"\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u044F\u0437\u044B\u043A\u043E\u0432",Link:"\u0421\u0441\u044B\u043B\u043A\u0430",Pinned:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u044B\u0435",Secret:"\u0421\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0435","Select Filters":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B",Starred:"\u0418\u0437\u0431\u0440\u0430\u043D\u043D\u044B\u0435",Text:"\u0422\u0435\u043A\u0441\u0442",Video:"\u0412\u0438\u0434\u0435\u043E"},"Hide pinned history":"\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u0443\u044E \u0438\u0441\u0442\u043E\u0440\u0438\u044E","History Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0441\u0442\u043E\u0440\u0438\u0438","Paste Menu":"\u041C\u0435\u043D\u044E \u0412\u0441\u0442\u0430\u0432\u043A\u0438","Select Filters":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B","View pinned history":"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u0443\u044E \u0438\u0441\u0442\u043E\u0440\u0438\u044E","{{isAll}} Clipboard History":"{{isAll}} \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430"},menus:{"Add First Item":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0432\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442","Add Item":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442","Add item":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442","Close Edit":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Create Menu":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043C\u0435\u043D\u044E","Delete Menu":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u043D\u044E","Disabled Item":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442","Disabled Menu":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E","Drag items to reorder, double click to rename":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0434\u043B\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043F\u043E\u0440\u044F\u0434\u043A\u0430, \u0434\u0432\u0430\u0436\u0434\u044B \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u044F","Enter menu label":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043C\u0435\u0442\u043A\u0443 \u043C\u0435\u043D\u044E","Find in menu":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u043C\u0435\u043D\u044E","Link to Clip":"\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u043A\u043B\u0438\u043F",Menu:"\u041C\u0435\u043D\u044E","Menu Item":"\u042D\u043B\u0435\u043C\u0435\u043D\u0442 \u043C\u0435\u043D\u044E","Menu Options":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043C\u0435\u043D\u044E","Menu Type":"\u0422\u0438\u043F \u043C\u0435\u043D\u044E","Menu is a link to a clip":"\u041C\u0435\u043D\u044E \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0441\u0441\u044B\u043B\u043A\u043E\u0439 \u043D\u0430 \u043A\u043B\u0438\u043F","Menu is link to a clip and cannot be renamed. Please rename its linked clip.":"\u041C\u0435\u043D\u044E \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0441\u0441\u044B\u043B\u043A\u043E\u0439 \u043D\u0430 \u043A\u043B\u0438\u043F \u0438 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043E. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u0443\u0439\u0442\u0435 \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0439 \u0441 \u043D\u0438\u043C \u043A\u043B\u0438\u043F.",Menus:"\u041C\u0435\u043D\u044E","New Menu":"\u041D\u043E\u0432\u043E\u0435 \u043C\u0435\u043D\u044E","No Menu Items":"\u041D\u0435\u0442 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043C\u0435\u043D\u044E","No {{hasActive}} menu items in":"\u041D\u0435\u0442 {{hasActive}} \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043C\u0435\u043D\u044E \u0432","Select item to add a menu after":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442, \u043F\u043E\u0441\u043B\u0435 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u043D\u044E",Separator:"\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C",Submenu:"\u041F\u043E\u0434\u043C\u0435\u043D\u044E","Toggle inactive menu items":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043C\u0435\u043D\u044E",active:"\u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0435","menu items in":"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043C\u0435\u043D\u044E \u0432"},navbar:{"Close Main Window":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E","Color Theme":"\u0426\u0432\u0435\u0442\u043E\u0432\u0430\u044F \u0442\u0435\u043C\u0430",GlobalSearch:{"Auto Close on Copy & Paste":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u043F\u0440\u0438 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u043A\u0435","Excludes clip or menu values":"\u0418\u0441\u043A\u043B\u044E\u0447\u0430\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043A\u043B\u0438\u043F\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044E","Nothing found in boards.":"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043D\u0430 \u0434\u043E\u0441\u043A\u0430\u0445.","Nothing found in clips, boards or menus.":"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u043A\u043B\u0438\u043F\u0430\u0445, \u0434\u043E\u0441\u043A\u0430\u0445 \u0438\u043B\u0438 \u043C\u0435\u043D\u044E.","Nothing found in clips.":"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u043A\u043B\u0438\u043F\u0430\u0445.","Nothing found in menus.":"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u043C\u0435\u043D\u044E.","Press / key to search":"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 / \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430",Search:"\u041F\u043E\u0438\u0441\u043A","Search Name or Label Only":"\u0418\u0441\u043A\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E \u0438\u043C\u0435\u043D\u0438 \u0438\u043B\u0438 \u043C\u0435\u0442\u043A\u0435","Search Options":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u043E\u0438\u0441\u043A\u0430","Type what you looking for":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u0438\u0449\u0435\u0442\u0435"},Language:"\u042F\u0437\u044B\u043A","Lock App Screen":"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u043A\u0440\u0430\u043D",Options:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Show Collections Name":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Swap Panels Layout":"\u041F\u043E\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u0438 \u043C\u0435\u0441\u0442\u0430\u043C\u0438",Theme:{Dark:"\u0422\u0435\u043C\u043D\u0430\u044F",Light:"\u0421\u0432\u0435\u0442\u043B\u0430\u044F",System:"\u0421\u0438\u0441\u0442\u0435\u043C\u043D\u0430\u044F"},View:"\u0412\u0438\u0434",Window:{"Close Window":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E","Maximize Window":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043E\u043A\u043D\u043E","Minimize Window":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043E\u043A\u043D\u043E"}},pinned:{"Hide Pinned":"\u0421\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u044B\u0435",Pin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C","Show Pinned":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043D\u044B\u0435"},settings:{"<strong>{{screenLockPassCodeLength}}</strong> digits passcode is set.":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D <strong>{{screenLockPassCodeLength}}</strong>-\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430.","Add a star to the copied text when you copy it twice within 1 second. This allows you to quickly add copied text or links to your favorites and easily find it in the clipboard history.":"\u0414\u043E\u0431\u0430\u0432\u043B\u044F\u0439\u0442\u0435 \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u043F\u0438\u0440\u0443\u0435\u0442\u0435 \u0435\u0433\u043E \u0434\u0432\u0430\u0436\u0434\u044B \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 1 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442 \u0438\u043B\u0438 \u0441\u0441\u044B\u043B\u043A\u0438 \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0438 \u043B\u0435\u0433\u043A\u043E \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u044C \u0438\u0445 \u0432 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430.","Application Auto Start":"\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u0443\u0441\u043A \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Application Color Theme":"\u0426\u0432\u0435\u0442\u043E\u0432\u0430\u044F \u0442\u0435\u043C\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Application UI Color Theme":"\u0426\u0432\u0435\u0442\u043E\u0432\u0430\u044F \u0442\u0435\u043C\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Application UI Fonts Scale":"\u041C\u0430\u0441\u0448\u0442\u0430\u0431 \u0448\u0440\u0438\u0444\u0442\u043E\u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Application UI Language":"\u042F\u0437\u044B\u043A \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Auto Lock the Screen on User Inactivity":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u044D\u043A\u0440\u0430\u043D\u0430 \u043F\u0440\u0438 \u0431\u0435\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","Auto Masking Words List":"\u0421\u043F\u0438\u0441\u043E\u043A \u0441\u043B\u043E\u0432 \u0434\u043B\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F","Auto update on capture":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435","Auto-Clear Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0430\u0432\u0442\u043E\u043E\u0447\u0438\u0441\u0442\u043A\u0438","Auto-Preview Link on Hover":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0441\u0441\u044B\u043B\u043A\u0438 \u043F\u0440\u0438 \u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0438","Auto-Star on Double Copy":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043F\u0440\u0438 \u0434\u0432\u043E\u0439\u043D\u043E\u043C \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0438","Auto-Update on Capture":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435","Auto-delete clipboard history after":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430 \u043F\u043E\u0441\u043B\u0435",Back:"\u041D\u0430\u0437\u0430\u0434","Capture History":"\u0417\u0430\u0445\u0432\u0430\u0442 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430","Change the application UI font size scale":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043C\u0430\u0441\u0448\u0442\u0430\u0431 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0448\u0440\u0438\u0444\u0442\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Change the application UI language":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044F\u0437\u044B\u043A \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Change the application user interface color theme":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u043E\u0432\u0443\u044E \u0442\u0435\u043C\u0443 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Change the application user interface font size scale":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043C\u0430\u0441\u0448\u0442\u0430\u0431 \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u0448\u0440\u0438\u0444\u0442\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Change the application user interface language":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044F\u0437\u044B\u043A \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Clipboard History Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430","Configure settings to automatically delete clipboard history items after a specified duration.":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0434\u043B\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430 \u043F\u043E \u0438\u0441\u0442\u0435\u0447\u0435\u043D\u0438\u0438 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438.","Create a preview card on link hover in the clipboard history. This allows you to preview the link before opening or pasting it.":"\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043F\u0440\u0438 \u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u0438 \u043D\u0430 \u0441\u0441\u044B\u043B\u043A\u0443 \u0432 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043F\u0435\u0440\u0435\u0434 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0435\u043C \u0438\u043B\u0438 \u0432\u0441\u0442\u0430\u0432\u043A\u043E\u0439.","Decrease UI Font Size":"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0448\u0440\u0438\u0444\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430","Display clipboard history capture toggle on the locked application screen. This allows you to control history capture settings directly from the lock screen.":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u044C \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430 \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u043C \u044D\u043A\u0440\u0430\u043D\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u043C\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u043D\u0435\u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043D\u043D\u043E \u0441 \u044D\u043A\u0440\u0430\u043D\u0430 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438.","Display disabled collections name on the navigation bar collections menu":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0445 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0439 \u0432 \u043C\u0435\u043D\u044E \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0439 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Display disabled collections name on the navigation bar under collections menu":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0445 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0439 \u0432 \u043C\u0435\u043D\u044E \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0439 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Display full name of selected collection on the navigation bar":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Enable Auto Start":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u0443\u0441\u043A","Enable application auto start on system boot":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u0443\u0441\u043A \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u043F\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435 \u0441\u0438\u0441\u0442\u0435\u043C\u044B","Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443 \u044D\u043A\u0440\u0430\u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430 \u0431\u0435\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0435\u0434\u043E\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u044C \u043D\u0435\u0441\u0430\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0432\u0430\u0448\u0438\u043C \u0434\u0430\u043D\u043D\u044B\u043C.","Enable auto update on capture":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0435","Enable history capture":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0445\u0432\u0430\u0442 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430","Enable programming language detection":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u044F\u0437\u044B\u043A\u0430 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F","Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u044D\u043A\u0440\u0430\u043D\u0430 \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043F\u043E\u0432\u044B\u0448\u0435\u043D\u0438\u044F \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0449\u0438\u0442\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u043E\u0442 \u043D\u0435\u0441\u0430\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u0430.","Enter recovery password to reset passcode.":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0441\u0431\u0440\u043E\u0441\u0430 \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430.","Enter your\xA0<strong>{{screenLockPassCodeLength}} digits</strong>\xA0passcode":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\xA0<strong>{{screenLockPassCodeLength}}-\u0437\u043D\u0430\u0447\u043D\u044B\u0439</strong>\xA0\u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430","Forgot passcode ?":"\u0417\u0430\u0431\u044B\u043B\u0438 \u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430?","Forgot?":"\u0417\u0430\u0431\u044B\u043B\u0438?","Hint: {{screenLockRecoveryPasswordMasked}}":"\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0430: {{screenLockRecoveryPasswordMasked}}","Increase UI Font Size":"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0448\u0440\u0438\u0444\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430","List each word or sentence on a new line.":"\u041A\u0430\u0436\u0434\u043E\u0435 \u0441\u043B\u043E\u0432\u043E \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u0441\u043F\u0438\u0441\u043A\u0430 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0430 \u043D\u043E\u0432\u043E\u0439 \u0441\u0442\u0440\u043E\u043A\u0435.","Lock Screen Passcode":"\u041A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u044D\u043A\u0440\u0430\u043D\u0430 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","Manage Collections":"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044F\u043C\u0438","Minimal 4 digits":"\u041C\u0438\u043D\u0438\u043C\u0443\u043C 4 \u0446\u0438\u0444\u0440\u044B","Minimum number of lines to trigger detection":"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u043E\u043A \u0434\u043B\u044F \u0441\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u043D\u0438\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F","Open Security Settings":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438","Passcode digits remaining":"\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0446\u0438\u0444\u0440 \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430","Passcode is not set":"\u041A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D","Passcode is not valid":"\u041A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043D\u0435\u0432\u0435\u0440\u043D\u044B\u0439","Passcode length":"\u0414\u043B\u0438\u043D\u0430 \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430","Passcode mismatch":"\u041D\u0435\u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0435 \u043A\u043E\u0434\u0430","Passcode successfully verified":"\u041A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u0440\u043E\u0432\u0435\u0440\u0435\u043D","Password is incorrect.":"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C.","PasteBar Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 PasteBar","Programming Language Detection":"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u044F\u0437\u044B\u043A\u0430 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F","Programming language selection":"\u0412\u044B\u0431\u043E\u0440 \u044F\u0437\u044B\u043A\u0430 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F","Recovery Password for Lock Screen Passcode":"\u041F\u0430\u0440\u043E\u043B\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u044D\u043A\u0440\u0430\u043D\u0430 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","Recovery password is set.":"\u041F\u0430\u0440\u043E\u043B\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D.","Refresh Application UI":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Require Screen Unlock at Application Start":"\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443 \u044D\u043A\u0440\u0430\u043D\u0430 \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Reset Font Size":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0430\u0437\u043C\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",Security:"\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C","Security Settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438","Sensitive words or sentences listed below will automatically be masked if found in the copied text. Case insensitive.":"\u041A\u043E\u043D\u0444\u0438\u0434\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0441\u043B\u043E\u0432\u0430 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F, \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0435 \u043D\u0438\u0436\u0435, \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F, \u0435\u0441\u043B\u0438 \u043E\u043D\u0438 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0439\u0434\u0435\u043D\u044B \u0432 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u043C \u0442\u0435\u043A\u0441\u0442\u0435. \u0411\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430.","Set a passcode to unlock the locked screen and protect your data from unauthorized access.":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043A\u0440\u0430\u043D\u0430 \u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u0432\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445 \u043E\u0442 \u043D\u0435\u0441\u0430\u043D\u043A\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0434\u043E\u0441\u0442\u0443\u043F\u0430.","Set a recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.":"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F, \u0447\u0442\u043E\u0431\u044B \u043B\u0435\u0433\u043A\u043E \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u044D\u043A\u0440\u0430\u043D\u0430 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u0435\u0441\u043B\u0438 \u0432\u044B \u0435\u0433\u043E \u0437\u0430\u0431\u044B\u043B\u0438. \u0412\u0430\u0448 \u043F\u0430\u0440\u043E\u043B\u044C \u0431\u0443\u0434\u0435\u0442 \u043D\u0430\u0434\u0435\u0436\u043D\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C\u0441\u044F \u0432 \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u041E\u0421 \u0432\u0430\u0448\u0435\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430.",Settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Show Clipboard History Capture Control on Lock Screen":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u0445\u0432\u0430\u0442\u043E\u043C \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430 \u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u0435 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","Show Disabled Collections":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438","Show collection name on the navbar":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Show disabled collections on the navbar list":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u0435 \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438","Skip auto start prompt on app launch":"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F","Stop Words List":"\u0421\u043F\u0438\u0441\u043E\u043A \u0441\u0442\u043E\u043F-\u0441\u043B\u043E\u0432","Swap Panels Layout":"\u041F\u043E\u043C\u0435\u043D\u044F\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u0438 \u043C\u0435\u0441\u0442\u0430\u043C\u0438","Switch the layout position of panels in Clipboard History and Paste Menu views":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u043F\u0430\u043D\u0435\u043B\u0435\u0439 \u0432 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F\u0445 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430 \u0438 \u043C\u0435\u043D\u044E \u0432\u0441\u0442\u0430\u0432\u043A\u0438","Thank you <b>{{name}}</b> for using Pro license.":"Thank you <b>{{name}}</b> for using Pro license.","Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license.":"Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license.","Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license. Your license allow you to use all available features with priority support and free upgdates until the license expires.":"Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license. Your license allow you to use all available features with priority support and free upgdates until the license expires.","To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.":"\u0414\u043B\u044F \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0435\u043D\u0438\u044F \u043D\u0430\u0438\u043B\u0443\u0447\u0448\u0435\u0439 \u0442\u043E\u0447\u043D\u043E\u0441\u0442\u0438 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u043E 7 \u044F\u0437\u044B\u043A\u043E\u0432. \u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u0432\u044B\u0431\u043E\u0440\u0430 \u043F\u043E\u0432\u044B\u0448\u0430\u0435\u0442 \u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C.","User Preferences":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Words or sentences listed below will not be captured in clipboard history if found in the copied text. Case insensitive.":"\u0421\u043B\u043E\u0432\u0430 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F, \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0435 \u043D\u0438\u0436\u0435, \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0445\u0432\u0430\u0442\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0438\u0441\u0442\u043E\u0440\u0438\u044E \u0431\u0443\u0444\u0435\u0440\u0430 \u043E\u0431\u043C\u0435\u043D\u0430, \u0435\u0441\u043B\u0438 \u043E\u043D\u0438 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0439\u0434\u0435\u043D\u044B \u0432 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u043C \u0442\u0435\u043A\u0441\u0442\u0435. \u0411\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430.","Your Pro license is Activated":"Your Pro license is Activated","Your Pro license is activated":"Your Pro license is activated","Your license key below":"Your license key below","passcode reset":"\u0441\u0431\u0440\u043E\u0441 \u043A\u043E\u0434\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u0430"}},AX={en:OX,es:PX,ru:RX};Vi.extend(XZ),Na.addDefaultLocale(iX),Na.addLocale(oX),Na.addLocale(lX),Na.addLocale(cX),Na.addLocale(dX),Na.addLocale(uX);const mx=new Map,fx={en:new Na(LI)},CM=!1,zX=LI;sr.use(vT).use(TX).init({debug:!1,resources:AX,fallbackLng:zX,detection:{order:["localStorage","cookie","navigator"],caches:["localStorage"]},supportedLngs:Cj.map(e=>e.code),interpolation:{escapeValue:!1},saveMissing:CM,defaultNS:"common",keySeparator:":::",nsSeparator:!1,saveMissingTo:"current",updateMissing:CM,missingKeyHandler:async(e,t,n,r)=>{console.warn("missingKeyHandler",e,t,n,r)},react:{transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","b","i"]}},async e=>{e&&console.log(e),window.__locale__=sr.language}),sr.on("languageChanged",async function(e){window.__locale__=e,yp.getState().setUserSelectedLanguage(e),vn("change_menu_language",{language:e}),vn("build_system_menu"),mx.clear(),console.log("Language changed to:",e),console.log("timeAgoCache",mx)});const Hc=()=>{const e=sr.language==="en"?"en":sr.language;return fx[e]?fx[e]:(fx[sr.language]=new Na(sr.language),fx[sr.language])};function SM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=SM(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=SM(e))&&(r&&(r+=" "),r+=t);return r}const TC="-";function FX(e){const t=$X(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function s(i){const c=i.split(TC);return c[0]===""&&c.length!==1&&c.shift(),EM(c,t)||HX(i)}function o(i,c){const u=n[i]||[];return c&&r[i]?[...u,...r[i]]:u}return{getClassGroupId:s,getConflictingClassGroupIds:o}}function EM(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?EM(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(TC);return(i=t.validators.find(({validator:c})=>c(o)))==null?void 0:i.classGroupId}const NM=/^\[(.+)\]$/;function HX(e){if(NM.test(e)){const t=NM.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function $X(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return WX(Object.entries(e.classGroups),n).forEach(([s,o])=>{MC(o,r,s,t)}),r}function MC(e,t,n,r){e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:_M(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(BX(s)){MC(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{MC(i,_M(t,o),n,r)})})}function _M(e,t){let n=e;return t.split(TC).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function BX(e){return e.isThemeGetter}function WX(e,t){return t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,c])=>[t+i,c])):o);return[n,s]}):e}function VX(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function s(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}}const IM="!";function UX(e){const t=e.separator,n=t.length===1,r=t[0],s=t.length;return function(o){const i=[];let c=0,u=0,h;for(let b=0;b<o.length;b++){let g=o[b];if(c===0){if(g===r&&(n||o.slice(b,b+s)===t)){i.push(o.slice(u,b)),u=b+s;continue}if(g==="/"){h=b;continue}}g==="["?c++:g==="]"&&c--}const p=i.length===0?o:o.substring(u),m=p.startsWith(IM),x=m?p.substring(1):p,C=h&&h>u?h-u:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:C}}}function qX(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function YX(e){return{cache:VX(e.cacheSize),splitModifiers:UX(e),...FX(e)}}const KX=/\s+/;function GX(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=new Set;return e.trim().split(KX).map(i=>{const{modifiers:c,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:p}=n(i);let m=r(p?h.substring(0,p):h),x=!!p;if(!m){if(!p)return{isTailwindClass:!1,originalClassName:i};if(m=r(h),!m)return{isTailwindClass:!1,originalClassName:i};x=!1}const C=qX(c).join(":");return{isTailwindClass:!0,modifierId:u?C+IM:C,classGroupId:m,originalClassName:i,hasPostfixModifier:x}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:c,classGroupId:u,hasPostfixModifier:h}=i,p=c+u;return o.has(p)?!1:(o.add(p),s(u,h).forEach(m=>o.add(c+m)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function ZX(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=TM(t))&&(r&&(r+=" "),r+=n);return r}function TM(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=TM(e[r]))&&(n&&(n+=" "),n+=t);return n}function QX(e,...t){let n,r,s,o=i;function i(u){const h=t.reduce((p,m)=>m(p),e());return n=YX(h),r=n.cache.get,s=n.cache.set,o=c,c(u)}function c(u){const h=r(u);if(h)return h;const p=GX(u,n);return s(u,p),p}return function(){return o(ZX.apply(null,arguments))}}function pr(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const MM=/^\[(?:([a-z-]+):)?(.+)\]$/i,JX=/^\d+\/\d+$/,XX=new Set(["px","full","screen"]),eee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tee=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nee=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ree=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mi(e){return yu(e)||XX.has(e)||JX.test(e)}function $c(e){return Sp(e,"length",uee)}function yu(e){return!!e&&!Number.isNaN(Number(e))}function gx(e){return Sp(e,"number",yu)}function W0(e){return!!e&&Number.isInteger(Number(e))}function aee(e){return e.endsWith("%")&&yu(e.slice(0,-1))}function bn(e){return MM.test(e)}function Bc(e){return eee.test(e)}const see=new Set(["length","size","percentage"]);function oee(e){return Sp(e,see,LM)}function iee(e){return Sp(e,"position",LM)}const lee=new Set(["image","url"]);function cee(e){return Sp(e,lee,pee)}function dee(e){return Sp(e,"",hee)}function V0(){return!0}function Sp(e,t,n){const r=MM.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function uee(e){return tee.test(e)}function LM(){return!1}function hee(e){return nee.test(e)}function pee(e){return ree.test(e)}function mee(){const e=pr("colors"),t=pr("spacing"),n=pr("blur"),r=pr("brightness"),s=pr("borderColor"),o=pr("borderRadius"),i=pr("borderSpacing"),c=pr("borderWidth"),u=pr("contrast"),h=pr("grayscale"),p=pr("hueRotate"),m=pr("invert"),x=pr("gap"),C=pr("gradientColorStops"),b=pr("gradientColorStopPositions"),g=pr("inset"),k=pr("margin"),j=pr("opacity"),S=pr("padding"),E=pr("saturate"),N=pr("scale"),T=pr("sepia"),M=pr("skew"),L=pr("space"),D=pr("translate"),P=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",bn,t],z=()=>[bn,t],R=()=>["",mi,$c],$=()=>["auto",yu,bn],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],W=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",bn],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[yu,gx],V=()=>[yu,bn];return{cacheSize:500,separator:":",theme:{colors:[V0],spacing:[mi,$c],blur:["none","",Bc,bn],brightness:F(),borderColor:[e],borderRadius:["none","","full",Bc,bn],borderSpacing:z(),borderWidth:R(),contrast:F(),grayscale:G(),hueRotate:V(),invert:G(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[aee,$c],inset:B(),margin:B(),opacity:F(),padding:z(),saturate:F(),scale:F(),sepia:G(),skew:V(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",bn]}],container:["container"],columns:[{columns:[Bc]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[..._(),bn]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W0,bn]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",bn]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",W0,bn]}],"grid-cols":[{"grid-cols":[V0]}],"col-start-end":[{col:["auto",{span:["full",W0,bn]},bn]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[V0]}],"row-start-end":[{row:["auto",{span:[W0,bn]},bn]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",bn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",bn]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",bn,t]}],"min-w":[{"min-w":["min","max","fit",bn,mi]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Bc]},Bc,bn]}],h:[{h:[bn,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",mi,bn]}],"max-h":[{"max-h":[bn,t,"min","max","fit"]}],"font-size":[{text:["base",Bc,$c]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gx]}],"font-family":[{font:[V0]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",bn]}],"line-clamp":[{"line-clamp":["none",yu,gx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mi,bn]}],"list-image":[{"list-image":["none",bn]}],"list-style-type":[{list:["none","disc","decimal",bn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mi,$c]}],"underline-offset":[{"underline-offset":["auto",mi,bn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",bn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",bn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),iee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",oee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cee]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[mi,bn]}],"outline-w":[{outline:[mi,$c]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[mi,$c]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Bc,dee]}],"shadow-color":[{shadow:[V0]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":K()}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Bc,bn]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[E]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",bn]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",bn]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",bn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[W0,bn]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",bn]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",bn]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",bn]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mi,$c,gx]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const fee=QX(mee),DM=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/gm;function xt(...e){return fee(dn(e))}const OM="\u2022",PM=(e,t)=>{for(const n of e){if(n.id===t)return n;if(n.children){const r=PM(n.children,t);if(r)return r}}return null},RM=(e,t)=>{let n=[];for(const r of e)t.includes(r.id)&&n.push(r),r.children&&(n=[...n,...RM(r.children,t)]);return n},LC=(e,t,n=[],r)=>{var h;let s=JSON.parse(JSON.stringify(e));t!==null&&(s=((h=PM(e,t))==null?void 0:h.children)||[]);const o=s.findIndex(p=>n.includes(p.id)),i=RM(e,n);i.forEach(p=>{p.parentId=t});const c=s.filter(p=>!n.includes(p.id));let u=r;return o!==-1&&r>o&&(u-=1),c.splice(u,0,...i),c.forEach((p,m)=>{p.orderNumber=m}),c},Wc=function(){let e="",t=null,n=null;if(window.getSelection)t=window.getSelection(),e=t?t.toString():"",n=t?t.anchorNode&&t.anchorNode.parentElement:null;else if(document.selection&&document.selection.type!=="Control"){const r=document.selection.createRange();e=r.text,n=r.parentElement?r.parentElement():null}return{selection:t,text:e,selectedElement:n}};function AM(e){return DM.lastIndex=0,DM.test(e)}function mr(e){return e?/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/.test(e)?e.startsWith("mailto:")?e:"mailto:".concat(e):!e.startsWith("http://")&&!e.startsWith("https://")?"https://".concat(e):e:""}function zM(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gee(e){if(!e)return"";const t=e.split("@"),n=Ep(t[0]),r=t[1];return"".concat(n,"@").concat(r)}function FM(e,t=1,n=1,r=0){if(!e)return"";const s="\u2022";return e.split("\n").map(o=>o.split(/\s+/).map(i=>{const c=i.slice(0,t),u=i.slice(-n);if(i.length>t+n+r){const h=i.length-t-n,p=s.repeat(h);if(r>0&&h>r){const m="...",x=s.repeat(h-r);return"".concat(c).concat(x).concat(m).concat(u)}else return"".concat(c).concat(p).concat(u)}else return i}).join(" ")).join("\n")}function Ep(e){return e?e.split("\n").map(t=>t.split(/\s+/).map(n=>{const r=n.charAt(0);if(n.length>2){const s=n.length-2,o=n.charAt(n.length-1),i=OM.repeat(s);return"".concat(r).concat(i).concat(o)}else{const s=OM.repeat(1);return"".concat(r).concat(s)}}).join(" ")).join("\n"):""}function vx(e){return e?(e=e.trim().replace(/\n+/g,"\n"),e.endsWith("\n")&&(e=e.slice(0,-1)),e):""}function xu(e,t="200",n,r=!1){const s=e||"slate",o=n||(t==="200"&&s==="slate"?"700":s!=="slate"?"900":"600"),i=r?"border":"bg";return"".concat(i,"-").concat(s,"-").concat(t," dark:").concat(i,"-").concat(s,"-").concat(o)}function yx(e,t="200",n){return xu(e,t,e==="slate"&&n==="700"?"600":n,!0)}const xx=async(e,t)=>{try{return Sa(e,t)}catch(n){throw console.error("invoke command ".concat(e),n),n}},Vc=(e,t)=>{var n;return MU({queryKey:[e,t],queryFn:()=>xx(e,t),...(n=t==null?void 0:t.useQueryOptions)!=null?n:{}})},On=(e,t)=>LU({mutationFn:n=>xx(e,n),...t!=null?t:{}});var vee={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const DC=vp()((e,t)=>({clipboardHistory:[],newClipboardHistory:[],foundClipboardHistory:[],newClipboardHistoryCount:0,historyListSimpleBar:null,scrollToTopHistoryList(n=!1){const{historyListSimpleBar:r}=t();r!=null&&r.current&&(yp.getState().isHistoryAutoUpdateOnCaputureEnabled||n)&&(r==null||r.current.scrollTo({top:0,behavior:"auto"}))},setHistoryListSimpleBar(n){e(()=>({historyListSimpleBar:n}))},async removeLinkMetaData(n){return await xx("delete_link_metadata",{historyId:n})},async generateLinkMetaData(n,r,s=!1){return await xx("fetch_link_metadata",{historyId:n,url:r,isPreviewOnly:s})},setClipboardHistory:(n,r=!1,s=!1)=>{let o=null;const i=Date.now(),c=!yp.getState().isHistoryAutoUpdateOnCaputureEnabled&&t().clipboardHistory.length>0&&!r?t().clipboardHistory:n;if(c.forEach((u,h)=>{if(u.links)try{u.arrLinks=JSON.parse(u.links)}catch{u.arrLinks=[]}u.hasEmoji&&(u.hasEmoji=AM(u.value));const p=u.updatedAt;let m=mx.get(p);if(!m||i-m.timestamp>60*1e3||h===0){const x=Hc().format(p,{round:"floor"}),C=Hc().format(p,"twitter-first-minute",{round:"floor"});m={timestamp:i,timeAgo:x,timeAgoShort:C},mx.set(p,m)}u.timeAgo=m.timeAgo,u.timeAgoShort=m.timeAgoShort,u.showTimeAgo=h===0||m.timeAgo!==o,o=m.timeAgo}),!yp.getState().isHistoryAutoUpdateOnCaputureEnabled&&t().clipboardHistory.length>0&&!r){const u=c[0].historyId,h=n.findIndex(p=>p.historyId===u);e(()=>({newClipboardHistoryCount:h,newClipboardHistory:n}));return}e(()=>({[s?"foundClipboardHistory":"clipboardHistory"]:c,newClipboardHistory:[],newClipboardHistoryCount:0}))},updateClipboardHistory:()=>{const{newClipboardHistory:n,scrollToTopHistoryList:r,setClipboardHistory:s}=t();s(n.length>0?n:t().clipboardHistory,!0),r(!0)}})),Yi=gp(DC);vee.TAURI_DEBUG&&(window.clipboardHistoryStore=DC);const HM=It(null),fi=It(!1),_r=It(0),Np=It(0),bu=It(!1),Uc=It(!1),bx=It(!1),wu=It(null),io=It(null),Ki=It(null),gi=It(null),qc=It(null),ku=It(null),Rs=It(null),_p=It(!1),lo=It(!1),Ll=It(null),ju=It(!1),Ip=It(!1),co=It(!1),U0=It(null),Fo=It(null),OC=It(null),Dl=It(!1),Cu=It(null),_a=It(null),Ia=It(null),Ua=It(null),Su=It(null),As=It(null),Gi=It(null),q0=It(null),Yc=It(null),Tp=It(null),Y0=It(null),Ol=It(null),wx=It(null),PC=It(null),Kc=It(null),kx=It(!1),Pl=It(!1),Pr=It(!1),RC=It(null),jx=It(null),yee=It(null),Eu=It(null),vi=It(null),Gc=It(null),Zc=It(null),Qc=It(null),Nu=It(null),zs=It(null),Fs=It(!1),fa=It(null),yi=It(!1),xi=It(!1),Jc=It(!1),xee=It(!1);function Cx(){Fo.value=null,Y0.value=null,U0.value=null,Su.value=null,As.value=null,_a.value=null,Ip.value=!1,Pl.value=!1,co.value=!1,Pr.value=!1,Yc.value=null,Gi.value=null,Tp.value=null}function _u(){Zc.value=null,vi.value=null,yi.value=!1,zs.value=null,yee.value=null,fa.value=null,xi.value=!1,Jc.value=!1,xee.value=!1,(Qc.value||Nu.value)&&(Fs.value=!1)}const nn=It(!1),bee=It(!1),AC=1,Mp=100,K0=60,zC=300,$M={"text/html":"html","application/json":"json","text/plain":"text","text/xml":"xml","application/xml":"xml","application/javascript":"javascript","text/css":"css","text/markdown":"markdown","application/x-javascript":"javascript","application/x-json":"json","application/x-www-form-urlencoded":"form","application/javascript; charset=utf-8":"javascript","application/json; charset=utf-8":"json","text/html; charset=utf-8":"html","text/plain; charset=utf-8":"text","text/xml; charset=utf-8":"xml","application/xml; charset=utf-8":"xml","application/x-javascript; charset=utf-8":"javascript","application/x-json; charset=utf-8":"json"},G0="New Clips Board",BM="Default board for moved or copied items from other tabs",Rl={resetPassword:"RESET_PASSWORD",resetPasscode:"RESET_PASSCODE",removeLicense:"REMOVE_LICENSE"},wee=[5,10,15,20,30,45,60],WM=60,kee="PasteBar",jee=f.createContext(void 0),Cee=e=>{const t=f.useContext(jee);return(e==null?void 0:e.store)||t||dZ()},See=e=>typeof(e==null?void 0:e.then)=="function",Eee=dt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function ut(e,t){const n=Cee(t),[[r,s,o],i]=f.useReducer(h=>{const p=n.get(e);return Object.is(h[0],p)&&h[1]===n&&h[2]===e?h:[p,n,e]},void 0,()=>[n.get(e),n,e]);let c=r;(s!==n||o!==e)&&(i(),c=n.get(e));const u=t==null?void 0:t.delay;return f.useEffect(()=>{const h=n.sub(e,()=>{if(typeof u=="number"){setTimeout(i,u);return}i()});return i(),h},[n,e,u]),f.useDebugValue(c),See(c)?Eee(c):c}var Nee={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"};const _ee=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),se=(e,t)=>{const n=f.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:c="",children:u,...h},p)=>f.createElement("svg",{ref:p,...Nee,width:s,height:s,stroke:r,strokeWidth:i?Number(o)*24/Number(s):o,className:["lucide","lucide-".concat(_ee(e)),c].join(" "),...h},[...t.map(([m,x])=>f.createElement(m,x)),...Array.isArray(u)?u:[u]]));return n.displayName="".concat(e),n},Iee=se("ALargeSmall",[["path",{d:"M21 14h-5",key:"1vh23k"}],["path",{d:"M16 16v-3.5a2.5 2.5 0 0 1 5 0V16",key:"1wh10o"}],["path",{d:"M4.5 13h6",key:"dfilno"}],["path",{d:"m3 16 4.5-9 4.5 9",key:"2dxa0e"}]]),Tee=se("Airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]),Mee=se("AlarmClock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]),VM=se("AlignEndVertical",[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]),Lee=se("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]),UM=se("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]),Dee=se("AlignRight",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}],["line",{x1:"21",x2:"7",y1:"18",y2:"18",key:"1g9eri"}]]),qM=se("AlignVerticalJustifyEnd",[["rect",{width:"14",height:"6",x:"5",y:"12",rx:"2",key:"4l4tp2"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 22h20",key:"272qi7"}]]),Oee=se("AlignVerticalSpaceAround",[["rect",{width:"10",height:"6",x:"7",y:"9",rx:"2",key:"b1zbii"}],["path",{d:"M22 20H2",key:"1p1f7z"}],["path",{d:"M22 4H2",key:"1b7qnq"}]]),Pee=se("Angry",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["path",{d:"M7.5 8 10 9",key:"olxxln"}],["path",{d:"m14 9 2.5-1",key:"1j6cij"}],["path",{d:"M9 10h0",key:"1vxvly"}],["path",{d:"M15 10h0",key:"1j6oav"}]]),Ree=se("Annoyed",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M14 9h2",key:"116p9w"}]]),Aee=se("Aperture",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]]),zee=se("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]),Fee=se("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]),Hee=se("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),$ee=se("AreaChart",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M7 12v5h12V8l-5 5-4-4Z",key:"zxz28u"}]]),Bee=se("Armchair",[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H7v-2a2 2 0 0 0-4 0Z",key:"1e01m0"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]),Wee=se("ArrowDownFromLine",[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]]),Z0=se("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),YM=se("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),Vee=se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),KM=se("ArrowUpToLine",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]),Uee=se("Asterisk",[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]]),qee=se("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]),Yee=se("AudioLines",[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]),Kee=se("AudioWaveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]]),Gee=se("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),Zee=se("Axe",[["path",{d:"m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9",key:"csbz4o"}],["path",{d:"M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z",key:"113wfo"}]]),Qee=se("Baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]]),Jee=se("Beef",[["circle",{cx:"12.5",cy:"8.5",r:"2.5",key:"9738u8"}],["path",{d:"M12.5 2a6.5 6.5 0 0 0-6.22 4.6c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c4 0 8.4-1.8 11.4-4.3A6.5 6.5 0 0 0 12.5 2Z",key:"o0f6za"}],["path",{d:"m18.5 6 2.19 4.5a6.48 6.48 0 0 1 .31 2 6.49 6.49 0 0 1-2.6 5.2C15.4 20.2 11 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5",key:"k7p6i0"}]]),Xee=se("Beer",[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]]),ete=se("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]),tte=se("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]),nte=se("Biohazard",[["circle",{cx:"12",cy:"11.9",r:"2",key:"e8h31w"}],["path",{d:"M6.7 3.4c-.9 2.5 0 5.2 2.2 6.7C6.5 9 3.7 9.6 2 11.6",key:"17bolr"}],["path",{d:"m8.9 10.1 1.4.8",key:"15ezny"}],["path",{d:"M17.3 3.4c.9 2.5 0 5.2-2.2 6.7 2.4-1.2 5.2-.6 6.9 1.5",key:"wtwa5u"}],["path",{d:"m15.1 10.1-1.4.8",key:"1r0b28"}],["path",{d:"M16.7 20.8c-2.6-.4-4.6-2.6-4.7-5.3-.2 2.6-2.1 4.8-4.7 5.2",key:"m7qszh"}],["path",{d:"M12 13.9v1.6",key:"zfyyim"}],["path",{d:"M13.5 5.4c-1-.2-2-.2-3 0",key:"1bi9q0"}],["path",{d:"M17 16.4c.7-.7 1.2-1.6 1.5-2.5",key:"1rhjqw"}],["path",{d:"M5.5 13.9c.3.9.8 1.8 1.5 2.5",key:"8gsud3"}]]),rte=se("Bird",[["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20",key:"oj1oa8"}],["path",{d:"m20 7 2 .5-2 .5",key:"12nv4d"}],["path",{d:"M10 18v3",key:"1yea0a"}],["path",{d:"M14 17.75V21",key:"1pymcb"}],["path",{d:"M7 18a6 6 0 0 0 3.84-10.61",key:"1npnn0"}]]),ate=se("Bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]),ste=se("Bold",[["path",{d:"M14 12a4 4 0 0 0 0-8H6v8",key:"v2sylx"}],["path",{d:"M15 20a4 4 0 0 0 0-8H6v8Z",key:"1ef5ya"}]]),ote=se("BookOpenText",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}],["path",{d:"M6 8h2",key:"30oboj"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M16 12h2",key:"7q9ll5"}]]),ite=se("BookUser",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M15 13a3 3 0 1 0-6 0",key:"10j68g"}]]),lte=se("BoxSelect",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]),cte=se("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),dte=se("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),ute=se("CalendarHeart",[["path",{d:"M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7",key:"136lmk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1t7hil"}]]),hte=se("CalendarX",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]]),pte=se("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"}]]),mte=se("Candy",[["path",{d:"m9.5 7.5-2 2a4.95 4.95 0 1 0 7 7l2-2a4.95 4.95 0 1 0-7-7Z",key:"ue6khb"}],["path",{d:"M14 6.5v10",key:"5xnk7c"}],["path",{d:"M10 7.5v10",key:"1uew51"}],["path",{d:"m16 7 1-5 1.37.68A3 3 0 0 0 19.7 3H21v1.3c0 .46.1.92.32 1.33L22 7l-5 1",key:"b9cp6k"}],["path",{d:"m8 17-1 5-1.37-.68A3 3 0 0 0 4.3 21H3v-1.3a3 3 0 0 0-.32-1.33L2 17l5-1",key:"5lney8"}]]),fte=se("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]),gte=se("Carrot",[["path",{d:"M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46",key:"rfqxbe"}],["path",{d:"M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z",key:"6b25w4"}],["path",{d:"M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z",key:"fn65lo"}]]),vte=se("Cat",[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]]),yte=se("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),Dt=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),xte=se("Cherry",[["path",{d:"M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z",key:"cvxqlc"}],["path",{d:"M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z",key:"1ostrc"}],["path",{d:"M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12",key:"hqx58h"}],["path",{d:"M22 9c-4.29 0-7.14-2.33-10-7 5.71 0 10 4.67 10 7Z",key:"eykp1o"}]]),jn=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),bte=se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Lp=se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),wte=se("ChevronsDownUp",[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]]),kte=se("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),jte=se("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]),GM=se("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Cte=se("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]]),Ste=se("CircleArrowLeft",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}]]),Ete=se("CircleArrowRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]),Nte=se("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]),_te=se("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]),Ite=se("CircleGauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]]),Tte=se("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),FC=se("CircleOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]),Mte=se("CircleParking",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]]),Q0=se("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]),Lte=se("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Dte=se("CircleUserRound",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Ote=se("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"}]]),J0=se("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),HC=se("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ZM=se("ClipboardCheck",[["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:"m9 14 2 2 4-4",key:"df797q"}]]),Pte=se("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"}]]),Rte=se("ClipboardMinus",[["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:"M9 14h6",key:"159ibu"}]]),aa=se("ClipboardPaste",[["path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z",key:"1pp7kr"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10",key:"2ik1ml"}],["path",{d:"m17 10 4 4-4 4",key:"vp2hj1"}]]),Sx=se("ClipboardPen",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M10.4 12.6a2 2 0 0 1 3 3L8 21l-4 1 1-4Z",key:"hnx206"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5",key:"cereej"}],["path",{d:"M4 13.5V6a2 2 0 0 1 2-2h2",key:"5ua5vh"}]]),QM=se("ClipboardType",[["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:"M9 12v-1h6v1",key:"iehl6m"}],["path",{d:"M11 17h2",key:"12w5me"}],["path",{d:"M12 11v6",key:"1bwqyc"}]]),qa=se("Clipboard",[["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"}]]),Ate=se("CloudDownload",[["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:"M12 12v9",key:"192myk"}],["path",{d:"m8 17 4 4 4-4",key:"1ul180"}]]),zte=se("CloudUpload",[["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:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]]),Fte=se("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),Hte=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),$te=se("Codepen",[["polygon",{points:"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2",key:"srzb37"}],["line",{x1:"12",x2:"12",y1:"22",y2:"15.5",key:"1t73f2"}],["polyline",{points:"22 8.5 12 15.5 2 8.5",key:"ajlxae"}],["polyline",{points:"2 15.5 12 8.5 22 15.5",key:"susrui"}],["line",{x1:"12",x2:"12",y1:"2",y2:"8.5",key:"2cldga"}]]),Bte=se("Codesandbox",[["path",{d:"M21 16V8a2 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:"yt0hxn"}],["polyline",{points:"7.5 4.21 12 6.81 16.5 4.21",key:"fabo96"}],["polyline",{points:"7.5 19.79 7.5 14.6 3 12",key:"z377f1"}],["polyline",{points:"21 12 16.5 14.6 16.5 19.79",key:"9nrev1"}],["polyline",{points:"3.27 6.96 12 12.01 20.73 6.96",key:"1180pa"}],["line",{x1:"12",x2:"12",y1:"22.08",y2:"12",key:"3z3uq6"}]]),Wte=se("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]),Vte=se("ConciergeBell",[["path",{d:"M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z",key:"1pvr1r"}],["path",{d:"M20 16a8 8 0 1 0-16 0",key:"1pa543"}],["path",{d:"M12 4v4",key:"1bq03y"}],["path",{d:"M10 4h4",key:"1xpv9s"}]]),Ute=se("ContactRound",[["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["line",{x1:"8",x2:"8",y1:"2",y2:"4",key:"1ff9gb"}],["line",{x1:"16",x2:"16",y1:"2",y2:"4",key:"1ufoma"}]]),qte=se("Contact",[["path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2",key:"1mghuy"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["circle",{cx:"12",cy:"10",r:"2",key:"1yojzk"}],["line",{x1:"8",x2:"8",y1:"2",y2:"4",key:"1ff9gb"}],["line",{x1:"16",x2:"16",y1:"2",y2:"4",key:"1ufoma"}]]),Yte=se("Container",[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]]),JM=se("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["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"}]]),$C=se("CopyMinus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["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"}]]),Kte=se("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["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"}]]),XM=se("CopyX",[["line",{x1:"12",x2:"18",y1:"12",y2:"18",key:"1rg63v"}],["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["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"}]]),BC=se("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"}]]),X0=se("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Gte=se("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]),Zte=se("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"}]]),Qte=se("Dessert",[["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["path",{d:"M10.2 3.2C5.5 4 2 8.1 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4 0c0-4.9-3.5-9-8.2-9.8",key:"lfo06j"}],["path",{d:"M3.2 14.8a9 9 0 0 0 17.6 0",key:"12xarc"}]]),Jte=se("Dice6",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),Xte=se("Dog",[["path",{d:"M10 5.172C10 3.782 8.423 2.679 6.5 3c-2.823.47-4.113 6.006-4 7 .08.703 1.725 1.722 3.656 1 1.261-.472 1.96-1.45 2.344-2.5",key:"19br0u"}],["path",{d:"M14.267 5.172c0-1.39 1.577-2.493 3.5-2.172 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"11n1an"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444c0-1.061-.162-2.2-.493-3.309m-9.243-6.082A8.801 8.801 0 0 1 12 5c.78 0 1.5.108 2.161.306",key:"wsu29d"}]]),ene=se("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),Al=se("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]),tne=se("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"}]]),nne=se("DraftingCompass",[["circle",{cx:"12",cy:"5",r:"2",key:"f1ur92"}],["path",{d:"m3 21 8.02-14.26",key:"1ssaw4"}],["path",{d:"m12.99 6.74 1.93 3.44",key:"iwagvd"}],["path",{d:"M19 12c-3.87 4-10.13 4-14 0",key:"1tsu18"}],["path",{d:"m21 21-2.16-3.84",key:"vylbct"}]]),rne=se("Dribbble",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M19.13 5.09C15.22 9.14 10 10.44 2.25 10.94",key:"hpej1"}],["path",{d:"M21.75 12.84c-6.62-1.41-12.14 1-16.38 6.32",key:"1tr44o"}],["path",{d:"M8.56 2.75c4.37 6 6 9.42 8 17.72",key:"kbh691"}]]),ane=se("Drum",[["path",{d:"m2 2 8 8",key:"1v6059"}],["path",{d:"m22 2-8 8",key:"173r8a"}],["ellipse",{cx:"12",cy:"9",rx:"10",ry:"5",key:"liohsx"}],["path",{d:"M7 13.4v7.9",key:"1yi6u9"}],["path",{d:"M12 14v8",key:"1tn2tj"}],["path",{d:"M17 13.4v7.9",key:"eqz2v3"}],["path",{d:"M2 9v8a10 5 0 0 0 20 0V9",key:"1750ul"}]]),sne=se("Dumbbell",[["path",{d:"m6.5 6.5 11 11",key:"f7oqzb"}],["path",{d:"m21 21-1-1",key:"cpc6if"}],["path",{d:"m3 3 1 1",key:"d3rpuf"}],["path",{d:"m18 22 4-4",key:"1e32o6"}],["path",{d:"m2 6 4-4",key:"189tqz"}],["path",{d:"m3 10 7-7",key:"1bxui2"}],["path",{d:"m14 21 7-7",key:"16x78n"}]]),one=se("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 3v0a2 2 0 0 1 2 2v0c0 1.1.9 2 2 2v0a2 2 0 0 0 2-2v0c0-1.1.9-2 2-2h3.17",key:"1fi5u6"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2v0a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"xsiumc"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),bi=se("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),ine=se("EqualNot",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}],["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}]]),lne=se("Euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]),WC=se("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]),eL=se("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"}]]),eg=se("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),Dp=se("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),cne=se("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]),dne=se("Fan",[["path",{d:"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",key:"484a7f"}],["path",{d:"M12 12v.01",key:"u5ubse"}]]),une=se("Feather",[["path",{d:"M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z",key:"u4sw5n"}],["line",{x1:"16",x2:"2",y1:"8",y2:"22",key:"1c47m2"}],["line",{x1:"17.5",x2:"9",y1:"15",y2:"15",key:"2fj3pr"}]]),hne=se("Figma",[["path",{d:"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z",key:"1340ok"}],["path",{d:"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z",key:"1hz3m3"}],["path",{d:"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z",key:"1oz8n2"}],["path",{d:"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z",key:"1ff65i"}],["path",{d:"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z",key:"pdip6e"}]]),pne=se("FileAudio2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]),VC=se("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]),mne=se("FileCode",[["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 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]),UC=se("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]]),fne=se("FileHeart",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10.29 10.7a2.43 2.43 0 0 0-2.66-.52c-.29.12-.56.3-.78.53l-.35.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L6.5 18l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1c1fso"}]]),gne=se("FileImage",[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),vne=se("FileJson2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"fq0c9t"}],["path",{d:"M8 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"4gibmv"}]]),yne=se("FileJson",[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),xne=se("FileLineChart",[["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:"m16 13-3.5 3.5-2-2L8 17",key:"zz7yod"}]]),bne=se("FileLock2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v1",key:"jmtmu2"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"5",x:"2",y:"13",rx:"1",key:"10y5wo"}],["path",{d:"M8 13v-2a2 2 0 1 0-4 0v2",key:"1pdxzg"}]]),wne=se("FileLock",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["rect",{width:"8",height:"6",x:"8",y:"12",rx:"1",key:"3yr8at"}],["path",{d:"M10 12v-2a2 2 0 1 1 4 0v2",key:"j4i8d"}]]),kne=se("FileMusic",[["circle",{cx:"14",cy:"16",r:"2",key:"1bzzi3"}],["circle",{cx:"6",cy:"18",r:"2",key:"1fncim"}],["path",{d:"M4 12.4V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2h-7.5",key:"skc018"}],["path",{d:"M8 18v-7.7L16 9v7",key:"1oie6o"}]]),qC=se("FilePenLine",[["path",{d:"m18 5-3-3H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"h0fsxq"}],["path",{d:"M8 18h1",key:"13wk12"}],["path",{d:"M18.4 9.6a2 2 0 1 1 3 3L17 17l-4 1 1-4Z",key:"dyo8mm"}]]),jne=se("FilePen",[["path",{d:"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v10",key:"x7tsz2"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10.4 12.6a2 2 0 1 1 3 3L8 21l-4 1 1-4Z",key:"o3xyfb"}]]),Cne=se("FilePieChart",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3.5",key:"13ddob"}],["path",{d:"M4.017 11.512a6 6 0 1 0 8.466 8.475",key:"s6vs5t"}],["path",{d:"M8 16v-6a6 6 0 0 1 6 6z",key:"zfixgv"}]]),Sne=se("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]),Ene=se("FileSpreadsheet",[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]),YC=se("FileSymlink",[["path",{d:"m10 18 3-3-3-3",key:"18f6ys"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 11V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"50q2rw"}]]),Nne=se("FileTerminal",[["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:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]]),Ex=se("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"}]]),_ne=se("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]),Ine=se("FileVideo",[["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 11 5 3-5 3v-6Z",key:"7ntvm4"}]]),Tne=se("FileVolume",[["path",{d:"M11 11a5 5 0 0 1 0 6",key:"193qb2"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"1x9xgf"}],["path",{d:"m7 10-3 2H2v4h2l3 2z",key:"1ln807"}]]),tL=se("File",[["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"}]]),Mne=se("Fingerprint",[["path",{d:"M2 12C2 6.5 6.5 2 12 2a10 10 0 0 1 8 4",key:"1jc9o5"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12c0-.7.12-1.37.34-2",key:"1mxgy1"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2c0 .47 0 1.17-.02 2",key:"1fgabc"}]]),Lne=se("FishSymbol",[["path",{d:"M2 16s9-15 20-4C11 23 2 8 2 8",key:"h4oh4o"}]]),Dne=se("Fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]),One=se("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]),Pne=se("FlaskRound",[["path",{d:"M10 2v7.31",key:"5d1hyh"}],["path",{d:"M14 9.3V1.99",key:"14k4l0"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14 9.3a6.5 6.5 0 1 1-4 0",key:"1r8fvy"}],["path",{d:"M5.52 16h12.96",key:"46hh1i"}]]),Rne=se("FlipVertical",[["path",{d:"M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3",key:"14bfxa"}],["path",{d:"M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3",key:"14rx03"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]]),Ane=se("FolderDot",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["circle",{cx:"12",cy:"13",r:"1",key:"49l61u"}]]),zne=se("FolderGit2",[["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]),Fne=se("FolderGit",[["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M14 13h3",key:"1dgedf"}],["path",{d:"M7 13h3",key:"1pygq7"}]]),Hne=se("FolderHeart",[["path",{d:"M11 20H4a2 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.9H20a2 2 0 0 1 2 2v1.5",key:"6hud8k"}],["path",{d:"M13.9 17.45c-1.2-1.2-1.14-2.8-.2-3.73a2.43 2.43 0 0 1 3.44 0l.36.34.34-.34a2.43 2.43 0 0 1 3.45-.01v0c.95.95 1 2.53-.2 3.74L17.5 21Z",key:"vgq86i"}]]),$ne=se("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]),Bne=se("FolderKey",[["circle",{cx:"16",cy:"20",r:"2",key:"1vifvg"}],["path",{d:"M10 20H4a2 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.9H20a2 2 0 0 1 2 2v2",key:"3hgo9p"}],["path",{d:"m22 14-4.5 4.5",key:"1ef6z8"}],["path",{d:"m21 15 1 1",key:"1ejcpy"}]]),Wne=se("FolderLock",[["rect",{width:"8",height:"5",x:"14",y:"17",rx:"1",key:"19aais"}],["path",{d:"M10 20H4a2 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.9H20a2 2 0 0 1 2 2v2.5",key:"1w6v7t"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}]]),nL=se("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"}]]),Vne=se("FolderPen",[["path",{d:"M8.4 10.6a2 2 0 0 1 3 3L6 19l-4 1 1-4Z",key:"dakro8"}],["path",{d:"M2 11.5V5a2 2 0 0 1 2-2h3.9c.7 0 1.3.3 1.7.9l.8 1.2c.4.6 1 .9 1.7.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.5",key:"a8xqs0"}]]),Une=se("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),Op=se("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),qne=se("Frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),KC=se("GalleryVertical",[["path",{d:"M3 2h18",key:"15qxfx"}],["rect",{width:"18",height:"12",x:"3",y:"6",rx:"2",key:"1439r6"}],["path",{d:"M3 22h18",key:"8prr45"}]]),Yne=se("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]),Kne=se("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]),Gne=se("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]),Zne=se("Ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]),Qne=se("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]),Jne=se("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Xne=se("Gitlab",[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]]),ere=se("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),tre=se("Goal",[["path",{d:"M12 13V2l8 4-8 4",key:"5wlwwj"}],["path",{d:"M20.561 10.222a9 9 0 1 1-12.55-5.29",key:"1c0wjv"}],["path",{d:"M8.002 9.997a5 5 0 1 0 8.9 2.02",key:"gb1g7m"}]]),nre=se("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),rre=se("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]]),are=se("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),rL=se("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Nx=se("Grip",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]),sre=se("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]),ore=se("HandMetal",[["path",{d:"M18 12.5V10a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v1.4",key:"7eki13"}],["path",{d:"M14 11V9a2 2 0 1 0-4 0v2",key:"94qvcw"}],["path",{d:"M10 10.5V5a2 2 0 1 0-4 0v9",key:"m1ah89"}],["path",{d:"m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5",key:"t1skq1"}]]),ire=se("HardDriveDownload",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),aL=se("HardDriveUpload",[["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M12 2v8",key:"1q4o3n"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),lre=se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),cre=se("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]),dre=se("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08v0c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"12sd6o"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]),GC=se("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),ure=se("Highlighter",[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]),hre=se("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),pre=se("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]),mre=se("ImageDown",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]),_x=se("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"}]]),fre=se("Import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]]),gre=se("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"}]]),vre=se("Infinity",[["path",{d:"M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z",key:"1z0uae"}]]),yre=se("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]),xre=se("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]),bre=se("Joystick",[["path",{d:"M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z",key:"jg2n2t"}],["path",{d:"M6 15v-2",key:"gd6mvg"}],["path",{d:"M12 15V9",key:"8c7uyn"}],["circle",{cx:"12",cy:"6",r:"3",key:"1gm2ql"}]]),wre=se("KeySquare",[["path",{d:"M12.4 2.7c.9-.9 2.5-.9 3.4 0l5.5 5.5c.9.9.9 2.5 0 3.4l-3.7 3.7c-.9.9-2.5.9-3.4 0L8.7 9.8c-.9-.9-.9-2.5 0-3.4Z",key:"9li5bk"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M9.4 10.6 2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4",key:"1ym3zm"}]]),kre=se("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]),jre=se("LampDesk",[["path",{d:"m14 5-3 3 2 7 8-8-7-2Z",key:"1b0msb"}],["path",{d:"m14 5-3 3-3-3 3-3 3 3Z",key:"1uemms"}],["path",{d:"M9.5 6.5 4 12l3 6",key:"1bx08v"}],["path",{d:"M3 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H3Z",key:"wap775"}]]),Cre=se("Lamp",[["path",{d:"M8 2h8l4 10H4L8 2Z",key:"9dma5w"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M8 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H8Z",key:"mwf4oh"}]]),ZC=se("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),Ix=se("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]),Sre=se("LayoutPanelTop",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]]),Ere=se("LeafyGreen",[["path",{d:"M2 22c1.25-.987 2.27-1.975 3.9-2.2a5.56 5.56 0 0 1 3.8 1.5 4 4 0 0 0 6.187-2.353 3.5 3.5 0 0 0 3.69-5.116A3.5 3.5 0 0 0 20.95 8 3.5 3.5 0 1 0 16 3.05a3.5 3.5 0 0 0-5.831 1.373 3.5 3.5 0 0 0-5.116 3.69 4 4 0 0 0-2.348 6.155C3.499 15.42 4.409 16.712 4.2 18.1 3.926 19.743 3.014 20.732 2 22",key:"1134nt"}],["path",{d:"M2 22 17 7",key:"1q7jp2"}]]),Nre=se("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]),tg=se("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),_re=se("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]),QC=se("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"}]]),Ire=se("ListCollapse",[["path",{d:"m3 10 2.5-2.5L3 5",key:"i6eama"}],["path",{d:"m3 19 2.5-2.5L3 14",key:"w2gmor"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}]]),Tre=se("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),Mre=se("ListMusic",[["path",{d:"M21 15V6",key:"h1cx4g"}],["path",{d:"M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",key:"8saifv"}],["path",{d:"M12 12H3",key:"18klou"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M12 18H3",key:"11ftsu"}]]),Lre=se("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]),Dre=se("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]),Ore=se("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]),Pre=se("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]),Rre=se("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]),Are=se("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),zre=se("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"}]]),Tx=se("Locate",[["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"}]]),Fre=se("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"}]]),Hre=se("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),$re=se("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]),Bre=se("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),Wre=se("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]),Vre=se("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Ure=se("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"}]]),qre=se("Martini",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]]),Yre=se("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]),Kre=se("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]),Gre=se("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),Zre=se("Meh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),Qre=se("MessageCircleWarning",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),Jre=se("MessageSquarePlus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]),sL=se("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]),Xre=se("MessageSquareWarning",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v2",key:"stiyo7"}],["path",{d:"M12 13h.01",key:"y0uutt"}]]),eae=se("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),tae=se("Milestone",[["path",{d:"M18 6H5a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h13l4-3.5L18 6Z",key:"1mp5s7"}],["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}]]),oL=se("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),nae=se("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),rae=se("MountainSnow",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}],["path",{d:"M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19",key:"1pvmmp"}]]),aae=se("Mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]),sae=se("Move3d",[["path",{d:"M5 3v16h16",key:"1mqmf9"}],["path",{d:"m5 19 6-6",key:"jh6hbb"}],["path",{d:"m2 6 3-3 3 3",key:"tkyvxa"}],["path",{d:"m18 16 3 3-3 3",key:"1d4glt"}]]),ng=se("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]),oae=se("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]),iae=se("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]),rg=se("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]),Mx=se("Move",[["polyline",{points:"5 9 2 12 5 15",key:"1r5uj5"}],["polyline",{points:"9 5 12 2 15 5",key:"5v383o"}],["polyline",{points:"15 19 12 22 9 19",key:"g7qi8m"}],["polyline",{points:"19 9 22 12 19 15",key:"tpp73q"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}]]),lae=se("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),cae=se("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"}]]),dae=se("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),uae=se("Nfc",[["path",{d:"M6 8.32a7.43 7.43 0 0 1 0 7.36",key:"9iaqei"}],["path",{d:"M9.46 6.21a11.76 11.76 0 0 1 0 11.58",key:"1yha7l"}],["path",{d:"M12.91 4.1a15.91 15.91 0 0 1 .01 15.8",key:"4iu2gk"}],["path",{d:"M16.37 2a20.16 20.16 0 0 1 0 20",key:"sap9u2"}]]),hae=se("NotebookTabs",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M15 2v20",key:"dcj49h"}],["path",{d:"M15 7h5",key:"1xj5lc"}],["path",{d:"M15 12h5",key:"w5shd9"}],["path",{d:"M15 17h5",key:"1qaofu"}]]),pae=se("Notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]),mae=se("NotepadText",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]]),fae=se("OctagonAlert",[["polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",key:"h1p8hx"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),gae=se("PackageOpen",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]),vae=se("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["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"}]]),yae=se("PanelTopClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 16 3-3 3 3",key:"1idcnm"}]]),xae=se("PanelTopOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m15 14-3 3-3-3",key:"g215vf"}]]),ag=se("PanelTop",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]),bae=se("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),wae=se("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]),kae=se("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12v0c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"bpx1uq"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11v0c-.11.7-.72 1.22-1.43 1.22H17",key:"1pd0s7"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98v0C9.52 4.9 9 5.52 9 6.23V7",key:"zq5xbz"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),Pp=se("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),jae=se("PersonStanding",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]),Cae=se("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]),Iu=se("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),zl=se("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),Sae=se("Pizza",[["path",{d:"M15 11h.01",key:"rns66s"}],["path",{d:"M11 15h.01",key:"k85uqc"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"m2 16 20 6-6-20A20 20 0 0 0 2 16",key:"e4slt2"}],["path",{d:"M5.71 17.11a17.04 17.04 0 0 1 11.4-11.4",key:"rerf8f"}]]),Eae=se("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]),Nae=se("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]),_ae=se("Plug2",[["path",{d:"M9 2v6",key:"17ngun"}],["path",{d:"M15 2v6",key:"s7yy2p"}],["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M5 8h14",key:"pcz4l3"}],["path",{d:"M6 11V8h12v3a6 6 0 1 1-12 0v0Z",key:"nd4hoy"}]]),Iae=se("PlugZap2",[["path",{d:"m13 2-2 2.5h3L12 7",key:"1me98u"}],["path",{d:"M10 14v-3",key:"1mllf3"}],["path",{d:"M14 14v-3",key:"1l3fkq"}],["path",{d:"M11 19c-1.7 0-3-1.3-3-3v-2h8v2c0 1.7-1.3 3-3 3Z",key:"jd5pat"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]]),Tae=se("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]),Mae=se("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]),Ir=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Rp=se("PointerOff",[["path",{d:"M10 4.5V4a2 2 0 0 0-2.41-1.957",key:"jsi14n"}],["path",{d:"M13.9 8.4a2 2 0 0 0-1.26-1.295",key:"hirc7f"}],["path",{d:"M21.7 16.2A8 8 0 0 0 22 14v-3a2 2 0 1 0-4 0v-1a2 2 0 0 0-3.63-1.158",key:"1jxb2e"}],["path",{d:"m7 15-1.8-1.8a2 2 0 0 0-2.79 2.86L6 19.7a7.74 7.74 0 0 0 6 2.3h2a8 8 0 0 0 5.657-2.343",key:"10r7hm"}],["path",{d:"M6 6v8",key:"tv5xkp"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),iL=se("Pointer",[["path",{d:"M22 14a8 8 0 0 1-8 8",key:"56vcr3"}],["path",{d:"M18 11v-1a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0",key:"1pp0yd"}],["path",{d:"M14 10V9a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v1",key:"u654g"}],["path",{d:"M10 9.5V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v10",key:"1e2dtv"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"g6ys72"}]]),Lae=se("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Dae=se("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]),Oae=se("Quote",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",key:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]),Pae=se("Rabbit",[["path",{d:"M13 16a3 3 0 0 1 2.24 5",key:"1epib5"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3",key:"ue9ozu"}],["path",{d:"M20 8.54V4a2 2 0 1 0-4 0v3",key:"49iql8"}],["path",{d:"M7.612 12.524a3 3 0 1 0-1.6 4.3",key:"1e33i0"}]]),Rae=se("Radiation",[["path",{d:"M12 12h0.01",key:"6ztbls"}],["path",{d:"M7.5 4.2c-.3-.5-.9-.7-1.3-.4C3.9 5.5 2.3 8.1 2 11c-.1.5.4 1 1 1h5c0-1.5.8-2.8 2-3.4-1.1-1.9-2-3.5-2.5-4.4z",key:"wy49g3"}],["path",{d:"M21 12c.6 0 1-.4 1-1-.3-2.9-1.8-5.5-4.1-7.1-.4-.3-1.1-.2-1.3.3-.6.9-1.5 2.5-2.6 4.3 1.2.7 2 2 2 3.5h5z",key:"vklnvr"}],["path",{d:"M7.5 19.8c-.3.5-.1 1.1.4 1.3 2.6 1.2 5.6 1.2 8.2 0 .5-.2.7-.8.4-1.3-.5-.9-1.4-2.5-2.5-4.3-1.2.7-2.8.7-4 0-1.1 1.8-2 3.4-2.5 4.3z",key:"wkdf1o"}]]),Aae=se("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),zae=se("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]),Lx=se("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),lL=se("RemoveFormatting",[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]]),Fae=se("Ribbon",[["path",{d:"M17.75 9.01c-.52 2.08-1.83 3.64-3.18 5.49l-2.6 3.54-2.97 4-3.5-2.54 3.85-4.97c-1.86-2.61-2.8-3.77-3.16-5.44",key:"1njedg"}],["path",{d:"M17.75 9.01A7 7 0 0 0 6.2 9.1C6.06 8.5 6 7.82 6 7c0-3.5 2.83-5 5.98-5C15.24 2 18 3.5 18 7c0 .73-.09 1.4-.25 2.01Z",key:"10len7"}],["path",{d:"m9.35 14.53 2.64-3.31",key:"1wfi09"}],["path",{d:"m11.97 18.04 2.99 4 3.54-2.54-3.93-5",key:"1ezyge"}],["path",{d:"M14 8c0 1-1 2-2.01 3.22C11 10 10 9 10 8a2 2 0 1 1 4 0",key:"aw0zq5"}]]),cL=se("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),Hae=se("Router",[["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6.01 18H6",key:"19vcac"}],["path",{d:"M10.01 18H10",key:"uamcmx"}],["path",{d:"M15 10v4",key:"qjz1xs"}],["path",{d:"M17.84 7.17a4 4 0 0 0-5.66 0",key:"1rif40"}],["path",{d:"M20.66 4.34a8 8 0 0 0-11.31 0",key:"6a5xfq"}]]),$ae=se("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]),Bae=se("Salad",[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]]),Wae=se("SatelliteDish",[["path",{d:"M4 10a7.31 7.31 0 0 0 10 10Z",key:"1fzpp3"}],["path",{d:"m9 15 3-3",key:"88sc13"}],["path",{d:"M17 13a6 6 0 0 0-6-6",key:"15cc6u"}],["path",{d:"M21 13A10 10 0 0 0 11 3",key:"11nf8s"}]]),Vae=se("Satellite",[["path",{d:"M13 7 9 3 5 7l4 4",key:"vyckw6"}],["path",{d:"m17 11 4 4-4 4-4-4",key:"rchckc"}],["path",{d:"m8 12 4 4 6-6-4-4Z",key:"1sshf7"}],["path",{d:"m16 8 3-3",key:"x428zp"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}]]),Uae=se("ScrollText",[["path",{d:"M8 21h12a2 2 0 0 0 2-2v-2H10v2a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v3h4",key:"13a6an"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M15 12h-5",key:"r7krc0"}]]),qae=se("Scroll",[["path",{d:"M8 21h12a2 2 0 0 0 2-2v-2H10v2a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v3h4",key:"13a6an"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}]]),Ap=se("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Yae=se("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]),Kae=se("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),Tu=se("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"}]]),Gae=se("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]),Zae=se("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"}]]),Qae=se("ShieldHalf",[["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:"M12 22V2",key:"zs6s6o"}]]),Jae=se("Shield",[["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"}]]),Xae=se("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),ese=se("Shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]),tse=se("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]),nse=se("Skull",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["path",{d:"M8 20v2h8v-2",key:"ded4og"}],["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M16 20a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20",key:"xq9p5u"}]]),rse=se("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]),ase=se("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"}]]),sse=se("SmartphoneNfc",[["rect",{width:"7",height:"12",x:"2",y:"6",rx:"1",key:"5nje8w"}],["path",{d:"M13 8.32a7.43 7.43 0 0 1 0 7.36",key:"1g306n"}],["path",{d:"M16.46 6.21a11.76 11.76 0 0 1 0 11.58",key:"uqvjvo"}],["path",{d:"M19.91 4.1a15.91 15.91 0 0 1 .01 15.8",key:"ujntz3"}]]),ose=se("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),ise=se("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),lse=se("Spade",[["path",{d:"M5 9c-1.5 1.5-3 3.2-3 5.5A5.5 5.5 0 0 0 7.5 20c1.8 0 3-.5 4.5-2 1.5 1.5 2.7 2 4.5 2a5.5 5.5 0 0 0 5.5-5.5c0-2.3-1.5-4-3-5.5l-7-7-7 7Z",key:"40bo9n"}],["path",{d:"M12 18v4",key:"jadmvz"}]]),cse=se("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]),dse=se("Speech",[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]]),use=se("SprayCan",[["path",{d:"M3 3h.01",key:"159qn6"}],["path",{d:"M7 5h.01",key:"1hq22a"}],["path",{d:"M11 7h.01",key:"1osv80"}],["path",{d:"M3 7h.01",key:"1xzrh3"}],["path",{d:"M7 9h.01",key:"19b3jx"}],["path",{d:"M3 11h.01",key:"1eifu7"}],["rect",{width:"4",height:"4",x:"15",y:"5",key:"mri9e4"}],["path",{d:"m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2",key:"aib6hk"}],["path",{d:"m13 14 8-2",key:"1d7bmk"}],["path",{d:"m13 19 8-2",key:"1y2vml"}]]),hse=se("SquareArrowUpRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 8h8v8",key:"b65dnt"}],["path",{d:"m8 16 8-8",key:"13b9ih"}]]),dL=se("SquareAsterisk",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8.5 14 7-4",key:"12hpby"}],["path",{d:"m8.5 10 7 4",key:"wwy2dy"}]]),uL=se("SquareCheckBig",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]]),hs=se("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),pse=se("SquareCode",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 10-2 2 2 2",key:"p6et6i"}],["path",{d:"m14 14 2-2-2-2",key:"m075q2"}]]),mse=se("SquareDashedMousePointer",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"m12 12 4 10 1.7-4.3L22 16Z",key:"64ilsv"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),hL=se("SquareFunction",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]]),fse=se("SquareGanttChart",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]),gse=se("SquareKanban",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]]),vse=se("SquareLibrary",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 7v10",key:"d5nglc"}],["path",{d:"M11 7v10",key:"pptsnr"}],["path",{d:"m15 7 2 10",key:"1m7qm5"}]]),yse=se("SquareM",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),JC=se("SquareMenu",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 8h10",key:"1jw688"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h10",key:"wp8him"}]]),xse=se("SquareMinus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),bse=se("SquareMousePointer",[["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}],["path",{d:"m12 12 4 10 1.7-4.3L22 16Z",key:"64ilsv"}]]),wse=se("SquareParking",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]]),Dx=se("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]),pL=se("SquarePlus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),mL=se("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),kse=se("SquareUserRound",[["path",{d:"M18 21a6 6 0 0 0-12 0",key:"kaz2du"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),jse=se("SquareUser",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 21v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1m6ac2"}]]),XC=se("SquareX",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),Ya=se("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),Ox=se("StarOff",[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",key:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),Mu=se("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]),fL=se("StretchHorizontal",[["rect",{width:"20",height:"6",x:"2",y:"4",rx:"2",key:"qdearl"}],["rect",{width:"20",height:"6",x:"2",y:"14",rx:"2",key:"1xrn6j"}]]),Cse=se("SunMedium",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]]),Sse=se("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]),Ese=se("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),gL=se("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),Nse=se("ToyBrick",[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]]),_se=se("TrafficCone",[["path",{d:"M9.3 6.2a4.55 4.55 0 0 0 5.4 0",key:"flyxqv"}],["path",{d:"M7.9 10.7c.9.8 2.4 1.3 4.1 1.3s3.2-.5 4.1-1.3",key:"1nlxxg"}],["path",{d:"M13.9 3.5a1.93 1.93 0 0 0-3.8-.1l-3 10c-.1.2-.1.4-.1.6 0 1.7 2.2 3 5 3s5-1.3 5-3c0-.2 0-.4-.1-.5Z",key:"vz7x1l"}],["path",{d:"m7.5 12.2-4.7 2.7c-.5.3-.8.7-.8 1.1s.3.8.8 1.1l7.6 4.5c.9.5 2.1.5 3 0l7.6-4.5c.7-.3 1-.7 1-1.1s-.3-.8-.8-1.1l-4.7-2.8",key:"1xfzlw"}]]),Ise=se("TramFront",[["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m18 22-2-3",key:"1p0ohu"}],["path",{d:"M8 15h0",key:"q9eq1f"}],["path",{d:"M16 15h0",key:"pzrbjg"}]]),e3=se("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"}]]),or=se("Trash",[["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"}]]),Tse=se("Trello",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["rect",{width:"3",height:"9",x:"7",y:"7",key:"14n3xi"}],["rect",{width:"3",height:"5",x:"14",y:"7",key:"s4azjd"}]]),Ho=se("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"}]]),Mse=se("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]),Lse=se("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]),Dse=se("Twitch",[["path",{d:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",key:"c0yzno"}]]),Ose=se("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),Pse=se("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Rse=se("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]),Ase=se("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),zse=se("VenetianMask",[["path",{d:"M2 12a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V7h-5a8 8 0 0 0-5 2 8 8 0 0 0-5-2H2Z",key:"1g6z3j"}],["path",{d:"M6 11c1.5 0 3 .5 3 2-2 0-3 0-3-2Z",key:"c2lwnf"}],["path",{d:"M18 11c-1.5 0-3 .5-3 2 2 0 3 0 3-2Z",key:"njd9zo"}]]),Fse=se("Voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]),Hse=se("Wand",[["path",{d:"M15 4V2",key:"z1p9b7"}],["path",{d:"M15 16v-2",key:"px0unx"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M17.8 11.8 19 13",key:"yihg8r"}],["path",{d:"M15 9h0",key:"kg5t1u"}],["path",{d:"M17.8 6.2 19 5",key:"fd4us0"}],["path",{d:"m3 21 9-9",key:"1jfql5"}],["path",{d:"M12.2 6.2 11 5",key:"i3da3b"}]]),$se=se("Waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]]),Bse=se("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),Wse=se("WrapText",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]]),Rn=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vse=se("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Use=se("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),qse=se("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);let $o;typeof window<"u"?$o=window:typeof self<"u"?$o=self:$o=global;let t3=null,n3=null;const vL=20,r3=$o.clearTimeout,yL=$o.setTimeout,a3=$o.cancelAnimationFrame||$o.mozCancelAnimationFrame||$o.webkitCancelAnimationFrame,xL=$o.requestAnimationFrame||$o.mozRequestAnimationFrame||$o.webkitRequestAnimationFrame;a3==null||xL==null?(t3=r3,n3=function(e){return yL(e,vL)}):(t3=function([e,t]){a3(e),r3(t)},n3=function(e){const t=xL(function(){r3(n),e()}),n=yL(function(){a3(t),e()},vL);return[t,n]});function Yse(e){let t,n,r,s,o,i,c;const u=typeof document<"u"&&document.attachEvent;if(!u){i=function(g){const k=g.__resizeTriggers__,j=k.firstElementChild,S=k.lastElementChild,E=j.firstElementChild;S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight,E.style.width=j.offsetWidth+1+"px",E.style.height=j.offsetHeight+1+"px",j.scrollLeft=j.scrollWidth,j.scrollTop=j.scrollHeight},o=function(g){return g.offsetWidth!==g.__resizeLast__.width||g.offsetHeight!==g.__resizeLast__.height},c=function(g){if(g.target.className&&typeof g.target.className.indexOf=="function"&&g.target.className.indexOf("contract-trigger")<0&&g.target.className.indexOf("expand-trigger")<0)return;const k=this;i(this),this.__resizeRAF__&&t3(this.__resizeRAF__),this.__resizeRAF__=n3(function(){o(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(j){j.call(k,g)}))})};let p=!1,m="";r="animationstart";const x="Webkit Moz O ms".split(" ");let C="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),b="";{const g=document.createElement("fakeelement");if(g.style.animationName!==void 0&&(p=!0),p===!1){for(let k=0;k<x.length;k++)if(g.style[x[k]+"AnimationName"]!==void 0){b=x[k],m="-"+b.toLowerCase()+"-",r=C[k],p=!0;break}}}n="resizeanim",t="@"+m+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",s=m+"animation: 1ms "+n+"; "}const h=function(p){if(!p.getElementById("detectElementResize")){const m=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',x=p.head||p.getElementsByTagName("head")[0],C=p.createElement("style");C.id="detectElementResize",C.type="text/css",e!=null&&C.setAttribute("nonce",e),C.styleSheet?C.styleSheet.cssText=m:C.appendChild(p.createTextNode(m)),x.appendChild(C)}};return{addResizeListener:function(p,m){if(u)p.attachEvent("onresize",m);else{if(!p.__resizeTriggers__){const x=p.ownerDocument,C=$o.getComputedStyle(p);C&&C.position==="static"&&(p.style.position="relative"),h(x),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=x.createElement("div")).className="resize-triggers";const b=x.createElement("div");b.className="expand-trigger",b.appendChild(x.createElement("div"));const g=x.createElement("div");g.className="contract-trigger",p.__resizeTriggers__.appendChild(b),p.__resizeTriggers__.appendChild(g),p.appendChild(p.__resizeTriggers__),i(p),p.addEventListener("scroll",c,!0),r&&(p.__resizeTriggers__.__animationListener__=function(k){k.animationName===n&&i(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(m)}},removeResizeListener:function(p,m){if(u)p.detachEvent("onresize",m);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(m),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",c,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}let sg=class extends f.Component{constructor(){super(...arguments);gt(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0});gt(this,"_autoSizer",null);gt(this,"_detectElementResize",null);gt(this,"_parentNode",null);gt(this,"_resizeObserver",null);gt(this,"_timeoutId",null);gt(this,"_onResize",()=>{var s,o,i,c;this._timeoutId=null;const{disableHeight:t,disableWidth:n,onResize:r}=this.props;if(this._parentNode){const u=window.getComputedStyle(this._parentNode)||{},h=parseFloat((s=u.paddingLeft)!=null?s:"0"),p=parseFloat((o=u.paddingRight)!=null?o:"0"),m=parseFloat((i=u.paddingTop)!=null?i:"0"),x=parseFloat((c=u.paddingBottom)!=null?c:"0"),C=this._parentNode.getBoundingClientRect(),b=C.height-m-x,g=C.width-h-p,k=this._parentNode.offsetHeight-m-x,j=this._parentNode.offsetWidth-h-p;(!t&&(this.state.height!==k||this.state.scaledHeight!==b)||!n&&(this.state.width!==j||this.state.scaledWidth!==g))&&(this.setState({height:k,width:j,scaledHeight:b,scaledWidth:g}),typeof r=="function"&&r({height:k,scaledHeight:b,scaledWidth:g,width:j}))}});gt(this,"_setRef",t=>{this._autoSizer=t})}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Yse(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:s=!1,disableWidth:o=!1,nonce:i,onResize:c,style:u={},tagName:h="div",...p}=this.props,{height:m,scaledHeight:x,scaledWidth:C,width:b}=this.state,g={};return s||(m===0?(g.height=n,g.scaledHeight=n):(g.height=m,g.scaledHeight=x)),o||(b===0?(g.width=r,g.scaledWidth=r):(g.width=b,g.scaledWidth=C)),a.jsx("div",{ref:this._setRef,...p,children:t(g)})}};const{createElement:zp,createContext:Kse,forwardRef:bL,useCallback:Zi,useContext:wL,useEffect:Fl,useImperativeHandle:kL,useLayoutEffect:Gse,useMemo:Zse,useRef:uo,useState:og}=Mf,jL=Mf.useId,ig=Gse,Qse=typeof jL=="function"?jL:()=>null;let Jse=0;function s3(e=null){const t=Qse(),n=uo(e||t||null);return n.current===null&&(n.current=""+Jse++),n.current}const Px=Kse(null);Px.displayName="PanelGroupContext";function CL({children:e=null,className:t="",collapsedSize:n=0,collapsible:r=!1,defaultSize:s=null,forwardedRef:o,id:i=null,maxSize:c=null,minSizePixels:u,minSize:h,onCollapse:p=null,onResize:m=null,order:x=null,style:C={},tagName:b="div"}){const g=wL(Px);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const k=s3(i),{collapsePanel:j,expandPanel:S,getPanelSize:E,getPanelSizePixels:N,getPanelStyle:T,registerPanel:M,resizePanel:L,units:D,unregisterPanel:P}=g;h==null&&(D==="percentages"?h=10:h=0);const A=uo({onCollapse:p,onResize:m});Fl(()=>{A.current.onCollapse=p,A.current.onResize=m});const B=T(k,s),z=uo({size:SL(B)}),R=uo({callbacksRef:A,collapsedSize:n,collapsible:r,defaultSize:s,id:k,idWasAutoGenerated:i==null,maxSize:c,minSizePixels:u,minSize:h,order:x});return ig(()=>{z.current.size=SL(B),R.current.callbacksRef=A,R.current.collapsedSize=n,R.current.collapsible=r,R.current.defaultSize=s,R.current.id=k,R.current.idWasAutoGenerated=i==null,R.current.maxSize=c,R.current.minSize=h,R.current.minSizePixels=u,R.current.order=x}),ig(()=>(M(k,R),()=>{P(k)}),[x,k,M,P]),kL(o,()=>({collapse:()=>j(k),expand:()=>S(k),getCollapsed(){return z.current.size===0},getId(){return k},getSize($){return E(k,$)},getSizePixels(){return N(k)},resize:($,_)=>L(k,$,_)}),[j,S,E,N,k,L]),zp(b,{children:e,className:t,"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-id":k,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1),id:"data-panel-id-".concat(k),style:{...B,...C}})}const Rx=bL((e,t)=>zp(CL,{...e,forwardedRef:t}));CL.displayName="Panel",Rx.displayName="forwardRef(Panel)";function SL(e){const{flexGrow:t}=e;return typeof t=="string"?parseFloat(t):t}const Lu=10;function EL(e,t="Assertion failed!"){if(!e)throw console.error(t),Error(t)}var Xse={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Xc=Xse.TAURI_DEBUG;function lg(e,t,n,r,s,o,i,c){const{id:u,panels:h,units:p}=t,m=p==="pixels"?Hl(u):NaN,{sizes:x}=c||{},C=x||o,b=ps(h),g=C.concat();let k=0;{const E=s<0?r:n,N=b.findIndex(D=>D.current.id===E),T=b[N],M=C[N],L=c3(p,m,T,M,M+Math.abs(s),e);if(M===L)return C;L===0&&M>0&&i.set(E,M),s=s<0?M-L:L-M}let j=s<0?n:r,S=b.findIndex(E=>E.current.id===j);for(;;){const E=b[S],N=C[S],T=Math.abs(s)-Math.abs(k),M=c3(p,m,E,N,N-T,e);if(N!==M&&(M===0&&N>0&&i.set(E.current.id,N),k+=N-M,g[S]=M,k.toPrecision(Lu).localeCompare(Math.abs(s).toPrecision(Lu),void 0,{numeric:!0})>=0))break;if(s<0){if(--S<0)break}else if(++S>=b.length)break}return k===0?C:(j=s<0?r:n,S=b.findIndex(E=>E.current.id===j),g[S]=C[S]+k,g)}function Fp(e,t,n){t.forEach((r,s)=>{const o=e[s];if(!o)return;const{callbacksRef:i,collapsedSize:c,collapsible:u,id:h}=o.current,p=n[h];if(p!==r){n[h]=r;const{onCollapse:m,onResize:x}=i.current;x&&x(r,p),u&&m&&((p==null||p===c)&&r!==c?m(!1):p!==c&&r===c&&m(!0))}})}function eoe({groupId:e,panels:t,units:n}){const r=n==="pixels"?Hl(e):NaN,s=ps(t),o=Array(s.length);let i=0,c=100;for(let u=0;u<s.length;u++){const h=s[u],{defaultSize:p}=h.current;p!=null&&(i++,o[u]=n==="pixels"?p/r*100:p,c-=o[u])}for(let u=0;u<s.length;u++){const h=s[u];let{defaultSize:p,id:m,maxSize:x,minSize:C}=h.current;if(p!=null)continue;n==="pixels"&&(C=C/r*100,x!=null&&(x=x/r*100));const b=s.length-i,g=Math.min(x!=null?x:100,Math.max(C,c/b));o[u]=g,i++,c-=g}if(c!==0)for(let u=0;u<s.length;u++){const h=s[u];let{maxSize:p,minSize:m}=h.current;n==="pixels"&&(m=m/r*100,p!=null&&(p=p/r*100));const x=Math.min(p!=null?p:100,Math.max(m,o[u]+c));if(x!==o[u]&&(c-=x-o[u],o[u]=x,Math.abs(c).toFixed(3)==="0.000"))break}return Math.abs(c).toFixed(3)!=="0.000"&&Xc&&console.error("Invalid panel group configuration; default panel sizes should total 100% but was ".concat((100-c).toFixed(1),"%. This can cause the cursor to become misaligned while dragging.")),o}function o3(e,t){if(t.length<2)return[null,null];const n=t.findIndex(i=>i.current.id===e);if(n<0)return[null,null];const r=n===t.length-1,s=r?t[n-1].current.id:e,o=r?e:t[n+1].current.id;return[s,o]}function Hl(e){const t=cg(e);if(t==null)return NaN;const n=t.getAttribute("data-panel-group-direction"),r=i3(e);return n==="horizontal"?t.offsetWidth-r.reduce((s,o)=>s+o.offsetWidth,0):t.offsetHeight-r.reduce((s,o)=>s+o.offsetHeight,0)}function NL(e,t,n){if(e.size===1)return"100";const r=ps(e).findIndex(o=>o.current.id===t),s=n[r];return s==null?"0":s.toPrecision(Lu)}function toe(e){return document.querySelector('[data-panel-id="'.concat(e,'"]'))||null}function cg(e){return document.querySelector('[data-panel-group-id="'.concat(e,'"]'))||null}function Ax(e){return document.querySelector('[data-panel-resize-handle-id="'.concat(e,'"]'))||null}function noe(e){var t;return(t=_L().findIndex(n=>n.getAttribute("data-panel-resize-handle-id")===e))!=null?t:null}function _L(){return Array.from(document.querySelectorAll("[data-panel-resize-handle-id]"))}function i3(e){return Array.from(document.querySelectorAll('[data-panel-resize-handle-id][data-panel-group-id="'.concat(e,'"]')))}function l3(e,t,n){var u,h,p,m,x,C;const r=Ax(t),s=i3(e),o=r?s.indexOf(r):-1,i=(p=(h=(u=n[o])==null?void 0:u.current)==null?void 0:h.id)!=null?p:null,c=(C=(x=(m=n[o+1])==null?void 0:m.current)==null?void 0:x.id)!=null?C:null;return[i,c]}function ps(e){return Array.from(e.values()).sort((t,n)=>{const r=t.current.order,s=n.current.order;return r==null&&s==null?0:r==null?-1:s==null?1:r-s})}function c3(e,t,n,r,s,o=null){var p;let{collapsedSize:i,collapsible:c,maxSize:u,minSize:h}=n.current;if(e==="pixels"&&(i=i/t*100,u!=null&&(u=u/t*100),h=h/t*100),c){if(r>i){if(s<=h/2+i)return i}else if(!((p=o==null?void 0:o.type)!=null&&p.startsWith("key"))&&s<h)return i}return Math.min(u!=null?u:100,Math.max(h,s))}function roe(e,t){const{collapsible:n,defaultSize:r,maxSize:s,minSize:o}=t.current;(o<0||e==="percentages"&&o>100)&&(Xc&&console.error("Invalid Panel minSize provided, ".concat(o)),t.current.minSize=0),s!=null&&(s<0||e==="percentages"&&s>100)&&(Xc&&console.error("Invalid Panel maxSize provided, ".concat(s)),t.current.maxSize=null),r!==null&&(r<0||e==="percentages"&&r>100?(Xc&&console.error("Invalid Panel defaultSize provided, ".concat(r)),t.current.defaultSize=null):r<o&&!n?(Xc&&console.error("Panel minSize (".concat(o,") cannot be greater than defaultSize (").concat(r,")")),t.current.defaultSize=o):s!=null&&r>s&&(Xc&&console.error("Panel maxSize (".concat(s,") cannot be less than defaultSize (").concat(r,")")),t.current.defaultSize=s))}function d3({groupId:e,panels:t,nextSizes:n,prevSizes:r,units:s}){n=[...n];const o=ps(t),i=s==="pixels"?Hl(e):NaN;let c=0;for(let u=0;u<o.length;u++){const h=o[u],p=r[u],m=n[u],x=c3(s,i,h,p,m);m!=x&&(c+=m-x,n[u]=x,Xc&&console.error("Invalid size (".concat(m,') specified for Panel "').concat(h.current.id,"\" given the panel's min/max size constraints")))}if(c.toFixed(3)!=="0.000")for(let u=0;u<o.length;u++){const h=o[u];let{maxSize:p,minSize:m}=h.current;s==="pixels"&&(m=m/i*100,p!=null&&(p=p/i*100));const x=Math.min(p!=null?p:100,Math.max(m,n[u]+c));if(x!==n[u]&&(c-=x-n[u],n[u]=x,Math.abs(c).toFixed(3)==="0.000"))break}return c.toFixed(3)!=="0.000"&&Xc&&console.error('"Invalid panel group configuration; default panel sizes should total 100% but was '.concat(100-c,"%")),n}function aoe({committedValuesRef:e,groupId:t,panels:n,setSizes:r,sizes:s,panelSizeBeforeCollapse:o}){Fl(()=>{const{direction:i,panels:c}=e.current,u=cg(t);EL(u!=null,'No group found for id "'.concat(t,'"'));const{height:h,width:p}=u.getBoundingClientRect(),m=i3(t).map(x=>{const C=x.getAttribute("data-panel-resize-handle-id"),b=ps(c),[g,k]=l3(t,C,b);if(g==null||k==null)return()=>{};let j=0,S=100,E=0,N=0;b.forEach(A=>{const{id:B,maxSize:z,minSize:R}=A.current;B===g?(j=R,S=z!=null?z:100):(E+=R,N+=z!=null?z:100)});const T=Math.min(S,100-E),M=Math.max(j,(b.length-1)*100-N),L=NL(c,g,s);x.setAttribute("aria-valuemax",""+Math.round(T)),x.setAttribute("aria-valuemin",""+Math.round(M)),x.setAttribute("aria-valuenow",""+Math.round(parseInt(L)));const D=A=>{if(!A.defaultPrevented)switch(A.key){case"Enter":{A.preventDefault();const B=b.findIndex(z=>z.current.id===g);if(B>=0){const z=b[B],R=s[B];if(R!=null){let $=0;R.toPrecision(Lu)<=z.current.minSize.toPrecision(Lu)?$=i==="horizontal"?p:h:$=-(i==="horizontal"?p:h);const _=lg(A,e.current,g,k,$,s,o.current,null);s!==_&&r(_)}}break}}};x.addEventListener("keydown",D);const P=toe(g);return P!=null&&x.setAttribute("aria-controls",P.id),()=>{x.removeAttribute("aria-valuemax"),x.removeAttribute("aria-valuemin"),x.removeAttribute("aria-valuenow"),x.removeEventListener("keydown",D),P!=null&&x.removeAttribute("aria-controls")}});return()=>{m.forEach(x=>x())}},[e,t,n,o,r,s])}function soe({disabled:e,handleId:t,resizeHandler:n}){Fl(()=>{if(e||n==null)return;const r=Ax(t);if(r==null)return;const s=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const i=_L(),c=noe(t);EL(c!==null);const u=o.shiftKey?c>0?c-1:i.length-1:c+1<i.length?c+1:0;i[u].focus();break}}};return r.addEventListener("keydown",s),()=>{r.removeEventListener("keydown",s)}},[e,t,n])}function zx(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function IL(e,t,n,r=0,s=null){const o=n==="horizontal";let i=0;if(u3(e))i=o?e.clientX:e.clientY;else if(h3(e)){const p=e.touches[0];i=o?p.screenX:p.screenY}else return 0;const c=Ax(t),u=s||c.getBoundingClientRect(),h=o?u.left:u.top;return i-h-r}function ooe(e,t,n,r,s,o,i){const{dragOffset:c=0,dragHandleRect:u,sizes:h}=i||{},p=h||o;if(ioe(e)){const m=s==="horizontal",x=cg(t).getBoundingClientRect(),C=m?x.width:x.height,b=e.shiftKey?10:100,g=C/b;let k=0;switch(e.key){case"ArrowDown":k=m?0:g;break;case"ArrowLeft":k=m?-g:0;break;case"ArrowRight":k=m?g:0;break;case"ArrowUp":k=m?0:-g;break;case"End":k=C;break;case"Home":k=-C;break}const[j,S]=l3(t,n,r),E=k<0?j:S,N=r.findIndex(M=>M.current.id===E),T=r[N];if(T.current.collapsible){const M=p[N];(M===0||M.toPrecision(Lu)===T.current.minSize.toPrecision(Lu))&&(k=k<0?-T.current.minSize*C:T.current.minSize*C)}return k}else return IL(e,n,s,c,u)}function ioe(e){return e.type==="keydown"}function u3(e){return e.type.startsWith("mouse")}function h3(e){return e.type.startsWith("touch")}let p3=null,Du=null;function TL(e){switch(e){case"horizontal":return"ew-resize";case"horizontal-max":return"w-resize";case"horizontal-min":return"e-resize";case"vertical":return"ns-resize";case"vertical-max":return"n-resize";case"vertical-min":return"s-resize"}}function loe(){Du!==null&&(document.head.removeChild(Du),p3=null,Du=null)}function coe(e){if(p3===e)return;p3=e;const t=TL(e);Du===null&&(Du=document.createElement("style"),document.head.appendChild(Du)),Du.innerHTML="*{cursor: ".concat(t,"!important;}")}function ML(e,t=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function LL(e){return e.map(t=>{const{minSize:n,order:r}=t.current;return r?"".concat(r,":").concat(n):"".concat(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function DL(e,t){try{const n=t.getItem("PanelGroup:sizes:".concat(e));if(n){const r=JSON.parse(n);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function doe(e,t,n){var s;const r=DL(e,n);if(r){const o=LL(t);return(s=r[o])!=null?s:null}return null}function uoe(e,t,n,r){const s=LL(t),o=DL(e,r)||{};o[s]=n;try{r.setItem("PanelGroup:sizes:".concat(e),JSON.stringify(o))}catch(i){console.error(i)}}var hoe={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const m3=hoe.TAURI_DEBUG,f3={};function OL(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}const dg={getItem:e=>(OL(dg),dg.getItem(e)),setItem:(e,t)=>{OL(dg),dg.setItem(e,t)}};function PL({autoSaveId:e,children:t=null,className:n="",direction:r,disablePointerEventsDuringResize:s=!1,forwardedRef:o,id:i=null,onLayout:c,storage:u=dg,style:h={},tagName:p="div",units:m="percentages"}){const x=s3(i),[C,b]=og(null),[g,k]=og(new Map),j=uo(null),S=uo({didLogDefaultSizeWarning:!1,didLogIdAndOrderWarning:!1,didLogInvalidLayoutWarning:!1,prevPanelIds:[]}),E=uo({onLayout:c});Fl(()=>{E.current.onLayout=c});const N=uo({}),[T,M]=og([]),L=uo(new Map),D=uo(0),P=uo({direction:r,id:x,panels:g,sizes:T,units:m});kL(o,()=>({getId:()=>x,getLayout:F=>{const{sizes:V,units:q}=P.current;if((F!=null?F:q)==="pixels"){const ne=Hl(x);return V.map(Q=>Q/100*ne)}else return V},setLayout:(F,V)=>{const{id:q,panels:ne,sizes:Q,units:ae}=P.current;if((V||ae)==="pixels"){const ie=Hl(q);F=F.map(de=>de/ie*100)}const re=N.current,le=ps(ne),oe=d3({groupId:q,panels:ne,nextSizes:F,prevSizes:Q,units:ae});zx(Q,oe)||(M(oe),Fp(le,oe,re))}}),[x]),ig(()=>{P.current.direction=r,P.current.id=x,P.current.panels=g,P.current.sizes=T,P.current.units=m}),aoe({committedValuesRef:P,groupId:x,panels:g,setSizes:M,sizes:T,panelSizeBeforeCollapse:L}),Fl(()=>{const{onLayout:F}=E.current,{panels:V,sizes:q}=P.current;if(q.length>0){F&&F(q);const ne=N.current,Q=ps(V);Fp(Q,q,ne)}},[T]),ig(()=>{const{id:F,sizes:V,units:q}=P.current;if(V.length===g.size)return;let ne=null;if(e){const Q=ps(g);ne=doe(e,Q,u)}if(ne!=null){const Q=d3({groupId:F,panels:g,nextSizes:ne,prevSizes:ne,units:q});M(Q)}else{const Q=eoe({groupId:F,panels:g,units:q});M(Q)}},[e,g,u]),Fl(()=>{if(e){if(T.length===0||T.length!==g.size)return;const F=ps(g);f3[e]||(f3[e]=ML(uoe,100)),f3[e](e,F,T,u)}if(m3){const{didLogIdAndOrderWarning:F,prevPanelIds:V}=S.current;if(!F){const{panels:q}=P.current,ne=Array.from(q.keys());S.current.prevPanelIds=ne,V.length>0&&!zx(V,ne)&&Array.from(q.values()).find(Q=>Q.current.idWasAutoGenerated||Q.current.order==null)&&(S.current.didLogIdAndOrderWarning=!0,console.warn("WARNING: Panel id and order props recommended when panels are dynamically rendered"))}}},[e,g,T,u]),ig(()=>{if(m==="pixels"){const F=new ResizeObserver(()=>{const{panels:V,sizes:q}=P.current,ne=d3({groupId:x,panels:V,nextSizes:q,prevSizes:q,units:m});zx(q,ne)||M(ne)});return F.observe(cg(x)),()=>{F.disconnect()}}},[x,m]);const A=Zi((F,V)=>{const{panels:q,units:ne}=P.current,Q=ps(q).findIndex(re=>re.current.id===F),ae=T[Q];if((V!=null?V:ne)==="pixels"){const re=Hl(x);return ae/100*re}else return ae},[x,T]),B=Zi(F=>{const{panels:V}=P.current,q=ps(V).findIndex(ae=>ae.current.id===F),ne=T[q],Q=Hl(x);return ne/100*Q},[x,T]),z=Zi((F,V)=>{const{panels:q}=P.current;return q.size===0?(m3&&S.current.didLogDefaultSizeWarning,{flexBasis:0,flexGrow:V!=null?V:void 0,flexShrink:1,overflow:"hidden"}):{flexBasis:0,flexGrow:NL(q,F,T),flexShrink:1,overflow:"hidden",pointerEvents:s&&C!==null?"none":void 0}},[C,s,T]),R=Zi((F,V)=>{const{units:q}=P.current;roe(q,V),k(ne=>{if(ne.has(F))return ne;const Q=new Map(ne);return Q.set(F,V),Q})},[]),$=Zi(F=>V=>{V.preventDefault();const{direction:q,panels:ne,sizes:Q}=P.current,ae=ps(ne),[re,le]=l3(x,F,ae);if(re==null||le==null)return;let oe=ooe(V,x,F,ae,q,Q,j.current);if(oe===0)return;const ie=cg(x).getBoundingClientRect(),de=q==="horizontal";document.dir==="rtl"&&de&&(oe=-oe);const xe=de?ie.width:ie.height,je=oe/xe*100,Ee=lg(V,P.current,re,le,je,Q,L.current,j.current),Te=!zx(Q,Ee);if((u3(V)||h3(V))&&D.current!=je&&coe(Te?de?"horizontal":"vertical":de?oe<0?"horizontal-min":"horizontal-max":oe<0?"vertical-min":"vertical-max"),Te){const Me=N.current;M(Ee),Fp(ae,Ee,Me)}D.current=je},[x]),_=Zi(F=>{k(V=>{if(!V.has(F))return V;const q=new Map(V);return q.delete(F),q})},[]),U=Zi(F=>{const{panels:V,sizes:q}=P.current,ne=V.get(F);if(ne==null)return;const{collapsedSize:Q,collapsible:ae}=ne.current;if(!ae)return;const re=ps(V),le=re.indexOf(ne);if(le<0)return;const oe=q[le];if(oe===Q)return;L.current.set(F,oe);const[ie,de]=o3(F,re);if(ie==null||de==null)return;const xe=le===re.length-1?oe:Q-oe,je=lg(null,P.current,ie,de,xe,q,L.current,null);if(q!==je){const Ee=N.current;M(je),Fp(re,je,Ee)}},[]),K=Zi(F=>{const{panels:V,sizes:q}=P.current,ne=V.get(F);if(ne==null)return;const{collapsedSize:Q,minSize:ae}=ne.current,re=L.current.get(F)||ae;if(!re)return;const le=ps(V),oe=le.indexOf(ne);if(oe<0||q[oe]!==Q)return;const[ie,de]=o3(F,le);if(ie==null||de==null)return;const xe=oe===le.length-1?Q-re:re,je=lg(null,P.current,ie,de,xe,q,L.current,null);if(q!==je){const Ee=N.current;M(je),Fp(le,je,Ee)}},[]),W=Zi((F,V,q)=>{const{id:ne,panels:Q,sizes:ae,units:re}=P.current;if((q||re)==="pixels"){const Ve=Hl(ne);V=V/Ve*100}const le=Q.get(F);if(le==null)return;let{collapsedSize:oe,collapsible:ie,maxSize:de,minSize:xe}=le.current;if(re==="pixels"){const Ve=Hl(ne);xe=xe/Ve*100,de!=null&&(de=de/Ve*100)}const je=ps(Q),Ee=je.indexOf(le);if(Ee<0)return;const Te=ae[Ee];if(Te===V)return;if(!(ie&&V===oe)){const Ve=V;V=Math.min(de!=null?de:100,Math.max(xe,V)),m3&&Ve!==V&&console.error("Invalid size (".concat(Ve,') specified for Panel "').concat(le.current.id,"\" given the panel's min/max size constraints"))}const[Me,ze]=o3(F,je);if(Me==null||ze==null)return;const qe=Ee===je.length-1?Te-V:V-Te,Ye=lg(null,P.current,Me,ze,qe,ae,L.current,null);if(ae!==Ye){const Ve=N.current;M(Ye),Fp(je,Ye,Ve)}},[]),G=Zse(()=>({activeHandleId:C,collapsePanel:U,direction:r,expandPanel:K,getPanelSize:A,getPanelSizePixels:B,getPanelStyle:z,groupId:x,registerPanel:R,registerResizeHandle:$,resizePanel:W,startDragging:(F,V)=>{if(b(F),u3(V)||h3(V)){const q=Ax(F);j.current={dragHandleRect:q.getBoundingClientRect(),dragOffset:IL(V,F,r),sizes:P.current.sizes}}},stopDragging:()=>{loe(),b(null),j.current=null},units:m,unregisterPanel:_}),[C,U,r,K,A,B,z,x,R,$,W,m,_]),Z={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return zp(Px.Provider,{children:zp(p,{children:t,className:n,"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":x,"data-panel-group-units":m,style:{...Z,...h}}),value:G})}const g3=bL((e,t)=>zp(PL,{...e,forwardedRef:t}));PL.displayName="PanelGroup",g3.displayName="forwardRef(PanelGroup)";function RL({children:e=null,className:t="",disabled:n=!1,id:r=null,onDragging:s,style:o={},tagName:i="div"}){const c=uo(null),u=uo({onDragging:s});Fl(()=>{u.current.onDragging=s});const h=wL(Px);if(h===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{activeHandleId:p,direction:m,groupId:x,registerResizeHandle:C,startDragging:b,stopDragging:g}=h,k=s3(r),j=p===k,[S,E]=og(!1),[N,T]=og(null),M=Zi(()=>{c.current.blur(),g();const{onDragging:D}=u.current;D&&D(!1)},[g]);Fl(()=>{if(n)T(null);else{const D=C(k);T(()=>D)}},[n,k,C]),Fl(()=>{if(n||N==null||!j)return;const D=B=>{N(B)},P=B=>{N(B)},A=c.current.ownerDocument;return A.body.addEventListener("contextmenu",M),A.body.addEventListener("mousemove",D),A.body.addEventListener("touchmove",D),A.body.addEventListener("mouseleave",P),window.addEventListener("mouseup",M),window.addEventListener("touchend",M),()=>{A.body.removeEventListener("contextmenu",M),A.body.removeEventListener("mousemove",D),A.body.removeEventListener("touchmove",D),A.body.removeEventListener("mouseleave",P),window.removeEventListener("mouseup",M),window.removeEventListener("touchend",M)}},[m,n,j,N,M]),soe({disabled:n,handleId:k,resizeHandler:N});const L={cursor:TL(m),touchAction:"none",userSelect:"none"};return zp(i,{children:e,className:t,"data-resize-handle-active":j?"pointer":S?"keyboard":void 0,"data-panel-group-direction":m,"data-panel-group-id":x,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":k,onBlur:()=>E(!1),onFocus:()=>E(!0),onMouseDown:D=>{b(k,D.nativeEvent);const{onDragging:P}=u.current;P&&P(!0)},onMouseUp:M,onTouchCancel:M,onTouchEnd:M,onTouchStart:D=>{b(k,D.nativeEvent);const{onDragging:P}=u.current;P&&P(!0)},ref:c,role:"separator",style:{...L,...o},tabIndex:0})}RL.displayName="PanelResizeHandle";function poe(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function moe(e){return!e||!e.ownerDocument?document:e.ownerDocument}const foe=function(e){const t={};return Array.prototype.reduce.call(e,(n,r)=>{const s=r.name.match(/data-simplebar-(.+)/);if(s){const o=s[1].replace(/\W+(.)/g,(i,c)=>c.toUpperCase());switch(r.value){case"true":n[o]=!0;break;case"false":n[o]=!1;break;case void 0:n[o]=!0;break;default:n[o]=r.value}}return n},t)};function goe(e,t){e&&e.classList.add(...t.split(" "))}function voe(e,t){e&&t.split(" ").forEach(n=>{e.classList.remove(n)})}function yoe(e){return".".concat(e.split(" ").join("."))}const AL=Object.freeze(Object.defineProperty({__proto__:null,addClasses:goe,classNamesToQuery:yoe,getElementDocument:moe,getElementWindow:poe,getOptions:foe,removeClasses:voe},Symbol.toStringTag,{value:"Module"}));let Hp=null,zL=null;window.addEventListener("resize",()=>{zL!==window.devicePixelRatio&&(zL=window.devicePixelRatio,Hp=null)});function FL(){if(Hp===null){if(typeof document>"u")return Hp=0,Hp;const e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);const n=t.getBoundingClientRect().right;e.removeChild(t),Hp=n}return Hp}const{getElementWindow:ed,getElementDocument:v3,getOptions:xoe,addClasses:td,removeClasses:nd,classNamesToQuery:Hs}=AL,oa=class oa{constructor(t,n={}){gt(this,"el");gt(this,"options");gt(this,"disableScroll");gt(this,"classNames");gt(this,"axis");gt(this,"draggedAxis");gt(this,"removePreventClickId",null);gt(this,"minScrollbarWidth",20);gt(this,"stopScrollDelay",175);gt(this,"isScrolling",!1);gt(this,"isMouseEntering",!1);gt(this,"scrollXTicking",!1);gt(this,"scrollYTicking",!1);gt(this,"wrapperEl",null);gt(this,"contentWrapperEl",null);gt(this,"contentEl",null);gt(this,"offsetEl",null);gt(this,"maskEl",null);gt(this,"placeholderEl",null);gt(this,"heightAutoObserverWrapperEl",null);gt(this,"heightAutoObserverEl",null);gt(this,"rtlHelpers",null);gt(this,"scrollbarWidth",0);gt(this,"resizeObserver",null);gt(this,"mutationObserver",null);gt(this,"elStyles",null);gt(this,"isRtl",null);gt(this,"mouseX",0);gt(this,"mouseY",0);gt(this,"onMouseMove",()=>{});gt(this,"onWindowResize",()=>{});gt(this,"onStopScrolling",()=>{});gt(this,"onMouseEntered",()=>{});gt(this,"onScrollCallBack",()=>{});gt(this,"onScroll",t=>{const n=ed(this.el);this.scrollXTicking||(n.requestAnimationFrame(this.scrollX),this.scrollXTicking=!0),this.scrollYTicking||(n.requestAnimationFrame(this.scrollY),this.scrollYTicking=!0),this.isScrolling||(this.isScrolling=!0,this.onScrollCallBack(t,!0),td(this.el,this.classNames.scrolling)),this.showScrollbar("x"),this.showScrollbar("y"),this.onStopScrolling(t)});gt(this,"scrollX",()=>{this.axis.x.isOverflowing&&this.positionScrollbar("x"),this.scrollXTicking=!1});gt(this,"scrollY",()=>{this.axis.y.isOverflowing&&this.positionScrollbar("y"),this.scrollYTicking=!1});gt(this,"_onStopScrolling",t=>{this.onScrollCallBack(t,!1),nd(this.el,this.classNames.scrolling),this.options.autoHide&&(this.hideScrollbar("x"),this.hideScrollbar("y")),this.isScrolling=!1});gt(this,"onMouseEnter",()=>{this.isMouseEntering||(td(this.el,this.classNames.mouseEntered),this.showScrollbar("x"),this.showScrollbar("y"),this.isMouseEntering=!0),this.onMouseEntered()});gt(this,"_onMouseEntered",()=>{nd(this.el,this.classNames.mouseEntered),this.options.autoHide&&(this.hideScrollbar("x"),this.hideScrollbar("y")),this.isMouseEntering=!1});gt(this,"_onMouseMove",t=>{this.mouseX=t.clientX,this.mouseY=t.clientY,(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.onMouseMoveForAxis("x"),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.onMouseMoveForAxis("y")});gt(this,"onMouseLeave",()=>{this.onMouseMove.cancel(),(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.onMouseLeaveForAxis("x"),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.onMouseLeaveForAxis("y"),this.mouseX=-1,this.mouseY=-1});gt(this,"_onWindowResize",()=>{this.scrollbarWidth=this.getScrollbarWidth(),this.hideNativeScrollbar()});gt(this,"onPointerEvent",t=>{if(!this.axis.x.track.el||!this.axis.y.track.el||!this.axis.x.scrollbar.el||!this.axis.y.scrollbar.el)return;let n,r;this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&(n=this.isWithinBounds(this.axis.x.track.rect)),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&(r=this.isWithinBounds(this.axis.y.track.rect)),(n||r)&&(t.stopPropagation(),t.type==="pointerdown"&&t.pointerType!=="touch"&&(n&&(this.axis.x.scrollbar.rect=this.axis.x.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.x.scrollbar.rect)?this.onDragStart(t,"x"):this.onTrackClick(t,"x")),r&&(this.axis.y.scrollbar.rect=this.axis.y.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.y.scrollbar.rect)?this.onDragStart(t,"y"):this.onTrackClick(t,"y"))))});gt(this,"drag",t=>{var p,m,x,C,b,g,k,j,S,E,N;if(!this.draggedAxis||!this.contentWrapperEl)return;let n;const r=this.axis[this.draggedAxis].track,s=(m=(p=r.rect)==null?void 0:p[this.axis[this.draggedAxis].sizeAttr])!=null?m:0,o=this.axis[this.draggedAxis].scrollbar,i=(C=(x=this.contentWrapperEl)==null?void 0:x[this.axis[this.draggedAxis].scrollSizeAttr])!=null?C:0,c=parseInt((g=(b=this.elStyles)==null?void 0:b[this.axis[this.draggedAxis].sizeAttr])!=null?g:"0px",10);t.preventDefault(),t.stopPropagation(),this.draggedAxis==="y"?n=t.pageY:n=t.pageX;let u=n-((j=(k=r.rect)==null?void 0:k[this.axis[this.draggedAxis].offsetAttr])!=null?j:0)-this.axis[this.draggedAxis].dragOffset;u=this.draggedAxis==="x"&&this.isRtl?((E=(S=r.rect)==null?void 0:S[this.axis[this.draggedAxis].sizeAttr])!=null?E:0)-o.size-u:u;let h=u/(s-o.size)*(i-c);this.draggedAxis==="x"&&this.isRtl&&(h=(N=oa.getRtlHelpers())!=null&&N.isScrollingToNegative?-h:h),this.contentWrapperEl[this.axis[this.draggedAxis].scrollOffsetAttr]=h});gt(this,"onEndDrag",t=>{const n=v3(this.el),r=ed(this.el);t.preventDefault(),t.stopPropagation(),nd(this.el,this.classNames.dragging),n.removeEventListener("mousemove",this.drag,!0),n.removeEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId=r.setTimeout(()=>{n.removeEventListener("click",this.preventClick,!0),n.removeEventListener("dblclick",this.preventClick,!0),this.removePreventClickId=null})});gt(this,"preventClick",t=>{t.preventDefault(),t.stopPropagation()});if(this.el=t,this.disableScroll=!1,this.options={...oa.defaultOptions,...n},this.classNames={...oa.defaultOptions.classNames,...n.classNames},this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Z9(this._onMouseMove,64),this.onWindowResize=mu(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=mu(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=mu(this._onMouseEntered,this.stopScrollDelay),n.onScroll?this.onScrollCallBack=mu(n.onScroll,this.stopScrollDelay,{leading:!0}):this.onScrollCallBack=()=>{},this.init()}setDisableScroll(t){this.disableScroll=t}static getRtlHelpers(){if(oa.rtlHelpers)return oa.rtlHelpers;const t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';const n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;const s=oa.getOffset(n),o=oa.getOffset(r);n.scrollLeft=-999;const i=oa.getOffset(r);return document.body.removeChild(n),oa.rtlHelpers={isScrollOriginAtZero:s.left!==o.left,isScrollingToNegative:o.left!==i.left},oa.rtlHelpers}getScrollbarWidth(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:FL()}catch{return FL()}}static getOffset(t){const n=t.getBoundingClientRect(),r=v3(t),s=ed(t);return{top:n.top+(s.pageYOffset||r.documentElement.scrollTop),left:n.left+(s.pageXOffset||r.documentElement.scrollLeft)}}init(){this.initDOM(),this.rtlHelpers=oa.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners()}initDOM(){var t,n;this.wrapperEl=this.el.querySelector(Hs(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Hs(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Hs(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Hs(this.classNames.offset)),this.maskEl=this.el.querySelector(Hs(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Hs(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Hs(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Hs(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Hs(this.classNames.track)).concat(Hs(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Hs(this.classNames.track)).concat(Hs(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)==null?void 0:t.querySelector(Hs(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)==null?void 0:n.querySelector(Hs(this.classNames.scrollbar)))||null,this.options.autoHide||(td(this.axis.x.scrollbar.el,this.classNames.visible),td(this.axis.y.scrollbar.el,this.classNames.visible))}initListeners(){var n,r,s,o;const t=ed(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)==null||n.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){let i=!1;const c=t.ResizeObserver||ResizeObserver;this.resizeObserver=new c(()=>{i&&t.requestAnimationFrame(()=>{this.recalculate()})}),(r=this.resizeObserver)==null||r.observe(this.el),(s=this.resizeObserver)==null||s.observe(this.contentEl),t.requestAnimationFrame(()=>{i=!0})}this.mutationObserver=new t.MutationObserver(()=>{t.requestAnimationFrame(()=>{this.recalculate()})}),(o=this.mutationObserver)==null||o.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}}recalculate(){var C,b,g;if(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)return;const t=ed(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=((C=this.elStyles)==null?void 0:C.direction)==="rtl";const n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,i=(b=this.elStyles)==null?void 0:b.overflowX,c=(g=this.elStyles)==null?void 0:g.overflowY;this.elStyles&&(this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft));const u=this.contentEl.scrollHeight,h=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||h,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");const p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&h>n,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=i==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();const m=this.axis.x.isOverflowing?this.scrollbarWidth:0,x=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&h>o-x,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}getScrollbarSize(t="y"){var i,c;if(!this.axis[t].isOverflowing||!this.contentEl)return 0;const n=this.contentEl[this.axis[t].scrollSizeAttr],r=(c=(i=this.axis[t].track.el)==null?void 0:i[this.axis[t].offsetSizeAttr])!=null?c:0,s=r/n;let o;return o=Math.max(~~(s*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(o=Math.min(o,this.options.scrollbarMaxSize)),o}positionScrollbar(t="y"){var h,p,m;const n=this.axis[t].scrollbar;if(!this.axis[t].isOverflowing||!this.contentWrapperEl||!n.el||!this.elStyles)return;const r=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((h=this.axis[t].track.el)==null?void 0:h[this.axis[t].offsetSizeAttr])||0,o=parseInt(this.elStyles[this.axis[t].sizeAttr],10);let i=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];i=t==="x"&&this.isRtl&&((p=oa.getRtlHelpers())!=null&&p.isScrollOriginAtZero)?-i:i,t==="x"&&this.isRtl&&(i=(m=oa.getRtlHelpers())!=null&&m.isScrollingToNegative?i:-i);const c=i/(r-o);let u=~~((s-n.size)*c);u=t==="x"&&this.isRtl?-u+(s-n.size):u,n.el.style.transform=t==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}toggleTrackVisibility(t="y"){const n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||((this.axis[t].isOverflowing||this.axis[t].forceVisible)&&!this.disableScroll?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")}showScrollbar(t="y"){this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(td(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)}hideScrollbar(t="y"){this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(nd(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)}hideNativeScrollbar(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")}onMouseMoveForAxis(t="y"){const n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),td(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?td(n.scrollbar.el,this.classNames.hover):nd(n.scrollbar.el,this.classNames.hover)):(nd(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))}onMouseLeaveForAxis(t="y"){nd(this.axis[t].track.el,this.classNames.hover),nd(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)}onDragStart(t,n="y"){var c;const r=v3(this.el),s=ed(this.el),o=this.axis[n].scrollbar,i=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=i-(((c=o.rect)==null?void 0:c[this.axis[n].offsetAttr])||0),this.draggedAxis=n,td(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)}onTrackClick(t,n="y"){var x,C,b,g;const r=this.axis[n];if(!this.options.clickOnTrack||!r.scrollbar.el||!this.contentWrapperEl)return;t.preventDefault();const s=ed(this.el);this.axis[n].scrollbar.rect=r.scrollbar.el.getBoundingClientRect();const o=(C=(x=this.axis[n].scrollbar.rect)==null?void 0:x[this.axis[n].offsetAttr])!=null?C:0,i=parseInt((g=(b=this.elStyles)==null?void 0:b[this.axis[n].sizeAttr])!=null?g:"0px",10);let c=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];const u=(n==="y"?this.mouseY-o:this.mouseX-o)<0?-1:1,h=u===-1?c-i:c+i,p=40,m=()=>{this.contentWrapperEl&&(u===-1?c>h&&(c-=p,this.contentWrapperEl[this.axis[n].scrollOffsetAttr]=c,s.requestAnimationFrame(m)):c<h&&(c+=p,this.contentWrapperEl[this.axis[n].scrollOffsetAttr]=c,s.requestAnimationFrame(m)))};m()}getContentElement(){return this.contentEl}getScrollElement(){return this.contentWrapperEl}removeListeners(){const t=ed(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()}unMount(){this.removeListeners()}isWithinBounds(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}findChild(t,n){const r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,s=>r.call(s,n))[0]}};gt(oa,"rtlHelpers",null),gt(oa,"defaultOptions",{forceVisible:!1,clickOnTrack:!0,setDisableScroll:()=>{},scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,onScroll:()=>{},contentNode:null,autoHide:!0}),gt(oa,"getOptions",xoe),gt(oa,"helpers",AL);let $p=oa;const An=f.forwardRef(({children:e,scrollableNodeProps:t={},...n},r)=>{const s=f.useRef(),o=f.useRef(),i=f.useRef(),c={},u={};Object.keys(n).forEach(m=>{Object.prototype.hasOwnProperty.call($p.defaultOptions,m)?c[m]=n[m]:u[m]=n[m]});const h={...$p.defaultOptions.classNames,...c.classNames},p={...t,className:"".concat(h.contentWrapper).concat(t.className?" ".concat(t.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||$p.defaultOptions.ariaLabel};return f.useEffect(()=>{let m;return o.current=p.ref?p.ref.current:o.current,s.current&&(m=new $p(s.current,{...c,...o.current&&{scrollableNode:o.current},...i.current&&{contentNode:i.current}}),typeof r=="function"?r(m):r&&(r.current=m)),()=>{m==null||m.unMount(),m=null,typeof r=="function"&&r(null)}},[]),a.jsxs("div",{"data-simplebar":"init",ref:s,...u,children:[a.jsxs("div",{className:h.wrapper,children:[a.jsx("div",{className:h.heightAutoObserverWrapperEl,children:a.jsx("div",{className:h.heightAutoObserverEl})}),a.jsx("div",{className:h.mask,children:a.jsx("div",{className:h.offset,children:typeof e=="function"?e({scrollableNodeRef:o,scrollableNodeProps:{...p,ref:o},contentNodeRef:i,contentNodeProps:{className:h.contentEl,ref:i}}):a.jsx("div",{...p,children:a.jsx("div",{className:h.contentEl,children:e})})})}),a.jsx("div",{className:h.placeholder})]}),a.jsx("div",{className:"".concat(h.track," simplebar-horizontal"),children:a.jsx("div",{className:h.scrollbar})}),a.jsx("div",{className:"".concat(h.track," simplebar-vertical"),children:a.jsx("div",{className:h.scrollbar})})]})});An.displayName="SimpleBar";const HL=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,$L=dn,Ou=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return $L(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(h=>{const p=n==null?void 0:n[h],m=o==null?void 0:o[h];if(p===null)return null;const x=HL(p)||HL(m);return s[h][x]}),c=n&&Object.entries(n).reduce((h,p)=>{let[m,x]=p;return x===void 0||(h[m]=x),h},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,p)=>{let{class:m,className:x,...C}=p;return Object.entries(C).every(b=>{let[g,k]=b;return Array.isArray(k)?k.includes({...o,...c}[g]):{...o,...c}[g]===k})?[...h,m,x]:h},[]);return $L(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)},boe=Ou("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:opacity-50 disabled:pointer-events-none ring-offset-background",{variants:{variant:{default:"bg-slate-600 text-primary-foreground dark:bg-slate-500 hover:bg-slate-900/90 dark:hover:bg-slate-600/90",danger:"bg-red-600 text-destructive-foreground hover:bg-red-900/90",outline:"border border-input hover:bg-accent hover:text-bg-slate-900",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-transparent hover:text-accent-slate-600",light:"bg-slate-100 dark:bg-slate-800 hover:bg-accent hover:text-accent-slate-600",link:"underline-offset-4 hover:underline text-primary"},size:{default:"h-9 py-3 px-4",sm:"h-8 px-3 rounded-md",xs:"h-7 px-3 rounded-md",mini:"rounded-md",lg:"h-10 px-8 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),ye=f.memo(f.forwardRef(({className:e,variant:t,size:n,...r},s)=>{const o=f.useMemo(()=>xt(boe({variant:t,size:n,className:e})),[t,n,e]);return a.jsx("button",{className:o,ref:s,...r})}));ye.displayName="Button";const Yn=({className:e="",...t})=>a.jsx("button",{className:"inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:opacity-50 disabled:pointer-events-none ring-offset-background hover:bg-accent dark:hover:bg-transparent hover:text-accent-slate-600 ".concat(e),...t});ye.displayName="ButtonGhost";const woe=Ou("before:content[''] peer relative h-5 w-5 cursor-pointer appearance-none rounded-md border-2 border-slate-200 dark:border-slate-600 transition-all before:absolute before:top-2/4 before:left-2/4 before:block before:h-11 before:w-11 before:-translate-y-2/4 before:-translate-x-2/4 before:rounded-full before:bg-blue-gray-500 before:opacity-0 before:transition-opacity hover:before:opacity-5",{variants:{color:{default:"checked:border-slate-500 checked:bg-slate-500 before:bg-slate-500 text-slate-700 dark:before:bg-slate-100",danger:"checked:border-2 checked:border-red-500 dark:checked:border-red-500 checked:bg-red-500 before:bg-red-500 text-red-700 dark:before:bg-red-100"}},defaultVariants:{color:"default"}});function y3({className:e,children:t,id:n=koe(),color:r,classNameLabel:s="",onChange:o,checked:i=!1}){const[c,u]=f.useState(i),h=p=>{const m=p.target.checked;u(m),o&&o(m)};return f.useEffect(()=>{c!==i&&u(i)},[i]),a.jsxs("div",{className:"inline-flex items-center",children:[a.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3 ".concat(s),htmlFor:n,"data-ripple-dark":"true",children:[a.jsx("input",{id:n,type:"checkbox",checked:c,className:xt("form-checkbox",woe({color:r,className:e})),onChange:h}),a.jsx("div",{className:"pointer-events-none absolute top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:a.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]}),a.jsx("label",{className:xt("mt-px cursor-pointer select-none font-light",r==="danger"&&c&&"text-red-600 font-medium"),htmlFor:n,children:t})]})}function koe(){return Math.random().toString(36).slice(2,12)}const rd=f.forwardRef(({className:e,type:t,classNameInput:n,iconLeft:r,...s},o)=>a.jsxs("div",{className:xt("flex h-10 w-full items-center rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:cursor-not-allowed disabled:opacity-50",e),children:[r&&a.jsx("div",{className:"text-muted-foreground opacity-80",children:r}),a.jsx("input",{type:t,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",className:xt("flex h-10 w-full border-0 bg-transparent px-3 text-md ring-offset-background file:border-0 file:bg-transparent file:text-md file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",n),ref:o,...s})]}));rd.displayName="Input";const joe=f.forwardRef((e,t)=>f.createElement(yn.label,Re({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),BL=joe,Coe=Ou("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Soe=f.forwardRef(({className:e,...t},n)=>a.jsx(BL,{ref:n,className:xt(Coe(),e),...t}));Soe.displayName=BL.displayName;const Eoe=f.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:xt("flex h-20 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Eoe.displayName="Textarea";function WL(e,[t,n]){return Math.min(n,Math.max(t,e))}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function ms(e,t=[]){let n=[];function r(o,i){const c=f.createContext(i),u=n.length;n=[...n,i];function h(m){const{scope:x,children:C,...b}=m,g=(x==null?void 0:x[e][u])||c,k=f.useMemo(()=>b,Object.values(b));return f.createElement(g.Provider,{value:k},C)}function p(m,x){const C=(x==null?void 0:x[e][u])||c,b=f.useContext(C);if(b)return b;if(i!==void 0)return i;throw new Error("`".concat(m,"` must be used within `").concat(o,"`"))}return h.displayName=o+"Provider",[h,p]}const s=()=>{const o=n.map(i=>f.createContext(i));return function(i){const c=(i==null?void 0:i[e])||o;return f.useMemo(()=>({["__scope".concat(e)]:{...i,[e]:c}}),[i,c])}};return s.scopeName=e,[r,Noe(s,...t)]}function Noe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const o=r.reduce((i,{useScope:c,scopeName:u})=>{const h=c(s)["__scope".concat(u)];return{...i,...h}},{});return f.useMemo(()=>({["__scope".concat(t.scopeName)]:o}),[o])}};return n.scopeName=t.scopeName,n}function ug(e){const t=e+"CollectionProvider",[n,r]=ms(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=C=>{const{scope:b,children:g}=C,k=dt.useRef(null),j=dt.useRef(new Map).current;return dt.createElement(s,{scope:b,itemMap:j,collectionRef:k},g)},c=e+"CollectionSlot",u=dt.forwardRef((C,b)=>{const{scope:g,children:k}=C,j=o(c,g),S=Bn(b,j.collectionRef);return dt.createElement(Rc,{ref:S},k)}),h=e+"CollectionItemSlot",p="data-radix-collection-item",m=dt.forwardRef((C,b)=>{const{scope:g,children:k,...j}=C,S=dt.useRef(null),E=Bn(b,S),N=o(h,g);return dt.useEffect(()=>(N.itemMap.set(S,{ref:S,...j}),()=>void N.itemMap.delete(S))),dt.createElement(Rc,{[p]:"",ref:E},k)});function x(C){const b=o(e+"CollectionConsumer",C);return dt.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const k=Array.from(g.querySelectorAll("[".concat(p,"]")));return Array.from(b.itemMap.values()).sort((j,S)=>k.indexOf(j.ref.current)-k.indexOf(S.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},x,r]}const _oe=f.createContext(void 0);function Bp(e){const t=f.useContext(_oe);return e||t||"ltr"}function $s(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ioe(e,t=globalThis==null?void 0:globalThis.document){const n=$s(e);f.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const x3="dismissableLayer.update",Toe="dismissableLayer.pointerDownOutside",Moe="dismissableLayer.focusOutside";let VL;const Loe=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hg=f.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:u,...h}=e,p=f.useContext(Loe),[m,x]=f.useState(null),C=(n=m==null?void 0:m.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=f.useState({}),g=Bn(t,D=>x(D)),k=Array.from(p.layers),[j]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=k.indexOf(j),E=m?k.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,T=E>=S,M=Doe(D=>{const P=D.target,A=[...p.branches].some(B=>B.contains(P));!T||A||(o==null||o(D),c==null||c(D),D.defaultPrevented||(u==null||u()))},C),L=Ooe(D=>{const P=D.target;[...p.branches].some(A=>A.contains(P))||(i==null||i(D),c==null||c(D),D.defaultPrevented||(u==null||u()))},C);return Ioe(D=>{E===p.layers.size-1&&(s==null||s(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},C),f.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(VL=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),UL(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=VL)}},[m,C,r,p]),f.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),UL())},[m,p]),f.useEffect(()=>{const D=()=>b({});return document.addEventListener(x3,D),()=>document.removeEventListener(x3,D)},[]),f.createElement(yn.div,Re({},h,{ref:g,style:{pointerEvents:N?T?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,L.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,M.onPointerDownCapture)}))});function Doe(e,t=globalThis==null?void 0:globalThis.document){const n=$s(e),r=f.useRef(!1),s=f.useRef(()=>{});return f.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let u=function(){qL(Toe,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=u,t.addEventListener("click",s.current,{once:!0})):u()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ooe(e,t=globalThis==null?void 0:globalThis.document){const n=$s(e),r=f.useRef(!1);return f.useEffect(()=>{const s=o=>{o.target&&!r.current&&qL(Moe,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function UL(){const e=new CustomEvent(x3);document.dispatchEvent(e)}function qL(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?JI(s,o):s.dispatchEvent(o)}let b3=0;function Fx(){f.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:YL()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:YL()),b3++,()=>{b3===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),b3--}},[])}function YL(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const w3="focusScope.autoFocusOnMount",k3="focusScope.autoFocusOnUnmount",KL={bubbles:!1,cancelable:!0},Hx=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[c,u]=f.useState(null),h=$s(s),p=$s(o),m=f.useRef(null),x=Bn(t,g=>u(g)),C=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(E){if(C.paused||!c)return;const N=E.target;c.contains(N)?m.current=N:ad(m.current,{select:!0})},k=function(E){if(C.paused||!c)return;const N=E.relatedTarget;N!==null&&(c.contains(N)||ad(m.current,{select:!0}))},j=function(E){if(document.activeElement===document.body)for(const N of E)N.removedNodes.length>0&&ad(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",k);const S=new MutationObserver(j);return c&&S.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",k),S.disconnect()}}},[r,c,C.paused]),f.useEffect(()=>{if(c){QL.add(C);const g=document.activeElement;if(!c.contains(g)){const k=new CustomEvent(w3,KL);c.addEventListener(w3,h),c.dispatchEvent(k),k.defaultPrevented||(Poe(Hoe(GL(c)),{select:!0}),document.activeElement===g&&ad(c))}return()=>{c.removeEventListener(w3,h),setTimeout(()=>{const k=new CustomEvent(k3,KL);c.addEventListener(k3,p),c.dispatchEvent(k),k.defaultPrevented||ad(g!=null?g:document.body,{select:!0}),c.removeEventListener(k3,p),QL.remove(C)},0)}}},[c,h,p,C]);const b=f.useCallback(g=>{if(!n&&!r||C.paused)return;const k=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,j=document.activeElement;if(k&&j){const S=g.currentTarget,[E,N]=Roe(S);E&&N?!g.shiftKey&&j===N?(g.preventDefault(),n&&ad(E,{select:!0})):g.shiftKey&&j===E&&(g.preventDefault(),n&&ad(N,{select:!0})):j===S&&g.preventDefault()}},[n,r,C.paused]);return f.createElement(yn.div,Re({tabIndex:-1},i,{ref:x,onKeyDown:b}))});function Poe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ad(r,{select:t}),document.activeElement!==n)return}function Roe(e){const t=GL(e),n=ZL(t,e),r=ZL(t.reverse(),e);return[n,r]}function GL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ZL(e,t){for(const n of e)if(!Aoe(n,{upTo:t}))return n}function Aoe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zoe(e){return e instanceof HTMLInputElement&&"select"in e}function ad(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zoe(e)&&t&&e.select()}}const QL=Foe();function Foe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=JL(e,t),e.unshift(t)},remove(t){var n;e=JL(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function JL(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Hoe(e){return e.filter(t=>t.tagName!=="A")}const Bo=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},$oe=Mf.useId||(()=>{});let Boe=0;function ga(e){const[t,n]=f.useState($oe());return Bo(()=>{e||n(r=>r!=null?r:String(Boe++))},[e]),e||(t?"radix-".concat(t):"")}const Woe=["top","right","bottom","left"],sd=Math.min,ho=Math.max,$x=Math.round,Bx=Math.floor,od=e=>({x:e,y:e}),Voe={left:"right",right:"left",bottom:"top",top:"bottom"},Uoe={start:"end",end:"start"};function j3(e,t,n){return ho(e,sd(t,n))}function $l(e,t){return typeof e=="function"?e(t):e}function Bl(e){return e.split("-")[0]}function Wp(e){return e.split("-")[1]}function C3(e){return e==="x"?"y":"x"}function S3(e){return e==="y"?"height":"width"}function Vp(e){return["top","bottom"].includes(Bl(e))?"y":"x"}function E3(e){return C3(Vp(e))}function qoe(e,t,n){n===void 0&&(n=!1);const r=Wp(e),s=E3(e),o=S3(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Wx(i)),[i,Wx(i)]}function Yoe(e){const t=Wx(e);return[N3(e),t,N3(t)]}function N3(e){return e.replace(/start|end/g,t=>Uoe[t])}function Koe(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function Goe(e,t,n,r){const s=Wp(e);let o=Koe(Bl(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(N3)))),o}function Wx(e){return e.replace(/left|right|bottom|top/g,t=>Voe[t])}function Zoe(e){return{top:0,right:0,bottom:0,left:0,...e}}function XL(e){return typeof e!="number"?Zoe(e):{top:e,right:e,bottom:e,left:e}}function Vx(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function eD(e,t,n){let{reference:r,floating:s}=e;const o=Vp(t),i=E3(t),c=S3(i),u=Bl(t),h=o==="y",p=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,x=r[c]/2-s[c]/2;let C;switch(u){case"top":C={x:p,y:r.y-s.height};break;case"bottom":C={x:p,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:m};break;case"left":C={x:r.x-s.width,y:m};break;default:C={x:r.x,y:r.y}}switch(Wp(t)){case"start":C[i]-=x*(n&&h?-1:1);break;case"end":C[i]+=x*(n&&h?-1:1);break}return C}const Qoe=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,c=o.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let h=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:m}=eD(h,r,u),x=r,C={},b=0;for(let g=0;g<c.length;g++){const{name:k,fn:j}=c[g],{x:S,y:E,data:N,reset:T}=await j({x:p,y:m,initialPlacement:r,placement:x,strategy:s,middlewareData:C,rects:h,platform:i,elements:{reference:e,floating:t}});if(p=S!=null?S:p,m=E!=null?E:m,C={...C,[k]:{...C[k],...N}},T&&b<=50){b++,typeof T=="object"&&(T.placement&&(x=T.placement),T.rects&&(h=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:p,y:m}=eD(h,x,u)),g=-1;continue}}return{x:p,y:m,placement:x,strategy:s,middlewareData:C}};async function pg(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:c,strategy:u}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:x=!1,padding:C=0}=$l(t,e),b=XL(C),g=c[x?m==="floating"?"reference":"floating":m],k=Vx(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:u})),j=m==="floating"?{...i.floating,x:r,y:s}:i.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),E=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},N=Vx(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:S,strategy:u}):j);return{top:(k.top-N.top+b.top)/E.y,bottom:(N.bottom-k.bottom+b.bottom)/E.y,left:(k.left-N.left+b.left)/E.x,right:(N.right-k.right+b.right)/E.x}}const tD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:c}=t,{element:u,padding:h=0}=$l(e,t)||{};if(u==null)return{};const p=XL(h),m={x:n,y:r},x=E3(s),C=S3(x),b=await i.getDimensions(u),g=x==="y",k=g?"top":"left",j=g?"bottom":"right",S=g?"clientHeight":"clientWidth",E=o.reference[C]+o.reference[x]-m[x]-o.floating[C],N=m[x]-o.reference[x],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let M=T?T[S]:0;(!M||!await(i.isElement==null?void 0:i.isElement(T)))&&(M=c.floating[S]||o.floating[C]);const L=E/2-N/2,D=M/2-b[C]/2-1,P=sd(p[k],D),A=sd(p[j],D),B=P,z=M-b[C]-A,R=M/2-b[C]/2+L,$=j3(B,R,z),_=Wp(s)!=null&&R!=$&&o.reference[C]/2-(R<B?P:A)-b[C]/2<0?R<B?B-R:z-R:0;return{[x]:m[x]-_,data:{[x]:$,centerOffset:R-$+_}}}}),Joe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:s,rects:o,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:b=!0,...g}=$l(e,t),k=Bl(r),j=Bl(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=m||(j||!b?[Wx(i)]:Yoe(i));!m&&C!=="none"&&E.push(...Goe(i,b,C,S));const N=[i,...E],T=await pg(t,g),M=[];let L=((n=s.flip)==null?void 0:n.overflows)||[];if(h&&M.push(T[k]),p){const B=qoe(r,o,S);M.push(T[B[0]],T[B[1]])}if(L=[...L,{placement:r,overflows:M}],!M.every(B=>B<=0)){var D,P;const B=(((D=s.flip)==null?void 0:D.index)||0)+1,z=N[B];if(z)return{data:{index:B,overflows:L},reset:{placement:z}};let R=(P=L.filter($=>$.overflows[0]<=0).sort(($,_)=>$.overflows[1]-_.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(x){case"bestFit":{var A;const $=(A=L.map(_=>[_.placement,_.overflows.filter(U=>U>0).reduce((U,K)=>U+K,0)]).sort((_,U)=>_[1]-U[1])[0])==null?void 0:A[0];$&&(R=$);break}case"initialPlacement":R=i;break}if(r!==R)return{reset:{placement:R}}}return{}}}};function nD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rD(e){return Woe.some(t=>e[t]>=0)}const Xoe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=$l(e,t);switch(r){case"referenceHidden":{const o=await pg(t,{...s,elementContext:"reference"}),i=nD(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:rD(i)}}}case"escaped":{const o=await pg(t,{...s,altBoundary:!0}),i=nD(o,n.floating);return{data:{escapedOffsets:i,escaped:rD(i)}}}default:return{}}}}};async function eie(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Bl(n),c=Wp(n),u=Vp(n)==="y",h=["left","top"].includes(i)?-1:1,p=o&&u?-1:1,m=$l(t,e);let{mainAxis:x,crossAxis:C,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return c&&typeof b=="number"&&(C=c==="end"?b*-1:b),u?{x:C*p,y:x*h}:{x:x*h,y:C*p}}const tie=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await eie(t,e);return{x:n+s.x,y:r+s.y,data:s}}}},nie=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:c={fn:k=>{let{x:j,y:S}=k;return{x:j,y:S}}},...u}=$l(e,t),h={x:n,y:r},p=await pg(t,u),m=Vp(Bl(s)),x=C3(m);let C=h[x],b=h[m];if(o){const k=x==="y"?"top":"left",j=x==="y"?"bottom":"right",S=C+p[k],E=C-p[j];C=j3(S,C,E)}if(i){const k=m==="y"?"top":"left",j=m==="y"?"bottom":"right",S=b+p[k],E=b-p[j];b=j3(S,b,E)}const g=c.fn({...t,[x]:C,[m]:b});return{...g,data:{x:g.x-n,y:g.y-r}}}}},rie=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:h=!0}=$l(e,t),p={x:n,y:r},m=Vp(s),x=C3(m);let C=p[x],b=p[m];const g=$l(c,t),k=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const E=x==="y"?"height":"width",N=o.reference[x]-o.floating[E]+k.mainAxis,T=o.reference[x]+o.reference[E]-k.mainAxis;C<N?C=N:C>T&&(C=T)}if(h){var j,S;const E=x==="y"?"width":"height",N=["top","left"].includes(Bl(s)),T=o.reference[m]-o.floating[E]+(N&&((j=i.offset)==null?void 0:j[m])||0)+(N?0:k.crossAxis),M=o.reference[m]+o.reference[E]+(N?0:((S=i.offset)==null?void 0:S[m])||0)-(N?k.crossAxis:0);b<T?b=T:b>M&&(b=M)}return{[x]:C,[m]:b}}}},aie=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:o}=t,{apply:i=()=>{},...c}=$l(e,t),u=await pg(t,c),h=Bl(n),p=Wp(n),m=Vp(n)==="y",{width:x,height:C}=r.floating;let b,g;h==="top"||h==="bottom"?(b=h,g=p===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(g=h,b=p==="end"?"top":"bottom");const k=C-u[b],j=x-u[g],S=!t.middlewareData.shift;let E=k,N=j;if(m){const M=x-u.left-u.right;N=p||S?sd(j,M):M}else{const M=C-u.top-u.bottom;E=p||S?sd(k,M):M}if(S&&!p){const M=ho(u.left,0),L=ho(u.right,0),D=ho(u.top,0),P=ho(u.bottom,0);m?N=x-2*(M!==0||L!==0?M+L:ho(u.left,u.right)):E=C-2*(D!==0||P!==0?D+P:ho(u.top,u.bottom))}await i({...t,availableWidth:N,availableHeight:E});const T=await s.getDimensions(o.floating);return x!==T.width||C!==T.height?{reset:{rects:!0}}:{}}}};function id(e){return aD(e)?(e.nodeName||"").toLowerCase():"#document"}function po(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wl(e){var t;return(t=(aD(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function aD(e){return e instanceof Node||e instanceof po(e).Node}function Vl(e){return e instanceof Element||e instanceof po(e).Element}function Qi(e){return e instanceof HTMLElement||e instanceof po(e).HTMLElement}function sD(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof po(e).ShadowRoot}function mg(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Wo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function sie(e){return["table","td","th"].includes(id(e))}function _3(e){const t=I3(),n=Wo(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function I3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ux(e){return["html","body","#document"].includes(id(e))}function Wo(e){return po(e).getComputedStyle(e)}function qx(e){return Vl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Up(e){if(id(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sD(e)&&e.host||Wl(e);return sD(t)?t.host:t}function oD(e){const t=Up(e);return Ux(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qi(t)&&mg(t)?t:oD(t)}function Yx(e,t){var n;t===void 0&&(t=[]);const r=oD(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=po(r);return s?t.concat(o,o.visualViewport||[],mg(r)?r:[]):t.concat(r,Yx(r))}function iD(e){const t=Wo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Qi(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,c=$x(n)!==o||$x(r)!==i;return c&&(n=o,r=i),{width:n,height:r,$:c}}function T3(e){return Vl(e)?e:e.contextElement}function qp(e){const t=T3(e);if(!Qi(t))return od(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=iD(t);let i=(o?$x(n.width):n.width)/r,c=(o?$x(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const oie=od(0);function lD(e){const t=po(e);return!I3()||!t.visualViewport?oie:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iie(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==po(e)?!1:t}function Pu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=T3(e);let i=od(1);t&&(r?Vl(r)&&(i=qp(r)):i=qp(e));const c=iie(o,n,r)?lD(o):od(0);let u=(s.left+c.x)/i.x,h=(s.top+c.y)/i.y,p=s.width/i.x,m=s.height/i.y;if(o){const x=po(o),C=r&&Vl(r)?po(r):r;let b=x.frameElement;for(;b&&r&&C!==x;){const g=qp(b),k=b.getBoundingClientRect(),j=Wo(b),S=k.left+(b.clientLeft+parseFloat(j.paddingLeft))*g.x,E=k.top+(b.clientTop+parseFloat(j.paddingTop))*g.y;u*=g.x,h*=g.y,p*=g.x,m*=g.y,u+=S,h+=E,b=po(b).frameElement}}return Vx({width:p,height:m,x:u,y:h})}function lie(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Qi(n),o=Wl(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0},c=od(1);const u=od(0);if((s||!s&&r!=="fixed")&&((id(n)!=="body"||mg(o))&&(i=qx(n)),Qi(n))){const h=Pu(n);c=qp(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-i.scrollLeft*c.x+u.x,y:t.y*c.y-i.scrollTop*c.y+u.y}}function cie(e){return Array.from(e.getClientRects())}function cD(e){return Pu(Wl(e)).left+qx(e).scrollLeft}function die(e){const t=Wl(e),n=qx(e),r=e.ownerDocument.body,s=ho(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ho(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+cD(e);const c=-n.scrollTop;return Wo(r).direction==="rtl"&&(i+=ho(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:c}}function uie(e,t){const n=po(e),r=Wl(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,c=0,u=0;if(s){o=s.width,i=s.height;const h=I3();(!h||h&&t==="fixed")&&(c=s.offsetLeft,u=s.offsetTop)}return{width:o,height:i,x:c,y:u}}function hie(e,t){const n=Pu(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Qi(e)?qp(e):od(1),i=e.clientWidth*o.x,c=e.clientHeight*o.y,u=s*o.x,h=r*o.y;return{width:i,height:c,x:u,y:h}}function dD(e,t,n){let r;if(t==="viewport")r=uie(e,n);else if(t==="document")r=die(Wl(e));else if(Vl(t))r=hie(t,n);else{const s=lD(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Vx(r)}function uD(e,t){const n=Up(e);return n===t||!Vl(n)||Ux(n)?!1:Wo(n).position==="fixed"||uD(n,t)}function pie(e,t){const n=t.get(e);if(n)return n;let r=Yx(e).filter(c=>Vl(c)&&id(c)!=="body"),s=null;const o=Wo(e).position==="fixed";let i=o?Up(e):e;for(;Vl(i)&&!Ux(i);){const c=Wo(i),u=_3(i);!u&&c.position==="fixed"&&(s=null),(o?!u&&!s:!u&&c.position==="static"&&s&&["absolute","fixed"].includes(s.position)||mg(i)&&!u&&uD(e,i))?r=r.filter(h=>h!==i):s=c,i=Up(i)}return t.set(e,r),r}function mie(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?pie(t,this._c):[].concat(n),r],i=o[0],c=o.reduce((u,h)=>{const p=dD(t,h,s);return u.top=ho(p.top,u.top),u.right=sd(p.right,u.right),u.bottom=sd(p.bottom,u.bottom),u.left=ho(p.left,u.left),u},dD(t,i,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function fie(e){return iD(e)}function gie(e,t,n){const r=Qi(t),s=Wl(t),o=n==="fixed",i=Pu(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=od(0);if(r||!r&&!o)if((id(t)!=="body"||mg(s))&&(c=qx(t)),r){const h=Pu(t,!0,o,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else s&&(u.x=cD(s));return{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function hD(e,t){return!Qi(e)||Wo(e).position==="fixed"?null:t?t(e):e.offsetParent}function vie(e){let t=Up(e);for(;Qi(t)&&!Ux(t);){if(_3(t))return t;t=Up(t)}return null}function pD(e,t){const n=po(e);if(!Qi(e))return n;let r=hD(e,t);for(;r&&sie(r)&&Wo(r).position==="static";)r=hD(r,t);return r&&(id(r)==="html"||id(r)==="body"&&Wo(r).position==="static"&&!_3(r))?n:r||vie(e)||n}const yie=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||pD,o=this.getDimensions;return{reference:gie(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}};function xie(e){return Wo(e).direction==="rtl"}const bie={convertOffsetParentRelativeRectToViewportRelativeRect:lie,getDocumentElement:Wl,getClippingRect:mie,getOffsetParent:pD,getElementRects:yie,getClientRects:cie,getDimensions:fie,getScale:qp,isElement:Vl,isRTL:xie};function wie(e,t){let n=null,r;const s=Wl(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const{left:h,top:p,width:m,height:x}=e.getBoundingClientRect();if(c||t(),!m||!x)return;const C=Bx(p),b=Bx(s.clientWidth-(h+m)),g=Bx(s.clientHeight-(p+x)),k=Bx(h),j={rootMargin:-C+"px "+-b+"px "+-g+"px "+-k+"px",threshold:ho(0,sd(1,u))||1};let S=!0;function E(N){const T=N[0].intersectionRatio;if(T!==u){if(!S)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},100)}S=!1}try{n=new IntersectionObserver(E,{...j,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,j)}n.observe(e)}return i(!0),o}function kie(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,h=T3(e),p=s||o?[...h?Yx(h):[],...Yx(t)]:[];p.forEach(j=>{s&&j.addEventListener("scroll",n,{passive:!0}),o&&j.addEventListener("resize",n)});const m=h&&c?wie(h,n):null;let x=-1,C=null;i&&(C=new ResizeObserver(j=>{let[S]=j;S&&S.target===h&&C&&(C.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{C&&C.observe(t)})),n()}),h&&!u&&C.observe(h),C.observe(t));let b,g=u?Pu(e):null;u&&k();function k(){const j=Pu(e);g&&(j.x!==g.x||j.y!==g.y||j.width!==g.width||j.height!==g.height)&&n(),g=j,b=requestAnimationFrame(k)}return n(),()=>{p.forEach(j=>{s&&j.removeEventListener("scroll",n),o&&j.removeEventListener("resize",n)}),m&&m(),C&&C.disconnect(),C=null,u&&cancelAnimationFrame(b)}}const jie=(e,t,n)=>{const r=new Map,s={platform:bie,...n},o={...s.platform,_c:r};return Qoe(e,t,{...s,platform:o})},Cie=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?tD({element:r.current,padding:s}).fn(n):{}:r?tD({element:r,padding:s}).fn(n):{}}}};var Kx=typeof document<"u"?f.useLayoutEffect:f.useEffect;function Gx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Gx(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!Gx(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function mD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fD(e,t){const n=mD(e);return Math.round(t*n)/n}function gD(e){const t=f.useRef(e);return Kx(()=>{t.current=e}),t}function Sie(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:u,open:h}=e,[p,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,C]=f.useState(r);Gx(x,r)||C(r);const[b,g]=f.useState(null),[k,j]=f.useState(null),S=f.useCallback(U=>{U!=M.current&&(M.current=U,g(U))},[g]),E=f.useCallback(U=>{U!==L.current&&(L.current=U,j(U))},[j]),N=o||b,T=i||k,M=f.useRef(null),L=f.useRef(null),D=f.useRef(p),P=gD(u),A=gD(s),B=f.useCallback(()=>{if(!M.current||!L.current)return;const U={placement:t,strategy:n,middleware:x};A.current&&(U.platform=A.current),jie(M.current,L.current,U).then(K=>{const W={...K,isPositioned:!0};z.current&&!Gx(D.current,W)&&(D.current=W,Wa.flushSync(()=>{m(W)}))})},[x,t,n,A]);Kx(()=>{h===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[h]);const z=f.useRef(!1);Kx(()=>(z.current=!0,()=>{z.current=!1}),[]),Kx(()=>{if(N&&(M.current=N),T&&(L.current=T),N&&T){if(P.current)return P.current(N,T,B);B()}},[N,T,B,P]);const R=f.useMemo(()=>({reference:M,floating:L,setReference:S,setFloating:E}),[S,E]),$=f.useMemo(()=>({reference:N,floating:T}),[N,T]),_=f.useMemo(()=>{const U={position:n,left:0,top:0};if(!$.floating)return U;const K=fD($.floating,p.x),W=fD($.floating,p.y);return c?{...U,transform:"translate("+K+"px, "+W+"px)",...mD($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:W}},[n,c,$.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:B,refs:R,elements:$,floatingStyles:_}),[p,B,R,$,_])}function vD(e){const[t,n]=f.useState(void 0);return Bo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,c;if("borderBoxSize"in o){const u=o.borderBoxSize,h=Array.isArray(u)?u[0]:u;i=h.inlineSize,c=h.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const yD="Popper",[xD,ld]=ms(yD),[Eie,bD]=xD(yD),Nie=e=>{const{__scopePopper:t,children:n}=e,[r,s]=f.useState(null);return f.createElement(Eie,{scope:t,anchor:r,onAnchorChange:s},n)},_ie="PopperAnchor",Iie=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=bD(_ie,n),i=f.useRef(null),c=Bn(t,i);return f.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:f.createElement(yn.div,Re({},s,{ref:c}))}),wD="PopperContent",[Tie,rEe]=xD(wD),Mie=f.forwardRef((e,t)=>{var n,r,s,o,i,c,u,h;const{__scopePopper:p,side:m="bottom",sideOffset:x=0,align:C="center",alignOffset:b=0,arrowPadding:g=0,avoidCollisions:k=!0,collisionBoundary:j=[],collisionPadding:S=0,sticky:E="partial",hideWhenDetached:N=!1,updatePositionStrategy:T="optimized",onPlaced:M,...L}=e,D=bD(wD,p),[P,A]=f.useState(null),B=Bn(t,Te=>A(Te)),[z,R]=f.useState(null),$=vD(z),_=(n=$==null?void 0:$.width)!==null&&n!==void 0?n:0,U=(r=$==null?void 0:$.height)!==null&&r!==void 0?r:0,K=m+(C!=="center"?"-"+C:""),W=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},G=Array.isArray(j)?j:[j],Z=G.length>0,F={padding:W,boundary:G.filter(Lie),altBoundary:Z},{refs:V,floatingStyles:q,placement:ne,isPositioned:Q,middlewareData:ae}=Sie({strategy:"fixed",placement:K,whileElementsMounted:(...Te)=>kie(...Te,{animationFrame:T==="always"}),elements:{reference:D.anchor},middleware:[tie({mainAxis:x+U,alignmentAxis:b}),k&&nie({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?rie():void 0,...F}),k&&Joe({...F}),aie({...F,apply:({elements:Te,rects:Me,availableWidth:ze,availableHeight:qe})=>{const{width:Ye,height:Ve}=Me.reference,Lt=Te.floating.style;Lt.setProperty("--radix-popper-available-width","".concat(ze,"px")),Lt.setProperty("--radix-popper-available-height","".concat(qe,"px")),Lt.setProperty("--radix-popper-anchor-width","".concat(Ye,"px")),Lt.setProperty("--radix-popper-anchor-height","".concat(Ve,"px"))}}),z&&Cie({element:z,padding:g}),Die({arrowWidth:_,arrowHeight:U}),N&&Xoe({strategy:"referenceHidden",...F})]}),[re,le]=kD(ne),oe=$s(M);Bo(()=>{Q&&(oe==null||oe())},[Q,oe]);const ie=(s=ae.arrow)===null||s===void 0?void 0:s.x,de=(o=ae.arrow)===null||o===void 0?void 0:o.y,xe=((i=ae.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[je,Ee]=f.useState();return Bo(()=>{P&&Ee(window.getComputedStyle(P).zIndex)},[P]),f.createElement("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:Q?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[(c=ae.transformOrigin)===null||c===void 0?void 0:c.x,(u=ae.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},f.createElement(Tie,{scope:p,placedSide:re,onArrowChange:R,arrowX:ie,arrowY:de,shouldHideArrow:xe},f.createElement(yn.div,Re({"data-side":re,"data-align":le},L,{ref:B,style:{...L.style,animation:Q?void 0:"none",opacity:(h=ae.hide)!==null&&h!==void 0&&h.referenceHidden?0:void 0}}))))});function Lie(e){return e!==null}const Die=e=>({name:"transformOrigin",options:e,fn(t){var n,r,s,o,i;const{placement:c,rects:u,middlewareData:h}=t,p=((n=h.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=p?0:e.arrowWidth,x=p?0:e.arrowHeight,[C,b]=kD(c),g={start:"0%",center:"50%",end:"100%"}[b],k=((r=(s=h.arrow)===null||s===void 0?void 0:s.x)!==null&&r!==void 0?r:0)+m/2,j=((o=(i=h.arrow)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0)+x/2;let S="",E="";return C==="bottom"?(S=p?g:"".concat(k,"px"),E="".concat(-x,"px")):C==="top"?(S=p?g:"".concat(k,"px"),E="".concat(u.floating.height+x,"px")):C==="right"?(S="".concat(-x,"px"),E=p?g:"".concat(j,"px")):C==="left"&&(S="".concat(u.floating.width+x,"px"),E=p?g:"".concat(j,"px")),{data:{x:S,y:E}}}});function kD(e){const[t,n="center"]=e.split("-");return[t,n]}const fg=Nie,Zx=Iie,Qx=Mie;function Ka({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Oie({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,c=$s(n),u=f.useCallback(h=>{if(o){const p=typeof h=="function"?h(e):h;p!==e&&c(p)}else s(h)},[o,e,s,c]);return[i,u]}function Oie({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,s=f.useRef(r),o=$s(t);return f.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}function jD(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const CD=f.forwardRef((e,t)=>f.createElement(yn.span,Re({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Pie=CD;var Rie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yp=new WeakMap,Jx=new WeakMap,Xx={},M3=0,SD=function(e){return e&&(e.host||SD(e.parentNode))},Aie=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=SD(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zie=function(e,t,n,r){var s=Aie(t,Array.isArray(e)?e:[e]);Xx[n]||(Xx[n]=new WeakMap);var o=Xx[n],i=[],c=new Set,u=new Set(s),h=function(m){!m||c.has(m)||(c.add(m),h(m.parentNode))};s.forEach(h);var p=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(x){if(c.has(x))p(x);else{var C=x.getAttribute(r),b=C!==null&&C!=="false",g=(Yp.get(x)||0)+1,k=(o.get(x)||0)+1;Yp.set(x,g),o.set(x,k),i.push(x),g===1&&b&&Jx.set(x,!0),k===1&&x.setAttribute(n,"true"),b||x.setAttribute(r,"true")}})};return p(t),c.clear(),M3++,function(){i.forEach(function(m){var x=Yp.get(m)-1,C=o.get(m)-1;Yp.set(m,x),o.set(m,C),x||(Jx.has(m)||m.removeAttribute(r),Jx.delete(m)),C||m.removeAttribute(n)}),M3--,M3||(Yp=new WeakMap,Yp=new WeakMap,Jx=new WeakMap,Xx={})}},eb=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=t||Rie(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),zie(r,s,n,"aria-hidden")):function(){return null}},er=function(){return er=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},er.apply(this,arguments)};function gg(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function tb(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Ru="right-scroll-bar-position",Au="width-before-scroll-bar",Fie="with-scroll-bars-hidden",Hie="--removed-body-scroll-bar-size";function $ie(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bie(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}function nb(e,t){return Bie(t||null,function(n){return e.forEach(function(r){return $ie(r,n)})})}function Wie(e){return e}function Vie(e,t){t===void 0&&(t=Wie);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(o),i=n}var u=function(){var p=i;i=[],p.forEach(o)},h=function(){return Promise.resolve().then(u)};h(),n={push:function(p){i.push(p),h()},filter:function(p){return i=i.filter(p),n}}}};return s}function rb(e){e===void 0&&(e={});var t=Vie(null);return t.options=er({async:!0,ssr:!1},e),t}var ED=function(e){var t=e.sideCar,n=gg(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,er({},n))};ED.isSideCarExport=!0;function ab(e,t){return e.useMedium(t),ED}var ND=rb(),L3=function(){},sb=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:L3,onWheelCapture:L3,onTouchMoveCapture:L3}),s=r[0],o=r[1],i=e.forwardProps,c=e.children,u=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,x=e.sideCar,C=e.noIsolation,b=e.inert,g=e.allowPinchZoom,k=e.as,j=k===void 0?"div":k,S=gg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=x,N=nb([n,t]),T=er(er({},S),s);return f.createElement(f.Fragment,null,p&&f.createElement(E,{sideCar:ND,removeScrollBar:h,shards:m,noIsolation:C,inert:b,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),i?f.cloneElement(f.Children.only(c),er(er({},T),{ref:N})):f.createElement(j,er({},T,{className:u,ref:N}),c))});sb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},sb.classNames={fullWidth:Au,zeroRight:Ru};var Uie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uie();return t&&e.setAttribute("nonce",t),e}function Yie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Kie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qie())&&(Yie(t,n),Kie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zie=function(){var e=Gie();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vg=function(){var e=Zie(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},Qie={left:0,top:0,right:0,gap:0},D3=function(e){return parseInt(e||"",10)||0},Jie=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[D3(n),D3(r),D3(s)]},Xie=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qie;var t=Jie(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ele=vg(),tle=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),"\n .".concat(Fie," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),n==="margin"&&"\n padding-left: ".concat(s,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ru," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Au," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Ru," .").concat(Ru," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Au," .").concat(Au," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat(Hie,": ").concat(c,"px;\n }\n")},ob=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r,o=f.useMemo(function(){return Xie(s)},[s]);return f.createElement(ele,{styles:tle(o,!t,s,n?"":"!important")})},O3=!1;if(typeof window<"u")try{var ib=Object.defineProperty({},"passive",{get:function(){return O3=!0,!0}});window.addEventListener("test",ib,ib),window.removeEventListener("test",ib,ib)}catch{O3=!1}var Kp=O3?{passive:!1}:!1,nle=function(e){return e.tagName==="TEXTAREA"},_D=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nle(e)&&n[t]==="visible")},rle=function(e){return _D(e,"overflowY")},ale=function(e){return _D(e,"overflowX")},ID=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=TD(e,n);if(r){var s=MD(e,n),o=s[1],i=s[2];if(o>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},sle=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ole=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},TD=function(e,t){return e==="v"?rle(t):ale(t)},MD=function(e,t){return e==="v"?sle(t):ole(t)},ile=function(e,t){return e==="h"&&t==="rtl"?-1:1},lle=function(e,t,n,r,s){var o=ile(e,window.getComputedStyle(t).direction),i=o*r,c=n.target,u=t.contains(c),h=!1,p=i>0,m=0,x=0;do{var C=MD(e,c),b=C[0],g=C[1],k=C[2],j=g-k-o*b;(b||j)&&TD(e,c)&&(m+=j,x+=b),c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&(s&&m===0||!s&&i>m)||!p&&(s&&x===0||!s&&-i>x))&&(h=!0),h},lb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},LD=function(e){return[e.deltaX,e.deltaY]},DD=function(e){return e&&"current"in e?e.current:e},cle=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dle=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ule=0,Gp=[];function hle(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),s=f.useState(ule++)[0],o=f.useState(function(){return vg()})[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=tb([e.lockRef.current],(e.shards||[]).map(DD),!0).filter(Boolean);return g.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,k){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var j=lb(g),S=n.current,E="deltaX"in g?g.deltaX:S[0]-j[0],N="deltaY"in g?g.deltaY:S[1]-j[1],T,M=g.target,L=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in g&&L==="h"&&M.type==="range")return!1;var D=ID(L,M);if(!D)return!0;if(D?T=L:(T=L==="v"?"h":"v",D=ID(L,M)),!D)return!1;if(!r.current&&"changedTouches"in g&&(E||N)&&(r.current=T),!T)return!0;var P=r.current||T;return lle(P,k,g,P==="h"?E:N,!0)},[]),u=f.useCallback(function(g){var k=g;if(!(!Gp.length||Gp[Gp.length-1]!==o)){var j="deltaY"in k?LD(k):lb(k),S=t.current.filter(function(T){return T.name===k.type&&T.target===k.target&&cle(T.delta,j)})[0];if(S&&S.should){k.cancelable&&k.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(DD).filter(Boolean).filter(function(T){return T.contains(k.target)}),N=E.length>0?c(k,E[0]):!i.current.noIsolation;N&&k.cancelable&&k.preventDefault()}}},[]),h=f.useCallback(function(g,k,j,S){var E={name:g,delta:k,target:j,should:S};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),p=f.useCallback(function(g){n.current=lb(g),r.current=void 0},[]),m=f.useCallback(function(g){h(g.type,LD(g),g.target,c(g,e.lockRef.current))},[]),x=f.useCallback(function(g){h(g.type,lb(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return Gp.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",u,Kp),document.addEventListener("touchmove",u,Kp),document.addEventListener("touchstart",p,Kp),function(){Gp=Gp.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,Kp),document.removeEventListener("touchmove",u,Kp),document.removeEventListener("touchstart",p,Kp)}},[]);var C=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(o,{styles:dle(s)}):null,C?f.createElement(ob,{gapMode:"margin"}):null)}const ple=ab(ND,hle);var OD=f.forwardRef(function(e,t){return f.createElement(sb,er({},e,{ref:t,sideCar:ple}))});OD.classNames=sb.classNames;const mle=OD,fle=[" ","Enter","ArrowUp","ArrowDown"],gle=[" ","Enter"],cb="Select",[db,P3,vle]=ug(cb),[Zp,aEe]=ms(cb,[vle,ld]),R3=ld(),[yle,zu]=Zp(cb),[xle,ble]=Zp(cb),wle=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:o,value:i,defaultValue:c,onValueChange:u,dir:h,name:p,autoComplete:m,disabled:x,required:C}=e,b=R3(t),[g,k]=f.useState(null),[j,S]=f.useState(null),[E,N]=f.useState(!1),T=Bp(h),[M=!1,L]=Ka({prop:r,defaultProp:s,onChange:o}),[D,P]=Ka({prop:i,defaultProp:c,onChange:u}),A=f.useRef(null),B=g?!!g.closest("form"):!0,[z,R]=f.useState(new Set),$=Array.from(z).map(_=>_.props.value).join(";");return f.createElement(fg,b,f.createElement(yle,{required:C,scope:t,trigger:g,onTriggerChange:k,valueNode:j,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:N,contentId:ga(),value:D,onValueChange:P,open:M,onOpenChange:L,dir:T,triggerPointerDownPosRef:A,disabled:x},f.createElement(db.Provider,{scope:t},f.createElement(xle,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(_=>{R(U=>new Set(U).add(_))},[]),onNativeOptionRemove:f.useCallback(_=>{R(U=>{const K=new Set(U);return K.delete(_),K})},[])},n)),B?f.createElement(HD,{key:$,"aria-hidden":!0,required:C,tabIndex:-1,name:p,autoComplete:m,value:D,onChange:_=>P(_.target.value),disabled:x},D===void 0?f.createElement("option",{value:""}):null,Array.from(z)):null))},kle="SelectTrigger",jle=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,o=R3(n),i=zu(kle,n),c=i.disabled||r,u=Bn(t,i.onTriggerChange),h=P3(n),[p,m,x]=$D(b=>{const g=h().filter(S=>!S.disabled),k=g.find(S=>S.value===i.value),j=BD(g,b,k);j!==void 0&&i.onValueChange(j.value)}),C=()=>{c||(i.onOpenChange(!0),x())};return f.createElement(Zx,Re({asChild:!0},o),f.createElement(yn.button,Re({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":FD(i.value)?"":void 0},s,{ref:u,onClick:vt(s.onClick,b=>{b.currentTarget.focus()}),onPointerDown:vt(s.onPointerDown,b=>{const g=b.target;g.hasPointerCapture(b.pointerId)&&g.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&(C(),i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)},b.preventDefault())}),onKeyDown:vt(s.onKeyDown,b=>{const g=p.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&m(b.key),!(g&&b.key===" ")&&fle.includes(b.key)&&(C(),b.preventDefault())})})))}),Cle="SelectValue",Sle=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:o,placeholder:i="",...c}=e,u=zu(Cle,n),{onValueNodeHasChildrenChange:h}=u,p=o!==void 0,m=Bn(t,u.onValueNodeChange);return Bo(()=>{h(p)},[h,p]),f.createElement(yn.span,Re({},c,{ref:m,style:{pointerEvents:"none"}}),FD(u.value)?f.createElement(f.Fragment,null,i):o)}),Ele=e=>f.createElement(Ac,Re({asChild:!0},e)),Qp="SelectContent",Nle=f.forwardRef((e,t)=>{const n=zu(Qp,e.__scopeSelect),[r,s]=f.useState();if(Bo(()=>{s(new DocumentFragment)},[]),!n.open){const o=r;return o?Wa.createPortal(f.createElement(PD,{scope:e.__scopeSelect},f.createElement(db.Slot,{scope:e.__scopeSelect},f.createElement("div",null,e.children))),o):null}return f.createElement(_le,Re({},e,{ref:t}))}),Ul=10,[PD,ub]=Zp(Qp),_le=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:i,side:c,sideOffset:u,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:x,collisionPadding:C,sticky:b,hideWhenDetached:g,avoidCollisions:k,...j}=e,S=zu(Qp,n),[E,N]=f.useState(null),[T,M]=f.useState(null),L=Bn(t,re=>N(re)),[D,P]=f.useState(null),[A,B]=f.useState(null),z=P3(n),[R,$]=f.useState(!1),_=f.useRef(!1);f.useEffect(()=>{if(E)return eb(E)},[E]),Fx();const U=f.useCallback(re=>{const[le,...oe]=z().map(xe=>xe.ref.current),[ie]=oe.slice(-1),de=document.activeElement;for(const xe of re)if(xe===de||(xe==null||xe.scrollIntoView({block:"nearest"}),xe===le&&T&&(T.scrollTop=0),xe===ie&&T&&(T.scrollTop=T.scrollHeight),xe==null||xe.focus(),document.activeElement!==de))return},[z,T]),K=f.useCallback(()=>U([D,E]),[U,D,E]);f.useEffect(()=>{R&&K()},[R,K]);const{onOpenChange:W,triggerPointerDownPosRef:G}=S;f.useEffect(()=>{if(E){let re={x:0,y:0};const le=ie=>{var de,xe,je,Ee;re={x:Math.abs(Math.round(ie.pageX)-((de=(xe=G.current)===null||xe===void 0?void 0:xe.x)!==null&&de!==void 0?de:0)),y:Math.abs(Math.round(ie.pageY)-((je=(Ee=G.current)===null||Ee===void 0?void 0:Ee.y)!==null&&je!==void 0?je:0))}},oe=ie=>{re.x<=10&&re.y<=10?ie.preventDefault():E.contains(ie.target)||W(!1),document.removeEventListener("pointermove",le),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",oe,{capture:!0})}}},[E,W,G]),f.useEffect(()=>{const re=()=>W(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[W]);const[Z,F]=$D(re=>{const le=z().filter(de=>!de.disabled),oe=le.find(de=>de.ref.current===document.activeElement),ie=BD(le,re,oe);ie&&setTimeout(()=>ie.ref.current.focus())}),V=f.useCallback((re,le,oe)=>{const ie=!_.current&&!oe;(S.value!==void 0&&S.value===le||ie)&&(P(re),ie&&(_.current=!0))},[S.value]),q=f.useCallback(()=>E==null?void 0:E.focus(),[E]),ne=f.useCallback((re,le,oe)=>{const ie=!_.current&&!oe;(S.value!==void 0&&S.value===le||ie)&&B(re)},[S.value]),Q=r==="popper"?RD:Ile,ae=Q===RD?{side:c,sideOffset:u,align:h,alignOffset:p,arrowPadding:m,collisionBoundary:x,collisionPadding:C,sticky:b,hideWhenDetached:g,avoidCollisions:k}:{};return f.createElement(PD,{scope:n,content:E,viewport:T,onViewportChange:M,itemRefCallback:V,selectedItem:D,onItemLeave:q,itemTextRefCallback:ne,focusSelectedItem:K,selectedItemText:A,position:r,isPositioned:R,searchRef:Z},f.createElement(mle,{as:Rc,allowPinchZoom:!0},f.createElement(Hx,{asChild:!0,trapped:S.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:vt(s,re=>{var le;(le=S.trigger)===null||le===void 0||le.focus({preventScroll:!0}),re.preventDefault()})},f.createElement(hg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>S.onOpenChange(!1)},f.createElement(Q,Re({role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:re=>re.preventDefault()},j,ae,{onPlaced:()=>$(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:vt(j.onKeyDown,re=>{const le=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!le&&re.key.length===1&&F(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let oe=z().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(re.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const ie=re.target,de=oe.indexOf(ie);oe=oe.slice(de+1)}setTimeout(()=>U(oe)),re.preventDefault()}})}))))))}),Ile=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,o=zu(Qp,n),i=ub(Qp,n),[c,u]=f.useState(null),[h,p]=f.useState(null),m=Bn(t,L=>p(L)),x=P3(n),C=f.useRef(!1),b=f.useRef(!0),{viewport:g,selectedItem:k,selectedItemText:j,focusSelectedItem:S}=i,E=f.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&h&&g&&k&&j){const L=o.trigger.getBoundingClientRect(),D=h.getBoundingClientRect(),P=o.valueNode.getBoundingClientRect(),A=j.getBoundingClientRect();if(o.dir!=="rtl"){const ie=A.left-D.left,de=P.left-ie,xe=L.left-de,je=L.width+xe,Ee=Math.max(je,D.width),Te=window.innerWidth-Ul,Me=WL(de,[Ul,Te-Ee]);c.style.minWidth=je+"px",c.style.left=Me+"px"}else{const ie=D.right-A.right,de=window.innerWidth-P.right-ie,xe=window.innerWidth-L.right-de,je=L.width+xe,Ee=Math.max(je,D.width),Te=window.innerWidth-Ul,Me=WL(de,[Ul,Te-Ee]);c.style.minWidth=je+"px",c.style.right=Me+"px"}const B=x(),z=window.innerHeight-Ul*2,R=g.scrollHeight,$=window.getComputedStyle(h),_=parseInt($.borderTopWidth,10),U=parseInt($.paddingTop,10),K=parseInt($.borderBottomWidth,10),W=parseInt($.paddingBottom,10),G=_+U+R+W+K,Z=Math.min(k.offsetHeight*5,G),F=window.getComputedStyle(g),V=parseInt(F.paddingTop,10),q=parseInt(F.paddingBottom,10),ne=L.top+L.height/2-Ul,Q=z-ne,ae=k.offsetHeight/2,re=k.offsetTop+ae,le=_+U+re,oe=G-le;if(le<=ne){const ie=k===B[B.length-1].ref.current;c.style.bottom="0px";const de=h.clientHeight-g.offsetTop-g.offsetHeight,xe=Math.max(Q,ae+(ie?q:0)+de+K),je=le+xe;c.style.height=je+"px"}else{const ie=k===B[0].ref.current;c.style.top="0px";const de=Math.max(ne,_+g.offsetTop+(ie?V:0)+ae)+oe;c.style.height=de+"px",g.scrollTop=le-ne+g.offsetTop}c.style.margin="".concat(Ul,"px 0"),c.style.minHeight=Z+"px",c.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[x,o.trigger,o.valueNode,c,h,g,k,j,o.dir,r]);Bo(()=>E(),[E]);const[N,T]=f.useState();Bo(()=>{h&&T(window.getComputedStyle(h).zIndex)},[h]);const M=f.useCallback(L=>{L&&b.current===!0&&(E(),S==null||S(),b.current=!1)},[E,S]);return f.createElement(Tle,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:C,onScrollButtonChange:M},f.createElement("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N}},f.createElement(yn.div,Re({},s,{ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}}))))}),RD=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=Ul,...o}=e,i=R3(n);return f.createElement(Qx,Re({},i,o,{ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[Tle,Mle]=Zp(Qp,{}),AD="SelectViewport",Lle=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=ub(AD,n),o=Mle(AD,n),i=Bn(t,s.onViewportChange),c=f.useRef(0);return f.createElement(f.Fragment,null,f.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),f.createElement(db.Slot,{scope:n},f.createElement(yn.div,Re({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:vt(r.onScroll,u=>{const h=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=o;if(m!=null&&m.current&&p){const x=Math.abs(c.current-h.scrollTop);if(x>0){const C=window.innerHeight-Ul*2,b=parseFloat(p.style.minHeight),g=parseFloat(p.style.height),k=Math.max(b,g);if(k<C){const j=k+x,S=Math.min(C,j),E=j-S;p.style.height=S+"px",p.style.bottom==="0px"&&(h.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}c.current=h.scrollTop})}))))}),Dle="SelectGroup",[sEe,Ole]=Zp(Dle),Ple="SelectLabel",Rle=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Ole(Ple,n);return f.createElement(yn.div,Re({id:s.id},r,{ref:t}))}),A3="SelectItem",[Ale,zD]=Zp(A3),zle=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:o,...i}=e,c=zu(A3,n),u=ub(A3,n),h=c.value===r,[p,m]=f.useState(o!=null?o:""),[x,C]=f.useState(!1),b=Bn(t,j=>{var S;return(S=u.itemRefCallback)===null||S===void 0?void 0:S.call(u,j,r,s)}),g=ga(),k=()=>{s||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.createElement(Ale,{scope:n,value:r,disabled:s,textId:g,isSelected:h,onItemTextChange:f.useCallback(j=>{m(S=>{var E;return S||((E=j==null?void 0:j.textContent)!==null&&E!==void 0?E:"").trim()})},[])},f.createElement(db.ItemSlot,{scope:n,value:r,disabled:s,textValue:p},f.createElement(yn.div,Re({role:"option","aria-labelledby":g,"data-highlighted":x?"":void 0,"aria-selected":h&&x,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},i,{ref:b,onFocus:vt(i.onFocus,()=>C(!0)),onBlur:vt(i.onBlur,()=>C(!1)),onPointerUp:vt(i.onPointerUp,k),onPointerMove:vt(i.onPointerMove,j=>{if(s){var S;(S=u.onItemLeave)===null||S===void 0||S.call(u)}else j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:vt(i.onPointerLeave,j=>{if(j.currentTarget===document.activeElement){var S;(S=u.onItemLeave)===null||S===void 0||S.call(u)}}),onKeyDown:vt(i.onKeyDown,j=>{var S;((S=u.searchRef)===null||S===void 0?void 0:S.current)!==""&&j.key===" "||(gle.includes(j.key)&&k(),j.key===" "&&j.preventDefault())})}))))}),hb="SelectItemText",Fle=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...o}=e,i=zu(hb,n),c=ub(hb,n),u=zD(hb,n),h=ble(hb,n),[p,m]=f.useState(null),x=Bn(t,j=>m(j),u.onItemTextChange,j=>{var S;return(S=c.itemTextRefCallback)===null||S===void 0?void 0:S.call(c,j,u.value,u.disabled)}),C=p==null?void 0:p.textContent,b=f.useMemo(()=>f.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},C),[u.disabled,u.value,C]),{onNativeOptionAdd:g,onNativeOptionRemove:k}=h;return Bo(()=>(g(b),()=>k(b)),[g,k,b]),f.createElement(f.Fragment,null,f.createElement(yn.span,Re({id:u.textId},o,{ref:x})),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Wa.createPortal(o.children,i.valueNode):null)}),Hle="SelectItemIndicator",$le=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return zD(Hle,n).isSelected?f.createElement(yn.span,Re({"aria-hidden":!0},r,{ref:t})):null}),Ble=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return f.createElement(yn.div,Re({"aria-hidden":!0},r,{ref:t}))});function FD(e){return e===""||e===void 0}const HD=f.forwardRef((e,t)=>{const{value:n,...r}=e,s=f.useRef(null),o=Bn(t,s),i=jD(n);return f.useEffect(()=>{const c=s.current,u=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==n&&h){const p=new Event("change",{bubbles:!0});h.call(c,n),c.dispatchEvent(p)}},[i,n]),f.createElement(CD,{asChild:!0},f.createElement("select",Re({},r,{ref:o,defaultValue:n})))});HD.displayName="BubbleSelect";function $D(e){const t=$s(e),n=f.useRef(""),r=f.useRef(0),s=f.useCallback(i=>{const c=n.current+i;t(c),function u(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(c)},[t]),o=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,o]}function BD(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let o=Wle(e,Math.max(s,0));r.length===1&&(o=o.filter(c=>c!==n));const i=o.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}function Wle(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Vle=wle,WD=jle,Ule=Sle,qle=Ele,VD=Nle,Yle=Lle,UD=Rle,qD=zle,Kle=Fle,Gle=$le,YD=Ble,KD=Vle,GD=Ule,z3=f.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(WD,{ref:r,className:xt("flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[n.isCreate&&a.jsx(Lte,{className:"h-4 w-4 mr-2 opacity-80"}),t,!n.isCreate&&a.jsx(jn,{className:"h-5 w-5 ml-2 opacity-80"})]}));z3.displayName=WD.displayName;const F3=f.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>a.jsx(qle,{children:a.jsx(VD,{ref:s,className:xt("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-80",n==="popper"&&"translate-y-1",e),position:n,...r,children:a.jsx(Yle,{className:xt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));F3.displayName=VD.displayName;const Zle=f.forwardRef(({className:e,...t},n)=>a.jsx(UD,{ref:n,className:xt("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Zle.displayName=UD.displayName;const Jp=f.forwardRef(({className:e,children:t,noItemIndicator:n,...r},s)=>a.jsxs(qD,{ref:s,className:xt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 ".concat(n?"pl-2":"pl-8"," pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground"),e),...r,children:[!n&&a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Gle,{children:a.jsx(Dt,{className:"h-4 w-4"})})}),a.jsx(Kle,{children:t})]}));Jp.displayName=qD.displayName;const Qle=f.forwardRef(({className:e,...t},n)=>a.jsx(YD,{ref:n,className:xt("-mx-1 my-1 h-px bg-muted",e),...t}));Qle.displayName=YD.displayName;const J=f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:e,...t}));J.displayName="Box";const fe=f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("flex items-center justify-center",e),...t}));fe.displayName="Flex";const ZD=Ou("inline-flex items-center border rounded-full px-1.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{slate:"bg-slate-500 dark:bg-slate-700 hover:bg-slate-100/80 border-transparent text-primary-foreground dark:text-slate-200",slateSecondary:"bg-secondary dark:bg-slate-600 dark:text-slate-200 hover:bg-secondary/80 border-transparent text-secondary-foreground",default:"bg-slate-500 hover:bg-slate-500/80 border-transparent text-primary-foreground",secondary:"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",pro:"border-transparent dark:text-green-950 text-slate-50 bg-green-500 dark:bg-green-600",destructive:"bg-destructive dark:bg-red-800 hover:bg-destructive/80 border-transparent text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function it({className:e,variant:t,...n}){return a.jsx("span",{className:xt(ZD({variant:t}),e),...n})}it.displayName="Badge";const H3=f.forwardRef(({className:e,variant:t,...n},r)=>a.jsx("span",{ref:r,className:xt(ZD({variant:t}),e),...n}));H3.displayName="BadgeWithRef";const Jle=f.forwardRef(({className:e,...t},n)=>a.jsx("div",{className:"w-full overflow-auto",children:a.jsx("table",{ref:n,className:xt("w-full caption-bottom text-sm",e),...t})}));Jle.displayName="Table";const Xle=f.forwardRef(({className:e,...t},n)=>a.jsx("thead",{ref:n,className:xt("[&_tr]:border-b",e),...t}));Xle.displayName="TableHeader";const ece=f.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:xt("[&_tr:last-child]:border-0",e),...t}));ece.displayName="TableBody";const tce=f.forwardRef(({className:e,...t},n)=>a.jsx("tfoot",{ref:n,className:xt("bg-primary font-medium text-primary-foreground",e),...t}));tce.displayName="TableFooter";const nce=f.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:xt("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));nce.displayName="TableRow";const rce=f.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:xt("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));rce.displayName="TableHead";const ace=f.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:xt("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));ace.displayName="TableCell";const sce=f.forwardRef(({className:e,...t},n)=>a.jsx("caption",{ref:n,className:xt("mt-4 text-sm text-muted-foreground",e),...t}));sce.displayName="TableCaption";const tr=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("rounded-lg border bg-card text-card-foreground shadow-sm flex flex-col",e),...t})));tr.displayName="Card";const Kn=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("flex flex-col space-y-1.5 p-6",e),...t})));Kn.displayName="CardHeader";const Gn=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("h3",{ref:n,className:xt("text-lg font-semibold leading-none tracking-tight",e),...t})));Gn.displayName="CardTitle";const oce=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("p",{ref:n,className:xt("text-sm text-muted-foreground",e),...t})));oce.displayName="CardDescription";const cr=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("p-6 pt-2 pb-5 flex-grow",e),...t})));cr.displayName="CardContent";const $3=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("flex items-center p-6 pt-0",e),...t})));$3.displayName="CardFooter";const QD="Switch",[ice,oEe]=ms(QD),[lce,cce]=ice(QD),dce=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:o,required:i,disabled:c,value:u="on",onCheckedChange:h,...p}=e,[m,x]=f.useState(null),C=Bn(t,S=>x(S)),b=f.useRef(!1),g=m?!!m.closest("form"):!0,[k=!1,j]=Ka({prop:s,defaultProp:o,onChange:h});return f.createElement(lce,{scope:n,checked:k,disabled:c},f.createElement(yn.button,Re({type:"button",role:"switch","aria-checked":k,"aria-required":i,"data-state":JD(k),"data-disabled":c?"":void 0,disabled:c,value:u},p,{ref:C,onClick:vt(e.onClick,S=>{j(E=>!E),g&&(b.current=S.isPropagationStopped(),b.current||S.stopPropagation())})})),g&&f.createElement(pce,{control:m,bubbles:!b.current,name:r,value:u,checked:k,required:i,disabled:c,style:{transform:"translateX(-100%)"}}))}),uce="SwitchThumb",hce=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,s=cce(uce,n);return f.createElement(yn.span,Re({"data-state":JD(s.checked),"data-disabled":s.disabled?"":void 0},r,{ref:t}))}),pce=e=>{const{control:t,checked:n,bubbles:r=!0,...s}=e,o=f.useRef(null),i=jD(n),c=vD(t);return f.useEffect(()=>{const u=o.current,h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(i!==n&&p){const m=new Event("click",{bubbles:r});p.call(u,n),u.dispatchEvent(m)}},[i,n,r]),f.createElement("input",Re({type:"checkbox","aria-hidden":!0,defaultChecked:n},s,{tabIndex:-1,ref:o,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function JD(e){return e?"checked":"unchecked"}const XD=dce,mce=hce,Hr=f.forwardRef(({className:e,...t},n)=>a.jsx(XD,{className:xt(" peer inline-flex h-[20px] w-[37px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-slate-500 data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-slate-300 dark:data-[state=unchecked]:bg-slate-600",e),...t,ref:n,children:a.jsx(mce,{className:xt("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Hr.displayName=XD.displayName;function fce(e,t){return f.useReducer((n,r)=>{const s=t[n][r];return s!=null?s:n},e)}const mo=e=>{const{present:t,children:n}=e,r=gce(t),s=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),o=Bn(r.ref,s.ref);return typeof n=="function"||r.isPresent?f.cloneElement(s,{ref:o}):null};mo.displayName="Presence";function gce(e){const[t,n]=f.useState(),r=f.useRef({}),s=f.useRef(e),o=f.useRef("none"),i=e?"mounted":"unmounted",[c,u]=fce(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const h=pb(r.current);o.current=c==="mounted"?h:"none"},[c]),Bo(()=>{const h=r.current,p=s.current;if(p!==e){const m=o.current,x=pb(h);e?u("MOUNT"):x==="none"||(h==null?void 0:h.display)==="none"?u("UNMOUNT"):u(p&&m!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),Bo(()=>{if(t){const h=m=>{const x=pb(r.current).includes(m.animationName);m.target===t&&x&&Wa.flushSync(()=>u("ANIMATION_END"))},p=m=>{m.target===t&&(o.current=pb(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[])}}function pb(e){return(e==null?void 0:e.animationName)||"none"}const B3="rovingFocusGroup.onEntryFocus",vce={bubbles:!1,cancelable:!0},W3="RovingFocusGroup",[V3,eO,yce]=ug(W3),[xce,Xp]=ms(W3,[yce]),[bce,wce]=xce(W3),kce=f.forwardRef((e,t)=>f.createElement(V3.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(V3.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(jce,Re({},e,{ref:t}))))),jce=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:h,...p}=e,m=f.useRef(null),x=Bn(t,m),C=Bp(o),[b=null,g]=Ka({prop:i,defaultProp:c,onChange:u}),[k,j]=f.useState(!1),S=$s(h),E=eO(n),N=f.useRef(!1),[T,M]=f.useState(0);return f.useEffect(()=>{const L=m.current;if(L)return L.addEventListener(B3,S),()=>L.removeEventListener(B3,S)},[S]),f.createElement(bce,{scope:n,orientation:r,dir:C,loop:s,currentTabStopId:b,onItemFocus:f.useCallback(L=>g(L),[g]),onItemShiftTab:f.useCallback(()=>j(!0),[]),onFocusableItemAdd:f.useCallback(()=>M(L=>L+1),[]),onFocusableItemRemove:f.useCallback(()=>M(L=>L-1),[])},f.createElement(yn.div,Re({tabIndex:k||T===0?-1:0,"data-orientation":r},p,{ref:x,style:{outline:"none",...e.style},onMouseDown:vt(e.onMouseDown,()=>{N.current=!0}),onFocus:vt(e.onFocus,L=>{const D=!N.current;if(L.target===L.currentTarget&&D&&!k){const P=new CustomEvent(B3,vce);if(L.currentTarget.dispatchEvent(P),!P.defaultPrevented){const A=E().filter($=>$.focusable),B=A.find($=>$.active),z=A.find($=>$.id===b),R=[B,z,...A].filter(Boolean).map($=>$.ref.current);tO(R)}}N.current=!1}),onBlur:vt(e.onBlur,()=>j(!1))})))}),Cce="RovingFocusGroupItem",Sce=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:o,...i}=e,c=ga(),u=o||c,h=wce(Cce,n),p=h.currentTabStopId===u,m=eO(n),{onFocusableItemAdd:x,onFocusableItemRemove:C}=h;return f.useEffect(()=>{if(r)return x(),()=>C()},[r,x,C]),f.createElement(V3.ItemSlot,{scope:n,id:u,focusable:r,active:s},f.createElement(yn.span,Re({tabIndex:p?0:-1,"data-orientation":h.orientation},i,{ref:t,onMouseDown:vt(e.onMouseDown,b=>{r?h.onItemFocus(u):b.preventDefault()}),onFocus:vt(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:vt(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){h.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const g=_ce(b,h.orientation,h.dir);if(g!==void 0){b.preventDefault();let k=m().filter(j=>j.focusable).map(j=>j.ref.current);if(g==="last")k.reverse();else if(g==="prev"||g==="next"){g==="prev"&&k.reverse();const j=k.indexOf(b.currentTarget);k=h.loop?Ice(k,j+1):k.slice(j+1)}setTimeout(()=>tO(k))}})})))}),Ece={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nce(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _ce(e,t,n){const r=Nce(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ece[r]}function tO(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ice(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const U3=kce,q3=Sce;var nO=rb(),Y3=function(){},mb=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Y3,onWheelCapture:Y3,onTouchMoveCapture:Y3}),s=r[0],o=r[1],i=e.forwardProps,c=e.children,u=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,x=e.sideCar,C=e.noIsolation,b=e.inert,g=e.allowPinchZoom,k=e.as,j=k===void 0?"div":k,S=gg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=x,N=nb([n,t]),T=er(er({},S),s);return f.createElement(f.Fragment,null,p&&f.createElement(E,{sideCar:nO,removeScrollBar:h,shards:m,noIsolation:C,inert:b,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),i?f.cloneElement(f.Children.only(c),er(er({},T),{ref:N})):f.createElement(j,er({},T,{className:u,ref:N}),c))});mb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mb.classNames={fullWidth:Au,zeroRight:Ru};var K3=!1;if(typeof window<"u")try{var fb=Object.defineProperty({},"passive",{get:function(){return K3=!0,!0}});window.addEventListener("test",fb,fb),window.removeEventListener("test",fb,fb)}catch{K3=!1}var em=K3?{passive:!1}:!1,Tce=function(e){return e.tagName==="TEXTAREA"},rO=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tce(e)&&n[t]==="visible")},Mce=function(e){return rO(e,"overflowY")},Lce=function(e){return rO(e,"overflowX")},aO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=sO(e,n);if(r){var s=oO(e,n),o=s[1],i=s[2];if(o>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Dce=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Oce=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sO=function(e,t){return e==="v"?Mce(t):Lce(t)},oO=function(e,t){return e==="v"?Dce(t):Oce(t)},Pce=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rce=function(e,t,n,r,s){var o=Pce(e,window.getComputedStyle(t).direction),i=o*r,c=n.target,u=t.contains(c),h=!1,p=i>0,m=0,x=0;do{var C=oO(e,c),b=C[0],g=C[1],k=C[2],j=g-k-o*b;(b||j)&&sO(e,c)&&(m+=j,x+=b),c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&(s&&m===0||!s&&i>m)||!p&&(s&&x===0||!s&&-i>x))&&(h=!0),h},gb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iO=function(e){return[e.deltaX,e.deltaY]},lO=function(e){return e&&"current"in e?e.current:e},Ace=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zce=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Fce=0,tm=[];function Hce(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),s=f.useState(Fce++)[0],o=f.useState(function(){return vg()})[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=tb([e.lockRef.current],(e.shards||[]).map(lO),!0).filter(Boolean);return g.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,k){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var j=gb(g),S=n.current,E="deltaX"in g?g.deltaX:S[0]-j[0],N="deltaY"in g?g.deltaY:S[1]-j[1],T,M=g.target,L=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in g&&L==="h"&&M.type==="range")return!1;var D=aO(L,M);if(!D)return!0;if(D?T=L:(T=L==="v"?"h":"v",D=aO(L,M)),!D)return!1;if(!r.current&&"changedTouches"in g&&(E||N)&&(r.current=T),!T)return!0;var P=r.current||T;return Rce(P,k,g,P==="h"?E:N,!0)},[]),u=f.useCallback(function(g){var k=g;if(!(!tm.length||tm[tm.length-1]!==o)){var j="deltaY"in k?iO(k):gb(k),S=t.current.filter(function(T){return T.name===k.type&&T.target===k.target&&Ace(T.delta,j)})[0];if(S&&S.should){k.cancelable&&k.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(lO).filter(Boolean).filter(function(T){return T.contains(k.target)}),N=E.length>0?c(k,E[0]):!i.current.noIsolation;N&&k.cancelable&&k.preventDefault()}}},[]),h=f.useCallback(function(g,k,j,S){var E={name:g,delta:k,target:j,should:S};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),p=f.useCallback(function(g){n.current=gb(g),r.current=void 0},[]),m=f.useCallback(function(g){h(g.type,iO(g),g.target,c(g,e.lockRef.current))},[]),x=f.useCallback(function(g){h(g.type,gb(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return tm.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",u,em),document.addEventListener("touchmove",u,em),document.addEventListener("touchstart",p,em),function(){tm=tm.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,em),document.removeEventListener("touchmove",u,em),document.removeEventListener("touchstart",p,em)}},[]);var C=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(o,{styles:zce(s)}):null,C?f.createElement(ob,{gapMode:"margin"}):null)}const $ce=ab(nO,Hce);var cO=f.forwardRef(function(e,t){return f.createElement(mb,er({},e,{ref:t,sideCar:$ce}))});cO.classNames=mb.classNames;const Bce=cO,G3=["Enter"," "],Wce=["ArrowDown","PageUp","Home"],dO=["ArrowUp","PageDown","End"],Vce=[...Wce,...dO],Uce={ltr:[...G3,"ArrowRight"],rtl:[...G3,"ArrowLeft"]},qce={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vb="Menu",[yg,Yce,Kce]=ug(vb),[Fu,xg]=ms(vb,[Kce,ld,Xp]),yb=ld(),uO=Xp(),[hO,cd]=Fu(vb),[Gce,bg]=Fu(vb),Zce=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:s,onOpenChange:o,modal:i=!0}=e,c=yb(t),[u,h]=f.useState(null),p=f.useRef(!1),m=$s(o),x=Bp(s);return f.useEffect(()=>{const C=()=>{p.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>p.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),f.createElement(fg,c,f.createElement(hO,{scope:t,open:n,onOpenChange:m,content:u,onContentChange:h},f.createElement(Gce,{scope:t,onClose:f.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:x,modal:i},r)))},pO=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,s=yb(n);return f.createElement(Zx,Re({},s,r,{ref:t}))}),mO="MenuPortal",[Qce,fO]=Fu(mO,{forceMount:void 0}),Jce=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:s}=e,o=cd(mO,t);return f.createElement(Qce,{scope:t,forceMount:n},f.createElement(mo,{present:n||o.open},f.createElement(Ac,{asChild:!0,container:s},r)))},wi="MenuContent",[Xce,Z3]=Fu(wi),ede=f.forwardRef((e,t)=>{const n=fO(wi,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,o=cd(wi,e.__scopeMenu),i=bg(wi,e.__scopeMenu);return f.createElement(yg.Provider,{scope:e.__scopeMenu},f.createElement(mo,{present:r||o.open},f.createElement(yg.Slot,{scope:e.__scopeMenu},i.modal?f.createElement(tde,Re({},s,{ref:t})):f.createElement(nde,Re({},s,{ref:t})))))}),tde=f.forwardRef((e,t)=>{const n=cd(wi,e.__scopeMenu),r=f.useRef(null),s=Bn(t,r);return f.useEffect(()=>{const o=r.current;if(o)return eb(o)},[]),f.createElement(Q3,Re({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:vt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),nde=f.forwardRef((e,t)=>{const n=cd(wi,e.__scopeMenu);return f.createElement(Q3,Re({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Q3=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:x,onDismiss:C,disableOutsideScroll:b,...g}=e,k=cd(wi,n),j=bg(wi,n),S=yb(n),E=uO(n),N=Yce(n),[T,M]=f.useState(null),L=f.useRef(null),D=Bn(t,L,k.onContentChange),P=f.useRef(0),A=f.useRef(""),B=f.useRef(0),z=f.useRef(null),R=f.useRef("right"),$=f.useRef(0),_=b?Bce:f.Fragment,U=b?{as:Rc,allowPinchZoom:!0}:void 0,K=G=>{var Z,F;const V=A.current+G,q=N().filter(oe=>!oe.disabled),ne=document.activeElement,Q=(Z=q.find(oe=>oe.ref.current===ne))===null||Z===void 0?void 0:Z.textValue,ae=q.map(oe=>oe.textValue),re=wde(ae,V,Q),le=(F=q.find(oe=>oe.textValue===re))===null||F===void 0?void 0:F.ref.current;(function oe(ie){A.current=ie,window.clearTimeout(P.current),ie!==""&&(P.current=window.setTimeout(()=>oe(""),1e3))})(V),le&&setTimeout(()=>le.focus())};f.useEffect(()=>()=>window.clearTimeout(P.current),[]),Fx();const W=f.useCallback(G=>{var Z,F;return R.current===((Z=z.current)===null||Z===void 0?void 0:Z.side)&&jde(G,(F=z.current)===null||F===void 0?void 0:F.area)},[]);return f.createElement(Xce,{scope:n,searchRef:A,onItemEnter:f.useCallback(G=>{W(G)&&G.preventDefault()},[W]),onItemLeave:f.useCallback(G=>{var Z;W(G)||((Z=L.current)===null||Z===void 0||Z.focus(),M(null))},[W]),onTriggerLeave:f.useCallback(G=>{W(G)&&G.preventDefault()},[W]),pointerGraceTimerRef:B,onPointerGraceIntentChange:f.useCallback(G=>{z.current=G},[])},f.createElement(_,U,f.createElement(Hx,{asChild:!0,trapped:s,onMountAutoFocus:vt(o,G=>{var Z;G.preventDefault(),(Z=L.current)===null||Z===void 0||Z.focus()}),onUnmountAutoFocus:i},f.createElement(hg,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:x,onDismiss:C},f.createElement(U3,Re({asChild:!0},E,{dir:j.dir,orientation:"vertical",loop:r,currentTabStopId:T,onCurrentTabStopIdChange:M,onEntryFocus:vt(u,G=>{j.isUsingKeyboardRef.current||G.preventDefault()})}),f.createElement(Qx,Re({role:"menu","aria-orientation":"vertical","data-state":jO(k.open),"data-radix-menu-content":"",dir:j.dir},S,g,{ref:D,style:{outline:"none",...g.style},onKeyDown:vt(g.onKeyDown,G=>{const Z=G.target.closest("[data-radix-menu-content]")===G.currentTarget,F=G.ctrlKey||G.altKey||G.metaKey,V=G.key.length===1;Z&&(G.key==="Tab"&&G.preventDefault(),!F&&V&&K(G.key));const q=L.current;if(G.target!==q||!Vce.includes(G.key))return;G.preventDefault();const ne=N().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);dO.includes(G.key)&&ne.reverse(),xde(ne)}),onBlur:vt(e.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(P.current),A.current="")}),onPointerMove:vt(e.onPointerMove,wg(G=>{const Z=G.target,F=$.current!==G.clientX;if(G.currentTarget.contains(Z)&&F){const V=G.clientX>$.current?"right":"left";R.current=V,$.current=G.clientX}}))})))))))}),gO=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.createElement(yn.div,Re({role:"group"},r,{ref:t}))}),rde=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.createElement(yn.div,Re({},r,{ref:t}))}),J3="MenuItem",vO="menu.itemSelect",X3=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...s}=e,o=f.useRef(null),i=bg(J3,e.__scopeMenu),c=Z3(J3,e.__scopeMenu),u=Bn(t,o),h=f.useRef(!1),p=()=>{const m=o.current;if(!n&&m){const x=new CustomEvent(vO,{bubbles:!0,cancelable:!0});m.addEventListener(vO,C=>r==null?void 0:r(C),{once:!0}),JI(m,x),x.defaultPrevented?h.current=!1:i.onClose()}};return f.createElement(yO,Re({},s,{ref:u,disabled:n,onClick:vt(e.onClick,p),onPointerDown:m=>{var x;(x=e.onPointerDown)===null||x===void 0||x.call(e,m),h.current=!0},onPointerUp:vt(e.onPointerUp,m=>{var x;h.current||(x=m.currentTarget)===null||x===void 0||x.click()}),onKeyDown:vt(e.onKeyDown,m=>{const x=c.searchRef.current!=="";n||x&&m.key===" "||G3.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})}))}),yO=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:s,...o}=e,i=Z3(J3,n),c=uO(n),u=f.useRef(null),h=Bn(t,u),[p,m]=f.useState(!1),[x,C]=f.useState("");return f.useEffect(()=>{const b=u.current;if(b){var g;C(((g=b.textContent)!==null&&g!==void 0?g:"").trim())}},[o.children]),f.createElement(yg.ItemSlot,{scope:n,disabled:r,textValue:s!=null?s:x},f.createElement(q3,Re({asChild:!0},c,{focusable:!r}),f.createElement(yn.div,Re({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:h,onPointerMove:vt(e.onPointerMove,wg(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus())})),onPointerLeave:vt(e.onPointerLeave,wg(b=>i.onItemLeave(b))),onFocus:vt(e.onFocus,()=>m(!0)),onBlur:vt(e.onBlur,()=>m(!1))}))))}),ade=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...s}=e;return f.createElement(bO,{scope:e.__scopeMenu,checked:n},f.createElement(X3,Re({role:"menuitemcheckbox","aria-checked":bb(n)?"mixed":n},s,{ref:t,"data-state":e4(n),onSelect:vt(s.onSelect,()=>r==null?void 0:r(bb(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),sde="MenuRadioGroup",[ode,ide]=Fu(sde,{value:void 0,onValueChange:()=>{}}),lde=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...s}=e,o=$s(r);return f.createElement(ode,{scope:e.__scopeMenu,value:n,onValueChange:o},f.createElement(gO,Re({},s,{ref:t})))}),cde="MenuRadioItem",dde=f.forwardRef((e,t)=>{const{value:n,...r}=e,s=ide(cde,e.__scopeMenu),o=n===s.value;return f.createElement(bO,{scope:e.__scopeMenu,checked:o},f.createElement(X3,Re({role:"menuitemradio","aria-checked":o},r,{ref:t,"data-state":e4(o),onSelect:vt(r.onSelect,()=>{var i;return(i=s.onValueChange)===null||i===void 0?void 0:i.call(s,n)},{checkForDefaultPrevented:!1})})))}),xO="MenuItemIndicator",[bO,ude]=Fu(xO,{checked:!1}),hde=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...s}=e,o=ude(xO,n);return f.createElement(mo,{present:r||bb(o.checked)||o.checked===!0},f.createElement(yn.span,Re({},s,{ref:t,"data-state":e4(o.checked)})))}),pde=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return f.createElement(yn.div,Re({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),wO="MenuSub",[mde,kO]=Fu(wO),fde=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:s}=e,o=cd(wO,t),i=yb(t),[c,u]=f.useState(null),[h,p]=f.useState(null),m=$s(s);return f.useEffect(()=>(o.open===!1&&m(!1),()=>m(!1)),[o.open,m]),f.createElement(fg,i,f.createElement(hO,{scope:t,open:r,onOpenChange:m,content:h,onContentChange:p},f.createElement(mde,{scope:t,contentId:ga(),triggerId:ga(),trigger:c,onTriggerChange:u},n)))},xb="MenuSubTrigger",gde=f.forwardRef((e,t)=>{const n=cd(xb,e.__scopeMenu),r=bg(xb,e.__scopeMenu),s=kO(xb,e.__scopeMenu),o=Z3(xb,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=o,h={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),u(null)}},[c,u]),f.createElement(pO,Re({asChild:!0},h),f.createElement(yO,Re({id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":jO(n.open)},e,{ref:Py(t,s.onTriggerChange),onClick:m=>{var x;(x=e.onClick)===null||x===void 0||x.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:vt(e.onPointerMove,wg(m=>{o.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:vt(e.onPointerLeave,wg(m=>{var x;p();const C=(x=n.content)===null||x===void 0?void 0:x.getBoundingClientRect();if(C){var b;const g=(b=n.content)===null||b===void 0?void 0:b.dataset.side,k=g==="right",j=k?-5:5,S=C[k?"left":"right"],E=C[k?"right":"left"];o.onPointerGraceIntentChange({area:[{x:m.clientX+j,y:m.clientY},{x:S,y:C.top},{x:E,y:C.top},{x:E,y:C.bottom},{x:S,y:C.bottom}],side:g}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(m),m.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:vt(e.onKeyDown,m=>{const x=o.searchRef.current!=="";if(!(e.disabled||x&&m.key===" ")&&Uce[r.dir].includes(m.key)){var C;n.onOpenChange(!0),(C=n.content)===null||C===void 0||C.focus(),m.preventDefault()}})})))}),vde="MenuSubContent",yde=f.forwardRef((e,t)=>{const n=fO(wi,e.__scopeMenu),{forceMount:r=n.forceMount,...s}=e,o=cd(wi,e.__scopeMenu),i=bg(wi,e.__scopeMenu),c=kO(vde,e.__scopeMenu),u=f.useRef(null),h=Bn(t,u);return f.createElement(yg.Provider,{scope:e.__scopeMenu},f.createElement(mo,{present:r||o.open},f.createElement(yg.Slot,{scope:e.__scopeMenu},f.createElement(Q3,Re({id:c.contentId,"aria-labelledby":c.triggerId},s,{ref:h,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;i.isUsingKeyboardRef.current&&((m=u.current)===null||m===void 0||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:vt(e.onFocusOutside,p=>{p.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:vt(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:vt(e.onKeyDown,p=>{const m=p.currentTarget.contains(p.target),x=qce[i.dir].includes(p.key);if(m&&x){var C;o.onOpenChange(!1),(C=c.trigger)===null||C===void 0||C.focus(),p.preventDefault()}})})))))});function jO(e){return e?"open":"closed"}function bb(e){return e==="indeterminate"}function e4(e){return bb(e)?"indeterminate":e?"checked":"unchecked"}function xde(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function bde(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wde(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let o=bde(e,Math.max(s,0));r.length===1&&(o=o.filter(c=>c!==n));const i=o.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}function kde(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const c=t[o].x,u=t[o].y,h=t[i].x,p=t[i].y;u>r!=p>r&&n<(h-c)*(r-u)/(p-u)+c&&(s=!s)}return s}function jde(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return kde(n,t)}function wg(e){return t=>t.pointerType==="mouse"?e(t):void 0}const t4=Zce,n4=pO,r4=Jce,a4=ede,Cde=gO,s4=rde,o4=X3,i4=ade,CO=lde,l4=dde,c4=hde,d4=pde,u4=fde,h4=gde,p4=yde,SO="DropdownMenu",[Sde,iEe]=ms(SO,[xg]),fs=xg(),[Ede,EO]=Sde(SO),Nde=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:s,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,u=fs(t),h=f.useRef(null),[p=!1,m]=Ka({prop:s,defaultProp:o,onChange:i});return f.createElement(Ede,{scope:t,triggerId:ga(),triggerRef:h,contentId:ga(),open:p,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(x=>!x),[m]),modal:c},f.createElement(t4,Re({},u,{open:p,onOpenChange:m,dir:r,modal:c}),n))},_de="DropdownMenuTrigger",Ide=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...s}=e,o=EO(_de,n),i=fs(n);return f.createElement(n4,Re({asChild:!0},i),f.createElement(yn.button,Re({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},s,{ref:Py(t,o.triggerRef),onPointerDown:vt(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(o.onOpenToggle(),o.open||c.preventDefault())}),onKeyDown:vt(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&o.onOpenToggle(),c.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),Tde=e=>{const{__scopeDropdownMenu:t,...n}=e,r=fs(t);return f.createElement(r4,Re({},r,n))},Mde="DropdownMenuContent",Lde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=EO(Mde,n),o=fs(n),i=f.useRef(!1);return f.createElement(a4,Re({id:s.contentId,"aria-labelledby":s.triggerId},o,r,{ref:t,onCloseAutoFocus:vt(e.onCloseAutoFocus,c=>{var u;i.current||(u=s.triggerRef.current)===null||u===void 0||u.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:vt(e.onInteractOutside,c=>{const u=c.detail.originalEvent,h=u.button===0&&u.ctrlKey===!0,p=u.button===2||h;(!s.modal||p)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Dde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(Cde,Re({},s,r,{ref:t}))}),Ode=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(s4,Re({},s,r,{ref:t}))}),Pde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(o4,Re({},s,r,{ref:t}))}),Rde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(i4,Re({},s,r,{ref:t}))}),Ade=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(CO,Re({},s,r,{ref:t}))}),zde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(l4,Re({},s,r,{ref:t}))}),Fde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(c4,Re({},s,r,{ref:t}))}),Hde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(d4,Re({},s,r,{ref:t}))}),$de=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:s,defaultOpen:o}=e,i=fs(t),[c=!1,u]=Ka({prop:r,defaultProp:o,onChange:s});return f.createElement(u4,Re({},i,{open:c,onOpenChange:u}),n)},Bde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(h4,Re({},s,r,{ref:t}))}),Wde=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,s=fs(n);return f.createElement(p4,Re({},s,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),NO=Nde,_O=Ide,IO=Tde,m4=Lde,Vde=Dde,TO=Ode,MO=Pde,LO=Rde,Ude=Ade,DO=zde,OO=Fde,PO=Hde,qde=$de,RO=Bde,AO=Wde,Nn=NO,_n=_O,zO=Vde,Ta=qde,Yde=Ude,va=f.forwardRef(({className:e,inset:t,children:n,noRightIcon:r,...s},o)=>a.jsxs(RO,{ref:o,className:xt("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...s,children:[n,!r&&a.jsx(Lp,{className:"ml-auto h-4 w-4"})]}));va.displayName=RO.displayName;const ya=f.forwardRef(({className:e,...t},n)=>a.jsx(AO,{ref:n,className:xt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",t.shadow?t.shadow:"shadow-md",e),...t}));ya.displayName=AO.displayName;const Cn=f.forwardRef(({className:e,align:t="start",sideOffset:n=6,...r},s)=>a.jsx(IO,{children:a.jsx(m4,{ref:s,sideOffset:n,align:t,className:xt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-1",r.shadow?r.shadow:"shadow-md",e),children:r.children})}));Cn.displayName=m4.displayName;const Oe=f.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(MO,{ref:r,className:xt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));Oe.displayName=MO.displayName;const Kt=f.forwardRef(({className:e,children:t,checked:n,...r},s)=>a.jsxs(LO,{ref:s,className:xt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(OO,{children:a.jsx(Dt,{className:"h-4 w-4"})})}),t]}));Kt.displayName=LO.displayName;const FO=f.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(DO,{ref:r,className:xt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(OO,{children:a.jsx(HC,{className:"h-2 w-2 fill-current"})})}),t]}));FO.displayName=DO.displayName;const Kde=f.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(TO,{ref:r,className:xt("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Kde.displayName=TO.displayName;const Yt=f.forwardRef(({className:e,...t},n)=>a.jsx(PO,{ref:n,className:xt("-mx-1 my-1 h-px bg-muted dark:bg-gray-800",e),...t}));Yt.displayName=PO.displayName;const Ji=({className:e,...t})=>a.jsx("span",{className:xt("ml-auto text-xs tracking-widest opacity-60",e),...t});Ji.displayName="DropdownMenuShortcut";const HO="ContextMenu",[Gde,lEe]=ms(HO,[xg]),fo=xg(),[Zde,$O]=Gde(HO),Qde=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:s,modal:o=!0}=e,[i,c]=f.useState(!1),u=fo(t),h=$s(r),p=f.useCallback(m=>{c(m),h(m)},[h]);return f.createElement(Zde,{scope:t,open:i,onOpenChange:p,modal:o},f.createElement(t4,Re({},u,{dir:s,open:i,onOpenChange:p,modal:o}),n))},Jde="ContextMenuTrigger",Xde=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...s}=e,o=$O(Jde,n),i=fo(n),c=f.useRef({x:0,y:0}),u=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),h=f.useRef(0),p=f.useCallback(()=>window.clearTimeout(h.current),[]),m=x=>{c.current={x:x.clientX,y:x.clientY},o.onOpenChange(!0)};return f.useEffect(()=>p,[p]),f.useEffect(()=>void(r&&p()),[r,p]),f.createElement(f.Fragment,null,f.createElement(n4,Re({},i,{virtualRef:u})),f.createElement(yn.span,Re({"data-state":o.open?"open":"closed","data-disabled":r?"":void 0},s,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:vt(e.onContextMenu,x=>{p(),m(x),x.preventDefault()}),onPointerDown:r?e.onPointerDown:vt(e.onPointerDown,wb(x=>{p(),h.current=window.setTimeout(()=>m(x),700)})),onPointerMove:r?e.onPointerMove:vt(e.onPointerMove,wb(p)),onPointerCancel:r?e.onPointerCancel:vt(e.onPointerCancel,wb(p)),onPointerUp:r?e.onPointerUp:vt(e.onPointerUp,wb(p))})))}),eue=e=>{const{__scopeContextMenu:t,...n}=e,r=fo(t);return f.createElement(r4,Re({},r,n))},tue="ContextMenuContent",nue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=$O(tue,n),o=fo(n),i=f.useRef(!1);return f.createElement(a4,Re({},o,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:c=>{var u;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),!c.defaultPrevented&&i.current&&c.preventDefault(),i.current=!1},onInteractOutside:c=>{var u;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),!c.defaultPrevented&&!s.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),rue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(s4,Re({},s,r,{ref:t}))}),aue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(o4,Re({},s,r,{ref:t}))}),sue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(i4,Re({},s,r,{ref:t}))}),oue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(l4,Re({},s,r,{ref:t}))}),iue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(c4,Re({},s,r,{ref:t}))}),lue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(d4,Re({},s,r,{ref:t}))}),cue=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:s,defaultOpen:o}=e,i=fo(t),[c,u]=Ka({prop:s,defaultProp:o,onChange:r});return f.createElement(u4,Re({},i,{open:c,onOpenChange:u}),n)},due=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(h4,Re({},s,r,{ref:t}))}),uue=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=fo(n);return f.createElement(p4,Re({},s,r,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});function wb(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const hue=Qde,pue=Xde,BO=eue,WO=nue,VO=rue,UO=aue,qO=sue,YO=oue,KO=iue,GO=lue,mue=cue,ZO=due,QO=uue,nm=hue,rm=pue,kg=BO,Ga=mue,Ma=f.forwardRef(({className:e,inset:t,children:n,...r},s)=>a.jsxs(ZO,{ref:s,className:xt("flex cursor-default select-none items-center rounded px-1.5 py-1 text-[13px] outline-none data-[state=open]:bg-accent data-[state=open]:text-black focus:bg-slate-200 text-black dark:text-slate-300 dark:focus:bg-slate-800 dark:focus:text-slate-200",t&&"pl-8",e),...r,children:[n,a.jsx(Lp,{className:"ml-auto h-4 w-4"})]}));Ma.displayName=ZO.displayName;const La=f.forwardRef(({className:e,...t},n)=>a.jsx(QO,{ref:n,className:xt("z-50 min-w-[8rem] overflow-hidden rounded border bg-gray-100 p-1 dark:bg-gray-900 text-popover-foreground shadow-md animate-in slide-in-from-left-1",e),...t}));La.displayName=QO.displayName;const am=f.forwardRef(({className:e,...t},n)=>a.jsx(BO,{children:a.jsx(WO,{ref:n,className:xt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-gray-100 p-1 dark:bg-gray-900 text-popover-foreground shadow-md animate-in fade-in",e),...t})}));am.displayName=WO.displayName;const Tt=f.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(UO,{ref:r,className:xt("relative flex cursor-default select-none items-center rounded px-1.5 py-1 text-[13px] outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-slate-200 text-black dark:text-slate-300 dark:focus:bg-slate-800 dark:focus:text-slate-200",t&&"pl-8",e),...n}));Tt.displayName=UO.displayName;const ki=f.forwardRef(({className:e,children:t,checked:n,...r},s)=>a.jsxs(qO,{ref:s,className:xt("relative flex cursor-default select-none items-center rounded py-1 pl-8 pr-1.5 text-[13px] outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-slate-200 text-black dark:text-slate-300 dark:focus:bg-slate-800 dark:focus:text-slate-200",e),checked:n,...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(KO,{children:a.jsx(Dt,{className:"h-3 w-3"})})}),t]}));ki.displayName=qO.displayName;const fue=f.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(YO,{ref:r,className:xt("relative flex cursor-default select-none items-center rounded py-1 pl-8 pr-1.5 text-[13px] outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-slate-200 text-black dark:text-slate-300 dark:focus:bg-slate-800 dark:focus:text-slate-200",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(KO,{children:a.jsx(HC,{className:"h-2 w-2 fill-current"})})}),t]}));fue.displayName=YO.displayName;const gue=f.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(VO,{ref:r,className:xt("px-1.5 py-1 text-[13px] font-semibold text-foreground",t&&"pl-8",e),...n}));gue.displayName=VO.displayName;const Zn=f.forwardRef(({className:e,...t},n)=>a.jsx(GO,{ref:n,className:xt("-mx-1 my-1 h-px bg-border",e),...t}));Zn.displayName=GO.displayName;const f4="Menubar",[g4,vue,yue]=ug(f4),[JO,cEe]=ms(f4,[yue,Xp]),Bs=xg(),XO=Xp(),[xue,v4]=JO(f4),bue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:s,defaultValue:o,loop:i=!0,dir:c,...u}=e,h=Bp(c),p=XO(n),[m="",x]=Ka({prop:r,onChange:s,defaultProp:o}),[C,b]=f.useState(null);return f.createElement(xue,{scope:n,value:m,onMenuOpen:f.useCallback(g=>{x(g),b(g)},[x]),onMenuClose:f.useCallback(()=>x(""),[x]),onMenuToggle:f.useCallback(g=>{x(k=>k?"":g),b(g)},[x]),dir:h,loop:i},f.createElement(g4.Provider,{scope:n},f.createElement(g4.Slot,{scope:n},f.createElement(U3,Re({asChild:!0},p,{orientation:"horizontal",loop:i,dir:h,currentTabStopId:C,onCurrentTabStopIdChange:b}),f.createElement(yn.div,Re({role:"menubar"},u,{ref:t}))))))}),eP="MenubarMenu",[wue,tP]=JO(eP),kue=e=>{const{__scopeMenubar:t,value:n,...r}=e,s=ga(),o=n||s||"LEGACY_REACT_AUTO_VALUE",i=v4(eP,t),c=Bs(t),u=f.useRef(null),h=f.useRef(!1),p=i.value===o;return f.useEffect(()=>{p||(h.current=!1)},[p]),f.createElement(wue,{scope:t,value:o,triggerId:ga(),triggerRef:u,contentId:ga(),wasKeyboardTriggerOpenRef:h},f.createElement(t4,Re({},c,{open:p,onOpenChange:m=>{m||i.onMenuClose()},modal:!1,dir:i.dir},r)))},nP="MenubarTrigger",jue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...s}=e,o=XO(n),i=Bs(n),c=v4(nP,n),u=tP(nP,n),h=f.useRef(null),p=Bn(t,h,u.triggerRef),[m,x]=f.useState(!1),C=c.value===u.value;return f.createElement(g4.ItemSlot,{scope:n,value:u.value,disabled:r},f.createElement(q3,Re({asChild:!0},o,{focusable:!r,tabStopId:u.value}),f.createElement(n4,Re({asChild:!0},i),f.createElement(yn.button,Re({type:"button",role:"menuitem",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":C,"aria-controls":C?u.contentId:void 0,"data-highlighted":m?"":void 0,"data-state":C?"open":"closed","data-disabled":r?"":void 0,disabled:r},s,{ref:p,onPointerDown:vt(e.onPointerDown,b=>{!r&&b.button===0&&b.ctrlKey===!1&&(c.onMenuOpen(u.value),C||b.preventDefault())}),onPointerEnter:vt(e.onPointerEnter,()=>{if(c.value&&!C){var b;c.onMenuOpen(u.value),(b=h.current)===null||b===void 0||b.focus()}}),onKeyDown:vt(e.onKeyDown,b=>{r||(["Enter"," "].includes(b.key)&&c.onMenuToggle(u.value),b.key==="ArrowDown"&&c.onMenuOpen(u.value),["Enter"," ","ArrowDown"].includes(b.key)&&(u.wasKeyboardTriggerOpenRef.current=!0,b.preventDefault()))}),onFocus:vt(e.onFocus,()=>x(!0)),onBlur:vt(e.onBlur,()=>x(!1))})))))}),Cue=e=>{const{__scopeMenubar:t,...n}=e,r=Bs(t);return f.createElement(r4,Re({},r,n))},rP="MenubarContent",Sue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...s}=e,o=Bs(n),i=v4(rP,n),c=tP(rP,n),u=vue(n),h=f.useRef(!1);return f.createElement(a4,Re({id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":""},o,s,{ref:t,align:r,onCloseAutoFocus:vt(e.onCloseAutoFocus,p=>{if(!i.value&&!h.current){var m;(m=c.triggerRef.current)===null||m===void 0||m.focus()}h.current=!1,p.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,p=>{const m=p.target;u().some(x=>{var C;return(C=x.ref.current)===null||C===void 0?void 0:C.contains(m)})&&p.preventDefault()}),onInteractOutside:vt(e.onInteractOutside,()=>{h.current=!0}),onEntryFocus:p=>{c.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:vt(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const m=p.target,x=m.hasAttribute("data-radix-menubar-subtrigger"),C=m.closest("[data-radix-menubar-content]")!==p.currentTarget,b=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!b&&x||C&&b)return;let g=u().filter(S=>!S.disabled).map(S=>S.value);b&&g.reverse();const k=g.indexOf(c.value);g=i.loop?Rue(g,k+1):g.slice(k+1);const[j]=g;j&&i.onMenuOpen(j)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Eue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(s4,Re({},s,r,{ref:t}))}),Nue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(o4,Re({},s,r,{ref:t}))}),_ue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(i4,Re({},s,r,{ref:t}))}),Iue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(CO,Re({},s,r,{ref:t}))}),Tue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(l4,Re({},s,r,{ref:t}))}),Mue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(c4,Re({},s,r,{ref:t}))}),Lue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(d4,Re({},s,r,{ref:t}))}),Due=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:s,defaultOpen:o}=e,i=Bs(t),[c=!1,u]=Ka({prop:r,defaultProp:o,onChange:s});return f.createElement(u4,Re({},i,{open:c,onOpenChange:u}),n)},Oue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(h4,Re({"data-radix-menubar-subtrigger":""},s,r,{ref:t}))}),Pue=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,s=Bs(n);return f.createElement(p4,Re({},s,{"data-radix-menubar-content":""},r,{ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}}))});function Rue(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const aP=bue,Aue=kue,sP=jue,zue=Cue,oP=Sue,iP=Eue,lP=Nue,cP=_ue,Fue=Iue,dP=Tue,uP=Mue,hP=Lue,Hue=Due,pP=Oue,mP=Pue,kb=Aue,sm=Hue,$ue=Fue,fP=f.forwardRef(({className:e,...t},n)=>a.jsx(aP,{ref:n,className:xt("flex h-10 items-center space-x-0 rounded-md border bg-background p-1",e),...t}));fP.displayName=aP.displayName;const jb=f.forwardRef(({className:e,...t},n)=>a.jsx(sP,{ref:n,className:xt("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",e),...t}));jb.displayName=sP.displayName;const Hu=f.forwardRef(({className:e,inset:t,children:n,...r},s)=>a.jsxs(pP,{ref:s,className:xt("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r,children:[n,a.jsx(Lp,{className:"ml-auto h-4 w-4"})]}));Hu.displayName=pP.displayName;const $u=f.forwardRef(({className:e,...t},n)=>a.jsx(mP,{ref:n,className:xt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...t}));$u.displayName=mP.displayName;const Cb=f.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...s},o)=>a.jsx(zue,{children:a.jsx(oP,{ref:o,align:t,alignOffset:n,sideOffset:r,className:xt(" z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in slide-in-from-top-1 dark:text-slate-300",e),...s})}));Cb.displayName=oP.displayName;const Tr=f.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(lP,{ref:r,className:xt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));Tr.displayName=lP.displayName;const Za=f.forwardRef(({className:e,children:t,checked:n,...r},s)=>a.jsxs(cP,{ref:s,className:xt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(uP,{children:a.jsx(Dt,{className:"h-4 w-4"})})}),t]}));Za.displayName=cP.displayName;const gP=f.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(dP,{ref:r,className:xt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(uP,{children:a.jsx(HC,{className:"h-2 w-2 fill-current"})})}),t]}));gP.displayName=dP.displayName;const Bue=f.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(iP,{ref:r,className:xt("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Bue.displayName=iP.displayName;const Ws=f.forwardRef(({className:e,...t},n)=>a.jsx(hP,{ref:n,className:xt("-mx-1 my-1 h-px bg-muted",e),...t}));Ws.displayName=hP.displayName;const gs=({className:e,...t})=>a.jsx("span",{className:xt("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});gs.displayname="MenubarShortcut";const vP=Ou("flex flex-row items-center",{variants:{color:{default:"text-slate-600 dark:text-slate-300",black:"text-slate-700 dark:text-slate-300",muted:"text-slate-100 dark:text-slate-500",waning:"text-yellow-600 dark:text-yellow-300",danger:"text-red-600 dark:text-red-300"},justify:{left:"text-left",center:"text-center",justify:"text-justify",right:"text-right"},size:{default:"text-md",xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},weight:{default:"font-normal",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{color:"default",size:"default",weight:"default"}}),X=f.forwardRef(({className:e,children:t,color:n,size:r,title:s,weight:o,justify:i,onDoubleClick:c=()=>{},onClick:u=()=>{}},h)=>a.jsx("p",{ref:h,title:s,onDoubleClick:c,onClick:u,className:dn(vP({color:n,weight:o,size:r,justify:i,className:e})),children:t})),jg=({className:e,children:t,size:n,weight:r,justify:s,onDoubleClick:o=()=>{},onClick:i=()=>{}})=>a.jsx("p",{onDoubleClick:o,onClick:i,className:dn("block"+vP({weight:r,size:n,justify:s,className:e})),children:t}),y4=({checked:e,label:t})=>a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"flex flex-row items-center pr-2 z-100",children:e?a.jsx(Dt,{className:"form-checkbox h-[16px] w-[16px] text-white bg-blue-500 rounded-sm border-slate-200 border"}):a.jsx("div",{className:"form-checkbox h-[16px] w-[16px] bg-slate-100 rounded-sm border-slate-200 border"})}),a.jsx(X,{className:"".concat(e&&"font-semibold"),children:a.jsx("label",{children:t})})]}),mn=({h:e=3,w:t="full",className:n=""})=>{const r={1:"h-1",2:"h-2",3:"h-3",4:"h-4",5:"h-5",6:"h-6",7:"h-7",8:"h-8",9:"h-9",10:"h-10",11:"h-11",12:"h-12"},s={full:"w-full",1:"w-1",2:"w-2",3:"w-3",4:"w-4",5:"w-5",7:"w-7",8:"w-8",9:"w-9",10:"w-10",11:"w-11",12:"w-12"},o=typeof e=="number"?r[e]:"",i=typeof t=="number"||t==="full"?s[t]:"";return a.jsx("div",{className:"".concat(o," ").concat(i," ").concat(n)})};function He(e){var n;const t=f.useRef();return(n=t.current)!=null?n:t.current=It(e)}function yP({onConfirm:e,onCancel:t,onOpen:n=()=>{},buttonClassName:r}){const{t:s}=wt(),o=He(!1);return f.useEffect(()=>{n(o.value)},[o.value]),a.jsxs(Qa,{defaultOpen:!1,open:o.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(ye,{variant:"ghost",size:"mini",title:o.value?"":s("UnPin All",{ns:"common"}),onClick:()=>{o.value=!0},className:r,children:a.jsxs(fe,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:[a.jsx(zl,{size:15,className:"group-hover:hidden"}),a.jsx(Iu,{size:15,className:"hidden group-hover:block opacity-0 group-hover:opacity-100"})]})})}),a.jsx(Da,{sideOffset:12,align:"center",className:"px-2 py-1 pb-2 bg-gray-100 border-gray-200 dark:bg-gray-800 dark:border-gray-900 w-fit mr-2",onEscapeKeyDown:()=>{o.value=!1},onPointerDownOutside:()=>{o.value=!1},children:o.value&&a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block",children:s("Are you sure?",{ns:"common"})}),a.jsx(mn,{h:1}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"mini",autoFocus:!1,className:"text-gray-500 hover:text-gray-600 mr-2 border-gray-100 hover:border-gray-200 dark:text-gray-400 dark:border-gray-800 hover:dark:bg-gray-700 px-1.5 py-0.5 text-sm",onClick:()=>{o.value=!1,t()},children:s("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"mini",autoFocus:!1,className:"bg-orange-100 hover:bg-opacity-80 hover:bg-orange-200 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-500 dark:hover:!text-orange-300 dark:hover:border-orange-500/70 border-orange-200 dark:bg-orange-900/40 dark:border-orange-900 px-1.5 py-0.5 text-sm",onClick:()=>{o.value=!1,e()},children:s("UnPin All",{ns:"common"})})]})]})})]})}const x4="horizontal",Wue=["horizontal","vertical"],xP=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=x4,...s}=e,o=bP(r)?r:x4,i=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return f.createElement(yn.div,Re({"data-orientation":o},i,s,{ref:t}))});xP.propTypes={orientation(e,t,n){const r=e[t],s=String(r);return r&&!bP(r)?new Error(Vue(s,n)):null}};function Vue(e,t){return"Invalid prop `orientation` of value `".concat(e,"` supplied to `").concat(t,"`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `").concat(x4,"`.")}function bP(e){return Wue.includes(e)}const wP=xP,b4=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},s)=>a.jsx(wP,{ref:s,decorative:n,orientation:t,className:xt("bg-".concat(r.color?r.color+"-200":"white"," dark:bg-").concat(r.color?r.color:"gray","-800 opacity-80 dark:opacity-40 my-1.5"),t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));b4.displayName=wP.displayName;const kP="Collapsible",[Uue,jP]=ms(kP),[que,w4]=Uue(kP),Yue=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:o,onOpenChange:i,...c}=e,[u=!1,h]=Ka({prop:r,defaultProp:s,onChange:i});return f.createElement(que,{scope:n,disabled:o,contentId:ga(),open:u,onOpenToggle:f.useCallback(()=>h(p=>!p),[h])},f.createElement(yn.div,Re({"data-state":k4(u),"data-disabled":o?"":void 0},c,{ref:t})))}),Kue="CollapsibleTrigger",Gue=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=w4(Kue,n);return f.createElement(yn.button,Re({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":k4(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},r,{ref:t,onClick:vt(e.onClick,s.onOpenToggle)}))}),CP="CollapsibleContent",Zue=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=w4(CP,e.__scopeCollapsible);return f.createElement(mo,{present:n||s.open},({present:o})=>f.createElement(Que,Re({},r,{ref:t,present:o})))}),Que=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...o}=e,i=w4(CP,n),[c,u]=f.useState(r),h=f.useRef(null),p=Bn(t,h),m=f.useRef(0),x=m.current,C=f.useRef(0),b=C.current,g=i.open||c,k=f.useRef(g),j=f.useRef();return f.useEffect(()=>{const S=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(S)},[]),Bo(()=>{const S=h.current;if(S){j.current=j.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const E=S.getBoundingClientRect();m.current=E.height,C.current=E.width,k.current||(S.style.transitionDuration=j.current.transitionDuration,S.style.animationName=j.current.animationName),u(r)}},[i.open,r]),f.createElement(yn.div,Re({"data-state":k4(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g},o,{ref:p,style:{"--radix-collapsible-content-height":x?"".concat(x,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style}}),g&&s)});function k4(e){return e?"open":"closed"}const Jue=Yue,Xue=Gue,ehe=Zue,dd="Accordion",the=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[j4,nhe,rhe]=ug(dd),[Sb,dEe]=ms(dd,[rhe,jP]),C4=jP(),SP=dt.forwardRef((e,t)=>{const{type:n,...r}=e,s=r,o=r;return dt.createElement(j4.Provider,{scope:e.__scopeAccordion},n==="multiple"?dt.createElement(ihe,Re({},o,{ref:t})):dt.createElement(ohe,Re({},s,{ref:t})))});SP.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[EP,ahe]=Sb(dd),[NP,she]=Sb(dd,{collapsible:!1}),ohe=dt.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:o=!1,...i}=e,[c,u]=Ka({prop:n,defaultProp:r,onChange:s});return dt.createElement(EP,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:dt.useCallback(()=>o&&u(""),[o,u])},dt.createElement(NP,{scope:e.__scopeAccordion,collapsible:o},dt.createElement(_P,Re({},i,{ref:t}))))}),ihe=dt.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...o}=e,[i=[],c]=Ka({prop:n,defaultProp:r,onChange:s}),u=dt.useCallback(p=>c((m=[])=>[...m,p]),[c]),h=dt.useCallback(p=>c((m=[])=>m.filter(x=>x!==p)),[c]);return dt.createElement(EP,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:h},dt.createElement(NP,{scope:e.__scopeAccordion,collapsible:!0},dt.createElement(_P,Re({},o,{ref:t}))))}),[lhe,Eb]=Sb(dd),_P=dt.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:o="vertical",...i}=e,c=dt.useRef(null),u=Bn(c,t),h=nhe(n),p=Bp(s)==="ltr",m=vt(e.onKeyDown,x=>{var C;if(!the.includes(x.key))return;const b=x.target,g=h().filter(D=>{var P;return!((P=D.ref.current)!==null&&P!==void 0&&P.disabled)}),k=g.findIndex(D=>D.ref.current===b),j=g.length;if(k===-1)return;x.preventDefault();let S=k;const E=0,N=j-1,T=()=>{S=k+1,S>N&&(S=E)},M=()=>{S=k-1,S<E&&(S=N)};switch(x.key){case"Home":S=E;break;case"End":S=N;break;case"ArrowRight":o==="horizontal"&&(p?T():M());break;case"ArrowDown":o==="vertical"&&T();break;case"ArrowLeft":o==="horizontal"&&(p?M():T());break;case"ArrowUp":o==="vertical"&&M();break}const L=S%j;(C=g[L].ref.current)===null||C===void 0||C.focus()});return dt.createElement(lhe,{scope:n,disabled:r,direction:s,orientation:o},dt.createElement(j4.Slot,{scope:n},dt.createElement(yn.div,Re({},i,{"data-orientation":o,ref:u,onKeyDown:r?void 0:m}))))}),S4="AccordionItem",[che,E4]=Sb(S4),dhe=dt.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...s}=e,o=Eb(S4,n),i=ahe(S4,n),c=C4(n),u=ga(),h=r&&i.value.includes(r)||!1,p=o.disabled||e.disabled;return dt.createElement(che,{scope:n,open:h,disabled:p,triggerId:u},dt.createElement(Jue,Re({"data-orientation":o.orientation,"data-state":TP(h)},c,s,{ref:t,disabled:p,open:h,onOpenChange:m=>{m?i.onItemOpen(r):i.onItemClose(r)}})))}),uhe="AccordionHeader",hhe=dt.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Eb(dd,n),o=E4(uhe,n);return dt.createElement(yn.h3,Re({"data-orientation":s.orientation,"data-state":TP(o.open),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),IP="AccordionTrigger",phe=dt.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Eb(dd,n),o=E4(IP,n),i=she(IP,n),c=C4(n);return dt.createElement(j4.ItemSlot,{scope:n},dt.createElement(Xue,Re({"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":s.orientation,id:o.triggerId},c,r,{ref:t})))}),mhe="AccordionContent",fhe=dt.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Eb(dd,n),o=E4(mhe,n),i=C4(n);return dt.createElement(ehe,Re({role:"region","aria-labelledby":o.triggerId,"data-orientation":s.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function TP(e){return e?"open":"closed"}const ghe=SP,vhe=dhe,MP=hhe,N4=phe,_4=fhe,LP=ghe,I4=f.forwardRef(({className:e,...t},n)=>a.jsx(vhe,{ref:n,className:xt(e),...t}));I4.displayName="AccordionItem";const yhe=f.forwardRef(({className:e,children:t,...n},r)=>a.jsx(MP,{className:"flex",children:a.jsxs(N4,{ref:r,className:xt("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,a.jsx(jn,{className:"h-4 w-4 transition-transform duration-200"})]})}));yhe.displayName=N4.displayName;const xhe=f.forwardRef(({className:e,children:t,...n},r)=>a.jsx(_4,{ref:r,className:xt("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...n,children:a.jsx("div",{className:"pb-4 pt-0",children:t})}));xhe.displayName=_4.displayName;const DP="Tabs",[bhe,uEe]=ms(DP,[Xp]),OP=Xp(),[whe,T4]=bhe(DP),khe=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:o,orientation:i="horizontal",dir:c,activationMode:u="automatic",...h}=e,p=Bp(c),[m,x]=Ka({prop:r,onChange:s,defaultProp:o});return f.createElement(whe,{scope:n,baseId:ga(),value:m,onValueChange:x,orientation:i,dir:p,activationMode:u},f.createElement(yn.div,Re({dir:p,"data-orientation":i},h,{ref:t})))}),jhe="TabsList",Che=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...s}=e,o=T4(jhe,n),i=OP(n);return f.createElement(U3,Re({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:r}),f.createElement(yn.div,Re({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),She="TabsTrigger",Ehe=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...o}=e,i=T4(She,n),c=OP(n),u=PP(i.baseId,r),h=RP(i.baseId,r),p=r===i.value;return f.createElement(q3,Re({asChild:!0},c,{focusable:!s,active:p}),f.createElement(yn.button,Re({type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u},o,{ref:t,onMouseDown:vt(e.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?i.onValueChange(r):m.preventDefault()}),onKeyDown:vt(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(r)}),onFocus:vt(e.onFocus,()=>{const m=i.activationMode!=="manual";!p&&!s&&m&&i.onValueChange(r)})})))}),Nhe="TabsContent",_he=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:s,children:o,...i}=e,c=T4(Nhe,n),u=PP(c.baseId,r),h=RP(c.baseId,r),p=r===c.value,m=f.useRef(p);return f.useEffect(()=>{const x=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(x)},[]),f.createElement(mo,{present:s||p},({present:x})=>f.createElement(yn.div,Re({"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!x,id:h,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0}}),x&&o))});function PP(e,t){return"".concat(e,"-trigger-").concat(t)}function RP(e,t){return"".concat(e,"-content-").concat(t)}const Ihe=khe,AP=Che,zP=Ehe,FP=_he,Xi=Ihe,Vo=f.forwardRef(({className:e,...t},n)=>a.jsx(AP,{ref:n,className:xt("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Vo.displayName=AP.displayName;const br=f.forwardRef(({className:e,...t},n)=>a.jsx(zP,{ref:n,className:xt("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background dark:data-[state=active]:bg-slate-700 data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:pointer-events-none disabled:opacity-50",e),...t}));br.displayName=zP.displayName;const The=f.forwardRef(({className:e,...t},n)=>a.jsx(FP,{ref:n,className:xt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset",e),...t}));The.displayName=FP.displayName;var HP=rb(),M4=function(){},Nb=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:M4,onWheelCapture:M4,onTouchMoveCapture:M4}),s=r[0],o=r[1],i=e.forwardProps,c=e.children,u=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,x=e.sideCar,C=e.noIsolation,b=e.inert,g=e.allowPinchZoom,k=e.as,j=k===void 0?"div":k,S=gg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=x,N=nb([n,t]),T=er(er({},S),s);return f.createElement(f.Fragment,null,p&&f.createElement(E,{sideCar:HP,removeScrollBar:h,shards:m,noIsolation:C,inert:b,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),i?f.cloneElement(f.Children.only(c),er(er({},T),{ref:N})):f.createElement(j,er({},T,{className:u,ref:N}),c))});Nb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nb.classNames={fullWidth:Au,zeroRight:Ru};var L4=!1;if(typeof window<"u")try{var _b=Object.defineProperty({},"passive",{get:function(){return L4=!0,!0}});window.addEventListener("test",_b,_b),window.removeEventListener("test",_b,_b)}catch{L4=!1}var om=L4?{passive:!1}:!1,Mhe=function(e){return e.tagName==="TEXTAREA"},$P=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Mhe(e)&&n[t]==="visible")},Lhe=function(e){return $P(e,"overflowY")},Dhe=function(e){return $P(e,"overflowX")},BP=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=WP(e,n);if(r){var s=VP(e,n),o=s[1],i=s[2];if(o>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ohe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Phe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},WP=function(e,t){return e==="v"?Lhe(t):Dhe(t)},VP=function(e,t){return e==="v"?Ohe(t):Phe(t)},Rhe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ahe=function(e,t,n,r,s){var o=Rhe(e,window.getComputedStyle(t).direction),i=o*r,c=n.target,u=t.contains(c),h=!1,p=i>0,m=0,x=0;do{var C=VP(e,c),b=C[0],g=C[1],k=C[2],j=g-k-o*b;(b||j)&&WP(e,c)&&(m+=j,x+=b),c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&(s&&m===0||!s&&i>m)||!p&&(s&&x===0||!s&&-i>x))&&(h=!0),h},Ib=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},UP=function(e){return[e.deltaX,e.deltaY]},qP=function(e){return e&&"current"in e?e.current:e},zhe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fhe=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Hhe=0,im=[];function $he(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),s=f.useState(Hhe++)[0],o=f.useState(function(){return vg()})[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=tb([e.lockRef.current],(e.shards||[]).map(qP),!0).filter(Boolean);return g.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,k){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var j=Ib(g),S=n.current,E="deltaX"in g?g.deltaX:S[0]-j[0],N="deltaY"in g?g.deltaY:S[1]-j[1],T,M=g.target,L=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in g&&L==="h"&&M.type==="range")return!1;var D=BP(L,M);if(!D)return!0;if(D?T=L:(T=L==="v"?"h":"v",D=BP(L,M)),!D)return!1;if(!r.current&&"changedTouches"in g&&(E||N)&&(r.current=T),!T)return!0;var P=r.current||T;return Ahe(P,k,g,P==="h"?E:N,!0)},[]),u=f.useCallback(function(g){var k=g;if(!(!im.length||im[im.length-1]!==o)){var j="deltaY"in k?UP(k):Ib(k),S=t.current.filter(function(T){return T.name===k.type&&T.target===k.target&&zhe(T.delta,j)})[0];if(S&&S.should){k.cancelable&&k.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(qP).filter(Boolean).filter(function(T){return T.contains(k.target)}),N=E.length>0?c(k,E[0]):!i.current.noIsolation;N&&k.cancelable&&k.preventDefault()}}},[]),h=f.useCallback(function(g,k,j,S){var E={name:g,delta:k,target:j,should:S};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),p=f.useCallback(function(g){n.current=Ib(g),r.current=void 0},[]),m=f.useCallback(function(g){h(g.type,UP(g),g.target,c(g,e.lockRef.current))},[]),x=f.useCallback(function(g){h(g.type,Ib(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return im.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",u,om),document.addEventListener("touchmove",u,om),document.addEventListener("touchstart",p,om),function(){im=im.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,om),document.removeEventListener("touchmove",u,om),document.removeEventListener("touchstart",p,om)}},[]);var C=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(o,{styles:Fhe(s)}):null,C?f.createElement(ob,{gapMode:"margin"}):null)}const Bhe=ab(HP,$he);var YP=f.forwardRef(function(e,t){return f.createElement(Nb,er({},e,{ref:t,sideCar:Bhe}))});YP.classNames=Nb.classNames;const Whe=YP,KP="Popover",[GP,hEe]=ms(KP,[ld]),D4=ld(),[Vhe,lm]=GP(KP),Uhe=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!1}=e,c=D4(t),u=f.useRef(null),[h,p]=f.useState(!1),[m=!1,x]=Ka({prop:r,defaultProp:s,onChange:o});return f.createElement(fg,c,f.createElement(Vhe,{scope:t,contentId:ga(),triggerRef:u,open:m,onOpenChange:x,onOpenToggle:f.useCallback(()=>x(C=>!C),[x]),hasCustomAnchor:h,onCustomAnchorAdd:f.useCallback(()=>p(!0),[]),onCustomAnchorRemove:f.useCallback(()=>p(!1),[]),modal:i},n))},qhe="PopoverAnchor",Yhe=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=lm(qhe,n),o=D4(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=s;return f.useEffect(()=>(i(),()=>c()),[i,c]),f.createElement(Zx,Re({},o,r,{ref:t}))}),ZP="PopoverPortal",[Khe,Ghe]=GP(ZP,{forceMount:void 0}),Zhe=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,o=lm(ZP,t);return f.createElement(Khe,{scope:t,forceMount:n},f.createElement(mo,{present:n||o.open},f.createElement(Ac,{asChild:!0,container:s},r)))},Cg="PopoverContent",Qhe=f.forwardRef((e,t)=>{const n=Ghe(Cg,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,o=lm(Cg,e.__scopePopover);return f.createElement(mo,{present:r||o.open},o.modal?f.createElement(Jhe,Re({},s,{ref:t})):f.createElement(Xhe,Re({},s,{ref:t})))}),Jhe=f.forwardRef((e,t)=>{const n=lm(Cg,e.__scopePopover),r=f.useRef(null),s=Bn(t,r),o=f.useRef(!1);return f.useEffect(()=>{const i=r.current;if(i)return eb(i)},[]),f.createElement(Whe,{as:Rc,allowPinchZoom:!0},f.createElement(QP,Re({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),o.current||(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,h=c.button===2||u;o.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:vt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),Xhe=f.forwardRef((e,t)=>{const n=lm(Cg,e.__scopePopover),r=f.useRef(!1),s=f.useRef(!1);return f.createElement(QP,Re({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),o.preventDefault()}r.current=!1,s.current=!1},onInteractOutside:o=>{var i,c;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;!((c=n.triggerRef.current)===null||c===void 0)&&c.contains(u)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}}))}),QP=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:p,...m}=e,x=lm(Cg,n),C=D4(n);return Fx(),f.createElement(Hx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o},f.createElement(hg,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:h,onDismiss:()=>x.onOpenChange(!1)},f.createElement(Qx,Re({"data-state":epe(x.open),role:"dialog",id:x.contentId},C,m,{ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function epe(e){return e?"open":"closed"}const tpe=Uhe,npe=Yhe,rpe=Zhe,JP=Qhe,Qa=tpe,Ja=npe,Da=f.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>a.jsx(rpe,{children:a.jsx(JP,{ref:s,align:t,sideOffset:n,className:xt("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Da.displayName=JP.displayName;function O4({id:e,children:t,onOver:n=()=>{},className:r="",isActive:s=!0}){const{setNodeRef:o,isOver:i}=Ky({id:e});return f.useEffect(()=>{n(i)},[i]),a.jsx("div",{ref:s?o:null,className:r,children:t})}const Vs=({keys:e})=>{const{isWindows:t}=ut(ra),n=t?e:e.replace("ALT+","\u2325");return a.jsx("span",{children:n})};function P4(){const{data:e,isLoading:t,error:n}=Vc("get_collections",{}),{setCollections:r}=ut(hr);return f.useEffect(()=>{Array.isArray(e)&&r(e)},[e]),{collections:e,isCollectionsLoading:t,isCollectionsError:n}}function XP(){const{data:e,isLoading:t,isSuccess:n,error:r}=Vc("get_active_collection_with_menu_items",{}),s=cn(),{setMenuItems:o}=ut(hr);return f.useEffect(()=>{e!=null&&e.items&&o(e==null?void 0:e.items)},[e,e==null?void 0:e.items]),{collectionWithItems:e,invalidateCollectionWithMenuItems:()=>{s.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})},isCollectionWithItemSuccess:n,isCollectionWithItemLoading:t,isCollectionWithItemError:r}}function ape(){const{data:e,isLoading:t,refetch:n,error:r}=Vc("get_active_collection_with_menu_items",{useQueryOptions:{enabled:!1,refetchOnWindowFocus:!1}});return{collectionWithMenuItems:e,fetchCollectionWithMenuItems:n,isCollectionWithItemLoading:t,isCollectionWithItemError:r}}function R4(){const{data:e,isLoading:t,refetch:n,isFetched:r,error:s}=Vc("get_active_collection_with_clips",{}),{setClipItems:o,setTabs:i}=ut(hr),c=cn();return f.useEffect(()=>{e!=null&&e.clips&&o(e==null?void 0:e.clips),e!=null&&e.tabs&&i(e==null?void 0:e.tabs)},[e==null?void 0:e.clips,e==null?void 0:e.tabs]),{collectionWithClips:e,invalidateCollectionWithClips:()=>{c.invalidateQueries({queryKey:["get_active_collection_with_clips"]})},isCollectionWithClipsLoading:t,fetchCollectionWithClips:n,isCollectionWithClipsLoadingFinished:r,isCollectionWithClipsError:s}}function eR(){const{data:e,isLoading:t,refetch:n,isFetched:r,error:s}=Vc("get_active_collection_with_clips",{useQueryOptions:{enabled:!1,refetchOnWindowFocus:!1}});return{collectionWithClips:e,isCollectionWithClipsLoading:t,fetchCollectionWithClips:n,isCollectionWithClipsLoadingFinished:r,isCollectionWithClipsError:s}}function A4(){const e=cn(),{mutate:t,isSuccess:n}=On("update_moved_menu_items_in_collection",{onSuccess:async r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("Move menu items update error",r)},onError:r=>{console.log("Move menu items update error",r)}});return{updateMovedMenuItemsSuccess:n,updateMovedMenuItems:t}}function Tb(){const e=cn(),{mutate:t,isSuccess:n}=On("update_moved_clips_in_collection",{onSuccess:async r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("Move menu items update error",r)},onError:r=>{console.log("Move menu items update error",r)}});return{updateMovedClipsSuccess:n,updateMovedClips:t}}function spe(){const e=cn(),{mutate:t}=On("update_collection_by_id",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_collections"]}):console.log("update collection error",n)},onError:n=>{console.log("update collection error",n)}});return{updateCollectionById:t}}function z4(){const e=cn(),{mutate:t,isSuccess:n}=On("select_collection_by_id",{onSuccess:async r=>{r==="ok"?(await vn("build_system_menu"),e.invalidateQueries({queryKey:["get_collections"]}),e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}),e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})):console.log("update collection error",r)}});return{selectCollectionByIdSuccess:n,selectCollectionById:t}}function ope(){const e=cn(),{mutate:t,isSuccess:n}=On("create_collection",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_collections"]}):console.log("update collection error",r)}});return{createNewCollection:t,createNewCollectionSuccess:n}}function ipe(){const e=cn(),{mutate:t}=On("delete_collection_by_id",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_collections"]}),e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})):console.log("update collection error",n)}});return{deleteCollectionById:t}}function Sg(e,t){if(!t)return{metadataLinkByItemId:void 0,invalidateLinkMetadataByItemId:()=>{}};const n=cn(),{data:r}=Vc("get_link_metadata_by_item_id",{itemId:t,useQueryOptions:{enabled:!!e,staleTime:60*(60*1e3),refetchOnWindowFocus:!1}});return{invalidateLinkMetadataByItemId:()=>{n.invalidateQueries({queryKey:["get_link_metadata_by_item_id",{itemId:t}]})},metadataLinkByItemId:r}}function ji(){const e=cn(),{mutate:t,isPending:n}=On("update_item_by_id",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update item error",r)}});return{updateItemByIdPending:n,invalidateCollectionWithClips:()=>{e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})},updateItemById:t}}function lpe(){const e=cn(),{mutate:t}=On("add_image_to_item_id",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}),e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})):console.log("add image to item error",n)}});return{addImageToItemById:t}}function cpe(){const e=cn(),{mutateAsync:t,reset:n}=On("upload_image_file_to_item_id",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}),e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})):console.log("upload image to item error",r)}});return{uploadImageToItemReset:n,uploadImageToItemById:t}}function dpe(){const e=cn(),{mutate:t}=On("update_item_value_by_history_id",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update item value by history id error",n)}});return{updateItemValueByHistoryId:t}}function upe(){const e=cn(),{mutate:t,isPending:n}=On("update_items_by_ids",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update items by ids error",r)}});return{updateItemByIdsPending:n,updateItemByIds:t}}function hpe(){const e=cn(),{mutate:t,isPending:n}=On("update_menu_items_by_ids",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("update menu items by ids error",r)}});return{updateMenuItemsByIds:t,updateMenuItemsByIdsPending:n}}function Eg(){const e=cn(),{mutate:t,isPending:n}=On("update_menu_item_by_id",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("update menu item error",r)}});return{updateMenuItemByIdPending:n,updateMenuItemById:t}}function Mb(e=!0){const t=cn(),{mutateAsync:n,isSuccess:r}=On("create_item",{onSuccess:s=>{s&&e&&t.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}});return{createNewItem:n,createNewItemSuccess:r}}function ppe(e=!0){const t=cn(),{mutateAsync:n,isSuccess:r}=On("link_clip_to_menu_item",{onSuccess:s=>{s&&e&&t.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}});return{linkClipIdToMenuItem:n,linkClipIdToMenuItemSuccess:r}}function mpe(){const e=cn(),{mutateAsync:t,isSuccess:n}=On("duplicate_item",{onSuccess:r=>{r==="ok"&&e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}});return{duplicateItem:t,duplicateItemSuccess:n}}function fpe(){const e=cn(),{mutateAsync:t,isSuccess:n}=On("duplicate_menu_item",{onSuccess:r=>{r==="ok"&&e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})}});return{duplicateMenuItem:t,duplicateMenuItemSuccess:n}}function Lb(){const e=cn(),{mutate:t}=On("delete_item_by_id",{onSuccess:n=>{n==="ok"?(Su.value&&(Su.value=null),As.value&&(As.value=null),e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})):console.log("delete item error",n)}});return{deleteItemById:t}}function tR(){const e=cn(),{mutate:t}=On("delete_menu_item_by_id",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("delete menu item error",n)}});return{deleteMenuItemById:t}}function gpe(){const e=cn(),{mutate:t}=On("delete_menu_items_by_ids",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("delete menu items error",n)}});return{deleteMenuItemsByIds:t}}function vpe(){const e=cn(),{mutate:t}=On("delete_image_by_item_by_id",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}),e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})):console.log("delete image by item id error",n)}});return{deleteClipImageByItemId:t}}function ype(){const e=cn(),{mutate:t}=On("delete_items_by_ids",{onSuccess:n=>{n==="ok"?(Su.value&&(Su.value=null),As.value&&(As.value=null),e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})):console.log("delete items error",n)}});return{deleteItemsByIds:t}}function nR(){const e=cn(),{mutate:t}=On("update_pinned_items_by_ids",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update clip items error",n)}});return{updatePinnedClipsByIds:t}}function xpe(){const e=cn(),{mutate:t}=On("unpin_all_items_clips",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("unpin all clips error",n)}});return{unPinAllClips:t}}function bpe(){const e=cn(),{mutate:t}=On("move_pinned_clip_item_up_down",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("unpin all clips error",n)}});return{movePinnedClipUpDown:t}}function rR(){const e=cn(),{mutate:t}=On("update_tab",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update tab error",n)}});return{updateTabById:t}}function wpe(){const e=cn(),{mutate:t}=On("update_tabs",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update tab error",n)}});return{updateTabs:t}}function kpe(){const e=cn(),{setCurrentTab:t}=ut(hr),{mutate:n,isSuccess:r}=On("create_tab",{onSuccess:s=>{s?(e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}),setTimeout(()=>{t(s)},100),Ua.value=null):console.log("create tab error",s)}});return{createNewTab:n,createNewTabSuccess:r}}function jpe(){const e=cn(),{mutate:t}=On("delete_tab",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("delete tab error",n)}});return{deleteItemById:t}}const cm=It(""),dm=It(""),Bu=({delay:e=800,onCopied:t=()=>{}})=>{const{copyPasteSequencePinnedDelay:n,copyPasteSequenceIsReversOrder:r}=ut(Nr),s=i=>(dm.value=i,new Promise((c,u)=>{i&&!cm.value?(cm.value=i,setTimeout(()=>{Sa("copy_clip_item",{itemId:i,copyFromMenu:!1}).then(h=>{h==="ok"?requestAnimationFrame(()=>{cm.value="",dm.value="",t(),c()}):(cm.value="",dm.value="",console.error("Failed to copy clip item",h),u())}).catch(h=>{cm.value="",dm.value="",console.error("Failed to copy clip item",h),u()})},e)):dm.value=""})),o=async i=>{r&&(i=i.reverse());for(const c of i)s(c),await new Promise(u=>setTimeout(u,n*1e3))};return[cm.value,s,o,dm.value]},Wu=It(""),Ng=It(0),Vu=({delay:e=800,onPasted:t=()=>{}})=>{const{copyPasteDelay:n,copyPasteSequencePinnedDelay:r,copyPasteSequenceIsReversOrder:s}=ut(Nr),o=f.useRef(),i=(p,m=0,x=!1)=>new Promise((C,b)=>{Sa("copy_paste_clip_item",{itemId:p,delay:m,isCopyOnly:x}).then(g=>{g==="ok"?C():(Wu.value="",console.error("Failed to copy history item",g),b())}).catch(g=>{Wu.value="",console.error("Failed to copy history item",g),b()})}),c=f.useCallback((p,m=1e3)=>(clearInterval(o.current),new Promise(x=>{Ng.value=p,o.current=setInterval(()=>{Ng.value>0?(Ng.value===1&&x(),Ng.value-=1):clearInterval(o.current)},m)})),[Wu.value]),u=(p,m,x)=>new Promise(async C=>{m=m!=null?m:n,p?(Wu.value=p,m>0&&await c(m),await i(p,0,x),setTimeout(()=>{requestAnimationFrame(()=>{t(),C(),Wu.value=""})},e)):(Wu.value="",C())}),h=async p=>{s&&(p=p.reverse());for(const m of p)await u(m,r)};return[Wu.value,Ng.value,u,h]},Ci=(e,t)=>{const{o:n,u:r,_:s}=e;let o=n,i;const c=(u,h)=>{const p=o,m=u,x=h||(r?!r(p,m):p!==m);return(x||s)&&(o=m,i=p),[o,x,i]};return[t?u=>c(t(o,i),u):c,u=>[o,!!u,i]]},F4=typeof window<"u",aR=F4&&Node.ELEMENT_NODE,{toString:Cpe,hasOwnProperty:H4}=Object.prototype,Spe=/^\[object (.+)\]$/,ud=e=>e===void 0,Db=e=>e===null,Epe=e=>ud(e)||Db(e)?"".concat(e):Cpe.call(e).replace(Spe,"$1").toLowerCase(),el=e=>typeof e=="number",_g=e=>typeof e=="string",sR=e=>typeof e=="boolean",tl=e=>typeof e=="function",Uo=e=>Array.isArray(e),Ig=e=>typeof e=="object"&&!Uo(e)&&!Db(e),Ob=e=>{const t=!!e&&e.length,n=el(t)&&t>-1&&t%1==0;return Uo(e)||!tl(e)&&n?t>0&&Ig(e)?t-1 in e:!0:!1},Pb=e=>{if(!e||!Ig(e)||Epe(e)!=="object")return!1;let t;const n="constructor",r=e[n],s=r&&r.prototype,o=H4.call(e,n),i=s&&H4.call(s,"isPrototypeOf");if(r&&!o&&!i)return!1;for(t in e);return ud(t)||H4.call(e,t)},Tg=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===aR:!1},Rb=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===aR:!1};function Qn(e,t){if(Ob(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&Qn(Object.keys(e),n=>t(e[n],n,e));return e}const Ab=(e,t)=>e.indexOf(t)>=0,hd=(e,t)=>e.concat(t),Jn=(e,t,n)=>(!n&&!_g(t)&&Ob(t)?Array.prototype.push.apply(e,t):e.push(t),e),um=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Jn(n,r)}):Qn(e,r=>{Jn(n,r)}),n)},zb=e=>!!e&&!e.length,oR=e=>um(new Set(e)),qo=(e,t,n)=>{Qn(e,r=>r&&r.apply(void 0,t||[])),!n&&(e.length=0)},Fb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ql=e=>e?Object.keys(e):[],Fn=(e,t,n,r,s,o,i)=>{const c=[t,n,r,s,o,i];return(typeof e!="object"||Db(e))&&!tl(e)&&(e={}),Qn(c,u=>{Qn(u,(h,p)=>{const m=u[p];if(e===m)return!0;const x=Uo(m);if(m&&Pb(m)){const C=e[p];let b=C;x&&!Uo(C)?b=[]:!x&&!Pb(C)&&(b={}),e[p]=Fn(b,m)}else e[p]=x?m.slice():m})}),e},iR=(e,t)=>Qn(Fn({},e),(n,r,s)=>{n===void 0?delete s[r]:t&&n&&Pb(n)&&(s[r]=iR(n,t))}),$4=e=>{for(const t in e)return!1;return!0},vs=(e,t,n)=>{if(ud(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},lR=(e,t)=>new Set((vs(e,t)||"").split(" ")),Us=(e,t)=>{e&&e.removeAttribute(t)},Uu=(e,t,n,r)=>{if(n){const s=lR(e,t);s[r?"add":"delete"](n);const o=um(s).join(" ").trim();vs(e,t,o)}},Npe=(e,t,n)=>lR(e,t).has(n),B4=F4&&Element.prototype,cR=(e,t)=>{const n=[],r=t?Rb(t)&&t:document;return r?Jn(n,r.querySelectorAll(e)):n},_pe=(e,t)=>{const n=t?Rb(t)&&t:document;return n?n.querySelector(e):null},Hb=(e,t)=>Rb(e)?(B4.matches||B4.msMatchesSelector).call(e,t):!1,W4=e=>e?um(e.childNodes):[],Yl=e=>e&&e.parentElement,hm=(e,t)=>{if(Rb(e)){const n=B4.closest;if(n)return n.call(e,t);do{if(Hb(e,t))return e;e=Yl(e)}while(e)}},Ipe=(e,t,n)=>{const r=hm(e,t),s=e&&_pe(n,r),o=hm(s,t)===r;return r&&s?r===e||s===e||o&&hm(hm(e,n),t)!==r:!1},Yo=()=>{},Kl=e=>{if(Ob(e))Qn(um(e),t=>Kl(t));else if(e){const t=Yl(e);t&&t.removeChild(e)}},V4=(e,t,n)=>{if(n&&e){let r=t,s;return Ob(n)?(s=document.createDocumentFragment(),Qn(n,o=>{o===r&&(r=o.previousSibling),s.appendChild(o)})):s=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(s,r||null),()=>Kl(n)}return Yo},Ko=(e,t)=>V4(e,null,t),Tpe=(e,t)=>V4(Yl(e),e,t),dR=(e,t)=>V4(Yl(e),e&&e.nextSibling,t),qu=e=>{const t=document.createElement("div");return vs(t,"class",e),t},uR=e=>{const t=qu();return t.innerHTML=e.trim(),Qn(W4(t),n=>Kl(n))},qs=F4?window:{},Mg=Math.max,Mpe=Math.min,Lg=Math.round,hR=qs.cancelAnimationFrame,pR=qs.requestAnimationFrame,$b=qs.setTimeout,U4=qs.clearTimeout,q4=e=>e.charAt(0).toUpperCase()+e.slice(1),Lpe=()=>qu().style,Dpe=["-webkit-","-moz-","-o-","-ms-"],Ope=["WebKit","Moz","O","MS","webkit","moz","o","ms"],Y4={},K4={},Ppe=e=>{let t=K4[e];if(Fb(K4,e))return t;const n=q4(e),r=Lpe();return Qn(Dpe,s=>{const o=s.replace(/-/g,"");return!(t=[e,s+e,o+n,q4(o)+n].find(i=>r[i]!==void 0))}),K4[e]=t||""},Bb=e=>{let t=Y4[e]||qs[e];return Fb(Y4,e)||(Qn(Ope,n=>(t=t||qs[n+q4(e)],!t)),Y4[e]=t),t},Rpe=Bb("MutationObserver"),mR=Bb("IntersectionObserver"),Wb=Bb("ResizeObserver"),G4=Bb("ScrollTimeline"),tn=(e,...t)=>e.bind(0,...t),pd=e=>{let t;const n=e?$b:pR,r=e?U4:hR;return[s=>{r(t),t=n(s,tl(e)?e():e)},()=>r(t)]},fR=(e,t)=>{let n,r,s,o=Yo;const{v:i,p:c,g:u}=t||{},h=function(C){o(),U4(n),n=r=void 0,o=Yo,e.apply(this,C)},p=C=>u&&r?u(r,C):C,m=()=>{o!==Yo&&h(p(s)||s)},x=function(){const C=um(arguments),b=tl(i)?i():i;if(el(b)&&b>=0){const g=tl(c)?c():c,k=el(g)&&g>=0,j=b>0?$b:pR,S=b>0?U4:hR,E=p(C)||C,N=h.bind(0,E);o();const T=j(N,b);o=()=>S(T),k&&!n&&(n=$b(m,g)),r=s=E}else h(C)};return x.m=m,x},Ape=/[^\x20\t\r\n\f]+/g,gR=(e,t,n)=>{const r=e&&e.classList;let s,o=0,i=!1;if(r&&t&&_g(t)){const c=t.match(Ape)||[];for(i=c.length>0;s=c[o++];)i=!!n(r,s)&&i}return i},Z4=(e,t)=>{gR(e,t,(n,r)=>n.remove(r))},md=(e,t)=>(gR(e,t,(n,r)=>n.add(r)),tn(Z4,e,t)),zpe={opacity:1,zIndex:1},Vb=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},Fpe=(e,t)=>!zpe[e]&&el(t)?"".concat(t,"px"):t,vR=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),Hpe=(e,t,n)=>{try{const{style:r}=e;ud(r[t])?r.setProperty(t,n):r[t]=Fpe(t,n)}catch{}},yR=e=>{const t=e||0;return isFinite(t)?t:0};function Xa(e,t){const n=_g(t);if(Uo(t)||n){let r=n?"":{};if(e){const s=qs.getComputedStyle(e,null);r=n?vR(e,s,t):t.reduce((o,i)=>(o[i]=vR(e,s,i),o),r)}return r}e&&Qn(t,(r,s)=>Hpe(e,s,t[s]))}const Dg=e=>Xa(e,"direction")==="rtl",xR=(e,t,n)=>{const r=t?"".concat(t,"-"):"",s=n?"-".concat(n):"",o="".concat(r,"top").concat(s),i="".concat(r,"right").concat(s),c="".concat(r,"bottom").concat(s),u="".concat(r,"left").concat(s),h=Xa(e,[o,i,c,u]);return{t:Vb(h[o],!0),r:Vb(h[i],!0),b:Vb(h[c],!0),l:Vb(h[u],!0)}},pm=(e,t)=>"translate".concat(Ig(e)?"(".concat(e.x,",").concat(e.y,")"):"".concat(t?"X":"Y","(").concat(e,")")),Ub=e=>"".concat((yR(e)*100).toFixed(3),"%"),qb=e=>"".concat(yR(e),"px"),bR="paddingTop",Q4="paddingRight",J4="paddingLeft",Yb="paddingBottom",Kb="marginLeft",Gb="marginRight",Og="marginBottom",Pg="overflowX",Rg="overflowY",Gl="width",Zl="height",mm="hidden",$pe={w:0,h:0},Zb=(e,t)=>t?{w:t["".concat(e,"Width")],h:t["".concat(e,"Height")]}:$pe,Bpe=e=>Zb("inner",e||qs),Ag=tn(Zb,"offset"),Qb=tn(Zb,"client"),Jb=tn(Zb,"scroll"),Xb=e=>{const t=parseFloat(Xa(e,Gl))||0,n=parseFloat(Xa(e,Zl))||0;return{w:t-Lg(t),h:n-Lg(n)}},nl=e=>e.getBoundingClientRect(),X4=e=>!!(e&&(e[Zl]||e[Gl])),wR=(e,t)=>{const n=X4(e);return!X4(t)&&n},e2=(e,t,n,r)=>{if(e&&t){let s=!0;return Qn(n,o=>{const i=r?r(e[o]):e[o],c=r?r(t[o]):t[o];i!==c&&(s=!1)}),s}return!1},kR=(e,t)=>e2(e,t,["w","h"]),jR=(e,t)=>e2(e,t,["x","y"]),Wpe=(e,t)=>e2(e,t,["t","r","b","l"]),CR=(e,t,n)=>e2(e,t,[Gl,Zl],n&&(r=>Lg(r)));let t2;const SR="passive",Vpe=()=>{if(ud(t2)){t2=!1;try{qs.addEventListener(SR,Yo,Object.defineProperty({},SR,{get(){t2=!0}}))}catch{}}return t2},ER=e=>e.split(" "),NR=(e,t,n,r)=>{Qn(ER(t),s=>{e.removeEventListener(s,n,r)})},Rr=(e,t,n,r)=>{var s;const o=Vpe(),i=(s=o&&r&&r.S)!=null?s:o,c=r&&r.$||!1,u=r&&r.O||!1,h=o?{passive:i,capture:c}:c;return tn(qo,ER(t).map(p=>{const m=u?x=>{NR(e,p,m,c),n(x)}:n;return e.addEventListener(p,m,h),tn(NR,e,p,m,c)}))},_R=e=>e.stopPropagation(),IR=e=>e.preventDefault(),Upe={x:0,y:0},eS=e=>{const t=e&&nl(e);return t?{x:t.left+qs.pageYOffset,y:t.top+qs.pageXOffset}:Upe},TR=(e,t,n)=>n?n.n?-e:n.i?t-e:e:e,qpe=(e,t)=>[t&&t.i?e:0,TR(e,e,t)],fd=(e,t)=>{const{x:n,y:r}=el(t)?{x:t,y:t}:t||{};el(n)&&(e.scrollLeft=n),el(r)&&(e.scrollTop=r)},fm=e=>({x:e.scrollLeft,y:e.scrollTop}),MR=(e,t)=>{Qn(Uo(t)?t:[t],e)},tS=e=>{const t=new Map,n=(o,i)=>{if(o){const c=t.get(o);MR(u=>{c&&c[u?"delete":"clear"](u)},i)}else t.forEach(c=>{c.clear()}),t.clear()},r=(o,i)=>{if(_g(o)){const h=t.get(o)||new Set;return t.set(o,h),MR(p=>{tl(p)&&h.add(p)},i),tn(n,o,i)}sR(i)&&i&&n();const c=ql(o),u=[];return Qn(c,h=>{const p=o[h];p&&Jn(u,r(h,p))}),tn(qo,u)},s=(o,i)=>{Qn(um(t.get(o)),c=>{i&&!zb(i)?c.apply(0,i):c()})};return r(e||{}),[r,n,s]},LR=e=>JSON.stringify(e,(t,n)=>{if(tl(n))throw 0;return n}),DR=(e,t)=>e?"".concat(t).split(".").reduce((n,r)=>n&&Fb(n,r)?n[r]:void 0,e):void 0,Ype={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},OR=(e,t)=>{const n={},r=hd(ql(t),ql(e));return Qn(r,s=>{const o=e[s],i=t[s];if(Ig(o)&&Ig(i))Fn(n[s]={},OR(o,i)),$4(n[s])&&delete n[s];else if(Fb(t,s)&&i!==o){let c=!0;if(Uo(o)||Uo(i))try{LR(o)===LR(i)&&(c=!1)}catch{}c&&(n[s]=i)}}),n},Kpe=(e,t,n)=>r=>[DR(e,r),n||DR(t,r)!==void 0],zg="data-overlayscrollbars",PR="os-environment",RR="".concat(PR,"-flexbox-glue"),Gpe="".concat(RR,"-max"),AR="os-scrollbar-hidden",nS="".concat(zg,"-initialize"),Si=zg,zR="".concat(Si,"-overflow-x"),FR="".concat(Si,"-overflow-y"),gm="overflowVisible",Zpe="scrollbarHidden",HR="scrollbarPressed",n2="updating",gd="".concat(zg,"-viewport"),rS="arrange",$R="scrollbarHidden",vm=gm,aS="".concat(zg,"-padding"),Qpe=vm,BR="".concat(zg,"-content"),sS="os-size-observer",Jpe="".concat(sS,"-appear"),Xpe="".concat(sS,"-listener"),eme="os-trinsic-observer",tme="os-no-css-vars",nme="os-theme-none",Ys="os-scrollbar",rme="".concat(Ys,"-rtl"),ame="".concat(Ys,"-horizontal"),sme="".concat(Ys,"-vertical"),WR="".concat(Ys,"-track"),oS="".concat(Ys,"-handle"),ome="".concat(Ys,"-visible"),ime="".concat(Ys,"-cornerless"),VR="".concat(Ys,"-transitionless"),UR="".concat(Ys,"-interaction"),qR="".concat(Ys,"-unusable"),iS="".concat(Ys,"-auto-hide"),YR="".concat(iS,"-hidden"),KR="".concat(Ys,"-wheel"),lme="".concat(WR,"-interactive"),cme="".concat(oS,"-interactive"),GR={},ZR={},dme=e=>{Qn(e,t=>Qn(t,(n,r)=>{GR[r]=t[r]}))},QR=(e,t,n)=>ql(e).map(r=>{const{static:s,instance:o}=e[r],[i,c,u]=n||[],h=n?o:s;if(h){const p=n?h(i,c,t):h(t);return(u||ZR)[r]=p}}),ym=e=>ZR[e],ume="__osOptionsValidationPlugin",hme="__osSizeObserverPlugin",lS="__osScrollbarsHidingPlugin",pme="__osClickScrollPlugin";let cS;const JR=(e,t,n,r)=>{Ko(e,t);const s=Qb(t),o=Ag(t),i=Xb(n);return r&&Kl(t),{x:o.h-s.h+i.h,y:o.w-s.w+i.w}},mme=e=>{let t=!1;const n=md(e,AR);try{t=Xa(e,Ppe("scrollbar-width"))==="none"||qs.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},fme=(e,t)=>{Xa(e,{[Pg]:mm,[Rg]:mm,direction:"rtl"}),fd(e,{x:0});const n=eS(e),r=eS(t);fd(e,{x:-999});const s=eS(t);return{i:n.x===r.x,n:r.x!==s.x}},gme=(e,t)=>{const n=md(e,RR),r=nl(e),s=nl(t),o=CR(s,r,!0),i=md(e,Gpe),c=nl(e),u=nl(t),h=CR(u,c,!0);return n(),i(),o&&h},vme=()=>{const{body:e}=document,t=uR('<div class="'.concat(PR,'"><div></div></div>'))[0],n=t.firstChild,[r,,s]=tS(),[o,i]=Ci({o:JR(e,t,n),u:jR},tn(JR,e,t,n,!0)),[c]=i(),u=mme(t),h={x:c.x===0,y:c.y===0},p={elements:{host:null,padding:!u,viewport:g=>u&&g===g.ownerDocument.body&&g,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},m=Fn({},Ype),x=tn(Fn,{},m),C=tn(Fn,{},p),b={P:c,I:h,H:u,A:Xa(t,"zIndex")==="-1",L:!!G4,V:fme(t,n),U:gme(t,n),B:tn(r,"r"),j:C,N:g=>Fn(p,g)&&C(),G:x,q:g=>Fn(m,g)&&x(),F:Fn({},p),W:Fn({},m)};return Us(t,"style"),Kl(t),qs.addEventListener("resize",()=>{let g;if(!u&&(!h.x||!h.y)){const k=ym(lS);g=!!(k?k.R():Yo)(b,o)}s("r",[g])}),b},Ks=()=>(cS||(cS=vme()),cS),dS=(e,t)=>tl(t)?t.apply(0,e):t,yme=(e,t,n,r)=>{const s=ud(r)?n:r;return dS(e,s)||t.apply(0,e)},XR=(e,t,n,r)=>{const s=ud(r)?n:r,o=dS(e,s);return!!o&&(Tg(o)?o:t.apply(0,e))},xme=(e,t)=>{const{nativeScrollbarsOverlaid:n,body:r}=t||{},{I:s,H:o,j:i}=Ks(),{nativeScrollbarsOverlaid:c,body:u}=i().cancel,h=n!=null?n:c,p=ud(r)?u:r,m=(s.x||s.y)&&h,x=e&&(Db(p)?!o:p);return!!m||!!x},uS=new WeakMap,bme=(e,t)=>{uS.set(e,t)},wme=e=>{uS.delete(e)},eA=e=>uS.get(e),kme=(e,t,n)=>{let r=!1;const s=n?new WeakMap:!1,o=()=>{r=!0},i=c=>{if(s&&n){const u=n.map(h=>{const[p,m]=h||[];return[m&&p?(c||cR)(p,e):[],m]});Qn(u,h=>Qn(h[0],p=>{const m=h[1],x=s.get(p)||[];if(e.contains(p)&&m){const C=Rr(p,m.trim(),b=>{r?(C(),s.delete(p)):t(b)});s.set(p,Jn(x,C))}else qo(x),s.delete(p)}))}};return i(),[o,i]},tA=(e,t,n,r)=>{let s=!1;const{X:o,Y:i,J:c,K:u,Z:h,tt:p}=r||{},m=fR(()=>s&&n(!0),{v:33,p:99}),[x,C]=kme(e,m,c),b=o||[],g=i||[],k=hd(b,g),j=(E,N)=>{if(!zb(N)){const T=h||Yo,M=p||Yo,L=[],D=[];let P=!1,A=!1;if(Qn(N,B=>{const{attributeName:z,target:R,type:$,oldValue:_,addedNodes:U,removedNodes:K}=B,W=$==="attributes",G=$==="childList",Z=e===R,F=W&&z,V=F?vs(R,z||""):null,q=F&&_!==V,ne=Ab(g,z)&&q;if(t&&(G||!Z)){const Q=W&&q,ae=Q&&u&&Hb(R,u),re=(ae?!T(R,z,_,V):!W||Q)&&!M(B,!!ae,e,r);Qn(U,le=>Jn(L,le)),Qn(K,le=>Jn(L,le)),A=A||re}!t&&Z&&q&&!T(R,z,_,V)&&(Jn(D,z),P=P||ne)}),C(B=>oR(L).reduce((z,R)=>(Jn(z,cR(B,R)),Hb(R,B)?Jn(z,R):z),[])),t)return!E&&A&&n(!1),[!1];if(!zb(D)||P){const B=[oR(D),P];return!E&&n.apply(0,B),B}}},S=new Rpe(tn(j,!1));return[()=>(S.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:k,subtree:t,childList:t,characterData:t}),s=!0,()=>{s&&(x(),S.disconnect(),s=!1)}),()=>{if(s)return m.m(),j(!0,S.takeRecords())}]},nA=(e,t,n)=>{const{nt:r,ot:s}=n||{},o=ym(hme),{V:i}=Ks(),c=tn(Dg,e),[u]=Ci({o:!1,_:!0});return()=>{const h=[],p=uR('<div class="'.concat(sS,'"><div class="').concat(Xpe,'"></div></div>'))[0],m=p.firstChild,x=C=>{const b=C instanceof ResizeObserverEntry,g=!b&&Uo(C);let k=!1,j=!1,S=!0;if(b){const[E,,N]=u(C.contentRect),T=X4(E),M=wR(E,N);j=!N||M,k=!j&&!T,S=!k}else g?[,S]=C:j=C===!0;if(r&&S){const E=g?C[0]:Dg(p);fd(p,{x:TR(3333333,3333333,E&&i),y:3333333})}k||t({st:g?C:void 0,et:!g,ot:j})};if(Wb){const C=new Wb(b=>x(b.pop()));C.observe(m),Jn(h,()=>{C.disconnect()})}else if(o){const[C,b]=o(m,x,s);Jn(h,hd([md(p,Jpe),Rr(p,"animationstart",C)],b))}else return Yo;if(r){const[C]=Ci({o:void 0},c);Jn(h,Rr(p,"scroll",b=>{const g=C(),[k,j,S]=g;j&&(Z4(m,"ltr rtl"),md(m,k?"rtl":"ltr"),x([!!k,j,S])),_R(b)}))}return tn(qo,Jn(h,Ko(e,p)))}},jme=(e,t)=>{let n;const r=u=>u.h===0||u.isIntersecting||u.intersectionRatio>0,s=qu(eme),[o]=Ci({o:!1}),i=(u,h)=>{if(u){const p=o(r(u)),[,m]=p;return m&&!h&&t(p)&&[p]}},c=(u,h)=>i(h.pop(),u);return[()=>{const u=[];if(mR)n=new mR(tn(c,!1),{root:e}),n.observe(s),Jn(u,()=>{n.disconnect()});else{const h=()=>{const p=Ag(s);i(p)};Jn(u,nA(s,h)()),h()}return tn(qo,Jn(u,Ko(e,s)))},()=>n&&c(!0,n.takeRecords())]},Cme=(e,t)=>{let n,r,s,o,i;const{H:c}=Ks(),u="[".concat(Si,"]"),h="[".concat(gd,"]"),p=["tabindex"],m=["wrap","cols","rows"],x=["id","class","style","open"],C={ct:!1,rt:Dg(e.lt)},{lt:b,it:g,ut:k,ft:j,_t:S,dt:E,vt:N}=e,{U:T,B:M}=Ks(),[L]=Ci({u:kR,o:{w:0,h:0}},()=>{const F=E(vm,gm),V=E(rS,""),q=V&&fm(g);N(vm,gm),N(rS,""),N("",n2,!0);const ne=Jb(k),Q=Jb(g),ae=Xb(g);return N(vm,gm,F),N(rS,"",V),N("",n2),fd(g,q),{w:Q.w+ne.w+ae.w,h:Q.h+ne.h+ae.h}}),D=j?m:hd(x,m),P=fR(t,{v:()=>n,p:()=>r,g(F,V){const[q]=F,[ne]=V;return[hd(ql(q),ql(ne)).reduce((Q,ae)=>(Q[ae]=q[ae]||ne[ae],Q),{})]}}),A=F=>{Qn(F||p,V=>{if(Ab(p,V)){const q=vs(b,V);_g(q)?vs(g,V,q):Us(g,V)}})},B=(F,V)=>{const[q,ne]=F,Q={ht:ne};return Fn(C,{ct:q}),!V&&t(Q),Q},z=({et:F,st:V,ot:q})=>{const ne=!(F&&!q&&!V)&&c?P:t,[Q,ae]=V||[];V&&Fn(C,{rt:Q}),ne({et:F||q,ot:q,gt:ae})},R=(F,V)=>{const[,q]=L(),ne={bt:q};return q&&!V&&(F?t:P)(ne),ne},$=(F,V,q)=>{const ne={wt:V};return V&&!q?P(ne):S||A(F),ne},[_,U]=k||!T?jme(b,B):[],K=!S&&nA(b,z,{ot:!0,nt:!0}),[W,G]=tA(b,!1,$,{Y:x,X:hd(x,p)}),Z=S&&Wb&&new Wb(F=>{const V=F[F.length-1].contentRect;z({et:!0,ot:wR(V,i)}),i=V});return[()=>{A(),Z&&Z.observe(b);const F=K&&K(),V=_&&_(),q=W(),ne=M(Q=>{const[,ae]=L();P({yt:Q,bt:ae})});return()=>{Z&&Z.disconnect(),F&&F(),V&&V(),o&&o(),q(),ne()}},({St:F,$t:V,xt:q})=>{const ne={},[Q]=F("update.ignoreMutation"),[ae,re]=F("update.attributes"),[le,oe]=F("update.elementEvents"),[ie,de]=F("update.debounce"),xe=oe||re,je=V||q,Ee=Te=>tl(Q)&&Q(Te);if(xe){s&&s(),o&&o();const[Te,Me]=tA(k||g,!0,R,{X:hd(D,ae||[]),J:le,K:u,tt:(ze,qe)=>{const{target:Ye,attributeName:Ve}=ze;return(!qe&&Ve&&!S?Ipe(Ye,u,h):!1)||!!hm(Ye,".".concat(Ys))||!!Ee(ze)}});o=Te(),s=Me}if(de)if(P.m(),Uo(ie)){const Te=ie[0],Me=ie[1];n=el(Te)&&Te,r=el(Me)&&Me}else el(ie)?(n=ie,r=!1):(n=!1,r=!1);if(je){const Te=G(),Me=U&&U(),ze=s&&s();Te&&Fn(ne,$(Te[0],Te[1],je)),Me&&Fn(ne,B(Me[0],je)),ze&&Fn(ne,R(ze[0],je))}return ne},C]},hS=(e,t,n)=>Mg(e,Mpe(t,n)),Sme=(e,t,n)=>{const r=Lg(t),[s,o]=qpe(r,n),i=(o-e)/o,c=e/s,u=e/o,h=n?n.n?i:n.i?c:u:u;return hS(0,1,h)},rA=(e,t,n)=>{if(n){const u=t?Gl:Zl,{Ot:h,Ct:p}=n,m=nl(p)[u],x=nl(h)[u];return hS(0,1,m/x)}const r=t?"x":"y",{Ht:s,zt:o}=e,i=o[r],c=s[r];return hS(0,1,i/(i+c))},aA=(e,t,n,r)=>{const s=rA(e,r,t);return 1/s*(1-s)*n},Eme=(e,t,n,r)=>{const{j:s,A:o}=Ks(),{scrollbars:i}=s(),{slot:c}=i,{It:u,lt:h,it:p,At:m,Et:x,Tt:C,_t:b}=t,{scrollbars:g}=m?{}:e,{slot:k}=g||{},j=new Map,S=ae=>G4&&new G4({source:x,axis:ae}),E=S("x"),N=S("y"),T=XR([u,h,p],()=>b&&C?u:h,c,k),M=ae=>b&&!C&&Yl(ae)===p,L=ae=>{j.forEach((re,le)=>{(!ae||Ab(Uo(ae)?ae:[ae],le))&&((re||[]).forEach(oe=>{oe&&oe.cancel()}),j.delete(le))})},D=(ae,re,le)=>{const oe=le?md:Z4;Qn(ae,ie=>{oe(ie.Dt,re)})},P=(ae,re)=>{Qn(ae,le=>{const[oe,ie]=re(le);Xa(oe,ie)})},A=(ae,re,le,oe)=>re&&ae.animate(le,{timeline:re,composite:oe}),B=(ae,re)=>{P(ae,le=>{const{Ct:oe}=le;return[oe,{[re?Gl:Zl]:Ub(rA(n,re))}]})},z=(ae,re)=>{E&&N?ae.forEach(le=>{const{Dt:oe,Ct:ie}=le,de=tn(aA,n,le),xe=re&&Dg(oe),je=de(xe?1:0,re),Ee=de(xe?0:1,re);L(ie),j.set(ie,[A(ie,re?E:N,Fn({transform:[pm(Ub(je),re),pm(Ub(Ee),re)]},xe?{clear:["left"]}:{}))])}):P(ae,le=>{const{Ct:oe,Dt:ie}=le,{V:de}=Ks(),xe=re?"x":"y",{Ht:je}=n,Ee=Dg(ie),Te=aA(n,le,Sme(fm(x)[xe],je[xe],re&&Ee&&de),re);return[oe,{transform:pm(Ub(Te),re)}]})},R=ae=>{const{Dt:re}=ae,le=M(re)&&re,{x:oe,y:ie}=fm(x);return[le,{transform:le?pm({x:qb(oe),y:qb(ie)}):""}]},$=(ae,re,le,oe)=>A(ae,re,{transform:[pm(qb(0),oe),pm(qb(Mg(0,le-.5)),oe)]},"add"),_=[],U=[],K=[],W=(ae,re,le)=>{const oe=sR(le),ie=oe?le:!0,de=oe?!le:!0;ie&&D(U,ae,re),de&&D(K,ae,re)},G=()=>{B(U,!0),B(K)},Z=()=>{z(U,!0),z(K)},F=()=>{if(b)if(N&&N){const{Ht:ae}=n;hd(K,U).forEach(({Dt:re})=>{L(re),M(re)&&j.set(re,[$(re,E,ae.x,!0),$(re,N,ae.y)])})}else P(U,R),P(K,R)},V=ae=>{const re=ae?ame:sme,le=ae?U:K,oe=zb(le)?VR:"",ie=qu("".concat(Ys," ").concat(re," ").concat(oe)),de=qu(WR),xe=qu(oS),je={Dt:ie,Ot:de,Ct:xe};return o||md(ie,tme),Jn(le,je),Jn(_,[Ko(ie,de),Ko(de,xe),tn(Kl,ie),L,r(je,W,z,ae)]),je},q=tn(V,!0),ne=tn(V,!1),Q=()=>(Ko(T,U[0].Dt),Ko(T,K[0].Dt),$b(()=>{W(VR)},300),tn(qo,_));return q(),ne(),[{kt:G,Mt:Z,Rt:F,Pt:W,Lt:{L:E,Vt:U,Ut:q,Bt:tn(P,U)},jt:{L:N,Vt:K,Ut:ne,Bt:tn(P,K)}},Q]},Nme=(e,t,n)=>{const{lt:r,Et:s,Nt:o}=t;return(i,c,u,h)=>{const{Dt:p,Ot:m,Ct:x}=i,[C,b]=pd(333),[g,k]=pd(),j=tn(u,[i],h),S=!!s.scrollBy,E="client".concat(h?"X":"Y"),N=h?Gl:Zl,T=h?"left":"top",M=h?"w":"h",L=h?"x":"y",D=B=>B.propertyName.indexOf(N)>-1,P=()=>{const B="pointerup pointerleave pointercancel lostpointercapture",z=(R,$)=>_=>{const{Ht:U}=n,K=Ag(m)[M]-Ag(x)[M],W=$*_/K*U[L];fd(s,{[L]:R+W})};return Rr(m,"pointerdown",R=>{const $=hm(R.target,".".concat(oS))===x,_=$?x:m,U=e.scrollbars,{button:K,isPrimary:W,pointerType:G}=R,{pointers:Z}=U,F=K===0&&W&&U[$?"dragScroll":"clickScroll"]&&(Z||[]).includes(G);if(Uu(r,Si,HR,!0),F){const V=!$&&R.shiftKey,q=tn(nl,x),ne=tn(nl,m),Q=(ze,qe)=>(ze||q())[T]-(qe||ne())[T],ae=Lg(nl(s)[N])/Ag(s)[M]||1,re=z(fm(s)[L]||0,1/ae),le=R[E],oe=q(),ie=ne(),de=oe[N],xe=Q(oe,ie)+de/2,je=le-ie[T],Ee=$?0:je-xe,Te=ze=>{qo(Me),_.releasePointerCapture(ze.pointerId)},Me=[tn(Uu,r,Si,HR),Rr(o,B,Te),Rr(o,"selectstart",ze=>IR(ze),{S:!1}),Rr(m,B,Te),Rr(m,"pointermove",ze=>{const qe=ze[E]-le;($||V)&&re(Ee+qe)})];if(V)re(Ee);else if(!$){const ze=ym(pme);ze&&Jn(Me,ze(re,Q,Ee,de,je))}_.setPointerCapture(R.pointerId)}})};let A=!0;return tn(qo,[Rr(p,"pointerenter",()=>{c(UR,!0)}),Rr(p,"pointerleave pointercancel",()=>{c(UR,!1)}),Rr(p,"wheel",B=>{const{deltaX:z,deltaY:R,deltaMode:$}=B;S&&A&&$===0&&Yl(p)===r&&s.scrollBy({left:z,top:R,behavior:"smooth"}),A=!1,c(KR,!0),C(()=>{A=!0,c(KR)}),IR(B)},{S:!1,$:!0}),Rr(x,"transitionstart",B=>{if(D(B)){const z=()=>{j(),g(z)};z()}}),Rr(x,"transitionend transitioncancel",B=>{D(B)&&(k(),j())}),Rr(p,"mousedown",tn(Rr,o,"click",_R,{O:!0,$:!0}),{$:!0}),P(),b,k])}},_me=(e,t,n,r,s,o)=>{let i,c,u,h,p,m=Yo,x=0;const[C,b]=pd(),[g,k]=pd(),[j,S]=pd(100),[E,N]=pd(100),[T,M]=pd(100),[L,D]=pd(()=>x),[P,A]=Eme(e,s,r,Nme(t,s,r)),{lt:B,Gt:z,Tt:R}=s,{Pt:$,kt:_,Mt:U,Rt:K}=P,W=q=>{$(iS,q,!0),$(iS,q,!1)},G=(q,ne)=>{if(D(),q)$(YR);else{const Q=tn($,YR,!0);x>0&&!ne?L(Q):Q()}},Z=q=>q.pointerType==="mouse",F=q=>{Z(q)&&(h=c,h&&G(!0))},V=[S,D,N,M,k,b,()=>m(),Rr(B,"pointerover",F,{O:!0}),Rr(B,"pointerenter",F),Rr(B,"pointerleave",q=>{Z(q)&&(h=!1,c&&G(!1))}),Rr(B,"pointermove",q=>{Z(q)&&i&&C(()=>{S(),G(!0),E(()=>{i&&G(!1)})})}),Rr(z,"scroll",q=>{g(()=>{U(),u&&G(!0),j(()=>{u&&!h&&G(!1)})}),o(q),K()})];return[()=>tn(qo,Jn(V,A())),({St:q,xt:ne,qt:Q,Ft:ae})=>{const{Wt:re,Xt:le,Yt:oe}=ae||{},{gt:ie,ot:de}=Q||{},{rt:xe}=n,{I:je}=Ks(),{Ht:Ee,Jt:Te,Kt:Me}=r,[ze,qe]=q("showNativeOverlaidScrollbars"),[Ye,Ve]=q("scrollbars.theme"),[Lt,$e]=q("scrollbars.visibility"),[st,At]=q("scrollbars.autoHide"),[Qt,Vt]=q("scrollbars.autoHideSuspend"),[_e]=q("scrollbars.autoHideDelay"),[sn,Ht]=q("scrollbars.dragScroll"),[kt,rn]=q("scrollbars.clickScroll"),Zt=de&&!ne,Jt=Me.x||Me.y,gn=re||le||ie||ne,zt=oe||$e,Mn=ze&&je.x&&je.y,Ce=(Be,ke)=>{const Qe=Lt==="visible"||Lt==="auto"&&Be==="scroll";return $(ome,Qe,ke),Qe};if(x=_e,Zt&&(Qt&&Jt?(W(!1),m(),T(()=>{m=Rr(z,"scroll",tn(W,!0),{O:!0})})):W(!0)),qe&&$(nme,Mn),Ve&&($(p),$(Ye,!0),p=Ye),Vt&&!Qt&&W(!0),At&&(i=st==="move",c=st==="leave",u=st!=="never",G(!u,!0)),Ht&&$(cme,sn),rn&&$(lme,kt),zt){const Be=Ce(Te.x,!0),ke=Ce(Te.y,!1);$(ime,!(Be&&ke))}gn&&(_(),U(),K(),$(qR,!Ee.x,!0),$(qR,!Ee.y,!1),$(rme,xe&&!R))},{},P]},Ime=e=>{const t=Ks(),{j:n,H:r}=t,s=ym(lS),o=s&&s.C,{elements:i}=n(),{host:c,padding:u,viewport:h,content:p}=i,m=Tg(e),x=m?{}:e,{elements:C}=x,{host:b,padding:g,viewport:k,content:j}=C||{},S=m?e:x.target,E=Hb(S,"textarea"),N=S.ownerDocument,T=N.documentElement,M=S===N.body,L=N.defaultView,D=tn(yme,[S]),P=tn(XR,[S]),A=tn(dS,[S]),B=tn(qu,""),z=tn(D,B,h),R=tn(P,B,p),$=z(k),_=$===S,U=_&&M,K=!_&&R(j),W=!_&&Tg($)&&$===K,G=W&&!!A(p),Z=G?z():$,F=G?K:R(),V=U?T:W?Z:$,q=E?D(B,c,b):S,ne=U?V:q,Q=W?F:K,ae=N.activeElement,re=!_&&L.top===L&&ae===S,le={It:S,lt:ne,it:V,Zt:!_&&P(B,u,g),ut:Q,Qt:!_&&!r&&o&&o(t),Et:U?T:V,Gt:U?N:V,tn:L,Nt:N,ft:E,Tt:M,At:m,_t:_,nn:W,dt:($e,st)=>Npe(V,_?Si:gd,_?st:$e),vt:($e,st,At)=>Uu(V,_?Si:gd,_?st:$e,At)},oe=ql(le).reduce(($e,st)=>{const At=le[st];return Jn($e,At&&Tg(At)&&!Yl(At)?At:!1)},[]),ie=$e=>$e?Ab(oe,$e):null,{It:de,lt:xe,Zt:je,it:Ee,ut:Te,Qt:Me}=le,ze=[()=>{Us(xe,Si),Us(xe,nS),Us(de,nS),M&&(Us(T,Si),Us(T,nS))}],qe=E&&ie(xe);let Ye=E?de:W4([Te,Ee,je,xe,de].find($e=>ie($e)===!1));const Ve=U?de:Te||Ee,Lt=tn(qo,ze);return[le,()=>{vs(xe,Si,_?"viewport":"host"),vs(je,aS,""),vs(Te,BR,""),_||vs(Ee,gd,"");const $e=M&&!_?md(Yl(S),AR):Yo,st=At=>{Ko(Yl(At),W4(At)),Kl(At)};if(qe&&(dR(de,xe),Jn(ze,()=>{dR(xe,de),Kl(xe)})),Ko(Ve,Ye),Ko(xe,je),Ko(je||xe,!_&&Ee),Ko(Ee,Te),Jn(ze,()=>{$e(),Us(je,aS),Us(Te,BR),Us(Ee,zR),Us(Ee,FR),Us(Ee,gd),ie(Te)&&st(Te),ie(Ee)&&st(Ee),ie(je)&&st(je)}),r&&!_&&(Uu(Ee,gd,$R,!0),Jn(ze,tn(Us,Ee,gd))),Me&&(Tpe(Ee,Me),Jn(ze,tn(Kl,Me))),re){const At="tabindex",Qt=vs(Ee,At);vs(Ee,At,"-1"),Ee.focus();const Vt=()=>Qt?vs(Ee,At,Qt):Us(Ee,At),_e=Rr(N,"pointerdown keydown",()=>{Vt(),_e()});Jn(ze,[Vt,_e])}else ae&&ae.focus&&ae.focus();return Ye=0,Lt},Lt]},Tme=({ut:e})=>({qt:t,sn:n,xt:r})=>{const{U:s}=Ks(),{ht:o}=t||{},{ct:i}=n;(e||!s)&&(o||r)&&Xa(e,{[Zl]:i?"":"100%"})},Mme=({lt:e,Zt:t,it:n,_t:r},s)=>{const[o,i]=Ci({u:Wpe,o:xR()},tn(xR,e,"padding",""));return({St:c,qt:u,sn:h,xt:p})=>{let[m,x]=i(p);const{H:C,U:b}=Ks(),{et:g,bt:k,gt:j}=u||{},{rt:S}=h,[E,N]=c("paddingAbsolute");(g||x||p||!b&&k)&&([m,x]=o(p));const T=!r&&(N||j||x);if(T){const M=!E||!t&&!C,L=m.r+m.l,D=m.t+m.b,P={[Gb]:M&&!S?-L:0,[Og]:M?-D:0,[Kb]:M&&S?-L:0,top:M?-m.t:0,right:M?S?-m.r:"auto":0,left:M?S?"auto":-m.l:0,[Gl]:M?"calc(100% + ".concat(L,"px)"):""},A={[bR]:M?m.t:0,[Q4]:M?m.r:0,[Yb]:M?m.b:0,[J4]:M?m.l:0};Xa(t||n,P),Xa(n,A),Fn(s,{Zt:m,en:!M,D:t?A:Fn({},P,A)})}return{cn:T}}},Lme=({lt:e,Zt:t,it:n,Qt:r,_t:s,vt:o,Tt:i,tn:c},u)=>{const h=tn(Mg,0),p="visible",m=42,x={u:kR,o:{w:0,h:0}},C={u:jR,o:{x:mm,y:mm}},b=(V,q)=>{const ne=qs.devicePixelRatio%1!==0?1:0,Q={w:h(V.w-q.w),h:h(V.h-q.h)};return{w:Q.w>ne?Q.w:0,h:Q.h>ne?Q.h:0}},g=V=>V.indexOf(p)===0,{P:k,U:j,H:S,I:E}=Ks(),N=ym(lS),T=!s&&!S&&(E.x||E.y),M=i&&s,[L,D]=Ci(x,tn(Xb,n)),[P,A]=Ci(x,tn(Jb,n)),[B,z]=Ci(x),[R,$]=Ci(x),[_]=Ci(C),U=(V,q)=>{if(Xa(n,{[Zl]:""}),q){const{en:ne,Zt:Q}=u,{rn:ae,k:re}=V,le=Xb(e),oe=Qb(e),ie=Xa(n,"boxSizing")==="content-box",de=ne||ie?Q.b+Q.t:0,xe=!(E.x&&ie);Xa(n,{[Zl]:oe.h+le.h+(ae.x&&xe?re.x:0)-de})}},K=(V,q)=>{const ne=!S&&!V?m:0,Q=(Ee,Te,Me)=>{const ze=Xa(n,Ee),qe=(q?q[Ee]:ze)==="scroll";return[ze,qe,qe&&!S?Te?ne:Me:0,Te&&!!ne]},[ae,re,le,oe]=Q(Pg,E.x,k.x),[ie,de,xe,je]=Q(Rg,E.y,k.y);return{Jt:{x:ae,y:ie},rn:{x:re,y:de},k:{x:le,y:xe},M:{x:oe,y:je}}},W=(V,q,ne,Q)=>{const ae=(de,xe)=>{const je=g(de),Ee=xe&&je&&de.replace("".concat(p,"-"),"")||"";return[xe&&!je?de:"",g(Ee)?"hidden":Ee]},[re,le]=ae(ne.x,q.x),[oe,ie]=ae(ne.y,q.y);return Q[Pg]=le&&oe?le:re,Q[Rg]=ie&&re?ie:oe,K(V,Q)},G=(V,q,ne,Q)=>{const{k:ae,M:re}=V,{x:le,y:oe}=re,{x:ie,y:de}=ae,{D:xe}=u,je=q?Kb:Gb,Ee=q?J4:Q4,Te=xe[je],Me=xe[Og],ze=xe[Ee],qe=xe[Yb];Q[Gl]="calc(100% + ".concat(de+Te*-1,"px)"),Q[je]=-de+Te,Q[Og]=-ie+Me,ne&&(Q[Ee]=ze+(oe?de:0),Q[Yb]=qe+(le?ie:0))},[Z,F]=N?N.T(T,j,n,r,u,K,G):[()=>T,()=>[Yo]];return({St:V,qt:q,sn:ne,xt:Q},{cn:ae})=>{const{et:re,wt:le,bt:oe,ht:ie,gt:de,yt:xe}=q||{},{ct:je,rt:Ee}=ne,[Te,Me]=V("showNativeOverlaidScrollbars"),[ze,qe]=V("overflow"),Ye=Te&&E.x&&E.y,Ve=!s&&!j&&(re||oe||le||Me||ie),Lt=re||ae||oe||de||xe||Me,$e=g(ze.x),st=g(ze.y),At=$e||st;let Qt=D(Q),Vt=A(Q),_e=z(Q),sn=$(Q),Ht;if(Me&&S&&o($R,Zpe,!Ye),Ve&&(Ht=K(Ye),U(Ht,je)),Lt){At&&o(vm,gm,!1);const[ve,Ie]=F(Ye,Ee,Ht),[Ae,Ze]=Qt=L(Q),[Je,ot]=Vt=P(Q),at=Qb(n);let Ge=Je,yt=at;ve(),(ot||Ze||Me)&&Ie&&!Ye&&Z(Ie,Je,Ae,Ee)&&(yt=Qb(n),Ge=Jb(n));const Nt=Bpe(c),bt={w:h(Mg(Je.w,Ge.w)+Ae.w),h:h(Mg(Je.h,Ge.h)+Ae.h)},$t={w:h((M?Nt.w:yt.w+h(at.w-Je.w))+Ae.w),h:h((M?Nt.h:yt.h+h(at.h-Je.h))+Ae.h)};sn=R($t),_e=B(b(bt,$t),Q)}const[kt,rn]=sn,[Zt,Jt]=_e,[gn,zt]=Vt,[Mn,Ce]=Qt,Be={x:Zt.w>0,y:Zt.h>0},ke=$e&&st&&(Be.x||Be.y)||$e&&Be.x&&!Be.y||st&&Be.y&&!Be.x;if(ae||de||xe||Ce||zt||rn||Jt||qe||Me||Ve||Lt){const ve={[Gb]:0,[Og]:0,[Kb]:0,[Gl]:"",[Pg]:"",[Rg]:""},Ie=W(Ye,Be,ze,ve),Ae=Z(Ie,gn,Mn,Ee);s||G(Ie,Ee,Ae,ve),Ve&&U(Ie,je),s?(vs(e,zR,ve[Pg]),vs(e,FR,ve[Rg])):Xa(n,ve)}Uu(e,Si,gm,ke),Uu(t,aS,Qpe,ke),s||Uu(n,gd,vm,At);const[Qe,ge]=_(K(Ye).Jt);return Fn(u,{Jt:Qe,zt:{x:kt.w,y:kt.h},Ht:{x:Zt.w,y:Zt.h},Kt:Be}),{Yt:ge,Wt:rn,Xt:Jt}}},Dme=e=>{const[t,n,r]=Ime(e),s={Zt:{t:0,r:0,b:0,l:0},en:!1,D:{[Gb]:0,[Og]:0,[Kb]:0,[bR]:0,[Q4]:0,[Yb]:0,[J4]:0},zt:{x:0,y:0},Ht:{x:0,y:0},Jt:{x:mm,y:mm},Kt:{x:!1,y:!1}},{It:o,it:i,vt:c,_t:u}=t,{H:h,I:p,U:m}=Ks(),x=!h&&(p.x||p.y),C=[Tme(t),Mme(t,s),Lme(t,s)];return[n,b=>{const g={},k=(x||!m)&&fm(i);return c("",n2,!0),Qn(C,j=>{Fn(g,j(b,g)||{})}),c("",n2),fd(i,k),!u&&fd(o,0),g},s,t,r]},Ome=(e,t,n,r)=>{const[s,o,i,c,u]=Dme(e),[h,p,m]=Cme(c,j=>{k({},j)}),[x,C,,b]=_me(e,t,m,i,c,r),g=j=>ql(j).some(S=>!!j[S]),k=(j,S)=>{const{ln:E,xt:N,$t:T,an:M}=j,L=E||{},D=!!N,P={St:Kpe(t,L,D),ln:L,xt:D};if(M)return C(P),!1;const A=S||p(Fn({},P,{$t:T})),B=o(Fn({},P,{sn:m,qt:A}));C(Fn({},P,{qt:A,Ft:B}));const z=g(A),R=g(B),$=z||R||!$4(L)||D;return $&&n(j,{qt:A,Ft:B}),$};return[()=>{const{It:j,it:S,Nt:E,Tt:N}=c,T=N?E.documentElement:j,M=fm(T),L=[h(),s(),x()];return fd(S,M),tn(qo,L)},k,()=>({un:m,fn:i}),{_n:c,dn:b},u]},Ql=(e,t,n)=>{const{G:r}=Ks(),s=Tg(e),o=s?e:e.target,i=eA(o);if(t&&!i){let c=!1;const u=[],h={},p=A=>{const B=iR(A,!0),z=ym(ume);return z?z(B,!0):B},m=Fn({},r(),p(t)),[x,C,b]=tS(),[g,k,j]=tS(n),S=(A,B)=>{j(A,B),b(A,B)},[E,N,T,M,L]=Ome(e,m,({ln:A,xt:B},{qt:z,Ft:R})=>{const{et:$,gt:_,ht:U,bt:K,wt:W,ot:G}=z,{Wt:Z,Xt:F,Yt:V}=R;S("updated",[P,{updateHints:{sizeChanged:!!$,directionChanged:!!_,heightIntrinsicChanged:!!U,overflowEdgeChanged:!!Z,overflowAmountChanged:!!F,overflowStyleChanged:!!V,contentMutation:!!K,hostMutation:!!W,appear:!!G},changedOptions:A||{},force:!!B}])},A=>S("scroll",[P,A])),D=A=>{wme(o),qo(u),c=!0,S("destroyed",[P,A]),C(),k()},P={options(A,B){if(A){const z=B?r():{},R=OR(m,Fn(z,p(A)));$4(R)||(Fn(m,R),N({ln:R}))}return Fn({},m)},on:g,off:(A,B)=>{A&&B&&k(A,B)},state(){const{un:A,fn:B}=T(),{rt:z}=A,{zt:R,Ht:$,Jt:_,Kt:U,Zt:K,en:W}=B;return Fn({},{overflowEdge:R,overflowAmount:$,overflowStyle:_,hasOverflow:U,padding:K,paddingAbsolute:W,directionRTL:z,destroyed:c})},elements(){const{It:A,lt:B,Zt:z,it:R,ut:$,Et:_,Gt:U}=M._n,{Lt:K,jt:W}=M.dn,G=F=>{const{Ct:V,Ot:q,Dt:ne}=F;return{scrollbar:ne,track:q,handle:V}},Z=F=>{const{Vt:V,Ut:q}=F,ne=G(V[0]);return Fn({},ne,{clone:()=>{const Q=G(q());return N({an:!0}),Q}})};return Fn({},{target:A,host:B,padding:z||R,viewport:R,content:$||R,scrollOffsetElement:_,scrollEventElement:U,scrollbarHorizontal:Z(K),scrollbarVertical:Z(W)})},update:A=>N({xt:A,$t:!0}),destroy:tn(D,!1),plugin:A=>h[ql(A)[0]]};return Jn(u,[L]),bme(o,P),QR(GR,Ql,[P,x,h]),xme(M._n.Tt,!s&&e.cancel)?(D(!0),P):(Jn(u,E()),S("initialized",[P]),P.update(!0),P)}return i};Ql.plugin=e=>{const t=Uo(e),n=t?e:[e],r=n.map(s=>QR(s,Ql)[0]);return dme(n),t?r:r[0]},Ql.valid=e=>{const t=e&&e.elements,n=tl(t)&&t();return Pb(n)&&!!eA(n.target)},Ql.env=()=>{const{P:e,I:t,H:n,V:r,U:s,A:o,L:i,F:c,W:u,j:h,N:p,G:m,q:x}=Ks();return Fn({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:s,cssCustomProperties:o,scrollTimeline:i,staticDefaultInitialization:c,staticDefaultOptions:u,getDefaultInitialization:h,setDefaultInitialization:p,getDefaultOptions:m,setDefaultOptions:x})};const Pme=()=>{if(typeof window>"u"){const h=()=>{};return[h,h]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",s=n.requestAnimationFrame,o=n.cancelAnimationFrame,i=r?n.requestIdleCallback:s,c=r?n.cancelIdleCallback:o,u=()=>{c(e),o(t)};return[(h,p)=>{u(),e=i(r?()=>{u(),t=s(h)}:h,typeof p=="object"?p:{timeout:2233})},u]},Rme=e=>{const{options:t,events:n,defer:r}=e||{},[s,o]=f.useMemo(Pme,[]),i=f.useRef(null),c=f.useRef(r),u=f.useRef(t),h=f.useRef(n);return f.useEffect(()=>{c.current=r},[r]),f.useEffect(()=>{const{current:p}=i;u.current=t,Ql.valid(p)&&p.options(t||{},!0)},[t]),f.useEffect(()=>{const{current:p}=i;h.current=n,Ql.valid(p)&&p.on(n||{},!0)},[n]),f.useEffect(()=>()=>{var p;o(),(p=i.current)==null||p.destroy()},[]),f.useMemo(()=>[p=>{const m=i.current;if(Ql.valid(m))return;const x=c.current,C=u.current||{},b=h.current||{},g=()=>i.current=Ql(p,C,b);x?s(g,x):g()},()=>i.current],[])},Ame=(e,t)=>{const{element:n="div",options:r,events:s,defer:o,children:i,...c}=e,u=n,h=f.useRef(null),p=f.useRef(null),[m,x]=Rme({options:r,events:s,defer:o});return f.useEffect(()=>{const{current:C}=h,{current:b}=p;return C&&b&&m({target:C,elements:{viewport:b,content:b}}),()=>{var g;return(g=x())==null?void 0:g.destroy()}},[m,n]),f.useImperativeHandle(t,()=>({osInstance:x,getElement:()=>h.current}),[]),dt.createElement(u,{"data-overlayscrollbars-initialize":"",ref:h,...c},dt.createElement("div",{"data-overlayscrollbars-contents":"",ref:p},i))},xm=f.forwardRef(Ame),sA=({size:e="20",color:t="currentColor",...n})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[a.jsx("path",{d:"M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10 6.66669V10",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10 13.3333H10.0088",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});function Ei(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}const[r2,pEe]=ms("Tooltip",[ld]),pS=ld(),zme="TooltipProvider",Fme=700,mS="tooltip.open",[Hme,fS]=r2(zme),$me=e=>{const{__scopeTooltip:t,delayDuration:n=Fme,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,[i,c]=f.useState(!0),u=f.useRef(!1),h=f.useRef(0);return f.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),f.createElement(Hme,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(h.current),c(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:f.useCallback(p=>{u.current=p},[]),disableHoverableContent:s},o)},gS="Tooltip",[Bme,Fg]=r2(gS),Wme=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:c}=e,u=fS(gS,e.__scopeTooltip),h=pS(t),[p,m]=f.useState(null),x=ga(),C=f.useRef(0),b=i!=null?i:u.disableHoverableContent,g=c!=null?c:u.delayDuration,k=f.useRef(!1),[j=!1,S]=Ka({prop:r,defaultProp:s,onChange:L=>{L?(u.onOpen(),document.dispatchEvent(new CustomEvent(mS))):u.onClose(),o==null||o(L)}}),E=f.useMemo(()=>j?k.current?"delayed-open":"instant-open":"closed",[j]),N=f.useCallback(()=>{window.clearTimeout(C.current),k.current=!1,S(!0)},[S]),T=f.useCallback(()=>{window.clearTimeout(C.current),S(!1)},[S]),M=f.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{k.current=!0,S(!0)},g)},[g,S]);return f.useEffect(()=>()=>window.clearTimeout(C.current),[]),f.createElement(fg,h,f.createElement(Bme,{scope:t,contentId:x,open:j,stateAttribute:E,trigger:p,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{u.isOpenDelayed?M():N()},[u.isOpenDelayed,M,N]),onTriggerLeave:f.useCallback(()=>{b?T():window.clearTimeout(C.current)},[T,b]),onOpen:N,onClose:T,disableHoverableContent:b},n))},oA="TooltipTrigger",Vme=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Fg(oA,n),o=fS(oA,n),i=pS(n),c=f.useRef(null),u=Bn(t,c,s.onTriggerChange),h=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>h.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),f.createElement(Zx,Re({asChild:!0},i),f.createElement(yn.button,Re({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},r,{ref:u,onPointerMove:vt(e.onPointerMove,x=>{x.pointerType!=="touch"&&!p.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:vt(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:vt(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:vt(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:vt(e.onBlur,s.onClose),onClick:vt(e.onClick,s.onClose)})))}),iA="TooltipPortal",[Ume,qme]=r2(iA,{forceMount:void 0}),lA=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:s}=e,o=Fg(iA,t);return f.createElement(Ume,{scope:t,forceMount:n},f.createElement(mo,{present:n||o.open},f.createElement(Ac,{asChild:!0,container:s},r)))},Hg="TooltipContent",Yme=f.forwardRef((e,t)=>{const n=qme(Hg,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=Fg(Hg,e.__scopeTooltip);return f.createElement(mo,{present:r||i.open},i.disableHoverableContent?f.createElement(cA,Re({side:s},o,{ref:t})):f.createElement(Kme,Re({side:s},o,{ref:t})))}),Kme=f.forwardRef((e,t)=>{const n=Fg(Hg,e.__scopeTooltip),r=fS(Hg,e.__scopeTooltip),s=f.useRef(null),o=Bn(t,s),[i,c]=f.useState(null),{trigger:u,onClose:h}=n,p=s.current,{onPointerInTransitChange:m}=r,x=f.useCallback(()=>{c(null),m(!1)},[m]),C=f.useCallback((b,g)=>{const k=b.currentTarget,j={x:b.clientX,y:b.clientY},S=Zme(j,k.getBoundingClientRect()),E=Qme(j,S),N=Jme(g.getBoundingClientRect()),T=efe([...E,...N]);c(T),m(!0)},[m]);return f.useEffect(()=>()=>x(),[x]),f.useEffect(()=>{if(u&&p){const b=k=>C(k,p),g=k=>C(k,u);return u.addEventListener("pointerleave",b),p.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",b),p.removeEventListener("pointerleave",g)}}},[u,p,C,x]),f.useEffect(()=>{if(i){const b=g=>{const k=g.target,j={x:g.clientX,y:g.clientY},S=(u==null?void 0:u.contains(k))||(p==null?void 0:p.contains(k)),E=!Xme(j,i);S?x():E&&(x(),h())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,p,i,h,x]),f.createElement(cA,Re({},e,{ref:o}))}),[Gme,mEe]=r2(gS,{isInside:!1}),cA=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...c}=e,u=Fg(Hg,n),h=pS(n),{onClose:p}=u;return f.useEffect(()=>(document.addEventListener(mS,p),()=>document.removeEventListener(mS,p)),[p]),f.useEffect(()=>{if(u.trigger){const m=x=>{const C=x.target;C!=null&&C.contains(u.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,p]),f.createElement(hg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:p},f.createElement(Qx,Re({"data-state":u.stateAttribute},h,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(QI,null,r),f.createElement(Gme,{scope:n,isInside:!0},f.createElement(Pie,{id:u.contentId,role:"tooltip"},s||r))))});function Zme(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Qme(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Jme(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function Xme(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const c=t[o].x,u=t[o].y,h=t[i].x,p=t[i].y;u>r!=p>r&&n<(h-c)*(r-u)/(p-u)+c&&(s=!s)}return s}function efe(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),tfe(t)}function tfe(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const dA=$me,uA=Wme,hA=Vme,nfe=lA,vS=Yme,De=({children:e,text:t,open:n,isCompact:r,isDisabled:s,defaultOpen:o,onOpenChange:i,delayDuration:c,noPortal:u=!1,align:h="center",alignOffset:p=0,sideOffset:m=4,maxWidth:x=220,className:C,side:b,onClick:g,...k})=>{if(s)return a.jsx("span",{children:e});const j=u?f.Fragment:nfe;return a.jsx(dA,{delayDuration:c,children:a.jsxs(uA,{open:n,defaultOpen:o,onOpenChange:i,delayDuration:c,children:[a.jsx(hA,{onClick:g,asChild:!0,children:a.jsx("span",{children:e})}),a.jsx(j,{children:a.jsx(vS,{side:b!=null?b:"top",sideOffset:m,alignOffset:p,align:h,className:dn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",r&&"!px-1.5 !py-0.5 text-xs shadow-sm ",C),...k,style:{...k.style,maxWidth:x},children:a.jsx("div",{className:"max-w-[".concat(x,"px] overflow-hidden text-ellipsis line-clamp-4"),children:t})})})]})})},rfe=dA,pA=uA,mA=hA,yS=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(vS,{ref:r,sideOffset:t,className:xt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...n}));yS.displayName=vS.displayName;function afe({historyId:e,description:t,favicon:n,isPreview:r,image:s,noBorder:o=!1,imageWidth:i=24,title:c,domain:u,link:h,isDisabled:p}){const{t:m}=wt(),{removeLinkMetaData:x,generateLinkMetaData:C}=ut(Yi),b=cn();return a.jsxs("div",{className:"w-full relative max-w-full flex select-none bg-white/80 rounded-md dark:bg-gray-800 border-slate-100 dark:border-slate-700/80 ".concat(o?"":"border"," ").concat(p?"opacity-40 pointer-events-none bg-gray-100 dark:bg-gray-900":""),children:[s&&a.jsx("div",{className:"h-auto w-".concat(i," flex-none bg-cover text-center overflow-hidden"),style:{backgroundImage:"url('".concat(s,"')")}}),a.jsxs("div",{className:"px-3 py-2 flex flex-col justify-between leading-normal overflow-clip w-full",children:[a.jsx("div",{className:"text-gray-900 dark:text-gray-300 font-semibold text-lg line-clamp-2 leading-tight hover:underline cursor-pointer",onClick:()=>{h&&Tl(mr(h))},title:c!=null?c:"",children:c}),t&&a.jsx("p",{className:"text-gray-700 dark:text-gray-400 text-md line-clamp-2 mt-2",title:t,children:t}),u&&a.jsxs("div",{className:"flex items-center mt-2",children:[n&&a.jsx("img",{className:"w-[16px] h-[16px] mr-2",src:n}),a.jsx("p",{className:"text-gray-400 dark:text-gray-500 text-sm font-semibold cursor-pointer hover:underline",onClick:()=>{Tl(mr(u))},title:"".concat(m("Open",{ns:"common"})," ").concat(u),children:u})]}),a.jsx("div",{className:"flex items-center absolute bottom-0 right-0 dark:text-slate-500 cursor-pointer border-0 border-red-200",children:r&&e?a.jsxs(Yn,{className:"dark:hover:text-blue-500 text-slate-500 hover:text-blue-600 hover:bg-transparent px-3 py-2",title:m("Add Link Card",{ns:"common"}),onClick:async()=>{await C(e.toString(),mr(h)),b.invalidateQueries({queryKey:["get_clipboard_history"]}),b.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})},children:[a.jsx(Ir,{size:12,className:"mr-[2px]"}),a.jsx(X0,{size:14})]}):e&&a.jsx(Yn,{className:"dark:hover:text-red-500 text-slate-300 dark:text-slate-600 hover:text-red-600 hover:bg-transparent px-3 py-2",title:m("Remove Link Card",{ns:"common"}),onClick:async()=>{await x(e.toString()),b.invalidateQueries({queryKey:["get_clipboard_history"]}),b.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})},children:a.jsx(Rn,{size:14})})})]})]})}const bm=f.memo(afe);function sfe({itemId:e,historyId:t,generateLinkUrl:n}){const{generateLinkMetaData:r}=ut(Yi),s=He({linkTitle:null,linkFavicon:null,linkDescription:null,linkUrl:null,linkDomain:null,linkImage:null});return f.useEffect(()=>{var o;n&&s.value.linkTitle===null&&((o=r("previewOnly",mr(n),!0))==null||o.then(i=>{i&&(s.value=i)}))},[]),!s.value.linkTitle&&!s.value.linkDescription?null:a.jsx(J,{className:"max-w-md dark:border-slate-900/20 border-transparent border rounded-md",children:a.jsx(bm,{title:s.value.linkTitle,description:s.value.linkDescription,favicon:s.value.linkFavicon,noBorder:!0,link:n,isPreview:!0,historyId:t,itemId:e,image:s.value.linkImage,domain:s.value.linkDomain})})}function rl(e,t){if(!e)return"";const n=e.split(new RegExp("(".concat(t,")"),"gi"));return a.jsx("span",{children:n.map((r,s)=>r.toLowerCase()===t.toLowerCase()?a.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black",children:r},s):r)})}function xS(e,t,n=160){if(!e)return"";const r=new RegExp("(".concat(t,")"),"gi"),s=e.split(r),o=s.findIndex(h=>h.toLowerCase()===t.toLowerCase());let i=0;for(o!==-1&&(i=Math.max(s.slice(0,o).join("").length-Math.floor(n/2),0));i>0&&e[i-1]!==" "&&e[i-1]!=="\n";)i--;const c=Math.min(i+n,e.length),u=e.slice(i,c).split(r);return a.jsx("span",{children:u.map((h,p)=>h.toLowerCase()===t.toLowerCase()?a.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black",children:h},p):h)})}function Yu(e,t){return!e||!Array.isArray(t)||!t.length?e:t.reduce((n,r)=>{const s=r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return n.flatMap(o=>typeof o=="string"?o.split(new RegExp("(".concat(s,")"),"g")):o)},[e]).map((n,r)=>t.includes(n)?a.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Tl(mr(n))},children:n},r):n)}function ofe({value:e,links:t,previewLinkCard:n,historyId:r,itemId:s}){return!e||!Array.isArray(t)||!t.length?e:t.reduce((o,i)=>{const c=i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return o.flatMap(u=>typeof u=="string"?u.split(new RegExp("(".concat(c,")"),"g")):u)},[e]).map((o,i)=>t.includes(o)?n?a.jsxs(pA,{children:[a.jsx(mA,{asChild:!0,children:a.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Tl(mr(o))},children:o})}),a.jsx(lA,{children:a.jsx(yS,{className:"px-0 py-0 duration-300",align:"start",children:a.jsx(sfe,{generateLinkUrl:o,itemId:s,historyId:r})})})]},i):a.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Tl(mr(o))},children:o},i):o)}const bS=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}))),ife=f.memo(f.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:xt("flex flex-col space-y-1.5 p-6",e),...t}))),lfe=f.memo(({className:e,...t})=>a.jsx("div",{className:xt("flex flex-col space-y-1.5 p-6",e),...t}));f.memo(({className:e,...t})=>a.jsx("h3",{className:xt("text-2xl font-semibold leading-none tracking-tight",e),...t})),f.memo(({className:e,...t})=>a.jsx("p",{className:xt("text-sm text-muted-foreground",e),...t}));const Ku=f.memo(({className:e,...t})=>a.jsx("div",{className:xt("p-6 pt-0",e),...t}));f.memo(({className:e,...t})=>a.jsx("div",{className:xt("flex items-center p-6 pt-0",e),...t}));function cfe({boardName:e,boardId:t}){const{t:n}=wt(),r=He(!1),s=He(!1),{currentCollectionId:o,isBoardHasChildren:i}=ut(hr),{deleteItemById:c}=Lb();return a.jsxs(Qa,{defaultOpen:!1,open:s.value||r.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(ye,{variant:"light",title:n("Delete board",{ns:"dashboard"}),onClick:()=>{i(t)?r.value=!0:s.value=!0},className:"px-2.5 ".concat(i(t)?"text-primary/30 hover:text-primary/50 hover:bg-amber-100 dark:hover:bg-amber-900":"text-red-400 hover:text-red-500 hover:bg-red-100 dark:text-red-600 dark:hover:bg-red-900 opacity-80 hover:opacity-100"," animate-in fade-in bg-gray-50 cursor-pointer"),children:a.jsx(or,{size:16})})}),a.jsx(Da,{sideOffset:16,align:"center",className:"p-3 ".concat(r.value?"bg-amber-100 border-amber-200 dark:bg-yellow-800 dark:border-gray-900":"bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950"," w-60"),onEscapeKeyDown:()=>{s.value=!1,r.value=!1},onPointerDownOutside:()=>{s.value=!1,r.value=!1},children:r.value?a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{justify:"left",size:"md",weight:"bold",color:"waning",children:n("Board is Not Empty",{ns:"dashboard"})}),a.jsx(mn,{h:1}),a.jsx(X,{color:"black",size:"sm",children:n("You'll need to clear this board of all clips and subboards before it can be deleted.",{ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsx(ye,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{r.value=!1},children:n("Got it",{ns:"common"})})]}):s.value&&a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block",children:a.jsx(Ps,{i18nKey:"Are you sure you want to delete <strong>{{boardName}}</strong> board?",values:{boardName:e},ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{s.value=!1},children:n("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{c({itemId:t,collectionId:o})},children:n("Delete Board",{ns:"dashboard"})})]})]})})]})}var fA=function(e){var t=e!=null?e:{},n=t.ref,r=t.sensitivity,s=r===void 0?6:r,o=t.interval,i=o===void 0?100:o,c=t.timeout,u=c===void 0?0:c,h=f.useRef(null),p=f.useState(!1),m=p[0],x=p[1],C=0,b=0,g=0,k=0,j=0,S=function(L){return j&&clearTimeout(j),x(!1)},E=function(L){C=L.clientX,b=L.clientY},N=function(L){if(j&&clearTimeout(j),Math.abs(g-C)+Math.abs(k-b)<s)return x(!0);g=C,k=b,j=window.setTimeout(function(){return N()},i)},T=function(L){j&&clearTimeout(j),h.current&&h.current.removeEventListener("mousemove",E,!1),m||(g=L.clientX,k=L.clientY,h.current&&h.current.addEventListener("mousemove",E,!1),j=window.setTimeout(function(){return N()},i))},M=function(L){j&&clearTimeout(j),h.current&&h.current.removeEventListener("mousemove",E,!1),m&&(j=window.setTimeout(function(){return S()},u))};return f.useEffect(function(){var L=h.current;return L&&(L.addEventListener("mouseover",T,!1),L.addEventListener("mouseout",M,!1)),function(){j&&clearTimeout(j),L&&(L.removeEventListener("mouseover",T,!1),L.removeEventListener("mouseout",M,!1))}}),f.useImperativeHandle(n,function(){return h.current},[h]),[m,h,x]};const a2=({size:e="large"})=>a.jsx("div",{className:dn("flex items-center justify-center",{"h-[34px] w-[34px]":e==="large"},{"h-[32px] w-[32px]":e==="medium"},{"h-[28px] w-[28px]":e==="small"}),children:a.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-500",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})});function dfe({board:e,isNewClip:t,isCreatingClip:n}){const{t:r}=wt(),{setNodeRef:s,isOver:o}=Ky({id:e.id,data:{type:"board",board:e}}),[i,c]=fA({timeout:100,sensitivity:500,interval:100});return a.jsx(bS,{className:"bg-secondary flex flex-col flex-shrink-0 m-2",onClick:()=>{o||t&&(Gi.value=e.id,Ua.value=null)},ref:Ei(t?c:null),children:a.jsx(Ku,{className:"overflow-hidden m-0 p-0 ",children:a.jsx(J,{className:"flex flex-grow flex-col gap-3 overflow-hidden p-1",children:a.jsx(J,{ref:s,className:"flex flex-row items-center justify-center border-2 border-dashed rounded-md w-full h-12 ".concat(i?"cursor-pointer":""," ").concat(o||i?"bg-slate-50/50 dark:bg-slate-700/50 border-blue-400":"bg-slate-50 dark:bg-slate-700 border-slate-200 dark:border-slate-500"),children:n?a.jsx(a2,{}):a.jsx(X,{className:"!text-sm !font-medium !text-blue-500 text-center",children:o?r("Drop To Add",{ns:"dashboard"}):i?r("Click To Add",{ns:"dashboard"}):a.jsx(Ir,{size:23,className:"".concat(o||i?"text-blue-400":"text-slate-400")})})})})})})}const ufe=f.memo(dfe),hfe=({size:e="16",color:t="currentColor",...n})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:a.jsx("path",{d:"M3.33301 8H12.6663",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),pfe=({size:e="20",color:t="currentColor",...n})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[a.jsx("path",{d:"M10 4.16667V15.8333",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M4.16699 10H15.8337",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),mfe=({size:e="16",color:t="currentColor",...n})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[a.jsx("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 10.6667V8",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 5.33331H8.0075",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ffe=({size:e="24px",color:t="currentColor",...n})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[a.jsx("path",{d:"M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M12.5 7.5L7.5 12.5",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M7.5 7.5L12.5 12.5",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),gfe=({type:e="info",size:t=16,content:n,...r})=>{const s=o=>{switch(o){case"warning":return a.jsx(sA,{size:t,className:"text-orange-40 flex"});case"error":return a.jsx(ffe,{size:t,className:"text-rose-40 flex"});default:return a.jsx(mfe,{size:t,className:"text-grey-40 flex"})}};return a.jsx(De,{content:n,...r,children:s(e)})},wS=({label:e,required:t=!1,tooltipContent:n,tooltip:r,className:s})=>a.jsxs("div",{className:dn("inter-small-semibold text-grey-50 flex w-full items-center",s),children:[a.jsx("label",{children:e}),t&&a.jsx("div",{className:"text-rose-50 ",children:" *"}),r||n?a.jsx("div",{className:"ml-1.5 flex",children:r||a.jsx(gfe,{content:n})}):null]}),Gt=f.forwardRef(({small:e,placeholder:t,label:n,name:r="",autoFocus:s=!1,required:o,deletable:i,numbersOnly:c,onDelete:u,onChange:h,onFocus:p,isPassword:m,showHidePassword:x=!1,tooltipContent:C,tooltip:b,prefix:g,suffix:k,error:j,errorElement:S,props:E,className:N,classNameInput:T,...M},L)=>{const D=f.useRef(null),[P,A]=f.useState(!1);f.useImperativeHandle(L,()=>D.current),f.useEffect(()=>{D.current&&s&&setTimeout(()=>{var R;(R=D.current)==null||R.focus()},200)},[s]);const B=()=>{var R,$;(R=D.current)==null||R.stepUp(),h&&(($=D.current)==null||$.dispatchEvent(new InputEvent("change",{view:window,bubbles:!0,cancelable:!1})))},z=()=>{var R,$;(R=D.current)==null||R.stepDown(),h&&(($=D.current)==null||$.dispatchEvent(new InputEvent("change",{view:window,bubbles:!0,cancelable:!1})))};return a.jsxs("div",{className:dn("w-full",N),...E,children:[n&&a.jsx(wS,{label:n,required:o,tooltipContent:C,tooltip:b,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),a.jsxs("div",{className:"relative",children:[g?a.jsx("span",{className:"text-grey-40 mr-2xsmall",children:g}):null,a.jsx("input",{className:dn("bg-grey-5 border-gray-20 px-small py-xsmall rounded rounded-rounded flex w-full items-center border","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","remove-number-spinner px-3 leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-transparent font-normal outline-none outline-0",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":j||S},e?"h-8":"h-10",{"!pr-8":x},{"text-small":e,"pt-[1px]":e},T),ref:D,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:m&&P?"text":m&&!P?"password":"text",name:r,placeholder:t||(n?"".concat(n,"..."):void 0),onChange:R=>{c&&(R.target.value=R.target.value.replace(/\D/g,"")),h&&h(R)},onFocus:p,required:o,...M}),k?a.jsx("span",{className:"mx-2xsmall text-grey-40",children:k}):null,x&&a.jsx("button",{tabIndex:-1,className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{A(R=>!R)},children:P?a.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:a.jsx("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:"currentColor",fillRule:"evenodd"})}):a.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:a.jsx("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd"})})}),i&&a.jsx("button",{onClick:u,className:"text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft ml-2 flex h-4 w-4 cursor-pointer items-center justify-center pb-px outline-none",type:"button",children:"\xD7"}),M.type==="number"&&a.jsxs("div",{className:"h-full self-end absolute right-2.5 top-0 bottom-0 flex items-center justify-center",children:[a.jsx("button",{onClick:z,onMouseDown:R=>R.preventDefault(),className:"text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft mr-2 h-4 w-4 cursor-pointer outline-none",type:"button",tabIndex:-1,children:a.jsx(hfe,{size:16})}),a.jsx("button",{onMouseDown:R=>R.preventDefault(),onClick:B,className:"text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft h-4 w-4 cursor-pointer outline-none",type:"button",tabIndex:-1,children:a.jsx(pfe,{size:16})})]})]}),j&&!S?a.jsx("div",{className:dn("text-sm animate fade-in text-red-400",N),children:a.jsx("p",{children:j})}):S&&a.jsx("div",{className:dn("text-sm animate fade-in",N),children:S})]})});Gt.displayName="InputField";function vfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}var yfe=f.useLayoutEffect,xfe=function(e){var t=f.useRef(e);return yfe(function(){t.current=e}),t},gA=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},bfe=function(e,t){var n=f.useRef();return f.useCallback(function(r){e.current=r,n.current&&gA(n.current,null),n.current=t,t&&gA(t,r)},[t])},vA={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},wfe=function(e){Object.keys(vA).forEach(function(t){e.style.setProperty(t,vA[t],"important")})},yA=wfe,ys=null,xA=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?n+t.borderSize:n-t.paddingSize};function kfe(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),ys||(ys=document.createElement("textarea"),ys.setAttribute("tabindex","-1"),ys.setAttribute("aria-hidden","true"),yA(ys)),ys.parentNode===null&&document.body.appendChild(ys);var s=e.paddingSize,o=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(x){var C=x;ys.style[C]=i[C]}),yA(ys),ys.value=t;var u=xA(ys,e);ys.value=t,u=xA(ys,e),ys.value="x";var h=ys.scrollHeight-s,p=h*n;c==="border-box"&&(p=p+s+o),u=Math.max(p,u);var m=h*r;return c==="border-box"&&(m=m+s+o),u=Math.min(m,u),[u,h]}var bA=function(){},jfe=function(e,t){return e.reduce(function(n,r){return n[r]=t[r],n},{})},Cfe=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Sfe=!!document.documentElement.currentStyle,Efe=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=jfe(Cfe,t),r=n.boxSizing;if(r==="")return null;Sfe&&r==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var s=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),o=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:s,borderSize:o}},Nfe=Efe;function wA(e,t,n){var r=xfe(n);f.useLayoutEffect(function(){var s=function(o){return r.current(o)};if(e)return e.addEventListener(t,s),function(){return e.removeEventListener(t,s)}},[])}var _fe=function(e){wA(window,"resize",e)},Ife=function(e){wA(document.fonts,"loadingdone",e)},Tfe=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Mfe=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,s=e.minRows,o=e.onChange,i=o===void 0?bA:o,c=e.onHeightChange,u=c===void 0?bA:c,h=vfe(e,Tfe),p=h.value!==void 0,m=f.useRef(null),x=bfe(m,t),C=f.useRef(0),b=f.useRef(),g=function(){var j=m.current,S=n&&b.current?b.current:Nfe(j);if(S){b.current=S;var E=kfe(S,j.value||j.placeholder||"x",s,r),N=E[0],T=E[1];C.current!==N&&(C.current=N,j.style.setProperty("height",N+"px","important"),u(N,{rowHeight:T}))}},k=function(j){p||g(),i(j)};return f.useLayoutEffect(g),_fe(g),Ife(g),f.createElement("textarea",Re({},h,{onChange:k,ref:x}))},Lfe=f.forwardRef(Mfe);const s2=["light","dark"],kS="(prefers-color-scheme: dark)",Dfe=typeof window>"u",jS=f.createContext(void 0),Ofe={setTheme:e=>{},themes:[]},o2=()=>{var e;return(e=f.useContext(jS))!==null&&e!==void 0?e:Ofe},Pfe=e=>f.useContext(jS)?dt.createElement(f.Fragment,null,e.children):dt.createElement(Afe,e),Rfe=["light","dark"],Afe=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:s="theme",themes:o=Rfe,defaultTheme:i=n?"system":"light",attribute:c="data-theme",value:u,children:h,nonce:p})=>{const[m,x]=f.useState(()=>kA(s,i)),[C,b]=f.useState(()=>kA(s)),g=u?Object.values(u):o,k=f.useCallback(N=>{let T=N;if(!T)return;N==="system"&&n&&(T=jA());const M=u?u[T]:T,L=t?Ffe():null,D=document.documentElement;if(c==="class"?(D.classList.remove(...g),M&&D.classList.add(M)):M?D.setAttribute(c,M):D.removeAttribute(c),r){const P=s2.includes(i)?i:null,A=s2.includes(T)?T:P;D.style.colorScheme=A}L==null||L()},[]),j=f.useCallback(N=>{x(N);try{localStorage.setItem(s,N)}catch{}},[e]),S=f.useCallback(N=>{const T=jA(N);b(T),m==="system"&&n&&!e&&k("system")},[m,e]);f.useEffect(()=>{const N=window.matchMedia(kS);return N.addListener(S),S(N),()=>N.removeListener(S)},[S]),f.useEffect(()=>{const N=T=>{T.key===s&&j(T.newValue||i)};return window.addEventListener("storage",N),()=>window.removeEventListener("storage",N)},[j]),f.useEffect(()=>{k(e!=null?e:m)},[e,m]);const E=f.useMemo(()=>({theme:m,setTheme:j,forcedTheme:e,resolvedTheme:m==="system"?C:m,themes:n?[...o,"system"]:o,systemTheme:n?C:void 0}),[m,j,e,C,n,o]);return dt.createElement(jS.Provider,{value:E},dt.createElement(zfe,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:s,themes:o,defaultTheme:i,attribute:c,value:u,children:h,attrs:g,nonce:p}),h)},zfe=f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:c,nonce:u})=>{const h=o==="system",p=n==="class"?"var d=document.documentElement,c=d.classList;c.remove(".concat(c.map(b=>"'".concat(b,"'")).join(","),");"):"var d=document.documentElement,n='".concat(n,"',s='setAttribute';"),m=s?s2.includes(o)&&o?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(o,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",x=(b,g=!1,k=!0)=>{const j=i?i[b]:b,S=g?b+"|| ''":"'".concat(j,"'");let E="";return s&&k&&!g&&s2.includes(b)&&(E+="d.style.colorScheme = '".concat(b,"';")),n==="class"?E+=g||j?"c.add(".concat(S,")"):"null":j&&(E+="d[s](n,".concat(S,")")),E},C=e?"!function(){".concat(p).concat(x(e),"}()"):r?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(t,"');if('system'===e||(!e&&").concat(h,")){var t='").concat(kS,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(x("dark"),"}else{").concat(x("light"),"}}else if(e){").concat(i?"var x=".concat(JSON.stringify(i),";"):"").concat(x(i?"x[e]":"e",!0),"}").concat(h?"":"else{"+x(o,!1,!1)+"}").concat(m,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(t,"');if(e){").concat(i?"var x=".concat(JSON.stringify(i),";"):"").concat(x(i?"x[e]":"e",!0),"}else{").concat(x(o,!1,!1),";}").concat(m,"}catch(t){}}();");return dt.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:C}})},()=>!0),kA=(e,t)=>{if(Dfe)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Ffe=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},jA=e=>(e||(e=window.matchMedia(kS)),e.matches?"dark":"light"),Hfe=dt.forwardRef(({variant:e="primary",size:t="large",loading:n=!1,spanClassName:r,spinnerConfig:s,children:o,...i},c)=>{const u=m=>{!n&&i.onClick&&i.onClick(m)},h=dn({"btn-primary":e==="primary","btn-secondary":e==="secondary","btn-ghost":e==="ghost","btn-danger":e==="danger","btn-nuclear":e==="nuclear"}),p=dn({"btn-large":t==="large","btn-medium":t==="medium","btn-small":t==="small"});return a.jsx("button",{...i,className:dn("btn",h,p,i.className),disabled:i.disabled||n,ref:c,onClick:u,children:n?a.jsx(a2,{size:t,variant:"secondary",...s}):f.Children.map(o,(m,x)=>a.jsx("span",{className:dn("mr-xsmall last:mr-0",r),children:m},x))})}),$fe=({size:e="24",color:t="currentColor",...n})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[a.jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 14C8 14 9.5 16 12 16C14.5 16 16 14 16 14",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M9 9H9.01",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 9H15.01",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bfe=f.lazy(()=>he(()=>import("./emoji-picker-react.esm-B-CS8Os3.js"),[])),CA=({onEmojiClick:e,onCloseAutoFocus:t})=>{const{theme:n}=o2();return a.jsxs(NO,{children:[a.jsx(_O,{asChild:!0,onClick:r=>{r.stopPropagation()},children:a.jsx(Hfe,{variant:"ghost",size:"small",type:"button",onClick:r=>{r.stopPropagation()},className:"text-grey-40 hover:text-violet-60 h-5 w-5 p-0 focus:border-none focus:shadow-none",children:a.jsx($fe,{size:20})})}),a.jsx(IO,{children:a.jsx(m4,{onCloseAutoFocus:t,sideOffset:5,className:"z-99 min-w-[200px] min-h-[100px] overflow-hidden text-center flex justify-center items-center",children:a.jsx(f.Suspense,{fallback:a.jsx(a2,{size:"small",variant:"primary"}),children:a.jsx(Bfe,{onEmojiClick:r=>e(r.emoji),defaultSkinTone:"NEUTRAL",theme:n,emojiStyle:"native",skinTonesDisabled:!0,searchPlaceHolder:"Emoji..."})})})})]})},go=f.forwardRef(({placeholder:e,label:t,name:n,key:r,value:s,required:o,withTooltip:i=!1,tooltipText:c,tooltipProps:u={},autoFocus:h=!1,containerProps:p,maxLength:m,className:x,classNameArea:C,isDisabled:b=!1,onFocus:g=()=>{},onBlur:k=()=>{},onPaste:j=()=>{},onChange:S=()=>{},onKeyDown:E=()=>{},rows:N=2,maxRows:T=5,enableEmoji:M=!0,enableEmojiInside:L=!1,error:D},P)=>{const A=f.useRef(null);f.useEffect(()=>{A.current&&h&&setTimeout(()=>{var K;(K=A.current)==null||K.focus()},200)},[h]);const B=K=>{if(!A.current||!K)return;const W=new RegExp("\\{{\\s*".concat(K,"\\s*\\}}"),"gi"),G=A.current.value.replaceAll(W,"");A.current.value=G,S&&S({target:{value:G}})},z=()=>{if(!A.current)return;const K=A.current.value.replace(/\{\{.*?\}\}/g,"");A.current.value=K,S&&S({target:{value:K}})},R=K=>{if(!A.current)return;const W=A.current.selectionStart||0,G=A.current.selectionEnd||0;let Z=A.current.value.substring(W,G);K.forEach(V=>{const q=new RegExp("\\[".concat(V,"\\]"),"g"),ne=new RegExp("\\[/".concat(V,"\\]"),"g");Z=Z.replace(q,""),Z=Z.replace(ne,"")});const F="".concat(A.current.value.substring(0,W)).concat(Z).concat(A.current.value.substring(G));A.current.value=F,A.current.selectionStart=W,A.current.selectionEnd=W+Z.length,A.current.focus(),S&&S({target:{value:F}})},$=K=>{if(!A.current)return;const W=A.current.selectionStart||0,G=A.current.selectionEnd||0,Z=A.current.value.substring(W,G),F="[".concat(K,"]"),V="[/".concat(K,"]");let q="";Z?q="".concat(A.current.value.substring(0,W)).concat(F).concat(Z).concat(V).concat(A.current.value.substring(G)):q="".concat(A.current.value.substring(0,W)).concat(F).concat(V).concat(A.current.value.substring(W)),A.current.value=q;const ne=W+F.length;A.current.selectionStart=ne,A.current.selectionEnd=ne,A.current.focus(),S&&S({target:{value:q}})},_=K=>{if(!A.current)return;const W=A.current.selectionStart||0,G=A.current.selectionStart||0,Z=A.current.selectionEnd||0,F=G>0?"".concat(A.current.value.substring(0,G)).concat(K).concat(A.current.value.substring(Z)):"".concat(K).concat(A.current.value);A.current.value=F,S&&S({target:{value:F}}),A.current.selectionStart=W+K.length,A.current.selectionEnd=W+K.length,A.current.focus()};f.useImperativeHandle(P,()=>({getInputElement:()=>A.current,handleRemoveBBcodes:R,handleAddText:_,handleRemoveTemplateField:B,handleRemoveAllTemplateFields:z,handleAddBBcode:$}));const U=()=>{setTimeout(()=>{var K;(K=A==null?void 0:A.current)==null||K.focus()},100)};return a.jsxs("div",{className:x,...p,children:[t&&a.jsx(wS,{label:t,required:o,withTooltip:i,tooltipText:c,tooltipProps:u,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),a.jsxs("div",{className:"relative",children:[a.jsx(Lfe,{maxRows:T,minRows:N,className:dn("focus-within:shadow-input focus-within:border-violet-60 px-small py-xsmall bg-grey-5 border-grey-20 rounded rounded-rounded flex w-full flex-col border",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":D},"relative bg-inherit outline-none outline-0 focus:overflow-auto","remove-number-spinner leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full font-normal","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","px-3 py-1 pb-2 leading-base text-grey-90",C),ref:A,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",maxLength:m,onFocus:g,onBlur:k,name:n,disabled:b,onChange:S,onKeyDown:E,autoFocus:!1,value:s||"",onPaste:j,placeholder:e||""},r||n),M&&a.jsx("div",{className:"flex justify-start items-center w-full h-8 ml-1",children:a.jsx(CA,{onEmojiClick:_,onCloseAutoFocus:()=>{var W;U();const K={target:{value:(W=A==null?void 0:A.current)==null?void 0:W.value}};S(K)}})}),L&&a.jsx("div",{className:"flex justify-start items-center absolute right-1.5 bottom-1.5",children:a.jsx(CA,{onEmojiClick:_,onCloseAutoFocus:()=>{var W;U();const K={target:{value:(W=A==null?void 0:A.current)==null?void 0:W.value}};S(K)}})})]}),D&&a.jsx("div",{className:dn("text-sm animate fade-in text-red-400",x),children:a.jsx("p",{children:D})})]})}),Wfe={board:[0,1,2,3],clip:[0,1,2,3,4,5]},i2=({color:e,itemId:t,updateById:n,borderWidth:r,onOpen:s,onBorderWidthChange:o,onColorChange:i,type:c})=>{const{t:u}=wt(),h=He(!1);return f.useEffect(()=>{h.value&&s&&s()},[h.value]),a.jsxs(Qa,{defaultOpen:!1,open:h.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{className:"w-[22px] h-[22px] mr-1.5 cursor-pointer ".concat(xu(e,"200")," ").concat(yx(e,"300","600")," border rounded-sm flex items-center justify-center"),title:u("Change color",{ns:"dashboard"}),onClick:()=>{h.value=!h.value},children:a.jsx(jn,{size:13,className:"text-".concat(e,"-500 dark:text-").concat(e,"-300")})})}),a.jsx(Da,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 pt-0",onEscapeKeyDown:()=>{h.value=!1},onPointerDownOutside:()=>{h.value=!1},children:a.jsxs(J,{children:[a.jsx(fe,{className:"text-center py-1.5 mt-0.5 uppercase",children:a.jsx(X,{weight:"medium",size:"xs",className:"!text-slate-400",children:u("Select Color",{ns:"dashboard"})})}),a.jsx(J,{className:"m-auto grid grid-cols-8 gap-3",children:bZ.map(p=>a.jsx(J,{onClick:async()=>{t&&n?c===il?await n({updatedTab:{tabColor:p,tabId:t}}):(c===ns||c===wo)&&await n({updatedItem:{color:p,itemId:t}}):i&&i(p),h.value=!1},className:"bg-".concat(p,"-400 dark:bg-").concat(p,"-700 w-6 h-6 flex justify-center cursor-pointer rounded-sm"),children:p===e&&a.jsx(Dt,{size:16,strokeWidth:4,className:"w-3 h-3 m-auto text-white"})},p))}),(c===ns||c===wo)&&a.jsxs(a.Fragment,{children:[a.jsx(fe,{className:"text-center py-1.5 pt-2 uppercase",children:a.jsx(X,{weight:"medium",size:"xs",className:"!text-slate-400",children:u("Border Width",{ns:"dashboard"})})}),a.jsx(J,{className:"m-auto items-center justify-items-center grid ".concat(c===ns?"grid-cols-4 px-10":"grid-cols-6 gap-1"),children:Wfe[c].map(p=>a.jsx(J,{onClick:async()=>{t&&n?await n({updatedItem:{borderWidth:p,itemId:t}}):o&&o(p)},className:"bg-".concat(e,"-50 dark:bg-").concat(e,"-900 w-[28px] h-[26px] flex justify-center cursor-pointer border border-").concat(e,"-200 dark:border-").concat(e,"-700 ").concat(c!==ns?"border-[".concat(p>0?1:0,"px] border-l-").concat(e,"-500 border-l-[").concat(p,"px]"):"border-[".concat(p,"px]")," rounded-lg "),children:r===p?a.jsx(Dt,{size:18,strokeWidth:4,className:"w-3 h-3 m-auto text-slate-400"}):a.jsx(X,{size:"xs",className:"text-slate-400 !font-medium",children:p})},p))})]})]})})]})};function Vfe({boardName:e,boardSubtitle:t,isNewBoard:n,scrollRef:r,boardId:s,boardColor:o,boardBorderWidth:i}){const{t:c}=wt(),u=He(!1),h=He(""),p=He(""),m=He(Pl.value),x=He(!1);if(!e)return null;f.useEffect(()=>{n&&(m.value=!0)},[n]),f.useEffect(()=>{u.value=!1,h.value=e,Pl.value=m.value},[m.value]),f.useEffect(()=>{p.value=t,Pl.value=x.value},[x.value]);const{updateItemById:C}=ji();f.useEffect(()=>{var g;m.value&&((g=r==null?void 0:r.current)==null||g.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[m.value,r==null?void 0:r.current]);const b=m.value||x.value;return a.jsxs(fe,{className:"flex-col w-full",children:[a.jsx(fe,{className:"justify-start w-full",children:m.value?a.jsxs(a.Fragment,{children:[a.jsx(De,{open:u.value||Pr.value,asChild:!0,text:Pr.value?c("Unsaved title",{ns:"dashboard"}):h.value.length<=AC?c("Too short",{ns:"dashboard"}):c("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:a.jsx(Gt,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[120px]",placeholder:c("Enter board title",{ns:"dashboard"}),onKeyDown:async g=>{g.stopPropagation(),g.key==="Escape"?(Pr.value=!1,m.value=!1):g.key==="Enter"&&(!h.value.length||h.value.length>Mp)?u.value=!0:g.key==="Enter"&&(await C({updatedItem:{name:h.value,itemId:s}}),Pr.value=!1,setTimeout(()=>{m.value=!1},200))},defaultValue:e,onFocus:g=>{e===c("New Board",{ns:"dashboard"})&&g.target.select()},onChange:g=>{Pr.value&&(Pr.value=!1),u.value&&g.target.value.length<=Mp&&u.value&&g.target.value.length>0&&(u.value=!1),h.value=g.target.value}})}),a.jsx(De,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:async()=>{if(!h.value.length||h.value.length>Mp){u.value=!0;return}u.value||(await C({updatedItem:{name:h.value,itemId:s}}),Pr.value=!1,setTimeout(()=>{m.value=!1},200))},children:a.jsx(Dt,{size:18})})})}),a.jsx(De,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Pr.value=!1,m.value=!1},children:a.jsx(Rn,{size:18})})})})]}):a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"min-w-[24px]",children:a.jsx(i2,{color:o,borderWidth:i,type:ns,itemId:s,updateById:C})}),a.jsx(X,{className:"!font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap border-dashed border-b border-".concat(o||"slate","-400 first-letter:uppercase hover:border-gray-400"),onClick:()=>{if(Pl.value){Pr.value=!0;return}m.value=!0},color:"black",children:e}),a.jsx(J,{onClick:()=>{if(Pl.value){Pr.value=!0;return}m.value=!0},title:c("Edit name",{ns:"dashboard"}),className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:a.jsx(Pp,{size:14})}),!b&&a.jsx(J,{onClick:()=>{Cx()},title:c("Close Edit",{ns:"dashboard"}),className:"ml-auto pr-1 pl-2 py-0 text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:a.jsx(J0,{size:18})})]})}),a.jsx(fe,{className:"justify-start w-full mt-1 text-gray-500",children:x.value?a.jsxs(fe,{className:"justify-start items-end flex-col mt-1 text-gray-500",children:[a.jsx(De,{open:Pr.value,asChild:!0,text:Pr.value?c("Unsaved subtitle",{ns:"dashboard"}):void 0,side:"top",className:"bg-rose-50 text-red-500 text-base font-semibold border border-rose-100 w-full",children:a.jsx(go,{tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-2 min-w-[120px]",placeholder:c("Enter board subtitle or description",{ns:"dashboard"}),rows:2,autoFocus:!0,enableEmojiInside:!0,label:"",maxRows:6,value:p.value,onKeyDown:g=>{g.stopPropagation()},onChange:g=>{Pr.value&&(Pr.value=!1),p.value=g.target.value}})}),a.jsxs(fe,{className:"items-start mt-1",children:[a.jsx(De,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:async()=>{await C({updatedItem:{description:p.value,itemId:s}}),setTimeout(()=>{Pr.value&&(Pr.value=!1),x.value=!1},200)},children:a.jsx(Dt,{size:18})})})}),a.jsx(De,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Pr.value&&(Pr.value=!1),x.value=!1},children:a.jsx(Rn,{size:18})})})})]})]}):t?a.jsxs(J,{className:"!font-normal dark:text-slate-300 text-[12px] hover:underline decoration-1 decoration-gray-400 !decoration-dashed !underline-offset-4",onClick:()=>{if(Pl.value){Pr.value=!0;return}x.value=!0},children:[t,a.jsx(J,{title:c("Edit subtitle",{ns:"dashboard"}),className:"ml-0.5 pl-1 !inline-flex items-center text-primary/50 cursor-pointer opacity-80 hover:opacity-100",children:a.jsx(Pp,{size:11})})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ir,{size:17}),a.jsx(X,{className:"!text-mute ml-1.5 text-sm border-dashed border-b border-gray-400",onClick:()=>{if(Pl.value){Pr.value=!0;return}x.value=!0},children:c("Subtitle",{ns:"dashboard"})})]})})]})}function l2(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"16",height:(n=e.height)!=null?n:"16",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),a.jsx("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"}),a.jsx("path",{d:"m9.392 10.005 6.16 3.697-6.16 3.697v-7.394Z"})]})}function Ufe(e){var t,n;return a.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.272 8.567v-6m0 0h-6m6 0L10.87 13.308M9.729 5.432h-2.2c-1.68 0-2.52 0-3.162.327-.564.288-1.023.747-1.311 1.311-.327.642-.327 1.482-.327 3.162v6.4c0 1.68 0 2.52.327 3.162.288.565.747 1.023 1.311 1.311.642.327 1.482.327 3.162.327h6.4c1.68 0 2.52 0 3.162-.327a2.9984 2.9984 0 0 0 1.311-1.311c.327-.642.327-1.482.327-3.162v-2.2"})})}function qfe(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 25 27",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.3",children:[a.jsx("path",{fillRule:"evenodd",d:"M12.2852 4.057c-4.5443 0-8.2282 3.684-8.2282 8.2282 0 4.5443 3.684 8.2282 8.2282 8.2282 4.5443 0 8.2282-3.6839 8.2282-8.2282S16.8295 4.057 12.2852 4.057ZM2 12.2852C2 6.6049 6.6048 2 12.2852 2s10.2852 4.6048 10.2852 10.2852-4.6048 10.2852-10.2852 10.2852C6.6049 22.5704 2 17.9656 2 12.2852Z",clipRule:"evenodd"}),a.jsx("path",{d:"m19.8786 18.3487 5.8043 5.8043c.4228.4228.4228 1.1083 0 1.5311-.4228.4228-1.1083.4228-1.5311 0l-5.8043-5.8043 1.5311-1.5311Z"})]})}function Yfe(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("rect",{width:"18.953",height:"16",x:"2.524",y:"4",rx:"2"}),a.jsx("path",{d:"M10.524 4v4m-8 0h18.953M6.524 4v4"})]})}function Kfe(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"M14.5 2.693H6c-1.105 0-2 .833-2 1.861v14.891c0 1.028.895 1.861 2 1.861h12c1.105 0 2-.833 2-1.861V7.812l-5.5-5.119Z"}),a.jsx("path",{d:"M14 2.693v6h6"})]})}function Gfe(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"M14.5 2.693H6c-1.105 0-2 .833-2 1.861v14.891c0 1.028.895 1.861 2 1.861h12c1.105 0 2-.833 2-1.861V7.812l-5.5-5.119Z"}),a.jsx("path",{d:"M14 2.693v6h6M7.998 15.421l2-2-2-2m4 6h4"})]})}function Zfe(e){var t,n;return a.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:a.jsx("path",{d:"m6.391 14.336 1.402-2.71a1.867 1.867 0 0 1 1.626-1.028h10.056c1.223-.002 2.119 1.152 1.813 2.337l-1.439 5.607c-.215.83-.966 1.408-1.823 1.402H4.522c-1.033 0-1.87-.837-1.87-1.869V5.925c0-1.032.837-1.869 1.87-1.869h3.644c.636-.006 1.23.311 1.58.841l.757 1.122c.346.525.932.841 1.561.841h5.542c1.032 0 1.869.837 1.869 1.869v1.869"})})}function wm(){return a.jsx("div",{className:"flex items-center justify-center h-[16px] w-[16px]",children:a.jsxs("svg",{"aria-hidden":"true",className:"w-full h-full text-gray-200 animate-spin dark:text-gray-600 fill-green-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})}function SA(e){var t,n;return a.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"currentColor",strokeWidth:"1.8",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",stroke:"none",d:"M3.564 1.745c-.272.011-.521.142-.688.355C1.311 4.127.456 6.622.456 9.185c0 2.654.906 5.222 2.576 7.286.318.393.894.451 1.288.131.39-.315.449-.887.134-1.279-1.404-1.736-2.168-3.902-2.168-6.138 0-2.158.712-4.258 2.034-5.967.307-.4.234-.971-.164-1.281-.169-.132-.378-.197-.592-.192Zm16.906.005a.8757.8757 0 0 0-.531.187c-.4.304-.474.879-.169 1.281 1.324 1.709 2.035 3.809 2.035 5.967 0 2.236-.763 4.402-2.168 6.138a.9087.9087 0 0 0 .133 1.279c.394.32.97.262 1.286-.131 1.668-2.064 2.574-4.632 2.574-7.286 0-2.563-.845-5.058-2.411-7.085-.149-.19-.366-.315-.603-.344-.05-.006-.097-.011-.146-.006ZM7.092 3.742a.9272.9272 0 0 0-.631.29C5.169 5.436 4.447 7.28 4.447 9.185c0 2.003.792 3.917 2.204 5.345.354.356.935.361 1.293.007.356-.357.359-.933.003-1.287-1.068-1.084-1.674-2.542-1.674-4.065 0-1.447.549-2.848 1.529-3.913.339-.369.313-.945-.055-1.288-.175-.161-.412-.252-.655-.242Zm9.904 0c-.242-.01-.475.081-.654.242-.368.343-.394.919-.055 1.288.982 1.065 1.531 2.466 1.531 3.913 0 1.523-.599 2.981-1.671 4.065-.35.356-.35.93.009 1.287.354.349.931.346 1.286-.007 1.408-1.428 2.202-3.342 2.202-5.345 0-1.905-.723-3.749-2.014-5.153a.9197.9197 0 0 0-.634-.29Zm-4.951 1.71c-2.047 0-3.724 1.684-3.724 3.733 0 1.736 1.203 3.206 2.815 3.61v8.776c0 .509.405.919.909.919.506.002.918-.41.918-.919v-8.776c1.612-.405 2.816-1.874 2.816-3.61 0-2.049-1.687-3.733-3.734-3.733Zm0 1.828c1.063 0 1.906.844 1.906 1.905 0 1.063-.843 1.901-1.906 1.901s-1.899-.838-1.899-1.901c0-1.061.836-1.905 1.899-1.905Z"})})}function EA(e){var t,n;return a.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",strokeWidth:"1.5",children:a.jsx("path",{d:"M12.008 1.666c-7.955 0-12.926 8.613-8.949 15.501 3.977 6.889 13.92 6.889 17.897 0 .907-1.57 1.386-3.352 1.386-5.166 0-5.707-4.627-10.335-10.334-10.335Zm-9.27 10.855h3.169c.035 1.322.263 2.634.675 3.893H3.829a9.1934 9.1934 0 0 1-1.091-3.893Zm9.789-5.973V2.913a8.3791 8.3791 0 0 1 3.375 3.635h-3.375Zm3.817 1.039c.447 1.251.693 2.566.727 3.893h-4.544V7.587h3.817Zm-4.856-4.648v3.609H8.114a8.377 8.377 0 0 1 3.374-3.609Zm0 4.674v3.867H6.944c.035-1.327.28-2.642.728-3.893l3.816.026ZM5.907 11.48H2.738c.07-1.362.443-2.693 1.091-3.893h2.753a13.692 13.692 0 0 0-.675 3.893Zm1.037 1.041h4.544v3.893H7.672a12.5295 12.5295 0 0 1-.728-3.893Zm4.544 4.932v3.635a8.3769 8.3769 0 0 1-3.374-3.635h3.374Zm1.039 3.635v-3.635h3.375a8.3771 8.3771 0 0 1-3.375 3.608v.027Zm0-4.674v-3.893h4.544c-.034 1.327-.28 2.642-.727 3.893h-3.817Zm5.582-3.893h3.169a9.2368 9.2368 0 0 1-1.091 3.893h-2.754c.412-1.259.639-2.571.676-3.893Zm0-1.041a13.7635 13.7635 0 0 0-.676-3.893h2.754a9.2327 9.2327 0 0 1 1.091 3.893h-3.169Zm1.428-4.932h-2.493a9.8857 9.8857 0 0 0-2.543-3.506 9.3305 9.3305 0 0 1 5.01 3.506h.026ZM9.514 3.069A9.9123 9.9123 0 0 0 6.97 6.548H4.504a9.3282 9.3282 0 0 1 5.01-3.479Zm-5.01 14.384h2.493a9.8678 9.8678 0 0 0 2.543 3.505 9.3285 9.3285 0 0 1-5.036-3.505Zm9.997 3.479a9.894 9.894 0 0 0 2.543-3.479h2.493a9.3153 9.3153 0 0 1-5.036 3.479Z"})})}const Qfe=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Jfe=/[\0-\x1F\x7F-\x9F]/,Xfe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,e0e=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;function t0e(e){const t={};e=e||{},t.src_Any=Qfe.source,t.src_Cc=Jfe.source,t.src_Z=e0e.source,t.src_P=Xfe.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function CS(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function c2(e){return Object.prototype.toString.call(e)}function n0e(e){return c2(e)==="[object String]"}function r0e(e){return c2(e)==="[object Object]"}function a0e(e){return c2(e)==="[object RegExp]"}function NA(e){return c2(e)==="[object Function]"}function s0e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const _A={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function o0e(e){return Object.keys(e||{}).reduce(function(t,n){return t||_A.hasOwnProperty(n)},!1)}const i0e={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l0e="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",c0e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function d0e(e){e.__index__=-1,e.__text_cache__=""}function u0e(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function IA(){return function(e,t){t.normalize(e)}}function d2(e){const t=e.re=t0e(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(l0e),n.push(t.src_xn),t.src_tlds=n.join("|");function r(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const s=[];e.__compiled__={};function o(c,u){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+u)}Object.keys(e.__schemas__).forEach(function(c){const u=e.__schemas__[c];if(u===null)return;const h={validate:null,link:null};if(e.__compiled__[c]=h,r0e(u)){a0e(u.validate)?h.validate=u0e(u.validate):NA(u.validate)?h.validate=u.validate:o(c,u),NA(u.normalize)?h.normalize=u.normalize:u.normalize?o(c,u):h.normalize=IA();return}if(n0e(u)){s.push(c);return}o(c,u)}),s.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:IA()};const i=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(s0e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),d0e(e)}function h0e(e,t){const n=e.__index__,r=e.__last_index__,s=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=s,this.text=s,this.url=s}function SS(e,t){const n=new h0e(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function wr(e,t){if(!(this instanceof wr))return new wr(e,t);t||o0e(e)&&(t=e,e={}),this.__opts__=CS({},_A,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=CS({},i0e,e),this.__compiled__={},this.__tlds__=c0e,this.__tlds_replaced__=!1,this.re={},d2(this)}wr.prototype.add=function(e,t){return this.__schemas__[e]=t,d2(this),this},wr.prototype.set=function(e){return this.__opts__=CS(this.__opts__,e),this},wr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,s,o,i,c,u,h;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(t=c.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],c.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=e.indexOf("@"),h>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0},wr.prototype.pretest=function(e){return this.re.pretest.test(e)},wr.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},wr.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(SS(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(SS(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},wr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,SS(this,0)):null},wr.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,r,s){return n!==s[r-1]}).reverse(),d2(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d2(this),this)},wr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},wr.prototype.onCompile=function(){};const Gs=(e,t)=>{const[n,r]=f.useState(e);return f.useEffect(()=>{const s=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(s)}},[e,t]),n};function p0e(){return function(e){let t;function n(){t=setTimeout(()=>{e()},1e3)}function r(){t&&clearTimeout(t)}return{onMouseDown:n,onTouchStart:n,onMouseUp:r,onMouseLeave:r,onTouchMove:r,onTouchEnd:r}}}function km(e){var t,n;return a.jsxs("svg",{viewBox:"0 0 24 24",width:(t=e.width)!=null?t:"14px",height:(n=e.height)!=null?n:"14px",fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M 3 8.992 L 19.686 8.988"}),a.jsx("polyline",{points:"16 16.992000579833984"}),a.jsx("line",{x1:"3",x2:"13.406",y1:"14.992",y2:"14.992"})]})}function jm(e){var t,n;return a.jsxs("svg",{viewBox:"0 0 24 24",width:(t=e.width)!=null?t:"14px",height:(n=e.height)!=null?n:"14px",fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M 3 8.992 L 18 8.992 C 20.309 8.992 21.753 11.492 20.598 13.492 C 20.062 14.42 19.072 14.992 18 14.992 L 14 14.992"}),a.jsx("polyline",{points:"16 12.992 14 14.992 16 16.992"}),a.jsx("line",{x1:"3",x2:"10",y1:"14.992",y2:"14.992"})]})}const $g="/assets/image-not-found-Cx6NJXh5.png",Gu="/assets/no-image-CF2LzJv7.png";function Jl(e){if(!e&&typeof e!="string")return!1;const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return/^https?:\/\//.test(e)?!1:t.test(e)}function xs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function m0e(e){return xs(1,arguments),e instanceof Date||fu(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function al(e){xs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||fu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function f0e(e){if(xs(1,arguments),!m0e(e)&&typeof e!="number")return!1;var t=al(e);return!isNaN(Number(t))}function Zu(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function g0e(e,t){xs(2,arguments);var n=al(e).getTime(),r=Zu(t);return new Date(n+r)}function v0e(e,t){xs(2,arguments);var n=Zu(t);return g0e(e,-n)}var y0e=864e5;function x0e(e){xs(1,arguments);var t=al(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),s=n-r;return Math.floor(s/y0e)+1}function u2(e){xs(1,arguments);var t=1,n=al(e),r=n.getUTCDay(),s=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-s),n.setUTCHours(0,0,0,0),n}function TA(e){xs(1,arguments);var t=al(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var s=u2(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=u2(o);return t.getTime()>=s.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function b0e(e){xs(1,arguments);var t=TA(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=u2(n);return r}var w0e=6048e5;function k0e(e){xs(1,arguments);var t=al(e),n=u2(t).getTime()-b0e(t).getTime();return Math.round(n/w0e)+1}var j0e={};function h2(){return j0e}function p2(e,t){var n,r,s,o,i,c,u,h;xs(1,arguments);var p=h2(),m=Zu((n=(r=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&s!==void 0?s:p.weekStartsOn)!==null&&r!==void 0?r:(u=p.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=al(e),C=x.getUTCDay(),b=(C<m?7:0)+C-m;return x.setUTCDate(x.getUTCDate()-b),x.setUTCHours(0,0,0,0),x}function MA(e,t){var n,r,s,o,i,c,u,h;xs(1,arguments);var p=al(e),m=p.getUTCFullYear(),x=h2(),C=Zu((n=(r=(s=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:x.firstWeekContainsDate)!==null&&r!==void 0?r:(u=x.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,C),b.setUTCHours(0,0,0,0);var g=p2(b,t),k=new Date(0);k.setUTCFullYear(m,0,C),k.setUTCHours(0,0,0,0);var j=p2(k,t);return p.getTime()>=g.getTime()?m+1:p.getTime()>=j.getTime()?m:m-1}function C0e(e,t){var n,r,s,o,i,c,u,h;xs(1,arguments);var p=h2(),m=Zu((n=(r=(s=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:p.firstWeekContainsDate)!==null&&r!==void 0?r:(u=p.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),x=MA(e,t),C=new Date(0);C.setUTCFullYear(x,0,m),C.setUTCHours(0,0,0,0);var b=p2(C,t);return b}var S0e=6048e5;function E0e(e,t){xs(1,arguments);var n=al(e),r=p2(n,t).getTime()-C0e(n,t).getTime();return Math.round(r/S0e)+1}function Xn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var N0e={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Xn(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):Xn(n+1,2)},d:function(e,t){return Xn(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return Xn(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Xn(e.getUTCHours(),t.length)},m:function(e,t){return Xn(e.getUTCMinutes(),t.length)},s:function(e,t){return Xn(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,n-3));return Xn(s,t.length)}};const vd=N0e;var Cm={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_0e={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return vd.y(e,t)},Y:function(e,t,n,r){var s=MA(e,r),o=s>0?s:1-s;if(t==="YY"){var i=o%100;return Xn(i,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Xn(o,t.length)},R:function(e,t){var n=TA(e);return Xn(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Xn(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Xn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Xn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return vd.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Xn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var s=E0e(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Xn(s,t.length)},I:function(e,t,n){var r=k0e(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Xn(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):vd.d(e,t)},D:function(e,t,n){var r=x0e(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Xn(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Xn(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Xn(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Xn(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),s;switch(r===12?s=Cm.noon:r===0?s=Cm.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),s;switch(r>=17?s=Cm.evening:r>=12?s=Cm.afternoon:r>=4?s=Cm.morning:s=Cm.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vd.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):vd.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Xn(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Xn(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):vd.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):vd.s(e,t)},S:function(e,t){return vd.S(e,t)},X:function(e,t,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return DA(o);case"XXXX":case"XX":return Qu(o);case"XXXXX":case"XXX":default:return Qu(o,":")}},x:function(e,t,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();switch(t){case"x":return DA(o);case"xxxx":case"xx":return Qu(o);case"xxxxx":case"xxx":default:return Qu(o,":")}},O:function(e,t,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+LA(o,":");case"OOOO":default:return"GMT"+Qu(o,":")}},z:function(e,t,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+LA(o,":");case"zzzz":default:return"GMT"+Qu(o,":")}},t:function(e,t,n,r){var s=r._originalDate||e,o=Math.floor(s.getTime()/1e3);return Xn(o,t.length)},T:function(e,t,n,r){var s=r._originalDate||e,o=s.getTime();return Xn(o,t.length)}};function LA(e,t){var n=e>0?"-":"+",r=Math.abs(e),s=Math.floor(r/60),o=r%60;if(o===0)return n+String(s);var i=t||"";return n+String(s)+i+Xn(o,2)}function DA(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Xn(Math.abs(e)/60,2)}return Qu(e,t)}function Qu(e,t){var n=t||"",r=e>0?"-":"+",s=Math.abs(e),o=Xn(Math.floor(s/60),2),i=Xn(s%60,2);return r+o+n+i}var OA=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},PA=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},I0e=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return OA(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",OA(r,t)).replace("{{time}}",PA(s,t))},T0e={p:PA,P:I0e};function M0e(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var L0e=["D","DD"],D0e=["YY","YYYY"];function O0e(e){return L0e.indexOf(e)!==-1}function P0e(e){return D0e.indexOf(e)!==-1}function RA(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var R0e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},A0e=function(e,t,n){var r,s=R0e[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const z0e=A0e;function ES(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var F0e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H0e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$0e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},B0e={date:ES({formats:F0e,defaultWidth:"full"}),time:ES({formats:H0e,defaultWidth:"full"}),dateTime:ES({formats:$0e,defaultWidth:"full"})};const W0e=B0e;var V0e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},U0e=function(e,t,n,r){return V0e[e]};const q0e=U0e;function Bg(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=e.formattingValues[i]||e.formattingValues[o]}else{var c=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[u]||e.values[c]}var h=e.argumentCallback?e.argumentCallback(t):t;return s[h]}}var Y0e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},K0e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},G0e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Z0e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Q0e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J0e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},X0e=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ege={ordinalNumber:X0e,era:Bg({values:Y0e,defaultWidth:"wide"}),quarter:Bg({values:K0e,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Bg({values:G0e,defaultWidth:"wide"}),day:Bg({values:Z0e,defaultWidth:"wide"}),dayPeriod:Bg({values:Q0e,defaultWidth:"wide",formattingValues:J0e,defaultFormattingWidth:"wide"})};const tge=ege;function Wg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;var i=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?rge(c,function(m){return m.test(i)}):nge(c,function(m){return m.test(i)}),h;h=e.valueCallback?e.valueCallback(u):u,h=n.valueCallback?n.valueCallback(h):h;var p=t.slice(i.length);return{value:h,rest:p}}}function nge(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function rge(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function age(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var s=r[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;var c=t.slice(s.length);return{value:i,rest:c}}}var sge=/^(\d+)(th|st|nd|rd)?/i,oge=/\d+/i,ige={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lge={any:[/^b/i,/^(a|c)/i]},cge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dge={any:[/1/i,/2/i,/3/i,/4/i]},uge={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pge={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mge={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vge={ordinalNumber:age({matchPattern:sge,parsePattern:oge,valueCallback:function(e){return parseInt(e,10)}}),era:Wg({matchPatterns:ige,defaultMatchWidth:"wide",parsePatterns:lge,defaultParseWidth:"any"}),quarter:Wg({matchPatterns:cge,defaultMatchWidth:"wide",parsePatterns:dge,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wg({matchPatterns:uge,defaultMatchWidth:"wide",parsePatterns:hge,defaultParseWidth:"any"}),day:Wg({matchPatterns:pge,defaultMatchWidth:"wide",parsePatterns:mge,defaultParseWidth:"any"}),dayPeriod:Wg({matchPatterns:fge,defaultMatchWidth:"any",parsePatterns:gge,defaultParseWidth:"any"})},yge={code:"en-US",formatDistance:z0e,formatLong:W0e,formatRelative:q0e,localize:tge,match:vge,options:{weekStartsOn:0,firstWeekContainsDate:1}};const xge=yge;var bge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kge=/^'([^]*?)'?$/,jge=/''/g,Cge=/[a-zA-Z]/;function Ju(e,t,n){var r,s,o,i,c,u,h,p,m,x,C,b,g,k,j,S,E,N;xs(2,arguments);var T=String(t),M=h2(),L=(r=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:M.locale)!==null&&r!==void 0?r:xge,D=Zu((o=(i=(c=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(h=n.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&c!==void 0?c:M.firstWeekContainsDate)!==null&&i!==void 0?i:(m=M.locale)===null||m===void 0||(x=m.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=Zu((C=(b=(g=(k=n==null?void 0:n.weekStartsOn)!==null&&k!==void 0?k:n==null||(j=n.locale)===null||j===void 0||(S=j.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&g!==void 0?g:M.weekStartsOn)!==null&&b!==void 0?b:(E=M.locale)===null||E===void 0||(N=E.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&C!==void 0?C:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!L.localize)throw new RangeError("locale must contain localize property");if(!L.formatLong)throw new RangeError("locale must contain formatLong property");var A=al(e);if(!f0e(A))throw new RangeError("Invalid time value");var B=M0e(A),z=v0e(A,B),R={firstWeekContainsDate:D,weekStartsOn:P,locale:L,_originalDate:A},$=T.match(wge).map(function(_){var U=_[0];if(U==="p"||U==="P"){var K=T0e[U];return K(_,L.formatLong)}return _}).join("").match(bge).map(function(_){if(_==="''")return"'";var U=_[0];if(U==="'")return Sge(_);var K=_0e[U];if(K)return!(n!=null&&n.useAdditionalWeekYearTokens)&&P0e(_)&&RA(_,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&O0e(_)&&RA(_,t,String(e)),K(z,_,L.localize,R);if(U.match(Cge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return _}).join("");return $}function Sge(e){var t=e.match(kge);return t?t[1].replace(jge,"'"):e}var Ege=Object.create,m2=Object.defineProperty,Nge=Object.defineProperties,_ge=Object.getOwnPropertyDescriptor,Ige=Object.getOwnPropertyDescriptors,AA=Object.getOwnPropertyNames,f2=Object.getOwnPropertySymbols,Tge=Object.getPrototypeOf,NS=Object.prototype.hasOwnProperty,zA=Object.prototype.propertyIsEnumerable,FA=(e,t,n)=>t in e?m2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sl=(e,t)=>{for(var n in t||(t={}))NS.call(t,n)&&FA(e,n,t[n]);if(f2)for(var n of f2(t))zA.call(t,n)&&FA(e,n,t[n]);return e},g2=(e,t)=>Nge(e,Ige(t)),HA=(e,t)=>{var n={};for(var r in e)NS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&f2)for(var r of f2(e))t.indexOf(r)<0&&zA.call(e,r)&&(n[r]=e[r]);return n},Mge=(e,t)=>function(){return t||(0,e[AA(e)[0]])((t={exports:{}}).exports,t),t.exports},Lge=(e,t)=>{for(var n in t)m2(e,n,{get:t[n],enumerable:!0})},Dge=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of AA(t))!NS.call(e,s)&&s!==n&&m2(e,s,{get:()=>t[s],enumerable:!(r=_ge(t,s))||r.enumerable});return e},Oge=(e,t,n)=>(n=e!=null?Ege(Tge(e)):{},Dge(t||!e||!e.__esModule?m2(n,"default",{value:e,enumerable:!0}):n,e)),Pge=Mge({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},i={util:{encode:function b(g){return g instanceof c?new c(g.type,b(g.content),g.alias):Array.isArray(g)?g.map(b):g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(b){return Object.prototype.toString.call(b).slice(8,-1)},objId:function(b){return b.__id||Object.defineProperty(b,"__id",{value:++s}),b.__id},clone:function b(g,k){k=k||{};var j,S;switch(i.util.type(g)){case"Object":if(S=i.util.objId(g),k[S])return k[S];j={},k[S]=j;for(var E in g)g.hasOwnProperty(E)&&(j[E]=b(g[E],k));return j;case"Array":return S=i.util.objId(g),k[S]?k[S]:(j=[],k[S]=j,g.forEach(function(N,T){j[T]=b(N,k)}),j);default:return g}},getLanguage:function(b){for(;b;){var g=r.exec(b.className);if(g)return g[1].toLowerCase();b=b.parentElement}return"none"},setLanguage:function(b,g){b.className=b.className.replace(RegExp(r,"gi"),""),b.classList.add("language-"+g)},isActive:function(b,g,k){for(var j="no-"+g;b;){var S=b.classList;if(S.contains(g))return!0;if(S.contains(j))return!1;b=b.parentElement}return!!k}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(b,g){var k=i.util.clone(i.languages[b]);for(var j in g)k[j]=g[j];return k},insertBefore:function(b,g,k,j){j=j||i.languages;var S=j[b],E={};for(var N in S)if(S.hasOwnProperty(N)){if(N==g)for(var T in k)k.hasOwnProperty(T)&&(E[T]=k[T]);k.hasOwnProperty(N)||(E[N]=S[N])}var M=j[b];return j[b]=E,i.languages.DFS(i.languages,function(L,D){D===M&&L!=b&&(this[L]=E)}),E},DFS:function b(g,k,j,S){S=S||{};var E=i.util.objId;for(var N in g)if(g.hasOwnProperty(N)){k.call(g,N,g[N],j||N);var T=g[N],M=i.util.type(T);M==="Object"&&!S[E(T)]?(S[E(T)]=!0,b(T,k,null,S)):M==="Array"&&!S[E(T)]&&(S[E(T)]=!0,b(T,k,N,S))}}},plugins:{},highlight:function(b,g,k){var j={code:b,grammar:g,language:k};if(i.hooks.run("before-tokenize",j),!j.grammar)throw new Error('The language "'+j.language+'" has no grammar.');return j.tokens=i.tokenize(j.code,j.grammar),i.hooks.run("after-tokenize",j),c.stringify(i.util.encode(j.tokens),j.language)},tokenize:function(b,g){var k=g.rest;if(k){for(var j in k)g[j]=k[j];delete g.rest}var S=new p;return m(S,S.head,b),h(b,S,g,S.head,0),C(S)},hooks:{all:{},add:function(b,g){var k=i.hooks.all;k[b]=k[b]||[],k[b].push(g)},run:function(b,g){var k=i.hooks.all[b];if(!(!k||!k.length))for(var j=0,S;S=k[j++];)S(g)}},Token:c};function c(b,g,k,j){this.type=b,this.content=g,this.alias=k,this.length=(j||"").length|0}c.stringify=function b(g,k){if(typeof g=="string")return g;if(Array.isArray(g)){var j="";return g.forEach(function(M){j+=b(M,k)}),j}var S={type:g.type,content:b(g.content,k),tag:"span",classes:["token",g.type],attributes:{},language:k},E=g.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(S.classes,E):S.classes.push(E)),i.hooks.run("wrap",S);var N="";for(var T in S.attributes)N+=" "+T+'="'+(S.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+N+">"+S.content+"</"+S.tag+">"};function u(b,g,k,j){b.lastIndex=g;var S=b.exec(k);if(S&&j&&S[1]){var E=S[1].length;S.index+=E,S[0]=S[0].slice(E)}return S}function h(b,g,k,j,S,E){for(var N in k)if(!(!k.hasOwnProperty(N)||!k[N])){var T=k[N];T=Array.isArray(T)?T:[T];for(var M=0;M<T.length;++M){if(E&&E.cause==N+","+M)return;var L=T[M],D=L.inside,P=!!L.lookbehind,A=!!L.greedy,B=L.alias;if(A&&!L.pattern.global){var z=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,z+"g")}for(var R=L.pattern||L,$=j.next,_=S;$!==g.tail&&!(E&&_>=E.reach);_+=$.value.length,$=$.next){var U=$.value;if(g.length>b.length)return;if(!(U instanceof c)){var K=1,W;if(A){if(W=u(R,_,b,P),!W||W.index>=b.length)break;var V=W.index,G=W.index+W[0].length,Z=_;for(Z+=$.value.length;V>=Z;)$=$.next,Z+=$.value.length;if(Z-=$.value.length,_=Z,$.value instanceof c)continue;for(var F=$;F!==g.tail&&(Z<G||typeof F.value=="string");F=F.next)K++,Z+=F.value.length;K--,U=b.slice(_,Z),W.index-=_}else if(W=u(R,0,U,P),!W)continue;var V=W.index,q=W[0],ne=U.slice(0,V),Q=U.slice(V+q.length),ae=_+U.length;E&&ae>E.reach&&(E.reach=ae);var re=$.prev;ne&&(re=m(g,re,ne),_+=ne.length),x(g,re,K);var le=new c(N,D?i.tokenize(q,D):q,B,q);if($=m(g,re,le),Q&&m(g,$,Q),K>1){var oe={cause:N+","+M,reach:ae};h(b,g,k,$.prev,_,oe),E&&oe.reach>E.reach&&(E.reach=oe.reach)}}}}}}function p(){var b={value:null,prev:null,next:null},g={value:null,prev:b,next:null};b.next=g,this.head=b,this.tail=g,this.length=0}function m(b,g,k){var j=g.next,S={value:k,prev:g,next:j};return g.next=S,j.prev=S,b.length++,S}function x(b,g,k){for(var j=g.next,S=0;S<k&&j!==b.tail;S++)j=j.next;g.next=j,j.prev=g,b.length-=S}function C(b){for(var g=[],k=b.head.next;k!==b.tail;)g.push(k.value),k=k.next;return g}return i}();t.exports=n,n.default=n}}),Ke=Oge(Pge());Ke.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Ke.languages.markup.tag.inside["attr-value"].inside.entity=Ke.languages.markup.entity,Ke.languages.markup.doctype.inside["internal-subset"].inside=Ke.languages.markup,Ke.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Ke.languages.markup.tag,"addInlined",{value:function(e,r){var n={},n=(n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Ke.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:Ke.languages[r]},{});r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Ke.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(Ke.languages.markup.tag,"addAttribute",{value:function(e,t){Ke.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Ke.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Ke.languages.html=Ke.languages.markup,Ke.languages.mathml=Ke.languages.markup,Ke.languages.svg=Ke.languages.markup,Ke.languages.xml=Ke.languages.extend("markup",{}),Ke.languages.ssml=Ke.languages.xml,Ke.languages.atom=Ke.languages.xml,Ke.languages.rss=Ke.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",r=RegExp(r+"-"+r),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":s}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Ke),Ke.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Ke.languages.javascript=Ke.languages.extend("clike",{"class-name":[Ke.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Ke.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Ke.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Ke.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Ke.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Ke.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Ke.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Ke.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Ke.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Ke.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Ke.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Ke.languages.markup&&(Ke.languages.markup.tag.addInlined("script","javascript"),Ke.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Ke.languages.js=Ke.languages.javascript,Ke.languages.actionscript=Ke.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Ke.languages.actionscript["class-name"].alias="function",delete Ke.languages.actionscript.parameter,delete Ke.languages.actionscript["literal-property"],Ke.languages.markup&&Ke.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Ke.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Ke),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(n,r){(n=typeof n=="string"?[n]:n).forEach(function(s){var o=function(m){m.inside||(m.inside={}),m.inside.rest=r},i="doc-comment";if(c=e.languages[s]){var c,u=c[i];if((u=u||(c=e.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(u=c[i]={pattern:u}),Array.isArray(u))for(var h=0,p=u.length;h<p;h++)u[h]instanceof RegExp&&(u[h]={pattern:u[h]}),o(u[h]);else o(u)}})}}),t.addSupport(["java","javascript","php"],t)}(Ke),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Ke),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Ke),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(c,u){u=(u||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return c});return RegExp(h,u)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Ke),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(h){return h=h.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+h+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+o+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+o+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(h){["url","bold","italic","strike","code-snippet"].forEach(function(p){h!==p&&(e.languages.markdown[h].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(h){h.language!=="markdown"&&h.language!=="md"||function p(m){if(m&&typeof m!="string")for(var x=0,C=m.length;x<C;x++){var b,g=m[x];g.type!=="code"?p(g.content):(b=g.content[1],g=g.content[3],b&&g&&b.type==="code-language"&&g.type==="code-block"&&typeof b.content=="string"&&(b=b.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),b="language-"+(b=(/[a-z][\w-]*/i.exec(b)||[""])[0].toLowerCase()),g.alias?typeof g.alias=="string"?g.alias=[g.alias,b]:g.alias.push(b):g.alias=[b]))}}(h.tokens)}),e.hooks.add("wrap",function(h){if(h.type==="code-block"){for(var p="",m=0,x=h.classes.length;m<x;m++){var C=h.classes[m],C=/language-(.+)/.exec(C);if(C){p=C[1];break}}var b,g=e.languages[p];g?h.content=e.highlight(function(k){return k=k.replace(i,""),k=k.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(j,S){var E;return(S=S.toLowerCase())[0]==="#"?(E=S[1]==="x"?parseInt(S.slice(2),16):Number(S.slice(1)),u(E)):c[S]||j})}(h.content),g,p):p&&p!=="none"&&e.plugins.autoloader&&(b="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),h.attributes.id=b,e.plugins.autoloader.loadLanguages(p,function(){var k=document.getElementById(b);k&&(k.innerHTML=e.highlight(k.textContent,e.languages[p],p))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),c={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Ke),Ke.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Ke.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Ke.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(b){return typeof b!="string"&&b.type!=="comment"&&b.type!=="scalar"}),n=0;n<t.length;){var r=t[n++];if(r.type==="keyword"&&r.content==="mutation"){var s=[];if(m(["definition-mutation","punctuation"])&&p(1).content==="("){n+=2;var o=x(/^\($/,/^\)$/);if(o===-1)continue;for(;n<o;n++){var i=p(0);i.type==="variable"&&(C(i,"variable-input"),s.push(i.content))}n=o+1}if(m(["punctuation","property-query"])&&p(0).content==="{"&&(n++,C(p(0),"property-mutation"),0<s.length)){var c=x(/^\{$/,/^\}$/);if(c!==-1)for(var u=n;u<c;u++){var h=t[u];h.type==="variable"&&0<=s.indexOf(h.content)&&C(h,"variable-input")}}}}function p(b){return t[n+b]}function m(b,g){g=g||0;for(var k=0;k<b.length;k++){var j=p(k+g);if(!j||j.type!==b[k])return}return 1}function x(b,g){for(var k=1,j=n;j<t.length;j++){var S=t[j],E=S.content;if(S.type==="punctuation"&&typeof E=="string"){if(b.test(E))k++;else if(g.test(E)&&--k===0)return j}}return-1}function C(b,g){var k=b.alias;k?Array.isArray(k)||(b.alias=k=[k]):b.alias=k=[],k.push(g)}}),Ke.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,s=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(m,x){if(e.languages[m])return{pattern:RegExp("((?:"+x+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}function c(m,x,C){return m={code:m,grammar:x,language:C},e.hooks.run("before-tokenize",m),m.tokens=e.tokenize(m.code,m.grammar),e.hooks.run("after-tokenize",m),m.tokens}function u(m,x,C){var k=e.tokenize(m,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),b=0,g={},k=c(k.map(function(S){if(typeof S=="string")return S;for(var E,N,S=S.content;m.indexOf((N=b++,E="___"+C.toUpperCase()+"_"+N+"___"))!==-1;);return g[E]=S,E}).join(""),x,C),j=Object.keys(g);return b=0,function S(E){for(var N=0;N<E.length;N++){if(b>=j.length)return;var T,M,L,D,P,A,B,z=E[N];typeof z=="string"||typeof z.content=="string"?(T=j[b],(B=(A=typeof z=="string"?z:z.content).indexOf(T))!==-1&&(++b,M=A.substring(0,B),P=g[T],L=void 0,(D={})["interpolation-punctuation"]=s,(D=e.tokenize(P,D)).length===3&&((L=[1,1]).push.apply(L,c(D[1],e.languages.javascript,"javascript")),D.splice.apply(D,L)),L=new e.Token("interpolation",D,r.alias,P),D=A.substring(B+T.length),P=[],M&&P.push(M),P.push(L),D&&(S(A=[D]),P.push.apply(P,A)),typeof z=="string"?(E.splice.apply(E,[N,1].concat(P)),N+=P.length-1):z.content=P)):(B=z.content,Array.isArray(B)?S(B):S([B]))}}(k),new e.Token(C,k,"language-"+C,m)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(m){return typeof m=="string"?m:Array.isArray(m)?m.map(p).join(""):p(m.content)}e.hooks.add("after-tokenize",function(m){m.language in h&&function x(C){for(var b=0,g=C.length;b<g;b++){var k,j,S,E=C[b];typeof E!="string"&&(k=E.content,Array.isArray(k)?E.type==="template-string"?(E=k[1],k.length===3&&typeof E!="string"&&E.type==="embedded-code"&&(j=p(E),E=E.alias,E=Array.isArray(E)?E[0]:E,S=e.languages[E])&&(k[1]=u(j,S,E))):x(k):typeof k!="string"&&x([k]))}}(m.tokens)})}(Ke),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Ke),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Ke),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Ke),Ke.languages.n4js=Ke.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Ke.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Ke.languages.n4jsd=Ke.languages.n4js,function(e){function t(i,c){return RegExp(i.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],s=e.languages.javascript[o],o=(s=e.util.type(s)==="RegExp"?e.languages.javascript[o]={pattern:s}:s).inside||{};(s.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Ke),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(u,h){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return s}),RegExp(u,h)}s=o(s).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function i(u){for(var h=[],p=0;p<u.length;p++){var m=u[p],x=!1;typeof m!="string"&&(m.type==="tag"&&m.content[0]&&m.content[0].type==="tag"?m.content[0].content[0].content==="</"?0<h.length&&h[h.length-1].tagName===c(m.content[0].content[1])&&h.pop():m.content[m.content.length-1].content!=="/>"&&h.push({tagName:c(m.content[0].content[1]),openedBraces:0}):0<h.length&&m.type==="punctuation"&&m.content==="{"?h[h.length-1].openedBraces++:0<h.length&&0<h[h.length-1].openedBraces&&m.type==="punctuation"&&m.content==="}"?h[h.length-1].openedBraces--:x=!0),(x||typeof m=="string")&&0<h.length&&h[h.length-1].openedBraces===0&&(x=c(m),p<u.length-1&&(typeof u[p+1]=="string"||u[p+1].type==="plain-text")&&(x+=c(u[p+1]),u.splice(p+1,1)),0<p&&(typeof u[p-1]=="string"||u[p-1].type==="plain-text")&&(x=c(u[p-1])+x,u.splice(p-1,1),p--),u[p]=new e.Token("plain-text",x,null,x)),m.content&&typeof m.content!="string"&&i(m.content)}}var c=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(c).join(""):""};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||i(u.tokens)})}(Ke),function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Ke),Ke.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Ke.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Ke.languages.swift}),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Ke),Ke.languages.c=Ke.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Ke.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Ke.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Ke.languages.c.string],char:Ke.languages.c.char,comment:Ke.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Ke.languages.c}}}}),Ke.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Ke.languages.c.boolean,Ke.languages.objectivec=Ke.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Ke.languages.objectivec["class-name"],Ke.languages.objc=Ke.languages.objectivec,Ke.languages.reason=Ke.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Ke.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Ke.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Ke),Ke.languages.go=Ke.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Ke.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Ke.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Ke),Ke.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Ke.languages.python["string-interpolation"].inside.interpolation.inside.rest=Ke.languages.python,Ke.languages.py=Ke.languages.python;var Ni={};Lge(Ni,{dracula:()=>Age,duotoneDark:()=>Fge,duotoneLight:()=>$ge,github:()=>Wge,jettwaveDark:()=>d1e,jettwaveLight:()=>h1e,nightOwl:()=>Uge,nightOwlLight:()=>Yge,oceanicNext:()=>Gge,okaidia:()=>Qge,oneDark:()=>m1e,oneLight:()=>g1e,palenight:()=>Xge,shadesOfPurple:()=>t1e,synthwave84:()=>r1e,ultramin:()=>s1e,vsDark:()=>$A,vsLight:()=>l1e});var Rge={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Age=Rge,zge={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Fge=zge,Hge={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},$ge=Hge,Bge={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Wge=Bge,Vge={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Uge=Vge,qge={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Yge=qge,vo={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},Kge={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:vo.keyword}},{types:["attr-value"],style:{color:vo.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:vo.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:vo.primitive}},{types:["boolean"],style:{color:vo.boolean}},{types:["tag"],style:{color:vo.tag}},{types:["string"],style:{color:vo.string}},{types:["punctuation"],style:{color:vo.string}},{types:["selector","char","builtin","inserted"],style:{color:vo.char}},{types:["function"],style:{color:vo.function}},{types:["operator","entity","url","variable"],style:{color:vo.variable}},{types:["keyword"],style:{color:vo.keyword}},{types:["atrule","class-name"],style:{color:vo.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Gge=Kge,Zge={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Qge=Zge,Jge={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Xge=Jge,e1e={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},t1e=e1e,n1e={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},r1e=n1e,a1e={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},s1e=a1e,o1e={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},$A=o1e,i1e={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},l1e=i1e,c1e={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},d1e=c1e,u1e={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},h1e=u1e,p1e={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},m1e=p1e,f1e={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},g1e=f1e,v1e=(e,t)=>{const{plain:n}=e,r=e.styles.reduce((s,o)=>{const{languages:i,style:c}=o;return i&&!i.includes(t)||o.types.forEach(u=>{const h=sl(sl({},s[u]),c);s[u]=h}),s},{});return r.root=n,r.plain=g2(sl({},n),{backgroundColor:void 0}),r},BA=v1e,y1e=(e,t)=>{const[n,r]=f.useState(BA(t,e)),s=f.useRef(),o=f.useRef();return f.useEffect(()=>{(t!==s.current||e!==o.current)&&(s.current=t,o.current=e,r(BA(t,e)))},[e,t]),n},x1e=e=>f.useCallback(t=>{var n=t,{className:r,style:s,line:o}=n,i=HA(n,["className","style","line"]);const c=g2(sl({},i),{className:dn("token-line",r)});return typeof e=="object"&&"plain"in e&&(c.style=e.plain),typeof s=="object"&&(c.style=sl(sl({},c.style||{}),s)),c},[e]),b1e=e=>{const t=f.useCallback(({types:n,empty:r})=>{if(e!=null){{if(n.length===1&&n[0]==="plain")return r!=null?{display:"inline-block"}:void 0;if(n.length===1&&r!=null)return e[n[0]]}return Object.assign(r!=null?{display:"inline-block"}:{},...n.map(s=>e[s]))}},[e]);return f.useCallback(n=>{var r=n,{token:s,className:o,style:i}=r,c=HA(r,["token","className","style"]);const u=g2(sl({},c),{className:dn("token",...s.types,o),children:s.content,style:t(s)});return i!=null&&(u.style=sl(sl({},u.style||{}),i)),u},[t])},w1e=/\r\n|\r|\n/,WA=e=>{e.length===0?e.push({types:["plain"],content:"\n",empty:!0}):e.length===1&&e[0].content===""&&(e[0].content="\n",e[0].empty=!0)},VA=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},k1e=e=>{const t=[[]],n=[e],r=[0],s=[e.length];let o=0,i=0,c=[];const u=[c];for(;i>-1;){for(;(o=r[i]++)<s[i];){let h,p=t[i];const m=n[i][o];if(typeof m=="string"?(p=i>0?p:["plain"],h=m):(p=VA(p,m.type),m.alias&&(p=VA(p,m.alias)),h=m.content),typeof h!="string"){i++,t.push(p),n.push(h),r.push(0),s.push(h.length);continue}const x=h.split(w1e),C=x.length;c.push({types:p,content:x[0]});for(let b=1;b<C;b++)WA(c),u.push(c=[]),c.push({types:p,content:x[b]})}i--,t.pop(),n.pop(),r.pop(),s.pop()}return WA(c),u},UA=k1e,j1e=({prism:e,code:t,grammar:n,language:r})=>{const s=f.useRef(e);return f.useMemo(()=>{if(n==null)return UA([t]);const o={code:t,grammar:n,language:r,tokens:[]};return s.current.hooks.run("before-tokenize",o),o.tokens=s.current.tokenize(t,n),s.current.hooks.run("after-tokenize",o),UA(o.tokens)},[t,n,r])},C1e=({children:e,language:t,code:n,theme:r,prism:s})=>{const o=t.toLowerCase(),i=y1e(o,r),c=x1e(i),u=b1e(i),h=s.languages[o],p=j1e({prism:s,language:o,code:n,grammar:h});return e({tokens:p,className:"prism-code language-".concat(o),style:i!=null?i.root:{},getLineProps:c,getTokenProps:u})},Vg=e=>f.createElement(C1e,g2(sl({},e),{prism:e.prism||Ke,theme:e.theme||$A,code:e.code,language:e.language}));function S1e(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"14px",className:e.className,height:(n=e.height)!=null?n:"14px",viewBox:"30.325 6.289 29.119 25.859",xmlns:"http://www.w3.org/2000/svg",stroke:"none",fill:"currentColor",children:[a.jsx("path",{d:"M40.554 17.082c0-.309-.073-.627-.195-.917-.123-.29-.296-.553-.496-.754-.201-.2-.464-.373-.754-.495-.29-.123-.608-.195-.917-.195-.196 0-.406.03-.609.084-.204.055-.401.134-.571.232-.372.215-.667.541-.869.906-.203.365-.312.769-.312 1.139s.109.774.312 1.139c.202.365.497.692.869.906.371.214.801.307 1.219.299.417-.007.822-.114 1.142-.299.32-.185.616-.482.831-.84.215-.358.35-.776.35-1.205Zm-4.369-2.007c.271-.27.568-.484.9-.627.332-.143.699-.217 1.108-.207.261-.004.503.026.736.09.234.064.458.16.684.29.496.287.85.649 1.082 1.067.231.417.338.889.338 1.394 0 .506-.107.977-.338 1.394-.232.417-.586.779-1.082 1.065-.496.287-.987.414-1.464.405-.477-.008-.939-.151-1.377-.405-.438-.253-.803-.581-1.053-.99-.251-.408-.387-.896-.367-1.469-.01-.409.063-.776.206-1.108.144-.332.357-.629.627-.899Z"}),a.jsx("path",{d:"m58.665 30.709-.014-3.279-.014-3.28-.001-.063v-.064l-2.307-3.991-2.306-3.991-1.644 2.858-1.644 2.858c-.075.17-.17.273-.288.333-.118.06-.26.078-.426.078-.166 0-.306-.018-.424-.078-.118-.061-.214-.163-.289-.333l-.891-1.531-.891-1.531-.208-.356-.208-.357-2.424 4.189-2.425 4.189c-.041.086-.085.145-.14.191-.055.047-.121.081-.205.116-.084.036-.154.06-.226.068-.072.007-.145-.002-.236-.031l-.009-.003-.009-.002-.02-.003-.019-.002c-1.888-.219-3.672-.086-5.284.19-1.611.276-3.051.695-4.248 1.047l-.53.153-.529.153v2.472c.01.115.044.248.093.37s.114.234.188.307c.073.074.185.139.307.188.123.049.255.082.37.093h25.943c.115-.011.247-.044.37-.093.122-.049.234-.114.307-.188.074-.073.139-.185.188-.307.049-.122.082-.255.093-.37Zm.383-16.343.169-.177.168-.177c.11-.115.049-.009-.038.126-.088.135-.203.298-.203.298v16.273c.011.215-.023.398-.095.562-.072.165-.182.311-.326.454-.143.143-.289.254-.454.326-.164.072-.346.106-.562.095H31.764c-.215.011-.398-.022-.562-.095-.164-.072-.31-.183-.454-.326-.143-.143-.253-.289-.326-.454-.072-.164-.105-.346-.095-.562V11.713c-.01-.216.023-.399.095-.563.073-.164.183-.31.326-.453.144-.143.29-.254.454-.326.164-.073.347-.106.562-.096h14.394c.024.113.041.193.065.287.025.095.057.205.112.377.024.075 0 .028-.03-.037s-.066-.148-.066-.148H31.764c-.115.011-.247.044-.37.093-.122.049-.233.114-.307.188-.073.073-.138.185-.188.307-.049.123-.082.255-.093.371v16.029l.307-.09.307-.09.156-.046.155-.045c1.256-.369 2.717-.802 4.348-1.083 1.632-.281 3.434-.409 5.371-.166l.157.02.157.02.08-.137.079-.138 2.232-3.878 2.232-3.878c.075-.169.17-.272.288-.333.118-.06.259-.078.425-.078.166 0 .307.018.425.079.117.06.212.163.287.333l1.1 1.902 1.101 1.902.208-.356.208-.357 1.452-2.494 1.452-2.495a.4813.4813 0 0 1 .039-.063c.015-.02.03-.039.048-.058.079-.118.164-.198.265-.247.1-.048.216-.064.357-.053.128-.011.237.005.334.05.098.045.183.117.263.217.026.023.046.044.063.067.017.022.031.047.047.078l1.958 3.389 1.958 3.389v-8.435c.125-.103.234-.197.347-.3.113-.104.229-.217.367-.36l-.17.175-.169.176.004.003Z"}),a.jsx("path",{fill:"red",d:"M53.247 6.641c-.374.007-.681.049-.951.119-.271.071-.505.171-.736.294l-.206.112-.207.112-.208.112-.209.112-.039-.039-.039-.04-.045.085-.046.085-.076.042-.076.041.035.036.035.035-.222.418-.223.418c-.152.29-.266.587-.335.919-.068.332-.09.698-.059 1.126.102.666.366 1.272.736 1.776s.846.905 1.372 1.163c.539.22 1.088.327 1.626.314.539-.013 1.067-.146 1.564-.403l.206-.112.206-.112.208-.112.208-.112.048.048.047.048.3-.597.299-.597c.276-.582.394-1.2.375-1.798-.019-.599-.174-1.177-.445-1.677-.309-.495-.754-.94-1.292-1.266-.539-.326-1.17-.532-1.851-.55Zm2.741 6.611-2.864-2.862-2.864-2.863.13-.122.13-.123c.366-.339.798-.588 1.264-.751.466-.163.965-.242 1.464-.242.69 0 1.369.157 1.967.486.598.329 1.116.829 1.484 1.514.214.331.37.676.47 1.021.1.345.144.691.134 1.024-.01.335-.075.671-.182.997-.107.326-.257.641-.437.932a3.872 3.872 0 0 1-.21.359c-.076.114-.156.224-.241.328l-.122.151Zm-5.559-.186c-.377-.36-.669-.779-.865-1.248-.196-.47-.296-.99-.291-1.554-.002-.36.042-.708.132-1.042.09-.333.225-.652.406-.955.065-.129.134-.252.208-.367.075-.116.153-.224.235-.325l.123-.152.122-.152 2.864 2.861 2.863 2.862-.128.123-.129.123c-.333.318-.739.573-1.199.746-.46.173-.974.264-1.525.254-.566.006-1.09-.101-1.563-.302-.473-.202-.894-.499-1.253-.872Z"})]})}function E1e({fallback:e,onErrorCallback:t=()=>{},hasError:n=!1,src:r,...s}){const[o,i]=f.useState(!n);return o&&!n?a.jsx("img",{src:r,onError:()=>{o&&i(!1),t()},...s}):e?a.jsx("img",{src:e,...s,alt:"404 Not Found"}):a.jsx(De,{text:"404 / broken image link",children:a.jsx(S1e,{className:"mb-1 text-gray-400",width:"50px",height:"36px"})})}const _i=f.memo(E1e,(e,t)=>e.src===t.src),_S=({delay:e=800,onCopied:t=()=>{}})=>{const[n,r]=f.useState(!1);return[n,s=>{(s==null?void 0:s.length)>0&&!n&&(r(!0),setTimeout(()=>{Sa("copy_text",{text:s}).then(o=>{o==="ok"?(requestAnimationFrame(()=>{r(!1)}),t()):(r(!1),console.error("Failed to copy text",o))}).catch(o=>{r(!1),console.error("Failed to copy text",o)})},e))}]},IS=({delay:e=800,onPasted:t=()=>{}})=>{const[n,r]=f.useState(""),[s,o]=f.useState(null),{copyPasteDelay:i}=ut(Nr),c=f.useRef(0),u=(h,p=0)=>{Sa("copy_paste",{text:h,delay:p}).then(m=>{m==="ok"?requestAnimationFrame(()=>{r(""),t()}):(r(""),console.error("Failed to copy paste text",m))}).catch(m=>{r(""),console.error("Failed to copy paste text",m)})};return f.useEffect(()=>(s&&s>0?c.current=setInterval(()=>{o(h=>h?h-1:null)},1e3):s===0?(n&&(o(null),setTimeout(()=>{u(n,0)},e)),clearInterval(c.current)):c.current&&clearInterval(c.current),()=>{c.current&&clearInterval(c.current)}),[s,n]),[n,s,(h,p)=>{p=p!=null?p:i,h&&!n&&(r(h),p>0?o(p):setTimeout(()=>{u(h,p)},e))}]};class N1e{constructor(t){gt(this,"codes");this.codes=[],this.setCodes(t)}closeTags(t){let n=t;return this.codes.forEach(({tag:r})=>{const s="[".concat(r,"]"),o="[/".concat(r,"]"),i=[];let c=0;for(;c<n.length;)n.substr(c,s.length)===s?(i.push(c),c+=s.length):n.substr(c,o.length)===o?(i.pop(),c+=o.length):c++;for(;i.length>0;)i.pop(),n+=o}),n}parse(t){let n=[t];for(const{regexp:r,replacement:s}of this.codes)n=n.flatMap((o,i)=>typeof o=="string"?this.replaceText(o,r,s,i):o);return n=n.flatMap(r=>typeof r=="string"?this.linkifyText(r):r),n.length===1?n[0]:a.jsx(a.Fragment,{children:n})}linkifyText(t){const n=wr().match(t);if(!n)return t;const r=[];let s=0;return n.forEach((o,i)=>{r.push(t.slice(s,o.index)),r.push(a.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Tl(mr(o.url))},children:o.raw},"link-".concat(i))),s=o.lastIndex}),r.push(t.slice(s)),r}replaceText(t,n,r,s){let o=0;const i=[];return t.replace(n,(c,u,h)=>(h>o&&i.push(t.substring(o,h)),typeof r=="function"?i.push(r(u,Date.now()+s)):i.push(r),o=h+c.length,c)),o<t.length&&i.push(t.substring(o)),i}add(t,n,r){return this.codes.push({tag:r,regexp:new RegExp(t,"igms"),replacement:n}),this}remove(t){let n=t;return this.codes.forEach(({tag:r})=>{const s=new RegExp("\\[".concat(r,"\\]"),"gi"),o=new RegExp("\\[/".concat(r,"\\]"),"gi");n=n.replace(s,""),n=n.replace(o,"")}),n}setCodes(t){return this.codes=Object.keys(t).map(n=>{const r=t[n],s=n.match(/\\\[(.+?)\\\]/);return{tag:s?s[1]:"unknown",regexp:new RegExp(n,"igms"),replacement:r}}),this}}const qA=({text:e,copyText:t,id:n,parser:r})=>{const s=r?r.parse(e):e,{t:o}=wt(),[i,c]=_S({}),[u,h,p]=IS({}),m=i||u;return a.jsxs("span",{onDoubleClick:x=>{x.preventDefault(),nn.value?p(r?r.remove(t):t):c(r?r.remove(t):t)},className:"".concat(m?"dark:!border-green-800":""," inline-flex relative select-none items-center border rounded-md px-1.5 py-[2px] focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover:bg-green-50 border-slate-300 dark:hover:bg-green-950 dark:border-slate-600 cursor-pointer"),children:[a.jsx("span",{children:s}),m&&!h?a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 pointer-events-none px-2 !rounded-md absolute right-0 w-full h-full flex items-center justify-center z-100",children:a.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white",children:[a.jsx(Dt,{size:14,className:"mr-1"}),i?o("Copied",{ns:"common"}):u?o("Pasted",{ns:"common"}):""]})}):m&&h&&h>0&&a.jsx(it,{className:"ml-1 bg-green-700 dark:bg-green-800 dark:text-white !rounded-md pointer-events-none px-2 text-white absolute right-0 w-full h-full flex items-center justify-center",children:o("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:h})}),a.jsx(Yn,{className:"ml-1 text-slate-400 h-full py-0.5 hover:text-green-700",onClick:x=>{x.preventDefault(),nn.value?p(r?r.remove(t):t):c(r?r.remove(t):t)},children:a.jsx(De,{text:nn.value?o("Copy and Paste",{ns:"common"}):o("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:14}):a.jsx(qa,{size:14})})})]},n)},YA=({txt:e,id:t})=>{const n=s=>{if(s.length<=1)return s;if(s.length===2)return"".concat(s[0],"\u2022");const o=s[0],i=s[s.length-1],c=s.substring(1,s.length-1).split("").map(()=>"\u2022").join("");return"".concat(o).concat(c).concat(i)},r=typeof e=="string"?e.split(/(\s+)/).map(s=>/\s/.test(s)?s:n(s)).join(""):f.isValidElement(e)?f.cloneElement(e,e.props,...f.Children.toArray(e.props.children).map(s=>YA({txt:s,id:Math.random()*1e3}))):"\u2022";return a.jsx("span",{className:"masked-or-blanked",children:r},t)},KA=({txt:e,id:t})=>{if(typeof e=="string"&&e.length<=2)return a.jsx("span",{children:e});const n=typeof e=="string"?e.split("").map(r=>/\s/.test(r)?r:"\u2588").join(""):f.isValidElement(e)?f.cloneElement(e,e.props,...f.Children.toArray(e.props.children).map(r=>KA({txt:r,id:Math.random()*1e3}))):"\u2588";return a.jsx("span",{className:"text-gray-200 dark:text-gray-600 masked-or-blanked",children:n},t)},_1e=({text:e,id:t})=>a.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-700 dark:text-slate-100",children:e},t),Xl=new N1e({"\\[copy\\](.+?)\\[/copy\\]":(e,t)=>a.jsx(qA,{text:e,copyText:e.repeat(1),id:t,parser:Xl}),"\\[mask\\](.+?)\\[/mask\\]":(e,t)=>a.jsx(YA,{txt:e,id:t}),"\\[blank\\](.+?)\\[/blank\\]":(e,t)=>a.jsx(KA,{txt:e,id:t}),"\\[hl\\](.+?)\\[/hl\\]":(e,t)=>a.jsx(_1e,{text:e,id:t}),"\\[h\\](.+?)\\[/h\\]":(e,t)=>a.jsx("span",{className:"text-lg font-semibold",children:e},t),"\\[b\\](.+?)\\[/b\\]":(e,t)=>a.jsx("strong",{children:e},t),"\\[i\\](.+?)\\[/i\\]":(e,t)=>a.jsx("span",{className:"italic",children:e},t)}),GA=(e,t,n)=>{var o;const r=zM(t),s=new RegExp("(".concat(r,")"),"gi");if(typeof e=="string"){const i=e.split(s),c=f.createRef();return i.map((u,h)=>(n.current.push(c),u.toLowerCase()===t.toLowerCase()?a.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:Ei(c),children:u},h):u))}else if(f.isValidElement(e))if((o=e==null?void 0:e.props)!=null&&o.text&&typeof e.props.text=="string"){const i=e.props.text.split(s),c=f.createRef();return f.cloneElement(e,{...e.props,text:a.jsx("span",{children:i.map((u,h)=>(n.current.push(c),u.toLowerCase()===t.toLowerCase()?a.jsx("span",{className:"bg-yellow-300 dark:bg-yellow-600 search-pulse-animation",ref:Ei(c),children:Xl.parse(u)},h):a.jsx("span",{children:Xl.parse(u)})))})},e.props.children)}else return f.cloneElement(e,e.props,...f.Children.toArray(e.props.children).map(i=>GA(i,t,n)));else return e},v2=({isWrapped:e,searchTerm:t,valuePreview:n,isCode:r,isImage:s,isMasked:o,isLargeView:i,trimmedValue:c,hasLinkCard:u,metadataLinkByItemId:h,metadataLinkImageWidth:p=24,isImageData:m,morePreviewLines:x,isDark:C,isExpanded:b})=>{const g=f.useRef([]),k=f.useMemo(()=>{if(!m&&!r&&!s&&n)return o?Ep(Xl.remove(n)):Xl.parse(n)},[n]),j=f.useMemo(()=>{if(!m&&!r&&!s&&c)return o?Ep(Xl.remove(c)):Xl.parse(c)},[c]),S=f.useMemo(()=>t.length>1?(g.current=[],GA(j,t,g)):b?j:k,[b,t,j,k]);return f.useEffect(()=>{var E;g.current.length>0&&((E=g.current[0].current)==null||E.scrollIntoView({behavior:"smooth",block:"center"}))},[S]),a.jsxs(xm,{className:"clip-card-text-view ".concat(!b||x==null?"code-scroll-x":""),options:{scrollbars:{theme:C?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxHeight:i?"calc(100vh - 240px)":b||x==null?200:120,maxWidth:"100%"},children:[u&&a.jsx(J,{className:"self-start mt-1 mb-1 text-xs w-full select-none overflow-hidden",children:a.jsx(bm,{isDisabled:mr(c)!==(h==null?void 0:h.linkUrl),title:h==null?void 0:h.linkTitle,description:h==null?void 0:h.linkDescription,favicon:h==null?void 0:h.linkFavicon,link:h==null?void 0:h.linkUrl,imageWidth:p,image:h==null?void 0:h.linkImage,domain:h==null?void 0:h.linkDomain})}),a.jsxs(jg,{className:"self-start text-sm font-normal select-text ".concat(e?"whitespace-pre-wrap":"whitespace-pre"," ").concat(b?"!overflow-visible pb-1.5":"overflow-hidden text-ellipsis"),children:[S,!b&&x&&a.jsx("span",{className:"select-none",children:"..."})]})]})};f.memo(v2);var ZA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){var n=navigator.userAgent,r=navigator.platform,s=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),c=/Edge\/(\d+)/.exec(n),u=o||i||c,h=u&&(o?document.documentMode||6:+(c||i)[1]),p=!c&&/WebKit\//.test(n),m=p&&/Qt\/\d+\.\d+/.test(n),x=!c&&/Chrome\/(\d+)/.exec(n),C=x&&+x[1],b=/Opera\//.test(n),g=/Apple Computer/.test(navigator.vendor),k=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),j=/PhantomJS/.test(n),S=g&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),E=/Android/.test(n),N=S||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),T=S||/Mac/.test(r),M=/\bCrOS\b/.test(n),L=/win/i.test(r),D=b&&n.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(b=!1,p=!0);var P=T&&(m||b&&(D==null||D<12.11)),A=s||u&&h>=9;function B(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var z=function(l,d){var y=l.className,v=B(d).exec(y);if(v){var w=y.slice(v.index+v[0].length);l.className=y.slice(0,v.index)+(w?v[1]+w:"")}};function R(l){for(var d=l.childNodes.length;d>0;--d)l.removeChild(l.firstChild);return l}function $(l,d){return R(l).appendChild(d)}function _(l,d,y,v){var w=document.createElement(l);if(y&&(w.className=y),v&&(w.style.cssText=v),typeof d=="string")w.appendChild(document.createTextNode(d));else if(d)for(var I=0;I<d.length;++I)w.appendChild(d[I]);return w}function U(l,d,y,v){var w=_(l,d,y,v);return w.setAttribute("role","presentation"),w}var K;document.createRange?K=function(l,d,y,v){var w=document.createRange();return w.setEnd(v||l,y),w.setStart(l,d),w}:K=function(l,d,y){var v=document.body.createTextRange();try{v.moveToElementText(l.parentNode)}catch{return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",d),v};function W(l,d){if(d.nodeType==3&&(d=d.parentNode),l.contains)return l.contains(d);do if(d.nodeType==11&&(d=d.host),d==l)return!0;while(d=d.parentNode)}function G(l){var d=l.ownerDocument||l,y;try{y=l.activeElement}catch{y=d.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function Z(l,d){var y=l.className;B(d).test(y)||(l.className+=(y?" ":"")+d)}function F(l,d){for(var y=l.split(" "),v=0;v<y.length;v++)y[v]&&!B(y[v]).test(d)&&(d+=" "+y[v]);return d}var V=function(l){l.select()};S?V=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:u&&(V=function(l){try{l.select()}catch{}});function q(l){return l.display.wrapper.ownerDocument}function ne(l){return Q(l.display.wrapper)}function Q(l){return l.getRootNode?l.getRootNode():l.ownerDocument}function ae(l){return q(l).defaultView}function re(l){var d=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,d)}}function le(l,d,y){d||(d={});for(var v in l)l.hasOwnProperty(v)&&(y!==!1||!d.hasOwnProperty(v))&&(d[v]=l[v]);return d}function oe(l,d,y,v,w){d==null&&(d=l.search(/[^\s\u00a0]/),d==-1&&(d=l.length));for(var I=v||0,O=w||0;;){var H=l.indexOf(" ",I);if(H<0||H>=d)return O+(d-I);O+=H-I,O+=y-O%y,I=H+1}}var ie=function(){this.id=null,this.f=null,this.time=0,this.handler=re(this.onTimeout,this)};ie.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},ie.prototype.set=function(l,d){this.f=d;var y=+new Date+l;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=y)};function de(l,d){for(var y=0;y<l.length;++y)if(l[y]==d)return y;return-1}var xe=50,je={toString:function(){return"CodeMirror.Pass"}},Ee={scroll:!1},Te={origin:"*mouse"},Me={origin:"+move"};function ze(l,d,y){for(var v=0,w=0;;){var I=l.indexOf(" ",v);I==-1&&(I=l.length);var O=I-v;if(I==l.length||w+O>=d)return v+Math.min(O,d-w);if(w+=I-v,w+=y-w%y,v=I+1,w>=d)return v}}var qe=[""];function Ye(l){for(;qe.length<=l;)qe.push(Ve(qe)+" ");return qe[l]}function Ve(l){return l[l.length-1]}function Lt(l,d){for(var y=[],v=0;v<l.length;v++)y[v]=d(l[v],v);return y}function $e(l,d,y){for(var v=0,w=y(d);v<l.length&&y(l[v])<=w;)v++;l.splice(v,0,d)}function st(){}function At(l,d){var y;return Object.create?y=Object.create(l):(st.prototype=l,y=new st),d&&le(d,y),y}var Qt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Vt(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||Qt.test(l))}function _e(l,d){return d?d.source.indexOf("\\w")>-1&&Vt(l)?!0:d.test(l):Vt(l)}function sn(l){for(var d in l)if(l.hasOwnProperty(d)&&l[d])return!1;return!0}var Ht=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function kt(l){return l.charCodeAt(0)>=768&&Ht.test(l)}function rn(l,d,y){for(;(y<0?d>0:d<l.length)&&kt(l.charAt(d));)d+=y;return d}function Zt(l,d,y){for(var v=d>y?-1:1;;){if(d==y)return d;var w=(d+y)/2,I=v<0?Math.ceil(w):Math.floor(w);if(I==d)return l(I)?d:y;l(I)?y=I:d=I+v}}function Jt(l,d,y,v){if(!l)return v(d,y,"ltr",0);for(var w=!1,I=0;I<l.length;++I){var O=l[I];(O.from<y&&O.to>d||d==y&&O.to==d)&&(v(Math.max(O.from,d),Math.min(O.to,y),O.level==1?"rtl":"ltr",I),w=!0)}w||v(d,y,"ltr")}var gn=null;function zt(l,d,y){var v;gn=null;for(var w=0;w<l.length;++w){var I=l[w];if(I.from<d&&I.to>d)return w;I.to==d&&(I.from!=I.to&&y=="before"?v=w:gn=w),I.from==d&&(I.from!=I.to&&y!="before"?v=w:gn=w)}return v!=null?v:gn}var Mn=function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",d="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(ee){return ee<=247?l.charAt(ee):1424<=ee&&ee<=1524?"R":1536<=ee&&ee<=1785?d.charAt(ee-1536):1774<=ee&&ee<=2220?"r":8192<=ee&&ee<=8203?"w":ee==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,I=/[LRr]/,O=/[Lb1n]/,H=/[1n]/;function Y(ee,ce,me){this.level=ee,this.from=ce,this.to=me}return function(ee,ce){var me=ce=="ltr"?"L":"R";if(ee.length==0||ce=="ltr"&&!v.test(ee))return!1;for(var Se=ee.length,we=[],Fe=0;Fe<Se;++Fe)we.push(y(ee.charCodeAt(Fe)));for(var Ue=0,nt=me;Ue<Se;++Ue){var lt=we[Ue];lt=="m"?we[Ue]=nt:nt=lt}for(var ft=0,ct=me;ft<Se;++ft){var _t=we[ft];_t=="1"&&ct=="r"?we[ft]="n":I.test(_t)&&(ct=_t,_t=="r"&&(we[ft]="R"))}for(var Ut=1,qt=we[0];Ut<Se-1;++Ut){var xn=we[Ut];xn=="+"&&qt=="1"&&we[Ut+1]=="1"?we[Ut]="1":xn==","&&qt==we[Ut+1]&&(qt=="1"||qt=="n")&&(we[Ut]=qt),qt=xn}for(var rr=0;rr<Se;++rr){var da=we[rr];if(da==",")we[rr]="N";else if(da=="%"){var jr=void 0;for(jr=rr+1;jr<Se&&we[jr]=="%";++jr);for(var eo=rr&&we[rr-1]=="!"||jr<Se&&we[jr]=="1"?"1":"N",Es=rr;Es<jr;++Es)we[Es]=eo;rr=jr-1}}for(var Ur=0,Ns=me;Ur<Se;++Ur){var wa=we[Ur];Ns=="L"&&wa=="1"?we[Ur]="L":I.test(wa)&&(Ns=wa)}for(var Zr=0;Zr<Se;++Zr)if(w.test(we[Zr])){var qr=void 0;for(qr=Zr+1;qr<Se&&w.test(we[qr]);++qr);for(var Mr=(Zr?we[Zr-1]:me)=="L",_s=(qr<Se?we[qr]:me)=="L",_f=Mr==_s?Mr?"L":"R":me,Wd=Zr;Wd<qr;++Wd)we[Wd]=_f;Zr=qr-1}for(var za=[],yl,ua=0;ua<Se;)if(O.test(we[ua])){var b6=ua;for(++ua;ua<Se&&O.test(we[ua]);++ua);za.push(new Y(0,b6,ua))}else{var mc=ua,Ih=za.length,Th=ce=="rtl"?1:0;for(++ua;ua<Se&&we[ua]!="L";++ua);for(var ss=mc;ss<ua;)if(H.test(we[ss])){mc<ss&&(za.splice(Ih,0,new Y(1,mc,ss)),Ih+=Th);var If=ss;for(++ss;ss<ua&&H.test(we[ss]);++ss);za.splice(Ih,0,new Y(2,If,ss)),Ih+=Th,mc=ss}else++ss;mc<ua&&za.splice(Ih,0,new Y(1,mc,ua))}return ce=="ltr"&&(za[0].level==1&&(yl=ee.match(/^\s+/))&&(za[0].from=yl[0].length,za.unshift(new Y(0,0,yl[0].length))),Ve(za).level==1&&(yl=ee.match(/\s+$/))&&(Ve(za).to-=yl[0].length,za.push(new Y(0,Se-yl[0].length,Se)))),ce=="rtl"?za.reverse():za}}();function Ce(l,d){var y=l.order;return y==null&&(y=l.order=Mn(l.text,d)),y}var Be=[],ke=function(l,d,y){if(l.addEventListener)l.addEventListener(d,y,!1);else if(l.attachEvent)l.attachEvent("on"+d,y);else{var v=l._handlers||(l._handlers={});v[d]=(v[d]||Be).concat(y)}};function Qe(l,d){return l._handlers&&l._handlers[d]||Be}function ge(l,d,y){if(l.removeEventListener)l.removeEventListener(d,y,!1);else if(l.detachEvent)l.detachEvent("on"+d,y);else{var v=l._handlers,w=v&&v[d];if(w){var I=de(w,y);I>-1&&(v[d]=w.slice(0,I).concat(w.slice(I+1)))}}}function ve(l,d){var y=Qe(l,d);if(y.length)for(var v=Array.prototype.slice.call(arguments,2),w=0;w<y.length;++w)y[w].apply(null,v)}function Ie(l,d,y){return typeof d=="string"&&(d={type:d,preventDefault:function(){this.defaultPrevented=!0}}),ve(l,y||d.type,l,d),Ge(d)||d.codemirrorIgnore}function Ae(l){var d=l._handlers&&l._handlers.cursorActivity;if(d)for(var y=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),v=0;v<d.length;++v)de(y,d[v])==-1&&y.push(d[v])}function Ze(l,d){return Qe(l,d).length>0}function Je(l){l.prototype.on=function(d,y){ke(this,d,y)},l.prototype.off=function(d,y){ge(this,d,y)}}function ot(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function at(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function Ge(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function yt(l){ot(l),at(l)}function Nt(l){return l.target||l.srcElement}function bt(l){var d=l.which;return d==null&&(l.button&1?d=1:l.button&2?d=3:l.button&4&&(d=2)),T&&l.ctrlKey&&d==1&&(d=3),d}var $t=function(){if(u&&h<9)return!1;var l=_("div");return"draggable"in l||"dragDrop"in l}(),St;function Rt(l){if(St==null){var d=_("span","\u200B");$(l,_("span",[d,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(St=d.offsetWidth<=1&&d.offsetHeight>2&&!(u&&h<8))}var y=St?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var hn;function Xt(l){if(hn!=null)return hn;var d=$(l,document.createTextNode("A\u062EA")),y=K(d,0,1).getBoundingClientRect(),v=K(d,1,2).getBoundingClientRect();return R(l),!y||y.left==y.right?!1:hn=v.right-y.right<3}var Ln="\n\nb".split(/\n/).length!=3?function(l){for(var d=0,y=[],v=l.length;d<=v;){var w=l.indexOf("\n",d);w==-1&&(w=l.length);var I=l.slice(d,l.charAt(w-1)=="\r"?w-1:w),O=I.indexOf("\r");O!=-1?(y.push(I.slice(0,O)),d+=O+1):(y.push(I),d=w+1)}return y}:function(l){return l.split(/\r\n?|\n/)},mt=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch{return!1}}:function(l){var d;try{d=l.ownerDocument.selection.createRange()}catch{}return!d||d.parentElement()!=l?!1:d.compareEndPoints("StartToEnd",d)!=0},Et=function(){var l=_("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")}(),un=null;function en(l){if(un!=null)return un;var d=$(l,_("span","x")),y=d.getBoundingClientRect(),v=K(d,0,1).getBoundingClientRect();return un=Math.abs(y.left-v.left)>1}var pe={},Xe={};function We(l,d){arguments.length>2&&(d.dependencies=Array.prototype.slice.call(arguments,2)),pe[l]=d}function ht(l,d){Xe[l]=d}function on(l){if(typeof l=="string"&&Xe.hasOwnProperty(l))l=Xe[l];else if(l&&typeof l.name=="string"&&Xe.hasOwnProperty(l.name)){var d=Xe[l.name];typeof d=="string"&&(d={name:d}),l=At(d,l),l.name=d.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return on("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return on("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function Bt(l,d){d=on(d);var y=pe[d.name];if(!y)return Bt(l,"text/plain");var v=y(l,d);if(In.hasOwnProperty(d.name)){var w=In[d.name];for(var I in w)w.hasOwnProperty(I)&&(v.hasOwnProperty(I)&&(v["_"+I]=v[I]),v[I]=w[I])}if(v.name=d.name,d.helperType&&(v.helperType=d.helperType),d.modeProps)for(var O in d.modeProps)v[O]=d.modeProps[O];return v}var In={};function vr(l,d){var y=In.hasOwnProperty(l)?In[l]:In[l]={};le(d,y)}function nr(l,d){if(d===!0)return d;if(l.copyState)return l.copyState(d);var y={};for(var v in d){var w=d[v];w instanceof Array&&(w=w.concat([])),y[v]=w}return y}function kr(l,d){for(var y;l.innerMode&&(y=l.innerMode(d),!(!y||y.mode==l));)d=y.state,l=y.mode;return y||{mode:l,state:d}}function si(l,d,y){return l.startState?l.startState(d,y):!0}var Sn=function(l,d,y){this.pos=this.start=0,this.string=l,this.tabSize=d||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};Sn.prototype.eol=function(){return this.pos>=this.string.length},Sn.prototype.sol=function(){return this.pos==this.lineStart},Sn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Sn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Sn.prototype.eat=function(l){var d=this.string.charAt(this.pos),y;if(typeof l=="string"?y=d==l:y=d&&(l.test?l.test(d):l(d)),y)return++this.pos,d},Sn.prototype.eatWhile=function(l){for(var d=this.pos;this.eat(l););return this.pos>d},Sn.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},Sn.prototype.skipToEnd=function(){this.pos=this.string.length},Sn.prototype.skipTo=function(l){var d=this.string.indexOf(l,this.pos);if(d>-1)return this.pos=d,!0},Sn.prototype.backUp=function(l){this.pos-=l},Sn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=oe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?oe(this.string,this.lineStart,this.tabSize):0)},Sn.prototype.indentation=function(){return oe(this.string,null,this.tabSize)-(this.lineStart?oe(this.string,this.lineStart,this.tabSize):0)},Sn.prototype.match=function(l,d,y){if(typeof l=="string"){var v=function(O){return y?O.toLowerCase():O},w=this.string.substr(this.pos,l.length);if(v(w)==v(l))return d!==!1&&(this.pos+=l.length),!0}else{var I=this.string.slice(this.pos).match(l);return I&&I.index>0?null:(I&&d!==!1&&(this.pos+=I[0].length),I)}},Sn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Sn.prototype.hideFirstChars=function(l,d){this.lineStart+=l;try{return d()}finally{this.lineStart-=l}},Sn.prototype.lookAhead=function(l){var d=this.lineOracle;return d&&d.lookAhead(l)},Sn.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function Ot(l,d){if(d-=l.first,d<0||d>=l.size)throw new Error("There is no line "+(d+l.first)+" in the document.");for(var y=l;!y.lines;)for(var v=0;;++v){var w=y.children[v],I=w.chunkSize();if(d<I){y=w;break}d-=I}return y.lines[d]}function tt(l,d,y){var v=[],w=d.line;return l.iter(d.line,y.line+1,function(I){var O=I.text;w==y.line&&(O=O.slice(0,y.ch)),w==d.line&&(O=O.slice(d.ch)),v.push(O),++w}),v}function Mt(l,d,y){var v=[];return l.iter(d,y,function(w){v.push(w.text)}),v}function jt(l,d){var y=d-l.height;if(y)for(var v=l;v;v=v.parent)v.height+=y}function te(l){if(l.parent==null)return null;for(var d=l.parent,y=de(d.lines,l),v=d.parent;v;d=v,v=v.parent)for(var w=0;v.children[w]!=d;++w)y+=v.children[w].chunkSize();return y+d.first}function ue(l,d){var y=l.first;e:do{for(var v=0;v<l.children.length;++v){var w=l.children[v],I=w.height;if(d<I){l=w;continue e}d-=I,y+=w.chunkSize()}return y}while(!l.lines);for(var O=0;O<l.lines.length;++O){var H=l.lines[O],Y=H.height;if(d<Y)break;d-=Y}return y+O}function Pe(l,d){return d>=l.first&&d<l.first+l.size}function et(l,d){return String(l.lineNumberFormatter(d+l.firstLineNumber))}function Le(l,d,y){if(y===void 0&&(y=null),!(this instanceof Le))return new Le(l,d,y);this.line=l,this.ch=d,this.sticky=y}function pt(l,d){return l.line-d.line||l.ch-d.ch}function ln(l,d){return l.sticky==d.sticky&&pt(l,d)==0}function Vr(l){return Le(l.line,l.ch)}function Ra(l,d){return pt(l,d)<0?d:l}function Od(l,d){return pt(l,d)<0?l:d}function TB(l,d){return Math.max(l.first,Math.min(d,l.first+l.size-1))}function an(l,d){if(d.line<l.first)return Le(l.first,0);var y=l.first+l.size-1;return d.line>y?Le(y,Ot(l,y).text.length):e4e(d,Ot(l,d.line).text.length)}function e4e(l,d){var y=l.ch;return y==null||y>d?Le(l.line,d):y<0?Le(l.line,0):l}function MB(l,d){for(var y=[],v=0;v<d.length;v++)y[v]=an(l,d[v]);return y}var gw=function(l,d){this.state=l,this.lookAhead=d},fl=function(l,d,y,v){this.state=d,this.doc=l,this.line=y,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};fl.prototype.lookAhead=function(l){var d=this.doc.getLine(this.line+l);return d!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),d},fl.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var d=this.baseTokens[this.baseTokenPos+1];return{type:d&&d.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},fl.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fl.fromSaved=function(l,d,y){return d instanceof gw?new fl(l,nr(l.mode,d.state),y,d.lookAhead):new fl(l,nr(l.mode,d),y)},fl.prototype.save=function(l){var d=l!==!1?nr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gw(d,this.maxLookAhead):d};function LB(l,d,y,v){var w=[l.state.modeGen],I={};zB(l,d.text,l.doc.mode,y,function(ee,ce){return w.push(ee,ce)},I,v);for(var O=y.state,H=function(ee){y.baseTokens=w;var ce=l.state.overlays[ee],me=1,Se=0;y.state=!0,zB(l,d.text,ce.mode,y,function(we,Fe){for(var Ue=me;Se<we;){var nt=w[me];nt>we&&w.splice(me,1,we,w[me+1],nt),me+=2,Se=Math.min(we,nt)}if(Fe)if(ce.opaque)w.splice(Ue,me-Ue,we,"overlay "+Fe),me=Ue+2;else for(;Ue<me;Ue+=2){var lt=w[Ue+1];w[Ue+1]=(lt?lt+" ":"")+"overlay "+Fe}},I),y.state=O,y.baseTokens=null,y.baseTokenPos=1},Y=0;Y<l.state.overlays.length;++Y)H(Y);return{styles:w,classes:I.bgClass||I.textClass?I:null}}function DB(l,d,y){if(!d.styles||d.styles[0]!=l.state.modeGen){var v=z1(l,te(d)),w=d.text.length>l.options.maxHighlightLength&&nr(l.doc.mode,v.state),I=LB(l,d,v);w&&(v.state=w),d.stateAfter=v.save(!w),d.styles=I.styles,I.classes?d.styleClasses=I.classes:d.styleClasses&&(d.styleClasses=null),y===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return d.styles}function z1(l,d,y){var v=l.doc,w=l.display;if(!v.mode.startState)return new fl(v,!0,d);var I=t4e(l,d,y),O=I>v.first&&Ot(v,I-1).stateAfter,H=O?fl.fromSaved(v,O,I):new fl(v,si(v.mode),I);return v.iter(I,d,function(Y){IN(l,Y.text,H);var ee=H.line;Y.stateAfter=ee==d-1||ee%5==0||ee>=w.viewFrom&&ee<w.viewTo?H.save():null,H.nextLine()}),y&&(v.modeFrontier=H.line),H}function IN(l,d,y,v){var w=l.doc.mode,I=new Sn(d,l.options.tabSize,y);for(I.start=I.pos=v||0,d==""&&OB(w,y.state);!I.eol();)TN(w,I,y.state),I.start=I.pos}function OB(l,d){if(l.blankLine)return l.blankLine(d);if(l.innerMode){var y=kr(l,d);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function TN(l,d,y,v){for(var w=0;w<10;w++){v&&(v[0]=kr(l,y).mode);var I=l.token(d,y);if(d.pos>d.start)return I}throw new Error("Mode "+l.name+" failed to advance stream.")}var PB=function(l,d,y){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=d||null,this.state=y};function RB(l,d,y,v){var w=l.doc,I=w.mode,O;d=an(w,d);var H=Ot(w,d.line),Y=z1(l,d.line,y),ee=new Sn(H.text,l.options.tabSize,Y),ce;for(v&&(ce=[]);(v||ee.pos<d.ch)&&!ee.eol();)ee.start=ee.pos,O=TN(I,ee,Y.state),v&&ce.push(new PB(ee,O,nr(w.mode,Y.state)));return v?ce:new PB(ee,O,Y.state)}function AB(l,d){if(l)for(;;){var y=l.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;l=l.slice(0,y.index)+l.slice(y.index+y[0].length);var v=y[1]?"bgClass":"textClass";d[v]==null?d[v]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(d[v])||(d[v]+=" "+y[2])}return l}function zB(l,d,y,v,w,I,O){var H=y.flattenSpans;H==null&&(H=l.options.flattenSpans);var Y=0,ee=null,ce=new Sn(d,l.options.tabSize,v),me,Se=l.options.addModeClass&&[null];for(d==""&&AB(OB(y,v.state),I);!ce.eol();){if(ce.pos>l.options.maxHighlightLength?(H=!1,O&&IN(l,d,v,ce.pos),ce.pos=d.length,me=null):me=AB(TN(y,ce,v.state,Se),I),Se){var we=Se[0].name;we&&(me="m-"+(me?we+" "+me:we))}if(!H||ee!=me){for(;Y<ce.start;)Y=Math.min(ce.start,Y+5e3),w(Y,ee);ee=me}ce.start=ce.pos}for(;Y<ce.pos;){var Fe=Math.min(ce.pos,Y+5e3);w(Fe,ee),Y=Fe}}function t4e(l,d,y){for(var v,w,I=l.doc,O=y?-1:d-(l.doc.mode.innerMode?1e3:100),H=d;H>O;--H){if(H<=I.first)return I.first;var Y=Ot(I,H-1),ee=Y.stateAfter;if(ee&&(!y||H+(ee instanceof gw?ee.lookAhead:0)<=I.modeFrontier))return H;var ce=oe(Y.text,null,l.options.tabSize);(w==null||v>ce)&&(w=H-1,v=ce)}return w}function n4e(l,d){if(l.modeFrontier=Math.min(l.modeFrontier,d),!(l.highlightFrontier<d-10)){for(var y=l.first,v=d-1;v>y;v--){var w=Ot(l,v).stateAfter;if(w&&(!(w instanceof gw)||v+w.lookAhead<d)){y=v+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,y)}}var FB=!1,cc=!1;function r4e(){FB=!0}function a4e(){cc=!0}function vw(l,d,y){this.marker=l,this.from=d,this.to=y}function F1(l,d){if(l)for(var y=0;y<l.length;++y){var v=l[y];if(v.marker==d)return v}}function s4e(l,d){for(var y,v=0;v<l.length;++v)l[v]!=d&&(y||(y=[])).push(l[v]);return y}function o4e(l,d,y){var v=y&&window.WeakSet&&(y.markedSpans||(y.markedSpans=new WeakSet));v&&l.markedSpans&&v.has(l.markedSpans)?l.markedSpans.push(d):(l.markedSpans=l.markedSpans?l.markedSpans.concat([d]):[d],v&&v.add(l.markedSpans)),d.marker.attachLine(l)}function i4e(l,d,y){var v;if(l)for(var w=0;w<l.length;++w){var I=l[w],O=I.marker,H=I.from==null||(O.inclusiveLeft?I.from<=d:I.from<d);if(H||I.from==d&&O.type=="bookmark"&&(!y||!I.marker.insertLeft)){var Y=I.to==null||(O.inclusiveRight?I.to>=d:I.to>d);(v||(v=[])).push(new vw(O,I.from,Y?null:I.to))}}return v}function l4e(l,d,y){var v;if(l)for(var w=0;w<l.length;++w){var I=l[w],O=I.marker,H=I.to==null||(O.inclusiveRight?I.to>=d:I.to>d);if(H||I.from==d&&O.type=="bookmark"&&(!y||I.marker.insertLeft)){var Y=I.from==null||(O.inclusiveLeft?I.from<=d:I.from<d);(v||(v=[])).push(new vw(O,Y?null:I.from-d,I.to==null?null:I.to-d))}}return v}function MN(l,d){if(d.full)return null;var y=Pe(l,d.from.line)&&Ot(l,d.from.line).markedSpans,v=Pe(l,d.to.line)&&Ot(l,d.to.line).markedSpans;if(!y&&!v)return null;var w=d.from.ch,I=d.to.ch,O=pt(d.from,d.to)==0,H=i4e(y,w,O),Y=l4e(v,I,O),ee=d.text.length==1,ce=Ve(d.text).length+(ee?w:0);if(H)for(var me=0;me<H.length;++me){var Se=H[me];if(Se.to==null){var we=F1(Y,Se.marker);we?ee&&(Se.to=we.to==null?null:we.to+ce):Se.to=w}}if(Y)for(var Fe=0;Fe<Y.length;++Fe){var Ue=Y[Fe];if(Ue.to!=null&&(Ue.to+=ce),Ue.from==null){var nt=F1(H,Ue.marker);nt||(Ue.from=ce,ee&&(H||(H=[])).push(Ue))}else Ue.from+=ce,ee&&(H||(H=[])).push(Ue)}H&&(H=HB(H)),Y&&Y!=H&&(Y=HB(Y));var lt=[H];if(!ee){var ft=d.text.length-2,ct;if(ft>0&&H)for(var _t=0;_t<H.length;++_t)H[_t].to==null&&(ct||(ct=[])).push(new vw(H[_t].marker,null,null));for(var Ut=0;Ut<ft;++Ut)lt.push(ct);lt.push(Y)}return lt}function HB(l){for(var d=0;d<l.length;++d){var y=l[d];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&l.splice(d--,1)}return l.length?l:null}function c4e(l,d,y){var v=null;if(l.iter(d.line,y.line+1,function(we){if(we.markedSpans)for(var Fe=0;Fe<we.markedSpans.length;++Fe){var Ue=we.markedSpans[Fe].marker;Ue.readOnly&&(!v||de(v,Ue)==-1)&&(v||(v=[])).push(Ue)}}),!v)return null;for(var w=[{from:d,to:y}],I=0;I<v.length;++I)for(var O=v[I],H=O.find(0),Y=0;Y<w.length;++Y){var ee=w[Y];if(!(pt(ee.to,H.from)<0||pt(ee.from,H.to)>0)){var ce=[Y,1],me=pt(ee.from,H.from),Se=pt(ee.to,H.to);(me<0||!O.inclusiveLeft&&!me)&&ce.push({from:ee.from,to:H.from}),(Se>0||!O.inclusiveRight&&!Se)&&ce.push({from:H.to,to:ee.to}),w.splice.apply(w,ce),Y+=ce.length-3}}return w}function $B(l){var d=l.markedSpans;if(d){for(var y=0;y<d.length;++y)d[y].marker.detachLine(l);l.markedSpans=null}}function BB(l,d){if(d){for(var y=0;y<d.length;++y)d[y].marker.attachLine(l);l.markedSpans=d}}function yw(l){return l.inclusiveLeft?-1:0}function xw(l){return l.inclusiveRight?1:0}function LN(l,d){var y=l.lines.length-d.lines.length;if(y!=0)return y;var v=l.find(),w=d.find(),I=pt(v.from,w.from)||yw(l)-yw(d);if(I)return-I;var O=pt(v.to,w.to)||xw(l)-xw(d);return O||d.id-l.id}function WB(l,d){var y=cc&&l.markedSpans,v;if(y)for(var w=void 0,I=0;I<y.length;++I)w=y[I],w.marker.collapsed&&(d?w.from:w.to)==null&&(!v||LN(v,w.marker)<0)&&(v=w.marker);return v}function VB(l){return WB(l,!0)}function bw(l){return WB(l,!1)}function d4e(l,d){var y=cc&&l.markedSpans,v;if(y)for(var w=0;w<y.length;++w){var I=y[w];I.marker.collapsed&&(I.from==null||I.from<d)&&(I.to==null||I.to>d)&&(!v||LN(v,I.marker)<0)&&(v=I.marker)}return v}function UB(l,d,y,v,w){var I=Ot(l,d),O=cc&&I.markedSpans;if(O)for(var H=0;H<O.length;++H){var Y=O[H];if(Y.marker.collapsed){var ee=Y.marker.find(0),ce=pt(ee.from,y)||yw(Y.marker)-yw(w),me=pt(ee.to,v)||xw(Y.marker)-xw(w);if(!(ce>=0&&me<=0||ce<=0&&me>=0)&&(ce<=0&&(Y.marker.inclusiveRight&&w.inclusiveLeft?pt(ee.to,y)>=0:pt(ee.to,y)>0)||ce>=0&&(Y.marker.inclusiveRight&&w.inclusiveLeft?pt(ee.from,v)<=0:pt(ee.from,v)<0)))return!0}}}function Di(l){for(var d;d=VB(l);)l=d.find(-1,!0).line;return l}function u4e(l){for(var d;d=bw(l);)l=d.find(1,!0).line;return l}function h4e(l){for(var d,y;d=bw(l);)l=d.find(1,!0).line,(y||(y=[])).push(l);return y}function DN(l,d){var y=Ot(l,d),v=Di(y);return y==v?d:te(v)}function qB(l,d){if(d>l.lastLine())return d;var y=Ot(l,d),v;if(!Pd(l,y))return d;for(;v=bw(y);)y=v.find(1,!0).line;return te(y)+1}function Pd(l,d){var y=cc&&d.markedSpans;if(y){for(var v=void 0,w=0;w<y.length;++w)if(v=y[w],!!v.marker.collapsed&&(v.from==null||!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&ON(l,d,v)))return!0}}function ON(l,d,y){if(y.to==null){var v=y.marker.find(1,!0);return ON(l,v.line,F1(v.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==d.text.length)return!0;for(var w=void 0,I=0;I<d.markedSpans.length;++I)if(w=d.markedSpans[I],w.marker.collapsed&&!w.marker.widgetNode&&w.from==y.to&&(w.to==null||w.to!=y.from)&&(w.marker.inclusiveLeft||y.marker.inclusiveRight)&&ON(l,d,w))return!0}function dc(l){l=Di(l);for(var d=0,y=l.parent,v=0;v<y.lines.length;++v){var w=y.lines[v];if(w==l)break;d+=w.height}for(var I=y.parent;I;y=I,I=y.parent)for(var O=0;O<I.children.length;++O){var H=I.children[O];if(H==y)break;d+=H.height}return d}function ww(l){if(l.height==0)return 0;for(var d=l.text.length,y,v=l;y=VB(v);){var w=y.find(0,!0);v=w.from.line,d+=w.from.ch-w.to.ch}for(v=l;y=bw(v);){var I=y.find(0,!0);d-=v.text.length-I.from.ch,v=I.to.line,d+=v.text.length-I.to.ch}return d}function PN(l){var d=l.display,y=l.doc;d.maxLine=Ot(y,y.first),d.maxLineLength=ww(d.maxLine),d.maxLineChanged=!0,y.iter(function(v){var w=ww(v);w>d.maxLineLength&&(d.maxLineLength=w,d.maxLine=v)})}var uf=function(l,d,y){this.text=l,BB(this,d),this.height=y?y(this):1};uf.prototype.lineNo=function(){return te(this)},Je(uf);function p4e(l,d,y,v){l.text=d,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),$B(l),BB(l,y);var w=v?v(l):1;w!=l.height&&jt(l,w)}function m4e(l){l.parent=null,$B(l)}var f4e={},g4e={};function YB(l,d){if(!l||/^\s*$/.test(l))return null;var y=d.addModeClass?g4e:f4e;return y[l]||(y[l]=l.replace(/\S+/g,"cm-$&"))}function KB(l,d){var y=U("span",null,null,p?"padding-right: .1px":null),v={pre:U("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};d.measure={};for(var w=0;w<=(d.rest?d.rest.length:0);w++){var I=w?d.rest[w-1]:d.line,O=void 0;v.pos=0,v.addToken=y4e,Xt(l.display.measure)&&(O=Ce(I,l.doc.direction))&&(v.addToken=b4e(v.addToken,O)),v.map=[];var H=d!=l.display.externalMeasured&&te(I);w4e(I,v,DB(l,I,H)),I.styleClasses&&(I.styleClasses.bgClass&&(v.bgClass=F(I.styleClasses.bgClass,v.bgClass||"")),I.styleClasses.textClass&&(v.textClass=F(I.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(Rt(l.display.measure))),w==0?(d.measure.map=v.map,d.measure.cache={}):((d.measure.maps||(d.measure.maps=[])).push(v.map),(d.measure.caches||(d.measure.caches=[])).push({}))}if(p){var Y=v.content.lastChild;(/\bcm-tab\b/.test(Y.className)||Y.querySelector&&Y.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return ve(l,"renderLine",l,d.line,v.pre),v.pre.className&&(v.textClass=F(v.pre.className,v.textClass||"")),v}function v4e(l){var d=_("span","\u2022","cm-invalidchar");return d.title="\\u"+l.charCodeAt(0).toString(16),d.setAttribute("aria-label",d.title),d}function y4e(l,d,y,v,w,I,O){if(d){var H=l.splitSpaces?x4e(d,l.trailingSpace):d,Y=l.cm.state.specialChars,ee=!1,ce;if(!Y.test(d))l.col+=d.length,ce=document.createTextNode(H),l.map.push(l.pos,l.pos+d.length,ce),u&&h<9&&(ee=!0),l.pos+=d.length;else{ce=document.createDocumentFragment();for(var me=0;;){Y.lastIndex=me;var Se=Y.exec(d),we=Se?Se.index-me:d.length-me;if(we){var Fe=document.createTextNode(H.slice(me,me+we));u&&h<9?ce.appendChild(_("span",[Fe])):ce.appendChild(Fe),l.map.push(l.pos,l.pos+we,Fe),l.col+=we,l.pos+=we}if(!Se)break;me+=we+1;var Ue=void 0;if(Se[0]==" "){var nt=l.cm.options.tabSize,lt=nt-l.col%nt;Ue=ce.appendChild(_("span",Ye(lt),"cm-tab")),Ue.setAttribute("role","presentation"),Ue.setAttribute("cm-text"," "),l.col+=lt}else Se[0]=="\r"||Se[0]=="\n"?(Ue=ce.appendChild(_("span",Se[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ue.setAttribute("cm-text",Se[0]),l.col+=1):(Ue=l.cm.options.specialCharPlaceholder(Se[0]),Ue.setAttribute("cm-text",Se[0]),u&&h<9?ce.appendChild(_("span",[Ue])):ce.appendChild(Ue),l.col+=1);l.map.push(l.pos,l.pos+1,Ue),l.pos++}}if(l.trailingSpace=H.charCodeAt(d.length-1)==32,y||v||w||ee||I||O){var ft=y||"";v&&(ft+=v),w&&(ft+=w);var ct=_("span",[ce],ft,I);if(O)for(var _t in O)O.hasOwnProperty(_t)&&_t!="style"&&_t!="class"&&ct.setAttribute(_t,O[_t]);return l.content.appendChild(ct)}l.content.appendChild(ce)}}function x4e(l,d){if(l.length>1&&!/ /.test(l))return l;for(var y=d,v="",w=0;w<l.length;w++){var I=l.charAt(w);I==" "&&y&&(w==l.length-1||l.charCodeAt(w+1)==32)&&(I="\xA0"),v+=I,y=I==" "}return v}function b4e(l,d){return function(y,v,w,I,O,H,Y){w=w?w+" cm-force-border":"cm-force-border";for(var ee=y.pos,ce=ee+v.length;;){for(var me=void 0,Se=0;Se<d.length&&(me=d[Se],!(me.to>ee&&me.from<=ee));Se++);if(me.to>=ce)return l(y,v,w,I,O,H,Y);l(y,v.slice(0,me.to-ee),w,I,null,H,Y),I=null,v=v.slice(me.to-ee),ee=me.to}}}function GB(l,d,y,v){var w=!v&&y.widgetNode;w&&l.map.push(l.pos,l.pos+d,w),!v&&l.cm.display.input.needsContentAttribute&&(w||(w=l.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",y.id)),w&&(l.cm.display.input.setUneditable(w),l.content.appendChild(w)),l.pos+=d,l.trailingSpace=!1}function w4e(l,d,y){var v=l.markedSpans,w=l.text,I=0;if(!v){for(var O=1;O<y.length;O+=2)d.addToken(d,w.slice(I,I=y[O]),YB(y[O+1],d.cm.options));return}for(var H=w.length,Y=0,ee=1,ce="",me,Se,we=0,Fe,Ue,nt,lt,ft;;){if(we==Y){Fe=Ue=nt=Se="",ft=null,lt=null,we=1/0;for(var ct=[],_t=void 0,Ut=0;Ut<v.length;++Ut){var qt=v[Ut],xn=qt.marker;if(xn.type=="bookmark"&&qt.from==Y&&xn.widgetNode)ct.push(xn);else if(qt.from<=Y&&(qt.to==null||qt.to>Y||xn.collapsed&&qt.to==Y&&qt.from==Y)){if(qt.to!=null&&qt.to!=Y&&we>qt.to&&(we=qt.to,Ue=""),xn.className&&(Fe+=" "+xn.className),xn.css&&(Se=(Se?Se+";":"")+xn.css),xn.startStyle&&qt.from==Y&&(nt+=" "+xn.startStyle),xn.endStyle&&qt.to==we&&(_t||(_t=[])).push(xn.endStyle,qt.to),xn.title&&((ft||(ft={})).title=xn.title),xn.attributes)for(var rr in xn.attributes)(ft||(ft={}))[rr]=xn.attributes[rr];xn.collapsed&&(!lt||LN(lt.marker,xn)<0)&&(lt=qt)}else qt.from>Y&&we>qt.from&&(we=qt.from)}if(_t)for(var da=0;da<_t.length;da+=2)_t[da+1]==we&&(Ue+=" "+_t[da]);if(!lt||lt.from==Y)for(var jr=0;jr<ct.length;++jr)GB(d,0,ct[jr]);if(lt&&(lt.from||0)==Y){if(GB(d,(lt.to==null?H+1:lt.to)-Y,lt.marker,lt.from==null),lt.to==null)return;lt.to==Y&&(lt=!1)}}if(Y>=H)break;for(var eo=Math.min(H,we);;){if(ce){var Es=Y+ce.length;if(!lt){var Ur=Es>eo?ce.slice(0,eo-Y):ce;d.addToken(d,Ur,me?me+Fe:Fe,nt,Y+Ur.length==we?Ue:"",Se,ft)}if(Es>=eo){ce=ce.slice(eo-Y),Y=eo;break}Y=Es,nt=""}ce=w.slice(I,I=y[ee++]),me=YB(y[ee++],d.cm.options)}}}function ZB(l,d,y){this.line=d,this.rest=h4e(d),this.size=this.rest?te(Ve(this.rest))-y+1:1,this.node=this.text=null,this.hidden=Pd(l,d)}function kw(l,d,y){for(var v=[],w,I=d;I<y;I=w){var O=new ZB(l.doc,Ot(l.doc,I),I);w=I+O.size,v.push(O)}return v}var hf=null;function k4e(l){hf?hf.ops.push(l):l.ownsGroup=hf={ops:[l],delayedCallbacks:[]}}function j4e(l){var d=l.delayedCallbacks,y=0;do{for(;y<d.length;y++)d[y].call(null);for(var v=0;v<l.ops.length;v++){var w=l.ops[v];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(y<d.length)}function C4e(l,d){var y=l.ownsGroup;if(y)try{j4e(y)}finally{hf=null,d(y)}}var H1=null;function ia(l,d){var y=Qe(l,d);if(y.length){var v=Array.prototype.slice.call(arguments,2),w;hf?w=hf.delayedCallbacks:H1?w=H1:(w=H1=[],setTimeout(S4e,0));for(var I=function(H){w.push(function(){return y[H].apply(null,v)})},O=0;O<y.length;++O)I(O)}}function S4e(){var l=H1;H1=null;for(var d=0;d<l.length;++d)l[d]()}function QB(l,d,y,v){for(var w=0;w<d.changes.length;w++){var I=d.changes[w];I=="text"?N4e(l,d):I=="gutter"?XB(l,d,y,v):I=="class"?RN(l,d):I=="widget"&&_4e(l,d,v)}d.changes=null}function $1(l){return l.node==l.text&&(l.node=_("div",null,null,"position: relative"),l.text.parentNode&&l.text.parentNode.replaceChild(l.node,l.text),l.node.appendChild(l.text),u&&h<8&&(l.node.style.zIndex=2)),l.node}function E4e(l,d){var y=d.bgClass?d.bgClass+" "+(d.line.bgClass||""):d.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),d.background)y?d.background.className=y:(d.background.parentNode.removeChild(d.background),d.background=null);else if(y){var v=$1(d);d.background=v.insertBefore(_("div",null,y),v.firstChild),l.display.input.setUneditable(d.background)}}function JB(l,d){var y=l.display.externalMeasured;return y&&y.line==d.line?(l.display.externalMeasured=null,d.measure=y.measure,y.built):KB(l,d)}function N4e(l,d){var y=d.text.className,v=JB(l,d);d.text==d.node&&(d.node=v.pre),d.text.parentNode.replaceChild(v.pre,d.text),d.text=v.pre,v.bgClass!=d.bgClass||v.textClass!=d.textClass?(d.bgClass=v.bgClass,d.textClass=v.textClass,RN(l,d)):y&&(d.text.className=y)}function RN(l,d){E4e(l,d),d.line.wrapClass?$1(d).className=d.line.wrapClass:d.node!=d.text&&(d.node.className="");var y=d.textClass?d.textClass+" "+(d.line.textClass||""):d.line.textClass;d.text.className=y||""}function XB(l,d,y,v){if(d.gutter&&(d.node.removeChild(d.gutter),d.gutter=null),d.gutterBackground&&(d.node.removeChild(d.gutterBackground),d.gutterBackground=null),d.line.gutterClass){var w=$1(d);d.gutterBackground=_("div",null,"CodeMirror-gutter-background "+d.line.gutterClass,"left: "+(l.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px; width: "+v.gutterTotalWidth+"px"),l.display.input.setUneditable(d.gutterBackground),w.insertBefore(d.gutterBackground,d.text)}var I=d.line.gutterMarkers;if(l.options.lineNumbers||I){var O=$1(d),H=d.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px");if(H.setAttribute("aria-hidden","true"),l.display.input.setUneditable(H),O.insertBefore(H,d.text),d.line.gutterClass&&(H.className+=" "+d.line.gutterClass),l.options.lineNumbers&&(!I||!I["CodeMirror-linenumbers"])&&(d.lineNumber=H.appendChild(_("div",et(l.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+v.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),I)for(var Y=0;Y<l.display.gutterSpecs.length;++Y){var ee=l.display.gutterSpecs[Y].className,ce=I.hasOwnProperty(ee)&&I[ee];ce&&H.appendChild(_("div",[ce],"CodeMirror-gutter-elt","left: "+v.gutterLeft[ee]+"px; width: "+v.gutterWidth[ee]+"px"))}}}function _4e(l,d,y){d.alignable&&(d.alignable=null);for(var v=B("CodeMirror-linewidget"),w=d.node.firstChild,I=void 0;w;w=I)I=w.nextSibling,v.test(w.className)&&d.node.removeChild(w);eW(l,d,y)}function I4e(l,d,y,v){var w=JB(l,d);return d.text=d.node=w.pre,w.bgClass&&(d.bgClass=w.bgClass),w.textClass&&(d.textClass=w.textClass),RN(l,d),XB(l,d,y,v),eW(l,d,v),d.node}function eW(l,d,y){if(tW(l,d.line,d,y,!0),d.rest)for(var v=0;v<d.rest.length;v++)tW(l,d.rest[v],d,y,!1)}function tW(l,d,y,v,w){if(d.widgets)for(var I=$1(y),O=0,H=d.widgets;O<H.length;++O){var Y=H[O],ee=_("div",[Y.node],"CodeMirror-linewidget"+(Y.className?" "+Y.className:""));Y.handleMouseEvents||ee.setAttribute("cm-ignore-events","true"),T4e(Y,ee,y,v),l.display.input.setUneditable(ee),w&&Y.above?I.insertBefore(ee,y.gutter||y.text):I.appendChild(ee),ia(Y,"redraw")}}function T4e(l,d,y,v){if(l.noHScroll){(y.alignable||(y.alignable=[])).push(d);var w=v.wrapperWidth;d.style.left=v.fixedPos+"px",l.coverGutter||(w-=v.gutterTotalWidth,d.style.paddingLeft=v.gutterTotalWidth+"px"),d.style.width=w+"px"}l.coverGutter&&(d.style.zIndex=5,d.style.position="relative",l.noHScroll||(d.style.marginLeft=-v.gutterTotalWidth+"px"))}function B1(l){if(l.height!=null)return l.height;var d=l.doc.cm;if(!d)return 0;if(!W(document.body,l.node)){var y="position: relative;";l.coverGutter&&(y+="margin-left: -"+d.display.gutters.offsetWidth+"px;"),l.noHScroll&&(y+="width: "+d.display.wrapper.clientWidth+"px;"),$(d.display.measure,_("div",[l.node],null,y))}return l.height=l.node.parentNode.offsetHeight}function uc(l,d){for(var y=Nt(d);y!=l.wrapper;y=y.parentNode)if(!y||y.nodeType==1&&y.getAttribute("cm-ignore-events")=="true"||y.parentNode==l.sizer&&y!=l.mover)return!0}function jw(l){return l.lineSpace.offsetTop}function AN(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function nW(l){if(l.cachedPaddingH)return l.cachedPaddingH;var d=$(l.measure,_("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(d):d.currentStyle,v={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(v.left)&&!isNaN(v.right)&&(l.cachedPaddingH=v),v}function gl(l){return xe-l.display.nativeBarWidth}function wh(l){return l.display.scroller.clientWidth-gl(l)-l.display.barWidth}function zN(l){return l.display.scroller.clientHeight-gl(l)-l.display.barHeight}function M4e(l,d,y){var v=l.options.lineWrapping,w=v&&wh(l);if(!d.measure.heights||v&&d.measure.width!=w){var I=d.measure.heights=[];if(v){d.measure.width=w;for(var O=d.text.firstChild.getClientRects(),H=0;H<O.length-1;H++){var Y=O[H],ee=O[H+1];Math.abs(Y.bottom-ee.bottom)>2&&I.push((Y.bottom+ee.top)/2-y.top)}}I.push(y.bottom-y.top)}}function rW(l,d,y){if(l.line==d)return{map:l.measure.map,cache:l.measure.cache};if(l.rest){for(var v=0;v<l.rest.length;v++)if(l.rest[v]==d)return{map:l.measure.maps[v],cache:l.measure.caches[v]};for(var w=0;w<l.rest.length;w++)if(te(l.rest[w])>y)return{map:l.measure.maps[w],cache:l.measure.caches[w],before:!0}}}function L4e(l,d){d=Di(d);var y=te(d),v=l.display.externalMeasured=new ZB(l.doc,d,y);v.lineN=y;var w=v.built=KB(l,v);return v.text=w.pre,$(l.display.lineMeasure,w.pre),v}function aW(l,d,y,v){return vl(l,pf(l,d),y,v)}function FN(l,d){if(d>=l.display.viewFrom&&d<l.display.viewTo)return l.display.view[Ch(l,d)];var y=l.display.externalMeasured;if(y&&d>=y.lineN&&d<y.lineN+y.size)return y}function pf(l,d){var y=te(d),v=FN(l,y);v&&!v.text?v=null:v&&v.changes&&(QB(l,v,y,VN(l)),l.curOp.forceUpdate=!0),v||(v=L4e(l,d));var w=rW(v,d,y);return{line:d,view:v,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function vl(l,d,y,v,w){d.before&&(y=-1);var I=y+(v||""),O;return d.cache.hasOwnProperty(I)?O=d.cache[I]:(d.rect||(d.rect=d.view.text.getBoundingClientRect()),d.hasHeights||(M4e(l,d.view,d.rect),d.hasHeights=!0),O=O4e(l,d,y,v),O.bogus||(d.cache[I]=O)),{left:O.left,right:O.right,top:w?O.rtop:O.top,bottom:w?O.rbottom:O.bottom}}var sW={left:0,right:0,top:0,bottom:0};function oW(l,d,y){for(var v,w,I,O,H,Y,ee=0;ee<l.length;ee+=3)if(H=l[ee],Y=l[ee+1],d<H?(w=0,I=1,O="left"):d<Y?(w=d-H,I=w+1):(ee==l.length-3||d==Y&&l[ee+3]>d)&&(I=Y-H,w=I-1,d>=Y&&(O="right")),w!=null){if(v=l[ee+2],H==Y&&y==(v.insertLeft?"left":"right")&&(O=y),y=="left"&&w==0)for(;ee&&l[ee-2]==l[ee-3]&&l[ee-1].insertLeft;)v=l[(ee-=3)+2],O="left";if(y=="right"&&w==Y-H)for(;ee<l.length-3&&l[ee+3]==l[ee+4]&&!l[ee+5].insertLeft;)v=l[(ee+=3)+2],O="right";break}return{node:v,start:w,end:I,collapse:O,coverStart:H,coverEnd:Y}}function D4e(l,d){var y=sW;if(d=="left")for(var v=0;v<l.length&&(y=l[v]).left==y.right;v++);else for(var w=l.length-1;w>=0&&(y=l[w]).left==y.right;w--);return y}function O4e(l,d,y,v){var w=oW(d.map,y,v),I=w.node,O=w.start,H=w.end,Y=w.collapse,ee;if(I.nodeType==3){for(var ce=0;ce<4;ce++){for(;O&&kt(d.line.text.charAt(w.coverStart+O));)--O;for(;w.coverStart+H<w.coverEnd&&kt(d.line.text.charAt(w.coverStart+H));)++H;if(u&&h<9&&O==0&&H==w.coverEnd-w.coverStart?ee=I.parentNode.getBoundingClientRect():ee=D4e(K(I,O,H).getClientRects(),v),ee.left||ee.right||O==0)break;H=O,O=O-1,Y="right"}u&&h<11&&(ee=P4e(l.display.measure,ee))}else{O>0&&(Y=v="right");var me;l.options.lineWrapping&&(me=I.getClientRects()).length>1?ee=me[v=="right"?me.length-1:0]:ee=I.getBoundingClientRect()}if(u&&h<9&&!O&&(!ee||!ee.left&&!ee.right)){var Se=I.parentNode.getClientRects()[0];Se?ee={left:Se.left,right:Se.left+ff(l.display),top:Se.top,bottom:Se.bottom}:ee=sW}for(var we=ee.top-d.rect.top,Fe=ee.bottom-d.rect.top,Ue=(we+Fe)/2,nt=d.view.measure.heights,lt=0;lt<nt.length-1&&!(Ue<nt[lt]);lt++);var ft=lt?nt[lt-1]:0,ct=nt[lt],_t={left:(Y=="right"?ee.right:ee.left)-d.rect.left,right:(Y=="left"?ee.left:ee.right)-d.rect.left,top:ft,bottom:ct};return!ee.left&&!ee.right&&(_t.bogus=!0),l.options.singleCursorHeightPerLine||(_t.rtop=we,_t.rbottom=Fe),_t}function P4e(l,d){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!en(l))return d;var y=screen.logicalXDPI/screen.deviceXDPI,v=screen.logicalYDPI/screen.deviceYDPI;return{left:d.left*y,right:d.right*y,top:d.top*v,bottom:d.bottom*v}}function iW(l){if(l.measure&&(l.measure.cache={},l.measure.heights=null,l.rest))for(var d=0;d<l.rest.length;d++)l.measure.caches[d]={}}function lW(l){l.display.externalMeasure=null,R(l.display.lineMeasure);for(var d=0;d<l.display.view.length;d++)iW(l.display.view[d])}function W1(l){lW(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function cW(l){return x&&E?-(l.body.getBoundingClientRect().left-parseInt(getComputedStyle(l.body).marginLeft)):l.defaultView.pageXOffset||(l.documentElement||l.body).scrollLeft}function dW(l){return x&&E?-(l.body.getBoundingClientRect().top-parseInt(getComputedStyle(l.body).marginTop)):l.defaultView.pageYOffset||(l.documentElement||l.body).scrollTop}function HN(l){var d=Di(l),y=d.widgets,v=0;if(y)for(var w=0;w<y.length;++w)y[w].above&&(v+=B1(y[w]));return v}function Cw(l,d,y,v,w){if(!w){var I=HN(d);y.top+=I,y.bottom+=I}if(v=="line")return y;v||(v="local");var O=dc(d);if(v=="local"?O+=jw(l.display):O-=l.display.viewOffset,v=="page"||v=="window"){var H=l.display.lineSpace.getBoundingClientRect();O+=H.top+(v=="window"?0:dW(q(l)));var Y=H.left+(v=="window"?0:cW(q(l)));y.left+=Y,y.right+=Y}return y.top+=O,y.bottom+=O,y}function uW(l,d,y){if(y=="div")return d;var v=d.left,w=d.top;if(y=="page")v-=cW(q(l)),w-=dW(q(l));else if(y=="local"||!y){var I=l.display.sizer.getBoundingClientRect();v+=I.left,w+=I.top}var O=l.display.lineSpace.getBoundingClientRect();return{left:v-O.left,top:w-O.top}}function Sw(l,d,y,v,w){return v||(v=Ot(l.doc,d.line)),Cw(l,v,aW(l,v,d.ch,w),y)}function Oi(l,d,y,v,w,I){v=v||Ot(l.doc,d.line),w||(w=pf(l,v));function O(Fe,Ue){var nt=vl(l,w,Fe,Ue?"right":"left",I);return Ue?nt.left=nt.right:nt.right=nt.left,Cw(l,v,nt,y)}var H=Ce(v,l.doc.direction),Y=d.ch,ee=d.sticky;if(Y>=v.text.length?(Y=v.text.length,ee="before"):Y<=0&&(Y=0,ee="after"),!H)return O(ee=="before"?Y-1:Y,ee=="before");function ce(Fe,Ue,nt){var lt=H[Ue],ft=lt.level==1;return O(nt?Fe-1:Fe,ft!=nt)}var me=zt(H,Y,ee),Se=gn,we=ce(Y,me,ee=="before");return Se!=null&&(we.other=ce(Y,Se,ee!="before")),we}function hW(l,d){var y=0;d=an(l.doc,d),l.options.lineWrapping||(y=ff(l.display)*d.ch);var v=Ot(l.doc,d.line),w=dc(v)+jw(l.display);return{left:y,right:y,top:w,bottom:w+v.height}}function $N(l,d,y,v,w){var I=Le(l,d,y);return I.xRel=w,v&&(I.outside=v),I}function BN(l,d,y){var v=l.doc;if(y+=l.display.viewOffset,y<0)return $N(v.first,0,null,-1,-1);var w=ue(v,y),I=v.first+v.size-1;if(w>I)return $N(v.first+v.size-1,Ot(v,I).text.length,null,1,1);d<0&&(d=0);for(var O=Ot(v,w);;){var H=R4e(l,O,w,d,y),Y=d4e(O,H.ch+(H.xRel>0||H.outside>0?1:0));if(!Y)return H;var ee=Y.find(1);if(ee.line==w)return ee;O=Ot(v,w=ee.line)}}function pW(l,d,y,v){v-=HN(d);var w=d.text.length,I=Zt(function(O){return vl(l,y,O-1).bottom<=v},w,0);return w=Zt(function(O){return vl(l,y,O).top>v},I,w),{begin:I,end:w}}function mW(l,d,y,v){y||(y=pf(l,d));var w=Cw(l,d,vl(l,y,v),"line").top;return pW(l,d,y,w)}function WN(l,d,y,v){return l.bottom<=y?!1:l.top>y?!0:(v?l.left:l.right)>d}function R4e(l,d,y,v,w){w-=dc(d);var I=pf(l,d),O=HN(d),H=0,Y=d.text.length,ee=!0,ce=Ce(d,l.doc.direction);if(ce){var me=(l.options.lineWrapping?z4e:A4e)(l,d,y,I,ce,v,w);ee=me.level!=1,H=ee?me.from:me.to-1,Y=ee?me.to:me.from-1}var Se=null,we=null,Fe=Zt(function(Ut){var qt=vl(l,I,Ut);return qt.top+=O,qt.bottom+=O,WN(qt,v,w,!1)?(qt.top<=w&&qt.left<=v&&(Se=Ut,we=qt),!0):!1},H,Y),Ue,nt,lt=!1;if(we){var ft=v-we.left<we.right-v,ct=ft==ee;Fe=Se+(ct?0:1),nt=ct?"after":"before",Ue=ft?we.left:we.right}else{!ee&&(Fe==Y||Fe==H)&&Fe++,nt=Fe==0?"after":Fe==d.text.length?"before":vl(l,I,Fe-(ee?1:0)).bottom+O<=w==ee?"after":"before";var _t=Oi(l,Le(y,Fe,nt),"line",d,I);Ue=_t.left,lt=w<_t.top?-1:w>=_t.bottom?1:0}return Fe=rn(d.text,Fe,1),$N(y,Fe,nt,lt,v-Ue)}function A4e(l,d,y,v,w,I,O){var H=Zt(function(me){var Se=w[me],we=Se.level!=1;return WN(Oi(l,Le(y,we?Se.to:Se.from,we?"before":"after"),"line",d,v),I,O,!0)},0,w.length-1),Y=w[H];if(H>0){var ee=Y.level!=1,ce=Oi(l,Le(y,ee?Y.from:Y.to,ee?"after":"before"),"line",d,v);WN(ce,I,O,!0)&&ce.top>O&&(Y=w[H-1])}return Y}function z4e(l,d,y,v,w,I,O){var H=pW(l,d,v,O),Y=H.begin,ee=H.end;/\s/.test(d.text.charAt(ee-1))&&ee--;for(var ce=null,me=null,Se=0;Se<w.length;Se++){var we=w[Se];if(!(we.from>=ee||we.to<=Y)){var Fe=we.level!=1,Ue=vl(l,v,Fe?Math.min(ee,we.to)-1:Math.max(Y,we.from)).right,nt=Ue<I?I-Ue+1e9:Ue-I;(!ce||me>nt)&&(ce=we,me=nt)}}return ce||(ce=w[w.length-1]),ce.from<Y&&(ce={from:Y,to:ce.to,level:ce.level}),ce.to>ee&&(ce={from:ce.from,to:ee,level:ce.level}),ce}var kh;function mf(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(kh==null){kh=_("pre",null,"CodeMirror-line-like");for(var d=0;d<49;++d)kh.appendChild(document.createTextNode("x")),kh.appendChild(_("br"));kh.appendChild(document.createTextNode("x"))}$(l.measure,kh);var y=kh.offsetHeight/50;return y>3&&(l.cachedTextHeight=y),R(l.measure),y||1}function ff(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var d=_("span","xxxxxxxxxx"),y=_("pre",[d],"CodeMirror-line-like");$(l.measure,y);var v=d.getBoundingClientRect(),w=(v.right-v.left)/10;return w>2&&(l.cachedCharWidth=w),w||10}function VN(l){for(var d=l.display,y={},v={},w=d.gutters.clientLeft,I=d.gutters.firstChild,O=0;I;I=I.nextSibling,++O){var H=l.display.gutterSpecs[O].className;y[H]=I.offsetLeft+I.clientLeft+w,v[H]=I.clientWidth}return{fixedPos:UN(d),gutterTotalWidth:d.gutters.offsetWidth,gutterLeft:y,gutterWidth:v,wrapperWidth:d.wrapper.clientWidth}}function UN(l){return l.scroller.getBoundingClientRect().left-l.sizer.getBoundingClientRect().left}function fW(l){var d=mf(l.display),y=l.options.lineWrapping,v=y&&Math.max(5,l.display.scroller.clientWidth/ff(l.display)-3);return function(w){if(Pd(l.doc,w))return 0;var I=0;if(w.widgets)for(var O=0;O<w.widgets.length;O++)w.widgets[O].height&&(I+=w.widgets[O].height);return y?I+(Math.ceil(w.text.length/v)||1)*d:I+d}}function qN(l){var d=l.doc,y=fW(l);d.iter(function(v){var w=y(v);w!=v.height&&jt(v,w)})}function jh(l,d,y,v){var w=l.display;if(!y&&Nt(d).getAttribute("cm-not-content")=="true")return null;var I,O,H=w.lineSpace.getBoundingClientRect();try{I=d.clientX-H.left,O=d.clientY-H.top}catch{return null}var Y=BN(l,I,O),ee;if(v&&Y.xRel>0&&(ee=Ot(l.doc,Y.line).text).length==Y.ch){var ce=oe(ee,ee.length,l.options.tabSize)-ee.length;Y=Le(Y.line,Math.max(0,Math.round((I-nW(l.display).left)/ff(l.display))-ce))}return Y}function Ch(l,d){if(d>=l.display.viewTo||(d-=l.display.viewFrom,d<0))return null;for(var y=l.display.view,v=0;v<y.length;v++)if(d-=y[v].size,d<0)return v}function Cs(l,d,y,v){d==null&&(d=l.doc.first),y==null&&(y=l.doc.first+l.doc.size),v||(v=0);var w=l.display;if(v&&y<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>d)&&(w.updateLineNumbers=d),l.curOp.viewChanged=!0,d>=w.viewTo)cc&&DN(l.doc,d)<w.viewTo&&Ad(l);else if(y<=w.viewFrom)cc&&qB(l.doc,y+v)>w.viewFrom?Ad(l):(w.viewFrom+=v,w.viewTo+=v);else if(d<=w.viewFrom&&y>=w.viewTo)Ad(l);else if(d<=w.viewFrom){var I=Ew(l,y,y+v,1);I?(w.view=w.view.slice(I.index),w.viewFrom=I.lineN,w.viewTo+=v):Ad(l)}else if(y>=w.viewTo){var O=Ew(l,d,d,-1);O?(w.view=w.view.slice(0,O.index),w.viewTo=O.lineN):Ad(l)}else{var H=Ew(l,d,d,-1),Y=Ew(l,y,y+v,1);H&&Y?(w.view=w.view.slice(0,H.index).concat(kw(l,H.lineN,Y.lineN)).concat(w.view.slice(Y.index)),w.viewTo+=v):Ad(l)}var ee=w.externalMeasured;ee&&(y<ee.lineN?ee.lineN+=v:d<ee.lineN+ee.size&&(w.externalMeasured=null))}function Rd(l,d,y){l.curOp.viewChanged=!0;var v=l.display,w=l.display.externalMeasured;if(w&&d>=w.lineN&&d<w.lineN+w.size&&(v.externalMeasured=null),!(d<v.viewFrom||d>=v.viewTo)){var I=v.view[Ch(l,d)];if(I.node!=null){var O=I.changes||(I.changes=[]);de(O,y)==-1&&O.push(y)}}}function Ad(l){l.display.viewFrom=l.display.viewTo=l.doc.first,l.display.view=[],l.display.viewOffset=0}function Ew(l,d,y,v){var w=Ch(l,d),I,O=l.display.view;if(!cc||y==l.doc.first+l.doc.size)return{index:w,lineN:y};for(var H=l.display.viewFrom,Y=0;Y<w;Y++)H+=O[Y].size;if(H!=d){if(v>0){if(w==O.length-1)return null;I=H+O[w].size-d,w++}else I=H-d;d+=I,y+=I}for(;DN(l.doc,y)!=y;){if(w==(v<0?0:O.length-1))return null;y+=v*O[w-(v<0?1:0)].size,w+=v}return{index:w,lineN:y}}function F4e(l,d,y){var v=l.display,w=v.view;w.length==0||d>=v.viewTo||y<=v.viewFrom?(v.view=kw(l,d,y),v.viewFrom=d):(v.viewFrom>d?v.view=kw(l,d,v.viewFrom).concat(v.view):v.viewFrom<d&&(v.view=v.view.slice(Ch(l,d))),v.viewFrom=d,v.viewTo<y?v.view=v.view.concat(kw(l,v.viewTo,y)):v.viewTo>y&&(v.view=v.view.slice(0,Ch(l,y)))),v.viewTo=y}function gW(l){for(var d=l.display.view,y=0,v=0;v<d.length;v++){var w=d[v];!w.hidden&&(!w.node||w.changes)&&++y}return y}function V1(l){l.display.input.showSelection(l.display.input.prepareSelection())}function vW(l,d){d===void 0&&(d=!0);var y=l.doc,v={},w=v.cursors=document.createDocumentFragment(),I=v.selection=document.createDocumentFragment(),O=l.options.$customCursor;O&&(d=!0);for(var H=0;H<y.sel.ranges.length;H++)if(!(!d&&H==y.sel.primIndex)){var Y=y.sel.ranges[H];if(!(Y.from().line>=l.display.viewTo||Y.to().line<l.display.viewFrom)){var ee=Y.empty();if(O){var ce=O(l,Y);ce&&YN(l,ce,w)}else(ee||l.options.showCursorWhenSelecting)&&YN(l,Y.head,w);ee||H4e(l,Y,I)}}return v}function YN(l,d,y){var v=Oi(l,d,"div",null,null,!l.options.singleCursorHeightPerLine),w=y.appendChild(_("div","\xA0","CodeMirror-cursor"));if(w.style.left=v.left+"px",w.style.top=v.top+"px",w.style.height=Math.max(0,v.bottom-v.top)*l.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(l.getWrapperElement().className)){var I=Sw(l,d,"div",null,null),O=I.right-I.left;w.style.width=(O>0?O:l.defaultCharWidth())+"px"}if(v.other){var H=y.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));H.style.display="",H.style.left=v.other.left+"px",H.style.top=v.other.top+"px",H.style.height=(v.other.bottom-v.other.top)*.85+"px"}}function Nw(l,d){return l.top-d.top||l.left-d.left}function H4e(l,d,y){var v=l.display,w=l.doc,I=document.createDocumentFragment(),O=nW(l.display),H=O.left,Y=Math.max(v.sizerWidth,wh(l)-v.sizer.offsetLeft)-O.right,ee=w.direction=="ltr";function ce(ct,_t,Ut,qt){_t<0&&(_t=0),_t=Math.round(_t),qt=Math.round(qt),I.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+ct+"px;\n top: "+_t+"px; width: "+(Ut!=null?Ut:Y-ct)+"px;\n height: "+(qt-_t)+"px"))}function me(ct,_t,Ut){var qt=Ot(w,ct),xn=qt.text.length,rr,da;function jr(Ur,Ns){return Sw(l,Le(ct,Ur),"div",qt,Ns)}function eo(Ur,Ns,wa){var Zr=mW(l,qt,null,Ur),qr=Ns=="ltr"==(wa=="after")?"left":"right",Mr=wa=="after"?Zr.begin:Zr.end-(/\s/.test(qt.text.charAt(Zr.end-1))?2:1);return jr(Mr,qr)[qr]}var Es=Ce(qt,w.direction);return Jt(Es,_t||0,Ut!=null?Ut:xn,function(Ur,Ns,wa,Zr){var qr=wa=="ltr",Mr=jr(Ur,qr?"left":"right"),_s=jr(Ns-1,qr?"right":"left"),_f=_t==null&&Ur==0,Wd=Ut==null&&Ns==xn,za=Zr==0,yl=!Es||Zr==Es.length-1;if(_s.top-Mr.top<=3){var ua=(ee?_f:Wd)&&za,b6=(ee?Wd:_f)&&yl,mc=ua?H:(qr?Mr:_s).left,Ih=b6?Y:(qr?_s:Mr).right;ce(mc,Mr.top,Ih-mc,Mr.bottom)}else{var Th,ss,If,w6;qr?(Th=ee&&_f&&za?H:Mr.left,ss=ee?Y:eo(Ur,wa,"before"),If=ee?H:eo(Ns,wa,"after"),w6=ee&&Wd&&yl?Y:_s.right):(Th=ee?eo(Ur,wa,"before"):H,ss=!ee&&_f&&za?Y:Mr.right,If=!ee&&Wd&&yl?H:_s.left,w6=ee?eo(Ns,wa,"after"):Y),ce(Th,Mr.top,ss-Th,Mr.bottom),Mr.bottom<_s.top&&ce(H,Mr.bottom,null,_s.top),ce(If,_s.top,w6-If,_s.bottom)}(!rr||Nw(Mr,rr)<0)&&(rr=Mr),Nw(_s,rr)<0&&(rr=_s),(!da||Nw(Mr,da)<0)&&(da=Mr),Nw(_s,da)<0&&(da=_s)}),{start:rr,end:da}}var Se=d.from(),we=d.to();if(Se.line==we.line)me(Se.line,Se.ch,we.ch);else{var Fe=Ot(w,Se.line),Ue=Ot(w,we.line),nt=Di(Fe)==Di(Ue),lt=me(Se.line,Se.ch,nt?Fe.text.length+1:null).end,ft=me(we.line,nt?0:null,we.ch).start;nt&&(lt.top<ft.top-2?(ce(lt.right,lt.top,null,lt.bottom),ce(H,ft.top,ft.left,ft.bottom)):ce(lt.right,lt.top,ft.left-lt.right,lt.bottom)),lt.bottom<ft.top&&ce(H,lt.bottom,null,ft.top)}y.appendChild(I)}function KN(l){if(l.state.focused){var d=l.display;clearInterval(d.blinker);var y=!0;d.cursorDiv.style.visibility="",l.options.cursorBlinkRate>0?d.blinker=setInterval(function(){l.hasFocus()||gf(l),d.cursorDiv.style.visibility=(y=!y)?"":"hidden"},l.options.cursorBlinkRate):l.options.cursorBlinkRate<0&&(d.cursorDiv.style.visibility="hidden")}}function yW(l){l.hasFocus()||(l.display.input.focus(),l.state.focused||ZN(l))}function GN(l){l.state.delayingBlurEvent=!0,setTimeout(function(){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1,l.state.focused&&gf(l))},100)}function ZN(l,d){l.state.delayingBlurEvent&&!l.state.draggingText&&(l.state.delayingBlurEvent=!1),l.options.readOnly!="nocursor"&&(l.state.focused||(ve(l,"focus",l,d),l.state.focused=!0,Z(l.display.wrapper,"CodeMirror-focused"),!l.curOp&&l.display.selForContextMenu!=l.doc.sel&&(l.display.input.reset(),p&&setTimeout(function(){return l.display.input.reset(!0)},20)),l.display.input.receivedFocus()),KN(l))}function gf(l,d){l.state.delayingBlurEvent||(l.state.focused&&(ve(l,"blur",l,d),l.state.focused=!1,z(l.display.wrapper,"CodeMirror-focused")),clearInterval(l.display.blinker),setTimeout(function(){l.state.focused||(l.display.shift=!1)},150))}function _w(l){for(var d=l.display,y=d.lineDiv.offsetTop,v=Math.max(0,d.scroller.getBoundingClientRect().top),w=d.lineDiv.getBoundingClientRect().top,I=0,O=0;O<d.view.length;O++){var H=d.view[O],Y=l.options.lineWrapping,ee=void 0,ce=0;if(!H.hidden){if(w+=H.line.height,u&&h<8){var me=H.node.offsetTop+H.node.offsetHeight;ee=me-y,y=me}else{var Se=H.node.getBoundingClientRect();ee=Se.bottom-Se.top,!Y&&H.text.firstChild&&(ce=H.text.firstChild.getBoundingClientRect().right-Se.left-1)}var we=H.line.height-ee;if((we>.005||we<-.005)&&(w<v&&(I-=we),jt(H.line,ee),xW(H.line),H.rest))for(var Fe=0;Fe<H.rest.length;Fe++)xW(H.rest[Fe]);if(ce>l.display.sizerWidth){var Ue=Math.ceil(ce/ff(l.display));Ue>l.display.maxLineLength&&(l.display.maxLineLength=Ue,l.display.maxLine=H.line,l.display.maxLineChanged=!0)}}}Math.abs(I)>2&&(d.scroller.scrollTop+=I)}function xW(l){if(l.widgets)for(var d=0;d<l.widgets.length;++d){var y=l.widgets[d],v=y.node.parentNode;v&&(y.height=v.offsetHeight)}}function Iw(l,d,y){var v=y&&y.top!=null?Math.max(0,y.top):l.scroller.scrollTop;v=Math.floor(v-jw(l));var w=y&&y.bottom!=null?y.bottom:v+l.wrapper.clientHeight,I=ue(d,v),O=ue(d,w);if(y&&y.ensure){var H=y.ensure.from.line,Y=y.ensure.to.line;H<I?(I=H,O=ue(d,dc(Ot(d,H))+l.wrapper.clientHeight)):Math.min(Y,d.lastLine())>=O&&(I=ue(d,dc(Ot(d,Y))-l.wrapper.clientHeight),O=Y)}return{from:I,to:Math.max(O,I+1)}}function $4e(l,d){if(!Ie(l,"scrollCursorIntoView")){var y=l.display,v=y.sizer.getBoundingClientRect(),w=null,I=y.wrapper.ownerDocument;if(d.top+v.top<0?w=!0:d.bottom+v.top>(I.defaultView.innerHeight||I.documentElement.clientHeight)&&(w=!1),w!=null&&!j){var O=_("div","\u200B",null,"position: absolute;\n top: "+(d.top-y.viewOffset-jw(l.display))+"px;\n height: "+(d.bottom-d.top+gl(l)+y.barHeight)+"px;\n left: "+d.left+"px; width: "+Math.max(2,d.right-d.left)+"px;");l.display.lineSpace.appendChild(O),O.scrollIntoView(w),l.display.lineSpace.removeChild(O)}}}function B4e(l,d,y,v){v==null&&(v=0);var w;!l.options.lineWrapping&&d==y&&(y=d.sticky=="before"?Le(d.line,d.ch+1,"before"):d,d=d.ch?Le(d.line,d.sticky=="before"?d.ch-1:d.ch,"after"):d);for(var I=0;I<5;I++){var O=!1,H=Oi(l,d),Y=!y||y==d?H:Oi(l,y);w={left:Math.min(H.left,Y.left),top:Math.min(H.top,Y.top)-v,right:Math.max(H.left,Y.left),bottom:Math.max(H.bottom,Y.bottom)+v};var ee=QN(l,w),ce=l.doc.scrollTop,me=l.doc.scrollLeft;if(ee.scrollTop!=null&&(q1(l,ee.scrollTop),Math.abs(l.doc.scrollTop-ce)>1&&(O=!0)),ee.scrollLeft!=null&&(Sh(l,ee.scrollLeft),Math.abs(l.doc.scrollLeft-me)>1&&(O=!0)),!O)break}return w}function W4e(l,d){var y=QN(l,d);y.scrollTop!=null&&q1(l,y.scrollTop),y.scrollLeft!=null&&Sh(l,y.scrollLeft)}function QN(l,d){var y=l.display,v=mf(l.display);d.top<0&&(d.top=0);var w=l.curOp&&l.curOp.scrollTop!=null?l.curOp.scrollTop:y.scroller.scrollTop,I=zN(l),O={};d.bottom-d.top>I&&(d.bottom=d.top+I);var H=l.doc.height+AN(y),Y=d.top<v,ee=d.bottom>H-v;if(d.top<w)O.scrollTop=Y?0:d.top;else if(d.bottom>w+I){var ce=Math.min(d.top,(ee?H:d.bottom)-I);ce!=w&&(O.scrollTop=ce)}var me=l.options.fixedGutter?0:y.gutters.offsetWidth,Se=l.curOp&&l.curOp.scrollLeft!=null?l.curOp.scrollLeft:y.scroller.scrollLeft-me,we=wh(l)-y.gutters.offsetWidth,Fe=d.right-d.left>we;return Fe&&(d.right=d.left+we),d.left<10?O.scrollLeft=0:d.left<Se?O.scrollLeft=Math.max(0,d.left+me-(Fe?0:10)):d.right>we+Se-3&&(O.scrollLeft=d.right+(Fe?0:10)-we),O}function JN(l,d){d!=null&&(Tw(l),l.curOp.scrollTop=(l.curOp.scrollTop==null?l.doc.scrollTop:l.curOp.scrollTop)+d)}function vf(l){Tw(l);var d=l.getCursor();l.curOp.scrollToPos={from:d,to:d,margin:l.options.cursorScrollMargin}}function U1(l,d,y){(d!=null||y!=null)&&Tw(l),d!=null&&(l.curOp.scrollLeft=d),y!=null&&(l.curOp.scrollTop=y)}function V4e(l,d){Tw(l),l.curOp.scrollToPos=d}function Tw(l){var d=l.curOp.scrollToPos;if(d){l.curOp.scrollToPos=null;var y=hW(l,d.from),v=hW(l,d.to);bW(l,y,v,d.margin)}}function bW(l,d,y,v){var w=QN(l,{left:Math.min(d.left,y.left),top:Math.min(d.top,y.top)-v,right:Math.max(d.right,y.right),bottom:Math.max(d.bottom,y.bottom)+v});U1(l,w.scrollLeft,w.scrollTop)}function q1(l,d){Math.abs(l.doc.scrollTop-d)<2||(s||e6(l,{top:d}),wW(l,d,!0),s&&e6(l),G1(l,100))}function wW(l,d,y){d=Math.max(0,Math.min(l.display.scroller.scrollHeight-l.display.scroller.clientHeight,d)),!(l.display.scroller.scrollTop==d&&!y)&&(l.doc.scrollTop=d,l.display.scrollbars.setScrollTop(d),l.display.scroller.scrollTop!=d&&(l.display.scroller.scrollTop=d))}function Sh(l,d,y,v){d=Math.max(0,Math.min(d,l.display.scroller.scrollWidth-l.display.scroller.clientWidth)),!((y?d==l.doc.scrollLeft:Math.abs(l.doc.scrollLeft-d)<2)&&!v)&&(l.doc.scrollLeft=d,EW(l),l.display.scroller.scrollLeft!=d&&(l.display.scroller.scrollLeft=d),l.display.scrollbars.setScrollLeft(d))}function Y1(l){var d=l.display,y=d.gutters.offsetWidth,v=Math.round(l.doc.height+AN(l.display));return{clientHeight:d.scroller.clientHeight,viewHeight:d.wrapper.clientHeight,scrollWidth:d.scroller.scrollWidth,clientWidth:d.scroller.clientWidth,viewWidth:d.wrapper.clientWidth,barLeft:l.options.fixedGutter?y:0,docHeight:v,scrollHeight:v+gl(l)+d.barHeight,nativeBarWidth:d.nativeBarWidth,gutterWidth:y}}var Eh=function(l,d,y){this.cm=y;var v=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");v.tabIndex=w.tabIndex=-1,l(v),l(w),ke(v,"scroll",function(){v.clientHeight&&d(v.scrollTop,"vertical")}),ke(w,"scroll",function(){w.clientWidth&&d(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Eh.prototype.update=function(l){var d=l.scrollWidth>l.clientWidth+1,y=l.scrollHeight>l.clientHeight+1,v=l.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=d?v+"px":"0";var w=l.viewHeight-(d?v:0);this.vert.firstChild.style.height=Math.max(0,l.scrollHeight-l.clientHeight+w)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(d){this.horiz.style.display="block",this.horiz.style.right=y?v+"px":"0",this.horiz.style.left=l.barLeft+"px";var I=l.viewWidth-l.barLeft-(y?v:0);this.horiz.firstChild.style.width=Math.max(0,l.scrollWidth-l.clientWidth+I)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&l.clientHeight>0&&(v==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?v:0,bottom:d?v:0}},Eh.prototype.setScrollLeft=function(l){this.horiz.scrollLeft!=l&&(this.horiz.scrollLeft=l),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Eh.prototype.setScrollTop=function(l){this.vert.scrollTop!=l&&(this.vert.scrollTop=l),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Eh.prototype.zeroWidthHack=function(){var l=T&&!k?"12px":"18px";this.horiz.style.height=this.vert.style.width=l,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ie,this.disableVert=new ie},Eh.prototype.enableZeroWidthBar=function(l,d,y){l.style.visibility="";function v(){var w=l.getBoundingClientRect(),I=y=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);I!=l?l.style.visibility="hidden":d.set(1e3,v)}d.set(1e3,v)},Eh.prototype.clear=function(){var l=this.horiz.parentNode;l.removeChild(this.horiz),l.removeChild(this.vert)};var K1=function(){};K1.prototype.update=function(){return{bottom:0,right:0}},K1.prototype.setScrollLeft=function(){},K1.prototype.setScrollTop=function(){},K1.prototype.clear=function(){};function yf(l,d){d||(d=Y1(l));var y=l.display.barWidth,v=l.display.barHeight;kW(l,d);for(var w=0;w<4&&y!=l.display.barWidth||v!=l.display.barHeight;w++)y!=l.display.barWidth&&l.options.lineWrapping&&_w(l),kW(l,Y1(l)),y=l.display.barWidth,v=l.display.barHeight}function kW(l,d){var y=l.display,v=y.scrollbars.update(d);y.sizer.style.paddingRight=(y.barWidth=v.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=v.bottom)+"px",y.heightForcer.style.borderBottom=v.bottom+"px solid transparent",v.right&&v.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=v.bottom+"px",y.scrollbarFiller.style.width=v.right+"px"):y.scrollbarFiller.style.display="",v.bottom&&l.options.coverGutterNextToScrollbar&&l.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=v.bottom+"px",y.gutterFiller.style.width=d.gutterWidth+"px"):y.gutterFiller.style.display=""}var jW={native:Eh,null:K1};function CW(l){l.display.scrollbars&&(l.display.scrollbars.clear(),l.display.scrollbars.addClass&&z(l.display.wrapper,l.display.scrollbars.addClass)),l.display.scrollbars=new jW[l.options.scrollbarStyle](function(d){l.display.wrapper.insertBefore(d,l.display.scrollbarFiller),ke(d,"mousedown",function(){l.state.focused&&setTimeout(function(){return l.display.input.focus()},0)}),d.setAttribute("cm-not-content","true")},function(d,y){y=="horizontal"?Sh(l,d):q1(l,d)},l),l.display.scrollbars.addClass&&Z(l.display.wrapper,l.display.scrollbars.addClass)}var U4e=0;function Nh(l){l.curOp={cm:l,viewChanged:!1,startHeight:l.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++U4e,markArrays:null},k4e(l.curOp)}function _h(l){var d=l.curOp;d&&C4e(d,function(y){for(var v=0;v<y.ops.length;v++)y.ops[v].cm.curOp=null;q4e(y)})}function q4e(l){for(var d=l.ops,y=0;y<d.length;y++)Y4e(d[y]);for(var v=0;v<d.length;v++)K4e(d[v]);for(var w=0;w<d.length;w++)G4e(d[w]);for(var I=0;I<d.length;I++)Z4e(d[I]);for(var O=0;O<d.length;O++)Q4e(d[O])}function Y4e(l){var d=l.cm,y=d.display;X4e(d),l.updateMaxLine&&PN(d),l.mustUpdate=l.viewChanged||l.forceUpdate||l.scrollTop!=null||l.scrollToPos&&(l.scrollToPos.from.line<y.viewFrom||l.scrollToPos.to.line>=y.viewTo)||y.maxLineChanged&&d.options.lineWrapping,l.update=l.mustUpdate&&new Mw(d,l.mustUpdate&&{top:l.scrollTop,ensure:l.scrollToPos},l.forceUpdate)}function K4e(l){l.updatedDisplay=l.mustUpdate&&XN(l.cm,l.update)}function G4e(l){var d=l.cm,y=d.display;l.updatedDisplay&&_w(d),l.barMeasure=Y1(d),y.maxLineChanged&&!d.options.lineWrapping&&(l.adjustWidthTo=aW(d,y.maxLine,y.maxLine.text.length).left+3,d.display.sizerWidth=l.adjustWidthTo,l.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+l.adjustWidthTo+gl(d)+d.display.barWidth),l.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+l.adjustWidthTo-wh(d))),(l.updatedDisplay||l.selectionChanged)&&(l.preparedSelection=y.input.prepareSelection())}function Z4e(l){var d=l.cm;l.adjustWidthTo!=null&&(d.display.sizer.style.minWidth=l.adjustWidthTo+"px",l.maxScrollLeft<d.doc.scrollLeft&&Sh(d,Math.min(d.display.scroller.scrollLeft,l.maxScrollLeft),!0),d.display.maxLineChanged=!1);var y=l.focus&&l.focus==G(ne(d));l.preparedSelection&&d.display.input.showSelection(l.preparedSelection,y),(l.updatedDisplay||l.startHeight!=d.doc.height)&&yf(d,l.barMeasure),l.updatedDisplay&&n6(d,l.barMeasure),l.selectionChanged&&KN(d),d.state.focused&&l.updateInput&&d.display.input.reset(l.typing),y&&yW(l.cm)}function Q4e(l){var d=l.cm,y=d.display,v=d.doc;if(l.updatedDisplay&&SW(d,l.update),y.wheelStartX!=null&&(l.scrollTop!=null||l.scrollLeft!=null||l.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),l.scrollTop!=null&&wW(d,l.scrollTop,l.forceScroll),l.scrollLeft!=null&&Sh(d,l.scrollLeft,!0,!0),l.scrollToPos){var w=B4e(d,an(v,l.scrollToPos.from),an(v,l.scrollToPos.to),l.scrollToPos.margin);$4e(d,w)}var I=l.maybeHiddenMarkers,O=l.maybeUnhiddenMarkers;if(I)for(var H=0;H<I.length;++H)I[H].lines.length||ve(I[H],"hide");if(O)for(var Y=0;Y<O.length;++Y)O[Y].lines.length&&ve(O[Y],"unhide");y.wrapper.offsetHeight&&(v.scrollTop=d.display.scroller.scrollTop),l.changeObjs&&ve(d,"changes",d,l.changeObjs),l.update&&l.update.finish()}function Xs(l,d){if(l.curOp)return d();Nh(l);try{return d()}finally{_h(l)}}function la(l,d){return function(){if(l.curOp)return d.apply(l,arguments);Nh(l);try{return d.apply(l,arguments)}finally{_h(l)}}}function as(l){return function(){if(this.curOp)return l.apply(this,arguments);Nh(this);try{return l.apply(this,arguments)}finally{_h(this)}}}function ca(l){return function(){var d=this.cm;if(!d||d.curOp)return l.apply(this,arguments);Nh(d);try{return l.apply(this,arguments)}finally{_h(d)}}}function G1(l,d){l.doc.highlightFrontier<l.display.viewTo&&l.state.highlight.set(d,re(J4e,l))}function J4e(l){var d=l.doc;if(!(d.highlightFrontier>=l.display.viewTo)){var y=+new Date+l.options.workTime,v=z1(l,d.highlightFrontier),w=[];d.iter(v.line,Math.min(d.first+d.size,l.display.viewTo+500),function(I){if(v.line>=l.display.viewFrom){var O=I.styles,H=I.text.length>l.options.maxHighlightLength?nr(d.mode,v.state):null,Y=LB(l,I,v,!0);H&&(v.state=H),I.styles=Y.styles;var ee=I.styleClasses,ce=Y.classes;ce?I.styleClasses=ce:ee&&(I.styleClasses=null);for(var me=!O||O.length!=I.styles.length||ee!=ce&&(!ee||!ce||ee.bgClass!=ce.bgClass||ee.textClass!=ce.textClass),Se=0;!me&&Se<O.length;++Se)me=O[Se]!=I.styles[Se];me&&w.push(v.line),I.stateAfter=v.save(),v.nextLine()}else I.text.length<=l.options.maxHighlightLength&&IN(l,I.text,v),I.stateAfter=v.line%5==0?v.save():null,v.nextLine();if(+new Date>y)return G1(l,l.options.workDelay),!0}),d.highlightFrontier=v.line,d.modeFrontier=Math.max(d.modeFrontier,v.line),w.length&&Xs(l,function(){for(var I=0;I<w.length;I++)Rd(l,w[I],"text")})}}var Mw=function(l,d,y){var v=l.display;this.viewport=d,this.visible=Iw(v,l.doc,d),this.editorIsHidden=!v.wrapper.offsetWidth,this.wrapperHeight=v.wrapper.clientHeight,this.wrapperWidth=v.wrapper.clientWidth,this.oldDisplayWidth=wh(l),this.force=y,this.dims=VN(l),this.events=[]};Mw.prototype.signal=function(l,d){Ze(l,d)&&this.events.push(arguments)},Mw.prototype.finish=function(){for(var l=0;l<this.events.length;l++)ve.apply(null,this.events[l])};function X4e(l){var d=l.display;!d.scrollbarsClipped&&d.scroller.offsetWidth&&(d.nativeBarWidth=d.scroller.offsetWidth-d.scroller.clientWidth,d.heightForcer.style.height=gl(l)+"px",d.sizer.style.marginBottom=-d.nativeBarWidth+"px",d.sizer.style.borderRightWidth=gl(l)+"px",d.scrollbarsClipped=!0)}function eSe(l){if(l.hasFocus())return null;var d=G(ne(l));if(!d||!W(l.display.lineDiv,d))return null;var y={activeElt:d};if(window.getSelection){var v=ae(l).getSelection();v.anchorNode&&v.extend&&W(l.display.lineDiv,v.anchorNode)&&(y.anchorNode=v.anchorNode,y.anchorOffset=v.anchorOffset,y.focusNode=v.focusNode,y.focusOffset=v.focusOffset)}return y}function tSe(l){if(!(!l||!l.activeElt||l.activeElt==G(Q(l.activeElt)))&&(l.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(l.activeElt.nodeName)&&l.anchorNode&&W(document.body,l.anchorNode)&&W(document.body,l.focusNode))){var d=l.activeElt.ownerDocument,y=d.defaultView.getSelection(),v=d.createRange();v.setEnd(l.anchorNode,l.anchorOffset),v.collapse(!1),y.removeAllRanges(),y.addRange(v),y.extend(l.focusNode,l.focusOffset)}}function XN(l,d){var y=l.display,v=l.doc;if(d.editorIsHidden)return Ad(l),!1;if(!d.force&&d.visible.from>=y.viewFrom&&d.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&gW(l)==0)return!1;NW(l)&&(Ad(l),d.dims=VN(l));var w=v.first+v.size,I=Math.max(d.visible.from-l.options.viewportMargin,v.first),O=Math.min(w,d.visible.to+l.options.viewportMargin);y.viewFrom<I&&I-y.viewFrom<20&&(I=Math.max(v.first,y.viewFrom)),y.viewTo>O&&y.viewTo-O<20&&(O=Math.min(w,y.viewTo)),cc&&(I=DN(l.doc,I),O=qB(l.doc,O));var H=I!=y.viewFrom||O!=y.viewTo||y.lastWrapHeight!=d.wrapperHeight||y.lastWrapWidth!=d.wrapperWidth;F4e(l,I,O),y.viewOffset=dc(Ot(l.doc,y.viewFrom)),l.display.mover.style.top=y.viewOffset+"px";var Y=gW(l);if(!H&&Y==0&&!d.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var ee=eSe(l);return Y>4&&(y.lineDiv.style.display="none"),nSe(l,y.updateLineNumbers,d.dims),Y>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,tSe(ee),R(y.cursorDiv),R(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,H&&(y.lastWrapHeight=d.wrapperHeight,y.lastWrapWidth=d.wrapperWidth,G1(l,400)),y.updateLineNumbers=null,!0}function SW(l,d){for(var y=d.viewport,v=!0;;v=!1){if(!v||!l.options.lineWrapping||d.oldDisplayWidth==wh(l)){if(y&&y.top!=null&&(y={top:Math.min(l.doc.height+AN(l.display)-zN(l),y.top)}),d.visible=Iw(l.display,l.doc,y),d.visible.from>=l.display.viewFrom&&d.visible.to<=l.display.viewTo)break}else v&&(d.visible=Iw(l.display,l.doc,y));if(!XN(l,d))break;_w(l);var w=Y1(l);V1(l),yf(l,w),n6(l,w),d.force=!1}d.signal(l,"update",l),(l.display.viewFrom!=l.display.reportedViewFrom||l.display.viewTo!=l.display.reportedViewTo)&&(d.signal(l,"viewportChange",l,l.display.viewFrom,l.display.viewTo),l.display.reportedViewFrom=l.display.viewFrom,l.display.reportedViewTo=l.display.viewTo)}function e6(l,d){var y=new Mw(l,d);if(XN(l,y)){_w(l),SW(l,y);var v=Y1(l);V1(l),yf(l,v),n6(l,v),y.finish()}}function nSe(l,d,y){var v=l.display,w=l.options.lineNumbers,I=v.lineDiv,O=I.firstChild;function H(Fe){var Ue=Fe.nextSibling;return p&&T&&l.display.currentWheelTarget==Fe?Fe.style.display="none":Fe.parentNode.removeChild(Fe),Ue}for(var Y=v.view,ee=v.viewFrom,ce=0;ce<Y.length;ce++){var me=Y[ce];if(!me.hidden)if(!me.node||me.node.parentNode!=I){var Se=I4e(l,me,ee,y);I.insertBefore(Se,O)}else{for(;O!=me.node;)O=H(O);var we=w&&d!=null&&d<=ee&&me.lineNumber;me.changes&&(de(me.changes,"gutter")>-1&&(we=!1),QB(l,me,ee,y)),we&&(R(me.lineNumber),me.lineNumber.appendChild(document.createTextNode(et(l.options,ee)))),O=me.node.nextSibling}ee+=me.size}for(;O;)O=H(O)}function t6(l){var d=l.gutters.offsetWidth;l.sizer.style.marginLeft=d+"px",ia(l,"gutterChanged",l)}function n6(l,d){l.display.sizer.style.minHeight=d.docHeight+"px",l.display.heightForcer.style.top=d.docHeight+"px",l.display.gutters.style.height=d.docHeight+l.display.barHeight+gl(l)+"px"}function EW(l){var d=l.display,y=d.view;if(!(!d.alignWidgets&&(!d.gutters.firstChild||!l.options.fixedGutter))){for(var v=UN(d)-d.scroller.scrollLeft+l.doc.scrollLeft,w=d.gutters.offsetWidth,I=v+"px",O=0;O<y.length;O++)if(!y[O].hidden){l.options.fixedGutter&&(y[O].gutter&&(y[O].gutter.style.left=I),y[O].gutterBackground&&(y[O].gutterBackground.style.left=I));var H=y[O].alignable;if(H)for(var Y=0;Y<H.length;Y++)H[Y].style.left=I}l.options.fixedGutter&&(d.gutters.style.left=v+w+"px")}}function NW(l){if(!l.options.lineNumbers)return!1;var d=l.doc,y=et(l.options,d.first+d.size-1),v=l.display;if(y.length!=v.lineNumChars){var w=v.measure.appendChild(_("div",[_("div",y)],"CodeMirror-linenumber CodeMirror-gutter-elt")),I=w.firstChild.offsetWidth,O=w.offsetWidth-I;return v.lineGutter.style.width="",v.lineNumInnerWidth=Math.max(I,v.lineGutter.offsetWidth-O)+1,v.lineNumWidth=v.lineNumInnerWidth+O,v.lineNumChars=v.lineNumInnerWidth?y.length:-1,v.lineGutter.style.width=v.lineNumWidth+"px",t6(l.display),!0}return!1}function r6(l,d){for(var y=[],v=!1,w=0;w<l.length;w++){var I=l[w],O=null;if(typeof I!="string"&&(O=I.style,I=I.className),I=="CodeMirror-linenumbers")if(d)v=!0;else continue;y.push({className:I,style:O})}return d&&!v&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function _W(l){var d=l.gutters,y=l.gutterSpecs;R(d),l.lineGutter=null;for(var v=0;v<y.length;++v){var w=y[v],I=w.className,O=w.style,H=d.appendChild(_("div",null,"CodeMirror-gutter "+I));O&&(H.style.cssText=O),I=="CodeMirror-linenumbers"&&(l.lineGutter=H,H.style.width=(l.lineNumWidth||1)+"px")}d.style.display=y.length?"":"none",t6(l)}function Z1(l){_W(l.display),Cs(l),EW(l)}function rSe(l,d,y,v){var w=this;this.input=y,w.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=U("div",null,"CodeMirror-code"),w.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=_("div",null,"CodeMirror-cursors"),w.measure=_("div",null,"CodeMirror-measure"),w.lineMeasure=_("div",null,"CodeMirror-measure"),w.lineSpace=U("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var I=U("div",[w.lineSpace],"CodeMirror-lines");w.mover=_("div",[I],null,"position: relative"),w.sizer=_("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=_("div",null,null,"position: absolute; height: "+xe+"px; width: 1px;"),w.gutters=_("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=_("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=_("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),x&&C>=105&&(w.wrapper.style.clipPath="inset(0px)"),w.wrapper.setAttribute("translate","no"),u&&h<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!p&&!(s&&N)&&(w.scroller.draggable=!0),l&&(l.appendChild?l.appendChild(w.wrapper):l(w.wrapper)),w.viewFrom=w.viewTo=d.first,w.reportedViewFrom=w.reportedViewTo=d.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=r6(v.gutters,v.lineNumbers),_W(w),y.init(w)}var Lw=0,hc=null;u?hc=-.53:s?hc=15:x?hc=-.7:g&&(hc=-.3333333333333333);function IW(l){var d=l.wheelDeltaX,y=l.wheelDeltaY;return d==null&&l.detail&&l.axis==l.HORIZONTAL_AXIS&&(d=l.detail),y==null&&l.detail&&l.axis==l.VERTICAL_AXIS?y=l.detail:y==null&&(y=l.wheelDelta),{x:d,y}}function aSe(l){var d=IW(l);return d.x*=hc,d.y*=hc,d}function TW(l,d){x&&C==102&&(l.display.chromeScrollHack==null?l.display.sizer.style.pointerEvents="none":clearTimeout(l.display.chromeScrollHack),l.display.chromeScrollHack=setTimeout(function(){l.display.chromeScrollHack=null,l.display.sizer.style.pointerEvents=""},100));var y=IW(d),v=y.x,w=y.y,I=hc;d.deltaMode===0&&(v=d.deltaX,w=d.deltaY,I=1);var O=l.display,H=O.scroller,Y=H.scrollWidth>H.clientWidth,ee=H.scrollHeight>H.clientHeight;if(v&&Y||w&&ee){if(w&&T&&p){e:for(var ce=d.target,me=O.view;ce!=H;ce=ce.parentNode)for(var Se=0;Se<me.length;Se++)if(me[Se].node==ce){l.display.currentWheelTarget=ce;break e}}if(v&&!s&&!b&&I!=null){w&&ee&&q1(l,Math.max(0,H.scrollTop+w*I)),Sh(l,Math.max(0,H.scrollLeft+v*I)),(!w||w&&ee)&&ot(d),O.wheelStartX=null;return}if(w&&I!=null){var we=w*I,Fe=l.doc.scrollTop,Ue=Fe+O.wrapper.clientHeight;we<0?Fe=Math.max(0,Fe+we-50):Ue=Math.min(l.doc.height,Ue+we+50),e6(l,{top:Fe,bottom:Ue})}Lw<20&&d.deltaMode!==0&&(O.wheelStartX==null?(O.wheelStartX=H.scrollLeft,O.wheelStartY=H.scrollTop,O.wheelDX=v,O.wheelDY=w,setTimeout(function(){if(O.wheelStartX!=null){var nt=H.scrollLeft-O.wheelStartX,lt=H.scrollTop-O.wheelStartY,ft=lt&&O.wheelDY&&lt/O.wheelDY||nt&&O.wheelDX&&nt/O.wheelDX;O.wheelStartX=O.wheelStartY=null,ft&&(hc=(hc*Lw+ft)/(Lw+1),++Lw)}},200)):(O.wheelDX+=v,O.wheelDY+=w))}}var No=function(l,d){this.ranges=l,this.primIndex=d};No.prototype.primary=function(){return this.ranges[this.primIndex]},No.prototype.equals=function(l){if(l==this)return!0;if(l.primIndex!=this.primIndex||l.ranges.length!=this.ranges.length)return!1;for(var d=0;d<this.ranges.length;d++){var y=this.ranges[d],v=l.ranges[d];if(!ln(y.anchor,v.anchor)||!ln(y.head,v.head))return!1}return!0},No.prototype.deepCopy=function(){for(var l=[],d=0;d<this.ranges.length;d++)l[d]=new zn(Vr(this.ranges[d].anchor),Vr(this.ranges[d].head));return new No(l,this.primIndex)},No.prototype.somethingSelected=function(){for(var l=0;l<this.ranges.length;l++)if(!this.ranges[l].empty())return!0;return!1},No.prototype.contains=function(l,d){d||(d=l);for(var y=0;y<this.ranges.length;y++){var v=this.ranges[y];if(pt(d,v.from())>=0&&pt(l,v.to())<=0)return y}return-1};var zn=function(l,d){this.anchor=l,this.head=d};zn.prototype.from=function(){return Od(this.anchor,this.head)},zn.prototype.to=function(){return Ra(this.anchor,this.head)},zn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Pi(l,d,y){var v=l&&l.options.selectionsMayTouch,w=d[y];d.sort(function(Se,we){return pt(Se.from(),we.from())}),y=de(d,w);for(var I=1;I<d.length;I++){var O=d[I],H=d[I-1],Y=pt(H.to(),O.from());if(v&&!O.empty()?Y>0:Y>=0){var ee=Od(H.from(),O.from()),ce=Ra(H.to(),O.to()),me=H.empty()?O.from()==O.head:H.from()==H.head;I<=y&&--y,d.splice(--I,2,new zn(me?ce:ee,me?ee:ce))}}return new No(d,y)}function zd(l,d){return new No([new zn(l,d||l)],0)}function Fd(l){return l.text?Le(l.from.line+l.text.length-1,Ve(l.text).length+(l.text.length==1?l.from.ch:0)):l.to}function MW(l,d){if(pt(l,d.from)<0)return l;if(pt(l,d.to)<=0)return Fd(d);var y=l.line+d.text.length-(d.to.line-d.from.line)-1,v=l.ch;return l.line==d.to.line&&(v+=Fd(d).ch-d.to.ch),Le(y,v)}function a6(l,d){for(var y=[],v=0;v<l.sel.ranges.length;v++){var w=l.sel.ranges[v];y.push(new zn(MW(w.anchor,d),MW(w.head,d)))}return Pi(l.cm,y,l.sel.primIndex)}function LW(l,d,y){return l.line==d.line?Le(y.line,l.ch-d.ch+y.ch):Le(y.line+(l.line-d.line),l.ch)}function sSe(l,d,y){for(var v=[],w=Le(l.first,0),I=w,O=0;O<d.length;O++){var H=d[O],Y=LW(H.from,w,I),ee=LW(Fd(H),w,I);if(w=H.to,I=ee,y=="around"){var ce=l.sel.ranges[O],me=pt(ce.head,ce.anchor)<0;v[O]=new zn(me?ee:Y,me?Y:ee)}else v[O]=new zn(Y,Y)}return new No(v,l.sel.primIndex)}function s6(l){l.doc.mode=Bt(l.options,l.doc.modeOption),Q1(l)}function Q1(l){l.doc.iter(function(d){d.stateAfter&&(d.stateAfter=null),d.styles&&(d.styles=null)}),l.doc.modeFrontier=l.doc.highlightFrontier=l.doc.first,G1(l,100),l.state.modeGen++,l.curOp&&Cs(l)}function DW(l,d){return d.from.ch==0&&d.to.ch==0&&Ve(d.text)==""&&(!l.cm||l.cm.options.wholeLineUpdateBefore)}function o6(l,d,y,v){function w(ft){return y?y[ft]:null}function I(ft,ct,_t){p4e(ft,ct,_t,v),ia(ft,"change",ft,d)}function O(ft,ct){for(var _t=[],Ut=ft;Ut<ct;++Ut)_t.push(new uf(ee[Ut],w(Ut),v));return _t}var H=d.from,Y=d.to,ee=d.text,ce=Ot(l,H.line),me=Ot(l,Y.line),Se=Ve(ee),we=w(ee.length-1),Fe=Y.line-H.line;if(d.full)l.insert(0,O(0,ee.length)),l.remove(ee.length,l.size-ee.length);else if(DW(l,d)){var Ue=O(0,ee.length-1);I(me,me.text,we),Fe&&l.remove(H.line,Fe),Ue.length&&l.insert(H.line,Ue)}else if(ce==me)if(ee.length==1)I(ce,ce.text.slice(0,H.ch)+Se+ce.text.slice(Y.ch),we);else{var nt=O(1,ee.length-1);nt.push(new uf(Se+ce.text.slice(Y.ch),we,v)),I(ce,ce.text.slice(0,H.ch)+ee[0],w(0)),l.insert(H.line+1,nt)}else if(ee.length==1)I(ce,ce.text.slice(0,H.ch)+ee[0]+me.text.slice(Y.ch),w(0)),l.remove(H.line+1,Fe);else{I(ce,ce.text.slice(0,H.ch)+ee[0],w(0)),I(me,Se+me.text.slice(Y.ch),we);var lt=O(1,ee.length-1);Fe>1&&l.remove(H.line+1,Fe-1),l.insert(H.line+1,lt)}ia(l,"change",l,d)}function Hd(l,d,y){function v(w,I,O){if(w.linked)for(var H=0;H<w.linked.length;++H){var Y=w.linked[H];if(Y.doc!=I){var ee=O&&Y.sharedHist;y&&!ee||(d(Y.doc,ee),v(Y.doc,w,ee))}}}v(l,null,!0)}function OW(l,d){if(d.cm)throw new Error("This document is already in use.");l.doc=d,d.cm=l,qN(l),s6(l),PW(l),l.options.direction=d.direction,l.options.lineWrapping||PN(l),l.options.mode=d.modeOption,Cs(l)}function PW(l){(l.doc.direction=="rtl"?Z:z)(l.display.lineDiv,"CodeMirror-rtl")}function oSe(l){Xs(l,function(){PW(l),Cs(l)})}function Dw(l){this.done=[],this.undone=[],this.undoDepth=l?l.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=l?l.maxGeneration:1}function i6(l,d){var y={from:Vr(d.from),to:Fd(d),text:tt(l,d.from,d.to)};return zW(l,y,d.from.line,d.to.line+1),Hd(l,function(v){return zW(v,y,d.from.line,d.to.line+1)},!0),y}function RW(l){for(;l.length;){var d=Ve(l);if(d.ranges)l.pop();else break}}function iSe(l,d){if(d)return RW(l.done),Ve(l.done);if(l.done.length&&!Ve(l.done).ranges)return Ve(l.done);if(l.done.length>1&&!l.done[l.done.length-2].ranges)return l.done.pop(),Ve(l.done)}function AW(l,d,y,v){var w=l.history;w.undone.length=0;var I=+new Date,O,H;if((w.lastOp==v||w.lastOrigin==d.origin&&d.origin&&(d.origin.charAt(0)=="+"&&w.lastModTime>I-(l.cm?l.cm.options.historyEventDelay:500)||d.origin.charAt(0)=="*"))&&(O=iSe(w,w.lastOp==v)))H=Ve(O.changes),pt(d.from,d.to)==0&&pt(d.from,H.to)==0?H.to=Fd(d):O.changes.push(i6(l,d));else{var Y=Ve(w.done);for((!Y||!Y.ranges)&&Ow(l.sel,w.done),O={changes:[i6(l,d)],generation:w.generation},w.done.push(O);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(y),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=I,w.lastOp=w.lastSelOp=v,w.lastOrigin=w.lastSelOrigin=d.origin,H||ve(l,"historyAdded")}function lSe(l,d,y,v){var w=d.charAt(0);return w=="*"||w=="+"&&y.ranges.length==v.ranges.length&&y.somethingSelected()==v.somethingSelected()&&new Date-l.history.lastSelTime<=(l.cm?l.cm.options.historyEventDelay:500)}function cSe(l,d,y,v){var w=l.history,I=v&&v.origin;y==w.lastSelOp||I&&w.lastSelOrigin==I&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==I||lSe(l,I,Ve(w.done),d))?w.done[w.done.length-1]=d:Ow(d,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=I,w.lastSelOp=y,v&&v.clearRedo!==!1&&RW(w.undone)}function Ow(l,d){var y=Ve(d);y&&y.ranges&&y.equals(l)||d.push(l)}function zW(l,d,y,v){var w=d["spans_"+l.id],I=0;l.iter(Math.max(l.first,y),Math.min(l.first+l.size,v),function(O){O.markedSpans&&((w||(w=d["spans_"+l.id]={}))[I]=O.markedSpans),++I})}function dSe(l){if(!l)return null;for(var d,y=0;y<l.length;++y)l[y].marker.explicitlyCleared?d||(d=l.slice(0,y)):d&&d.push(l[y]);return d?d.length?d:null:l}function uSe(l,d){var y=d["spans_"+l.id];if(!y)return null;for(var v=[],w=0;w<d.text.length;++w)v.push(dSe(y[w]));return v}function FW(l,d){var y=uSe(l,d),v=MN(l,d);if(!y)return v;if(!v)return y;for(var w=0;w<y.length;++w){var I=y[w],O=v[w];if(I&&O)e:for(var H=0;H<O.length;++H){for(var Y=O[H],ee=0;ee<I.length;++ee)if(I[ee].marker==Y.marker)continue e;I.push(Y)}else O&&(y[w]=O)}return y}function xf(l,d,y){for(var v=[],w=0;w<l.length;++w){var I=l[w];if(I.ranges){v.push(y?No.prototype.deepCopy.call(I):I);continue}var O=I.changes,H=[];v.push({changes:H});for(var Y=0;Y<O.length;++Y){var ee=O[Y],ce=void 0;if(H.push({from:ee.from,to:ee.to,text:ee.text}),d)for(var me in ee)(ce=me.match(/^spans_(\d+)$/))&&de(d,Number(ce[1]))>-1&&(Ve(H)[me]=ee[me],delete ee[me])}}return v}function l6(l,d,y,v){if(v){var w=l.anchor;if(y){var I=pt(d,w)<0;I!=pt(y,w)<0?(w=d,d=y):I!=pt(d,y)<0&&(d=y)}return new zn(w,d)}else return new zn(y||d,d)}function Pw(l,d,y,v,w){w==null&&(w=l.cm&&(l.cm.display.shift||l.extend)),Aa(l,new No([l6(l.sel.primary(),d,y,w)],0),v)}function HW(l,d,y){for(var v=[],w=l.cm&&(l.cm.display.shift||l.extend),I=0;I<l.sel.ranges.length;I++)v[I]=l6(l.sel.ranges[I],d[I],null,w);var O=Pi(l.cm,v,l.sel.primIndex);Aa(l,O,y)}function c6(l,d,y,v){var w=l.sel.ranges.slice(0);w[d]=y,Aa(l,Pi(l.cm,w,l.sel.primIndex),v)}function $W(l,d,y,v){Aa(l,zd(d,y),v)}function hSe(l,d,y){var v={ranges:d.ranges,update:function(w){this.ranges=[];for(var I=0;I<w.length;I++)this.ranges[I]=new zn(an(l,w[I].anchor),an(l,w[I].head))},origin:y&&y.origin};return ve(l,"beforeSelectionChange",l,v),l.cm&&ve(l.cm,"beforeSelectionChange",l.cm,v),v.ranges!=d.ranges?Pi(l.cm,v.ranges,v.ranges.length-1):d}function BW(l,d,y){var v=l.history.done,w=Ve(v);w&&w.ranges?(v[v.length-1]=d,Rw(l,d,y)):Aa(l,d,y)}function Aa(l,d,y){Rw(l,d,y),cSe(l,l.sel,l.cm?l.cm.curOp.id:NaN,y)}function Rw(l,d,y){(Ze(l,"beforeSelectionChange")||l.cm&&Ze(l.cm,"beforeSelectionChange"))&&(d=hSe(l,d,y));var v=y&&y.bias||(pt(d.primary().head,l.sel.primary().head)<0?-1:1);WW(l,UW(l,d,v,!0)),!(y&&y.scroll===!1)&&l.cm&&l.cm.getOption("readOnly")!="nocursor"&&vf(l.cm)}function WW(l,d){d.equals(l.sel)||(l.sel=d,l.cm&&(l.cm.curOp.updateInput=1,l.cm.curOp.selectionChanged=!0,Ae(l.cm)),ia(l,"cursorActivity",l))}function VW(l){WW(l,UW(l,l.sel,null,!1))}function UW(l,d,y,v){for(var w,I=0;I<d.ranges.length;I++){var O=d.ranges[I],H=d.ranges.length==l.sel.ranges.length&&l.sel.ranges[I],Y=Aw(l,O.anchor,H&&H.anchor,y,v),ee=O.head==O.anchor?Y:Aw(l,O.head,H&&H.head,y,v);(w||Y!=O.anchor||ee!=O.head)&&(w||(w=d.ranges.slice(0,I)),w[I]=new zn(Y,ee))}return w?Pi(l.cm,w,d.primIndex):d}function bf(l,d,y,v,w){var I=Ot(l,d.line);if(I.markedSpans)for(var O=0;O<I.markedSpans.length;++O){var H=I.markedSpans[O],Y=H.marker,ee="selectLeft"in Y?!Y.selectLeft:Y.inclusiveLeft,ce="selectRight"in Y?!Y.selectRight:Y.inclusiveRight;if((H.from==null||(ee?H.from<=d.ch:H.from<d.ch))&&(H.to==null||(ce?H.to>=d.ch:H.to>d.ch))){if(w&&(ve(Y,"beforeCursorEnter"),Y.explicitlyCleared))if(I.markedSpans){--O;continue}else break;if(!Y.atomic)continue;if(y){var me=Y.find(v<0?1:-1),Se=void 0;if((v<0?ce:ee)&&(me=qW(l,me,-v,me&&me.line==d.line?I:null)),me&&me.line==d.line&&(Se=pt(me,y))&&(v<0?Se<0:Se>0))return bf(l,me,d,v,w)}var we=Y.find(v<0?-1:1);return(v<0?ee:ce)&&(we=qW(l,we,v,we.line==d.line?I:null)),we?bf(l,we,d,v,w):null}}return d}function Aw(l,d,y,v,w){var I=v||1,O=bf(l,d,y,I,w)||!w&&bf(l,d,y,I,!0)||bf(l,d,y,-I,w)||!w&&bf(l,d,y,-I,!0);return O||(l.cantEdit=!0,Le(l.first,0))}function qW(l,d,y,v){return y<0&&d.ch==0?d.line>l.first?an(l,Le(d.line-1)):null:y>0&&d.ch==(v||Ot(l,d.line)).text.length?d.line<l.first+l.size-1?Le(d.line+1,0):null:new Le(d.line,d.ch+y)}function YW(l){l.setSelection(Le(l.firstLine(),0),Le(l.lastLine()),Ee)}function KW(l,d,y){var v={canceled:!1,from:d.from,to:d.to,text:d.text,origin:d.origin,cancel:function(){return v.canceled=!0}};return y&&(v.update=function(w,I,O,H){w&&(v.from=an(l,w)),I&&(v.to=an(l,I)),O&&(v.text=O),H!==void 0&&(v.origin=H)}),ve(l,"beforeChange",l,v),l.cm&&ve(l.cm,"beforeChange",l.cm,v),v.canceled?(l.cm&&(l.cm.curOp.updateInput=2),null):{from:v.from,to:v.to,text:v.text,origin:v.origin}}function wf(l,d,y){if(l.cm){if(!l.cm.curOp)return la(l.cm,wf)(l,d,y);if(l.cm.state.suppressEdits)return}if(!((Ze(l,"beforeChange")||l.cm&&Ze(l.cm,"beforeChange"))&&(d=KW(l,d,!0),!d))){var v=FB&&!y&&c4e(l,d.from,d.to);if(v)for(var w=v.length-1;w>=0;--w)GW(l,{from:v[w].from,to:v[w].to,text:w?[""]:d.text,origin:d.origin});else GW(l,d)}}function GW(l,d){if(!(d.text.length==1&&d.text[0]==""&&pt(d.from,d.to)==0)){var y=a6(l,d);AW(l,d,y,l.cm?l.cm.curOp.id:NaN),J1(l,d,y,MN(l,d));var v=[];Hd(l,function(w,I){!I&&de(v,w.history)==-1&&(XW(w.history,d),v.push(w.history)),J1(w,d,null,MN(w,d))})}}function zw(l,d,y){var v=l.cm&&l.cm.state.suppressEdits;if(!(v&&!y)){for(var w=l.history,I,O=l.sel,H=d=="undo"?w.done:w.undone,Y=d=="undo"?w.undone:w.done,ee=0;ee<H.length&&(I=H[ee],!(y?I.ranges&&!I.equals(l.sel):!I.ranges));ee++);if(ee!=H.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(I=H.pop(),I.ranges){if(Ow(I,Y),y&&!I.equals(l.sel)){Aa(l,I,{clearRedo:!1});return}O=I}else if(v){H.push(I);return}else break;var ce=[];Ow(O,Y),Y.push({changes:ce,generation:w.generation}),w.generation=I.generation||++w.maxGeneration;for(var me=Ze(l,"beforeChange")||l.cm&&Ze(l.cm,"beforeChange"),Se=function(Ue){var nt=I.changes[Ue];if(nt.origin=d,me&&!KW(l,nt,!1))return H.length=0,{};ce.push(i6(l,nt));var lt=Ue?a6(l,nt):Ve(H);J1(l,nt,lt,FW(l,nt)),!Ue&&l.cm&&l.cm.scrollIntoView({from:nt.from,to:Fd(nt)});var ft=[];Hd(l,function(ct,_t){!_t&&de(ft,ct.history)==-1&&(XW(ct.history,nt),ft.push(ct.history)),J1(ct,nt,null,FW(ct,nt))})},we=I.changes.length-1;we>=0;--we){var Fe=Se(we);if(Fe)return Fe.v}}}}function ZW(l,d){if(d!=0&&(l.first+=d,l.sel=new No(Lt(l.sel.ranges,function(w){return new zn(Le(w.anchor.line+d,w.anchor.ch),Le(w.head.line+d,w.head.ch))}),l.sel.primIndex),l.cm)){Cs(l.cm,l.first,l.first-d,d);for(var y=l.cm.display,v=y.viewFrom;v<y.viewTo;v++)Rd(l.cm,v,"gutter")}}function J1(l,d,y,v){if(l.cm&&!l.cm.curOp)return la(l.cm,J1)(l,d,y,v);if(d.to.line<l.first){ZW(l,d.text.length-1-(d.to.line-d.from.line));return}if(!(d.from.line>l.lastLine())){if(d.from.line<l.first){var w=d.text.length-1-(l.first-d.from.line);ZW(l,w),d={from:Le(l.first,0),to:Le(d.to.line+w,d.to.ch),text:[Ve(d.text)],origin:d.origin}}var I=l.lastLine();d.to.line>I&&(d={from:d.from,to:Le(I,Ot(l,I).text.length),text:[d.text[0]],origin:d.origin}),d.removed=tt(l,d.from,d.to),y||(y=a6(l,d)),l.cm?pSe(l.cm,d,v):o6(l,d,v),Rw(l,y,Ee),l.cantEdit&&Aw(l,Le(l.firstLine(),0))&&(l.cantEdit=!1)}}function pSe(l,d,y){var v=l.doc,w=l.display,I=d.from,O=d.to,H=!1,Y=I.line;l.options.lineWrapping||(Y=te(Di(Ot(v,I.line))),v.iter(Y,O.line+1,function(we){if(we==w.maxLine)return H=!0,!0})),v.sel.contains(d.from,d.to)>-1&&Ae(l),o6(v,d,y,fW(l)),l.options.lineWrapping||(v.iter(Y,I.line+d.text.length,function(we){var Fe=ww(we);Fe>w.maxLineLength&&(w.maxLine=we,w.maxLineLength=Fe,w.maxLineChanged=!0,H=!1)}),H&&(l.curOp.updateMaxLine=!0)),n4e(v,I.line),G1(l,400);var ee=d.text.length-(O.line-I.line)-1;d.full?Cs(l):I.line==O.line&&d.text.length==1&&!DW(l.doc,d)?Rd(l,I.line,"text"):Cs(l,I.line,O.line+1,ee);var ce=Ze(l,"changes"),me=Ze(l,"change");if(me||ce){var Se={from:I,to:O,text:d.text,removed:d.removed,origin:d.origin};me&&ia(l,"change",l,Se),ce&&(l.curOp.changeObjs||(l.curOp.changeObjs=[])).push(Se)}l.display.selForContextMenu=null}function kf(l,d,y,v,w){var I;v||(v=y),pt(v,y)<0&&(I=[v,y],y=I[0],v=I[1]),typeof d=="string"&&(d=l.splitLines(d)),wf(l,{from:y,to:v,text:d,origin:w})}function QW(l,d,y,v){y<l.line?l.line+=v:d<l.line&&(l.line=d,l.ch=0)}function JW(l,d,y,v){for(var w=0;w<l.length;++w){var I=l[w],O=!0;if(I.ranges){I.copied||(I=l[w]=I.deepCopy(),I.copied=!0);for(var H=0;H<I.ranges.length;H++)QW(I.ranges[H].anchor,d,y,v),QW(I.ranges[H].head,d,y,v);continue}for(var Y=0;Y<I.changes.length;++Y){var ee=I.changes[Y];if(y<ee.from.line)ee.from=Le(ee.from.line+v,ee.from.ch),ee.to=Le(ee.to.line+v,ee.to.ch);else if(d<=ee.to.line){O=!1;break}}O||(l.splice(0,w+1),w=0)}}function XW(l,d){var y=d.from.line,v=d.to.line,w=d.text.length-(v-y)-1;JW(l.done,y,v,w),JW(l.undone,y,v,w)}function X1(l,d,y,v){var w=d,I=d;return typeof d=="number"?I=Ot(l,TB(l,d)):w=te(d),w==null?null:(v(I,w)&&l.cm&&Rd(l.cm,w,y),I)}function ev(l){this.lines=l,this.parent=null;for(var d=0,y=0;y<l.length;++y)l[y].parent=this,d+=l[y].height;this.height=d}ev.prototype={chunkSize:function(){return this.lines.length},removeInner:function(l,d){for(var y=l,v=l+d;y<v;++y){var w=this.lines[y];this.height-=w.height,m4e(w),ia(w,"delete")}this.lines.splice(l,d)},collapse:function(l){l.push.apply(l,this.lines)},insertInner:function(l,d,y){this.height+=y,this.lines=this.lines.slice(0,l).concat(d).concat(this.lines.slice(l));for(var v=0;v<d.length;++v)d[v].parent=this},iterN:function(l,d,y){for(var v=l+d;l<v;++l)if(y(this.lines[l]))return!0}};function tv(l){this.children=l;for(var d=0,y=0,v=0;v<l.length;++v){var w=l[v];d+=w.chunkSize(),y+=w.height,w.parent=this}this.size=d,this.height=y,this.parent=null}tv.prototype={chunkSize:function(){return this.size},removeInner:function(l,d){this.size-=d;for(var y=0;y<this.children.length;++y){var v=this.children[y],w=v.chunkSize();if(l<w){var I=Math.min(d,w-l),O=v.height;if(v.removeInner(l,I),this.height-=O-v.height,w==I&&(this.children.splice(y--,1),v.parent=null),(d-=I)==0)break;l=0}else l-=w}if(this.size-d<25&&(this.children.length>1||!(this.children[0]instanceof ev))){var H=[];this.collapse(H),this.children=[new ev(H)],this.children[0].parent=this}},collapse:function(l){for(var d=0;d<this.children.length;++d)this.children[d].collapse(l)},insertInner:function(l,d,y){this.size+=d.length,this.height+=y;for(var v=0;v<this.children.length;++v){var w=this.children[v],I=w.chunkSize();if(l<=I){if(w.insertInner(l,d,y),w.lines&&w.lines.length>50){for(var O=w.lines.length%25+25,H=O;H<w.lines.length;){var Y=new ev(w.lines.slice(H,H+=25));w.height-=Y.height,this.children.splice(++v,0,Y),Y.parent=this}w.lines=w.lines.slice(0,O),this.maybeSpill()}break}l-=I}},maybeSpill:function(){if(!(this.children.length<=10)){var l=this;do{var d=l.children.splice(l.children.length-5,5),y=new tv(d);if(l.parent){l.size-=y.size,l.height-=y.height;var v=de(l.parent.children,l);l.parent.children.splice(v+1,0,y)}else{var w=new tv(l.children);w.parent=l,l.children=[w,y],l=w}y.parent=l.parent}while(l.children.length>10);l.parent.maybeSpill()}},iterN:function(l,d,y){for(var v=0;v<this.children.length;++v){var w=this.children[v],I=w.chunkSize();if(l<I){var O=Math.min(d,I-l);if(w.iterN(l,O,y))return!0;if((d-=O)==0)break;l=0}else l-=I}}};var nv=function(l,d,y){if(y)for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);this.doc=l,this.node=d};nv.prototype.clear=function(){var l=this.doc.cm,d=this.line.widgets,y=this.line,v=te(y);if(!(v==null||!d)){for(var w=0;w<d.length;++w)d[w]==this&&d.splice(w--,1);d.length||(y.widgets=null);var I=B1(this);jt(y,Math.max(0,y.height-I)),l&&(Xs(l,function(){eV(l,y,-I),Rd(l,v,"widget")}),ia(l,"lineWidgetCleared",l,this,v))}},nv.prototype.changed=function(){var l=this,d=this.height,y=this.doc.cm,v=this.line;this.height=null;var w=B1(this)-d;w&&(Pd(this.doc,v)||jt(v,v.height+w),y&&Xs(y,function(){y.curOp.forceUpdate=!0,eV(y,v,w),ia(y,"lineWidgetChanged",y,l,te(v))}))},Je(nv);function eV(l,d,y){dc(d)<(l.curOp&&l.curOp.scrollTop||l.doc.scrollTop)&&JN(l,y)}function mSe(l,d,y,v){var w=new nv(l,y,v),I=l.cm;return I&&w.noHScroll&&(I.display.alignWidgets=!0),X1(l,d,"widget",function(O){var H=O.widgets||(O.widgets=[]);if(w.insertAt==null?H.push(w):H.splice(Math.min(H.length,Math.max(0,w.insertAt)),0,w),w.line=O,I&&!Pd(l,O)){var Y=dc(O)<l.scrollTop;jt(O,O.height+B1(w)),Y&&JN(I,w.height),I.curOp.forceUpdate=!0}return!0}),I&&ia(I,"lineWidgetAdded",I,w,typeof d=="number"?d:te(d)),w}var tV=0,$d=function(l,d){this.lines=[],this.type=d,this.doc=l,this.id=++tV};$d.prototype.clear=function(){if(!this.explicitlyCleared){var l=this.doc.cm,d=l&&!l.curOp;if(d&&Nh(l),Ze(this,"clear")){var y=this.find();y&&ia(this,"clear",y.from,y.to)}for(var v=null,w=null,I=0;I<this.lines.length;++I){var O=this.lines[I],H=F1(O.markedSpans,this);l&&!this.collapsed?Rd(l,te(O),"text"):l&&(H.to!=null&&(w=te(O)),H.from!=null&&(v=te(O))),O.markedSpans=s4e(O.markedSpans,H),H.from==null&&this.collapsed&&!Pd(this.doc,O)&&l&&jt(O,mf(l.display))}if(l&&this.collapsed&&!l.options.lineWrapping)for(var Y=0;Y<this.lines.length;++Y){var ee=Di(this.lines[Y]),ce=ww(ee);ce>l.display.maxLineLength&&(l.display.maxLine=ee,l.display.maxLineLength=ce,l.display.maxLineChanged=!0)}v!=null&&l&&this.collapsed&&Cs(l,v,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,l&&VW(l.doc)),l&&ia(l,"markerCleared",l,this,v,w),d&&_h(l),this.parent&&this.parent.clear()}},$d.prototype.find=function(l,d){l==null&&this.type=="bookmark"&&(l=1);for(var y,v,w=0;w<this.lines.length;++w){var I=this.lines[w],O=F1(I.markedSpans,this);if(O.from!=null&&(y=Le(d?I:te(I),O.from),l==-1))return y;if(O.to!=null&&(v=Le(d?I:te(I),O.to),l==1))return v}return y&&{from:y,to:v}},$d.prototype.changed=function(){var l=this,d=this.find(-1,!0),y=this,v=this.doc.cm;!d||!v||Xs(v,function(){var w=d.line,I=te(d.line),O=FN(v,I);if(O&&(iW(O),v.curOp.selectionChanged=v.curOp.forceUpdate=!0),v.curOp.updateMaxLine=!0,!Pd(y.doc,w)&&y.height!=null){var H=y.height;y.height=null;var Y=B1(y)-H;Y&&jt(w,w.height+Y)}ia(v,"markerChanged",v,l)})},$d.prototype.attachLine=function(l){if(!this.lines.length&&this.doc.cm){var d=this.doc.cm.curOp;(!d.maybeHiddenMarkers||de(d.maybeHiddenMarkers,this)==-1)&&(d.maybeUnhiddenMarkers||(d.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(l)},$d.prototype.detachLine=function(l){if(this.lines.splice(de(this.lines,l),1),!this.lines.length&&this.doc.cm){var d=this.doc.cm.curOp;(d.maybeHiddenMarkers||(d.maybeHiddenMarkers=[])).push(this)}},Je($d);function jf(l,d,y,v,w){if(v&&v.shared)return fSe(l,d,y,v,w);if(l.cm&&!l.cm.curOp)return la(l.cm,jf)(l,d,y,v,w);var I=new $d(l,w),O=pt(d,y);if(v&&le(v,I,!1),O>0||O==0&&I.clearWhenEmpty!==!1)return I;if(I.replacedWith&&(I.collapsed=!0,I.widgetNode=U("span",[I.replacedWith],"CodeMirror-widget"),v.handleMouseEvents||I.widgetNode.setAttribute("cm-ignore-events","true"),v.insertLeft&&(I.widgetNode.insertLeft=!0)),I.collapsed){if(UB(l,d.line,d,y,I)||d.line!=y.line&&UB(l,y.line,d,y,I))throw new Error("Inserting collapsed marker partially overlapping an existing one");a4e()}I.addToHistory&&AW(l,{from:d,to:y,origin:"markText"},l.sel,NaN);var H=d.line,Y=l.cm,ee;if(l.iter(H,y.line+1,function(me){Y&&I.collapsed&&!Y.options.lineWrapping&&Di(me)==Y.display.maxLine&&(ee=!0),I.collapsed&&H!=d.line&&jt(me,0),o4e(me,new vw(I,H==d.line?d.ch:null,H==y.line?y.ch:null),l.cm&&l.cm.curOp),++H}),I.collapsed&&l.iter(d.line,y.line+1,function(me){Pd(l,me)&&jt(me,0)}),I.clearOnEnter&&ke(I,"beforeCursorEnter",function(){return I.clear()}),I.readOnly&&(r4e(),(l.history.done.length||l.history.undone.length)&&l.clearHistory()),I.collapsed&&(I.id=++tV,I.atomic=!0),Y){if(ee&&(Y.curOp.updateMaxLine=!0),I.collapsed)Cs(Y,d.line,y.line+1);else if(I.className||I.startStyle||I.endStyle||I.css||I.attributes||I.title)for(var ce=d.line;ce<=y.line;ce++)Rd(Y,ce,"text");I.atomic&&VW(Y.doc),ia(Y,"markerAdded",Y,I)}return I}var rv=function(l,d){this.markers=l,this.primary=d;for(var y=0;y<l.length;++y)l[y].parent=this};rv.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var l=0;l<this.markers.length;++l)this.markers[l].clear();ia(this,"clear")}},rv.prototype.find=function(l,d){return this.primary.find(l,d)},Je(rv);function fSe(l,d,y,v,w){v=le(v),v.shared=!1;var I=[jf(l,d,y,v,w)],O=I[0],H=v.widgetNode;return Hd(l,function(Y){H&&(v.widgetNode=H.cloneNode(!0)),I.push(jf(Y,an(Y,d),an(Y,y),v,w));for(var ee=0;ee<Y.linked.length;++ee)if(Y.linked[ee].isParent)return;O=Ve(I)}),new rv(I,O)}function nV(l){return l.findMarks(Le(l.first,0),l.clipPos(Le(l.lastLine())),function(d){return d.parent})}function gSe(l,d){for(var y=0;y<d.length;y++){var v=d[y],w=v.find(),I=l.clipPos(w.from),O=l.clipPos(w.to);if(pt(I,O)){var H=jf(l,I,O,v.primary,v.primary.type);v.markers.push(H),H.parent=v}}}function vSe(l){for(var d=function(v){var w=l[v],I=[w.primary.doc];Hd(w.primary.doc,function(Y){return I.push(Y)});for(var O=0;O<w.markers.length;O++){var H=w.markers[O];de(I,H.doc)==-1&&(H.parent=null,w.markers.splice(O--,1))}},y=0;y<l.length;y++)d(y)}var ySe=0,Ss=function(l,d,y,v,w){if(!(this instanceof Ss))return new Ss(l,d,y,v,w);y==null&&(y=0),tv.call(this,[new ev([new uf("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var I=Le(y,0);this.sel=zd(I),this.history=new Dw(null),this.id=++ySe,this.modeOption=d,this.lineSep=v,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof l=="string"&&(l=this.splitLines(l)),o6(this,{from:I,to:I,text:l}),Aa(this,zd(I),Ee)};Ss.prototype=At(tv.prototype,{constructor:Ss,iter:function(l,d,y){y?this.iterN(l-this.first,d-l,y):this.iterN(this.first,this.first+this.size,l)},insert:function(l,d){for(var y=0,v=0;v<d.length;++v)y+=d[v].height;this.insertInner(l-this.first,d,y)},remove:function(l,d){this.removeInner(l-this.first,d)},getValue:function(l){var d=Mt(this,this.first,this.first+this.size);return l===!1?d:d.join(l||this.lineSeparator())},setValue:ca(function(l){var d=Le(this.first,0),y=this.first+this.size-1;wf(this,{from:d,to:Le(y,Ot(this,y).text.length),text:this.splitLines(l),origin:"setValue",full:!0},!0),this.cm&&U1(this.cm,0,0),Aa(this,zd(d),Ee)}),replaceRange:function(l,d,y,v){d=an(this,d),y=y?an(this,y):d,kf(this,l,d,y,v)},getRange:function(l,d,y){var v=tt(this,an(this,l),an(this,d));return y===!1?v:y===""?v.join(""):v.join(y||this.lineSeparator())},getLine:function(l){var d=this.getLineHandle(l);return d&&d.text},getLineHandle:function(l){if(Pe(this,l))return Ot(this,l)},getLineNumber:function(l){return te(l)},getLineHandleVisualStart:function(l){return typeof l=="number"&&(l=Ot(this,l)),Di(l)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(l){return an(this,l)},getCursor:function(l){var d=this.sel.primary(),y;return l==null||l=="head"?y=d.head:l=="anchor"?y=d.anchor:l=="end"||l=="to"||l===!1?y=d.to():y=d.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ca(function(l,d,y){$W(this,an(this,typeof l=="number"?Le(l,d||0):l),null,y)}),setSelection:ca(function(l,d,y){$W(this,an(this,l),an(this,d||l),y)}),extendSelection:ca(function(l,d,y){Pw(this,an(this,l),d&&an(this,d),y)}),extendSelections:ca(function(l,d){HW(this,MB(this,l),d)}),extendSelectionsBy:ca(function(l,d){var y=Lt(this.sel.ranges,l);HW(this,MB(this,y),d)}),setSelections:ca(function(l,d,y){if(l.length){for(var v=[],w=0;w<l.length;w++)v[w]=new zn(an(this,l[w].anchor),an(this,l[w].head||l[w].anchor));d==null&&(d=Math.min(l.length-1,this.sel.primIndex)),Aa(this,Pi(this.cm,v,d),y)}}),addSelection:ca(function(l,d,y){var v=this.sel.ranges.slice(0);v.push(new zn(an(this,l),an(this,d||l))),Aa(this,Pi(this.cm,v,v.length-1),y)}),getSelection:function(l){for(var d=this.sel.ranges,y,v=0;v<d.length;v++){var w=tt(this,d[v].from(),d[v].to());y=y?y.concat(w):w}return l===!1?y:y.join(l||this.lineSeparator())},getSelections:function(l){for(var d=[],y=this.sel.ranges,v=0;v<y.length;v++){var w=tt(this,y[v].from(),y[v].to());l!==!1&&(w=w.join(l||this.lineSeparator())),d[v]=w}return d},replaceSelection:function(l,d,y){for(var v=[],w=0;w<this.sel.ranges.length;w++)v[w]=l;this.replaceSelections(v,d,y||"+input")},replaceSelections:ca(function(l,d,y){for(var v=[],w=this.sel,I=0;I<w.ranges.length;I++){var O=w.ranges[I];v[I]={from:O.from(),to:O.to(),text:this.splitLines(l[I]),origin:y}}for(var H=d&&d!="end"&&sSe(this,v,d),Y=v.length-1;Y>=0;Y--)wf(this,v[Y]);H?BW(this,H):this.cm&&vf(this.cm)}),undo:ca(function(){zw(this,"undo")}),redo:ca(function(){zw(this,"redo")}),undoSelection:ca(function(){zw(this,"undo",!0)}),redoSelection:ca(function(){zw(this,"redo",!0)}),setExtending:function(l){this.extend=l},getExtending:function(){return this.extend},historySize:function(){for(var l=this.history,d=0,y=0,v=0;v<l.done.length;v++)l.done[v].ranges||++d;for(var w=0;w<l.undone.length;w++)l.undone[w].ranges||++y;return{undo:d,redo:y}},clearHistory:function(){var l=this;this.history=new Dw(this.history),Hd(this,function(d){return d.history=l.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(l){return l&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(l){return this.history.generation==(l||this.cleanGeneration)},getHistory:function(){return{done:xf(this.history.done),undone:xf(this.history.undone)}},setHistory:function(l){var d=this.history=new Dw(this.history);d.done=xf(l.done.slice(0),null,!0),d.undone=xf(l.undone.slice(0),null,!0)},setGutterMarker:ca(function(l,d,y){return X1(this,l,"gutter",function(v){var w=v.gutterMarkers||(v.gutterMarkers={});return w[d]=y,!y&&sn(w)&&(v.gutterMarkers=null),!0})}),clearGutter:ca(function(l){var d=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[l]&&X1(d,y,"gutter",function(){return y.gutterMarkers[l]=null,sn(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(l){var d;if(typeof l=="number"){if(!Pe(this,l)||(d=l,l=Ot(this,l),!l))return null}else if(d=te(l),d==null)return null;return{line:d,handle:l,text:l.text,gutterMarkers:l.gutterMarkers,textClass:l.textClass,bgClass:l.bgClass,wrapClass:l.wrapClass,widgets:l.widgets}},addLineClass:ca(function(l,d,y){return X1(this,l,d=="gutter"?"gutter":"class",function(v){var w=d=="text"?"textClass":d=="background"?"bgClass":d=="gutter"?"gutterClass":"wrapClass";if(!v[w])v[w]=y;else{if(B(y).test(v[w]))return!1;v[w]+=" "+y}return!0})}),removeLineClass:ca(function(l,d,y){return X1(this,l,d=="gutter"?"gutter":"class",function(v){var w=d=="text"?"textClass":d=="background"?"bgClass":d=="gutter"?"gutterClass":"wrapClass",I=v[w];if(I)if(y==null)v[w]=null;else{var O=I.match(B(y));if(!O)return!1;var H=O.index+O[0].length;v[w]=I.slice(0,O.index)+(!O.index||H==I.length?"":" ")+I.slice(H)||null}else return!1;return!0})}),addLineWidget:ca(function(l,d,y){return mSe(this,l,d,y)}),removeLineWidget:function(l){l.clear()},markText:function(l,d,y){return jf(this,an(this,l),an(this,d),y,y&&y.type||"range")},setBookmark:function(l,d){var y={replacedWith:d&&(d.nodeType==null?d.widget:d),insertLeft:d&&d.insertLeft,clearWhenEmpty:!1,shared:d&&d.shared,handleMouseEvents:d&&d.handleMouseEvents};return l=an(this,l),jf(this,l,l,y,"bookmark")},findMarksAt:function(l){l=an(this,l);var d=[],y=Ot(this,l.line).markedSpans;if(y)for(var v=0;v<y.length;++v){var w=y[v];(w.from==null||w.from<=l.ch)&&(w.to==null||w.to>=l.ch)&&d.push(w.marker.parent||w.marker)}return d},findMarks:function(l,d,y){l=an(this,l),d=an(this,d);var v=[],w=l.line;return this.iter(l.line,d.line+1,function(I){var O=I.markedSpans;if(O)for(var H=0;H<O.length;H++){var Y=O[H];!(Y.to!=null&&w==l.line&&l.ch>=Y.to||Y.from==null&&w!=l.line||Y.from!=null&&w==d.line&&Y.from>=d.ch)&&(!y||y(Y.marker))&&v.push(Y.marker.parent||Y.marker)}++w}),v},getAllMarks:function(){var l=[];return this.iter(function(d){var y=d.markedSpans;if(y)for(var v=0;v<y.length;++v)y[v].from!=null&&l.push(y[v].marker)}),l},posFromIndex:function(l){var d,y=this.first,v=this.lineSeparator().length;return this.iter(function(w){var I=w.text.length+v;if(I>l)return d=l,!0;l-=I,++y}),an(this,Le(y,d))},indexFromPos:function(l){l=an(this,l);var d=l.ch;if(l.line<this.first||l.ch<0)return 0;var y=this.lineSeparator().length;return this.iter(this.first,l.line,function(v){d+=v.text.length+y}),d},copy:function(l){var d=new Ss(Mt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return d.scrollTop=this.scrollTop,d.scrollLeft=this.scrollLeft,d.sel=this.sel,d.extend=!1,l&&(d.history.undoDepth=this.history.undoDepth,d.setHistory(this.getHistory())),d},linkedDoc:function(l){l||(l={});var d=this.first,y=this.first+this.size;l.from!=null&&l.from>d&&(d=l.from),l.to!=null&&l.to<y&&(y=l.to);var v=new Ss(Mt(this,d,y),l.mode||this.modeOption,d,this.lineSep,this.direction);return l.sharedHist&&(v.history=this.history),(this.linked||(this.linked=[])).push({doc:v,sharedHist:l.sharedHist}),v.linked=[{doc:this,isParent:!0,sharedHist:l.sharedHist}],gSe(v,nV(this)),v},unlinkDoc:function(l){if(l instanceof yr&&(l=l.doc),this.linked)for(var d=0;d<this.linked.length;++d){var y=this.linked[d];if(y.doc==l){this.linked.splice(d,1),l.unlinkDoc(this),vSe(nV(this));break}}if(l.history==this.history){var v=[l.id];Hd(l,function(w){return v.push(w.id)},!0),l.history=new Dw(null),l.history.done=xf(this.history.done,v),l.history.undone=xf(this.history.undone,v)}},iterLinkedDocs:function(l){Hd(this,l)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(l){return this.lineSep?l.split(this.lineSep):Ln(l)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ca(function(l){l!="rtl"&&(l="ltr"),l!=this.direction&&(this.direction=l,this.iter(function(d){return d.order=null}),this.cm&&oSe(this.cm))})}),Ss.prototype.eachLine=Ss.prototype.iter;var rV=0;function xSe(l){var d=this;if(aV(d),!(Ie(d,l)||uc(d.display,l))){ot(l),u&&(rV=+new Date);var y=jh(d,l,!0),v=l.dataTransfer.files;if(!(!y||d.isReadOnly()))if(v&&v.length&&window.FileReader&&window.File)for(var w=v.length,I=Array(w),O=0,H=function(){++O==w&&la(d,function(){y=an(d.doc,y);var we={from:y,to:y,text:d.doc.splitLines(I.filter(function(Fe){return Fe!=null}).join(d.doc.lineSeparator())),origin:"paste"};wf(d.doc,we),BW(d.doc,zd(an(d.doc,y),an(d.doc,Fd(we))))})()},Y=function(we,Fe){if(d.options.allowDropFileTypes&&de(d.options.allowDropFileTypes,we.type)==-1){H();return}var Ue=new FileReader;Ue.onerror=function(){return H()},Ue.onload=function(){var nt=Ue.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nt)){H();return}I[Fe]=nt,H()},Ue.readAsText(we)},ee=0;ee<v.length;ee++)Y(v[ee],ee);else{if(d.state.draggingText&&d.doc.sel.contains(y)>-1){d.state.draggingText(l),setTimeout(function(){return d.display.input.focus()},20);return}try{var ce=l.dataTransfer.getData("Text");if(ce){var me;if(d.state.draggingText&&!d.state.draggingText.copy&&(me=d.listSelections()),Rw(d.doc,zd(y,y)),me)for(var Se=0;Se<me.length;++Se)kf(d.doc,"",me[Se].anchor,me[Se].head,"drag");d.replaceSelection(ce,"around","paste"),d.display.input.focus()}}catch{}}}}function bSe(l,d){if(u&&(!l.state.draggingText||+new Date-rV<100)){yt(d);return}if(!(Ie(l,d)||uc(l.display,d))&&(d.dataTransfer.setData("Text",l.getSelection()),d.dataTransfer.effectAllowed="copyMove",d.dataTransfer.setDragImage&&!g)){var y=_("img",null,null,"position: fixed; left: 0; top: 0;");y.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b&&(y.width=y.height=1,l.display.wrapper.appendChild(y),y._top=y.offsetTop),d.dataTransfer.setDragImage(y,0,0),b&&y.parentNode.removeChild(y)}}function wSe(l,d){var y=jh(l,d);if(y){var v=document.createDocumentFragment();YN(l,y,v),l.display.dragCursor||(l.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),l.display.lineSpace.insertBefore(l.display.dragCursor,l.display.cursorDiv)),$(l.display.dragCursor,v)}}function aV(l){l.display.dragCursor&&(l.display.lineSpace.removeChild(l.display.dragCursor),l.display.dragCursor=null)}function sV(l){if(document.getElementsByClassName){for(var d=document.getElementsByClassName("CodeMirror"),y=[],v=0;v<d.length;v++){var w=d[v].CodeMirror;w&&y.push(w)}y.length&&y[0].operation(function(){for(var I=0;I<y.length;I++)l(y[I])})}}var oV=!1;function kSe(){oV||(jSe(),oV=!0)}function jSe(){var l;ke(window,"resize",function(){l==null&&(l=setTimeout(function(){l=null,sV(CSe)},100))}),ke(window,"blur",function(){return sV(gf)})}function CSe(l){var d=l.display;d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.scrollbarsClipped=!1,l.setSize()}for(var Bd={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},av=0;av<10;av++)Bd[av+48]=Bd[av+96]=String(av);for(var Fw=65;Fw<=90;Fw++)Bd[Fw]=String.fromCharCode(Fw);for(var sv=1;sv<=12;sv++)Bd[sv+111]=Bd[sv+63235]="F"+sv;var pc={};pc.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},pc.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},pc.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},pc.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},pc.default=T?pc.macDefault:pc.pcDefault;function SSe(l){var d=l.split(/-(?!$)/);l=d[d.length-1];for(var y,v,w,I,O=0;O<d.length-1;O++){var H=d[O];if(/^(cmd|meta|m)$/i.test(H))I=!0;else if(/^a(lt)?$/i.test(H))y=!0;else if(/^(c|ctrl|control)$/i.test(H))v=!0;else if(/^s(hift)?$/i.test(H))w=!0;else throw new Error("Unrecognized modifier name: "+H)}return y&&(l="Alt-"+l),v&&(l="Ctrl-"+l),I&&(l="Cmd-"+l),w&&(l="Shift-"+l),l}function ESe(l){var d={};for(var y in l)if(l.hasOwnProperty(y)){var v=l[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(v=="..."){delete l[y];continue}for(var w=Lt(y.split(" "),SSe),I=0;I<w.length;I++){var O=void 0,H=void 0;I==w.length-1?(H=w.join(" "),O=v):(H=w.slice(0,I+1).join(" "),O="...");var Y=d[H];if(!Y)d[H]=O;else if(Y!=O)throw new Error("Inconsistent bindings for "+H)}delete l[y]}for(var ee in d)l[ee]=d[ee];return l}function Cf(l,d,y,v){d=Hw(d);var w=d.call?d.call(l,v):d[l];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&y(w))return"handled";if(d.fallthrough){if(Object.prototype.toString.call(d.fallthrough)!="[object Array]")return Cf(l,d.fallthrough,y,v);for(var I=0;I<d.fallthrough.length;I++){var O=Cf(l,d.fallthrough[I],y,v);if(O)return O}}}function iV(l){var d=typeof l=="string"?l:Bd[l.keyCode];return d=="Ctrl"||d=="Alt"||d=="Shift"||d=="Mod"}function lV(l,d,y){var v=l;return d.altKey&&v!="Alt"&&(l="Alt-"+l),(P?d.metaKey:d.ctrlKey)&&v!="Ctrl"&&(l="Ctrl-"+l),(P?d.ctrlKey:d.metaKey)&&v!="Mod"&&(l="Cmd-"+l),!y&&d.shiftKey&&v!="Shift"&&(l="Shift-"+l),l}function cV(l,d){if(b&&l.keyCode==34&&l.char)return!1;var y=Bd[l.keyCode];return y==null||l.altGraphKey?!1:(l.keyCode==3&&l.code&&(y=l.code),lV(y,l,d))}function Hw(l){return typeof l=="string"?pc[l]:l}function Sf(l,d){for(var y=l.doc.sel.ranges,v=[],w=0;w<y.length;w++){for(var I=d(y[w]);v.length&&pt(I.from,Ve(v).to)<=0;){var O=v.pop();if(pt(O.from,I.from)<0){I.from=O.from;break}}v.push(I)}Xs(l,function(){for(var H=v.length-1;H>=0;H--)kf(l.doc,"",v[H].from,v[H].to,"+delete");vf(l)})}function d6(l,d,y){var v=rn(l.text,d+y,y);return v<0||v>l.text.length?null:v}function u6(l,d,y){var v=d6(l,d.ch,y);return v==null?null:new Le(d.line,v,y<0?"after":"before")}function h6(l,d,y,v,w){if(l){d.doc.direction=="rtl"&&(w=-w);var I=Ce(y,d.doc.direction);if(I){var O=w<0?Ve(I):I[0],H=w<0==(O.level==1),Y=H?"after":"before",ee;if(O.level>0||d.doc.direction=="rtl"){var ce=pf(d,y);ee=w<0?y.text.length-1:0;var me=vl(d,ce,ee).top;ee=Zt(function(Se){return vl(d,ce,Se).top==me},w<0==(O.level==1)?O.from:O.to-1,ee),Y=="before"&&(ee=d6(y,ee,1))}else ee=w<0?O.to:O.from;return new Le(v,ee,Y)}}return new Le(v,w<0?y.text.length:0,w<0?"before":"after")}function NSe(l,d,y,v){var w=Ce(d,l.doc.direction);if(!w)return u6(d,y,v);y.ch>=d.text.length?(y.ch=d.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var I=zt(w,y.ch,y.sticky),O=w[I];if(l.doc.direction=="ltr"&&O.level%2==0&&(v>0?O.to>y.ch:O.from<y.ch))return u6(d,y,v);var H=function(lt,ft){return d6(d,lt instanceof Le?lt.ch:lt,ft)},Y,ee=function(lt){return l.options.lineWrapping?(Y=Y||pf(l,d),mW(l,d,Y,lt)):{begin:0,end:d.text.length}},ce=ee(y.sticky=="before"?H(y,-1):y.ch);if(l.doc.direction=="rtl"||O.level==1){var me=O.level==1==v<0,Se=H(y,me?1:-1);if(Se!=null&&(me?Se<=O.to&&Se<=ce.end:Se>=O.from&&Se>=ce.begin)){var we=me?"before":"after";return new Le(y.line,Se,we)}}var Fe=function(lt,ft,ct){for(var _t=function(rr,da){return da?new Le(y.line,H(rr,1),"before"):new Le(y.line,rr,"after")};lt>=0&&lt<w.length;lt+=ft){var Ut=w[lt],qt=ft>0==(Ut.level!=1),xn=qt?ct.begin:H(ct.end,-1);if(Ut.from<=xn&&xn<Ut.to||(xn=qt?Ut.from:H(Ut.to,-1),ct.begin<=xn&&xn<ct.end))return _t(xn,qt)}},Ue=Fe(I+v,v,ce);if(Ue)return Ue;var nt=v>0?ce.end:H(ce.begin,-1);return nt!=null&&!(v>0&&nt==d.text.length)&&(Ue=Fe(v>0?0:w.length-1,v,ee(nt)),Ue)?Ue:null}var ov={selectAll:YW,singleSelection:function(l){return l.setSelection(l.getCursor("anchor"),l.getCursor("head"),Ee)},killLine:function(l){return Sf(l,function(d){if(d.empty()){var y=Ot(l.doc,d.head.line).text.length;return d.head.ch==y&&d.head.line<l.lastLine()?{from:d.head,to:Le(d.head.line+1,0)}:{from:d.head,to:Le(d.head.line,y)}}else return{from:d.from(),to:d.to()}})},deleteLine:function(l){return Sf(l,function(d){return{from:Le(d.from().line,0),to:an(l.doc,Le(d.to().line+1,0))}})},delLineLeft:function(l){return Sf(l,function(d){return{from:Le(d.from().line,0),to:d.from()}})},delWrappedLineLeft:function(l){return Sf(l,function(d){var y=l.charCoords(d.head,"div").top+5,v=l.coordsChar({left:0,top:y},"div");return{from:v,to:d.from()}})},delWrappedLineRight:function(l){return Sf(l,function(d){var y=l.charCoords(d.head,"div").top+5,v=l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:y},"div");return{from:d.from(),to:v}})},undo:function(l){return l.undo()},redo:function(l){return l.redo()},undoSelection:function(l){return l.undoSelection()},redoSelection:function(l){return l.redoSelection()},goDocStart:function(l){return l.extendSelection(Le(l.firstLine(),0))},goDocEnd:function(l){return l.extendSelection(Le(l.lastLine()))},goLineStart:function(l){return l.extendSelectionsBy(function(d){return dV(l,d.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(l){return l.extendSelectionsBy(function(d){return uV(l,d.head)},{origin:"+move",bias:1})},goLineEnd:function(l){return l.extendSelectionsBy(function(d){return _Se(l,d.head.line)},{origin:"+move",bias:-1})},goLineRight:function(l){return l.extendSelectionsBy(function(d){var y=l.cursorCoords(d.head,"div").top+5;return l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:y},"div")},Me)},goLineLeft:function(l){return l.extendSelectionsBy(function(d){var y=l.cursorCoords(d.head,"div").top+5;return l.coordsChar({left:0,top:y},"div")},Me)},goLineLeftSmart:function(l){return l.extendSelectionsBy(function(d){var y=l.cursorCoords(d.head,"div").top+5,v=l.coordsChar({left:0,top:y},"div");return v.ch<l.getLine(v.line).search(/\S/)?uV(l,d.head):v},Me)},goLineUp:function(l){return l.moveV(-1,"line")},goLineDown:function(l){return l.moveV(1,"line")},goPageUp:function(l){return l.moveV(-1,"page")},goPageDown:function(l){return l.moveV(1,"page")},goCharLeft:function(l){return l.moveH(-1,"char")},goCharRight:function(l){return l.moveH(1,"char")},goColumnLeft:function(l){return l.moveH(-1,"column")},goColumnRight:function(l){return l.moveH(1,"column")},goWordLeft:function(l){return l.moveH(-1,"word")},goGroupRight:function(l){return l.moveH(1,"group")},goGroupLeft:function(l){return l.moveH(-1,"group")},goWordRight:function(l){return l.moveH(1,"word")},delCharBefore:function(l){return l.deleteH(-1,"codepoint")},delCharAfter:function(l){return l.deleteH(1,"char")},delWordBefore:function(l){return l.deleteH(-1,"word")},delWordAfter:function(l){return l.deleteH(1,"word")},delGroupBefore:function(l){return l.deleteH(-1,"group")},delGroupAfter:function(l){return l.deleteH(1,"group")},indentAuto:function(l){return l.indentSelection("smart")},indentMore:function(l){return l.indentSelection("add")},indentLess:function(l){return l.indentSelection("subtract")},insertTab:function(l){return l.replaceSelection(" ")},insertSoftTab:function(l){for(var d=[],y=l.listSelections(),v=l.options.tabSize,w=0;w<y.length;w++){var I=y[w].from(),O=oe(l.getLine(I.line),I.ch,v);d.push(Ye(v-O%v))}l.replaceSelections(d)},defaultTab:function(l){l.somethingSelected()?l.indentSelection("add"):l.execCommand("insertTab")},transposeChars:function(l){return Xs(l,function(){for(var d=l.listSelections(),y=[],v=0;v<d.length;v++)if(d[v].empty()){var w=d[v].head,I=Ot(l.doc,w.line).text;if(I){if(w.ch==I.length&&(w=new Le(w.line,w.ch-1)),w.ch>0)w=new Le(w.line,w.ch+1),l.replaceRange(I.charAt(w.ch-1)+I.charAt(w.ch-2),Le(w.line,w.ch-2),w,"+transpose");else if(w.line>l.doc.first){var O=Ot(l.doc,w.line-1).text;O&&(w=new Le(w.line,1),l.replaceRange(I.charAt(0)+l.doc.lineSeparator()+O.charAt(O.length-1),Le(w.line-1,O.length-1),w,"+transpose"))}}y.push(new zn(w,w))}l.setSelections(y)})},newlineAndIndent:function(l){return Xs(l,function(){for(var d=l.listSelections(),y=d.length-1;y>=0;y--)l.replaceRange(l.doc.lineSeparator(),d[y].anchor,d[y].head,"+input");d=l.listSelections();for(var v=0;v<d.length;v++)l.indentLine(d[v].from().line,null,!0);vf(l)})},openLine:function(l){return l.replaceSelection("\n","start")},toggleOverwrite:function(l){return l.toggleOverwrite()}};function dV(l,d){var y=Ot(l.doc,d),v=Di(y);return v!=y&&(d=te(v)),h6(!0,l,v,d,1)}function _Se(l,d){var y=Ot(l.doc,d),v=u4e(y);return v!=y&&(d=te(v)),h6(!0,l,y,d,-1)}function uV(l,d){var y=dV(l,d.line),v=Ot(l.doc,y.line),w=Ce(v,l.doc.direction);if(!w||w[0].level==0){var I=Math.max(y.ch,v.text.search(/\S/)),O=d.line==y.line&&d.ch<=I&&d.ch;return Le(y.line,O?0:I,y.sticky)}return y}function $w(l,d,y){if(typeof d=="string"&&(d=ov[d],!d))return!1;l.display.input.ensurePolled();var v=l.display.shift,w=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),y&&(l.display.shift=!1),w=d(l)!=je}finally{l.display.shift=v,l.state.suppressEdits=!1}return w}function ISe(l,d,y){for(var v=0;v<l.state.keyMaps.length;v++){var w=Cf(d,l.state.keyMaps[v],y,l);if(w)return w}return l.options.extraKeys&&Cf(d,l.options.extraKeys,y,l)||Cf(d,l.options.keyMap,y,l)}var TSe=new ie;function iv(l,d,y,v){var w=l.state.keySeq;if(w){if(iV(d))return"handled";if(/\'$/.test(d)?l.state.keySeq=null:TSe.set(50,function(){l.state.keySeq==w&&(l.state.keySeq=null,l.display.input.reset())}),hV(l,w+" "+d,y,v))return!0}return hV(l,d,y,v)}function hV(l,d,y,v){var w=ISe(l,d,v);return w=="multi"&&(l.state.keySeq=d),w=="handled"&&ia(l,"keyHandled",l,d,y),(w=="handled"||w=="multi")&&(ot(y),KN(l)),!!w}function pV(l,d){var y=cV(d,!0);return y?d.shiftKey&&!l.state.keySeq?iv(l,"Shift-"+y,d,function(v){return $w(l,v,!0)})||iv(l,y,d,function(v){if(typeof v=="string"?/^go[A-Z]/.test(v):v.motion)return $w(l,v)}):iv(l,y,d,function(v){return $w(l,v)}):!1}function MSe(l,d,y){return iv(l,"'"+y+"'",d,function(v){return $w(l,v,!0)})}var p6=null;function mV(l){var d=this;if(!(l.target&&l.target!=d.display.input.getField())&&(d.curOp.focus=G(ne(d)),!Ie(d,l))){u&&h<11&&l.keyCode==27&&(l.returnValue=!1);var y=l.keyCode;d.display.shift=y==16||l.shiftKey;var v=pV(d,l);b&&(p6=v?y:null,!v&&y==88&&!Et&&(T?l.metaKey:l.ctrlKey)&&d.replaceSelection("",null,"cut")),s&&!T&&!v&&y==46&&l.shiftKey&&!l.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(d.display.lineDiv.className)&&LSe(d)}}function LSe(l){var d=l.display.lineDiv;Z(d,"CodeMirror-crosshair");function y(v){(v.keyCode==18||!v.altKey)&&(z(d,"CodeMirror-crosshair"),ge(document,"keyup",y),ge(document,"mouseover",y))}ke(document,"keyup",y),ke(document,"mouseover",y)}function fV(l){l.keyCode==16&&(this.doc.sel.shift=!1),Ie(this,l)}function gV(l){var d=this;if(!(l.target&&l.target!=d.display.input.getField())&&!(uc(d.display,l)||Ie(d,l)||l.ctrlKey&&!l.altKey||T&&l.metaKey)){var y=l.keyCode,v=l.charCode;if(b&&y==p6){p6=null,ot(l);return}if(!(b&&(!l.which||l.which<10)&&pV(d,l))){var w=String.fromCharCode(v!=null?v:y);w!="\b"&&(MSe(d,l,w)||d.display.input.onKeyPress(l))}}}var DSe=400,m6=function(l,d,y){this.time=l,this.pos=d,this.button=y};m6.prototype.compare=function(l,d,y){return this.time+DSe>l&&pt(d,this.pos)==0&&y==this.button};var lv,cv;function OSe(l,d){var y=+new Date;return cv&&cv.compare(y,l,d)?(lv=cv=null,"triple"):lv&&lv.compare(y,l,d)?(cv=new m6(y,l,d),lv=null,"double"):(lv=new m6(y,l,d),cv=null,"single")}function vV(l){var d=this,y=d.display;if(!(Ie(d,l)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=l.shiftKey,uc(y,l)){p||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!f6(d,l)){var v=jh(d,l),w=bt(l),I=v?OSe(v,w):"single";ae(d).focus(),w==1&&d.state.selectingText&&d.state.selectingText(l),!(v&&PSe(d,w,v,I,l))&&(w==1?v?ASe(d,v,I,l):Nt(l)==y.scroller&&ot(l):w==2?(v&&Pw(d.doc,v),setTimeout(function(){return y.input.focus()},20)):w==3&&(A?d.display.input.onContextMenu(l):GN(d)))}}}function PSe(l,d,y,v,w){var I="Click";return v=="double"?I="Double"+I:v=="triple"&&(I="Triple"+I),I=(d==1?"Left":d==2?"Middle":"Right")+I,iv(l,lV(I,w),w,function(O){if(typeof O=="string"&&(O=ov[O]),!O)return!1;var H=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),H=O(l,y)!=je}finally{l.state.suppressEdits=!1}return H})}function RSe(l,d,y){var v=l.getOption("configureMouse"),w=v?v(l,d,y):{};if(w.unit==null){var I=M?y.shiftKey&&y.metaKey:y.altKey;w.unit=I?"rectangle":d=="single"?"char":d=="double"?"word":"line"}return(w.extend==null||l.doc.extend)&&(w.extend=l.doc.extend||y.shiftKey),w.addNew==null&&(w.addNew=T?y.metaKey:y.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(T?y.altKey:y.ctrlKey)),w}function ASe(l,d,y,v){u?setTimeout(re(yW,l),0):l.curOp.focus=G(ne(l));var w=RSe(l,y,v),I=l.doc.sel,O;l.options.dragDrop&&$t&&!l.isReadOnly()&&y=="single"&&(O=I.contains(d))>-1&&(pt((O=I.ranges[O]).from(),d)<0||d.xRel>0)&&(pt(O.to(),d)>0||d.xRel<0)?zSe(l,v,d,w):FSe(l,v,d,w)}function zSe(l,d,y,v){var w=l.display,I=!1,O=la(l,function(ee){p&&(w.scroller.draggable=!1),l.state.draggingText=!1,l.state.delayingBlurEvent&&(l.hasFocus()?l.state.delayingBlurEvent=!1:GN(l)),ge(w.wrapper.ownerDocument,"mouseup",O),ge(w.wrapper.ownerDocument,"mousemove",H),ge(w.scroller,"dragstart",Y),ge(w.scroller,"drop",O),I||(ot(ee),v.addNew||Pw(l.doc,y,null,null,v.extend),p&&!g||u&&h==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),H=function(ee){I=I||Math.abs(d.clientX-ee.clientX)+Math.abs(d.clientY-ee.clientY)>=10},Y=function(){return I=!0};p&&(w.scroller.draggable=!0),l.state.draggingText=O,O.copy=!v.moveOnDrag,ke(w.wrapper.ownerDocument,"mouseup",O),ke(w.wrapper.ownerDocument,"mousemove",H),ke(w.scroller,"dragstart",Y),ke(w.scroller,"drop",O),l.state.delayingBlurEvent=!0,setTimeout(function(){return w.input.focus()},20),w.scroller.dragDrop&&w.scroller.dragDrop()}function yV(l,d,y){if(y=="char")return new zn(d,d);if(y=="word")return l.findWordAt(d);if(y=="line")return new zn(Le(d.line,0),an(l.doc,Le(d.line+1,0)));var v=y(l,d);return new zn(v.from,v.to)}function FSe(l,d,y,v){u&&GN(l);var w=l.display,I=l.doc;ot(d);var O,H,Y=I.sel,ee=Y.ranges;if(v.addNew&&!v.extend?(H=I.sel.contains(y),H>-1?O=ee[H]:O=new zn(y,y)):(O=I.sel.primary(),H=I.sel.primIndex),v.unit=="rectangle")v.addNew||(O=new zn(y,y)),y=jh(l,d,!0,!0),H=-1;else{var ce=yV(l,y,v.unit);v.extend?O=l6(O,ce.anchor,ce.head,v.extend):O=ce}v.addNew?H==-1?(H=ee.length,Aa(I,Pi(l,ee.concat([O]),H),{scroll:!1,origin:"*mouse"})):ee.length>1&&ee[H].empty()&&v.unit=="char"&&!v.extend?(Aa(I,Pi(l,ee.slice(0,H).concat(ee.slice(H+1)),0),{scroll:!1,origin:"*mouse"}),Y=I.sel):c6(I,H,O,Te):(H=0,Aa(I,new No([O],0),Te),Y=I.sel);var me=y;function Se(ct){if(pt(me,ct)!=0)if(me=ct,v.unit=="rectangle"){for(var _t=[],Ut=l.options.tabSize,qt=oe(Ot(I,y.line).text,y.ch,Ut),xn=oe(Ot(I,ct.line).text,ct.ch,Ut),rr=Math.min(qt,xn),da=Math.max(qt,xn),jr=Math.min(y.line,ct.line),eo=Math.min(l.lastLine(),Math.max(y.line,ct.line));jr<=eo;jr++){var Es=Ot(I,jr).text,Ur=ze(Es,rr,Ut);rr==da?_t.push(new zn(Le(jr,Ur),Le(jr,Ur))):Es.length>Ur&&_t.push(new zn(Le(jr,Ur),Le(jr,ze(Es,da,Ut))))}_t.length||_t.push(new zn(y,y)),Aa(I,Pi(l,Y.ranges.slice(0,H).concat(_t),H),{origin:"*mouse",scroll:!1}),l.scrollIntoView(ct)}else{var Ns=O,wa=yV(l,ct,v.unit),Zr=Ns.anchor,qr;pt(wa.anchor,Zr)>0?(qr=wa.head,Zr=Od(Ns.from(),wa.anchor)):(qr=wa.anchor,Zr=Ra(Ns.to(),wa.head));var Mr=Y.ranges.slice(0);Mr[H]=HSe(l,new zn(an(I,Zr),qr)),Aa(I,Pi(l,Mr,H),Te)}}var we=w.wrapper.getBoundingClientRect(),Fe=0;function Ue(ct){var _t=++Fe,Ut=jh(l,ct,!0,v.unit=="rectangle");if(Ut)if(pt(Ut,me)!=0){l.curOp.focus=G(ne(l)),Se(Ut);var qt=Iw(w,I);(Ut.line>=qt.to||Ut.line<qt.from)&&setTimeout(la(l,function(){Fe==_t&&Ue(ct)}),150)}else{var xn=ct.clientY<we.top?-20:ct.clientY>we.bottom?20:0;xn&&setTimeout(la(l,function(){Fe==_t&&(w.scroller.scrollTop+=xn,Ue(ct))}),50)}}function nt(ct){l.state.selectingText=!1,Fe=1/0,ct&&(ot(ct),w.input.focus()),ge(w.wrapper.ownerDocument,"mousemove",lt),ge(w.wrapper.ownerDocument,"mouseup",ft),I.history.lastSelOrigin=null}var lt=la(l,function(ct){ct.buttons===0||!bt(ct)?nt(ct):Ue(ct)}),ft=la(l,nt);l.state.selectingText=ft,ke(w.wrapper.ownerDocument,"mousemove",lt),ke(w.wrapper.ownerDocument,"mouseup",ft)}function HSe(l,d){var y=d.anchor,v=d.head,w=Ot(l.doc,y.line);if(pt(y,v)==0&&y.sticky==v.sticky)return d;var I=Ce(w);if(!I)return d;var O=zt(I,y.ch,y.sticky),H=I[O];if(H.from!=y.ch&&H.to!=y.ch)return d;var Y=O+(H.from==y.ch==(H.level!=1)?0:1);if(Y==0||Y==I.length)return d;var ee;if(v.line!=y.line)ee=(v.line-y.line)*(l.doc.direction=="ltr"?1:-1)>0;else{var ce=zt(I,v.ch,v.sticky),me=ce-O||(v.ch-y.ch)*(H.level==1?-1:1);ce==Y-1||ce==Y?ee=me<0:ee=me>0}var Se=I[Y+(ee?-1:0)],we=ee==(Se.level==1),Fe=we?Se.from:Se.to,Ue=we?"after":"before";return y.ch==Fe&&y.sticky==Ue?d:new zn(new Le(y.line,Fe,Ue),v)}function xV(l,d,y,v){var w,I;if(d.touches)w=d.touches[0].clientX,I=d.touches[0].clientY;else try{w=d.clientX,I=d.clientY}catch{return!1}if(w>=Math.floor(l.display.gutters.getBoundingClientRect().right))return!1;v&&ot(d);var O=l.display,H=O.lineDiv.getBoundingClientRect();if(I>H.bottom||!Ze(l,y))return Ge(d);I-=H.top-O.viewOffset;for(var Y=0;Y<l.display.gutterSpecs.length;++Y){var ee=O.gutters.childNodes[Y];if(ee&&ee.getBoundingClientRect().right>=w){var ce=ue(l.doc,I),me=l.display.gutterSpecs[Y];return ve(l,y,l,ce,me.className,d),Ge(d)}}}function f6(l,d){return xV(l,d,"gutterClick",!0)}function bV(l,d){uc(l.display,d)||$Se(l,d)||Ie(l,d,"contextmenu")||A||l.display.input.onContextMenu(d)}function $Se(l,d){return Ze(l,"gutterContextMenu")?xV(l,d,"gutterContextMenu",!1):!1}function wV(l){l.display.wrapper.className=l.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+l.options.theme.replace(/(^|\s)\s*/g," cm-s-"),W1(l)}var Ef={toString:function(){return"CodeMirror.Init"}},kV={},Bw={};function BSe(l){var d=l.optionHandlers;function y(v,w,I,O){l.defaults[v]=w,I&&(d[v]=O?function(H,Y,ee){ee!=Ef&&I(H,Y,ee)}:I)}l.defineOption=y,l.Init=Ef,y("value","",function(v,w){return v.setValue(w)},!0),y("mode",null,function(v,w){v.doc.modeOption=w,s6(v)},!0),y("indentUnit",2,s6,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(v){Q1(v),W1(v),Cs(v)},!0),y("lineSeparator",null,function(v,w){if(v.doc.lineSep=w,!!w){var I=[],O=v.doc.first;v.doc.iter(function(Y){for(var ee=0;;){var ce=Y.text.indexOf(w,ee);if(ce==-1)break;ee=ce+w.length,I.push(Le(O,ce))}O++});for(var H=I.length-1;H>=0;H--)kf(v.doc,w,I[H],Le(I[H].line,I[H].ch+w.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(v,w,I){v.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),I!=Ef&&v.refresh()}),y("specialCharPlaceholder",v4e,function(v){return v.refresh()},!0),y("electricChars",!0),y("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),y("spellcheck",!1,function(v,w){return v.getInputField().spellcheck=w},!0),y("autocorrect",!1,function(v,w){return v.getInputField().autocorrect=w},!0),y("autocapitalize",!1,function(v,w){return v.getInputField().autocapitalize=w},!0),y("rtlMoveVisually",!L),y("wholeLineUpdateBefore",!0),y("theme","default",function(v){wV(v),Z1(v)},!0),y("keyMap","default",function(v,w,I){var O=Hw(w),H=I!=Ef&&Hw(I);H&&H.detach&&H.detach(v,O),O.attach&&O.attach(v,H||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,VSe,!0),y("gutters",[],function(v,w){v.display.gutterSpecs=r6(w,v.options.lineNumbers),Z1(v)},!0),y("fixedGutter",!0,function(v,w){v.display.gutters.style.left=w?UN(v.display)+"px":"0",v.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(v){return yf(v)},!0),y("scrollbarStyle","native",function(v){CW(v),yf(v),v.display.scrollbars.setScrollTop(v.doc.scrollTop),v.display.scrollbars.setScrollLeft(v.doc.scrollLeft)},!0),y("lineNumbers",!1,function(v,w){v.display.gutterSpecs=r6(v.options.gutters,w),Z1(v)},!0),y("firstLineNumber",1,Z1,!0),y("lineNumberFormatter",function(v){return v},Z1,!0),y("showCursorWhenSelecting",!1,V1,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(v,w){w=="nocursor"&&(gf(v),v.display.input.blur()),v.display.input.readOnlyChanged(w)}),y("screenReaderLabel",null,function(v,w){w=w===""?null:w,v.display.input.screenReaderLabelChanged(w)}),y("disableInput",!1,function(v,w){w||v.display.input.reset()},!0),y("dragDrop",!0,WSe),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,V1,!0),y("singleCursorHeightPerLine",!0,V1,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,Q1,!0),y("addModeClass",!1,Q1,!0),y("pollInterval",100),y("undoDepth",200,function(v,w){return v.doc.history.undoDepth=w}),y("historyEventDelay",1250),y("viewportMargin",10,function(v){return v.refresh()},!0),y("maxHighlightLength",1e4,Q1,!0),y("moveInputWithCursor",!0,function(v,w){w||v.display.input.resetPosition()}),y("tabindex",null,function(v,w){return v.display.input.getField().tabIndex=w||""}),y("autofocus",null),y("direction","ltr",function(v,w){return v.doc.setDirection(w)},!0),y("phrases",null)}function WSe(l,d,y){var v=y&&y!=Ef;if(!d!=!v){var w=l.display.dragFunctions,I=d?ke:ge;I(l.display.scroller,"dragstart",w.start),I(l.display.scroller,"dragenter",w.enter),I(l.display.scroller,"dragover",w.over),I(l.display.scroller,"dragleave",w.leave),I(l.display.scroller,"drop",w.drop)}}function VSe(l){l.options.lineWrapping?(Z(l.display.wrapper,"CodeMirror-wrap"),l.display.sizer.style.minWidth="",l.display.sizerWidth=null):(z(l.display.wrapper,"CodeMirror-wrap"),PN(l)),qN(l),Cs(l),W1(l),setTimeout(function(){return yf(l)},100)}function yr(l,d){var y=this;if(!(this instanceof yr))return new yr(l,d);this.options=d=d?le(d):{},le(kV,d,!1);var v=d.value;typeof v=="string"?v=new Ss(v,d.mode,null,d.lineSeparator,d.direction):d.mode&&(v.modeOption=d.mode),this.doc=v;var w=new yr.inputStyles[d.inputStyle](this),I=this.display=new rSe(l,v,w,d);I.wrapper.CodeMirror=this,wV(this),d.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),CW(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ie,keySeq:null,specialChars:null},d.autofocus&&!N&&I.input.focus(),u&&h<11&&setTimeout(function(){return y.display.input.reset(!0)},20),USe(this),kSe(),Nh(this),this.curOp.forceUpdate=!0,OW(this,v),d.autofocus&&!N||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&ZN(y)},20):gf(this);for(var O in Bw)Bw.hasOwnProperty(O)&&Bw[O](this,d[O],Ef);NW(this),d.finishInit&&d.finishInit(this);for(var H=0;H<g6.length;++H)g6[H](this);_h(this),p&&d.lineWrapping&&getComputedStyle(I.lineDiv).textRendering=="optimizelegibility"&&(I.lineDiv.style.textRendering="auto")}yr.defaults=kV,yr.optionHandlers=Bw;function USe(l){var d=l.display;ke(d.scroller,"mousedown",la(l,vV)),u&&h<11?ke(d.scroller,"dblclick",la(l,function(Y){if(!Ie(l,Y)){var ee=jh(l,Y);if(!(!ee||f6(l,Y)||uc(l.display,Y))){ot(Y);var ce=l.findWordAt(ee);Pw(l.doc,ce.anchor,ce.head)}}})):ke(d.scroller,"dblclick",function(Y){return Ie(l,Y)||ot(Y)}),ke(d.scroller,"contextmenu",function(Y){return bV(l,Y)}),ke(d.input.getField(),"contextmenu",function(Y){d.scroller.contains(Y.target)||bV(l,Y)});var y,v={end:0};function w(){d.activeTouch&&(y=setTimeout(function(){return d.activeTouch=null},1e3),v=d.activeTouch,v.end=+new Date)}function I(Y){if(Y.touches.length!=1)return!1;var ee=Y.touches[0];return ee.radiusX<=1&&ee.radiusY<=1}function O(Y,ee){if(ee.left==null)return!0;var ce=ee.left-Y.left,me=ee.top-Y.top;return ce*ce+me*me>400}ke(d.scroller,"touchstart",function(Y){if(!Ie(l,Y)&&!I(Y)&&!f6(l,Y)){d.input.ensurePolled(),clearTimeout(y);var ee=+new Date;d.activeTouch={start:ee,moved:!1,prev:ee-v.end<=300?v:null},Y.touches.length==1&&(d.activeTouch.left=Y.touches[0].pageX,d.activeTouch.top=Y.touches[0].pageY)}}),ke(d.scroller,"touchmove",function(){d.activeTouch&&(d.activeTouch.moved=!0)}),ke(d.scroller,"touchend",function(Y){var ee=d.activeTouch;if(ee&&!uc(d,Y)&&ee.left!=null&&!ee.moved&&new Date-ee.start<300){var ce=l.coordsChar(d.activeTouch,"page"),me;!ee.prev||O(ee,ee.prev)?me=new zn(ce,ce):!ee.prev.prev||O(ee,ee.prev.prev)?me=l.findWordAt(ce):me=new zn(Le(ce.line,0),an(l.doc,Le(ce.line+1,0))),l.setSelection(me.anchor,me.head),l.focus(),ot(Y)}w()}),ke(d.scroller,"touchcancel",w),ke(d.scroller,"scroll",function(){d.scroller.clientHeight&&(q1(l,d.scroller.scrollTop),Sh(l,d.scroller.scrollLeft,!0),ve(l,"scroll",l))}),ke(d.scroller,"mousewheel",function(Y){return TW(l,Y)}),ke(d.scroller,"DOMMouseScroll",function(Y){return TW(l,Y)}),ke(d.wrapper,"scroll",function(){return d.wrapper.scrollTop=d.wrapper.scrollLeft=0}),d.dragFunctions={enter:function(Y){Ie(l,Y)||yt(Y)},over:function(Y){Ie(l,Y)||(wSe(l,Y),yt(Y))},start:function(Y){return bSe(l,Y)},drop:la(l,xSe),leave:function(Y){Ie(l,Y)||aV(l)}};var H=d.input.getField();ke(H,"keyup",function(Y){return fV.call(l,Y)}),ke(H,"keydown",la(l,mV)),ke(H,"keypress",la(l,gV)),ke(H,"focus",function(Y){return ZN(l,Y)}),ke(H,"blur",function(Y){return gf(l,Y)})}var g6=[];yr.defineInitHook=function(l){return g6.push(l)};function dv(l,d,y,v){var w=l.doc,I;y==null&&(y="add"),y=="smart"&&(w.mode.indent?I=z1(l,d).state:y="prev");var O=l.options.tabSize,H=Ot(w,d),Y=oe(H.text,null,O);H.stateAfter&&(H.stateAfter=null);var ee=H.text.match(/^\s*/)[0],ce;if(!v&&!/\S/.test(H.text))ce=0,y="not";else if(y=="smart"&&(ce=w.mode.indent(I,H.text.slice(ee.length),H.text),ce==je||ce>150)){if(!v)return;y="prev"}y=="prev"?d>w.first?ce=oe(Ot(w,d-1).text,null,O):ce=0:y=="add"?ce=Y+l.options.indentUnit:y=="subtract"?ce=Y-l.options.indentUnit:typeof y=="number"&&(ce=Y+y),ce=Math.max(0,ce);var me="",Se=0;if(l.options.indentWithTabs)for(var we=Math.floor(ce/O);we;--we)Se+=O,me+=" ";if(Se<ce&&(me+=Ye(ce-Se)),me!=ee)return kf(w,me,Le(d,0),Le(d,ee.length),"+input"),H.stateAfter=null,!0;for(var Fe=0;Fe<w.sel.ranges.length;Fe++){var Ue=w.sel.ranges[Fe];if(Ue.head.line==d&&Ue.head.ch<ee.length){var nt=Le(d,ee.length);c6(w,Fe,new zn(nt,nt));break}}}var Ri=null;function Ww(l){Ri=l}function v6(l,d,y,v,w){var I=l.doc;l.display.shift=!1,v||(v=I.sel);var O=+new Date-200,H=w=="paste"||l.state.pasteIncoming>O,Y=Ln(d),ee=null;if(H&&v.ranges.length>1)if(Ri&&Ri.text.join("\n")==d){if(v.ranges.length%Ri.text.length==0){ee=[];for(var ce=0;ce<Ri.text.length;ce++)ee.push(I.splitLines(Ri.text[ce]))}}else Y.length==v.ranges.length&&l.options.pasteLinesPerSelection&&(ee=Lt(Y,function(lt){return[lt]}));for(var me=l.curOp.updateInput,Se=v.ranges.length-1;Se>=0;Se--){var we=v.ranges[Se],Fe=we.from(),Ue=we.to();we.empty()&&(y&&y>0?Fe=Le(Fe.line,Fe.ch-y):l.state.overwrite&&!H?Ue=Le(Ue.line,Math.min(Ot(I,Ue.line).text.length,Ue.ch+Ve(Y).length)):H&&Ri&&Ri.lineWise&&Ri.text.join("\n")==Y.join("\n")&&(Fe=Ue=Le(Fe.line,0)));var nt={from:Fe,to:Ue,text:ee?ee[Se%ee.length]:Y,origin:w||(H?"paste":l.state.cutIncoming>O?"cut":"+input")};wf(l.doc,nt),ia(l,"inputRead",l,nt)}d&&!H&&CV(l,d),vf(l),l.curOp.updateInput<2&&(l.curOp.updateInput=me),l.curOp.typing=!0,l.state.pasteIncoming=l.state.cutIncoming=-1}function jV(l,d){var y=l.clipboardData&&l.clipboardData.getData("Text");if(y)return l.preventDefault(),!d.isReadOnly()&&!d.options.disableInput&&d.hasFocus()&&Xs(d,function(){return v6(d,y,0,null,"paste")}),!0}function CV(l,d){if(!(!l.options.electricChars||!l.options.smartIndent))for(var y=l.doc.sel,v=y.ranges.length-1;v>=0;v--){var w=y.ranges[v];if(!(w.head.ch>100||v&&y.ranges[v-1].head.line==w.head.line)){var I=l.getModeAt(w.head),O=!1;if(I.electricChars){for(var H=0;H<I.electricChars.length;H++)if(d.indexOf(I.electricChars.charAt(H))>-1){O=dv(l,w.head.line,"smart");break}}else I.electricInput&&I.electricInput.test(Ot(l.doc,w.head.line).text.slice(0,w.head.ch))&&(O=dv(l,w.head.line,"smart"));O&&ia(l,"electricInput",l,w.head.line)}}}function SV(l){for(var d=[],y=[],v=0;v<l.doc.sel.ranges.length;v++){var w=l.doc.sel.ranges[v].head.line,I={anchor:Le(w,0),head:Le(w+1,0)};y.push(I),d.push(l.getRange(I.anchor,I.head))}return{text:d,ranges:y}}function y6(l,d,y,v){l.setAttribute("autocorrect",y?"on":"off"),l.setAttribute("autocapitalize",v?"on":"off"),l.setAttribute("spellcheck",!!d)}function EV(){var l=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),d=_("div",[l],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return p?l.style.width="1000px":l.setAttribute("wrap","off"),S&&(l.style.border="1px solid black"),d}function qSe(l){var d=l.optionHandlers,y=l.helpers={};l.prototype={constructor:l,focus:function(){ae(this).focus(),this.display.input.focus()},setOption:function(v,w){var I=this.options,O=I[v];I[v]==w&&v!="mode"||(I[v]=w,d.hasOwnProperty(v)&&la(this,d[v])(this,w,O),ve(this,"optionChange",this,v))},getOption:function(v){return this.options[v]},getDoc:function(){return this.doc},addKeyMap:function(v,w){this.state.keyMaps[w?"push":"unshift"](Hw(v))},removeKeyMap:function(v){for(var w=this.state.keyMaps,I=0;I<w.length;++I)if(w[I]==v||w[I].name==v)return w.splice(I,1),!0},addOverlay:as(function(v,w){var I=v.token?v:l.getMode(this.options,v);if(I.startState)throw new Error("Overlays may not be stateful.");$e(this.state.overlays,{mode:I,modeSpec:v,opaque:w&&w.opaque,priority:w&&w.priority||0},function(O){return O.priority}),this.state.modeGen++,Cs(this)}),removeOverlay:as(function(v){for(var w=this.state.overlays,I=0;I<w.length;++I){var O=w[I].modeSpec;if(O==v||typeof v=="string"&&O.name==v){w.splice(I,1),this.state.modeGen++,Cs(this);return}}}),indentLine:as(function(v,w,I){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),Pe(this.doc,v)&&dv(this,v,w,I)}),indentSelection:as(function(v){for(var w=this.doc.sel.ranges,I=-1,O=0;O<w.length;O++){var H=w[O];if(H.empty())H.head.line>I&&(dv(this,H.head.line,v,!0),I=H.head.line,O==this.doc.sel.primIndex&&vf(this));else{var Y=H.from(),ee=H.to(),ce=Math.max(I,Y.line);I=Math.min(this.lastLine(),ee.line-(ee.ch?0:1))+1;for(var me=ce;me<I;++me)dv(this,me,v);var Se=this.doc.sel.ranges;Y.ch==0&&w.length==Se.length&&Se[O].from().ch>0&&c6(this.doc,O,new zn(Y,Se[O].to()),Ee)}}}),getTokenAt:function(v,w){return RB(this,v,w)},getLineTokens:function(v,w){return RB(this,Le(v),w,!0)},getTokenTypeAt:function(v){v=an(this.doc,v);var w=DB(this,Ot(this.doc,v.line)),I=0,O=(w.length-1)/2,H=v.ch,Y;if(H==0)Y=w[2];else for(;;){var ee=I+O>>1;if((ee?w[ee*2-1]:0)>=H)O=ee;else if(w[ee*2+1]<H)I=ee+1;else{Y=w[ee*2+2];break}}var ce=Y?Y.indexOf("overlay "):-1;return ce<0?Y:ce==0?null:Y.slice(0,ce-1)},getModeAt:function(v){var w=this.doc.mode;return w.innerMode?l.innerMode(w,this.getTokenAt(v).state).mode:w},getHelper:function(v,w){return this.getHelpers(v,w)[0]},getHelpers:function(v,w){var I=[];if(!y.hasOwnProperty(w))return I;var O=y[w],H=this.getModeAt(v);if(typeof H[w]=="string")O[H[w]]&&I.push(O[H[w]]);else if(H[w])for(var Y=0;Y<H[w].length;Y++){var ee=O[H[w][Y]];ee&&I.push(ee)}else H.helperType&&O[H.helperType]?I.push(O[H.helperType]):O[H.name]&&I.push(O[H.name]);for(var ce=0;ce<O._global.length;ce++){var me=O._global[ce];me.pred(H,this)&&de(I,me.val)==-1&&I.push(me.val)}return I},getStateAfter:function(v,w){var I=this.doc;return v=TB(I,v!=null?v:I.first+I.size-1),z1(this,v+1,w).state},cursorCoords:function(v,w){var I,O=this.doc.sel.primary();return v==null?I=O.head:typeof v=="object"?I=an(this.doc,v):I=v?O.from():O.to(),Oi(this,I,w||"page")},charCoords:function(v,w){return Sw(this,an(this.doc,v),w||"page")},coordsChar:function(v,w){return v=uW(this,v,w||"page"),BN(this,v.left,v.top)},lineAtHeight:function(v,w){return v=uW(this,{top:v,left:0},w||"page").top,ue(this.doc,v+this.display.viewOffset)},heightAtLine:function(v,w,I){var O=!1,H;if(typeof v=="number"){var Y=this.doc.first+this.doc.size-1;v<this.doc.first?v=this.doc.first:v>Y&&(v=Y,O=!0),H=Ot(this.doc,v)}else H=v;return Cw(this,H,{top:0,left:0},w||"page",I||O).top+(O?this.doc.height-dc(H):0)},defaultTextHeight:function(){return mf(this.display)},defaultCharWidth:function(){return ff(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(v,w,I,O,H){var Y=this.display;v=Oi(this,an(this.doc,v));var ee=v.bottom,ce=v.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),Y.sizer.appendChild(w),O=="over")ee=v.top;else if(O=="above"||O=="near"){var me=Math.max(Y.wrapper.clientHeight,this.doc.height),Se=Math.max(Y.sizer.clientWidth,Y.lineSpace.clientWidth);(O=="above"||v.bottom+w.offsetHeight>me)&&v.top>w.offsetHeight?ee=v.top-w.offsetHeight:v.bottom+w.offsetHeight<=me&&(ee=v.bottom),ce+w.offsetWidth>Se&&(ce=Se-w.offsetWidth)}w.style.top=ee+"px",w.style.left=w.style.right="",H=="right"?(ce=Y.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(H=="left"?ce=0:H=="middle"&&(ce=(Y.sizer.clientWidth-w.offsetWidth)/2),w.style.left=ce+"px"),I&&W4e(this,{left:ce,top:ee,right:ce+w.offsetWidth,bottom:ee+w.offsetHeight})},triggerOnKeyDown:as(mV),triggerOnKeyPress:as(gV),triggerOnKeyUp:fV,triggerOnMouseDown:as(vV),execCommand:function(v){if(ov.hasOwnProperty(v))return ov[v].call(null,this)},triggerElectric:as(function(v){CV(this,v)}),findPosH:function(v,w,I,O){var H=1;w<0&&(H=-1,w=-w);for(var Y=an(this.doc,v),ee=0;ee<w&&(Y=x6(this.doc,Y,H,I,O),!Y.hitSide);++ee);return Y},moveH:as(function(v,w){var I=this;this.extendSelectionsBy(function(O){return I.display.shift||I.doc.extend||O.empty()?x6(I.doc,O.head,v,w,I.options.rtlMoveVisually):v<0?O.from():O.to()},Me)}),deleteH:as(function(v,w){var I=this.doc.sel,O=this.doc;I.somethingSelected()?O.replaceSelection("",null,"+delete"):Sf(this,function(H){var Y=x6(O,H.head,v,w,!1);return v<0?{from:Y,to:H.head}:{from:H.head,to:Y}})}),findPosV:function(v,w,I,O){var H=1,Y=O;w<0&&(H=-1,w=-w);for(var ee=an(this.doc,v),ce=0;ce<w;++ce){var me=Oi(this,ee,"div");if(Y==null?Y=me.left:me.left=Y,ee=NV(this,me,H,I),ee.hitSide)break}return ee},moveV:as(function(v,w){var I=this,O=this.doc,H=[],Y=!this.display.shift&&!O.extend&&O.sel.somethingSelected();if(O.extendSelectionsBy(function(ce){if(Y)return v<0?ce.from():ce.to();var me=Oi(I,ce.head,"div");ce.goalColumn!=null&&(me.left=ce.goalColumn),H.push(me.left);var Se=NV(I,me,v,w);return w=="page"&&ce==O.sel.primary()&&JN(I,Sw(I,Se,"div").top-me.top),Se},Me),H.length)for(var ee=0;ee<O.sel.ranges.length;ee++)O.sel.ranges[ee].goalColumn=H[ee]}),findWordAt:function(v){var w=this.doc,I=Ot(w,v.line).text,O=v.ch,H=v.ch;if(I){var Y=this.getHelper(v,"wordChars");(v.sticky=="before"||H==I.length)&&O?--O:++H;for(var ee=I.charAt(O),ce=_e(ee,Y)?function(me){return _e(me,Y)}:/\s/.test(ee)?function(me){return/\s/.test(me)}:function(me){return!/\s/.test(me)&&!_e(me)};O>0&&ce(I.charAt(O-1));)--O;for(;H<I.length&&ce(I.charAt(H));)++H}return new zn(Le(v.line,O),Le(v.line,H))},toggleOverwrite:function(v){v!=null&&v==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Z(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==G(ne(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:as(function(v,w){U1(this,v,w)}),getScrollInfo:function(){var v=this.display.scroller;return{left:v.scrollLeft,top:v.scrollTop,height:v.scrollHeight-gl(this)-this.display.barHeight,width:v.scrollWidth-gl(this)-this.display.barWidth,clientHeight:zN(this),clientWidth:wh(this)}},scrollIntoView:as(function(v,w){v==null?(v={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof v=="number"?v={from:Le(v,0),to:null}:v.from==null&&(v={from:v,to:null}),v.to||(v.to=v.from),v.margin=w||0,v.from.line!=null?V4e(this,v):bW(this,v.from,v.to,v.margin)}),setSize:as(function(v,w){var I=this,O=function(Y){return typeof Y=="number"||/^\d+$/.test(String(Y))?Y+"px":Y};v!=null&&(this.display.wrapper.style.width=O(v)),w!=null&&(this.display.wrapper.style.height=O(w)),this.options.lineWrapping&&lW(this);var H=this.display.viewFrom;this.doc.iter(H,this.display.viewTo,function(Y){if(Y.widgets){for(var ee=0;ee<Y.widgets.length;ee++)if(Y.widgets[ee].noHScroll){Rd(I,H,"widget");break}}++H}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(v){return Xs(this,v)},startOperation:function(){return Nh(this)},endOperation:function(){return _h(this)},refresh:as(function(){var v=this.display.cachedTextHeight;Cs(this),this.curOp.forceUpdate=!0,W1(this),U1(this,this.doc.scrollLeft,this.doc.scrollTop),t6(this.display),(v==null||Math.abs(v-mf(this.display))>.5||this.options.lineWrapping)&&qN(this),ve(this,"refresh",this)}),swapDoc:as(function(v){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),OW(this,v),W1(this),this.display.input.reset(),U1(this,v.scrollLeft,v.scrollTop),this.curOp.forceScroll=!0,ia(this,"swapDoc",this,w),w}),phrase:function(v){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,v)?w[v]:v},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Je(l),l.registerHelper=function(v,w,I){y.hasOwnProperty(v)||(y[v]=l[v]={_global:[]}),y[v][w]=I},l.registerGlobalHelper=function(v,w,I,O){l.registerHelper(v,w,O),y[v]._global.push({pred:I,val:O})}}function x6(l,d,y,v,w){var I=d,O=y,H=Ot(l,d.line),Y=w&&l.direction=="rtl"?-y:y;function ee(){var ft=d.line+Y;return ft<l.first||ft>=l.first+l.size?!1:(d=new Le(ft,d.ch,d.sticky),H=Ot(l,ft))}function ce(ft){var ct;if(v=="codepoint"){var _t=H.text.charCodeAt(d.ch+(y>0?0:-1));if(isNaN(_t))ct=null;else{var Ut=y>0?_t>=55296&&_t<56320:_t>=56320&&_t<57343;ct=new Le(d.line,Math.max(0,Math.min(H.text.length,d.ch+y*(Ut?2:1))),-y)}}else w?ct=NSe(l.cm,H,d,y):ct=u6(H,d,y);if(ct==null)if(!ft&&ee())d=h6(w,l.cm,H,d.line,Y);else return!1;else d=ct;return!0}if(v=="char"||v=="codepoint")ce();else if(v=="column")ce(!0);else if(v=="word"||v=="group")for(var me=null,Se=v=="group",we=l.cm&&l.cm.getHelper(d,"wordChars"),Fe=!0;!(y<0&&!ce(!Fe));Fe=!1){var Ue=H.text.charAt(d.ch)||"\n",nt=_e(Ue,we)?"w":Se&&Ue=="\n"?"n":!Se||/\s/.test(Ue)?null:"p";if(Se&&!Fe&&!nt&&(nt="s"),me&&me!=nt){y<0&&(y=1,ce(),d.sticky="after");break}if(nt&&(me=nt),y>0&&!ce(!Fe))break}var lt=Aw(l,d,I,O,!0);return ln(I,lt)&&(lt.hitSide=!0),lt}function NV(l,d,y,v){var w=l.doc,I=d.left,O;if(v=="page"){var H=Math.min(l.display.wrapper.clientHeight,ae(l).innerHeight||w(l).documentElement.clientHeight),Y=Math.max(H-.5*mf(l.display),3);O=(y>0?d.bottom:d.top)+y*Y}else v=="line"&&(O=y>0?d.bottom+3:d.top-3);for(var ee;ee=BN(l,I,O),!!ee.outside;){if(y<0?O<=0:O>=w.height){ee.hitSide=!0;break}O+=y*5}return ee}var Vn=function(l){this.cm=l,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ie,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Vn.prototype.init=function(l){var d=this,y=this,v=y.cm,w=y.div=l.lineDiv;w.contentEditable=!0,y6(w,v.options.spellcheck,v.options.autocorrect,v.options.autocapitalize);function I(H){for(var Y=H.target;Y;Y=Y.parentNode){if(Y==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Y.className))break}return!1}ke(w,"paste",function(H){!I(H)||Ie(v,H)||jV(H,v)||h<=11&&setTimeout(la(v,function(){return d.updateFromDOM()}),20)}),ke(w,"compositionstart",function(H){d.composing={data:H.data,done:!1}}),ke(w,"compositionupdate",function(H){d.composing||(d.composing={data:H.data,done:!1})}),ke(w,"compositionend",function(H){d.composing&&(H.data!=d.composing.data&&d.readFromDOMSoon(),d.composing.done=!0)}),ke(w,"touchstart",function(){return y.forceCompositionEnd()}),ke(w,"input",function(){d.composing||d.readFromDOMSoon()});function O(H){if(!(!I(H)||Ie(v,H))){if(v.somethingSelected())Ww({lineWise:!1,text:v.getSelections()}),H.type=="cut"&&v.replaceSelection("",null,"cut");else if(v.options.lineWiseCopyCut){var Y=SV(v);Ww({lineWise:!0,text:Y.text}),H.type=="cut"&&v.operation(function(){v.setSelections(Y.ranges,0,Ee),v.replaceSelection("",null,"cut")})}else return;if(H.clipboardData){H.clipboardData.clearData();var ee=Ri.text.join("\n");if(H.clipboardData.setData("Text",ee),H.clipboardData.getData("Text")==ee){H.preventDefault();return}}var ce=EV(),me=ce.firstChild;y6(me),v.display.lineSpace.insertBefore(ce,v.display.lineSpace.firstChild),me.value=Ri.text.join("\n");var Se=G(Q(w));V(me),setTimeout(function(){v.display.lineSpace.removeChild(ce),Se.focus(),Se==w&&y.showPrimarySelection()},50)}}ke(w,"copy",O),ke(w,"cut",O)},Vn.prototype.screenReaderLabelChanged=function(l){l?this.div.setAttribute("aria-label",l):this.div.removeAttribute("aria-label")},Vn.prototype.prepareSelection=function(){var l=vW(this.cm,!1);return l.focus=G(Q(this.div))==this.div,l},Vn.prototype.showSelection=function(l,d){!l||!this.cm.display.view.length||((l.focus||d)&&this.showPrimarySelection(),this.showMultipleSelections(l))},Vn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Vn.prototype.showPrimarySelection=function(){var l=this.getSelection(),d=this.cm,y=d.doc.sel.primary(),v=y.from(),w=y.to();if(d.display.viewTo==d.display.viewFrom||v.line>=d.display.viewTo||w.line<d.display.viewFrom){l.removeAllRanges();return}var I=Vw(d,l.anchorNode,l.anchorOffset),O=Vw(d,l.focusNode,l.focusOffset);if(!(I&&!I.bad&&O&&!O.bad&&pt(Od(I,O),v)==0&&pt(Ra(I,O),w)==0)){var H=d.display.view,Y=v.line>=d.display.viewFrom&&_V(d,v)||{node:H[0].measure.map[2],offset:0},ee=w.line<d.display.viewTo&&_V(d,w);if(!ee){var ce=H[H.length-1].measure,me=ce.maps?ce.maps[ce.maps.length-1]:ce.map;ee={node:me[me.length-1],offset:me[me.length-2]-me[me.length-3]}}if(!Y||!ee){l.removeAllRanges();return}var Se=l.rangeCount&&l.getRangeAt(0),we;try{we=K(Y.node,Y.offset,ee.offset,ee.node)}catch{}we&&(!s&&d.state.focused?(l.collapse(Y.node,Y.offset),we.collapsed||(l.removeAllRanges(),l.addRange(we))):(l.removeAllRanges(),l.addRange(we)),Se&&l.anchorNode==null?l.addRange(Se):s&&this.startGracePeriod()),this.rememberSelection()}},Vn.prototype.startGracePeriod=function(){var l=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){l.gracePeriod=!1,l.selectionChanged()&&l.cm.operation(function(){return l.cm.curOp.selectionChanged=!0})},20)},Vn.prototype.showMultipleSelections=function(l){$(this.cm.display.cursorDiv,l.cursors),$(this.cm.display.selectionDiv,l.selection)},Vn.prototype.rememberSelection=function(){var l=this.getSelection();this.lastAnchorNode=l.anchorNode,this.lastAnchorOffset=l.anchorOffset,this.lastFocusNode=l.focusNode,this.lastFocusOffset=l.focusOffset},Vn.prototype.selectionInEditor=function(){var l=this.getSelection();if(!l.rangeCount)return!1;var d=l.getRangeAt(0).commonAncestorContainer;return W(this.div,d)},Vn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||G(Q(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Vn.prototype.blur=function(){this.div.blur()},Vn.prototype.getField=function(){return this.div},Vn.prototype.supportsTouch=function(){return!0},Vn.prototype.receivedFocus=function(){var l=this,d=this;this.selectionInEditor()?setTimeout(function(){return l.pollSelection()},20):Xs(this.cm,function(){return d.cm.curOp.selectionChanged=!0});function y(){d.cm.state.focused&&(d.pollSelection(),d.polling.set(d.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Vn.prototype.selectionChanged=function(){var l=this.getSelection();return l.anchorNode!=this.lastAnchorNode||l.anchorOffset!=this.lastAnchorOffset||l.focusNode!=this.lastFocusNode||l.focusOffset!=this.lastFocusOffset},Vn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var l=this.getSelection(),d=this.cm;if(E&&x&&this.cm.display.gutterSpecs.length&&YSe(l.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=Vw(d,l.anchorNode,l.anchorOffset),v=Vw(d,l.focusNode,l.focusOffset);y&&v&&Xs(d,function(){Aa(d.doc,zd(y,v),Ee),(y.bad||v.bad)&&(d.curOp.selectionChanged=!0)})}}},Vn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var l=this.cm,d=l.display,y=l.doc.sel.primary(),v=y.from(),w=y.to();if(v.ch==0&&v.line>l.firstLine()&&(v=Le(v.line-1,Ot(l.doc,v.line-1).length)),w.ch==Ot(l.doc,w.line).text.length&&w.line<l.lastLine()&&(w=Le(w.line+1,0)),v.line<d.viewFrom||w.line>d.viewTo-1)return!1;var I,O,H;v.line==d.viewFrom||(I=Ch(l,v.line))==0?(O=te(d.view[0].line),H=d.view[0].node):(O=te(d.view[I].line),H=d.view[I-1].node.nextSibling);var Y=Ch(l,w.line),ee,ce;if(Y==d.view.length-1?(ee=d.viewTo-1,ce=d.lineDiv.lastChild):(ee=te(d.view[Y+1].line)-1,ce=d.view[Y+1].node.previousSibling),!H)return!1;for(var me=l.doc.splitLines(KSe(l,H,ce,O,ee)),Se=tt(l.doc,Le(O,0),Le(ee,Ot(l.doc,ee).text.length));me.length>1&&Se.length>1;)if(Ve(me)==Ve(Se))me.pop(),Se.pop(),ee--;else if(me[0]==Se[0])me.shift(),Se.shift(),O++;else break;for(var we=0,Fe=0,Ue=me[0],nt=Se[0],lt=Math.min(Ue.length,nt.length);we<lt&&Ue.charCodeAt(we)==nt.charCodeAt(we);)++we;for(var ft=Ve(me),ct=Ve(Se),_t=Math.min(ft.length-(me.length==1?we:0),ct.length-(Se.length==1?we:0));Fe<_t&&ft.charCodeAt(ft.length-Fe-1)==ct.charCodeAt(ct.length-Fe-1);)++Fe;if(me.length==1&&Se.length==1&&O==v.line)for(;we&&we>v.ch&&ft.charCodeAt(ft.length-Fe-1)==ct.charCodeAt(ct.length-Fe-1);)we--,Fe++;me[me.length-1]=ft.slice(0,ft.length-Fe).replace(/^\u200b+/,""),me[0]=me[0].slice(we).replace(/\u200b+$/,"");var Ut=Le(O,we),qt=Le(ee,Se.length?Ve(Se).length-Fe:0);if(me.length>1||me[0]||pt(Ut,qt))return kf(l.doc,me,Ut,qt,"+input"),!0},Vn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Vn.prototype.reset=function(){this.forceCompositionEnd()},Vn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Vn.prototype.readFromDOMSoon=function(){var l=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(l.readDOMTimeout=null,l.composing)if(l.composing.done)l.composing=null;else return;l.updateFromDOM()},80))},Vn.prototype.updateFromDOM=function(){var l=this;(this.cm.isReadOnly()||!this.pollContent())&&Xs(this.cm,function(){return Cs(l.cm)})},Vn.prototype.setUneditable=function(l){l.contentEditable="false"},Vn.prototype.onKeyPress=function(l){l.charCode==0||this.composing||(l.preventDefault(),this.cm.isReadOnly()||la(this.cm,v6)(this.cm,String.fromCharCode(l.charCode==null?l.keyCode:l.charCode),0))},Vn.prototype.readOnlyChanged=function(l){this.div.contentEditable=String(l!="nocursor")},Vn.prototype.onContextMenu=function(){},Vn.prototype.resetPosition=function(){},Vn.prototype.needsContentAttribute=!0;function _V(l,d){var y=FN(l,d.line);if(!y||y.hidden)return null;var v=Ot(l.doc,d.line),w=rW(y,v,d.line),I=Ce(v,l.doc.direction),O="left";if(I){var H=zt(I,d.ch);O=H%2?"right":"left"}var Y=oW(w.map,d.ch,O);return Y.offset=Y.collapse=="right"?Y.end:Y.start,Y}function YSe(l){for(var d=l;d;d=d.parentNode)if(/CodeMirror-gutter-wrapper/.test(d.className))return!0;return!1}function Nf(l,d){return d&&(l.bad=!0),l}function KSe(l,d,y,v,w){var I="",O=!1,H=l.doc.lineSeparator(),Y=!1;function ee(we){return function(Fe){return Fe.id==we}}function ce(){O&&(I+=H,Y&&(I+=H),O=Y=!1)}function me(we){we&&(ce(),I+=we)}function Se(we){if(we.nodeType==1){var Fe=we.getAttribute("cm-text");if(Fe){me(Fe);return}var Ue=we.getAttribute("cm-marker"),nt;if(Ue){var lt=l.findMarks(Le(v,0),Le(w+1,0),ee(+Ue));lt.length&&(nt=lt[0].find(0))&&me(tt(l.doc,nt.from,nt.to).join(H));return}if(we.getAttribute("contenteditable")=="false")return;var ft=/^(pre|div|p|li|table|br)$/i.test(we.nodeName);if(!/^br$/i.test(we.nodeName)&&we.textContent.length==0)return;ft&&ce();for(var ct=0;ct<we.childNodes.length;ct++)Se(we.childNodes[ct]);/^(pre|p)$/i.test(we.nodeName)&&(Y=!0),ft&&(O=!0)}else we.nodeType==3&&me(we.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Se(d),d!=y;)d=d.nextSibling,Y=!1;return I}function Vw(l,d,y){var v;if(d==l.display.lineDiv){if(v=l.display.lineDiv.childNodes[y],!v)return Nf(l.clipPos(Le(l.display.viewTo-1)),!0);d=null,y=0}else for(v=d;;v=v.parentNode){if(!v||v==l.display.lineDiv)return null;if(v.parentNode&&v.parentNode==l.display.lineDiv)break}for(var w=0;w<l.display.view.length;w++){var I=l.display.view[w];if(I.node==v)return GSe(I,d,y)}}function GSe(l,d,y){var v=l.text.firstChild,w=!1;if(!d||!W(v,d))return Nf(Le(te(l.line),0),!0);if(d==v&&(w=!0,d=v.childNodes[y],y=0,!d)){var I=l.rest?Ve(l.rest):l.line;return Nf(Le(te(I),I.text.length),w)}var O=d.nodeType==3?d:null,H=d;for(!O&&d.childNodes.length==1&&d.firstChild.nodeType==3&&(O=d.firstChild,y&&(y=O.nodeValue.length));H.parentNode!=v;)H=H.parentNode;var Y=l.measure,ee=Y.maps;function ce(nt,lt,ft){for(var ct=-1;ct<(ee?ee.length:0);ct++)for(var _t=ct<0?Y.map:ee[ct],Ut=0;Ut<_t.length;Ut+=3){var qt=_t[Ut+2];if(qt==nt||qt==lt){var xn=te(ct<0?l.line:l.rest[ct]),rr=_t[Ut]+ft;return(ft<0||qt!=nt)&&(rr=_t[Ut+(ft?1:0)]),Le(xn,rr)}}}var me=ce(O,H,y);if(me)return Nf(me,w);for(var Se=H.nextSibling,we=O?O.nodeValue.length-y:0;Se;Se=Se.nextSibling){if(me=ce(Se,Se.firstChild,0),me)return Nf(Le(me.line,me.ch-we),w);we+=Se.textContent.length}for(var Fe=H.previousSibling,Ue=y;Fe;Fe=Fe.previousSibling){if(me=ce(Fe,Fe.firstChild,-1),me)return Nf(Le(me.line,me.ch+Ue),w);Ue+=Fe.textContent.length}}var zr=function(l){this.cm=l,this.prevInput="",this.pollingFast=!1,this.polling=new ie,this.hasSelection=!1,this.composing=null,this.resetting=!1};zr.prototype.init=function(l){var d=this,y=this,v=this.cm;this.createField(l);var w=this.textarea;l.wrapper.insertBefore(this.wrapper,l.wrapper.firstChild),S&&(w.style.width="0px"),ke(w,"input",function(){u&&h>=9&&d.hasSelection&&(d.hasSelection=null),y.poll()}),ke(w,"paste",function(O){Ie(v,O)||jV(O,v)||(v.state.pasteIncoming=+new Date,y.fastPoll())});function I(O){if(!Ie(v,O)){if(v.somethingSelected())Ww({lineWise:!1,text:v.getSelections()});else if(v.options.lineWiseCopyCut){var H=SV(v);Ww({lineWise:!0,text:H.text}),O.type=="cut"?v.setSelections(H.ranges,null,Ee):(y.prevInput="",w.value=H.text.join("\n"),V(w))}else return;O.type=="cut"&&(v.state.cutIncoming=+new Date)}}ke(w,"cut",I),ke(w,"copy",I),ke(l.scroller,"paste",function(O){if(!(uc(l,O)||Ie(v,O))){if(!w.dispatchEvent){v.state.pasteIncoming=+new Date,y.focus();return}var H=new Event("paste");H.clipboardData=O.clipboardData,w.dispatchEvent(H)}}),ke(l.lineSpace,"selectstart",function(O){uc(l,O)||ot(O)}),ke(w,"compositionstart",function(){var O=v.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:O,range:v.markText(O,v.getCursor("to"),{className:"CodeMirror-composing"})}}),ke(w,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},zr.prototype.createField=function(l){this.wrapper=EV(),this.textarea=this.wrapper.firstChild;var d=this.cm.options;y6(this.textarea,d.spellcheck,d.autocorrect,d.autocapitalize)},zr.prototype.screenReaderLabelChanged=function(l){l?this.textarea.setAttribute("aria-label",l):this.textarea.removeAttribute("aria-label")},zr.prototype.prepareSelection=function(){var l=this.cm,d=l.display,y=l.doc,v=vW(l);if(l.options.moveInputWithCursor){var w=Oi(l,y.sel.primary().head,"div"),I=d.wrapper.getBoundingClientRect(),O=d.lineDiv.getBoundingClientRect();v.teTop=Math.max(0,Math.min(d.wrapper.clientHeight-10,w.top+O.top-I.top)),v.teLeft=Math.max(0,Math.min(d.wrapper.clientWidth-10,w.left+O.left-I.left))}return v},zr.prototype.showSelection=function(l){var d=this.cm,y=d.display;$(y.cursorDiv,l.cursors),$(y.selectionDiv,l.selection),l.teTop!=null&&(this.wrapper.style.top=l.teTop+"px",this.wrapper.style.left=l.teLeft+"px")},zr.prototype.reset=function(l){if(!(this.contextMenuPending||this.composing&&l)){var d=this.cm;if(this.resetting=!0,d.somethingSelected()){this.prevInput="";var y=d.getSelection();this.textarea.value=y,d.state.focused&&V(this.textarea),u&&h>=9&&(this.hasSelection=y)}else l||(this.prevInput=this.textarea.value="",u&&h>=9&&(this.hasSelection=null));this.resetting=!1}},zr.prototype.getField=function(){return this.textarea},zr.prototype.supportsTouch=function(){return!1},zr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||G(Q(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},zr.prototype.blur=function(){this.textarea.blur()},zr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zr.prototype.receivedFocus=function(){this.slowPoll()},zr.prototype.slowPoll=function(){var l=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){l.poll(),l.cm.state.focused&&l.slowPoll()})},zr.prototype.fastPoll=function(){var l=!1,d=this;d.pollingFast=!0;function y(){var v=d.poll();!v&&!l?(l=!0,d.polling.set(60,y)):(d.pollingFast=!1,d.slowPoll())}d.polling.set(20,y)},zr.prototype.poll=function(){var l=this,d=this.cm,y=this.textarea,v=this.prevInput;if(this.contextMenuPending||this.resetting||!d.state.focused||mt(y)&&!v&&!this.composing||d.isReadOnly()||d.options.disableInput||d.state.keySeq)return!1;var w=y.value;if(w==v&&!d.somethingSelected())return!1;if(u&&h>=9&&this.hasSelection===w||T&&/[\uf700-\uf7ff]/.test(w))return d.display.input.reset(),!1;if(d.doc.sel==d.display.selForContextMenu){var I=w.charCodeAt(0);if(I==8203&&!v&&(v="\u200B"),I==8666)return this.reset(),this.cm.execCommand("undo")}for(var O=0,H=Math.min(v.length,w.length);O<H&&v.charCodeAt(O)==w.charCodeAt(O);)++O;return Xs(d,function(){v6(d,w.slice(O),v.length-O,null,l.composing?"*compose":null),w.length>1e3||w.indexOf("\n")>-1?y.value=l.prevInput="":l.prevInput=w,l.composing&&(l.composing.range.clear(),l.composing.range=d.markText(l.composing.start,d.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zr.prototype.onKeyPress=function(){u&&h>=9&&(this.hasSelection=null),this.fastPoll()},zr.prototype.onContextMenu=function(l){var d=this,y=d.cm,v=y.display,w=d.textarea;d.contextMenuPending&&d.contextMenuPending();var I=jh(y,l),O=v.scroller.scrollTop;if(!I||b)return;var H=y.options.resetSelectionOnContextMenu;H&&y.doc.sel.contains(I)==-1&&la(y,Aa)(y.doc,zd(I),Ee);var Y=w.style.cssText,ee=d.wrapper.style.cssText,ce=d.wrapper.offsetParent.getBoundingClientRect();d.wrapper.style.cssText="position: static",w.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(l.clientY-ce.top-5)+"px; left: "+(l.clientX-ce.left-5)+"px;\n z-index: 1000; background: "+(u?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var me;p&&(me=w.ownerDocument.defaultView.scrollY),v.input.focus(),p&&w.ownerDocument.defaultView.scrollTo(null,me),v.input.reset(),y.somethingSelected()||(w.value=d.prevInput=" "),d.contextMenuPending=we,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function Se(){if(w.selectionStart!=null){var Ue=y.somethingSelected(),nt="\u200B"+(Ue?w.value:"");w.value="\u21DA",w.value=nt,d.prevInput=Ue?"":"\u200B",w.selectionStart=1,w.selectionEnd=nt.length,v.selForContextMenu=y.doc.sel}}function we(){if(d.contextMenuPending==we&&(d.contextMenuPending=!1,d.wrapper.style.cssText=ee,w.style.cssText=Y,u&&h<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=O),w.selectionStart!=null)){(!u||u&&h<9)&&Se();var Ue=0,nt=function(){v.selForContextMenu==y.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&d.prevInput=="\u200B"?la(y,YW)(y):Ue++<10?v.detectingSelectAll=setTimeout(nt,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(nt,200)}}if(u&&h>=9&&Se(),A){yt(l);var Fe=function(){ge(window,"mouseup",Fe),setTimeout(we,20)};ke(window,"mouseup",Fe)}else setTimeout(we,50)},zr.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},zr.prototype.setUneditable=function(){},zr.prototype.needsContentAttribute=!1;function ZSe(l,d){if(d=d?le(d):{},d.value=l.value,!d.tabindex&&l.tabIndex&&(d.tabindex=l.tabIndex),!d.placeholder&&l.placeholder&&(d.placeholder=l.placeholder),d.autofocus==null){var y=G(Q(l));d.autofocus=y==l||l.getAttribute("autofocus")!=null&&y==document.body}function v(){l.value=H.getValue()}var w;if(l.form&&(ke(l.form,"submit",v),!d.leaveSubmitMethodAlone)){var I=l.form;w=I.submit;try{var O=I.submit=function(){v(),I.submit=w,I.submit(),I.submit=O}}catch{}}d.finishInit=function(Y){Y.save=v,Y.getTextArea=function(){return l},Y.toTextArea=function(){Y.toTextArea=isNaN,v(),l.parentNode.removeChild(Y.getWrapperElement()),l.style.display="",l.form&&(ge(l.form,"submit",v),!d.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=w))}},l.style.display="none";var H=yr(function(Y){return l.parentNode.insertBefore(Y,l.nextSibling)},d);return H}function QSe(l){l.off=ge,l.on=ke,l.wheelEventPixels=aSe,l.Doc=Ss,l.splitLines=Ln,l.countColumn=oe,l.findColumn=ze,l.isWordChar=Vt,l.Pass=je,l.signal=ve,l.Line=uf,l.changeEnd=Fd,l.scrollbarModel=jW,l.Pos=Le,l.cmpPos=pt,l.modes=pe,l.mimeModes=Xe,l.resolveMode=on,l.getMode=Bt,l.modeExtensions=In,l.extendMode=vr,l.copyState=nr,l.startState=si,l.innerMode=kr,l.commands=ov,l.keyMap=pc,l.keyName=cV,l.isModifierKey=iV,l.lookupKey=Cf,l.normalizeKeyMap=ESe,l.StringStream=Sn,l.SharedTextMarker=rv,l.TextMarker=$d,l.LineWidget=nv,l.e_preventDefault=ot,l.e_stopPropagation=at,l.e_stop=yt,l.addClass=Z,l.contains=W,l.rmClass=z,l.keyNames=Bd}BSe(yr),qSe(yr);var JSe="iter insert remove copy getEditor constructor".split(" ");for(var Uw in Ss.prototype)Ss.prototype.hasOwnProperty(Uw)&&de(JSe,Uw)<0&&(yr.prototype[Uw]=function(l){return function(){return l.apply(this.doc,arguments)}}(Ss.prototype[Uw]));return Je(Ss),yr.inputStyles={textarea:zr,contenteditable:Vn},yr.defineMode=function(l){!yr.defaults.mode&&l!="null"&&(yr.defaults.mode=l),We.apply(this,arguments)},yr.defineMIME=ht,yr.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(l,d){yr.prototype[l]=d},yr.defineDocExtension=function(l,d){Ss.prototype[l]=d},yr.fromTextArea=ZSe,QSe(yr),yr.version="5.65.16",yr})})(ZA),Ai=ZA.exports;const Ug=_o(Ai),I1e=({prefix:e="cm-",isWrapped:t=!1,isDark:n,isLargeView:r,isCommand:s,webRequestMethod:o,autoHideScrollbar:i,searchTerm:c,maxHeight:u,isShowMore:h=!1,language:p,value:m})=>{const[x,C]=f.useState([]),[b,g]=f.useState(!1),k=f.useRef([]);return f.useEffect(()=>{(async()=>{const j=Ug.findModeByName(p);try{j&&j.mode&&await T1e("codemirror/mode/".concat(j.mode,"/").concat(j.mode,".js")),g(!0)}catch(S){console.error("Error loading CodeMirror mode:",S),g(!1)}})()},[p]),f.useEffect(()=>{if(!b)return;const j=[];let S=0;const E=N=>{var P;let T="",M=null;const L=(A,B)=>{j.push(a.jsx("span",{className:B?"".concat(e).concat(B):"",children:A},S++))},D=((P=Ug.findModeByName(p))==null?void 0:P.mime)||"text/plain";if(p==="json")try{N=JSON.stringify(JSON.parse(N),null,2)}catch{}Ug.runMode(N,D,(A,B)=>{M===B?(T+=A,M=B):(T&&L(T,M),T=A,M=B)}),L(T,M)};if(c&&c.length>1){const N=zM(c),T=new RegExp("(".concat(N,")"),"gi"),M=m.split(T);k.current=[],M.forEach(L=>{if(L.toLowerCase()===c.toLowerCase()){const D=f.createRef();k.current.push(D),j.push(a.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:Ei(D),children:L},"found-".concat(S++)))}else E(L)})}else E(m);C(j)},[b,p,e,c,m]),f.useEffect(()=>{var j;k.current.length>0&&((j=k.current[0].current)==null||j.scrollIntoView({behavior:"smooth",block:"center"}))},[x]),b?a.jsx(xm,{className:"".concat(h?"code-scroll-x pb-2":""),options:{overflow:{x:h?"scroll":"hidden",y:"scroll"},scrollbars:{theme:n?"os-theme-light":"os-theme-dark",autoHide:i?"move":"never"}},style:{maxHeight:u||(r?"calc(100vh - 250px)":h?200:120),maxWidth:"100%"},children:a.jsxs("code",{className:"".concat(t?"whitespace-pre-wrap":"whitespace-pre"," !bg-transparent ").concat(n?"code-is-dark":"code-is-light"),children:[s&&a.jsx("span",{className:"mr-1 px-1 bg-gray-100 dark:bg-gray-800 text-slate-400 dark:text-slate-200",children:">_"}),o&&a.jsx("span",{className:"mr-1 px-1 bg-gray-100 text-slate-400",children:o}),x,!h&&a.jsx("span",{className:"select-none",children:"..."})]})}):null},es=f.memo(I1e);function T1e(e){switch(e){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return he(()=>import("./apl-BNUU5qT2.js").then(t=>t.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return he(()=>import("./asciiarmor-Dme1RrXC.js").then(t=>t.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return he(()=>import("./asn.1-F2CRehLK.js").then(t=>t.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return he(()=>import("./asterisk-DXXb7CIe.js").then(t=>t.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return he(()=>import("./brainfuck-CeDN_aVu.js").then(t=>t.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return he(()=>import("./clike-CKh8RrsZ.js").then(t=>t.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return he(()=>import("./clojure-IL83DiMe.js").then(t=>t.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return he(()=>import("./cmake-CBK4FEFU.js").then(t=>t.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return he(()=>import("./cobol-Cr7sthRy.js").then(t=>t.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return he(()=>import("./coffeescript-UYn4tXgp.js").then(t=>t.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return he(()=>import("./commonlisp-OgP-zwJC.js").then(t=>t.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return he(()=>import("./crystal-DdaQepjy.js").then(t=>t.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return he(()=>import("./css-D2W7DKD8.js").then(t=>t.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return he(()=>import("./cypher-DHl2Df_p.js").then(t=>t.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return he(()=>import("./d-BWFZb9L0.js").then(t=>t.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return he(()=>import("./dart-C667kpDq.js").then(t=>t.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return he(()=>import("./diff-yarkSHUY.js").then(t=>t.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return he(()=>import("./django-BHkfok3M.js").then(t=>t.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return he(()=>import("./dockerfile-DZNrmCx9.js").then(t=>t.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return he(()=>import("./dtd-CBEuXgRr.js").then(t=>t.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return he(()=>import("./dylan-B5hsWYhU.js").then(t=>t.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return he(()=>import("./ebnf-b8GlOkaz.js").then(t=>t.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return he(()=>import("./ecl-DtaFcOh0.js").then(t=>t.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return he(()=>import("./eiffel-IO4mzJd1.js").then(t=>t.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return he(()=>import("./elm-BbZFnA_F.js").then(t=>t.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return he(()=>import("./erlang-CqixHPO0.js").then(t=>t.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return he(()=>import("./factor-BvAHKI6r.js").then(t=>t.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return he(()=>import("./fcl-1IEbqCAc.js").then(t=>t.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return he(()=>import("./forth-CDUdH4D4.js").then(t=>t.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return he(()=>import("./fortran-CWoK8aFO.js").then(t=>t.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return he(()=>import("./gas-DE4QdS-d.js").then(t=>t.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return he(()=>import("./gfm-DIFGgWk3.js").then(t=>t.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return he(()=>import("./gherkin-BxEScuMF.js").then(t=>t.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return he(()=>import("./go-D8mq7sP4.js").then(t=>t.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return he(()=>import("./groovy-C9RPG7vC.js").then(t=>t.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return he(()=>import("./haml-DJceL8fb.js").then(t=>t.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return he(()=>import("./handlebars-DR4e85cA.js").then(t=>t.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return he(()=>import("./haskell-CwWQgmjX.js").then(t=>t.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return he(()=>import("./haskell-literate-CIJKYWZj.js").then(t=>t.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return he(()=>import("./haxe-CBSoEZry.js").then(t=>t.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return he(()=>import("./htmlembedded-BY07fnzD.js").then(t=>t.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return he(()=>import("./htmlmixed-D-5cijKW.js").then(t=>t.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return he(()=>import("./http-CfbTkW66.js").then(t=>t.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return he(()=>import("./idl-CqKPtuqA.js").then(t=>t.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return he(()=>Promise.resolve().then(()=>kz),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return he(()=>import("./jinja2-CZ-2GBUs.js").then(t=>t.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return he(()=>import("./jsx-BqYTd4Ox.js").then(t=>t.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return he(()=>import("./julia-DzRJNze5.js").then(t=>t.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return he(()=>import("./livescript-CTahV9d4.js").then(t=>t.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return he(()=>import("./lua-DtLm0yzv.js").then(t=>t.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return he(()=>import("./markdown-nFIn21h-.js").then(t=>t.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return he(()=>import("./mathematica-j2K5Nob2.js").then(t=>t.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return he(()=>import("./mbox-DnT_eu6u.js").then(t=>t.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return he(()=>import("./mirc-BsPlsCKq.js").then(t=>t.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return he(()=>import("./mllike-Bul4RzWX.js").then(t=>t.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return he(()=>import("./modelica-CN82Hjfx.js").then(t=>t.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return he(()=>import("./mscgen-CXfyxN3O.js").then(t=>t.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return he(()=>import("./mumps-CByPgSeh.js").then(t=>t.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return he(()=>import("./nginx-CZ9wXhkV.js").then(t=>t.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return he(()=>import("./nsis-WhSdmpHT.js").then(t=>t.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return he(()=>import("./ntriples-DD9L1km0.js").then(t=>t.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return he(()=>import("./octave-COXT1yn0.js").then(t=>t.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return he(()=>import("./oz-Da4VFWYm.js").then(t=>t.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return he(()=>import("./pascal-B1y2XCyp.js").then(t=>t.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return he(()=>import("./pegjs-Da3q5XnG.js").then(t=>t.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return he(()=>import("./perl-Asp0f867.js").then(t=>t.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return he(()=>import("./php-71tO0CUH.js").then(t=>t.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return he(()=>import("./pig-CMgyeSfJ.js").then(t=>t.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return he(()=>import("./powershell-CtO8JJd6.js").then(t=>t.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return he(()=>import("./properties-BIdqkyNt.js").then(t=>t.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return he(()=>import("./protobuf-C2FX4XDW.js").then(t=>t.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return he(()=>import("./pug-udiFjUiW.js").then(t=>t.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return he(()=>import("./puppet-CuGQJUQz.js").then(t=>t.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return he(()=>import("./python-a8ZN5Ifv.js").then(t=>t.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return he(()=>import("./q-B5E7ZAlA.js").then(t=>t.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return he(()=>import("./r-CXytZJ_z.js").then(t=>t.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return he(()=>import("./rpm-loWZ38cd.js").then(t=>t.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return he(()=>import("./rst-x-YdJKUf.js").then(t=>t.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return he(()=>import("./ruby-CUv_2cE6.js").then(t=>t.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return he(()=>import("./rust-CECTlJlB.js").then(t=>t.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return he(()=>import("./sas-F-7_6Jdg.js").then(t=>t.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return he(()=>import("./sass-DfmYfR5p.js").then(t=>t.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return he(()=>import("./scheme-E5v_T6DG.js").then(t=>t.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return he(()=>import("./shell-uHqAcByi.js").then(t=>t.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return he(()=>import("./sieve-CbDNJ0TM.js").then(t=>t.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return he(()=>import("./slim-d7Z4lAts.js").then(t=>t.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return he(()=>import("./smalltalk-CGLbf20e.js").then(t=>t.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return he(()=>import("./smarty-BmZT5K8Q.js").then(t=>t.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return he(()=>import("./solr-MnVTKpd2.js").then(t=>t.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return he(()=>import("./soy-DcmltwnY.js").then(t=>t.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return he(()=>import("./sparql-5VUUvode.js").then(t=>t.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return he(()=>import("./spreadsheet-DB1FZ1v2.js").then(t=>t.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return he(()=>import("./sql-C8uJ4o1L.js").then(t=>t.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return he(()=>import("./stex-nTWKGNDo.js").then(t=>t.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return he(()=>import("./stylus-DBOiHsJ5.js").then(t=>t.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return he(()=>import("./swift-CLOAQg_1.js").then(t=>t.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return he(()=>import("./tcl-tnG6txJ2.js").then(t=>t.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return he(()=>import("./textile-DMLzNI5U.js").then(t=>t.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return he(()=>import("./tiddlywiki-RbU_yCyr.js").then(t=>t.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return he(()=>import("./tiki-Btz-h5GF.js").then(t=>t.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return he(()=>import("./toml-BBh1BnEP.js").then(t=>t.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return he(()=>import("./tornado-B3jCObZ9.js").then(t=>t.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return he(()=>import("./troff-CdBEHN9t.js").then(t=>t.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return he(()=>import("./ttcn-uCpRF2MT.js").then(t=>t.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return he(()=>import("./ttcn-cfg-iNj7-iEp.js").then(t=>t.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return he(()=>import("./turtle-BMegzYZP.js").then(t=>t.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return he(()=>import("./twig-CvmBDsDU.js").then(t=>t.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return he(()=>import("./vb-DHcZeaZZ.js").then(t=>t.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return he(()=>import("./vbscript-B_zDrSi1.js").then(t=>t.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return he(()=>import("./velocity-B093arIW.js").then(t=>t.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return he(()=>import("./verilog-BcnaaooT.js").then(t=>t.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return he(()=>import("./vhdl-CagjzFgb.js").then(t=>t.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return he(()=>import("./vue-NkNgpH_3.js").then(t=>t.v),__vite__mapDeps([29,5,30,4,23,31,18,3,10,11]));case"codemirror/mode/wast/wast":case"codemirror/mode/wast/wast.js":return he(()=>import("./wast-Bay8xTdS.js").then(t=>t.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return he(()=>import("./webidl-DXcfAv93.js").then(t=>t.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return he(()=>Promise.resolve().then(()=>Sz),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return he(()=>import("./xquery-CsRHZ6N-.js").then(t=>t.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return he(()=>import("./yacas-bzwHnb5K.js").then(t=>t.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return he(()=>import("./yaml-0ip59n2H.js").then(t=>t.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return he(()=>import("./yaml-frontmatter-DeWJDSuj.js").then(t=>t.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return he(()=>import("./z80-BwkETLA0.js").then(t=>t.z),[]);default:return new Promise(function(t,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const y2=e=>{if(e){const t=e.replace(/\D/g,"").match(/(\d{0,4})(\d{0,4})(\d{0,4})(\d{0,4})/);return t&&t.length>1?t[2]?"".concat(t[1]," ").concat(t[2]).concat("".concat(t[3]?" ".concat(t[3]):"")).concat("".concat(t[4]?" ".concat(t[4]):"")):t[1]:e}},QA=e=>{var t;return e&&((t=y2(e))!=null?t:"").replace(/\d(?=(?:\D*\d){4})/g,"\u2022")},qg=f.forwardRef(({small:e,placeholder:t,label:n,name:r="",autoFocus:s=!1,required:o,ccNumber:i,readOnly:c,onInputBlur:u,showHideCCNumber:h=!1,tooltipContent:p,tooltip:m,prefix:x,error:C,props:b,className:g,classNameInput:k,...j},S)=>{const E=f.useRef(null),[N,T]=f.useState(!1),[M,L]=f.useState(i);f.useImperativeHandle(S,()=>E.current);const D=()=>{var B;if(!E.current||!E.current.value)return;const P=(B=y2(E.current.value))!=null?B:"",A=P.replace(/(\D)/g,"");E.current.value!==P&&(E.current.value=P),L(A)};return f.useEffect(()=>{var P;if(E.current&&N){const A=(P=y2(M))!=null?P:"";E.current.value=A}},[M]),f.useEffect(()=>{var P,A;N&&E.current&&M&&(E.current.value=(P=y2(M))!=null?P:""),!N&&E.current&&(E.current.value=(A=QA(M))!=null?A:"")},[N]),f.useEffect(()=>{E.current&&s&&setTimeout(()=>{var P;(P=E.current)==null||P.focus()},200)},[s]),a.jsxs("div",{className:dn("w-full",g),...b,children:[n&&a.jsx(wS,{label:n,required:o,tooltipContent:p,tooltip:m,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),a.jsxs("div",{className:"relative",children:[x?a.jsx("span",{className:"text-grey-40 mr-2xsmall",children:x}):null,a.jsx("input",{className:dn("bg-grey-5 border-gray-20 px-small py-xsmall rounded rounded-rounded flex w-full items-center border","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","remove-number-spinner px-3 leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-transparent font-normal outline-none outline-0",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":C},e?"h-8":"h-10",{"!pr-8":h},{"text-small":e,"pt-[1px]":e},k),ref:E,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:"text",name:r,defaultValue:QA(i),placeholder:t||"".concat(n,"...")||"",onChange:D,onFocus:()=>{c||T(!0)},onBlur:()=>{u&&M&&u(M.trim().replaceAll(" ",""))},...j}),a.jsx("button",{className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{T(P=>!P)},children:N?a.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:a.jsx("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:"currentColor",fillRule:"evenodd"})}):a.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:a.jsx("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd"})})})]}),C&&a.jsx("div",{className:dn("text-sm animate fade-in text-red-400",g),children:a.jsx("p",{children:C})})]})});qg.displayName="InputCreditCardField";const Yg=({id:e,isCopiedOrPasted:t,pastedItemCountDown:n,isCopied:r,pastedText:s,copyOrPasteFieldId:o})=>{const{t:i}=wt();if(o.value!==e||!t)return null;let c;return n?n>0&&(c=i("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:n})):c=a.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white pr-1.5 py-0",children:[a.jsx(Dt,{size:14,className:"mr-1"}),r?i("Copied",{ns:"common"}):s?i("Pasted",{ns:"common"}):""]}),a.jsx(J,{className:"w-full h-full border border-green-700 bg-green-100/80 dark:bg-green-800 absolute right-0 top-0 flex items-center justify-center pointer-events-none px-2 !rounded-md z-100 animate-in fade-in transition-opacity",children:a.jsx(it,{className:"".concat(n?"ml-1 bg-green-700 dark:bg-green-800 dark:text-white !px-2":"bg-green-700 dark:bg-green-800 dark:text-white"," fade-in-animation py-[2px] whitespace-nowrap"),children:c})})},JA={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"};function XA({clipId:e,formTemplateOptions:t}){var C,b;const{t:n}=wt(),[r,s]=_S({}),[o,i,c]=IS({}),{updateItemById:u}=ji(),h=He(!1),p=He(null),m=He({templateOptions:[],formOptions:{openUrl:null,fields:[]}});f.useEffect(()=>{if(t)try{m.value=JSON.parse(t)}catch(g){console.error(g)}},[t]),f.useEffect(()=>{h.value&&setTimeout(()=>{h.value=!1},1e3)},[h.value]);const x=!!(r||o);return a.jsxs(a.Fragment,{children:[a.jsxs(J,{className:"select-none mb-2",children:[m.value.formOptions.openUrl!=null&&a.jsxs(fe,{className:"text-normal w-full gap-2 py-0.5 mb-1 ".concat(m.value.formOptions.isOpenUrlDisabled?"bg-gray-100 dark:bg-gray-900 opacity-70":""),children:[m.value.formOptions.isOpenUrlDisabled?a.jsx(a.Fragment,{children:a.jsxs(X,{className:"!font-semibold pointer-events-none text-slate-500 dark:text-slate-200 border dark:bg-slate-700/80 group hover:text-blue-500 flex items-center bg-gray-200 !text-xs px-2 py-1 rounded-md line-through gap-1",children:[n("Open",{ns:"common"}),a.jsx("span",{className:"overflow-hidden text-ellipsis p-1",children:mr(m.value.formOptions.openUrl)})]})}):a.jsx(a.Fragment,{children:a.jsxs(X,{className:"!font-semibold text-slate-500 dark:text-slate-200 border dark:bg-slate-700/80 group hover:text-blue-700 dark:hover:text-blue-400 flex items-center bg-gray-200 !text-xs px-2 py-1 rounded-md gap-1",children:[a.jsx("span",{className:"pointer-events-none",children:n("Open",{ns:"common"})}),a.jsxs("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400 overflow-hidden text-ellipsis relative p-1",title:"".concat(n("Open",{ns:"common"})," ").concat(m.value.formOptions.openUrl),onClick:()=>{Tl(mr(m.value.formOptions.openUrl))},children:[mr(m.value.formOptions.openUrl),a.jsx(Yg,{id:m.value.formOptions.openUrl,isCopiedOrPasted:x,pastedItemCountDown:i,isCopied:r,pastedText:o,copyOrPasteFieldId:p})]})]})}),a.jsxs(fe,{children:[a.jsx(ye,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",variant:"ghost",disabled:m.value.formOptions.isOpenUrlDisabled,onClick:g=>{g.preventDefault(),m.value.formOptions.openUrl&&(p.value=m.value.formOptions.openUrl,nn.value?c(m.value.formOptions.openUrl):s(m.value.formOptions.openUrl))},children:a.jsx(De,{text:nn.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:14}):a.jsx(qa,{size:14})})}),a.jsx(ye,{variant:"ghost",size:"mini",title:n("Enable / Disable URL Open",{ns:"dashboard"}),onClick:async()=>{var k;m.value={...m.value,formOptions:{...m.value.formOptions,isOpenUrlDisabled:!((k=m.value.formOptions)!=null&&k.isOpenUrlDisabled)}};const g=JSON.stringify(m.value);try{await u({updatedItem:{formTemplateOptions:g,itemId:e}}),setTimeout(()=>{h.value=!0},300)}catch(j){console.error(j)}},className:"pl-1 font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:(C=m.value.formOptions)!=null&&C.isOpenUrlDisabled?a.jsx(Ya,{size:14}):a.jsx(hs,{size:14})})]})]}),(b=m.value.formOptions)==null?void 0:b.fields.map((g,k)=>{var T,M,L,D,P;const j=g.isLabelOnTop,S=g.isLabelHidden,E=g.type==="section",N=g.type==="textarea";return a.jsxs(fe,{className:"".concat(g.type!=="section"?"mb-1":"mt-1"," group ").concat(j?"flex-col items-start":"items-center"," ").concat(N?"!mt-2 !mb-1":""),children:[!S&&a.jsx(a.Fragment,{children:g.label&&g.type!=="section"?a.jsx(X,{className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(j?"!justify-start pl-1":"!justify-end"),children:a.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(j?"text-left":"text-right max-w-[160px]"),children:g.label})}):a.jsx("div",{className:"pr-1 min-w-[80px]"})}),a.jsxs(fe,{className:"w-full",children:[a.jsx(fe,{className:"gap-0.5 flex-col w-full items-start ".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:a.jsxs(fe,{className:"w-full gap-1 justify-start",children:[g.isDelayOnly||g.isPressKeysOnly?a.jsxs(fe,{className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[g.isDelayOnly&&a.jsxs(it,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[n("Delay",{ns:"common"})," ",g.value]}),g.isPressKeysOnly&&g.pressKeysAfterPaste&&a.jsxs(it,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[n("Press",{ns:"common"})," ",JA[g.pressKeysAfterPaste]]})]}):g.type==="password"||g.type==="passwordCode"?a.jsxs(fe,{children:[a.jsxs("div",{className:"relative w-full",children:[a.jsx(Gt,{small:!0,placeholder:n("Empty",{ns:"common"}),classNameInput:"text-sm border-0 border-b border-gray-200 hover:border-gray-400 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis",disabled:g.isEnable===!1,isPassword:!0,numbersOnly:g.type==="passwordCode",showHidePassword:!0,className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:g.value}),a.jsx(Yg,{id:g.id,isCopiedOrPasted:x,pastedItemCountDown:i,isCopied:r,pastedText:o,copyOrPasteFieldId:p})]}),!E&&!g.isDelayOnly&&!g.isPressKeysOnly&&a.jsx(ye,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:g.isEnable===!1||!g.value,variant:"ghost",onClick:A=>{A.preventDefault(),g.value&&(p.value=g.id||null,nn.value?c(g.value):s(g.value))},children:a.jsx(De,{text:nn.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:14}):a.jsx(qa,{size:14})})})]}):g.type==="creditcard"?a.jsxs(fe,{children:[a.jsxs("div",{className:"relative w-full",children:[a.jsx(qg,{small:!0,placeholder:n("Empty",{ns:"common"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none hover:border-gray-400 pl-1.5 nowrap overflow-hidden text-ellipsis",disabled:g.isEnable===!1,className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,ccNumber:g.value}),a.jsx(Yg,{id:g.id,isCopiedOrPasted:x,pastedItemCountDown:i,isCopied:r,pastedText:o,copyOrPasteFieldId:p})]}),!E&&!g.isDelayOnly&&!g.isPressKeysOnly&&a.jsx(ye,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:g.isEnable===!1||!g.value,variant:"ghost",onClick:A=>{A.preventDefault(),g.value&&(p.value=g.id||null,nn.value?c(g.value):s(g.value))},children:a.jsx(De,{text:nn.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:14}):a.jsx(qa,{size:14})})})]}):E?a.jsx("span",{className:"text-sm !font-semibold border-0 nowrap overflow-hidden text-ellipsis !pl-0.5 py-2",children:g.value}):g.type==="textarea"?a.jsxs(fe,{children:[a.jsxs("div",{className:"w-full relative",children:[a.jsx(go,{placeholder:n("Empty",{ns:"common"}),label:"",className:"text-sm font-semibold border-0 border-transparent hover:border-gray-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:g.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:k===((T=m.value.formOptions.fields)==null?void 0:T.length)-1&&m.value.formOptions.fields[k].value==="",maxRows:2,value:g.value,enableEmoji:!1,readOnly:!0,enableEmojiInside:!1}),a.jsx(Yg,{id:g.id,isCopiedOrPasted:x,pastedItemCountDown:i,isCopied:r,pastedText:o,copyOrPasteFieldId:p})]}),!E&&!g.isDelayOnly&&!g.isPressKeysOnly&&a.jsx(ye,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:g.isEnable===!1||!g.value,variant:"ghost",onClick:A=>{A.preventDefault(),g.value&&(p.value=g.id||null,nn.value?c(g.value):s(g.value))},children:a.jsx(De,{text:nn.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:14}):a.jsx(qa,{size:14})})})]}):a.jsxs(fe,{children:[a.jsxs("div",{className:"w-full relative",children:[a.jsx(Gt,{small:!0,placeholder:n("Empty",{ns:"common"}),autoFocus:k===((M=m.value.formOptions.fields)==null?void 0:M.length)-1&&m.value.formOptions.fields[k].value===""&&m.value.formOptions.fields[k].label!=="Custom",classNameInput:"text-sm border-0 border-b border-gray-200 hover:border-gray-400 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,type:g.type==="number"?"number":"text",className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:g.value}),a.jsx(Yg,{id:g.id,isCopiedOrPasted:x,pastedItemCountDown:i,isCopied:r,pastedText:o,copyOrPasteFieldId:p})]}),!E&&!g.isDelayOnly&&!g.isPressKeysOnly&&a.jsx(ye,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:g.isEnable===!1||!g.value,variant:"ghost",onClick:A=>{A.preventDefault(),g.value&&(p.value=g.id||null,nn.value?c(g.value):s(g.value))},children:a.jsx(De,{text:nn.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:14}):a.jsx(qa,{size:14})})})]}),g.isDelayOnly||g.isPressKeysOnly||E?a.jsx(a.Fragment,{}):a.jsx(fe,{children:g.pressKeysAfterPaste&&a.jsx(it,{variant:"secondary",className:"p-2 py-0.5 text-slate-500 whitespace-nowrap mr-1",children:JA[g.pressKeysAfterPaste]})})]})}),a.jsx(fe,{className:"gap-1",children:!E&&a.jsx(ye,{size:"mini",title:n("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:async()=>{var B;m.value={...m.value,formOptions:{...m.value.formOptions,fields:(B=m.value.formOptions)==null?void 0:B.fields.map((z,R)=>R===k?{...z,isEnable:!z.isEnable}:z)}};const A=JSON.stringify(m.value);try{await u({updatedItem:{formTemplateOptions:A,itemId:e}}),setTimeout(()=>{h.value=!0},300)}catch(z){console.error(z)}},children:(L=m.value.formOptions)!=null&&L.fields&&((P=(D=m.value.formOptions)==null?void 0:D.fields[k])!=null&&P.isEnable)?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})})})]})]},g.id)})]}),h.value&&a.jsx(J,{className:"bg-blue-200 dark:bg-blue-800 text-xs rounded-sm px-1.5 absolute left-1 bottom-1",children:n("Updated",{ns:"common"})})]})}const{entries:ez,setPrototypeOf:tz,isFrozen:M1e,getPrototypeOf:L1e,getOwnPropertyDescriptor:D1e}=Object;let{freeze:bs,seal:Go,create:nz}=Object,{apply:TS,construct:MS}=typeof Reflect<"u"&&Reflect;bs||(bs=function(e){return e}),Go||(Go=function(e){return e}),TS||(TS=function(e,t,n){return e.apply(t,n)}),MS||(MS=function(e,t){return new e(...t)});const x2=xo(Array.prototype.forEach),rz=xo(Array.prototype.pop),Kg=xo(Array.prototype.push),b2=xo(String.prototype.toLowerCase),LS=xo(String.prototype.toString),az=xo(String.prototype.match),Gg=xo(String.prototype.replace),O1e=xo(String.prototype.indexOf),P1e=xo(String.prototype.trim),Ii=xo(Object.prototype.hasOwnProperty),yo=xo(RegExp.prototype.test),Zg=R1e(TypeError);function xo(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return TS(e,t,r)}}function R1e(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MS(e,n)}}function Tn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b2;tz&&tz(e,null);let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const o=n(s);o!==s&&(M1e(t)||(t[r]=o),s=o)}e[s]=!0}return e}function A1e(e){for(let t=0;t<e.length;t++)Ii(e,t)||(e[t]=null);return e}function Xu(e){const t=nz(null);for(const[n,r]of ez(e))Ii(e,n)&&(Array.isArray(r)?t[n]=A1e(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Xu(r):t[n]=r);return t}function w2(e,t){for(;e!==null;){const r=D1e(e,t);if(r){if(r.get)return xo(r.get);if(typeof r.value=="function")return xo(r.value)}e=L1e(e)}function n(){return null}return n}const sz=bs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),DS=bs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),OS=bs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z1e=bs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),PS=bs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F1e=bs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oz=bs(["#text"]),iz=bs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),RS=bs(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lz=bs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),k2=bs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H1e=Go(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$1e=Go(/<%[\w\W]*|[\w\W]*%>/gm),B1e=Go(/\${[\w\W]*}/gm),W1e=Go(/^data-[\-\w.\u00B7-\uFFFF]/),V1e=Go(/^aria-[\-\w]+$/),cz=Go(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U1e=Go(/^(?:\w+script|data):/i),q1e=Go(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dz=Go(/^html$/i),Y1e=Go(/^[a-z][.\w]*(-[.\w]+)+$/i);var uz=Object.freeze({__proto__:null,MUSTACHE_EXPR:H1e,ERB_EXPR:$1e,TMPLIT_EXPR:B1e,DATA_ATTR:W1e,ARIA_ATTR:V1e,IS_ALLOWED_URI:cz,IS_SCRIPT_OR_DATA:U1e,ATTR_WHITESPACE:q1e,DOCTYPE_NAME:dz,CUSTOM_ELEMENT:Y1e});const K1e=function(){return typeof window>"u"?null:window},G1e=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function hz(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K1e();const t=pe=>hz(pe);if(t.version="3.0.11",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,s=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:i,Node:c,Element:u,NodeFilter:h,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:x,trustedTypes:C}=e,b=u.prototype,g=w2(b,"cloneNode"),k=w2(b,"nextSibling"),j=w2(b,"childNodes"),S=w2(b,"parentNode");if(typeof i=="function"){const pe=n.createElement("template");pe.content&&pe.content.ownerDocument&&(n=pe.content.ownerDocument)}let E,N="";const{implementation:T,createNodeIterator:M,createDocumentFragment:L,getElementsByTagName:D}=n,{importNode:P}=r;let A={};t.isSupported=typeof ez=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:z,TMPLIT_EXPR:R,DATA_ATTR:$,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:W}=uz;let{IS_ALLOWED_URI:G}=uz,Z=null;const F=Tn({},[...sz,...DS,...OS,...PS,...oz]);let V=null;const q=Tn({},[...iz,...RS,...lz,...k2]);let ne=Object.seal(nz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,ae=null,re=!0,le=!0,oe=!1,ie=!0,de=!1,xe=!1,je=!1,Ee=!1,Te=!1,Me=!1,ze=!1,qe=!0,Ye=!1;const Ve="user-content-";let Lt=!0,$e=!1,st={},At=null;const Qt=Tn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Vt=null;const _e=Tn({},["audio","video","img","source","image","track"]);let sn=null;const Ht=Tn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kt="http://www.w3.org/1998/Math/MathML",rn="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let Jt=Zt,gn=!1,zt=null;const Mn=Tn({},[kt,rn,Zt],LS);let Ce=null;const Be=["application/xhtml+xml","text/html"],ke="text/html";let Qe=null,ge=null;const ve=n.createElement("form"),Ie=function(pe){return pe instanceof RegExp||pe instanceof Function},Ae=function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ge&&ge===pe)){if((!pe||typeof pe!="object")&&(pe={}),pe=Xu(pe),Ce=Be.indexOf(pe.PARSER_MEDIA_TYPE)===-1?ke:pe.PARSER_MEDIA_TYPE,Qe=Ce==="application/xhtml+xml"?LS:b2,Z=Ii(pe,"ALLOWED_TAGS")?Tn({},pe.ALLOWED_TAGS,Qe):F,V=Ii(pe,"ALLOWED_ATTR")?Tn({},pe.ALLOWED_ATTR,Qe):q,zt=Ii(pe,"ALLOWED_NAMESPACES")?Tn({},pe.ALLOWED_NAMESPACES,LS):Mn,sn=Ii(pe,"ADD_URI_SAFE_ATTR")?Tn(Xu(Ht),pe.ADD_URI_SAFE_ATTR,Qe):Ht,Vt=Ii(pe,"ADD_DATA_URI_TAGS")?Tn(Xu(_e),pe.ADD_DATA_URI_TAGS,Qe):_e,At=Ii(pe,"FORBID_CONTENTS")?Tn({},pe.FORBID_CONTENTS,Qe):Qt,Q=Ii(pe,"FORBID_TAGS")?Tn({},pe.FORBID_TAGS,Qe):{},ae=Ii(pe,"FORBID_ATTR")?Tn({},pe.FORBID_ATTR,Qe):{},st=Ii(pe,"USE_PROFILES")?pe.USE_PROFILES:!1,re=pe.ALLOW_ARIA_ATTR!==!1,le=pe.ALLOW_DATA_ATTR!==!1,oe=pe.ALLOW_UNKNOWN_PROTOCOLS||!1,ie=pe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=pe.SAFE_FOR_TEMPLATES||!1,xe=pe.WHOLE_DOCUMENT||!1,Te=pe.RETURN_DOM||!1,Me=pe.RETURN_DOM_FRAGMENT||!1,ze=pe.RETURN_TRUSTED_TYPE||!1,Ee=pe.FORCE_BODY||!1,qe=pe.SANITIZE_DOM!==!1,Ye=pe.SANITIZE_NAMED_PROPS||!1,Lt=pe.KEEP_CONTENT!==!1,$e=pe.IN_PLACE||!1,G=pe.ALLOWED_URI_REGEXP||cz,Jt=pe.NAMESPACE||Zt,ne=pe.CUSTOM_ELEMENT_HANDLING||{},pe.CUSTOM_ELEMENT_HANDLING&&Ie(pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),pe.CUSTOM_ELEMENT_HANDLING&&Ie(pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),pe.CUSTOM_ELEMENT_HANDLING&&typeof pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de&&(le=!1),Me&&(Te=!0),st&&(Z=Tn({},oz),V=[],st.html===!0&&(Tn(Z,sz),Tn(V,iz)),st.svg===!0&&(Tn(Z,DS),Tn(V,RS),Tn(V,k2)),st.svgFilters===!0&&(Tn(Z,OS),Tn(V,RS),Tn(V,k2)),st.mathMl===!0&&(Tn(Z,PS),Tn(V,lz),Tn(V,k2))),pe.ADD_TAGS&&(Z===F&&(Z=Xu(Z)),Tn(Z,pe.ADD_TAGS,Qe)),pe.ADD_ATTR&&(V===q&&(V=Xu(V)),Tn(V,pe.ADD_ATTR,Qe)),pe.ADD_URI_SAFE_ATTR&&Tn(sn,pe.ADD_URI_SAFE_ATTR,Qe),pe.FORBID_CONTENTS&&(At===Qt&&(At=Xu(At)),Tn(At,pe.FORBID_CONTENTS,Qe)),Lt&&(Z["#text"]=!0),xe&&Tn(Z,["html","head","body"]),Z.table&&(Tn(Z,["tbody"]),delete Q.tbody),pe.TRUSTED_TYPES_POLICY){if(typeof pe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof pe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=pe.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=G1e(C,s)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));bs&&bs(pe),ge=pe}},Ze=Tn({},["mi","mo","mn","ms","mtext"]),Je=Tn({},["foreignobject","desc","title","annotation-xml"]),ot=Tn({},["title","style","font","a","script"]),at=Tn({},[...DS,...OS,...z1e]),Ge=Tn({},[...PS,...F1e]),yt=function(pe){let Xe=S(pe);(!Xe||!Xe.tagName)&&(Xe={namespaceURI:Jt,tagName:"template"});const We=b2(pe.tagName),ht=b2(Xe.tagName);return zt[pe.namespaceURI]?pe.namespaceURI===rn?Xe.namespaceURI===Zt?We==="svg":Xe.namespaceURI===kt?We==="svg"&&(ht==="annotation-xml"||Ze[ht]):!!at[We]:pe.namespaceURI===kt?Xe.namespaceURI===Zt?We==="math":Xe.namespaceURI===rn?We==="math"&&Je[ht]:!!Ge[We]:pe.namespaceURI===Zt?Xe.namespaceURI===rn&&!Je[ht]||Xe.namespaceURI===kt&&!Ze[ht]?!1:!Ge[We]&&(ot[We]||!at[We]):!!(Ce==="application/xhtml+xml"&&zt[pe.namespaceURI]):!1},Nt=function(pe){Kg(t.removed,{element:pe});try{pe.parentNode.removeChild(pe)}catch{pe.remove()}},bt=function(pe,Xe){try{Kg(t.removed,{attribute:Xe.getAttributeNode(pe),from:Xe})}catch{Kg(t.removed,{attribute:null,from:Xe})}if(Xe.removeAttribute(pe),pe==="is"&&!V[pe])if(Te||Me)try{Nt(Xe)}catch{}else try{Xe.setAttribute(pe,"")}catch{}},$t=function(pe){let Xe=null,We=null;if(Ee)pe="<remove></remove>"+pe;else{const Bt=az(pe,/^[\r\n\t ]+/);We=Bt&&Bt[0]}Ce==="application/xhtml+xml"&&Jt===Zt&&(pe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+pe+"</body></html>");const ht=E?E.createHTML(pe):pe;if(Jt===Zt)try{Xe=new x().parseFromString(ht,Ce)}catch{}if(!Xe||!Xe.documentElement){Xe=T.createDocument(Jt,"template",null);try{Xe.documentElement.innerHTML=gn?N:ht}catch{}}const on=Xe.body||Xe.documentElement;return pe&&We&&on.insertBefore(n.createTextNode(We),on.childNodes[0]||null),Jt===Zt?D.call(Xe,xe?"html":"body")[0]:xe?Xe.documentElement:on},St=function(pe){return M.call(pe.ownerDocument||pe,pe,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Rt=function(pe){return pe instanceof m&&(typeof pe.nodeName!="string"||typeof pe.textContent!="string"||typeof pe.removeChild!="function"||!(pe.attributes instanceof p)||typeof pe.removeAttribute!="function"||typeof pe.setAttribute!="function"||typeof pe.namespaceURI!="string"||typeof pe.insertBefore!="function"||typeof pe.hasChildNodes!="function")},hn=function(pe){return typeof c=="function"&&pe instanceof c},Xt=function(pe,Xe,We){A[pe]&&x2(A[pe],ht=>{ht.call(t,Xe,We,ge)})},Ln=function(pe){let Xe=null;if(Xt("beforeSanitizeElements",pe,null),Rt(pe))return Nt(pe),!0;const We=Qe(pe.nodeName);if(Xt("uponSanitizeElement",pe,{tagName:We,allowedTags:Z}),pe.hasChildNodes()&&!hn(pe.firstElementChild)&&yo(/<[/\w]/g,pe.innerHTML)&&yo(/<[/\w]/g,pe.textContent)||pe.nodeType===7)return Nt(pe),!0;if(!Z[We]||Q[We]){if(!Q[We]&&Et(We)&&(ne.tagNameCheck instanceof RegExp&&yo(ne.tagNameCheck,We)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(We)))return!1;if(Lt&&!At[We]){const ht=S(pe)||pe.parentNode,on=j(pe)||pe.childNodes;if(on&&ht){const Bt=on.length;for(let In=Bt-1;In>=0;--In)ht.insertBefore(g(on[In],!0),k(pe))}}return Nt(pe),!0}return pe instanceof u&&!yt(pe)||(We==="noscript"||We==="noembed"||We==="noframes")&&yo(/<\/no(script|embed|frames)/i,pe.innerHTML)?(Nt(pe),!0):(de&&pe.nodeType===3&&(Xe=pe.textContent,x2([B,z,R],ht=>{Xe=Gg(Xe,ht," ")}),pe.textContent!==Xe&&(Kg(t.removed,{element:pe.cloneNode()}),pe.textContent=Xe)),Xt("afterSanitizeElements",pe,null),!1)},mt=function(pe,Xe,We){if(qe&&(Xe==="id"||Xe==="name")&&(We in n||We in ve))return!1;if(!(le&&!ae[Xe]&&yo($,Xe))&&!(re&&yo(_,Xe))){if(!V[Xe]||ae[Xe]){if(!(Et(pe)&&(ne.tagNameCheck instanceof RegExp&&yo(ne.tagNameCheck,pe)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(pe))&&(ne.attributeNameCheck instanceof RegExp&&yo(ne.attributeNameCheck,Xe)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(Xe))||Xe==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&yo(ne.tagNameCheck,We)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(We))))return!1}else if(!sn[Xe]&&!yo(G,Gg(We,K,""))&&!((Xe==="src"||Xe==="xlink:href"||Xe==="href")&&pe!=="script"&&O1e(We,"data:")===0&&Vt[pe])&&!(oe&&!yo(U,Gg(We,K,"")))&&We)return!1}return!0},Et=function(pe){return pe!=="annotation-xml"&&az(pe,W)},un=function(pe){Xt("beforeSanitizeAttributes",pe,null);const{attributes:Xe}=pe;if(!Xe)return;const We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};let ht=Xe.length;for(;ht--;){const on=Xe[ht],{name:Bt,namespaceURI:In,value:vr}=on,nr=Qe(Bt);let kr=Bt==="value"?vr:P1e(vr);if(We.attrName=nr,We.attrValue=kr,We.keepAttr=!0,We.forceKeepAttr=void 0,Xt("uponSanitizeAttribute",pe,We),kr=We.attrValue,We.forceKeepAttr||(bt(Bt,pe),!We.keepAttr))continue;if(!ie&&yo(/\/>/i,kr)){bt(Bt,pe);continue}de&&x2([B,z,R],Sn=>{kr=Gg(kr,Sn," ")});const si=Qe(pe.nodeName);if(mt(si,nr,kr)){if(Ye&&(nr==="id"||nr==="name")&&(bt(Bt,pe),kr=Ve+kr),E&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!In)switch(C.getAttributeType(si,nr)){case"TrustedHTML":{kr=E.createHTML(kr);break}case"TrustedScriptURL":{kr=E.createScriptURL(kr);break}}try{In?pe.setAttributeNS(In,Bt,kr):pe.setAttribute(Bt,kr),rz(t.removed)}catch{}}}Xt("afterSanitizeAttributes",pe,null)},en=function pe(Xe){let We=null;const ht=St(Xe);for(Xt("beforeSanitizeShadowDOM",Xe,null);We=ht.nextNode();)Xt("uponSanitizeShadowNode",We,null),!Ln(We)&&(We.content instanceof o&&pe(We.content),un(We));Xt("afterSanitizeShadowDOM",Xe,null)};return t.sanitize=function(pe){let Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=null,ht=null,on=null,Bt=null;if(gn=!pe,gn&&(pe="<!-->"),typeof pe!="string"&&!hn(pe))if(typeof pe.toString=="function"){if(pe=pe.toString(),typeof pe!="string")throw Zg("dirty is not a string, aborting")}else throw Zg("toString is not a function");if(!t.isSupported)return pe;if(je||Ae(Xe),t.removed=[],typeof pe=="string"&&($e=!1),$e){if(pe.nodeName){const nr=Qe(pe.nodeName);if(!Z[nr]||Q[nr])throw Zg("root node is forbidden and cannot be sanitized in-place")}}else if(pe instanceof c)We=$t("<!---->"),ht=We.ownerDocument.importNode(pe,!0),ht.nodeType===1&&ht.nodeName==="BODY"||ht.nodeName==="HTML"?We=ht:We.appendChild(ht);else{if(!Te&&!de&&!xe&&pe.indexOf("<")===-1)return E&&ze?E.createHTML(pe):pe;if(We=$t(pe),!We)return Te?null:ze?N:""}We&&Ee&&Nt(We.firstChild);const In=St($e?pe:We);for(;on=In.nextNode();)Ln(on)||(on.content instanceof o&&en(on.content),un(on));if($e)return pe;if(Te){if(Me)for(Bt=L.call(We.ownerDocument);We.firstChild;)Bt.appendChild(We.firstChild);else Bt=We;return(V.shadowroot||V.shadowrootmode)&&(Bt=P.call(r,Bt,!0)),Bt}let vr=xe?We.outerHTML:We.innerHTML;return xe&&Z["!doctype"]&&We.ownerDocument&&We.ownerDocument.doctype&&We.ownerDocument.doctype.name&&yo(dz,We.ownerDocument.doctype.name)&&(vr="<!DOCTYPE "+We.ownerDocument.doctype.name+">\n"+vr),de&&x2([B,z,R],nr=>{vr=Gg(vr,nr," ")}),E&&ze?E.createHTML(vr):vr},t.setConfig=function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ae(pe),je=!0},t.clearConfig=function(){ge=null,je=!1},t.isValidAttribute=function(pe,Xe,We){ge||Ae({});const ht=Qe(pe),on=Qe(Xe);return mt(ht,on,We)},t.addHook=function(pe,Xe){typeof Xe=="function"&&(A[pe]=A[pe]||[],Kg(A[pe],Xe))},t.removeHook=function(pe){if(A[pe])return rz(A[pe])},t.removeHooks=function(pe){A[pe]&&(A[pe]=[])},t.removeAllHooks=function(){A={}},t}var pz=hz();const Z1e=(e,t=[],n=[],r=[],s,o=!1)=>{const i=/\{\{\s*(.*?)\s*\}\}/g;return e.split(i).map((c,u)=>{const h=r.find(p=>{var m;return((m=p.label)==null?void 0:m.toLocaleLowerCase())===c.toLocaleLowerCase()});if(h){const p={label:c,value:c.toLocaleLowerCase()==="clipboard"?s:h.value,isFound:t.includes(c.toLowerCase()),isMissing:n.includes(c.toLowerCase()),isEnable:h.isEnable},m=o&&p.value;return a.jsx(X,{className:"".concat(p.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-600"," !font-normal inline-flex"),size:"xs",children:m?a.jsx(De,{text:a.jsxs(it,{variant:"outline",className:"".concat(p.isEnable?"!text-green-600 dark:!text-green-400 bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"dark:!text-gray-300 text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-normal pr-2.5"),children:[a.jsx(Dt,{size:12,className:"mr-0.5"}),p.label]}),className:"bg-transparent border-0",side:"top",isCompact:!0,asChild:!0,children:a.jsx(it,{variant:"outline",className:"".concat(p.isEnable?"!text-green-600 dark:!text-green-400 bg-green-100/80 dark:bg-green-900 hover:bg-green-50/80 dark:hover:bg-green-900/70 border-green-100 hover:border-green-200 dark:border-green-800 dark:hover:border-green-700":"dark:!text-gray-600 text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-[14px] !font-normal px-1 rounded-sm"),children:p.value})}):a.jsx(De,{isDisabled:p.isMissing||!p.value,text:p.value,side:"top",isCompact:!0,asChild:!0,children:a.jsxs(it,{variant:"outline",className:"".concat(p.isEnable?"bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-normal pr-2.5"),children:[a.jsx(Dt,{size:12,className:"mr-0.5"}),p.label]})})},u)}return c})};function mz({value:e,clipId:t,formTemplateOptions:n}){var D;const{t:r}=wt(),s=He(Date.now().toString()),o=He(Date.now().toString()),i=He(!1),c=He([]),u=He([]),h=He("text"),p=He("values"),m=He("template"),x=He(""),C=He(null),[,b]=Bu({}),[,,g]=Vu({}),{updateItemById:k}=ji(),j=He(!1),S=He({templateOptions:[],formOptions:{fields:[]}}),E=Gs(o.value,300),N=Gs(o.value,1e3),T=f.useCallback(P=>{const A=/{{[^{}]+}}/g;c.value=[],u.value=[];const B=P.match(A);B&&B.forEach((z,R)=>{B[R]=z.replace(/[\n\r{}]+/g,"").trim(),u.value.push(B[R].toLocaleLowerCase());const $=S.value.templateOptions.find(_=>{var U;return((U=_.label)==null?void 0:U.toLocaleLowerCase())===B[R].toLocaleLowerCase()});$?$.isFound=!0:c.value.push(B[R])})},[S.value.templateOptions]);f.useEffect(()=>{var P;if(n)try{const A=JSON.parse(n);S.value={...S.value,...A},(P=S.value.templateOptions)!=null&&P.every(B=>{var z;return((z=S.value.templateOptions)==null?void 0:z.filter(R=>R.label===B.label).length)===1})||(i.value=!0),T(e)}catch(A){console.log("error",A)}},[n]);const M=f.useCallback(async()=>{x.value=await vn("run_template_fill",{templateValue:e,templateOptions:S.value.templateOptions})},[e,S.value.templateOptions]);f.useEffect(()=>{M()},[S.value.templateOptions,e,E]),f.useEffect(()=>{const P=JSON.stringify(S.value);try{k({updatedItem:{formTemplateOptions:P,itemId:t}}),setTimeout(()=>{j.value=!0},300)}catch(A){console.error(A)}},[e,N]),f.useEffect(()=>{const P=Il("clipboard://clipboard-monitor/update",async A=>{A.payload==="clipboard update"&&(C.value=await NI())});return(async()=>C.value=await NI())(),()=>{P.then(A=>{A()})}},[]),f.useEffect(()=>{j.value&&setTimeout(()=>{j.value=!1},1e3)},[j.value]);const L=f.useMemo(()=>Z1e(e,u.value,c.value,S.value.templateOptions.filter(P=>P.label!==void 0).map(({label:P,isEnable:A,value:B})=>({label:P,value:B,isEnable:A})),C.value,p.value==="values"),[e,E,u.value,c.value,S.value.templateOptions,C.value,p.value]);return a.jsxs(a.Fragment,{children:[a.jsxs(J,{className:"select-none mt-1 pb-1",children:[a.jsx(J,{className:"mt-1.5 mb-1",children:a.jsxs(fe,{className:"w-full justify-start",children:[a.jsx(ye,{variant:"ghost",size:"mini",onClick:()=>{_a.value=t!=null?t:null},className:"cursor-pointer hover:bg-transparent ",children:a.jsx(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:r("Edit Template",{ns:"dashboard"})})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[r("Fields Value",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsxs(Oe,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{S.value.templateOptions=S.value.templateOptions.map(P=>(P.value="",P)),S.value={...S.value,templateOptions:[...S.value.templateOptions]},s.value=Date.now().toString(),o.value=Date.now().toString()},children:[a.jsx(X,{className:"mr-2",children:r("Clear All Fields",{ns:"dashboard"})}),a.jsx(XC,{size:14,className:"ml-auto text-slate-400"})]}),a.jsx(Yt,{}),a.jsxs(Oe,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{S.value.templateOptions=S.value.templateOptions.map(P=>(P.value=P.defaultValue,P)),S.value={...S.value,templateOptions:[...S.value.templateOptions]},s.value=Date.now().toString(),o.value=Date.now().toString()},children:[a.jsx(X,{className:"mr-2",children:r("Reset to Defaults",{ns:"dashboard"})}),a.jsx(Dx,{size:14,className:"ml-auto text-slate-400"})]}),a.jsx(Yt,{}),a.jsxs(Oe,{className:"text-center items-center justify-start py-1 text-xs",onSelect:async()=>{S.value.templateOptions.forEach(A=>{A.defaultValue=A.value});const P=JSON.stringify(S.value);try{await k({updatedItem:{formTemplateOptions:P,itemId:t}}),setTimeout(()=>{j.value=!0},300)}catch(A){console.error(A)}},children:[a.jsx(X,{className:"mr-2",children:r("Save as Defaults",{ns:"dashboard"})}),a.jsx(aL,{size:14,className:"ml-auto text-slate-400"})]})]})]})]})}),(D=S.value.templateOptions)==null?void 0:D.map((P,A)=>{var K,W,G,Z,F,V,q,ne;const B=P.type==="textarea",z=P.isLabelOnTop,R=(K=P.selectOptions)==null?void 0:K.find(Q=>Q===P.value),$=!((W=P.selectOptions)!=null&&W.length),_=!!(P.label&&u.value.includes((G=P.label)==null?void 0:G.toLowerCase())),U=P.isEnable===!1||!_;return a.jsxs(fe,{className:"mb-1 group ".concat(z?"flex-col items-start":"items-center"," ").concat(B?"!mt-2 !mb-1":""),children:[P.label?a.jsx(fe,{className:"".concat(U?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(z?"!justify-start pl-1":"!justify-end"," ").concat(_?"":"!text-amber-800 dark:!text-amber-400 opacity-60"),children:a.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(z?"text-left":"text-right max-w-[160px]"),children:P.label})}):a.jsx("div",{className:"pr-1 min-w-[80px]"}),a.jsxs(fe,{className:"w-full",children:[a.jsx(fe,{className:"gap-0.5 flex-col w-full items-start ".concat(U?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:a.jsx(fe,{className:"w-full gap-1",children:P.type==="password"||P.type==="passwordCode"?a.jsx(Gt,{small:!0,placeholder:P.type==="passwordCode"?r("Enter code",{ns:"dashboard"}):r("Enter secret value",{ns:"dashboard"}),autoFocus:A===S.value.templateOptions.length-1&&S.value.templateOptions[A].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:U,isPassword:!0,numbersOnly:P.type==="passwordCode",showHidePassword:!0,className:"".concat(P.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:Q=>{P.value=Q.target.value.trim(),o.value=Date.now().toString()},defaultValue:P.value},s.value):P.type==="creditcard"?a.jsx(qg,{small:!0,placeholder:r("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:U,autoFocus:A===((Z=S.value.templateOptions)==null?void 0:Z.length)-1&&S.value.templateOptions[A].value==="",className:"".concat(U?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:Q=>{P.value=Q},ccNumber:P.value},s.value):P.type==="textarea"?a.jsx(go,{placeholder:r("Enter field value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:U?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:A===S.value.templateOptions.length-1&&S.value.templateOptions[A].value===""&&!!S.value.templateOptions[A].label,maxRows:2,value:P.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:Q=>{Q.stopPropagation()},onChange:Q=>{P.value=Q.target.value,o.value=Date.now().toString(),S.value={...S.value,templateOptions:[...S.value.templateOptions]}}},s.value):P.type==="select"?a.jsx(fe,{className:"justify-start items-center w-full my-1",children:a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",variant:"ghost",disabled:U,className:"rounded-sm font-semibold hover:bg-transparent px-2 py-1 w-full border border-slate-300 hover:border-blue-500 dark:border-slate-800 dark:hover:border-blue-500 dark:bg-slate-900 dark:hover:bg-slate-900 dark:text-slate-300 dark:hover:text-blue-500",children:a.jsxs(fe,{className:"flex items-center justify-start w-full gap-1",children:[a.jsx(X,{className:"!text-slate-400 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:$?r("Select is empty",{ns:"common"}):R||r("Select option",{ns:"common"})}),a.jsx(fe,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:a.jsx(jn,{size:13})})]})})}),a.jsxs(Cn,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:$?a.jsx(X,{children:r("Select is empty",{ns:"common"})}):a.jsx(X,{children:r("Select option",{ns:"common"})})}),!$&&a.jsxs(a.Fragment,{children:[a.jsx(Yt,{}),(V=(F=S.value.templateOptions[A])==null?void 0:F.selectOptions)==null?void 0:V.map((Q,ae)=>a.jsx(Kt,{checked:P.value===Q,onSelect:()=>{P.value=Q,o.value=Date.now().toString(),S.value={...S.value,templateOptions:[...S.value.templateOptions]}},children:a.jsx(X,{className:"text-xs ".concat(P.value===Q?"font-semibold":""),children:Q})},ae))]})]})]})}):((q=P.label)==null?void 0:q.toLocaleLowerCase())!=="clipboard"?a.jsx(Gt,{small:!0,placeholder:r("Enter field value",{ns:"dashboard"}),autoFocus:!!S.value.templateOptions[A].label,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:U,type:P.type==="number"?"number":"text",className:"".concat(U?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:Q=>{P.value=Q.target.value.trim(),o.value=Date.now().toString()},defaultValue:P.value},s.value):a.jsx(Gt,{small:!0,placeholder:r("This field allows to insert text from clipboard",{ns:"dashboard"}),autoFocus:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(U?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")})})}),a.jsx(fe,{className:"gap-1 ml-0.5",children:_?a.jsx(ye,{size:"mini",title:r("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:async()=>{var ae;S.value={...S.value,templateOptions:[...(ae=S.value.templateOptions)==null?void 0:ae.map((re,le)=>le===A?{...re,isEnable:!re.isEnable}:re)]};const Q=JSON.stringify(S.value);try{await k({updatedItem:{formTemplateOptions:Q,itemId:t}}),setTimeout(()=>{j.value=!0},300)}catch(re){console.error(re)}},children:S.value.templateOptions&&((ne=S.value.templateOptions[A])!=null&&ne.isEnable)?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}):a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",title:r("Not found in the template",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent !text-amber-800 dark:!text-amber-400 opacity-60",children:a.jsx(Ho,{size:14})})}),a.jsx(Cn,{sideOffset:12,align:"center",children:a.jsxs(Oe,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onSelect:()=>{var ae;S.value={...S.value,templateOptions:[...(ae=S.value.templateOptions)==null?void 0:ae.filter((re,le)=>le!==A)]};const Q=JSON.stringify(S.value);try{k({updatedItem:{formTemplateOptions:Q,itemId:t}})}catch(re){console.error(re)}},children:[a.jsx(X,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:r("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(or,{size:13})})]})})]})})]})]},A)}),i.value&&a.jsxs(X,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[r("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),a.jsx(Rn,{className:"absolute top-0 right-0 m-2 bg-yellow-50 dark:bg-yellow-900 z-10 cursor-pointer hover:bg-yellow-100 dark:hover:bg-yellow-800",size:14,onClick:()=>{i.value=!1}})]}),c.value.length>0&&a.jsxs(fe,{className:"rounded-md gap-2 my-3 items-start justify-start flex-wrap !text-amber-800 dark:!text-amber-400 text-[13px] bg-yellow-50 dark:bg-amber-950 p-2",children:[a.jsxs(X,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[a.jsx(Ho,{size:13,className:"mr-1"}),r("Found in template but missing from fields definition",{ns:"common"}),":"]}),c==null?void 0:c.value.map((P,A)=>a.jsx(J,{children:a.jsx(it,{variant:"outline",className:"bg-red-50 !text-red-500 dark:!text-red-400 dark:bg-red-950/80 border-red-100 dark:border-red-900 text-normal px-2",children:P})},A))]}),a.jsxs(a.Fragment,{children:[a.jsxs(fe,{className:"gap-1 mt-2",children:[a.jsx(ye,{size:"mini",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(m.value==="template"?"border-blue-500 dark:border-blue-400 text-blue-500 dark:text-blue-400":"border-transparent text-slate-500 dark:text-slate-400 "," rounded-none px-2 py-0.5"),variant:"ghost",onClick:()=>{m.value="template"},children:r("Template",{ns:"dashboard"})}),a.jsx(ye,{size:"mini",variant:"ghost",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(m.value==="result"?"border-blue-500 dark:border-blue-400 text-blue-500 dark:text-blue-400":"border-transparent text-slate-400 dark:text-slate-400"," rounded-none px-2 py-0.5"),onClick:()=>{m.value="result",M()},children:r("Result",{ns:"dashboard"})})]}),m.value==="template"?a.jsxs(J,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative rounded-md text-sm",children:[t&&a.jsx(Yn,{className:"hover:bg-transparent rounded-md dark:text-slate-400 hover:text-green-600 hover:dark:text-green-600 top-3 right-3 absolute z-10",onClick:()=>{nn.value?g(t):b(t)},children:a.jsx(De,{text:nn.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:15}):a.jsx(qa,{size:15})})}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:a.jsx(J,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:L})}),a.jsx(Xi,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:p.value,onValueChange:P=>{p.value=P==="labels"?"labels":"values"},children:a.jsxs(Vo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[a.jsx(br,{value:"values",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:r("Values",{ns:"dashboard"})}),a.jsx(br,{value:"labels",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:r("Labels",{ns:"dashboard"})})]})})]}):m.value==="result"&&x.value&&a.jsxs(J,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-0 rounded-md text-sm",children:[t&&a.jsx(Yn,{className:"hover:bg-transparent rounded-md dark:text-slate-400 hover:text-green-600 hover:dark:text-green-600 top-3 right-3 absolute z-10",onClick:()=>{nn.value?g(t):b(t)},children:a.jsx(De,{text:nn.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:15}):a.jsx(qa,{size:15})})}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:a.jsxs(J,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:[a.jsx("div",{...h.value==="html"&&{dangerouslySetInnerHTML:{__html:pz.sanitize(x.value)}},className:"font-normal"}),h.value==="text"&&x.value]})}),a.jsx(Xi,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:h.value,onValueChange:P=>{h.value=P==="html"?"html":"text"},children:a.jsxs(Vo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[a.jsx(br,{value:"text",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:r("Text",{ns:"dashboard"})}),a.jsx(br,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:r("HTML",{ns:"dashboard"})})]})})]})]})]}),j.value&&a.jsx(J,{className:"bg-blue-200 dark:bg-blue-800 text-xs rounded-sm px-1.5 absolute left-1 bottom-1",children:r("Updated",{ns:"common"})})]})}const Q1e=[En.Down,En.Right,En.Up,En.Left];function j2(e){if(!e)return!1;const t=e.data.current;return(t==null?void 0:t.type)===ns||(t==null?void 0:t.type)===il||(t==null?void 0:t.type)===wo}const AS=e=>e.toString().split("::pinned")[0];function zS(e){let t=[];return e.children&&e.children.length>0&&e.children.forEach(n=>{t.push(n.id),t=t.concat(zS(n))}),t}const FS=(e,{context:{active:t,droppableRects:n,droppableContainers:r,collisionRect:s}})=>{if(Q1e.includes(e.code)){if(e.preventDefault(),!t||!s)return;const o=[];r.getEnabled().forEach(u=>{var m,x,C;if(!u||u!=null&&u.disabled)return;const h=n.get(u.id);if(!h)return;const p=u.data.current;if(p){const{type:b,children:g}=p;if(b==="Column"&&(g==null?void 0:g.length)>0&&((m=t.data.current)==null?void 0:m.type)!=="Column")return}switch(e.code){case En.Down:if(((x=t.data.current)==null?void 0:x.type)==="Column")return;s.top<h.top&&o.push(u);break;case En.Up:if(((C=t.data.current)==null?void 0:C.type)==="Column")return;s.top>h.top&&o.push(u);break;case En.Left:s.left>=h.left+h.width&&o.push(u);break;case En.Right:s.left+s.width<=h.left&&o.push(u);break}});const i=AK({active:t,collisionRect:s,droppableRects:n,droppableContainers:o,pointerCoordinates:null}),c=Bj(i,"id");if(c!=null){const u=r.get(c),h=u==null?void 0:u.node.current,p=u==null?void 0:u.rect.current;if(h&&p)return{x:p.left,y:p.top}}}};function HS(e,t=!1,n=!1){if(!e||n)return{valuePreview:t&&e?e.substring(0,200).trim()+"...":(e==null?void 0:e.trim())||"No content",morePreviewLines:null,morePreviewChars:null};const r=e.replace(/\r\n/g,"\n");if(r.split("\n").length>=5&&!t){const s=r.split("\n").slice(0,5).join("\n"),o=r.split("\n").length-5;return{valuePreview:Xl.closeTags(s.trim()),morePreviewLines:o>0?o:null,morePreviewChars:o?null:r.length-160}}if(r.length>60&&!t){const s=r.length-60;return{valuePreview:Xl.closeTags(r.substring(0,60).trim())+"...",morePreviewLines:null,morePreviewChars:s>0?s:null}}else{const s=r.trim(),o=s.split("\n"),i=r.split("\n").length-o.length;return t?{valuePreview:s.substring(0,60)+"...",morePreviewLines:null,morePreviewChars:null}:{valuePreview:s,morePreviewLines:i>0?i:null,morePreviewChars:null}}}function fz({arrLinks:e=[],clipId:t,isShowLinkedClip:n,detectedLanguage:r,hasEmoji:s,hasMaskedWords:o,imageDataUrl:i,imageHash:c,imagePathFullRes:u,imageScale:h,imageType:p,imageWidthHeight:m,isCode:x,isCommand:C,isWebRequest:b,isWebScraping:g,isExpanded:k,isImage:j,isImageData:S,isLargeView:E,isLink:N,isForm:T,isTemplate:M,isMasked:L,isPath:D,isVideo:P,isMenu:A,isCopyOrPaste:B,isDark:z,clipName:R,formTemplateOptions:$,commandRequestOutput:_,isCommandRequestRunError:U,commandRequestOutputLastRunAt:K,requestOptions:W,pathType:G,searchTerm:Z,value:F=""}){var Me,ze,qe;const{t:V}=wt(),q=ea(!1),ne=ea(!1),Q=ea(""),ae=f.useRef(null),{metadataLinkByItemId:re}=Sg(N,t),le=N&&!!(re!=null&&re.linkTitle&&(re!=null&&re.linkDomain)),oe=ea({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:ie,morePreviewLines:de,morePreviewChars:xe}=HS(F,j||S,E||N||D||C||b||g||T||M);f.useEffect(()=>{if(W)try{const Ye=JSON.parse(W);oe.value={...oe.value,...Ye}}catch{}},[W]);const je=F==null?void 0:F.trim();f.useEffect(()=>{k.value&&(ne.value=!1)},[k.value]),f.useEffect(()=>{D&&Sa("check_path",{path:je}).then(()=>{Q.value=G}).catch(()=>{Q.value="Error"})},[D]),f.useEffect(()=>{Z&&(k.value=!0)},[Z]);const Ee=E?"max-h-[600px]":"max-h-[300px]",Te=je.length===0;return f.useEffect(()=>{var Ye;n&&((Ye=ae==null?void 0:ae.current)==null||Ye.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[n,ae==null?void 0:ae.current]),a.jsxs(Ku,{className:dn(B?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900","px-2 pr-1.5 py-1 mb-0.5 mx-1 text-left flex flex-col rounded-md select-auto relative"),children:[a.jsx(J,{className:"mb-0.5",ref:ae,children:D?a.jsx(Vg,{theme:z?Ni.vsDark:Ni.github,code:je,language:"path",children:({className:Ye,style:Ve,tokens:Lt,getLineProps:$e,getTokenProps:st})=>a.jsx("code",{className:"".concat(Ye," ").concat(Q.value==="Error"?" line-through decoration-gray-300":""),style:Ve,children:Lt.map((At,Qt)=>a.jsx("div",{...$e({line:At}),className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:At.map((Vt,_e)=>a.jsx("span",{...st({token:Vt}),className:"".concat(Q.value==="Error"?"opacity-60":""," select-text"),children:Z?rl(Vt.content,Z):Vt.content},_e))},Qt))})}):S?a.jsxs(J,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[a.jsx(J,{className:"flex px-0 py-1 items-center justify-center",children:a.jsx(_i,{src:je,hasError:q.value,onErrorCallback:()=>{q.value=!0},draggable:!1,decoding:"async",className:"".concat(Ee," min-h-10")})}),a.jsx("code",{className:"pb-0.5",children:ie})]}):N&&j?a.jsxs(J,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[a.jsx(J,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:a.jsx(_i,{src:mr(je),hasError:q.value,onErrorCallback:()=>{q.value=!0},draggable:!1,decoding:"async",className:"".concat(Ee," min-h-10")})}),a.jsx("code",{className:"pb-0.5",children:Yu(je,e)})]}):j?a.jsxs(J,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards select-none",children:[E?a.jsx("img",{decoding:"async",srcSet:u&&i?"".concat(iu(u),"?").concat(c," ").concat(h,"x"):!i&&!u?Gu:$g,src:u&&i?"".concat(iu(u),"?").concat(c):!i&&!u?Gu:$g,className:"rounded-md shadow-sm border border-slate-100 dark:border-slate-600 object-scale-down"},t):a.jsx("img",{src:u&&(p==="webp"||p==="gif")?"".concat(iu(u),"?").concat(c):i&&u?i:!i&&!u?Gu:$g,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),a.jsx(J,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:a.jsxs(J,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:V("Image size in pixels",{ns:"common"}),children:[m," ",p]})})]}):r&&x&&ie?a.jsx(J,{className:"text-ellipsis self-start text-sm w-full select-text",children:a.jsx(es,{isDark:z,searchTerm:Z,isLargeView:E,isShowMore:k.value||de==null,isWrapped:ne.value,value:k.value?je:ie,language:r})}):C&&ie?a.jsxs(J,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[a.jsx(es,{isDark:z,searchTerm:Z,isLargeView:E,isCommand:!0,isShowMore:!0,isWrapped:ne.value,autoHideScrollbar:!0,value:je,language:"shell"}),_&&a.jsxs(J,{className:"".concat(U?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-1 rounded-md px-3 mb-1 relative border-0"),children:[a.jsx(es,{isDark:z,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:ne.value,value:_,language:"shell"}),K&&a.jsx(J,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:a.jsx(De,{text:"".concat(V("Last run",{ns:"dashboard"}),": ").concat(Ju(K,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Hc().format(K,"mini-minute-now",{round:"floor"})})})]})]}):(b||g)&&ie?a.jsxs(J,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[a.jsx(es,{isDark:z,searchTerm:Z,isLargeView:E,isShowMore:!0,isWrapped:ne.value,value:je,autoHideScrollbar:!0,webRequestMethod:b?oe.value.method:"URL",language:"shell"}),_&&a.jsxs(J,{className:"".concat(U?"bg-red-50 border-red-100":"bg-green-50 border-green-100"," ").concat(E?"py-1":"py-0"," rounded-md px-3 relative mb-1 border"),children:[a.jsx(es,{isDark:z,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:ne.value,value:_,language:U?"text":"json"}),K&&a.jsx(J,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:a.jsx(De,{text:"".concat(V("Last run",{ns:"dashboard"}),": ").concat(Ju(K,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Hc().format(K,"mini-minute-now",{round:"floor"})})})]})]}):T?a.jsx(J,{className:"self-start text-sm w-full select-text",children:a.jsx(XA,{formTemplateOptions:$,clipId:t})}):M?a.jsx(J,{className:"self-start text-sm w-full select-text",children:a.jsx(mz,{formTemplateOptions:$,clipId:t,value:F})}):Te?a.jsx("code",{className:"text-gray-300",children:R}):a.jsx(v2,{isExpanded:k.value,isWrapped:ne.value,isImageData:S,isMasked:L,isLargeView:E,isCode:x,hasLinkCard:le,metadataLinkByItemId:re,isImage:j,trimmedValue:je,valuePreview:ie,morePreviewLines:de,isDark:z,searchTerm:Z})}),a.jsxs(fe,{className:"justify-between select-none",children:[(b||C||g)&&_?a.jsx(J,{className:"flex flex-row items-center rounded",children:a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{ne.value=!ne.value},children:a.jsx(De,{text:ne.value?V("No Wrap",{ns:"common"}):V("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:ne.value?a.jsx(km,{width:20,height:20}):a.jsx(jm,{width:20,height:20})})})}):de||xe?a.jsxs(J,{className:"flex flex-row items-center rounded",children:[a.jsx(J,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{k.value=!k.value},children:a.jsx(De,{text:k.value?"":V("Show all",{ns:"common"}),isCompact:!0,isDisabled:k.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:k.value?a.jsxs(a.Fragment,{children:["- ",V("show less",{ns:"common"})]}):xe?a.jsxs(a.Fragment,{children:["+",xe," ",V("chars",{ns:"common"})]}):de&&a.jsxs(a.Fragment,{children:["+",de," ",V("lines",{ns:"common"})]})})}),a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{ne.value=!ne.value},children:a.jsx(De,{text:ne.value?V("No Wrap",{ns:"common"}):V("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:ne.value?a.jsx(km,{width:20,height:20}):a.jsx(jm,{width:20,height:20})})})]}):a.jsx(J,{}),a.jsxs(J,{className:"flex flex-row gap-1 items-center justify-end ",children:[C&&a.jsx(J,{className:"".concat(U?"bg-red-300 dark:bg-red-800 dark:text-slate-300 text-red-800":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:U?V("Command error",{ns:"dashboard"}):V("Type:::Command",{ns:"dashboard"})}),(b||g)&&a.jsxs(fe,{className:"gap-1",children:[a.jsxs(J,{className:"".concat(U?"bg-red-300 dark:bg-red-600 dark:text-red-300":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:[b&&a.jsx("span",{children:U?V("Request error",{ns:"dashboard"}):V("Type:::Request",{ns:"dashboard"})}),g&&a.jsx("span",{children:U?V("Error",{ns:"dashboard"}):V("Type:::Scraper",{ns:"dashboard"})})]}),g&&oe.value.scrapingRules&&((Me=oe.value.scrapingRules)==null?void 0:Me.filter(Ye=>Ye.isEnable).length)>0&&a.jsxs(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[V("Headers",{ns:"dashboard"}),a.jsx("span",{className:"ml-1 font-mono",children:oe.value.headers.filter(Ye=>Ye.isEnable).length})]}),b&&oe.value.headers.filter(Ye=>Ye.isEnable).length>0&&a.jsxs(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[V("Headers",{ns:"dashboard"}),a.jsx("span",{className:"ml-1 font-mono",children:oe.value.headers.filter(Ye=>Ye.isEnable).length})]}),b&&((ze=oe.value.auth)==null?void 0:ze.isEnable)&&a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(qe=oe.value.auth)==null?void 0:qe.type}),b&&oe.value.filters.filter(Ye=>Ye.isEnable).length>0&&a.jsxs(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[V("Filters",{ns:"dashboard"}),a.jsx("span",{className:"ml-1 font-mono",children:oe.value.filters.filter(Ye=>Ye.isEnable).length})]})]}),(L||o)&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(o?"px-0.5":"px-1.5"),children:L?V("Type:::Secret",{ns:"common"}):a.jsx(Al,{size:16})}),r&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:r}),N&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:P?V("Type:::Video",{ns:"common"}):Jl(je)?V("Type:::Email",{ns:"common"}):V("Type:::Link",{ns:"common"})}),D&&Q.value&&a.jsx(J,{className:"".concat(Q.value==="Error"?"bg-red-300":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:Q.value==="Error"?a.jsx(De,{text:V("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-red-500 bg-red-50 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Q.value}):Q.value}),s&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:V("Type:::Emoji",{ns:"common"})}),Te&&!T&&!j&&a.jsx(J,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:V("Type:::Empty",{ns:"common"})}),S&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:V("Type:::Image Base64",{ns:"common"})}),T&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:V("Type:::Auto Fill",{ns:"common"})}),A&&a.jsxs(fe,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[V("Type:::Menu",{ns:"common"}),a.jsx(tg,{size:11,className:"ml-1"})]})]})]})]})}f.memo(fz);function J1e({clipId:e,color:t,description:n,borderWidth:r,name:s}){const{t:o}=wt(),i=He(!1),c=He(""),u=He(""),{updateItemById:h}=ji(),p=He(Ip.value),m=He(!1);return f.useEffect(()=>{i.value=!1,c.value=s!=null?s:"",Ip.value=p.value},[p.value]),f.useEffect(()=>{u.value=n!=null?n:"",Ip.value=m.value},[m.value]),a.jsx(fe,{className:"justify-start w-full",children:p.value?a.jsxs(a.Fragment,{children:[a.jsx(De,{open:i.value||co.value,asChild:!0,text:co.value?o("Unsaved name",{ns:"dashboard"}):c.value.length<=AC?o("Too short",{ns:"dashboard"}):o("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:a.jsx(Gt,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold w-full min-w-[120px]",placeholder:o("Enter clip name",{ns:"dashboard"}),onKeyDown:async x=>{x.stopPropagation(),x.key==="Escape"?p.value=!1:x.key==="Enter"&&(!c.value.length||c.value.length>Mp)?i.value=!0:x.key==="Enter"&&(await h({updatedItem:{name:c.value,itemId:e}}),setTimeout(()=>{p.value=!1},200))},defaultValue:s,onFocus:x=>{s===o("New Clip",{ns:"dashboard"})&&x.target.select()},onChange:x=>{i.value&&x.target.value.length<=Mp&&i.value&&x.target.value.length>0&&(i.value=!1),c.value=x.target.value}})}),a.jsxs(fe,{className:"ml-1",children:[a.jsx(De,{text:o("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:co.value,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:async()=>{if(co.value&&(co.value=!1),!c.value.length||c.value.length>Mp){i.value=!0;return}i.value||(await h({updatedItem:{name:c.value,itemId:e}}),setTimeout(()=>{p.value=!1},200))},children:a.jsx(Dt,{size:18})})})}),a.jsx(De,{text:o("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{p.value=!1},children:a.jsx(Rn,{size:18})})})})]})]}):a.jsxs(fe,{className:"justify-start w-full mr-2",children:[!m.value&&a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"min-w-[24px]",children:a.jsx(i2,{color:t!=null?t:null,borderWidth:r,type:wo,itemId:e,updateById:h})}),a.jsx(X,{className:"text-sm text-ellipsis !block overflow-hidden whitespace-nowrap border-dashed border-b max-w-[120px] min-w-[40px] border-".concat(t||"slate","-400 hover:border-gray-400"),onClick:()=>{p.value=!0},color:"black",children:s}),a.jsx(J,{onClick:()=>{p.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:a.jsx(De,{text:o("Edit name",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(Pp,{size:14})})})]}),a.jsx(J,{onClick:()=>{m.value=!0},title:n&&!m.value?o("Edit Note",{ns:"dashboard"}):void 0,className:"".concat(m.value?"":"ml-1"," pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100"),children:n?a.jsx(De,{text:n,isCompact:!0,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:a.jsx(sL,{size:16})}):a.jsx(De,{text:o("Add note",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:m.value,children:a.jsx(Jre,{size:16})})}),m.value&&a.jsxs(a.Fragment,{children:[a.jsx(De,{open:co.value,asChild:!0,text:co.value?o("Unsaved note",{ns:"dashboard"}):void 0,side:"bottom",className:"bg-rose-50 text-red-500 text-base font-semibold border border-rose-100",children:a.jsx(Gt,{small:!0,autoFocus:!0,className:"bg-white ml-2 rounded-md text-sm font-semibold min-w-[120px]",placeholder:o("Enter clip note",{ns:"dashboard"}),onKeyDown:async x=>{x.stopPropagation(),x.key==="Escape"?m.value=!1:x.key==="Enter"&&(await h({updatedItem:{description:u.value,itemId:e}}),setTimeout(()=>{m.value=!1},200))},defaultValue:n!=null?n:"",onChange:x=>{u.value=x.target.value}})}),a.jsxs(fe,{className:"ml-2",children:[a.jsx(De,{text:o("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:co.value,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:async()=>{co.value&&(co.value=!1),await h({updatedItem:{description:u.value,itemId:e}}),setTimeout(()=>{m.value=!1},200)},children:a.jsx(Dt,{size:18})})})}),a.jsx(De,{text:o("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{m.value=!1},children:a.jsx(Rn,{size:18})})})})]})]})]})})}function gz(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a.jsx("rect",{x:"6.881",y:"6.83",width:"10.2",height:"10.2",className:"opacity-50",stroke:"none",fill:"currentColor"})]})}function vz(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,viewBox:"0 0 24 24",onClick:e.onClick,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a.jsx("path",{fill:"currentColor",stroke:"none",d:"m18.4044 17.0597-1.3474 1.3474H8.2988l1.3474-1.3474h8.7582ZM14.52 5.0053l3.811 3.811-.5695.7343-1.0281 1.3106-.6031.7568-.5374.6632-.3597.436-.4222.4997-.2734.3133-.2364.2606-.1994.2081-.4734.4683-.9742.9883-.514.5288-.1854-.0092-.1944-.003c-.3311 0-.699.0257-1.1035.077l-.2536.0356-.2478.0408-.237.0439-.3247.067-.6212.1496-2.021 1.0105-1.3475.3369.3369-1.3474 1.0105-2.0211.032-.076.0564-.1558.0474-.1502.0516-.187a6.8003 6.8003 0 0 0 .1495-.7784 10.6177 10.6177 0 0 0 .088-1.797l.1045-.1176.1065-.1134.497-.5086 1.1954-1.1882.3684-.3535.4097-.3752.3575-.3158.3839-.3296.4103-.3434.4366-.3573.4631-.3711.7442-.5827.529-.4057.5556-.4196.5819-.4335ZM8.7067 12.357a11.8664 11.8664 0 0 1-.036.4396l-.0472.4013a8.6212 8.6212 0 0 1-.112.649l-.1351.572.5888.5408.5814-.0902c.3209-.0649.6365-.1185.9407-.157.1784-.0227.3517-.041.52-.055L8.7067 12.357Zm5.6858-5.5734-.19.144-.7708.5933-.4798.3773-.4525.3626-.425.3476-.3975.3325-.3696.3172-.3416.3015-.4179.383-.3182.3058-.8657.8602 2.861 2.861.1762-.1794.5993-.5981.1285-.1254.174-.181.2194-.2415.2594-.297.412-.4874.3522-.4267.5305-.655.5967-.7486.8638-1.1014-2.1444-2.1445Z"})]})}function yz(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",onClick:e.onClick,className:e.className,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a.jsx("rect",{x:"7.3",y:"7.3",rx:"5",ry:"5",width:"9.3",height:"9.3",className:"opacity-90",stroke:"none",fill:"currentColor"})]})}(function(e,t){(function(n){n(Ai)})(function(n){function r(i,c,u){this.orientation=c,this.scroll=u,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=i+"-"+c,this.inner=this.node.appendChild(document.createElement("div"));var h=this;n.on(this.inner,"mousedown",function(m){if(m.which!=1)return;n.e_preventDefault(m);var x=h.orientation=="horizontal"?"pageX":"pageY",C=m[x],b=h.pos;function g(){n.off(document,"mousemove",k),n.off(document,"mouseup",g)}function k(j){if(j.which!=1)return g();h.moveTo(b+(j[x]-C)*(h.total/h.size))}n.on(document,"mousemove",k),n.on(document,"mouseup",g)}),n.on(this.node,"click",function(m){n.e_preventDefault(m);var x=h.inner.getBoundingClientRect(),C;h.orientation=="horizontal"?C=m.clientX<x.left?-1:m.clientX>x.right?1:0:C=m.clientY<x.top?-1:m.clientY>x.bottom?1:0,h.moveTo(h.pos+C*h.screen)});function p(m){var x=n.wheelEventPixels(m)[h.orientation=="horizontal"?"x":"y"],C=h.pos;h.moveTo(h.pos+x),h.pos!=C&&n.e_preventDefault(m)}n.on(this.node,"mousewheel",p),n.on(this.node,"DOMMouseScroll",p)}r.prototype.setPos=function(i,c){return i<0&&(i=0),i>this.total-this.screen&&(i=this.total-this.screen),!c&&i==this.pos?!1:(this.pos=i,this.inner.style[this.orientation=="horizontal"?"left":"top"]=i*(this.size/this.total)+"px",!0)},r.prototype.moveTo=function(i){this.setPos(i)&&this.scroll(i,this.orientation)};var s=10;r.prototype.update=function(i,c,u){var h=this.screen!=c||this.total!=i||this.size!=u;h&&(this.screen=c,this.total=i,this.size=u);var p=this.screen*(this.size/this.total);p<s&&(this.size-=s-p,p=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=p+"px",this.setPos(this.pos,h)};function o(i,c,u){this.addClass=i,this.horiz=new r(i,"horizontal",u),c(this.horiz.node),this.vert=new r(i,"vertical",u),c(this.vert.node),this.width=null}o.prototype.update=function(i){if(this.width==null){var c=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;c&&(this.width=parseInt(c.height))}var u=this.width||0,h=i.scrollWidth>i.clientWidth+1,p=i.scrollHeight>i.clientHeight+1;return this.vert.node.style.display=p?"block":"none",this.horiz.node.style.display=h?"block":"none",p&&(this.vert.update(i.scrollHeight,i.clientHeight,i.viewHeight-(h?u:0)),this.vert.node.style.bottom=h?u+"px":"0"),h&&(this.horiz.update(i.scrollWidth,i.clientWidth,i.viewWidth-(p?u:0)-i.barLeft),this.horiz.node.style.right=p?u+"px":"0",this.horiz.node.style.left=i.barLeft+"px"),{right:p?u:0,bottom:h?u:0}},o.prototype.setScrollTop=function(i){this.vert.setPos(i)},o.prototype.setScrollLeft=function(i){this.horiz.setPos(i)},o.prototype.clear=function(){var i=this.horiz.node.parentNode;i.removeChild(this.horiz.node),i.removeChild(this.vert.node)},n.scrollbarModel.simple=function(i,c){return new o("CodeMirror-simplescroll",i,c)},n.scrollbarModel.overlay=function(i,c){return new o("CodeMirror-overlayscroll",i,c)}})})();var X1e={exports:{}},xz;S6=function(){return xz||(xz=1,function(e,t){(function(n){n(Ai)})(function(n){n.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var r=0;r<n.modeInfo.length;r++){var s=n.modeInfo[r];s.mimes&&(s.mime=s.mimes[0])}n.findModeByMIME=function(o){o=o.toLowerCase();for(var i=0;i<n.modeInfo.length;i++){var c=n.modeInfo[i];if(c.mime==o)return c;if(c.mimes){for(var u=0;u<c.mimes.length;u++)if(c.mimes[u]==o)return c}}if(/\+xml$/.test(o))return n.findModeByMIME("application/xml");if(/\+json$/.test(o))return n.findModeByMIME("application/json")},n.findModeByExtension=function(o){o=o.toLowerCase();for(var i=0;i<n.modeInfo.length;i++){var c=n.modeInfo[i];if(c.ext){for(var u=0;u<c.ext.length;u++)if(c.ext[u]==o)return c}}},n.findModeByFileName=function(o){for(var i=0;i<n.modeInfo.length;i++){var c=n.modeInfo[i];if(c.file&&c.file.test(o))return c}var u=o.lastIndexOf("."),h=u>-1&&o.substring(u+1,o.length);if(h)return n.findModeByExtension(h)},n.findModeByName=function(o){o=o.toLowerCase();for(var i=0;i<n.modeInfo.length;i++){var c=n.modeInfo[i];if(c.name.toLowerCase()==o)return c;if(c.alias){for(var u=0;u<c.alias.length;u++)if(c.alias[u].toLowerCase()==o)return c}}}})}()),X1e.exports},S6();var eve={exports:{}},bz;j6=function(){return bz||(bz=1,function(e,t){(function(n){n(Ai)})(function(n){n.defineMode("javascript",function(r,s){var o=r.indentUnit,i=s.statementIndent,c=s.jsonld,u=s.json||c,h=s.trackScope!==!1,p=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function te(Vr){return{type:Vr,style:"keyword"}}var ue=te("keyword a"),Pe=te("keyword b"),et=te("keyword c"),Le=te("keyword d"),pt=te("operator"),ln={type:"atom",style:"atom"};return{if:te("if"),while:ue,with:ue,else:Pe,do:Pe,try:Pe,finally:Pe,return:Le,break:Le,continue:Le,new:te("new"),delete:et,void:et,throw:et,debugger:te("debugger"),var:te("var"),const:te("var"),let:te("var"),function:te("function"),catch:te("catch"),for:te("for"),switch:te("switch"),case:te("case"),default:te("default"),in:pt,typeof:pt,instanceof:pt,true:ln,false:ln,null:ln,undefined:ln,NaN:ln,Infinity:ln,this:te("this"),class:te("class"),super:te("atom"),yield:et,export:te("export"),import:te("import"),extends:et,await:et}}(),C=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(te){for(var ue=!1,Pe,et=!1;(Pe=te.next())!=null;){if(!ue){if(Pe=="/"&&!et)return;Pe=="["?et=!0:et&&Pe=="]"&&(et=!1)}ue=!ue&&Pe=="\\"}}var k,j;function S(te,ue,Pe){return k=te,j=Pe,ue}function E(te,ue){var Pe=te.next();if(Pe=='"'||Pe=="'")return ue.tokenize=N(Pe),ue.tokenize(te,ue);if(Pe=="."&&te.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(Pe=="."&&te.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Pe))return S(Pe);if(Pe=="="&&te.eat(">"))return S("=>","operator");if(Pe=="0"&&te.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(Pe))return te.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(Pe=="/")return te.eat("*")?(ue.tokenize=T,T(te,ue)):te.eat("/")?(te.skipToEnd(),S("comment","comment")):jt(te,ue,1)?(g(te),te.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(te.eat("="),S("operator","operator",te.current()));if(Pe=="`")return ue.tokenize=M,M(te,ue);if(Pe=="#"&&te.peek()=="!")return te.skipToEnd(),S("meta","meta");if(Pe=="#"&&te.eatWhile(m))return S("variable","property");if(Pe=="<"&&te.match("!--")||Pe=="-"&&te.match("->")&&!/\S/.test(te.string.slice(0,te.start)))return te.skipToEnd(),S("comment","comment");if(C.test(Pe))return(Pe!=">"||!ue.lexical||ue.lexical.type!=">")&&(te.eat("=")?(Pe=="!"||Pe=="=")&&te.eat("="):/[<>*+\-|&?]/.test(Pe)&&(te.eat(Pe),Pe==">"&&te.eat(Pe))),Pe=="?"&&te.eat(".")?S("."):S("operator","operator",te.current());if(m.test(Pe)){te.eatWhile(m);var et=te.current();if(ue.lastType!="."){if(x.propertyIsEnumerable(et)){var Le=x[et];return S(Le.type,Le.style,et)}if(et=="async"&&te.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",et)}return S("variable","variable",et)}}function N(te){return function(ue,Pe){var et=!1,Le;if(c&&ue.peek()=="@"&&ue.match(b))return Pe.tokenize=E,S("jsonld-keyword","meta");for(;(Le=ue.next())!=null&&!(Le==te&&!et);)et=!et&&Le=="\\";return et||(Pe.tokenize=E),S("string","string")}}function T(te,ue){for(var Pe=!1,et;et=te.next();){if(et=="/"&&Pe){ue.tokenize=E;break}Pe=et=="*"}return S("comment","comment")}function M(te,ue){for(var Pe=!1,et;(et=te.next())!=null;){if(!Pe&&(et=="`"||et=="$"&&te.eat("{"))){ue.tokenize=E;break}Pe=!Pe&&et=="\\"}return S("quasi","string-2",te.current())}var L="([{}])";function D(te,ue){ue.fatArrowAt&&(ue.fatArrowAt=null);var Pe=te.string.indexOf("=>",te.start);if(!(Pe<0)){if(p){var et=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(te.string.slice(te.start,Pe));et&&(Pe=et.index)}for(var Le=0,pt=!1,ln=Pe-1;ln>=0;--ln){var Vr=te.string.charAt(ln),Ra=L.indexOf(Vr);if(Ra>=0&&Ra<3){if(!Le){++ln;break}if(--Le==0){Vr=="("&&(pt=!0);break}}else if(Ra>=3&&Ra<6)++Le;else if(m.test(Vr))pt=!0;else if(/["'\/`]/.test(Vr))for(;;--ln){if(ln==0)return;var Od=te.string.charAt(ln-1);if(Od==Vr&&te.string.charAt(ln-2)!="\\"){ln--;break}}else if(pt&&!Le){++ln;break}}pt&&!Le&&(ue.fatArrowAt=ln)}}var P={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(te,ue,Pe,et,Le,pt){this.indented=te,this.column=ue,this.type=Pe,this.prev=Le,this.info=pt,et!=null&&(this.align=et)}function B(te,ue){if(!h)return!1;for(var Pe=te.localVars;Pe;Pe=Pe.next)if(Pe.name==ue)return!0;for(var et=te.context;et;et=et.prev)for(var Pe=et.vars;Pe;Pe=Pe.next)if(Pe.name==ue)return!0}function z(te,ue,Pe,et,Le){var pt=te.cc;for(R.state=te,R.stream=Le,R.marked=null,R.cc=pt,R.style=ue,te.lexical.hasOwnProperty("align")||(te.lexical.align=!0);;){var ln=pt.length?pt.pop():u?de:oe;if(ln(Pe,et)){for(;pt.length&&pt[pt.length-1].lex;)pt.pop()();return R.marked?R.marked:Pe=="variable"&&B(te,et)?"variable-2":ue}}}var R={state:null,column:null,marked:null,cc:null};function $(){for(var te=arguments.length-1;te>=0;te--)R.cc.push(arguments[te])}function _(){return $.apply(null,arguments),!0}function U(te,ue){for(var Pe=ue;Pe;Pe=Pe.next)if(Pe.name==te)return!0;return!1}function K(te){var ue=R.state;if(R.marked="def",!!h){if(ue.context){if(ue.lexical.info=="var"&&ue.context&&ue.context.block){var Pe=W(te,ue.context);if(Pe!=null){ue.context=Pe;return}}else if(!U(te,ue.localVars)){ue.localVars=new F(te,ue.localVars);return}}s.globalVars&&!U(te,ue.globalVars)&&(ue.globalVars=new F(te,ue.globalVars))}}function W(te,ue){if(ue)if(ue.block){var Pe=W(te,ue.prev);return Pe?Pe==ue.prev?ue:new Z(Pe,ue.vars,!0):null}else return U(te,ue.vars)?ue:new Z(ue.prev,new F(te,ue.vars),!1);else return null}function G(te){return te=="public"||te=="private"||te=="protected"||te=="abstract"||te=="readonly"}function Z(te,ue,Pe){this.prev=te,this.vars=ue,this.block=Pe}function F(te,ue){this.name=te,this.next=ue}var V=new F("this",new F("arguments",null));function q(){R.state.context=new Z(R.state.context,R.state.localVars,!1),R.state.localVars=V}function ne(){R.state.context=new Z(R.state.context,R.state.localVars,!0),R.state.localVars=null}q.lex=ne.lex=!0;function Q(){R.state.localVars=R.state.context.vars,R.state.context=R.state.context.prev}Q.lex=!0;function ae(te,ue){var Pe=function(){var et=R.state,Le=et.indented;if(et.lexical.type=="stat")Le=et.lexical.indented;else for(var pt=et.lexical;pt&&pt.type==")"&&pt.align;pt=pt.prev)Le=pt.indented;et.lexical=new A(Le,R.stream.column(),te,null,et.lexical,ue)};return Pe.lex=!0,Pe}function re(){var te=R.state;te.lexical.prev&&(te.lexical.type==")"&&(te.indented=te.lexical.indented),te.lexical=te.lexical.prev)}re.lex=!0;function le(te){function ue(Pe){return Pe==te?_():te==";"||Pe=="}"||Pe==")"||Pe=="]"?$():_(ue)}return ue}function oe(te,ue){return te=="var"?_(ae("vardef",ue),at,le(";"),re):te=="keyword a"?_(ae("form"),je,oe,re):te=="keyword b"?_(ae("form"),oe,re):te=="keyword d"?R.stream.match(/^\s*$/,!1)?_():_(ae("stat"),Te,le(";"),re):te=="debugger"?_(le(";")):te=="{"?_(ae("}"),ne,Zt,re,Q):te==";"?_():te=="if"?(R.state.lexical.info=="else"&&R.state.cc[R.state.cc.length-1]==re&&R.state.cc.pop()(),_(ae("form"),je,oe,re,St)):te=="function"?_(Ln):te=="for"?_(ae("form"),ne,Rt,oe,Q,re):te=="class"||p&&ue=="interface"?(R.marked="keyword",_(ae("form",te=="class"?te:ue),pe,re)):te=="variable"?p&&ue=="declare"?(R.marked="keyword",_(oe)):p&&(ue=="module"||ue=="enum"||ue=="type")&&R.stream.match(/^\s*\w/,!1)?(R.marked="keyword",ue=="enum"?_(Ot):ue=="type"?_(Et,le("operator"),Ce,le(";")):_(ae("form"),Ge,le("{"),ae("}"),Zt,re,re)):p&&ue=="namespace"?(R.marked="keyword",_(ae("form"),de,oe,re)):p&&ue=="abstract"?(R.marked="keyword",_(oe)):_(ae("stat"),Qt):te=="switch"?_(ae("form"),je,le("{"),ae("}","switch"),ne,Zt,re,re,Q):te=="case"?_(de,le(":")):te=="default"?_(le(":")):te=="catch"?_(ae("form"),q,ie,oe,re,Q):te=="export"?_(ae("stat"),on,re):te=="import"?_(ae("stat"),In,re):te=="async"?_(oe):ue=="@"?_(de,oe):$(ae("stat"),de,le(";"),re)}function ie(te){if(te=="(")return _(un,le(")"))}function de(te,ue){return Ee(te,ue,!1)}function xe(te,ue){return Ee(te,ue,!0)}function je(te){return te!="("?$():_(ae(")"),Te,le(")"),re)}function Ee(te,ue,Pe){if(R.state.fatArrowAt==R.stream.start){var et=Pe?Lt:Ve;if(te=="(")return _(q,ae(")"),kt(un,")"),re,le("=>"),et,Q);if(te=="variable")return $(q,Ge,le("=>"),et,Q)}var Le=Pe?ze:Me;return P.hasOwnProperty(te)?_(Le):te=="function"?_(Ln,Le):te=="class"||p&&ue=="interface"?(R.marked="keyword",_(ae("form"),en,re)):te=="keyword c"||te=="async"?_(Pe?xe:de):te=="("?_(ae(")"),Te,le(")"),re,Le):te=="operator"||te=="spread"?_(Pe?xe:de):te=="["?_(ae("]"),Sn,re,Le):te=="{"?rn(_e,"}",null,Le):te=="quasi"?$(qe,Le):te=="new"?_($e(Pe)):_()}function Te(te){return te.match(/[;\}\)\],]/)?$():$(de)}function Me(te,ue){return te==","?_(Te):ze(te,ue,!1)}function ze(te,ue,Pe){var et=Pe==!1?Me:ze,Le=Pe==!1?de:xe;if(te=="=>")return _(q,Pe?Lt:Ve,Q);if(te=="operator")return/\+\+|--/.test(ue)||p&&ue=="!"?_(et):p&&ue=="<"&&R.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(ae(">"),kt(Ce,">"),re,et):ue=="?"?_(de,le(":"),Le):_(Le);if(te=="quasi")return $(qe,et);if(te!=";"){if(te=="(")return rn(xe,")","call",et);if(te==".")return _(Vt,et);if(te=="[")return _(ae("]"),Te,le("]"),re,et);if(p&&ue=="as")return R.marked="keyword",_(Ce,et);if(te=="regexp")return R.state.lastType=R.marked="operator",R.stream.backUp(R.stream.pos-R.stream.start-1),_(Le)}}function qe(te,ue){return te!="quasi"?$():ue.slice(ue.length-2)!="${"?_(qe):_(Te,Ye)}function Ye(te){if(te=="}")return R.marked="string-2",R.state.tokenize=M,_(qe)}function Ve(te){return D(R.stream,R.state),$(te=="{"?oe:de)}function Lt(te){return D(R.stream,R.state),$(te=="{"?oe:xe)}function $e(te){return function(ue){return ue=="."?_(te?At:st):ue=="variable"&&p?_(Ze,te?ze:Me):$(te?xe:de)}}function st(te,ue){if(ue=="target")return R.marked="keyword",_(Me)}function At(te,ue){if(ue=="target")return R.marked="keyword",_(ze)}function Qt(te){return te==":"?_(re,oe):$(Me,le(";"),re)}function Vt(te){if(te=="variable")return R.marked="property",_()}function _e(te,ue){if(te=="async")return R.marked="property",_(_e);if(te=="variable"||R.style=="keyword"){if(R.marked="property",ue=="get"||ue=="set")return _(sn);var Pe;return p&&R.state.fatArrowAt==R.stream.start&&(Pe=R.stream.match(/^\s*:\s*/,!1))&&(R.state.fatArrowAt=R.stream.pos+Pe[0].length),_(Ht)}else{if(te=="number"||te=="string")return R.marked=c?"property":R.style+" property",_(Ht);if(te=="jsonld-keyword")return _(Ht);if(p&&G(ue))return R.marked="keyword",_(_e);if(te=="[")return _(de,Jt,le("]"),Ht);if(te=="spread")return _(xe,Ht);if(ue=="*")return R.marked="keyword",_(_e);if(te==":")return $(Ht)}}function sn(te){return te!="variable"?$(Ht):(R.marked="property",_(Ln))}function Ht(te){if(te==":")return _(xe);if(te=="(")return $(Ln)}function kt(te,ue,Pe){function et(Le,pt){if(Pe?Pe.indexOf(Le)>-1:Le==","){var ln=R.state.lexical;return ln.info=="call"&&(ln.pos=(ln.pos||0)+1),_(function(Vr,Ra){return Vr==ue||Ra==ue?$():$(te)},et)}return Le==ue||pt==ue?_():Pe&&Pe.indexOf(";")>-1?$(te):_(le(ue))}return function(Le,pt){return Le==ue||pt==ue?_():$(te,et)}}function rn(te,ue,Pe){for(var et=3;et<arguments.length;et++)R.cc.push(arguments[et]);return _(ae(ue,Pe),kt(te,ue),re)}function Zt(te){return te=="}"?_():$(oe,Zt)}function Jt(te,ue){if(p){if(te==":")return _(Ce);if(ue=="?")return _(Jt)}}function gn(te,ue){if(p&&(te==":"||ue=="in"))return _(Ce)}function zt(te){if(p&&te==":")return R.stream.match(/^\s*\w+\s+is\b/,!1)?_(de,Mn,Ce):_(Ce)}function Mn(te,ue){if(ue=="is")return R.marked="keyword",_()}function Ce(te,ue){if(ue=="keyof"||ue=="typeof"||ue=="infer"||ue=="readonly")return R.marked="keyword",_(ue=="typeof"?xe:Ce);if(te=="variable"||ue=="void")return R.marked="type",_(Ae);if(ue=="|"||ue=="&")return _(Ce);if(te=="string"||te=="number"||te=="atom")return _(Ae);if(te=="[")return _(ae("]"),kt(Ce,"]",","),re,Ae);if(te=="{")return _(ae("}"),ke,re,Ae);if(te=="(")return _(kt(Ie,")"),Be,Ae);if(te=="<")return _(kt(Ce,">"),Ce);if(te=="quasi")return $(ge,Ae)}function Be(te){if(te=="=>")return _(Ce)}function ke(te){return te.match(/[\}\)\]]/)?_():te==","||te==";"?_(ke):$(Qe,ke)}function Qe(te,ue){if(te=="variable"||R.style=="keyword")return R.marked="property",_(Qe);if(ue=="?"||te=="number"||te=="string")return _(Qe);if(te==":")return _(Ce);if(te=="[")return _(le("variable"),gn,le("]"),Qe);if(te=="(")return $(mt,Qe);if(!te.match(/[;\}\)\],]/))return _()}function ge(te,ue){return te!="quasi"?$():ue.slice(ue.length-2)!="${"?_(ge):_(Ce,ve)}function ve(te){if(te=="}")return R.marked="string-2",R.state.tokenize=M,_(ge)}function Ie(te,ue){return te=="variable"&&R.stream.match(/^\s*[?:]/,!1)||ue=="?"?_(Ie):te==":"?_(Ce):te=="spread"?_(Ie):$(Ce)}function Ae(te,ue){if(ue=="<")return _(ae(">"),kt(Ce,">"),re,Ae);if(ue=="|"||te=="."||ue=="&")return _(Ce);if(te=="[")return _(Ce,le("]"),Ae);if(ue=="extends"||ue=="implements")return R.marked="keyword",_(Ce);if(ue=="?")return _(Ce,le(":"),Ce)}function Ze(te,ue){if(ue=="<")return _(ae(">"),kt(Ce,">"),re,Ae)}function Je(){return $(Ce,ot)}function ot(te,ue){if(ue=="=")return _(Ce)}function at(te,ue){return ue=="enum"?(R.marked="keyword",_(Ot)):$(Ge,Jt,bt,$t)}function Ge(te,ue){if(p&&G(ue))return R.marked="keyword",_(Ge);if(te=="variable")return K(ue),_();if(te=="spread")return _(Ge);if(te=="[")return rn(Nt,"]");if(te=="{")return rn(yt,"}")}function yt(te,ue){return te=="variable"&&!R.stream.match(/^\s*:/,!1)?(K(ue),_(bt)):(te=="variable"&&(R.marked="property"),te=="spread"?_(Ge):te=="}"?$():te=="["?_(de,le("]"),le(":"),yt):_(le(":"),Ge,bt))}function Nt(){return $(Ge,bt)}function bt(te,ue){if(ue=="=")return _(xe)}function $t(te){if(te==",")return _(at)}function St(te,ue){if(te=="keyword b"&&ue=="else")return _(ae("form","else"),oe,re)}function Rt(te,ue){if(ue=="await")return _(Rt);if(te=="(")return _(ae(")"),hn,re)}function hn(te){return te=="var"?_(at,Xt):te=="variable"?_(Xt):$(Xt)}function Xt(te,ue){return te==")"?_():te==";"?_(Xt):ue=="in"||ue=="of"?(R.marked="keyword",_(de,Xt)):$(de,Xt)}function Ln(te,ue){if(ue=="*")return R.marked="keyword",_(Ln);if(te=="variable")return K(ue),_(Ln);if(te=="(")return _(q,ae(")"),kt(un,")"),re,zt,oe,Q);if(p&&ue=="<")return _(ae(">"),kt(Je,">"),re,Ln)}function mt(te,ue){if(ue=="*")return R.marked="keyword",_(mt);if(te=="variable")return K(ue),_(mt);if(te=="(")return _(q,ae(")"),kt(un,")"),re,zt,Q);if(p&&ue=="<")return _(ae(">"),kt(Je,">"),re,mt)}function Et(te,ue){if(te=="keyword"||te=="variable")return R.marked="type",_(Et);if(ue=="<")return _(ae(">"),kt(Je,">"),re)}function un(te,ue){return ue=="@"&&_(de,un),te=="spread"?_(un):p&&G(ue)?(R.marked="keyword",_(un)):p&&te=="this"?_(Jt,bt):$(Ge,Jt,bt)}function en(te,ue){return te=="variable"?pe(te,ue):Xe(te,ue)}function pe(te,ue){if(te=="variable")return K(ue),_(Xe)}function Xe(te,ue){if(ue=="<")return _(ae(">"),kt(Je,">"),re,Xe);if(ue=="extends"||ue=="implements"||p&&te==",")return ue=="implements"&&(R.marked="keyword"),_(p?Ce:de,Xe);if(te=="{")return _(ae("}"),We,re)}function We(te,ue){if(te=="async"||te=="variable"&&(ue=="static"||ue=="get"||ue=="set"||p&&G(ue))&&R.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return R.marked="keyword",_(We);if(te=="variable"||R.style=="keyword")return R.marked="property",_(ht,We);if(te=="number"||te=="string")return _(ht,We);if(te=="[")return _(de,Jt,le("]"),ht,We);if(ue=="*")return R.marked="keyword",_(We);if(p&&te=="(")return $(mt,We);if(te==";"||te==",")return _(We);if(te=="}")return _();if(ue=="@")return _(de,We)}function ht(te,ue){if(ue=="!"||ue=="?")return _(ht);if(te==":")return _(Ce,bt);if(ue=="=")return _(xe);var Pe=R.state.lexical.prev,et=Pe&&Pe.info=="interface";return $(et?mt:Ln)}function on(te,ue){return ue=="*"?(R.marked="keyword",_(si,le(";"))):ue=="default"?(R.marked="keyword",_(de,le(";"))):te=="{"?_(kt(Bt,"}"),si,le(";")):$(oe)}function Bt(te,ue){if(ue=="as")return R.marked="keyword",_(le("variable"));if(te=="variable")return $(xe,Bt)}function In(te){return te=="string"?_():te=="("?$(de):te=="."?$(Me):$(vr,nr,si)}function vr(te,ue){return te=="{"?rn(vr,"}"):(te=="variable"&&K(ue),ue=="*"&&(R.marked="keyword"),_(kr))}function nr(te){if(te==",")return _(vr,nr)}function kr(te,ue){if(ue=="as")return R.marked="keyword",_(vr)}function si(te,ue){if(ue=="from")return R.marked="keyword",_(de)}function Sn(te){return te=="]"?_():$(kt(xe,"]"))}function Ot(){return $(ae("form"),Ge,le("{"),ae("}"),kt(tt,"}"),re,re)}function tt(){return $(Ge,bt)}function Mt(te,ue){return te.lastType=="operator"||te.lastType==","||C.test(ue.charAt(0))||/[,.]/.test(ue.charAt(0))}function jt(te,ue,Pe){return ue.tokenize==E&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ue.lastType)||ue.lastType=="quasi"&&/\{\s*$/.test(te.string.slice(0,te.pos-(Pe||0)))}return{startState:function(te){var ue={tokenize:E,lastType:"sof",cc:[],lexical:new A((te||0)-o,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Z(null,null,!1),indented:te||0};return s.globalVars&&typeof s.globalVars=="object"&&(ue.globalVars=s.globalVars),ue},token:function(te,ue){if(te.sol()&&(ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!1),ue.indented=te.indentation(),D(te,ue)),ue.tokenize!=T&&te.eatSpace())return null;var Pe=ue.tokenize(te,ue);return k=="comment"?Pe:(ue.lastType=k=="operator"&&(j=="++"||j=="--")?"incdec":k,z(ue,Pe,k,j,te))},indent:function(te,ue){if(te.tokenize==T||te.tokenize==M)return n.Pass;if(te.tokenize!=E)return 0;var Pe=ue&&ue.charAt(0),et=te.lexical,Le;if(!/^\s*else\b/.test(ue))for(var pt=te.cc.length-1;pt>=0;--pt){var ln=te.cc[pt];if(ln==re)et=et.prev;else if(ln!=St&&ln!=Q)break}for(;(et.type=="stat"||et.type=="form")&&(Pe=="}"||(Le=te.cc[te.cc.length-1])&&(Le==Me||Le==ze)&&!/^[,\.=+\-*:?[\(]/.test(ue));)et=et.prev;i&&et.type==")"&&et.prev.type=="stat"&&(et=et.prev);var Vr=et.type,Ra=Pe==Vr;return Vr=="vardef"?et.indented+(te.lastType=="operator"||te.lastType==","?et.info.length+1:0):Vr=="form"&&Pe=="{"?et.indented:Vr=="form"?et.indented+o:Vr=="stat"?et.indented+(Mt(te,ue)?i||o:0):et.info=="switch"&&!Ra&&s.doubleIndentSwitch!=!1?et.indented+(/^(?:case|default)\b/.test(ue)?o:2*o):et.align?et.column+(Ra?0:1):et.indented+(Ra?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:jt,skipExpression:function(te){z(te,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),eve.exports};var wz=j6();const tve=_o(wz),kz=Un({__proto__:null,default:tve},[wz]);var nve={exports:{}},jz;E6=function(){return jz||(jz=1,function(e,t){(function(n){n(Ai)})(function(n){var r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(o,i){var c=o.indentUnit,u={},h=i.htmlMode?r:s;for(var p in h)u[p]=h[p];for(var p in i)u[p]=i[p];var m,x;function C(_,U){function K(Z){return U.tokenize=Z,Z(_,U)}var W=_.next();if(W=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?K(k("atom","]]>")):null:_.match("--")?K(k("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),K(j(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),U.tokenize=k("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",U.tokenize=b,"tag bracket");if(W=="&"){var G;return _.eat("#")?_.eat("x")?G=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):G=_.eatWhile(/[\d]/)&&_.eat(";"):G=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),G?"atom":"error"}else return _.eatWhile(/[^&<]/),null}C.isInText=!0;function b(_,U){var K=_.next();if(K==">"||K=="/"&&_.eat(">"))return U.tokenize=C,m=K==">"?"endTag":"selfcloseTag","tag bracket";if(K=="=")return m="equals",null;if(K=="<"){U.tokenize=C,U.state=M,U.tagName=U.tagStart=null;var W=U.tokenize(_,U);return W?W+" tag error":"tag error"}else return/[\'\"]/.test(K)?(U.tokenize=g(K),U.stringStartCol=_.column(),U.tokenize(_,U)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(_){var U=function(K,W){for(;!K.eol();)if(K.next()==_){W.tokenize=b;break}return"string"};return U.isInAttribute=!0,U}function k(_,U){return function(K,W){for(;!K.eol();){if(K.match(U)){W.tokenize=C;break}K.next()}return _}}function j(_){return function(U,K){for(var W;(W=U.next())!=null;){if(W=="<")return K.tokenize=j(_+1),K.tokenize(U,K);if(W==">")if(_==1){K.tokenize=C;break}else return K.tokenize=j(_-1),K.tokenize(U,K)}return"meta"}}function S(_){return _&&_.toLowerCase()}function E(_,U,K){this.prev=_.context,this.tagName=U||"",this.indent=_.indented,this.startOfLine=K,(u.doNotIndent.hasOwnProperty(U)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function N(_){_.context&&(_.context=_.context.prev)}function T(_,U){for(var K;;){if(!_.context||(K=_.context.tagName,!u.contextGrabbers.hasOwnProperty(S(K))||!u.contextGrabbers[S(K)].hasOwnProperty(S(U))))return;N(_)}}function M(_,U,K){return _=="openTag"?(K.tagStart=U.column(),L):_=="closeTag"?D:M}function L(_,U,K){return _=="word"?(K.tagName=U.current(),x="tag",B):u.allowMissingTagName&&_=="endTag"?(x="tag bracket",B(_,U,K)):(x="error",L)}function D(_,U,K){if(_=="word"){var W=U.current();return K.context&&K.context.tagName!=W&&u.implicitlyClosed.hasOwnProperty(S(K.context.tagName))&&N(K),K.context&&K.context.tagName==W||u.matchClosing===!1?(x="tag",P):(x="tag error",A)}else return u.allowMissingTagName&&_=="endTag"?(x="tag bracket",P(_,U,K)):(x="error",A)}function P(_,U,K){return _!="endTag"?(x="error",P):(N(K),M)}function A(_,U,K){return x="error",P(_,U,K)}function B(_,U,K){if(_=="word")return x="attribute",z;if(_=="endTag"||_=="selfcloseTag"){var W=K.tagName,G=K.tagStart;return K.tagName=K.tagStart=null,_=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(S(W))?T(K,W):(T(K,W),K.context=new E(K,W,G==K.indented)),M}return x="error",B}function z(_,U,K){return _=="equals"?R:(u.allowMissing||(x="error"),B(_,U,K))}function R(_,U,K){return _=="string"?$:_=="word"&&u.allowUnquoted?(x="string",B):(x="error",B(_,U,K))}function $(_,U,K){return _=="string"?$:B(_,U,K)}return{startState:function(_){var U={tokenize:C,state:M,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(U.baseIndent=_),U},token:function(_,U){if(!U.tagName&&_.sol()&&(U.indented=_.indentation()),_.eatSpace())return null;m=null;var K=U.tokenize(_,U);return(K||m)&&K!="comment"&&(x=null,U.state=U.state(m||K,_,U),x&&(K=x=="error"?K+" error":x)),K},indent:function(_,U,K){var W=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+c;if(W&&W.noIndent)return n.Pass;if(_.tokenize!=b&&_.tokenize!=C)return K?K.match(/^(\s*)/)[0].length:0;if(_.tagName)return u.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+c*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(U))return 0;var G=U&&/^<(\/)?([\w_:\.-]*)/.exec(U);if(G&&G[1])for(;W;)if(W.tagName==G[2]){W=W.prev;break}else if(u.implicitlyClosed.hasOwnProperty(S(W.tagName)))W=W.prev;else break;else if(G)for(;W;){var Z=u.contextGrabbers[S(W.tagName)];if(Z&&Z.hasOwnProperty(S(G[2])))W=W.prev;else break}for(;W&&W.prev&&!W.startOfLine;)W=W.prev;return W?W.indent+c:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(_){_.state==R&&(_.state=B)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var U=[],K=_.context;K;K=K.prev)U.push(K.tagName);return U.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),nve.exports};var Cz=E6();const rve=_o(Cz),Sz=Un({__proto__:null,default:rve},[Cz]);(function(e,t){(function(n){n(Ai)})(function(n){var r="CodeMirror-activeline",s="CodeMirror-activeline-background",o="CodeMirror-activeline-gutter";n.defineOption("styleActiveLine",!1,function(p,m,x){var C=x==n.Init?!1:x;m!=C&&(C&&(p.off("beforeSelectionChange",h),i(p),delete p.state.activeLines),m&&(p.state.activeLines=[],u(p,p.listSelections()),p.on("beforeSelectionChange",h)))});function i(p){for(var m=0;m<p.state.activeLines.length;m++)p.removeLineClass(p.state.activeLines[m],"wrap",r),p.removeLineClass(p.state.activeLines[m],"background",s),p.removeLineClass(p.state.activeLines[m],"gutter",o)}function c(p,m){if(p.length!=m.length)return!1;for(var x=0;x<p.length;x++)if(p[x]!=m[x])return!1;return!0}function u(p,m){for(var x=[],C=0;C<m.length;C++){var b=m[C],g=p.getOption("styleActiveLine");if(!(typeof g=="object"&&g.nonEmpty?b.anchor.line!=b.head.line:!b.empty())){var k=p.getLineHandleVisualStart(b.head.line);x[x.length-1]!=k&&x.push(k)}}c(p.state.activeLines,x)||p.operation(function(){i(p);for(var j=0;j<x.length;j++)p.addLineClass(x[j],"wrap",r),p.addLineClass(x[j],"background",s),p.addLineClass(x[j],"gutter",o);p.state.activeLines=x})}function h(p,m){u(p,m.ranges)}})})();var ave={exports:{}},Ez;C6=function(){return Ez||(Ez=1,function(e,t){(function(n){n(Ai)})(function(n){n.defineSimpleMode=function(x,C){n.defineMode(x,function(b){return n.simpleMode(b,C)})},n.simpleMode=function(x,C){r(C,"start");var b={},g=C.meta||{},k=!1;for(var j in C)if(j!=g&&C.hasOwnProperty(j))for(var S=b[j]=[],E=C[j],N=0;N<E.length;N++){var T=E[N];S.push(new i(T,C)),(T.indent||T.dedent)&&(k=!0)}var M={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:k?[]:null}},copyState:function(D){var P={state:D.state,pending:D.pending,local:D.local,localState:null,indent:D.indent&&D.indent.slice(0)};D.localState&&(P.localState=n.copyState(D.local.mode,D.localState)),D.stack&&(P.stack=D.stack.slice(0));for(var A=D.persistentStates;A;A=A.next)P.persistentStates={mode:A.mode,spec:A.spec,state:A.state==D.localState?P.localState:n.copyState(A.mode,A.state),next:P.persistentStates};return P},token:c(b,x),innerMode:function(D){return D.local&&{mode:D.local.mode,state:D.localState}},indent:m(b,g)};if(g)for(var L in g)g.hasOwnProperty(L)&&(M[L]=g[L]);return M};function r(x,C){if(!x.hasOwnProperty(C))throw new Error("Undefined state "+C+" in simple mode")}function s(x,C){if(!x)return/(?:)/;var b="";return x instanceof RegExp?(x.ignoreCase&&(b="i"),x.unicode&&(b+="u"),x=x.source):x=String(x),new RegExp((C===!1?"":"^")+"(?:"+x+")",b)}function o(x){if(!x)return null;if(x.apply)return x;if(typeof x=="string")return x.replace(/\./g," ");for(var C=[],b=0;b<x.length;b++)C.push(x[b]&&x[b].replace(/\./g," "));return C}function i(x,C){(x.next||x.push)&&r(C,x.next||x.push),this.regex=s(x.regex),this.token=o(x.token),this.data=x}function c(x,C){return function(b,g){if(g.pending){var k=g.pending.shift();return g.pending.length==0&&(g.pending=null),b.pos+=k.text.length,k.token}if(g.local)if(g.local.end&&b.match(g.local.end)){var j=g.local.endToken||null;return g.local=g.localState=null,j}else{var j=g.local.mode.token(b,g.localState),S;return g.local.endScan&&(S=g.local.endScan.exec(b.current()))&&(b.pos=b.start+S.index),j}for(var E=x[g.state],N=0;N<E.length;N++){var T=E[N],M=(!T.data.sol||b.sol())&&b.match(T.regex);if(M){T.data.next?g.state=T.data.next:T.data.push?((g.stack||(g.stack=[])).push(g.state),g.state=T.data.push):T.data.pop&&g.stack&&g.stack.length&&(g.state=g.stack.pop()),T.data.mode&&h(C,g,T.data.mode,T.token),T.data.indent&&g.indent.push(b.indentation()+C.indentUnit),T.data.dedent&&g.indent.pop();var L=T.token;if(L&&L.apply&&(L=L(M)),M.length>2&&T.token&&typeof T.token!="string"){for(var D=2;D<M.length;D++)M[D]&&(g.pending||(g.pending=[])).push({text:M[D],token:T.token[D-1]});return b.backUp(M[0].length-(M[1]?M[1].length:0)),L[0]}else return L&&L.join?L[0]:L}}return b.next(),null}}function u(x,C){if(x===C)return!0;if(!x||typeof x!="object"||!C||typeof C!="object")return!1;var b=0;for(var g in x)if(x.hasOwnProperty(g)){if(!C.hasOwnProperty(g)||!u(x[g],C[g]))return!1;b++}for(var g in C)C.hasOwnProperty(g)&&b--;return b==0}function h(x,C,b,g){var k;if(b.persistent)for(var j=C.persistentStates;j&&!k;j=j.next)(b.spec?u(b.spec,j.spec):b.mode==j.mode)&&(k=j);var S=k?k.mode:b.mode||n.getMode(x,b.spec),E=k?k.state:n.startState(S);b.persistent&&!k&&(C.persistentStates={mode:S,spec:b.spec,state:E,next:C.persistentStates}),C.localState=E,C.local={mode:S,end:b.end&&s(b.end),endScan:b.end&&b.forceEnd!==!1&&s(b.end,!1),endToken:g&&g.join?g[g.length-1]:g}}function p(x,C){for(var b=0;b<C.length;b++)if(C[b]===x)return!0}function m(x,C){return function(b,g,k){if(b.local&&b.local.mode.indent)return b.local.mode.indent(b.localState,g,k);if(b.indent==null||b.local||C.dontIndentStates&&p(b.state,C.dontIndentStates)>-1)return n.Pass;var j=b.indent.length-1,S=x[b.state];e:for(;;){for(var E=0;E<S.length;E++){var N=S[E];if(N.data.dedent&&N.data.dedentIfLineStart!==!1){var T=N.regex.exec(g);if(T&&T[0]){j--,(N.next||N.push)&&(S=x[N.next||N.push]),g=g.slice(T[0].length);continue e}}}break}return j<0?0:b.indent[j]}}})}()),ave.exports},C6(),function(e,t){(function(n){n(Ai)})(function(n){n.runMode=function(r,s,o,i){var c=n.getMode(n.defaults,s),u=i&&i.tabSize||n.defaults.tabSize;if(o.appendChild){var h=/MSIE \d/.test(navigator.userAgent),p=h&&(document.documentMode==null||document.documentMode<9),m=o,x=0;m.textContent="",o=function(E,N){if(E=="\n"){m.appendChild(document.createTextNode(p?"\r":E)),x=0;return}for(var T="",M=0;;){var L=E.indexOf(" ",M);if(L==-1){T+=E.slice(M),x+=E.length-M;break}else{x+=L-M,T+=E.slice(M,L);var D=u-x%u;x+=D;for(var P=0;P<D;++P)T+=" ";M=L+1}}if(N){var A=m.appendChild(document.createElement("span"));A.className="cm-"+N.replace(/ +/g," cm-"),A.appendChild(document.createTextNode(T))}else m.appendChild(document.createTextNode(T))}}for(var C=n.splitLines(r),b=i&&i.state||n.startState(c),g=0,k=C.length;g<k;++g){g&&o("\n");var j=new n.StringStream(C[g],null,{lookAhead:function(E){return C[g+E]},baseToken:function(){}});for(!j.string&&c.blankLine&&c.blankLine(b);!j.eol();){var S=c.token(j,b);o(j.current(),S,g,j.start,b,c),j.start=j.pos}}}})}(),window.CodeMirror=Ug;const $S=f.forwardRef((e,t)=>{var S;const{options:n={},value:r="",width:s="100%",height:o="100%",isDark:i=!1,isCmd:c=!1,autofocus:u=!0,lineWrapping:h,lineNumbers:p=!0,lazyLoadMode:m=!0}=e,x=f.useRef(null),C=f.useRef(null),b=f.useRef(e),g={tabSize:2,scrollbarStyle:"simple",lineNumbers:p,viewportMargin:1/0,styleActiveLine:!0,lineWrapping:h,autofocus:u,lineNumberFormatter:E=>c?">_":"".concat(E),showCursorWhenSelecting:!0};f.useImperativeHandle(t,()=>({editor:x,textarea:C.current})),b.current=e;function k(){const E=Object.keys(e).filter(T=>/^on+/.test(T)),N={};return E.forEach(T=>{const M=T.slice(2);M&&M[0]&&(N[T]=M.replace(M[0],M[0].toLowerCase()))}),N}async function j(E,N={}){if(typeof N=="object"&&window){const T=Ug.findModeByName(N.mode||"");m&&T&&T.mode&&await sve("codemirror/mode/".concat(T.mode,"/").concat(T.mode,".js")),T&&(N.mode=T.mime),Object.keys(N).forEach(M=>{(N[M]||N[M]===!1)&&JSON.stringify(N[M])&&E.setOption(M,N[M])})}}return f.useEffect(()=>{if(!x.current&&C.current){const E=Ai.fromTextArea(C.current,{...g,...n}),N=k();Object.keys(N).forEach(T=>{E.on(N[T],(...M)=>b.current[T](...M))}),(s||o)&&E.setSize(s,o),x.current=E,j(E,{...g,...n})}return()=>{x.current&&(x.current.toTextArea(),x.current=null)}},[C.current]),f.useMemo(()=>{if(!x.current)return;const E=x.current.getValue();r!==void 0&&r!==E&&x.current.setValue(r)},[r,x]),f.useMemo(()=>{x.current&&x.current.setSize(s,o)},[s,o,x]),f.useMemo(()=>{x.current&&j(x.current,{...g,...n})},[x,n]),a.jsxs("div",{className:"".concat(i?"code-is-dark":"code-is-light"," w-full"),children:[a.jsx("textarea",{ref:C,defaultValue:r,className:"hidden"}),a.jsx(fe,{className:"absolute w-full items-end justify-end h-0",children:a.jsx("div",{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5 relative top-[-16px] right-[36px] select-none",children:(S=n.mode)==null?void 0:S.toString()})})]})});function sve(e){switch(e){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return he(()=>import("./apl-BNUU5qT2.js").then(t=>t.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return he(()=>import("./asciiarmor-Dme1RrXC.js").then(t=>t.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return he(()=>import("./asn.1-F2CRehLK.js").then(t=>t.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return he(()=>import("./asterisk-DXXb7CIe.js").then(t=>t.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return he(()=>import("./brainfuck-CeDN_aVu.js").then(t=>t.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return he(()=>import("./clike-CKh8RrsZ.js").then(t=>t.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return he(()=>import("./clojure-IL83DiMe.js").then(t=>t.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return he(()=>import("./cmake-CBK4FEFU.js").then(t=>t.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return he(()=>import("./cobol-Cr7sthRy.js").then(t=>t.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return he(()=>import("./coffeescript-UYn4tXgp.js").then(t=>t.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return he(()=>import("./commonlisp-OgP-zwJC.js").then(t=>t.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return he(()=>import("./crystal-DdaQepjy.js").then(t=>t.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return he(()=>import("./css-D2W7DKD8.js").then(t=>t.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return he(()=>import("./cypher-DHl2Df_p.js").then(t=>t.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return he(()=>import("./d-BWFZb9L0.js").then(t=>t.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return he(()=>import("./dart-C667kpDq.js").then(t=>t.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return he(()=>import("./diff-yarkSHUY.js").then(t=>t.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return he(()=>import("./django-BHkfok3M.js").then(t=>t.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return he(()=>import("./dockerfile-DZNrmCx9.js").then(t=>t.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return he(()=>import("./dtd-CBEuXgRr.js").then(t=>t.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return he(()=>import("./dylan-B5hsWYhU.js").then(t=>t.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return he(()=>import("./ebnf-b8GlOkaz.js").then(t=>t.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return he(()=>import("./ecl-DtaFcOh0.js").then(t=>t.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return he(()=>import("./eiffel-IO4mzJd1.js").then(t=>t.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return he(()=>import("./elm-BbZFnA_F.js").then(t=>t.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return he(()=>import("./erlang-CqixHPO0.js").then(t=>t.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return he(()=>import("./factor-BvAHKI6r.js").then(t=>t.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return he(()=>import("./fcl-1IEbqCAc.js").then(t=>t.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return he(()=>import("./forth-CDUdH4D4.js").then(t=>t.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return he(()=>import("./fortran-CWoK8aFO.js").then(t=>t.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return he(()=>import("./gas-DE4QdS-d.js").then(t=>t.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return he(()=>import("./gfm-DIFGgWk3.js").then(t=>t.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return he(()=>import("./gherkin-BxEScuMF.js").then(t=>t.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return he(()=>import("./go-D8mq7sP4.js").then(t=>t.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return he(()=>import("./groovy-C9RPG7vC.js").then(t=>t.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return he(()=>import("./haml-DJceL8fb.js").then(t=>t.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return he(()=>import("./handlebars-DR4e85cA.js").then(t=>t.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return he(()=>import("./haskell-CwWQgmjX.js").then(t=>t.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return he(()=>import("./haskell-literate-CIJKYWZj.js").then(t=>t.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return he(()=>import("./haxe-CBSoEZry.js").then(t=>t.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return he(()=>import("./htmlembedded-BY07fnzD.js").then(t=>t.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return he(()=>import("./htmlmixed-D-5cijKW.js").then(t=>t.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return he(()=>import("./http-CfbTkW66.js").then(t=>t.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return he(()=>import("./idl-CqKPtuqA.js").then(t=>t.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return he(()=>Promise.resolve().then(()=>kz),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return he(()=>import("./jinja2-CZ-2GBUs.js").then(t=>t.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return he(()=>import("./jsx-BqYTd4Ox.js").then(t=>t.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return he(()=>import("./julia-DzRJNze5.js").then(t=>t.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return he(()=>import("./livescript-CTahV9d4.js").then(t=>t.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return he(()=>import("./lua-DtLm0yzv.js").then(t=>t.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return he(()=>import("./markdown-nFIn21h-.js").then(t=>t.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return he(()=>import("./mathematica-j2K5Nob2.js").then(t=>t.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return he(()=>import("./mbox-DnT_eu6u.js").then(t=>t.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return he(()=>import("./mirc-BsPlsCKq.js").then(t=>t.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return he(()=>import("./mllike-Bul4RzWX.js").then(t=>t.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return he(()=>import("./modelica-CN82Hjfx.js").then(t=>t.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return he(()=>import("./mscgen-CXfyxN3O.js").then(t=>t.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return he(()=>import("./mumps-CByPgSeh.js").then(t=>t.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return he(()=>import("./nginx-CZ9wXhkV.js").then(t=>t.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return he(()=>import("./nsis-WhSdmpHT.js").then(t=>t.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return he(()=>import("./ntriples-DD9L1km0.js").then(t=>t.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return he(()=>import("./octave-COXT1yn0.js").then(t=>t.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return he(()=>import("./oz-Da4VFWYm.js").then(t=>t.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return he(()=>import("./pascal-B1y2XCyp.js").then(t=>t.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return he(()=>import("./pegjs-Da3q5XnG.js").then(t=>t.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return he(()=>import("./perl-Asp0f867.js").then(t=>t.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return he(()=>import("./php-71tO0CUH.js").then(t=>t.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return he(()=>import("./pig-CMgyeSfJ.js").then(t=>t.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return he(()=>import("./powershell-CtO8JJd6.js").then(t=>t.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return he(()=>import("./properties-BIdqkyNt.js").then(t=>t.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return he(()=>import("./protobuf-C2FX4XDW.js").then(t=>t.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return he(()=>import("./pug-udiFjUiW.js").then(t=>t.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return he(()=>import("./puppet-CuGQJUQz.js").then(t=>t.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return he(()=>import("./python-a8ZN5Ifv.js").then(t=>t.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return he(()=>import("./q-B5E7ZAlA.js").then(t=>t.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return he(()=>import("./r-CXytZJ_z.js").then(t=>t.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return he(()=>import("./rpm-loWZ38cd.js").then(t=>t.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return he(()=>import("./rst-x-YdJKUf.js").then(t=>t.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return he(()=>import("./ruby-CUv_2cE6.js").then(t=>t.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return he(()=>import("./rust-CECTlJlB.js").then(t=>t.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return he(()=>import("./sas-F-7_6Jdg.js").then(t=>t.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return he(()=>import("./sass-DfmYfR5p.js").then(t=>t.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return he(()=>import("./scheme-E5v_T6DG.js").then(t=>t.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return he(()=>import("./shell-uHqAcByi.js").then(t=>t.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return he(()=>import("./sieve-CbDNJ0TM.js").then(t=>t.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return he(()=>import("./slim-d7Z4lAts.js").then(t=>t.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return he(()=>import("./smalltalk-CGLbf20e.js").then(t=>t.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return he(()=>import("./smarty-BmZT5K8Q.js").then(t=>t.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return he(()=>import("./solr-MnVTKpd2.js").then(t=>t.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return he(()=>import("./soy-DcmltwnY.js").then(t=>t.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return he(()=>import("./sparql-5VUUvode.js").then(t=>t.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return he(()=>import("./spreadsheet-DB1FZ1v2.js").then(t=>t.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return he(()=>import("./sql-C8uJ4o1L.js").then(t=>t.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return he(()=>import("./stex-nTWKGNDo.js").then(t=>t.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return he(()=>import("./stylus-DBOiHsJ5.js").then(t=>t.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return he(()=>import("./swift-CLOAQg_1.js").then(t=>t.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return he(()=>import("./tcl-tnG6txJ2.js").then(t=>t.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return he(()=>import("./textile-DMLzNI5U.js").then(t=>t.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return he(()=>import("./tiddlywiki-RbU_yCyr.js").then(t=>t.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return he(()=>import("./tiki-Btz-h5GF.js").then(t=>t.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return he(()=>import("./toml-BBh1BnEP.js").then(t=>t.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return he(()=>import("./tornado-B3jCObZ9.js").then(t=>t.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return he(()=>import("./troff-CdBEHN9t.js").then(t=>t.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return he(()=>import("./ttcn-uCpRF2MT.js").then(t=>t.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return he(()=>import("./ttcn-cfg-iNj7-iEp.js").then(t=>t.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return he(()=>import("./turtle-BMegzYZP.js").then(t=>t.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return he(()=>import("./twig-CvmBDsDU.js").then(t=>t.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return he(()=>import("./vb-DHcZeaZZ.js").then(t=>t.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return he(()=>import("./vbscript-B_zDrSi1.js").then(t=>t.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return he(()=>import("./velocity-B093arIW.js").then(t=>t.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return he(()=>import("./verilog-BcnaaooT.js").then(t=>t.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return he(()=>import("./vhdl-CagjzFgb.js").then(t=>t.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return he(()=>import("./vue-NkNgpH_3.js").then(t=>t.v),__vite__mapDeps([29,5,30,4,23,31,18,3,10,11]));case"codemirror/mode/wast/wast":case"codemirror/mode/wast/wast.js":return he(()=>import("./wast-Bay8xTdS.js").then(t=>t.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return he(()=>import("./webidl-DXcfAv93.js").then(t=>t.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return he(()=>Promise.resolve().then(()=>Sz),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return he(()=>import("./xquery-CsRHZ6N-.js").then(t=>t.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return he(()=>import("./yacas-bzwHnb5K.js").then(t=>t.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return he(()=>import("./yaml-0ip59n2H.js").then(t=>t.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return he(()=>import("./yaml-frontmatter-DeWJDSuj.js").then(t=>t.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return he(()=>import("./z80-BwkETLA0.js").then(t=>t.z),[]);default:return new Promise(function(t,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const ove="p",ive="r",lve="o",cve="b",dve="e",uve="t",hve="a",ir=It(null),BS=lve+ive+ove,WS=hve+uve+dve+cve;function pve(){return ir.value&&ir.value.expires&&Vi().isAfter(Vi(ir.value.expires))}function Nz(){const e=ir.value?Vi(ir.value.expires).diff(Vi(),"days"):null,t=ir.value&&ir.value.expires?Vi(ir.value.expires).format("DD MMMM, YYYY"):"";return{licenseExpInDays:e,licenseExpiresDate:t}}function mve(){var n,r;const e=(n=ir.value)!=null&&n.issued?Vi().diff(Vi(ir.value.issued),"days"):null,t=(r=ir.value)!=null&&r.issued?Vi(ir.value.issued).format("DD MMMM, YYYY"):"";return{licenseIssuedDaysAgo:e>0?e:null,licenseIssuedDate:t}}(function(e,t){const n=C2,r=e();for(;;)try{if(parseInt(n(453))/1+parseInt(n(463))/2+-parseInt(n(455))/3*(-parseInt(n(452))/4)+-parseInt(n(456))/5+parseInt(n(457))/6*(parseInt(n(465))/7)+-parseInt(n(451))/8+-parseInt(n(462))/9===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(S2,740283);function fve(e){const t=C2,n=e[t(458)]("")[t(454)]()[t(464)](""),r=ir[t(461)];return r!=null&&r.id&&(r!=null&&r[t(460)])&&Array.isArray(r.features)?r.features[t(459)](n):!1}function C2(e,t){const n=S2();return C2=function(r,s){return r=r-451,n[r]},C2(e,t)}function S2(){const e=["value","19224396aNppYF","989064IhZSmn","join","7LPwpzD","1028336fHlCyR","221084cjBjJp","931447iSDAoO","reverse","39litIBm","1170430ScfMYR","6566718isVFIu","split","includes","features"];return S2=function(){return e},S2()}function Sm(){const e=Em(BS),t=Em(WS),n=_z();return f.useMemo(()=>{if(e||t&&!n)return!0},[ir.value])}function Em(e){return f.useMemo(()=>fve(e),[ir.value])}function _z(){return f.useMemo(()=>pve(),[ir.value])}const eh=({className:e=""})=>{const t=Sm(),{t:n}=wt();return!t&&a.jsx(it,{className:"ml-2 ".concat(e),variant:"pro",children:n("Pro",{ns:"common"})})};function Iz({id:e}){const{t}=wt(),n=He(!1),{addImageToItemById:r}=lpe(),{uploadImageToItemById:s,uploadImageToItemReset:o}=cpe(),i=f.useRef(null),c=f.useRef(null),u=He(!1);f.useEffect(()=>{var b,g,k,j,S,E;const p=N=>{var T;(T=c.current)==null||T.classList.add("bg-blue-50","!border-blue-400"),N.preventDefault(),N.stopPropagation()},m=N=>{var T;(T=c.current)==null||T.classList.remove("bg-blue-50","!border-blue-400"),N.preventDefault(),N.stopPropagation()},x=N=>{var M;N.preventDefault(),N.stopPropagation();const T=(M=N.dataTransfer)==null?void 0:M.files[0];if(!T)o();else{const L=new FileReader,D=T.type;L.readAsArrayBuffer(T),L.onload=async P=>{var B,z;const A=(B=P.target)==null?void 0:B.result;if(A){const R=Array.from(new Uint8Array(A));u.value=!0,requestAnimationFrame(async()=>{try{await s({itemId:e,buffer:R,fileType:D})}catch($){console.error("Error during file upload",$)}u.value=!1})}o(),n.value=!1,(z=i.current)==null||z.close()}}};if(!c.current)return;(b=c.current)==null||b.addEventListener("dragenter",p),(g=c.current)==null||g.addEventListener("dragleave",m),(k=c.current)==null||k.addEventListener("dragover",p),(j=c.current)==null||j.addEventListener("drop",x);const C=(E=(S=c.current)==null?void 0:S.children)!=null?E:[];for(const N of C)N.addEventListener("dragover",p),N.addEventListener("dragenter",p),N.addEventListener("dragleave",m),N.addEventListener("drop",x);return()=>{var T,M,L,D,P,A;(T=c.current)==null||T.removeEventListener("dragenter",p),(M=c.current)==null||M.removeEventListener("dragleave",m),(L=c.current)==null||L.removeEventListener("dragover",p),(D=c.current)==null||D.removeEventListener("drop",x);const N=(A=(P=c.current)==null?void 0:P.children)!=null?A:[];for(const B of N)B.removeEventListener("dragover",p),B.removeEventListener("dragenter",p),B.removeEventListener("dragleave",m),B.removeEventListener("drop",x)}},[c.current]),f.useEffect(()=>{const p=Il("tauri://file-drop",m=>{var x,C;((x=m.payload)==null?void 0:x.length)>0&&(r({itemId:e,imagePath:m.payload[0]}),n.value=!1,(C=i.current)==null||C.close())});return()=>{p.then(m=>{m()})}},[]);const h=()=>{var p;n.value=!1,o(),(p=i.current)==null||p.close()};return a.jsxs(Qa,{defaultOpen:!1,open:n.value,modal:!0,onOpenChange:p=>{var m;p||((m=i.current)==null||m.close())},children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{tabIndex:0,className:"focus:outline-none",children:a.jsx(De,{text:t("Add image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"p-1.5 border-0 bg-slate-100 flex items-center justify-center hover:bg-slate-50/100 text-slate-400 hover:text-slate-500",onClick:()=>{n.value=!0},children:a.jsx(pL,{size:26,className:"cursor-pointer"})})})})}),a.jsx(Da,{sideOffset:16,align:"center",autoFocus:!0,onOpenAutoFocus:()=>{setTimeout(()=>{var p,m;(p=c.current)==null||p.focus(),(m=c.current)==null||m.click()},300)},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-72 shadow-xl z-100",onEscapeKeyDown:()=>{h()},onPointerDownOutside:()=>{h()},children:n.value&&a.jsxs(fe,{className:"flex-col drop-zone p-1.5 border-2 border-slate-300 border-dashed rounded-md",ref:c,children:[a.jsx(mn,{h:2}),u.value?a.jsx(a2,{size:"large"}):a.jsx(X,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone",children:t("Drop image file here, or use a separate window for drag and drop.",{ns:"dashboard"})}),a.jsx(mn,{h:5,className:"drop-zone"}),a.jsxs(fe,{className:"drop-zone",children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 drop-zone hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{h()},children:t("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-slate-200 drop-zone hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200",onClick:()=>{const p=new lu("drop-image",{skipTaskbar:!0,title:t("Drop Zone",{ns:"common"}),alwaysOnTop:!0,fileDropEnabled:!0,decorations:!0,resizable:!1,minimizable:!1,visible:!1,center:!0,titleBarStyle:"visible",url:"drop-image.html?"+sr.language});p.once(ds.WINDOW_CLOSE_REQUESTED,function(){var m;n.value=!1,(m=i==null?void 0:i.current)==null||m.close()}),p.once("tauri://created",function(){p.setCursorVisible(!1),p.setFocus(),p.setSize(new bj(260,260)),p.center(),p.show()}),p.once("tauri://error",function(){var m;(m=i==null?void 0:i.current)==null||m.close()}),i.current=p},children:t("Open Window",{ns:"common"})})]}),a.jsx(mn,{h:2})]})})]})}function gve(e){var t,n;return a.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(n=e.height)!=null?n:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{d:"m6.033 4.294-.007 7.865M21.25 10.12v-3c0-1.16-.84-2-2-2h-7m-9 9v2c0 1.05.95 2 2 2h3"}),a.jsx("rect",{width:"10",height:"7",x:"11.75",y:"12.707",ry:"2"}),a.jsx("path",{d:"m2.25 8.089 7.928.007"})]})}function Tz({onCallBack:e}){const{t}=wt(),n=He(!1),r=f.useRef(null),s=f.useRef(null);f.useEffect(()=>{const i=Il("tauri://file-drop",c=>{var u,h;((u=c.payload)==null?void 0:u.length)>0&&(e(c.payload[0]),n.value=!1,(h=s.current)==null||h.close())});return()=>{i.then(c=>{c()})}},[]);const o=()=>{var i;n.value=!1,(i=s.current)==null||i.close()};return a.jsxs(Qa,{defaultOpen:!1,open:n.value,modal:!0,onOpenChange:i=>{var c;i||((c=s.current)==null||c.close())},children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{tabIndex:0,className:"focus:outline-none",children:a.jsx(De,{text:t("Drag & Drop Path",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1 h-10 w-10 text-slate-400 border-0 hover:text-blue-400 cl",onClick:()=>{n.value=!0},children:a.jsx(gve,{width:22,height:23,className:"scale-y-[-1]"})})})})})}),a.jsx(Da,{sideOffset:10,align:"center",onOpenAutoFocus:()=>{setTimeout(()=>{var i,c;(i=r.current)==null||i.focus(),(c=r.current)==null||c.click()},300)},className:"bg-gray-100 w-72 shadow-xl p-2",onEscapeKeyDown:()=>{o()},onPointerDownOutside:()=>{o()},children:n.value&&a.jsxs(fe,{className:"flex-col p-1 rounded-md",ref:r,children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold",children:t("We need to open a new window where you can drag & drop file, path or application.",{ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{o()},children:t("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200",onClick:()=>{const i=new lu("drop-path",{skipTaskbar:!0,title:t("Drop Zone",{ns:"common"}),alwaysOnTop:!0,fileDropEnabled:!0,decorations:!0,resizable:!1,minimizable:!1,visible:!1,center:!0,titleBarStyle:"visible",url:"drop-path.html?"+sr.language});i.once(ds.WINDOW_CLOSE_REQUESTED,function(){var c;n.value=!1,(c=s==null?void 0:s.current)==null||c.close()}),i.once("tauri://created",function(){i.setCursorVisible(!1),i.setFocus(),i.setSize(new bj(260,260)),i.center(),i.show()}),i.once("tauri://error",function(){var c;(c=s==null?void 0:s.current)==null||c.close()}),s.current=i},children:t("Open Window",{ns:"common"})})]})]})})]})}const ol={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isTemplate:!1,isLink:!1,isPath:!1,detectedLanguage:""},vve=({itemId:e,isCode:t,isImage:n,isText:r,isForm:s,isLink:o,isCommand:i,isWebRequest:c,isTemplate:u,isWebScraping:h,isPath:p,detectedLanguage:m,children:x})=>{const{t:C}=wt(),{CONST:{APP_DETECT_LANGUAGES_SUPPORTED:b}}=ut(Nr),{updateItemById:g}=ji();return a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:x}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{children:C("TypeMenu:::Clip Type",{ns:"common"})})}),a.jsx(Yt,{}),a.jsx(Kt,{checked:!!r,onClick:()=>{g({updatedItem:{...ol,isText:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(r?"font-semibold":""),children:C("TypeMenu:::Plain Text",{ns:"common"})})}),a.jsx(Kt,{checked:!!o,onClick:()=>{g({updatedItem:{...ol,isLink:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(o?"font-semibold":""),children:C("TypeMenu:::Link or Email",{ns:"common"})})}),a.jsx(Kt,{checked:!!n,onClick:()=>{g({updatedItem:{...ol,isImage:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(n?"font-semibold":""),children:C("TypeMenu:::Image",{ns:"common"})})}),a.jsx(Kt,{checked:!!p,onClick:()=>{g({updatedItem:{...ol,isPath:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(p?"font-semibold":""),children:C("TypeMenu:::File, Path or App",{ns:"common"})})}),a.jsx(Kt,{checked:!!u,onClick:()=>{g({updatedItem:{...ol,isTemplate:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(u?"font-semibold":""),children:C("TypeMenu:::Template Fill",{ns:"common"})})}),a.jsx(Kt,{checked:!!s,onClick:()=>{g({updatedItem:{...ol,isForm:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(s?"font-semibold":""),children:C("TypeMenu:::Form Auto Fill",{ns:"common"})})}),a.jsxs(Ta,{children:[a.jsxs(va,{children:[t?a.jsx(Dt,{className:"mr-2 h-4 w-4"}):a.jsx(J,{className:"mr-2 h-4 w-4"}),a.jsxs(X,{className:"".concat(t?"!font-semibold":""),children:[C("TypeMenu:::Code Snippet",{ns:"common"})," ..."]})]}),a.jsxs(ya,{className:"w-40",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:m?a.jsx(X,{children:Mz(m)}):a.jsx(X,{children:C("TypeMenu:::Select Language",{ns:"common"})})}),a.jsx(Yt,{}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:b.map(k=>a.jsx(Kt,{checked:m===k,className:"".concat(m===k?"font-semibold ":""),onClick:()=>{g({updatedItem:{...ol,isCode:!0,detectedLanguage:k,itemId:e}})},children:Mz(k)},k))})]})]}),a.jsxs(Ta,{children:[a.jsxs(va,{children:[i||c||h?a.jsx(Dt,{className:"mr-2 h-4 w-4"}):a.jsx(J,{className:"mr-2 h-4 w-4"}),a.jsxs(X,{className:"".concat(i||c||h?"!font-semibold":""),children:[C("TypeMenu:::Run, Execute",{ns:"common"}),a.jsx(eh,{})]})]}),a.jsxs(ya,{className:"w-52",children:[a.jsx(Kt,{checked:!!i,onClick:()=>{g({updatedItem:{...ol,isCommand:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(i?"font-semibold":""),children:C("TypeMenu:::Shell Command",{ns:"common"})})}),a.jsx(Kt,{checked:!!c,onClick:()=>{g({updatedItem:{...ol,isWebRequest:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(c?"font-semibold":""),children:C("TypeMenu:::Web Request (HTTP)",{ns:"common"})})}),a.jsx(Kt,{checked:!!h,onClick:()=>{g({updatedItem:{...ol,isWebScraping:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(h?"font-semibold":""),children:C("TypeMenu:::Web Scraper / Parser",{ns:"common"})})})]})]})]})]})};function Mz(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yve({clipId:e,onComplete:t}){const{t:n}=wt(),r=He(!1),s=()=>{r.value=!1,Fo.value=null};f.useEffect(()=>()=>{s()},[]);const{currentCollectionId:o}=ut(hr),{deleteItemById:i}=Lb();return a.jsxs(Qa,{defaultOpen:!1,open:r.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsxs(ye,{variant:"ghost",title:n("Delete Clip",{ns:"dashboard"}),onClick:()=>{r.value=!0,Fo.value=e},className:"px-2 h-7 w-full py-0 text-red-500 dark:!text-red-600 hover:text-red-500 bg-transparent hover:bg-red-100 opacity-80 hover:opacity-100",children:[a.jsx(or,{size:16}),a.jsx(X,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:n("Delete",{ns:"common"})})]})}),a.jsx(Da,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{s()},onPointerDownOutside:()=>{s()},children:r.value&&a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block",children:n("Are you sure you want to delete?",{ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{s()},children:n("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{i({itemId:e,collectionId:o}),t()},children:n("Delete Clip",{ns:"dashboard"})})]})]})})]})}function xve({isOver:e}){const{t}=wt(),n=f.useRef(null);return f.useEffect(()=>{var r;(r=n.current)==null||r.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"})},[n]),a.jsx(J,{ref:n,className:"flex flex-row items-center justify-center border-2 my-2 border-dashed rounded-md w-full h-16 ".concat(e?"bg-slate-50/50 dark:bg-slate-700/50 border-blue-400":"bg-slate-50 dark:bg-slate-700 border-slate-200 dark:border-slate-500"),children:a.jsx(X,{className:"!text-sm !font-medium !text-blue-500 text-center",children:e?t("Drop To Add",{ns:"common"}):a.jsx(Ir,{size:23,className:"".concat(e?"text-blue-400":"text-slate-400")})})})}const bve=f.memo(xve),Lz=["Tab","Enter","TabTab","TabEnter"],Qg={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"},Dz=["1s","2s","3s","4s","5s"],Oz=["Email","Login","Username","Password","Title","Textarea","Phone","Website","Date","Name","First Name","Last Name","Company","Address","City","State","Zip","Country","Province","Text","Number","Credit Card","CVV Code","Exp. Date","Secret","License Key","Occupation","Gender","Age","Description","Birthdate","API Key","SSN","Custom"];function wve({showLinkValidationError:e,localOptions:t}){var i,c,u,h,p,m,x,C;const{t:n}=wt(),r=He(void 0),s=He(null),o=Gs(r.value,300);return f.useEffect(()=>{if(o){if(e.value&&(e.value=void 0),o.length>5){const b=wr().match(o);!b||b.length>1?e.value=!0:e.value=!1}t.value.formOptions||(t.value.formOptions={fields:[],openUrl:null}),t.value={...t.value,formOptions:{...t.value.formOptions,openUrl:o}}}},[o]),a.jsxs(J,{className:"select-none mt-1",children:[t.value.formOptions.openUrl!=null&&a.jsxs(fe,{className:"text-normal",children:[a.jsx(De,{asChild:!0,text:n("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:a.jsx(ye,{variant:"outline",size:"mini",className:"px-2 h-10 pointer-events-none text-slate-500 dark:text-slate-200 border font-semibold text-xs bg-slate-100 dark:bg-slate-700/80 group hover:text-blue-500 mr-1 flex items-center ".concat(((i=t.value.formOptions)==null?void 0:i.isOpenUrlDisabled)===!0?"opacity-70 line-through":""),children:a.jsx("span",{children:n("Open",{ns:"dashboard"})})})}),a.jsx(Gt,{defaultValue:(u=(c=t.value.formOptions)==null?void 0:c.openUrl)!=null?u:"",placeholder:n("Enter URL",{ns:"dashboard"}),disabled:(h=t.value.formOptions)==null?void 0:h.isOpenUrlDisabled,classNameInput:"pr-7 text-sm focus:border- ".concat(e.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(e.value===!1?"!border-green-600 !focus:border-green-600":""," ").concat(((p=t.value.formOptions)==null?void 0:p.isOpenUrlDisabled)===!0?"!bg-gray-100 dark:!bg-gray-700 opacity-70":""),suffix:a.jsx(J,{className:"absolute top-3 right-2",children:e.value?a.jsx(De,{text:n("Website URL might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):e.value===!1&&a.jsx(De,{text:n("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:b=>{r.value=b.target.value}}),a.jsx(ye,{variant:"ghost",size:"mini",title:n("Open URL Disable / Enable",{ns:"dashboard"}),onClick:()=>{var b;t.value={...t.value,formOptions:{...t.value.formOptions,isOpenUrlDisabled:!((b=t.value.formOptions)!=null&&b.isOpenUrlDisabled)}}},className:"".concat((m=t.value.formOptions)!=null&&m.isOpenUrlDisabled?"opacity-70":""," pl-2 h-8 flex items-center hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500"),children:(x=t.value.formOptions)!=null&&x.isOpenUrlDisabled?a.jsx(Ya,{size:14}):a.jsx(hs,{size:14})}),a.jsx(ye,{variant:"ghost",size:"mini",title:n("Remove Open URL",{ns:"dashboard"}),onClick:()=>{t.value={...t.value,formOptions:{...t.value.formOptions,openUrl:null,isOpenUrlDisabled:!1}}},className:"pl-3 h-10 text-sm font-semibold hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]}),a.jsx(J,{className:"my-2",children:a.jsxs(fe,{className:"gap-3 w-full justify-start",children:[a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[n("Add Form Field",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsxs(Oe,{className:"text-xs",onClick:()=>{s.value=null,t.value.formOptions||(t.value.formOptions={fields:[]});const b=[...t.value.formOptions.fields];b.push({id:Date.now().toString(),type:"section",pressKeysAfterPaste:aE[0],isEnable:!0,value:""}),t.value={...t.value,formOptions:{...t.value.formOptions,fields:b}}},children:[a.jsx(Ir,{size:12,className:"mr-1"}),n("Add Section",{ns:"dashboard"})]}),a.jsx(Yt,{}),a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:n("Form Fields",{ns:"dashboard"})})}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:Oz.map(b=>a.jsx(Oe,{className:"text-xs",onClick:()=>{var j;t.value.formOptions||(t.value.formOptions={fields:[]});const g=[...t.value.formOptions.fields],k=b==="Text"?"text":b==="Number"?"number":b==="Password"||b==="Secret"||b==="API Key"||b==="License Key"||b==="SSN"?"password":b==="CVV Code"?"passwordCode":b==="Textarea"?"textarea":b==="Credit Card"?"creditcard":"text";g.push({id:Date.now().toString(),label:b,type:k,pressKeysAfterPaste:aE[0],isEnable:!0,value:""}),t.value={...t.value,formOptions:{...t.value.formOptions,fields:g}},b==="Custom"&&(s.value=(j=g[g.length-1].id)!=null?j:null)},children:b},b))})]})]}),a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[n("Key Press",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:n("Add Key Press",{ns:"dashboard"})})}),a.jsx(Yt,{}),aE.map(b=>a.jsx(Oe,{className:"text-xs",onClick:()=>{t.value.formOptions||(t.value.formOptions={fields:[]});const g=[...t.value.formOptions.fields];g.push({id:Date.now().toString(),isPressKeysOnly:!0,isEnable:!0,pressKeysAfterPaste:b}),t.value={...t.value,formOptions:{...t.value.formOptions,fields:g}}},children:Qg[b]},b))]})]}),a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[n("Delay",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:n("Add Delay Time",{ns:"dashboard"})})}),a.jsx(Yt,{}),Dz.map(b=>a.jsxs(Oe,{className:"text-xs",onClick:()=>{s.value=null,t.value.formOptions||(t.value.formOptions={fields:[]});const g=[...t.value.formOptions.fields];g.push({id:Date.now().toString(),isDelayOnly:!0,value:b,isEnable:!0}),t.value={...t.value,formOptions:{...t.value.formOptions,fields:g}}},children:[b==="1s"&&"1 ".concat(n("Second",{ns:"common"})),b==="2s"&&"2 ".concat(n("Seconds",{ns:"common"})),b==="3s"&&"3 ".concat(n("Seconds",{ns:"common"})),b==="4s"&&"4 ".concat(n("Seconds",{ns:"common"})),b==="5s"&&"5 ".concat(n("Seconds",{ns:"common"}))]},b))]})]}),t.value.formOptions.openUrl==null&&a.jsx(X,{className:"!text-blue-500 hover:underline cursor-pointer text-center",size:"xs",onClick:()=>{t.value.formOptions||(t.value.formOptions={fields:[]}),t.value={...t.value,formOptions:{...t.value.formOptions,openUrl:"",isOpenUrlDisabled:!1}}},children:n("Add Open URL",{ns:"dashboard"})})]})}),(C=t.value.formOptions)==null?void 0:C.fields.map((b,g)=>{var T,M,L,D,P,A,B,z;const k=b.isLabelOnTop,j=b.isLabelHidden,S=b.type==="section",E=b.id===s.value,N=b.type==="textarea";return a.jsxs(fe,{className:"".concat(b.type!=="section"?"mb-1":"mt-1"," group ").concat(k?"flex-col items-start":"items-center"," ").concat(N?"!mt-2 !mb-1":""),children:[!j&&a.jsx(a.Fragment,{children:(b.label||E)&&b.type!=="section"?a.jsx(X,{className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(k?"!justify-start pl-1":"!justify-end"),children:E?a.jsxs(fe,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[a.jsx(Gt,{defaultValue:b.label,small:!0,placeholder:n("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:R=>{(R.key==="Enter"||R.key==="Escape")&&(s.value=null,t.value={...t.value,formOptions:{...t.value.formOptions}})},onChange:R=>{b.label=R.target.value.trim()}}),a.jsx(ye,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{s.value=null,t.value={...t.value,formOptions:{...t.value.formOptions}}},title:n("Done Edit",{ns:"common"}),children:a.jsx(Dt,{size:18})})]}):a.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(k?"text-left":"text-right max-w-[160px]"),children:b.label})}):a.jsx("div",{className:"pr-1 min-w-[80px]"})}),a.jsxs(fe,{className:"w-full",children:[a.jsx(fe,{className:"gap-0.5 flex-col w-full items-start ".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:a.jsxs(fe,{className:"w-full gap-1",children:[b.isDelayOnly||b.isPressKeysOnly?a.jsxs(fe,{className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[b.isDelayOnly&&a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(it,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[n("Delay",{ns:"dashboard"})," ",b.value,a.jsx(jn,{size:13,className:"ml-0.5 mr-0"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:n("Delay",{ns:"dashboard"})}),a.jsx(Yt,{}),Dz.map(R=>a.jsxs(Oe,{className:"text-xs",onClick:()=>{s.value=null,b.value=R,t.value={...t.value}},children:[R==="1s"&&"1 Second",R==="2s"&&"2 Seconds",R==="3s"&&"3 Seconds",R==="4s"&&"4 Seconds",R==="5s"&&"5 Seconds"]},R))]})]}),b.isPressKeysOnly&&b.pressKeysAfterPaste&&a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",variant:"ghost",disabled:b.isEnable===!1,title:n("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:a.jsxs(it,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[n("Press",{ns:"dashboard"})," ",Qg[b.pressKeysAfterPaste],a.jsx(jn,{size:13,className:"ml-0.5 mr-0"})]})})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:n("Key Press",{ns:"dashboard"})})}),a.jsx(Yt,{}),Lz.map(R=>a.jsx(Oe,{className:"text-xs",onClick:()=>{b.pressKeysAfterPaste=R,t.value={...t.value,formOptions:{...t.value.formOptions}}},children:Qg[R]},R)),a.jsx(Yt,{}),a.jsxs(Oe,{className:"text-xs text-red-400",onClick:()=>{t.value.formOptions.fields=t.value.formOptions.fields.filter(R=>R.id!==b.id),t.value={...t.value}},children:[a.jsx(X,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:n("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(Rp,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})]}):b.type==="password"||b.type==="passwordCode"?a.jsx(Gt,{small:!0,placeholder:b.type==="passwordCode"?n("Enter code",{ns:"dashboard"}):n("Enter secret value",{ns:"dashboard"}),autoFocus:g===((T=t.value.formOptions.fields)==null?void 0:T.length)-1&&t.value.formOptions.fields[g].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:b.isEnable===!1,isPassword:!0,numbersOnly:b.type==="passwordCode",showHidePassword:!0,className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:R=>{b.value=R.target.value.trim()},defaultValue:b.value}):b.type==="creditcard"?a.jsx(qg,{small:!0,placeholder:n("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:b.isEnable===!1,autoFocus:g===((M=t.value.formOptions.fields)==null?void 0:M.length)-1&&t.value.formOptions.fields[g].value==="",className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:R=>{b.value=R},ccNumber:b.value}):S?a.jsx(Gt,{small:!0,placeholder:n("Enter section label",{ns:"dashboard"}),classNameInput:"text-sm font-semibold border-b border-0 border-transparent hover:border-gray-200 focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis pl-1.5 dark:!text-slate-300 dark:bg-slate-900",autoFocus:g===((L=t.value.formOptions.fields)==null?void 0:L.length)-1&&t.value.formOptions.fields[g].value==="",onChange:R=>{b.value=R.target.value.trim()},defaultValue:b.value}):b.type==="textarea"?a.jsx(go,{placeholder:n("Enter field value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:b.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:g===((D=t.value.formOptions.fields)==null?void 0:D.length)-1&&t.value.formOptions.fields[g].value==="",maxRows:2,value:b.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:R=>{R.stopPropagation()},onChange:R=>{b.value=R.target.value,t.value={...t.value,formOptions:{...t.value.formOptions}}}}):a.jsx(Gt,{small:!0,placeholder:n("Enter field value",{ns:"dashboard"}),autoFocus:g===((P=t.value.formOptions.fields)==null?void 0:P.length)-1&&t.value.formOptions.fields[g].value===""&&t.value.formOptions.fields[g].label!=="Custom",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:b.isEnable===!1,type:b.type==="number"?"number":"text",className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:R=>{b.value=R.target.value.trim()},defaultValue:b.value}),b.isDelayOnly||b.isPressKeysOnly||S?a.jsx(a.Fragment,{}):a.jsx(fe,{children:a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",variant:"ghost",disabled:b.isEnable===!1,title:n("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:b.pressKeysAfterPaste?a.jsxs(it,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[Qg[b.pressKeysAfterPaste],a.jsx(jn,{size:13,className:"ml-0.5 mr-0"})]}):a.jsxs(it,{variant:"secondary",className:"pl-1 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[a.jsx(Ir,{size:13,className:"ml-0.5 mr-0"}),a.jsx(jn,{size:13,className:"ml-0.5 mr-0"})]})})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:n("Key Press After",{ns:"dashboard"})})}),a.jsx(Yt,{}),Lz.map(R=>a.jsx(Oe,{className:"text-xs",onClick:()=>{b.pressKeysAfterPaste=R,t.value={...t.value,formOptions:{...t.value.formOptions}}},children:Qg[R]},R)),a.jsx(Yt,{}),a.jsxs(Oe,{className:"text-xs text-red-400",onClick:()=>{b.pressKeysAfterPaste=null,t.value={...t.value,formOptions:{...t.value.formOptions}}},children:[a.jsx(X,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:n("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(Rp,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})})]})}),a.jsxs(fe,{className:"gap-1 ml-0.5",children:[b.type!=="section"&&a.jsx(ye,{size:"mini",title:n("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var R;s.value=null,t.value={...t.value,formOptions:{...t.value.formOptions,fields:(R=t.value.formOptions)==null?void 0:R.fields.map(($,_)=>_===g?{...$,isEnable:!$.isEnable}:$)}}},children:(A=t.value.formOptions)!=null&&A.fields&&((z=(B=t.value.formOptions)==null?void 0:B.fields[g])!=null&&z.isEnable)?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",title:n("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{t.value={...t.value,formOptions:{...t.value.formOptions,fields:Kr(t.value.formOptions.fields||[],g,g-1)}}},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:a.jsx(bi,{size:14})})}),a.jsxs(Cn,{align:"end",children:[a.jsxs(Oe,{disabled:g===0,onClick:()=>{t.value={...t.value,formOptions:{...t.value.formOptions,fields:Kr(t.value.formOptions.fields||[],g,g-1)}}},className:"text-[13px] py-1",children:[a.jsx(X,{size:"xs",children:n("Move Up",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(rg,{size:13})})]}),a.jsxs(Oe,{disabled:t.value.formOptions.fields?g===t.value.formOptions.fields.length-1:!1,onClick:()=>{t.value={...t.value,formOptions:{...t.value.formOptions,fields:Kr(t.value.formOptions.fields||[],g,g+1)}}},className:"text-[13px] py-1",children:[a.jsx(X,{size:"xs",children:n("Move Down",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(ng,{size:13})})]}),a.jsx(Yt,{}),!S&&!j&&a.jsxs(Oe,{onClick:()=>{var R;E?s.value=null:s.value=(R=b.id)!=null?R:null},children:[E?a.jsx(X,{size:"xs",children:n("Done Edit",{ns:"common"})}):a.jsx(X,{size:"xs",children:n("Edit Label",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(Dx,{size:13})})]}),b.type!=="section"&&a.jsx(a.Fragment,{children:b.isLabelOnTop?a.jsxs(Oe,{onClick:()=>{var R;s.value=null,t.value={...t.value,formOptions:{...t.value.formOptions,fields:(R=t.value.formOptions)==null?void 0:R.fields.map(($,_)=>_===g?{...$,isLabelHidden:!1,isLabelOnTop:!1}:$)}}},children:[a.jsx(X,{size:"xs",children:n("Label Left",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(VM,{size:13})})]}):a.jsxs(Oe,{onClick:()=>{var R;s.value=null,t.value={...t.value,formOptions:{...t.value.formOptions,fields:(R=t.value.formOptions)==null?void 0:R.fields.map(($,_)=>_===g?{...$,isLabelHidden:!1,isLabelOnTop:!0}:$)}}},children:[a.jsx(X,{size:"xs",children:n("Label Top",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(qM,{size:13})})]})}),j?a.jsxs(Oe,{onClick:()=>{var R;s.value=null,t.value={...t.value,formOptions:{...t.value.formOptions,fields:(R=t.value.formOptions)==null?void 0:R.fields.map(($,_)=>_===g?{...$,isLabelHidden:!1}:$)}}},children:[S?a.jsx(X,{size:"xs",children:n("Label Offset",{ns:"dashboard"})}):a.jsx(X,{size:"xs",children:n("Show Label",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(GM,{size:13})})]}):a.jsxs(Oe,{onClick:()=>{var R;t.value={...t.value,formOptions:{...t.value.formOptions,fields:(R=t.value.formOptions)==null?void 0:R.fields.map(($,_)=>_===g?{...$,isLabelHidden:!0}:$)}}},children:[S?a.jsx(X,{size:"xs",children:n("Label on Left",{ns:"dashboard"})}):a.jsx(X,{size:"xs",children:n("Hide Label",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(FC,{size:13})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var R,$;t.value={...t.value,formOptions:{...t.value.formOptions,fields:($=(R=t.value.formOptions)==null?void 0:R.fields)==null?void 0:$.filter((_,U)=>U!==g)}}},children:[a.jsx(X,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:n("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(or,{size:13})})]})]})]})]})]})]},b.id)})]})}function kve({clipValue:e,templateMissingFields:t,templateFoundFields:n,checkForTemplateFieldsCallback:r,isLargeView:s,localOptions:o}){var g;const{t:i}=wt(),c=He(null),u=He(null),h=He(null),p=He(null),m=f.useRef(null),x=He(!1),C=He(Date.now().toString()),b=["text","textarea","select"];return a.jsxs(J,{className:"select-none mt-1",children:[a.jsx(J,{className:"my-2",children:a.jsxs(fe,{className:"gap-3 w-full justify-start",children:[a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[i("Add Template Field",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:i("General Fields",{ns:"dashboard"})})}),a.jsx(Yt,{}),b.map(k=>a.jsxs(Oe,{className:"text-xs",onClick:()=>{var S;c.value=null,o.value.templateOptions||(o.value.templateOptions=[]);const j=o.value.templateOptions.map(E=>{var N,T,M;return(N=E.label)!=null&&N.trim()||(E.label="".concat(E.type&&((T=E.type)==null?void 0:T.charAt(0).toUpperCase())+((M=E.type)==null?void 0:M.slice(1))," ").concat(i("Field",{ns:"dashboard"}))),E});j.push({id:Date.now().toString(),type:k,label:"".concat(k.charAt(0).toUpperCase()+k.slice(1)),isEnable:!0,value:""}),o.value={...o.value,templateOptions:[...j]},c.value=(S=j[j.length-1].id)!=null?S:null},children:[a.jsx(Ir,{size:12,className:"mr-1"}),i("{{type}} Field",{ns:"dashboard",type:k.charAt(0).toUpperCase()+k.slice(1)})]},k)),a.jsx(Yt,{}),a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:i("Common Fields",{ns:"dashboard"})})}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:Oz.map(k=>a.jsx(Oe,{className:"text-xs",onClick:()=>{var T,M;o.value.templateOptions||(o.value.templateOptions=[]),x.value=!1;const j=[...o.value.templateOptions],S=k==="Text"?"text":k==="Number"?"number":k==="Password"||k==="Secret"||k==="API Key"||k==="License Key"||k==="SSN"?"password":k==="CVV Code"?"passwordCode":k==="Textarea"?"textarea":k==="Credit Card"?"creditcard":"text",E=(T=o.value.templateOptions)==null?void 0:T.every(L=>L.label!==k);E||(x.value=!0);const N=E?k:"".concat(k," ").concat(o.value.templateOptions.length+1);j.push({id:Date.now().toString(),label:N,type:S,isEnable:!0,value:""}),o.value={...o.value,templateOptions:j},k==="Custom"&&(c.value=(M=j[j.length-1].id)!=null?M:null)},children:k},k))}),a.jsx(Yt,{}),a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:a.jsx(X,{children:i("Special Field",{ns:"dashboard"})})}),a.jsxs(Oe,{className:"text-xs",onClick:()=>{c.value=null,o.value.templateOptions||(o.value.templateOptions=[]);const k=o.value.templateOptions.map(j=>j);k.push({id:Date.now().toString(),type:"text",label:"Clipboard",isEnable:!0,value:""}),o.value={...o.value,templateOptions:[...k]}},children:[a.jsx(Ir,{size:12,className:"mr-1"}),i("Clipboard",{ns:"dashboard"})]})]})]}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[i("Fields Value",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})})}),a.jsx(Cn,{sideOffset:12,align:"center",children:a.jsxs(Oe,{className:"text-center items-center justify-center py-1 text-xs",onSelect:()=>{o.value.templateOptions=o.value.templateOptions.map(k=>(k.value="",k)),o.value={...o.value,templateOptions:[...o.value.templateOptions]},C.value=Date.now().toString()},children:[a.jsx(X,{children:i("Clear All Fields",{ns:"dashboard"})}),a.jsx(XC,{size:14,className:"ml-1 text-slate-400"})]})})]})]})}),(g=o.value.templateOptions)==null?void 0:g.map((k,j)=>{var L,D,P,A,B,z,R,$;const S=k.id===c.value,E=k.type==="textarea",N=k.isLabelOnTop,T=(L=k.selectOptions)==null?void 0:L.find(_=>_===k.value),M=!((D=k.selectOptions)!=null&&D.length);return a.jsxs(fe,{className:"mb-1 group ".concat(N?"flex-col items-start":"items-center"," ").concat(E?"!mt-2 !mb-1":""),children:[k.label||S?a.jsx(fe,{className:"".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(N?"!justify-start pl-1":"!justify-end"),children:S?a.jsxs(fe,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[a.jsx(Gt,{defaultValue:k.label,small:!0,placeholder:i("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:_=>{var U;(_.key==="Enter"||_.key==="Escape")&&(c.value=null,x.value=!1,(U=o.value.templateOptions)!=null&&U.every((K,W)=>W!==j?K.label!==k.label:!0)||(k.label="".concat(k.label," ").concat(j+1)),o.value={...o.value,templateOptions:[...o.value.templateOptions]})},onChange:_=>{k.label=_.target.value.trim()}}),a.jsx(ye,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{c.value=null,o.value={...o.value,templateOptions:[...o.value.templateOptions]}},title:i("Done Edit",{ns:"common"}),children:a.jsx(Dt,{size:18})})]}):a.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(N?"text-left":"text-right max-w-[160px]"),children:k.label})}):a.jsx("div",{className:"pr-1 min-w-[80px]"}),a.jsxs(fe,{className:"w-full",children:[a.jsx(fe,{className:"gap-0.5 flex-col w-full items-start ".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:a.jsx(fe,{className:"w-full gap-1",children:k.type==="password"||k.type==="passwordCode"?a.jsx(Gt,{small:!0,placeholder:k.type==="passwordCode"?i("Enter code",{ns:"dashboard"}):i("Enter secret value",{ns:"dashboard"}),autoFocus:j===o.value.templateOptions.length-1&&o.value.templateOptions[j].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:k.isEnable===!1,isPassword:!0,numbersOnly:k.type==="passwordCode",showHidePassword:!0,className:"".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:_=>{k.value=_.target.value.trim()},defaultValue:k.value},C.value):k.type==="creditcard"?a.jsx(qg,{small:!0,placeholder:i("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:k.isEnable===!1,autoFocus:j===((P=o.value.templateOptions)==null?void 0:P.length)-1&&o.value.templateOptions[j].value==="",className:"".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:_=>{k.value=_},ccNumber:k.value},C.value):k.type==="textarea"?a.jsx(go,{placeholder:i("Enter default value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:k.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:j===o.value.templateOptions.length-1&&o.value.templateOptions[j].value===""&&o.value.templateOptions[j].label!=="Textarea",maxRows:2,value:k.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:_=>{_.stopPropagation()},onChange:_=>{k.value=_.target.value,o.value={...o.value,templateOptions:[...o.value.templateOptions]}}},C.value):k.type==="select"?a.jsx(fe,{className:"justify-start items-center w-full my-1",children:u.value!==k.id&&h.value!==k.id?a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",variant:"ghost",disabled:k.isEnable===!1,className:"rounded-sm font-semibold hover:bg-transparent ml-0 px-2 py-1 w-full border border-slate-300 hover:border-blue-500 dark:border-slate-800 dark:hover:border-blue-500 dark:bg-slate-900 dark:hover:bg-slate-900 dark:text-slate-300 dark:hover:text-blue-500",children:a.jsxs(fe,{className:"flex items-center justify-start w-full gap-1",children:[a.jsx(X,{className:"!text-slate-400 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:M?i("Select is empty",{ns:"common"}):T||i("Select default",{ns:"common"})}),a.jsx(fe,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:a.jsx(jn,{size:13})})]})})}),a.jsxs(Cn,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:M?a.jsx(X,{children:i("Select is Empty",{ns:"common"})}):a.jsx(X,{children:i("Select Default Option",{ns:"dashboard"})})}),!M&&a.jsxs(a.Fragment,{children:[a.jsx(Yt,{}),(B=(A=o.value.templateOptions[j])==null?void 0:A.selectOptions)==null?void 0:B.map((_,U)=>a.jsxs(Kt,{checked:k.value===_,onSelect:()=>{k.value=_,o.value={...o.value,templateOptions:[...o.value.templateOptions]}},children:[a.jsx(X,{className:"text-xs ".concat(k.value===_?"font-semibold":""),children:_}),k.value===_&&a.jsxs(fe,{className:"ml-auto gap-2 pl-2 opacity-60 hover:opacity-100",children:[a.jsx(Dx,{size:13,className:"cursor-pointer hover:text-blue-500 dark:hover:text-blue-400",onClick:()=>{var K;h.value=null,p.value=_,u.value=(K=k.id)!=null?K:null}}),a.jsx(e3,{size:13,className:"cursor-pointer hover:text-red-500 dark:hover:text-red-400",onClick:K=>{var G,Z,F,V,q;K.stopPropagation();const W=(Z=(G=k.selectOptions)==null?void 0:G.indexOf(_))!=null?Z:-1;if(k.selectOptions=(F=k.selectOptions)==null?void 0:F.filter(ne=>ne!==_),W!==-1){const ne=(V=k.selectOptions)==null?void 0:V[W-1],Q=(q=k.selectOptions)==null?void 0:q[W];k.value=ne||Q||void 0}o.value={...o.value,templateOptions:[...o.value.templateOptions]}}})]})]},U))]}),a.jsx(Yt,{}),a.jsx(Oe,{className:"text-center items-center justify-center py-0.5 text-xs",onClick:()=>{var _;M&&(k.selectOptions=[]),p.value=null,u.value=null,h.value=(_=k.id)!=null?_:null},children:a.jsxs(X,{size:"xs",className:"!text-blue-500 dark:!text-blue-400",children:[a.jsx(Ir,{size:13}),M?i("Add First Option",{ns:"common"}):i("Add Option",{ns:"common"})]})})]})]}):a.jsxs(a.Fragment,{children:[a.jsx(Gt,{small:!0,placeholder:i("Enter select option",{ns:"dashboard"}),autoFocus:!!o.value.templateOptions[j].label,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:k.isEnable===!1,type:"text",className:"".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),onKeyDown:_=>{var U,K,W;_.key==="Escape"?(p.value&&(k.value=p.value),u.value=null,p.value=null,h.value=null):_.key==="Enter"&&(p.value&&u.value===k.id?k.selectOptions=(U=k.selectOptions)==null?void 0:U.map(G=>G===p.value&&k.value||G):h.value===k.id&&k.value&&!((K=k.selectOptions)!=null&&K.includes(k.value))&&((W=k.selectOptions)==null||W.push(k.value)),o.value={...o.value,templateOptions:[...o.value.templateOptions]},p.value=null,u.value=null,h.value=null)},onChange:_=>{k.value=_.target.value.trim()},defaultValue:h.value===k.id?"":k.value},C.value),a.jsx(ye,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{var _,U,K;p.value&&u.value===k.id?k.selectOptions=(_=k.selectOptions)==null?void 0:_.map(W=>W===p.value&&k.value||W):h.value===k.id&&k.value&&!((U=k.selectOptions)!=null&&U.includes(k.value))&&((K=k.selectOptions)==null||K.push(k.value)),o.value={...o.value,templateOptions:[...o.value.templateOptions]},p.value=null,u.value=null,h.value=null},title:h.value===k.id?i("Add Option",{ns:"common"}):i("Done Edit",{ns:"common"}),children:h.value===k.id?a.jsx(Ir,{size:18}):u.value===k.id&&a.jsx(Dt,{size:18})}),a.jsx(ye,{size:"mini",variant:"ghost",className:"h-8 w-8 text-slate-400 dark:bg-transparent",onClick:()=>{p.value&&(k.value=p.value),u.value=null,p.value=null,h.value=null},title:i("Cancel",{ns:"common"}),children:a.jsx(Rn,{size:15})})]})}):((z=k.label)==null?void 0:z.toLocaleLowerCase())!=="clipboard"?a.jsx(Gt,{small:!0,placeholder:i("Enter default value",{ns:"dashboard"}),autoFocus:o.value.templateOptions[j].label!=="Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:k.isEnable===!1,type:k.type==="number"?"number":"text",className:"".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:_=>{k.value=_.target.value.trim()},defaultValue:k.value},C.value):a.jsx(Gt,{small:!0,placeholder:i("This field allows to insert text from clipboard",{ns:"dashboard"}),autoFocus:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(k.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")})})}),a.jsxs(fe,{className:"gap-1 ml-0.5",children:[k.type!=="section"&&a.jsx(ye,{size:"mini",title:i("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var _;c.value=null,o.value={...o.value,templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((U,K)=>K===j?{...U,isEnable:!U.isEnable}:U)]}},children:o.value.templateOptions&&((R=o.value.templateOptions[j])!=null&&R.isEnable)?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",title:i("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{o.value={...o.value,templateOptions:[...Kr(o.value.templateOptions||[],j,j-1)]}},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:a.jsx(bi,{size:14})})}),a.jsxs(Cn,{align:"end",children:[a.jsxs(Oe,{disabled:j===0,onClick:()=>{o.value={...o.value,templateOptions:[...Kr(o.value.templateOptions||[],j,j-1)]}},className:"text-[13px] py-1",children:[a.jsx(X,{size:"xs",children:i("Move Up",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(rg,{size:13})})]}),a.jsxs(Oe,{disabled:o.value.templateOptions?j===o.value.templateOptions.length-1:!1,onClick:()=>{o.value={...o.value,templateOptions:[...Kr(o.value.templateOptions||[],j,j+1)]}},className:"text-[13px] py-1",children:[a.jsx(X,{size:"xs",children:i("Move Down",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(ng,{size:13})})]}),a.jsx(Yt,{}),(($=k.label)==null?void 0:$.toLocaleLowerCase())!=="clipboard"&&a.jsxs(Oe,{onClick:()=>{var _;S?c.value=null:c.value=(_=k.id)!=null?_:null},children:[S?a.jsx(X,{size:"xs",children:i("Done Edit",{ns:"common"})}):a.jsx(X,{size:"xs",children:i("Edit Label",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(Dx,{size:13})})]}),k.isLabelOnTop?a.jsxs(Oe,{onClick:()=>{var _;c.value=null,o.value={...o.value,templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((U,K)=>K===j?{...U,isLabelOnTop:!1}:U)]}},children:[a.jsx(X,{size:"xs",children:i("Label Left",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(VM,{size:13})})]}):a.jsxs(Oe,{onClick:()=>{var _;c.value=null,o.value={...o.value,templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((U,K)=>K===j?{...U,isLabelOnTop:!0}:U)]}},children:[a.jsx(X,{size:"xs",children:i("Label Top",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(qM,{size:13})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var _;o.value={...o.value,templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.filter((U,K)=>K!==j)]},r()},children:[a.jsx(X,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:i("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(or,{size:13})})]})]})]})]})]})]},j)}),x.value&&a.jsxs(X,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[i("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),a.jsx(Rn,{className:"absolute top-0 right-0 m-2 bg-yellow-50 dark:bg-yellow-900 z-10 cursor-pointer hover:bg-yellow-100 dark:hover:bg-yellow-800",size:14,onClick:()=>{x.value=!1}})]}),t.value.length>0&&a.jsxs(fe,{className:"rounded-md gap-2 my-3 items-start justify-start flex-wrap !text-amber-800 dark:!text-amber-400 text-[13px] bg-yellow-50 dark:bg-amber-950 p-2",children:[a.jsxs(X,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[a.jsx(Ho,{size:13,className:"mr-1"}),i("Found in template but missing from fields definition",{ns:"common"}),":"]}),t==null?void 0:t.value.map((k,j)=>a.jsx(J,{className:"cursor-pointer",onClick:()=>{var T;o.value.templateOptions||(o.value.templateOptions=[]),x.value=!1;const S=[...o.value.templateOptions],E=(T=o.value.templateOptions)==null?void 0:T.every(M=>M.label!==k);E||(x.value=!0);const N=E?k:"".concat(k," ").concat(o.value.templateOptions.length+1);S.push({id:Date.now().toString(),label:N,type:"text",isEnable:!0,value:""}),o.value={...o.value,templateOptions:S},r()},children:a.jsxs(it,{variant:"outline",className:"bg-red-50 dark:bg-red-950/80 hover:bg-blue-50 dark:hover:bg-blue-950/80 border-red-100 dark:border-red-900 hover:border-blue-100 dark:hover:border-blue-800 group text-normal pr-2.5",children:[a.jsx(De,{text:i("Add to template fields",{ns:"common"}),sideOffset:5,isCompact:!0,side:"bottom",children:a.jsxs(fe,{className:"group !text-red-500 dark:!text-red-400 hover:!text-blue-500 dark:hover:!text-blue-400 font-semibold mr-0.5",children:[a.jsx(KM,{size:12,className:"mr-0.5 group-hover:block hidden"}),a.jsx(Ir,{size:12,className:"mr-0.5 group-hover:hidden"}),k]})}),a.jsx(De,{text:i("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:a.jsx(Rn,{onClick:S=>{var E;S.preventDefault(),S.stopPropagation(),(E=m.current)==null||E.handleRemoveTemplateField(k)},size:12,className:"ml-0.5 mr-0 hover:!text-red-600 dark:hover:!text-red-500 group-hover:text-blue-300 dark:group-hover:text-blue-400 text-red-300 dark:text-red-400 cursor-pointer"})},j)]})},j))]}),a.jsxs(a.Fragment,{children:[o.value.templateOptions.length>0&&a.jsxs(fe,{className:"gap-2 my-3 items-start justify-start flex-wrap",children:[o.value.templateOptions.map((k,j)=>{var S;return!k.label||!k.label.length?null:k.label&&(n!=null&&n.value.includes((S=k.label)==null?void 0:S.toLocaleLowerCase()))?a.jsx(De,{text:k.isEnable?k.label==="Clipboard"?a.jsx(Ps,{i18nKey:"Field <b>{{Clipboard}}</b> has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template",ns:"common"}):a.jsx(Ps,{i18nKey:"Field <b>{{<b>{{name}}</b>}}</b> has been found in the template",ns:"dashboard",values:{name:k.label}}):a.jsx(Ps,{i18nKey:"Disabled field <b>{{<b>{{name}}</b>}}</b> has been found in the template",ns:"dashboard",values:{name:k.label}}),isCompact:!0,side:"bottom",children:a.jsx(X,{className:"".concat(k.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-500"," !font-normal group"),size:"xs",children:a.jsxs(it,{variant:"outline",className:"".concat(k.isEnable?"bg-green-100 dark:bg-green-900 hover:bg-green-100/70 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"bg-gray-100 dark:bg-gray-800/70 hover:bg-gray-100/70 dark:hover:bg-gray-700/70 border-gray-200 dark:border-gray-700"," text-normal pr-2.5 group-hover:pr-1.5"),children:[a.jsx(Dt,{size:12,className:"mr-0.5"}),k.label,a.jsx(De,{text:i("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:a.jsx(Rn,{onClick:()=>{var E;(E=m.current)==null||E.handleRemoveTemplateField(k.label)},size:12,className:"".concat(k.isEnable?"text-green-600 dark:text-green-400":"text-gray-400 dark:text-gray-500"," ml-1 hover:!text-red-600 dark:hover:!text-red-300 group-hover:block animate-in fade-in hidden cursor-pointer")})})]})})},j):a.jsx(De,{text:k.isEnable?k.label==="Clipboard"?a.jsx(Ps,{i18nKey:"Add <b>{{Clipboard}}</b> field to template. This allows you to copy text to the clipboard, and it will be inserted into the template",ns:"common"}):a.jsx(Ps,{i18nKey:"Add field <b>{{<b>{{name}}</b>}}</b> into the template",ns:"dashboard",values:{name:k.label}}):a.jsx(Ps,{i18nKey:"Disabled field <b>{{<b>{{name}}</b>}}</b>",ns:"dashboard",values:{name:k.label}}),isCompact:!0,side:"bottom",children:a.jsx(X,{className:"".concat(k.isEnable?"!text-slate-500 dark:!text-slate-600 hover:!text-blue-500 dark:hover:!text-blue-700 cursor-pointer":"!text-gray-300 dark:!text-gray-600 "," group !font-normal"),size:"xs",onClick:()=>{var E;k.isEnable&&((E=m==null?void 0:m.current)==null||E.handleAddText("{{".concat(k.label,"}}")))},children:a.jsxs(it,{variant:"outline",className:"".concat(k.isEnable?"bg-white dark:bg-slate-300/90 hover:bg-blue-50 dark:hover:bg-blue-300 border-slate-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800":"bg-gray-50 dark:bg-gray-800/80 hover:bg-gray-50 dark:hover:bg-gray-800 border-gray-100 dark:border-gray-700"," text-normal pr-2.5"),children:[k.isEnable?a.jsxs(a.Fragment,{children:[a.jsx(Z0,{size:12,className:"mr-0.5 group-hover:block hidden"}),a.jsx(Ir,{size:12,className:"mr-0.5 group-hover:hidden"})]}):a.jsx(Ya,{size:12,className:"mr-0.5 hover:text-blue-500 cursor-pointer",onClick:E=>{var N;E.preventDefault(),E.stopPropagation(),o.value={...o.value,templateOptions:[...(N=o.value.templateOptions)==null?void 0:N.map((T,M)=>M===j?{...T,isEnable:!0}:T)]}}}),k.label]})})},j)}),o.value.templateOptions.length>1&&n.value.length>0&&a.jsx(De,{text:i("Remove all fields from template",{ns:"common"}),isCompact:!0,side:"bottom",children:a.jsx(X,{className:"!text-slate-300 dark:!text-slate-500 hover:!text-red-500 dark:hover:!text-red-500 cursor-pointer !font-normal group",size:"xs",onClick:()=>{var k;(k=m==null?void 0:m.current)==null||k.handleRemoveAllTemplateFields()},children:a.jsx(it,{variant:"outline",className:"dark:bg-slate-300/90 dark:hover:bg-red-100 dark:border-slate-700 dark:hover:border-blue-800 bg-white hover:bg-red-50 border-slate-200 hover:border-red-200 text-normal px-2.5 py-[3px]",children:a.jsx(e3,{size:13})})})})]}),a.jsx(go,{ref:m,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"".concat(i("Enter template or drag from history",{ns:"dashboard"}),". ").concat(i("Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.",{ns:"dashboard"})),rows:2,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:s?12:6,value:e.value,onKeyDown:k=>{k.stopPropagation()},onChange:k=>{e.value=k.target.value}})]})]})}function jve({clipId:e,clipValue:t,showLinkValidationError:n,isLargeView:r,isDark:s,webrequestTestOutputObject:o,webrequestLocalOptions:i}){var g,k,j,S,E,N,T,M,L,D,P,A,B,z,R,$,_,U,K,W,G,Z,F,V,q,ne;const{t:c}=wt(),u=He(!1),h=He(!1),p=He(!1),m=He(!1),{updateItemById:x}=ji(),C={dotpathjson:c("FILTERED_TYPES:::Dot Path",{ns:"dashboard"}),jsonpath:c("FILTERED_TYPES:::JSON Path",{ns:"dashboard"}),regex:c("FILTERED_TYPES:::RegEx",{ns:"dashboard"}),regexreplace:c("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"}),removequotes:c("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})},b=async Q=>{const{headers:ae,body:re,filters:le}=i.value,oe={headers:ae,body:re,filters:le,method:Q};await x({updatedItem:{requestOptions:JSON.stringify({headers:ae,body:re,method:Q}),itemId:e}}),i.value={...oe}};return f.useEffect(()=>{i.value.body||(m.value=!1)},[o.value.body]),a.jsxs(J,{className:"select-none mt-1",children:[a.jsxs(fe,{className:"text-normal",children:[a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsxs(ye,{variant:"outline",size:"mini",className:"px-2 pr-1 h-10 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[a.jsx("span",{children:i.value.method}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{onClick:()=>{b("GET")},children:a.jsx(X,{className:"".concat(i.value.method==="GET"&&"font-semibold"),children:"GET"})}),a.jsx(Oe,{textValue:"POST",onClick:()=>{b("POST")},children:a.jsx(X,{className:"".concat(i.value.method==="POST"&&"font-semibold"),children:"POST"})}),a.jsx(Oe,{onClick:()=>{b("PUT")},children:a.jsx(X,{className:"".concat(i.value.method==="PUT"&&"font-semibold"),children:"PUT"})}),a.jsx(Oe,{onClick:()=>{b("DELETE")},children:a.jsx(X,{className:"".concat(i.value.method==="DELETE"&&"font-semibold"),children:"DELETE"})}),a.jsx(Oe,{onClick:()=>{b("HEAD")},children:a.jsx(X,{className:"".concat(i.value.method==="HEAD"&&"!font-semibold"),children:"HEAD"})})]})]}),a.jsx(Gt,{defaultValue:t.value,placeholder:"Enter request url...",classNameInput:"pr-7 text-sm focus:border- ".concat(n.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(n.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:a.jsx(J,{className:"absolute top-3 right-2",children:n.value?a.jsx(De,{text:c("Request url might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):n.value===!1&&a.jsx(De,{text:c("Request url is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Q=>{if(n.value&&(n.value=void 0),Q.target.value.length>5){const ae=wr().match(Q.target.value);!ae||ae.length>1?n.value=!0:n.value=!1}t.value=Q.target.value}})]}),a.jsx(J,{className:"mt-2",children:a.jsxs(fe,{className:"gap-4 w-full justify-start",children:[a.jsx(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",onClick:()=>{const Q=[...i.value.headers];Q.unshift({id:Date.now().toString(),name:"",isEnable:!0,value:""}),i.value={...i.value,headers:Q}},title:c("Add Request Header",{ns:"dashboard"}),children:c("Add Header",{ns:"dashboard"})}),a.jsx(fe,{children:a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[c("Add Auth",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Basic Password",i.value={...i.value,auth:{...i.value.auth,type:"Basic Password",basicPassword:"",basicUsername:"",isEnable:!0}}},children:a.jsx(X,{className:"".concat(((g=i.value.auth)==null?void 0:g.type)==="Basic Password"&&"font-semibold"),children:c("Basic Auth",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Bearer Token",i.value={...i.value,auth:{...i.value.auth,type:"Bearer Token",bearerToken:"",isEnable:!0}}},children:a.jsx(X,{className:"".concat(((k=i.value.auth)==null?void 0:k.type)==="Bearer Token"&&"font-semibold"),children:c("Bearer Token",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="API Key",i.value={...i.value,auth:{...i.value.auth,type:"API Key",apiKey:"",apiValue:"",isEnable:!0}}},children:a.jsx(X,{className:"".concat(((j=i.value.auth)==null?void 0:j.type)==="API Key"&&"font-semibold"),children:c("API Key",{ns:"dashboard"})})})]})]})}),a.jsx(fe,{children:a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[c("Add Response Filter",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{onClick:()=>{i.value.filters||(i.value.filters=[]);const Q=[...i.value.filters];Q.push({id:Date.now().toString(),filterType:"dotpathjson",isEnable:!0,value:""}),i.value={...i.value,filters:Q}},children:a.jsx(X,{children:c("FILTERED_TYPES:::Dot Path",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{i.value.filters||(i.value.filters=[]);const Q=[...i.value.filters];Q.push({id:Date.now().toString(),filterType:"jsonpath",isEnable:!0,value:""}),i.value={...i.value,filters:Q}},children:a.jsx(X,{children:c("FILTERED_TYPES:::JSON Path",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{i.value.filters||(i.value.filters=[]);const Q=[...i.value.filters];Q.push({id:Date.now().toString(),filterType:"regex",isEnable:!0,value:""}),i.value={...i.value,filters:Q}},children:a.jsx(X,{children:c("FILTERED_TYPES:::RegEx",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{i.value.filters||(i.value.filters=[]);const Q=[...i.value.filters];Q.push({id:Date.now().toString(),filterType:"regexreplace",isEnable:!0,replace:"",value:""}),i.value={...i.value,filters:Q}},children:a.jsx(X,{children:c("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{i.value.filters||(i.value.filters=[]);const Q=[...i.value.filters];Q.push({id:Date.now().toString(),filterType:"removequotes",isEnable:!0,value:""}),i.value={...i.value,filters:Q}},children:a.jsx(X,{children:c("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})})})]})]})})]})}),i.value.headers.length>0&&a.jsxs(J,{className:"mt-2",children:[a.jsxs(fe,{className:"gap-1 w-full justify-start",children:[a.jsxs(X,{className:"font-semibold",size:"sm",children:[c("Headers",{ns:"dashboard"}),a.jsx(it,{className:"ml-1 py-0",variant:"secondary",children:i.value.headers.length})]}),a.jsxs(Qa,{defaultOpen:!1,open:u.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(ye,{size:"mini",title:c("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{u.value=!0},children:a.jsx(Rn,{size:16})})}),a.jsx(Da,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{u.value=!1},onPointerDownOutside:()=>{u.value=!1},children:a.jsxs(fe,{className:"flex-col gap-3",children:[a.jsx(X,{color:"black",size:"sm",children:c("Confirm to remove headers",{ns:"dashboard"})}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{u.value=!1},children:c("Cancel",{ns:"common"})}),a.jsxs(ye,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value={...i.value,headers:[]},u.value=!1},children:[c("Remove",{ns:"common"}),a.jsx(it,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.headers.length})]})]})]})})]})]}),i.value.headers.map((Q,ae)=>{var re;return a.jsxs(fe,{className:"gap-2 mb-1",children:[a.jsx(Gt,{small:!0,defaultValue:Q.name,disabled:Q.isEnable===!1,onChange:le=>{Q.name=le.target.value.trim()},placeholder:c("Name",{ns:"dashboard"}),autoFocus:ae===0,className:"".concat(Q.isEnable===!1?"bg-gray-100 opacity-50":""),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(Gt,{small:!0,placeholder:c("Value",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:Q.isEnable===!1,className:"".concat(Q.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:le=>{Q.value=le.target.value.trim()},defaultValue:Q.value,required:!0}),a.jsx(ye,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{i.value={...i.value,headers:i.value.headers.map((le,oe)=>oe===ae?{...le,isEnable:!le.isEnable}:le)}},children:(re=i.value.headers[ae])!=null&&re.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsx(ye,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value={...i.value,headers:i.value.headers.filter((le,oe)=>oe!==ae)}},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]},Q.id)})]}),((S=i.value.auth)==null?void 0:S.type)&&a.jsxs(J,{className:"mt-2",children:[a.jsxs(fe,{className:"gap-1 w-full justify-start",children:[a.jsxs(X,{className:"font-semibold",size:"sm",children:[c("Auth",{ns:"dashboard"})," (",(E=i.value.auth)==null?void 0:E.type,")"]}),a.jsxs(Qa,{defaultOpen:!1,open:h.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(ye,{size:"mini",title:c("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{h.value=!0},children:a.jsx(Rn,{size:16})})}),a.jsx(Da,{sideOffset:10,align:"center",className:"w-52",onEscapeKeyDown:()=>{h.value=!1},onPointerDownOutside:()=>{h.value=!1},children:a.jsxs(fe,{className:"flex-col gap-3",children:[a.jsx(X,{color:"black",size:"sm",children:c("Confirm to remove Auth",{ns:"dashboard"})}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{h.value=!1},children:c("Cancel",{ns:"common"})}),a.jsx(ye,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value={...i.value,auth:{}},h.value=!1},children:c("Remove",{ns:"common"})})]})]})})]})]}),((N=i.value.auth)==null?void 0:N.type)==="Bearer Token"&&a.jsxs(fe,{className:"gap-2 mb-1",children:[a.jsx(Gt,{small:!0,isPassword:!0,showHidePassword:!0,defaultValue:(T=i.value.auth)==null?void 0:T.bearerToken,disabled:((M=i.value.auth)==null?void 0:M.isEnable)===!1,onChange:Q=>{i.value.auth||(i.value.auth={}),i.value.auth.bearerToken=Q.target.value.trim()},className:"".concat(((L=i.value.auth)==null?void 0:L.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:c("Bearer Token",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(ye,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Q;i.value={...i.value,auth:{...i.value.auth,isEnable:!((Q=i.value.auth)!=null&&Q.isEnable)}}},children:(D=i.value.auth)!=null&&D.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsx(ye,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value={...i.value,auth:{}}},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]}),((P=i.value.auth)==null?void 0:P.type)==="API Key"&&a.jsxs(fe,{className:"gap-2 mb-1",children:[a.jsx(Gt,{small:!0,defaultValue:(A=i.value.auth)==null?void 0:A.apiKey,disabled:((B=i.value.auth)==null?void 0:B.isEnable)===!1,className:"".concat(((z=i.value.auth)==null?void 0:z.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:Q=>{i.value.auth||(i.value.auth={}),i.value.auth.apiKey=Q.target.value.trim()},placeholder:c("API Key",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(Gt,{small:!0,defaultValue:(R=i.value.auth)==null?void 0:R.apiValue,disabled:(($=i.value.auth)==null?void 0:$.isEnable)===!1,className:"".concat(((_=i.value.auth)==null?void 0:_.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:Q=>{i.value.auth||(i.value.auth={}),i.value.auth.apiValue=Q.target.value.trim()},placeholder:c("API Key's Value",{ns:"dashboard"}),isPassword:!0,showHidePassword:!0,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(ye,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Q;i.value={...i.value,auth:{...i.value.auth,isEnable:!((Q=i.value.auth)!=null&&Q.isEnable)}}},children:(U=i.value.auth)!=null&&U.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsx(ye,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value={...i.value,auth:{}}},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]}),((K=i.value.auth)==null?void 0:K.type)==="Basic Password"&&a.jsxs(fe,{className:"gap-2 mb-1",children:[a.jsx(Gt,{small:!0,defaultValue:(W=i.value.auth)==null?void 0:W.basicUsername,disabled:((G=i.value.auth)==null?void 0:G.isEnable)===!1,className:"".concat(((Z=i.value.auth)==null?void 0:Z.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:Q=>{i.value.auth||(i.value.auth={}),i.value.auth.basicUsername=Q.target.value.trim()},placeholder:c("Basic Username",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(Gt,{small:!0,defaultValue:(F=i.value.auth)==null?void 0:F.basicPassword,disabled:((V=i.value.auth)==null?void 0:V.isEnable)===!1,className:"".concat(((q=i.value.auth)==null?void 0:q.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:Q=>{i.value.auth||(i.value.auth={}),i.value.auth.basicPassword=Q.target.value.trim()},placeholder:c("Basic Password",{ns:"dashboard"}),isPassword:!0,showHidePassword:!0,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(ye,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Q;i.value={...i.value,auth:{...i.value.auth,isEnable:!((Q=i.value.auth)!=null&&Q.isEnable)}}},children:(ne=i.value.auth)!=null&&ne.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsx(ye,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value={...i.value,auth:{}}},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]})]}),i.value.filters.length>0&&a.jsxs(J,{className:"mt-2",children:[a.jsxs(fe,{className:"gap-1 w-full justify-start",children:[a.jsxs(X,{className:"font-semibold",size:"sm",children:[c("Response Filters",{ns:"dashboard"}),a.jsx(it,{className:"ml-1 py-0",variant:"secondary",children:i.value.filters.length})]}),a.jsxs(Qa,{defaultOpen:!1,open:p.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(ye,{size:"mini",title:c("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{p.value=!0},children:a.jsx(Rn,{size:16})})}),a.jsx(Da,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{p.value=!1},onPointerDownOutside:()=>{p.value=!1},children:a.jsxs(fe,{className:"flex-col gap-3",children:[a.jsx(X,{color:"black",size:"sm",children:c("Confirm to remove filters",{ns:"dashboard"})}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{p.value=!1},children:c("Cancel",{ns:"common"})}),a.jsxs(ye,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value={...i.value,filters:[]},p.value=!1},children:[c("Remove",{ns:"common"}),a.jsx(it,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.filters.length})]})]})]})})]})]}),i.value.filters.map((Q,ae)=>{var le;const re=C[Q.filterType];return a.jsxs(fe,{className:"gap-1 mb-1",children:[a.jsx(X,{title:"".concat(c("Filter Type",{ns:"dashboard"}),": ").concat(re),className:"".concat(Q.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end"),children:a.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[ae+1,". ",re]})}),Q.filterType==="removequotes"?a.jsx(Gt,{small:!0,autoFocus:ae===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 !text-slate-600",disabled:!1,className:"".concat(Q.isEnable===!1?"bg-gray-100 opacity-50":""," "),readOnly:!0,defaultValue:c("Remove all double quotes",{ns:"dashboard"})}):a.jsx(Gt,{small:!0,placeholder:c("Filter's Value",{ns:"dashboard"}),autoFocus:ae===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:Q.isEnable===!1,className:"".concat(Q.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:oe=>{Q.value=oe.target.value.trim()},defaultValue:Q.value}),Q.filterType==="regexreplace"&&a.jsx(Gt,{small:!0,placeholder:c("Replace Value",{ns:"dashboard"}),autoFocus:ae===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:Q.isEnable===!1,className:"".concat(Q.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:oe=>{Q.replace=oe.target.value.trim()},defaultValue:Q.replace}),a.jsx(ye,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{i.value={...i.value,filters:i.value.filters.map((oe,ie)=>ie===ae?{...oe,isEnable:!oe.isEnable}:oe)}},children:(le=i.value.filters[ae])!=null&&le.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value={...i.value,filters:Kr(i.value.filters,ae,ae-1)}},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:a.jsx(bi,{size:14})})}),a.jsxs(Cn,{align:"end",children:[a.jsxs(Oe,{disabled:ae===0,onClick:()=>{i.value={...i.value,filters:Kr(i.value.filters,ae,ae-1)}},className:"text-[13px] py-1",children:[a.jsx(X,{children:c("Move Up",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(rg,{size:13})})]}),a.jsxs(Oe,{disabled:ae===i.value.filters.length-1,onClick:()=>{i.value={...i.value,filters:Kr(i.value.filters,ae,ae+1)}},className:"text-[13px] py-1",children:[a.jsx(X,{children:c("Move Down",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(ng,{size:13})})]}),a.jsxs(Oe,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{i.value={...i.value,filters:i.value.filters.filter((oe,ie)=>ie!==ae)}},children:[a.jsx(X,{className:"!text-red-500",children:c("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(or,{size:13})})]})]})]})]},Q.id)})]}),(o.value.body||o.value.status)&&a.jsxs(J,{className:"".concat(o.value.status&&o.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(r?"py-1":"py-0"," rounded-md px-3 relative mt-2 pt-1 pb-1 select-text min-h-[0px] fade-in animate-in duration-500"),children:[o.value.body&&o.value.filteredBody&&a.jsx(Xi,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:m.value?"fullBody":"filteredBody",onValueChange:Q=>{m.value=Q==="fullBody"},children:a.jsxs(Vo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[a.jsx(br,{value:"fullBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:c("Full Body Response",{ns:"dashboard"}),children:c("Full",{ns:"dashboard"})}),a.jsx(br,{value:"filteredBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:c("Filtered Response",{ns:"dashboard"}),children:c("Filtered",{ns:"dashboard"})})]})}),a.jsx(es,{isDark:s,maxHeight:r?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:o.value.filteredBody&&!m.value?o.value.filteredBody:o.value.body||c("No body returned for response",{ns:"dashboard"}),language:o.value.contentType&&o.value.body&&$M[o.value.contentType.split(";")[0]]||"text"}),a.jsxs(fe,{className:"justify-between py-1 pb-1",children:[a.jsx(J,{className:"text-xs rounded-sm px-1.5 select-none bg-slate-300 text-slate-600",children:o.value.contentType&&$M[o.value.contentType.split(";")[0]]}),a.jsx(J,{className:"".concat(o.value.status&&o.value.status>=400?"bg-red-300 text-red-700":"bg-green-300 text-green-700"," text-xs rounded-sm px-1.5 select-none"),children:o.value.status&&o.value.status>=400?"".concat(o.value.hasFiltersError?"filters":o.value.status," error"):"".concat(o.value.status)})]})]})]})}function Cve({clipValue:e,showLinkValidationError:t,isLargeView:n,isDark:r,testOutputObject:s,localOptions:o}){var x,C,b,g,k,j,S,E,N,T,M,L,D,P,A,B,z,R,$,_,U,K,W,G,Z,F,V,q,ne,Q,ae,re,le,oe;const{t:i}=wt(),c=He(!1),u=He(!1),h={cssselector:i("RULES_TYPES:::CSS Selector",{ns:"dashboard"}),regexfind:i("RULES_TYPES:::RegEx Find",{ns:"dashboard"}),regexmatch:i("RULES_TYPES:::RegEx Match",{ns:"dashboard"}),regexmatchfoundgroup:i("RULES_TYPES:::RegEx Group Match",{ns:"dashboard"}),regexreplace:i("RULES_TYPES:::RegEx Replace",{ns:"dashboard"})},p={comma:i("SEPARATOR_TYPES:::Comma (,)",{ns:"dashboard"}),semicolon:i("SEPARATOR_TYPES:::Semicolon (;)",{ns:"dashboard"}),space:i("SEPARATOR_TYPES:::Space (' ')",{ns:"dashboard"}),newline:i("SEPARATOR_TYPES:::New Line (\\n)",{ns:"dashboard"}),tab:i("SEPARATOR_TYPES:::Tab (\\t)",{ns:"dashboard"}),pipe:i("SEPARATOR_TYPES:::Pipe (|)",{ns:"dashboard"})},m={first:i("RETURN_POSITION_TYPES:::First Only",{ns:"dashboard"}),last:i("RETURN_POSITION_TYPES:::Last Only",{ns:"dashboard"})};return a.jsxs(J,{className:"select-none mt-1",children:[a.jsxs(fe,{className:"text-normal",children:[a.jsx(De,{asChild:!0,text:i("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:a.jsx(ye,{variant:"outline",size:"mini",className:"px-2 h-10 pointer-events-none text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:a.jsx("span",{children:i("URL",{ns:"dashboard"})})})}),a.jsx(Gt,{defaultValue:e.value,placeholder:i("Enter request url",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(t.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(t.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:a.jsx(J,{className:"absolute top-3 right-2",children:t.value?a.jsx(De,{text:i("Website URL might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):t.value===!1&&a.jsx(De,{text:i("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:ie=>{if(t.value&&(t.value=void 0),ie.target.value.length>5){const de=wr().match(ie.target.value);!de||de.length>1?t.value=!0:t.value=!1}e.value=ie.target.value}})]}),a.jsx(J,{className:"mt-2",children:a.jsx(fe,{className:"gap-4 w-full justify-start",children:a.jsx(fe,{children:a.jsxs(Nn,{children:[a.jsx(_n,{children:a.jsxs(X,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[i("Add Scraping Rule",{ns:"dashboard"}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ie=[...o.value.scrapingRules];ie.push({id:Date.now().toString(),ruleType:"cssselector",isEnable:!0,value:""}),o.value={...o.value,scrapingRules:ie}},children:a.jsx(X,{children:i("CSS Selector",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ie=[...o.value.scrapingRules];ie.push({id:Date.now().toString(),ruleType:"regexfind",isEnable:!0,value:""}),o.value={...o.value,scrapingRules:ie}},children:a.jsx(X,{children:i("RegEx Find",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ie=[...o.value.scrapingRules];ie.push({id:Date.now().toString(),ruleType:"regexmatch",isEnable:!0,value:""}),o.value={...o.value,scrapingRules:ie}},children:a.jsx(X,{children:i("RegEx Match",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ie=[...o.value.scrapingRules];ie.push({id:Date.now().toString(),ruleType:"regexmatchfoundgroup",isEnable:!0,value:""}),o.value={...o.value,scrapingRules:ie}},children:a.jsx(X,{children:i("RegEx Match Group",{ns:"dashboard"})})}),a.jsx(Oe,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ie=[...o.value.scrapingRules];ie.push({id:Date.now().toString(),ruleType:"regexreplace",isEnable:!0,value:""}),o.value={...o.value,scrapingRules:ie}},children:a.jsx(X,{children:i("RegEx Replace",{ns:"dashboard"})})})]})]})})})}),o.value.scrapingRules&&o.value.scrapingRules.length>0&&a.jsxs(J,{className:"mt-2",children:[a.jsxs(fe,{className:"gap-1 w-full justify-start",children:[a.jsxs(X,{className:"font-semibold",size:"sm",children:[i("Scrapping Rules",{ns:"dashboard"}),a.jsx(it,{className:"ml-1 py-0",variant:"secondary",children:o.value.scrapingRules.length})]}),a.jsxs(Qa,{defaultOpen:!1,open:c.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(ye,{size:"mini",title:i("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{c.value=!0},children:a.jsx(Rn,{size:16})})}),a.jsx(Da,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{c.value=!1},onPointerDownOutside:()=>{c.value=!1},children:a.jsxs(fe,{className:"flex-col gap-3",children:[a.jsx(X,{color:"black",size:"sm",children:i("Confirm to remove rules",{ns:"dashboard"})}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{c.value=!1},children:i("Cancel",{ns:"dashboard"})}),a.jsxs(ye,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{o.value={...o.value,scrapingRules:[]},c.value=!1},children:[i("Remove",{ns:"dashboard"}),a.jsx(it,{variant:"destructive",className:"ml-1 py-[1px]",children:o.value.scrapingRules.length})]})]})]})})]})]}),o.value.scrapingRules.map((ie,de)=>{var je,Ee;const xe=h[ie.ruleType];return a.jsxs(fe,{className:"mb-1 mt-2 items-center",children:[a.jsx(X,{title:"".concat(i("Rule Type",{ns:"common"}),": ").concat(xe),className:"".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end pb-2"),children:a.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[de+1,". ",xe]})}),a.jsxs(fe,{className:"gap-0.5 flex-col w-full items-start ".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""),children:[a.jsx(fe,{className:"w-full gap-1",children:a.jsxs(a.Fragment,{children:[a.jsx(Gt,{small:!0,placeholder:ie.ruleType==="cssselector"?"Selector":"Rule's Value",autoFocus:o.value.scrapingRules?de===((je=o.value.scrapingRules)==null?void 0:je.length)-1:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ie.isEnable===!1,className:"".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:Te=>{ie.value=Te.target.value.trim()},defaultValue:ie.value}),ie.ruleType==="cssselector"&&a.jsx(Gt,{small:!0,placeholder:"Find Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ie.isEnable===!1,className:"max-w-[120px] ".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Te=>{ie.filterText=Te.target.value.trim()},defaultValue:ie.filterText})]})}),a.jsxs(fe,{className:"gap-1 mb-1",children:[ie.ruleType==="regexreplace"&&a.jsx(Gt,{small:!0,placeholder:"Replace Value",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ie.isEnable===!1,className:"".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Te=>{ie.replace=Te.target.value.trim()},defaultValue:ie.replace}),ie.ruleType==="cssselector"&&a.jsxs(a.Fragment,{children:[a.jsx(Gt,{small:!0,placeholder:"Attribute Name",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ie.isEnable===!1,className:"max-w-[120px] ".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Te=>{ie.returnAttribute=Te.target.value.trim()},defaultValue:ie.returnAttribute}),a.jsx(Gt,{small:!0,placeholder:"Attribute Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ie.isEnable===!1,className:"max-w-[120px] ".concat(ie.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Te=>{ie.returnAttributeText=Te.target.value.trim()},defaultValue:ie.returnAttributeText})]})]})]}),a.jsxs(fe,{className:"gap-1 mb-1 mt-[-12px] ml-2",children:[a.jsx(ye,{size:"mini",title:i("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Te;o.value={...o.value,scrapingRules:(Te=o.value.scrapingRules)==null?void 0:Te.map((Me,ze)=>ze===de?{...Me,isEnable:!Me.isEnable}:Me)}},children:o.value.scrapingRules&&((Ee=o.value.scrapingRules[de])!=null&&Ee.isEnable)?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(ye,{size:"mini",title:i("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{o.value={...o.value,scrapingRules:Kr(o.value.scrapingRules||[],de,de-1)}},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:a.jsx(bi,{size:14})})}),a.jsxs(Cn,{align:"end",children:[a.jsxs(Oe,{disabled:de===0,onClick:()=>{o.value={...o.value,scrapingRules:Kr(o.value.scrapingRules||[],de,de-1)}},className:"text-[13px] py-1",children:[a.jsx(X,{children:i("Move Up",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(rg,{size:13})})]}),a.jsxs(Oe,{disabled:o.value.scrapingRules?de===o.value.scrapingRules.length-1:!1,onClick:()=>{o.value={...o.value,scrapingRules:Kr(o.value.scrapingRules||[],de,de+1)}},className:"text-[13px] py-1",children:[a.jsx(X,{children:i("Move Down",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(ng,{size:13})})]}),a.jsxs(Oe,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{var Te;o.value={...o.value,scrapingRules:(Te=o.value.scrapingRules)==null?void 0:Te.filter((Me,ze)=>ze!==de)}},children:[a.jsx(X,{className:"!text-red-500",children:i("Remove",{ns:"common"})}),a.jsx("div",{className:"ml-auto",children:a.jsx(or,{size:13})})]})]})]})]})]},ie.id)}),o.value.scrapingRules&&o.value.scrapingRules.length>0&&a.jsxs(fe,{className:"mt-2 justify-start",children:[a.jsx(ye,{variant:"outline",size:"mini",className:"px-2 h-8 text-[13px] text-slate-500 border-0 font-semibold mr-2 flex items-center",children:a.jsx("span",{className:"whitespace-nowrap",children:i("Return Result As",{ns:"dashboard"})})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsxs(ye,{variant:"outline",size:"mini",title:i("Return Type",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[a.jsx("span",{className:"whitespace-nowrap",children:(x=o.value.scrapingOptions)==null?void 0:x.returnType}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:a.jsx(X,{children:i("Return Type",{ns:"dashboard"})})}),a.jsx(Yt,{}),a.jsx(Kt,{checked:((C=o.value.scrapingOptions)==null?void 0:C.returnType)==="Text",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnType:"Text"};o.value={...o.value,scrapingOptions:ie}},children:a.jsx(X,{className:"".concat(((b=o.value.scrapingOptions)==null?void 0:b.returnType)==="Text"&&"font-semibold"),children:i("ReturnType:::Text",{ns:"dashboard"})})}),a.jsx(Kt,{checked:((g=o.value.scrapingOptions)==null?void 0:g.returnType)==="Array",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnType:"Array"};o.value={...o.value,scrapingOptions:ie}},children:a.jsx(X,{className:"".concat(((k=o.value.scrapingOptions)==null?void 0:k.returnType)==="Array"&&"font-semibold"),children:i("ReturnType:::Array",{ns:"dashboard"})})})]})]}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsxs(ye,{variant:"outline",size:"mini",title:i("Return Count Limit",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[a.jsxs("span",{className:"whitespace-nowrap",children:[i("Limit",{ns:"dashboard"}),":",a.jsx("span",{className:"ml-1",children:(j=o.value.scrapingOptions)!=null&&j.returnCount&&o.value.scrapingOptions.returnPosition==null&&o.value.scrapingOptions.returnCount>0?(S=o.value.scrapingOptions)==null?void 0:S.returnCount:((E=o.value.scrapingOptions)==null?void 0:E.returnPosition)!==null?m[(N=o.value.scrapingOptions)==null?void 0:N.returnPosition]:i("RETURN_POSITION_TYPES:::All",{ns:"dashboard"})})]}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:a.jsx(X,{children:i("Return Count Limit",{ns:"dashboard"})})}),a.jsx(Yt,{}),a.jsx(Kt,{checked:((T=o.value.scrapingOptions)==null?void 0:T.returnCount)==null&&((M=o.value.scrapingOptions)==null?void 0:M.returnPosition)==null,onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnPosition:null,returnCount:null};o.value={...o.value,scrapingOptions:ie}},children:a.jsx(X,{className:"".concat(((L=o.value.scrapingOptions)==null?void 0:L.returnCount)==null&&((D=o.value.scrapingOptions)==null?void 0:D.returnPosition)==null&&"font-semibold"),children:i("All (No Limit)",{ns:"dashboard"})})}),a.jsx(Kt,{checked:((P=o.value.scrapingOptions)==null?void 0:P.returnPosition)=="first",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnCount:null,returnPosition:"first"};o.value={...o.value,scrapingOptions:ie}},children:a.jsx(X,{className:"".concat(((A=o.value.scrapingOptions)==null?void 0:A.returnPosition)=="first"&&"font-semibold"),children:i("First Only",{ns:"dashboard"})})}),a.jsx(Kt,{checked:((B=o.value.scrapingOptions)==null?void 0:B.returnPosition)=="last",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnCount:null,returnPosition:"last"};o.value={...o.value,scrapingOptions:ie}},children:a.jsx(X,{className:"".concat(((z=o.value.scrapingOptions)==null?void 0:z.returnPosition)=="last"&&"font-semibold"),children:i("Last Only",{ns:"dashboard"})})}),[...Array(5)].map((ie,de)=>{var je,Ee;const xe=de+1;return a.jsx(Kt,{checked:((je=o.value.scrapingOptions)==null?void 0:je.returnCount)===xe,onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const Te={...o.value.scrapingOptions,returnPosition:null,returnCount:xe};o.value={...o.value,scrapingOptions:Te}},children:a.jsx(X,{className:"".concat(((Ee=o.value.scrapingOptions)==null?void 0:Ee.returnCount)===xe&&"font-semibold"),children:xe})},xe)}),[10,20].map(ie=>{var de,xe;return a.jsx(Kt,{checked:((de=o.value.scrapingOptions)==null?void 0:de.returnCount)===ie,onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const je={...o.value.scrapingOptions,returnPosition:null,returnCount:ie};o.value={...o.value,scrapingOptions:je}},children:a.jsx(X,{className:"".concat(((xe=o.value.scrapingOptions)==null?void 0:xe.returnCount)===ie&&"font-semibold"),children:ie})},ie)})]})]}),((R=o.value.scrapingOptions)==null?void 0:R.returnType)!=="Array"&&(($=o.value.scrapingOptions)==null?void 0:$.returnPosition)==null&&(((_=o.value.scrapingOptions)==null?void 0:_.returnCount)==null||((U=o.value.scrapingOptions)==null?void 0:U.returnCount)!==1)&&a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsxs(ye,{variant:"outline",size:"mini",title:i("Text Separator",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[a.jsx("span",{className:"whitespace-nowrap",children:p[(K=o.value.scrapingOptions)==null?void 0:K.returnSeparator]}),a.jsx(jn,{size:12,className:"ml-1"})]})}),a.jsxs(Cn,{sideOffset:12,align:"center",children:[a.jsx(Oe,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:a.jsx(X,{children:i("Text Separator",{ns:"dashboard"})})}),a.jsx(Yt,{}),a.jsx(Kt,{checked:((W=o.value.scrapingOptions)==null?void 0:W.returnSeparator)==="newline",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnSeparator:"newline"};o.value={...o.value,scrapingOptions:ie}},children:a.jsxs(X,{className:"".concat(((G=o.value.scrapingOptions)==null?void 0:G.returnSeparator)==="newline"&&"font-semibold"),children:[i("ReturnSeparator:::New Line",{ns:"dashboard"})," (\\n)"]})}),a.jsx(Kt,{checked:((Z=o.value.scrapingOptions)==null?void 0:Z.returnSeparator)==="tab",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnSeparator:"tab"};o.value={...o.value,scrapingOptions:ie}},children:a.jsxs(X,{className:"".concat(((F=o.value.scrapingOptions)==null?void 0:F.returnSeparator)==="tab"&&"font-semibold"),children:[i("ReturnSeparator:::Tab",{ns:"dashboard"})," (\\t)"]})}),a.jsx(Kt,{checked:((V=o.value.scrapingOptions)==null?void 0:V.returnSeparator)==="comma",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnSeparator:"comma"};o.value={...o.value,scrapingOptions:ie}},children:a.jsxs(X,{className:"".concat(((q=o.value.scrapingOptions)==null?void 0:q.returnSeparator)==="comma"&&"font-semibold"),children:[i("ReturnSeparator:::Comma",{ns:"dashboard"})," (,)"]})}),a.jsx(Kt,{checked:((ne=o.value.scrapingOptions)==null?void 0:ne.returnSeparator)==="semicolon",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnSeparator:"semicolon"};o.value={...o.value,scrapingOptions:ie}},children:a.jsxs(X,{className:"".concat(((Q=o.value.scrapingOptions)==null?void 0:Q.returnSeparator)==="semicolon"&&"font-semibold"),children:[i("ReturnSeparator:::Semicolon",{ns:"dashboard"})," (;)"]})}),a.jsx(Kt,{checked:((ae=o.value.scrapingOptions)==null?void 0:ae.returnSeparator)==="pipe",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnSeparator:"pipe"};o.value={...o.value,scrapingOptions:ie}},children:a.jsxs(X,{className:"".concat(((re=o.value.scrapingOptions)==null?void 0:re.returnSeparator)==="pipe"&&"font-semibold"),children:[i("ReturnSeparator:::Pipe",{ns:"dashboard"})," (|)"]})}),a.jsx(Kt,{checked:((le=o.value.scrapingOptions)==null?void 0:le.returnSeparator)==="space",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ie={...o.value.scrapingOptions,returnSeparator:"space"};o.value={...o.value,scrapingOptions:ie}},children:a.jsxs(X,{className:"".concat(((oe=o.value.scrapingOptions)==null?void 0:oe.returnSeparator)==="space"&&"font-semibold"),children:[i("ReturnSeparator:::Space",{ns:"dashboard"})," (' ')"]})})]})]})]})]}),(s.value.body||s.value.status)&&a.jsxs(J,{className:"".concat(s.value.status&&s.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(n?"!pb-3 mb-1 !py-3":"py-0 pb-2"," rounded-md px-3 relative mt-2 pt-1 select-text min-h-[0px] fade-in animate-in duration-500"),children:[s.value.body&&s.value.scrappedBody&&a.jsx(Xi,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:u.value?"fullBody":"filteredBody",onValueChange:ie=>{u.value=ie==="fullBody"},children:a.jsxs(Vo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[a.jsx(br,{value:"fullBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:i("Full Body Response",{ns:"dashboard"}),children:i("Full",{ns:"dashboard"})}),a.jsx(br,{value:"filteredBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:i("Filtered Response",{ns:"dashboard"}),children:s.value.foundCount&&s.value.foundCount>1?i("Found {{foundCount}} results",{ns:"dashboard",foundCount:s.value.foundCount}):i("Found",{ns:"common"})})]})}),a.jsx(es,{isDark:r,maxHeight:n?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:s.value.scrappedBody&&!u.value?s.value.scrappedBody:s.value.body||i("No body returned for response",{ns:"dashboard"}),language:s.value.body&&u.value?"html":"text"}),o.value.scrapingRules&&o.value.scrapingRules.length===0&&a.jsxs(X,{className:"text-xs text-yellow-600",children:[i("You have no rules added",{ns:"dashboard"}),"."]}),s.value.status&&s.value.status>=400&&a.jsx(fe,{className:"justify-between py-1 pb-1",children:a.jsxs(J,{className:"text-xs rounded-sm px-1.5 select-none bg-red-300 text-red-700",children:[s.value.status," error"]})})]})]})}function Pz({id:e,isMenu:t}){const n=He(!1),{t:r}=wt(),s=()=>{n.value=!1,OC.value=null},{deleteClipImageByItemId:o}=vpe();return a.jsxs(Qa,{defaultOpen:!1,open:n.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{tabIndex:0,className:"focus:outline-none",children:a.jsx(De,{text:r("Remove image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"p-1.5 border-0 bg-red-50/80 flex items-center justify-center hover:bg-red-50/100",onClick:()=>{n.value=!0,OC.value=e},children:a.jsx(or,{size:20,className:"text-red-600 cursor-pointer"})})})})}),a.jsx(Da,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{s()},onPointerDownOutside:()=>{s()},children:n.value&&a.jsxs(fe,{className:"flex-col",children:[t?a.jsx(X,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:r("Are you sure you want to remove image from the menu?",{ns:"menus"})}):a.jsx(X,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:r("Are you sure you want to remove image from the clip?",{ns:"dashboard"})}),a.jsx(X,{color:"black",size:"sm",className:"italic text-center",children:r("This action cannot be undone.",{ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{s()},children:r("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{o({itemId:e}),s()},children:r("Remove",{ns:"common"})})]})]})})]})}function Sve({clipId:e,isOver:t,value:n,isCode:r,isText:s,isTemplate:o,isForm:i,isImage:c,isDelete:u,isMasked:h,hasEmoji:p,isVideo:m,isCommand:x,isWebRequest:C,isWebScraping:b,isPath:g,isLink:k,isLargeView:j,imageDataUrl:S,isPinned:E,isFavorite:N,requestOptions:T,isShowLinkedClip:M,formTemplateOptions:L,isNewlyCreated:D,isDark:P,detectedLanguage:A,isHistoryDragActive:B,onCancel:z}){var Qt,Vt,_e,sn,Ht,kt,rn,Zt,Jt,gn,zt,Mn;const{t:R}=wt(),$=f.useRef(null),_=He(""),U=He({method:"GET",headers:[],body:"",scrapingRules:[],scrapingOptions:{returnType:"Text",returnSeparator:null,returnCount:null},filters:[],auth:{}}),K=He({templateOptions:[],formOptions:{fields:[]}}),W=He(""),G=He(""),Z=He("text"),F=He({body:null,status:null,hasFiltersError:null,foundCount:null,filteredBody:null,contentType:null}),{metadataLinkByItemId:V,invalidateLinkMetadataByItemId:q}=Sg(k,e),ne=(V==null?void 0:V.linkTitle)&&(V==null?void 0:V.linkDomain),Q=Sm(),ae=He(!1),re=He([]),le=He([]),oe=He(Date.now()),ie=He(!1),de=He(void 0),xe=He(void 0),je=He(void 0),Ee=He(void 0),{updateItemById:Te}=ji(),Me=f.useRef(null),ze=Gs(_.value,300),qe=Gs(_.value,600),Ye=j?"max-h-[600px]":"max-h-[300px]",Ve=He(!1);f.useEffect(()=>{if(T)try{const Ce=JSON.parse(T);U.value={...U.value,...Ce}}catch(Ce){console.log("error",Ce)}},[T]),f.useEffect(()=>{if(L)try{const Ce=JSON.parse(L);K.value={...K.value,...Ce}}catch(Ce){console.log("error",Ce)}},[L]),f.useEffect(()=>{_.value=n!=null?n:""},[n]);const Lt=f.useMemo(()=>r?R("Type:::Code Snippet",{ns:"common"}):c?R("Type:::Image",{ns:"common"}):x?R("Type:::Shell Command",{ns:"common"}):C?R("Type:::Web Request (HTTP)",{ns:"common"}):b?R("Type:::Web Scraper / Parser",{ns:"common"}):k?R("Type:::Link or Email",{ns:"common"}):g?R("Type:::File, Path or App",{ns:"common"}):i?R("Type:::Form Auto Fill",{ns:"common"}):o?R("Type:::Template Fill",{ns:"common"}):R("Type:::Plain Text",{ns:"common"}),[r,c,x,C,k,g,i,o,b]);f.useEffect(()=>{if(k){const Ce=wr().match(_.value);!Ce||Ce.length>1?de.value=!0:de.value=!1}},[k]);const $e=f.useCallback(async Ce=>{const Be=n===_.value?n:Ce;g&&Be.length>5&&vn("check_path",{path:Be}).then(()=>{xe.value=!1}).catch(()=>{xe.value=!0})},[g]),st=f.useCallback(Ce=>{const Be=/{{[^{}]+}}/g;re.value=[],le.value=[];const ke=Ce.match(Be);ke&&ke.forEach((Qe,ge)=>{ke[ge]=Qe.replace(/[\n\r{}]+/g,"").trim(),le.value.push(ke[ge].toLocaleLowerCase());const ve=K.value.templateOptions.find(Ie=>{var Ae;return((Ae=Ie.label)==null?void 0:Ae.toLocaleLowerCase())===ke[ge].toLocaleLowerCase()});ve?ve.isFound=!0:re.value.push(ke[ge])}),!ke||ke.length===0||re.value.length>0?Ee.value=!0:Ee.value=!1},[o,K.value.templateOptions]);f.useEffect(()=>{g&&ze.length>5&&$e(ze)},[g,ze]),f.useEffect(()=>{o&&qe.length>5&&st(_.value)},[qe]),f.useEffect(()=>{(de.value||xe.value||Ee.value||je.value)&&ie.value&&(ae.value=!0)},[de.value,xe.value,je.value,Ee.value,ie.value]),f.useEffect(()=>{F.value.status&&F.value.status>=400&&ie.value&&(ae.value=!0)},[F.value.status,ie.value]);const At=async(Ce=!1)=>{var Qe,ge,ve,Ie,Ae,Ze;if(Ip.value){co.value=!0;return}let Be=null;ae.value=!1,ie.value=!0,co.value=!1,de.value=void 0,xe.value=void 0,F.value={};const ke=_.value.trim();if(Ce)Be=g?"Error":null;else{if(o)if(st(_.value),re.value.length>0||le.value.length===0){Ee.value=!0;return}else Ee.value=!1;if(i&&((Qe=K.value.formOptions)!=null&&Qe.openUrl)&&!((ge=K.value.formOptions)!=null&&ge.isOpenUrlDisabled)){const Je=wr().match((ve=K.value.formOptions)==null?void 0:ve.openUrl);if(!Je||Je.length>1){de.value=!0;return}}if(k){const Je=wr().match(ke);if(!Je||Je.length>1){de.value=!0;return}}if(g)try{Be=await vn("path_type_check",{path:ke})}catch{Be="Error",xe.value=!0;return}else if(x)try{if(await vn("run_shell_command",{execCmd:ke}),((Ie=U.value.outputTemplate)==null?void 0:Ie.id)&&!((Ze=(Ae=U.value.outputTemplate)==null?void 0:Ae.value)!=null&&Ze.includes("{{output}}"))){Ee.value=!0;return}}catch(Je){W.value=Je,je.value=!0;return}else if(C)try{const Je=await vn("run_web_request",{request:{url:ke,method:U.value.method,headers:U.value.headers,filters:U.value.filters,body:U.value.body,auth:U.value.auth}});if(F.value={},Je.status&&Je.status>=400){F.value={body:Je.body,filteredBody:Je.filteredBody,hasFiltersError:Je.hasFiltersError,status:Je.status,contentType:Je.contentType};return}}catch(Je){F.value={body:Je,status:500,contentType:null};return}else if(b)try{const Je=await vn("run_web_scraping",{request:{url:ke,method:"GET",scrapingRules:U.value.scrapingRules,scrapingOptions:U.value.scrapingOptions}});if(F.value={},Je.status&&Je.status>=400){F.value={body:Je.body,filteredBody:Je.scrappedBody,hasFiltersError:Je.hasRulesError,status:Je.status};return}}catch(Je){F.value={body:Je,status:500,contentType:null};return}}(i||o)&&(o&&K.value.templateOptions.forEach(Je=>{Je.defaultValue=Je.value}),L=JSON.stringify(K.value),await Te({updatedItem:{formTemplateOptions:L,isForm:!!i,isTemplate:!!o,itemId:e}})),(C||b||x)&&(T=JSON.stringify(U.value),await Te({updatedItem:{requestOptions:T,itemId:e}})),await Te({updatedItem:{value:ke,...x?{isCommand:!0}:{},...C?{isWebRequest:!0}:{},...b?{isWebScraping:!0}:{},...Be&&g?{pathType:Be}:{},itemId:e}}),setTimeout(()=>{ie.value=!1,z()},200)};return f.useEffect(()=>{var Ce;M&&((Ce=$==null?void 0:$.current)==null||Ce.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[M,$==null?void 0:$.current]),a.jsx(Ku,{className:dn("px-2 pr-1.5 py-2 m-0.5 mt-0 pt-0 mx-1 text-left flex flex-row rounded-md select-auto",u&&"bg-red-50 dark:bg-red-900"),children:a.jsxs(J,{className:"w-full mt-0",ref:$,children:[!B||c&&S?r||A||c||x||k||C||o||b||i||g?g?a.jsxs(fe,{className:"relative text-normal",children:[a.jsx(Gt,{defaultValue:_.value,placeholder:R("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(xe.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(xe.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:a.jsx(J,{className:"absolute top-3 right-4",children:xe.value?a.jsx(De,{text:R("File, folder or app path might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):xe.value===!1&&a.jsx(De,{text:R("File, folder or app path is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Ce=>{_.value=Ce.target.value}},oe.value),a.jsx(Tz,{onCallBack:Ce=>{oe.value=Date.now(),_.value=Ce}})]}):k?a.jsxs(fe,{className:"relative text-normal mt-1 flex-col",children:[a.jsx(Gt,{defaultValue:_.value,placeholder:R("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(de.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(de.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:a.jsx(J,{className:"absolute top-3 right-2",children:de.value?a.jsx(De,{text:R("Web Link or Email might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 dark:text-slate-200 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):de.value===!1&&a.jsx(De,{text:R("Web or Email link is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 dark:text-slate-200 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Ce=>{if(de.value&&(de.value=void 0),Ce.target.value.length>5){const Be=wr().match(Ce.target.value);!Be||Be.length>1?de.value=!0:de.value=!1}_.value=Ce.target.value}}),ne&&a.jsx(J,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:a.jsx(bm,{isDisabled:mr((Qt=_.value)==null?void 0:Qt.trim())!==((Vt=V==null?void 0:V.linkUrl)==null?void 0:Vt.trim()),title:V==null?void 0:V.linkTitle,description:V==null?void 0:V.linkDescription,favicon:V==null?void 0:V.linkFavicon,link:V==null?void 0:V.linkUrl,image:V==null?void 0:V.linkImage,domain:V==null?void 0:V.linkDomain})}),c?!Jl(_.value)&&!de.value&&a.jsx(J,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:a.jsx(_i,{src:mr(_.value),hasError:Ve.value,onErrorCallback:()=>{Ve.value=!0},draggable:!1,decoding:"async",className:"".concat(Ye," min-h-10")})}):a.jsxs(fe,{className:"w-full mt-1 justify-start select-none",children:[Jl(_.value)||de.value||_.value.length<3?!Jl(_.value)&&a.jsx(ye,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:ne?a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[a.jsx(Lx,{size:13,className:"mr-1"}),"!",R("Update Link Card",{ns:"dashboard"}),"!"]}):a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[a.jsx(X0,{size:13,className:"mr-1"}),R("Add Link Card",{ns:"dashboard"})]})}):a.jsx(ye,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:async()=>{await vn("fetch_link_metadata",{url:mr(_.value),itemId:e}),q()},children:ne?a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[a.jsx(Lx,{size:13,className:"mr-1"}),R("Update Link Card",{ns:"dashboard"})]}):a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[a.jsx(X0,{size:13,className:"mr-1"}),R("Add Link Card",{ns:"dashboard"})]})}),ne&&a.jsx(ye,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:async()=>{await vn("delete_link_metadata",{itemId:e}),q()},children:a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[R("Remove",{ns:"common"}),a.jsx(J0,{size:14,className:"ml-1"})]})})]})]}):r?a.jsx($S,{value:_.value,height:j?"calc(100vh - 280px)":"200px",isDark:P,options:{mode:A!=null?A:"javascript"},onChange:Ce=>{_.value=Ce.getValue()}},"code-editor"):c?a.jsxs(J,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[a.jsx("img",{src:S||Gu,draggable:!1,decoding:"async",height:"auto",className:"".concat(OC.value===e?"!border-red-400 opacity-70":""," max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-400")}),a.jsx(J,{className:"absolute",children:S?a.jsx(Pz,{id:e}):a.jsx(Iz,{id:e})})]}):x?a.jsxs(J,{className:"mt-0.5",children:[a.jsx($S,{value:_.value,height:j?"260px":"70px",isDark:P,isCmd:!0,lineWrapping:!0,options:{mode:"shell"},onChange:Ce=>{_.value=Ce.getValue(),W.value="",je.value=void 0}},"code-editor"),(_e=U.value.outputRegexFilter)!=null&&_e.id?a.jsxs(J,{className:"mt-2",children:[a.jsx(fe,{className:"gap-1 w-full justify-start",children:a.jsx(X,{className:"font-semibold",size:"sm",children:R("Regex Match Group Filter",{ns:"dashboard"})})}),a.jsxs(fe,{className:"gap-2 mb-2",children:[a.jsx(Gt,{small:!0,defaultValue:(sn=U.value.outputRegexFilter)==null?void 0:sn.value,disabled:((Ht=U.value.outputRegexFilter)==null?void 0:Ht.isEnable)===!1,onChange:Ce=>{U.value.outputRegexFilter||(U.value.outputRegexFilter={}),U.value.outputRegexFilter.value=Ce.target.value.trim()},className:"".concat(((kt=U.value.outputRegexFilter)==null?void 0:kt.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:R("Enter regex for output filer",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(ye,{size:"mini",title:R("Enable / Disable",{ns:"dashboard"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ce;U.value={...U.value,outputRegexFilter:{...U.value.outputRegexFilter,isEnable:!((Ce=U.value.outputRegexFilter)!=null&&Ce.isEnable)}}},children:(rn=U.value.outputRegexFilter)!=null&&rn.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsx(ye,{size:"mini",title:R("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{U.value={...U.value,outputRegexFilter:{}}},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]})]}):a.jsx(fe,{className:"gap-4 w-full justify-start mt-2 mb-1",children:a.jsx(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Ce,Be,ke;U.value.outputRegexFilter||(U.value.outputRegexFilter={}),U.value={...U.value,outputRegexFilter:{id:(Ce=U.value.outputRegexFilter.id)!=null?Ce:Date.now().toString(),value:(Be=U.value.outputRegexFilter.value)!=null?Be:"",isEnable:(ke=U.value.outputRegexFilter.isEnable)!=null?ke:!0}}},children:R("Add Regex Match Group Filter",{ns:"dashboard"})})}),(Zt=U.value.outputTemplate)!=null&&Zt.id?a.jsxs(J,{className:"mt-2",children:[a.jsx(fe,{className:"gap-1 w-full justify-start",children:a.jsx(X,{className:"font-semibold",size:"sm",children:R("Output Template",{ns:"dashboard"})})}),Ee.value&&a.jsx(X,{className:"!text-yellow-600 text-xs mt-2",children:a.jsx(Ps,{i18nKey:"Template should have\u2800<b>{{output}}</b>\u2800placeholder.",ns:"dashboard"})}),a.jsxs(fe,{className:"gap-2 mb-2",children:[a.jsx(Gt,{small:!0,defaultValue:(Jt=U.value.outputTemplate)==null?void 0:Jt.value,disabled:((gn=U.value.outputTemplate)==null?void 0:gn.isEnable)===!1,onChange:Ce=>{U.value.outputTemplate||(U.value.outputTemplate={}),U.value.outputTemplate.value=Ce.target.value.trim()},className:"".concat(((zt=U.value.outputTemplate)==null?void 0:zt.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:R("Wrap output using {{output}} placeholder",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),a.jsx(ye,{size:"mini",title:R("Enable / Disable",{ns:"dashboard"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ce;U.value={...U.value,outputTemplate:{...U.value.outputTemplate,isEnable:!((Ce=U.value.outputTemplate)!=null&&Ce.isEnable)}}},children:(Mn=U.value.outputTemplate)!=null&&Mn.isEnable?a.jsx(hs,{size:14}):a.jsx(Ya,{size:14})}),a.jsx(ye,{size:"mini",title:R("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{U.value={...U.value,outputTemplate:{}}},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:a.jsx(or,{size:14})})]})]}):a.jsx(fe,{className:"gap-4 w-full justify-start mt-2 mb-1",children:a.jsx(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Ce,Be,ke;U.value.outputTemplate||(U.value.outputTemplate={}),U.value={...U.value,outputTemplate:{id:(Ce=U.value.outputTemplate.id)!=null?Ce:Date.now().toString(),value:(Be=U.value.outputTemplate.value)!=null?Be:"",isEnable:(ke=U.value.outputTemplate.isEnable)!=null?ke:!0}}},children:R("Add Output Template",{ns:"dashboard"})})}),W.value&&a.jsxs(J,{className:"".concat(je.value?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," ").concat(j?"py-1":"py-0"," rounded-md px-3 relative"),children:[a.jsx(es,{isDark:P,maxHeight:j?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:W.value,language:"shell"}),a.jsx(J,{className:"".concat(je.value?"bg-red-300 dark:bg-red-800":"bg-green-300 dark:bg-green-800"," text-xs rounded-sm px-1.5 absolute right-2 bottom-2 select-none"),children:je.value?R("Command:::error",{ns:"dashboard"}):R("Command:::output",{ns:"dashboard"})})]})]}):C?a.jsx(jve,{isLargeView:j,clipId:e,clipValue:_,webrequestTestOutputObject:F,webrequestLocalOptions:U,showLinkValidationError:de,isDark:P,requestOptions:T}):b?a.jsx(Cve,{isLargeView:j,clipValue:_,testOutputObject:F,localOptions:U,showLinkValidationError:de,isDark:P,requestOptions:T}):o?a.jsxs(J,{children:[a.jsx(kve,{clipValue:_,isLargeView:j,checkForTemplateFieldsCallback:()=>{st(_.value)},templateMissingFields:re,templateFoundFields:le,localOptions:K}),G.value&&a.jsxs(J,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-2 rounded-md text-sm",children:[a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:a.jsxs(J,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8",children:[a.jsx("div",{...Z.value==="html"&&{dangerouslySetInnerHTML:{__html:pz.sanitize(G.value)}},className:"font-normal"}),Z.value==="text"&&G.value]})}),a.jsx(Rn,{size:16,className:"absolute right-2 top-2 cursor-pointer opacity-30 hover:opacity-100",onClick:()=>{G.value=""}}),a.jsx(J,{className:"bg-slate-300 dark:bg-slate-900 text-xs rounded-sm px-1.5 absolute left-2 bottom-2 select-none",children:R("filled template",{ns:"dashboard"})}),a.jsx(Xi,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:Z.value,onValueChange:Ce=>{Z.value=Ce==="html"?"html":"text"},children:a.jsxs(Vo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[a.jsx(br,{value:"text",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:R("Text",{ns:"dashboard"})}),a.jsx(br,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:R("HTML",{ns:"dashboard"})})]})})]})]}):i&&a.jsx(wve,{isLargeView:j,showLinkValidationError:de,localOptions:K}):a.jsxs(a.Fragment,{children:[a.jsxs(J,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[a.jsx(De,{isCompact:!0,text:R("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:a.jsx(QM,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("copy")}})}),a.jsx(De,{isCompact:!0,text:R("Toolbar:::Masked Text Formatting",{ns:"common"}),children:a.jsx(yz,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("mask")}})}),a.jsx(De,{isCompact:!0,text:R("Toolbar:::Blank Text Formatting",{ns:"common"}),children:a.jsx(gz,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("blank")}})}),a.jsx(De,{isCompact:!0,text:R("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:a.jsx(vz,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("hl")}})}),a.jsx(De,{isCompact:!0,text:R("Toolbar:::Header Formatting",{ns:"common"}),children:a.jsx(cre,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("h")}})}),a.jsx(De,{isCompact:!0,text:R("Toolbar:::Bold Formatting",{ns:"common"}),children:a.jsx(ste,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("b")}})}),a.jsx(De,{isCompact:!0,text:R("Toolbar:::Italic Formatting",{ns:"common"}),children:a.jsx(xre,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleAddBBcode("i")}})}),a.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:a.jsx(De,{isCompact:!0,text:R("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:a.jsx(lL,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var Ce;(Ce=Me==null?void 0:Me.current)==null||Ce.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),a.jsx(go,{ref:Me,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:R("Enter value or drag from history",{ns:"dashboard"}),rows:2,autoFocus:D,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:j?12:6,value:_.value,onKeyDown:Ce=>{Ce.stopPropagation()},onChange:Ce=>{_.value=Ce.target.value}})]}):a.jsx(bve,{isOver:t}),a.jsx(An,{style:{minWidth:"100%"},className:"dashboard-tabs",children:a.jsxs(fe,{className:"w-full justify-start items-center select-none",children:[a.jsxs(fe,{className:"items-start mt-2",children:[a.jsx(vve,{isCode:r,isCommand:x,isWebRequest:C,isWebScraping:b,isLink:k,isPath:g,isText:s,isTemplate:o,isForm:i,isImage:c,itemId:e,detectedLanguage:A,children:a.jsx(J,{children:a.jsx(De,{text:Lt,isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"px-2 h-8 text-slate-500 border-0 dark:hover:bg-slate-900/70 bg-slate-200 dark:bg-slate-800 text-sm group hover:text-blue-500 dark:hover:!text-blue-600",children:r?a.jsxs(a.Fragment,{children:[a.jsx(VC,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Code",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):c?a.jsxs(a.Fragment,{children:[a.jsx(_x,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Image",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):g?a.jsxs(a.Fragment,{children:[a.jsx(YC,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Path",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):C?a.jsxs(a.Fragment,{children:[a.jsx(SA,{width:16,height:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Request",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):b?a.jsxs(a.Fragment,{children:[a.jsx(EA,{width:16,height:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Scraper",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):x?a.jsxs(a.Fragment,{children:[a.jsx(mL,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Command",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):k?a.jsxs(a.Fragment,{children:[a.jsx(eL,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Link",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):i?a.jsxs(a.Fragment,{children:[a.jsx(gL,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::AutoFill",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):o?a.jsxs(a.Fragment,{children:[a.jsx(qC,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Template",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ex,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:R("Type:::Text",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]})})})})})}),x?a.jsx(De,{text:R("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:async()=>{var Ce,Be,ke,Qe,ge;try{W.value=await vn("run_shell_command",{execCmd:_.value,outputTemplate:(Ce=U.value.outputTemplate)!=null&&Ce.id?U.value.outputTemplate:null,outputRegexFilter:(Be=U.value.outputRegexFilter)!=null&&Be.id?U.value.outputRegexFilter:null}),je.value=!1,Ee.value=!!((ke=U.value.outputTemplate)!=null&&ke.id&&!((ge=(Qe=U.value.outputTemplate)==null?void 0:Qe.value)!=null&&ge.includes("{{output}}")))}catch(ve){W.value=ve,je.value=!0}},children:a.jsx(fe,{className:"font-medium text-sm gap-1",children:a.jsx(Q0,{size:16,className:"text-gray-500"})})})})}):C?a.jsx(De,{text:R("Test Request",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:async()=>{F.value={};try{F.value=await vn("run_web_request",{request:{url:_.value,method:U.value.method,headers:U.value.headers,filters:U.value.filters,body:U.value.body,auth:U.value.auth}})}catch(Ce){F.value={body:Ce,status:500,contentType:null}}},children:a.jsx(fe,{className:"font-medium text-sm gap-1",children:a.jsx(Q0,{size:16,className:"text-gray-500"})})})})}):i?a.jsx(De,{text:R("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:async()=>{await vn("run_form_fill",{formOptions:K.value.formOptions,firstDelay:1})},children:a.jsx(fe,{className:"font-medium text-sm gap-1",children:a.jsx(Q0,{size:16,className:"text-gray-500"})})})})}):o?a.jsx(De,{text:R("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:async()=>{G.value=await vn("run_template_fill",{templateValue:_.value,templateOptions:K.value.templateOptions})},children:a.jsx(fe,{className:"font-medium text-sm gap-1",children:a.jsx(Q0,{size:16,className:"text-gray-500"})})})})}):b&&a.jsx(De,{text:R("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:async()=>{F.value={};try{F.value=await vn("run_web_scraping",{request:{url:_.value,method:"GET",scrapingRules:U.value.scrapingRules,scrapingOptions:U.value.scrapingOptions}})}catch(Ce){F.value={body:Ce,status:500,contentType:null}}},children:a.jsx(fe,{className:"font-medium text-sm gap-1",children:a.jsx(Q0,{size:16,className:"text-gray-500"})})})})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(De,{text:R("Clip Options",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500",children:a.jsx(Tu,{size:16})})})})}),a.jsxs(Cn,{className:"",sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{children:R("Clip Options",{ns:"dashboard"})})}),a.jsx(Yt,{}),E?a.jsxs(Oe,{onClick:()=>{Te({updatedItem:{isPinned:!1,itemId:e}})},children:[R("UnPin Clip",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Iu,{size:15})})]}):a.jsxs(Oe,{onClick:()=>{Te({updatedItem:{isPinned:!0,itemId:e}})},children:[R("Pin",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(zl,{size:15})})]}),N?a.jsxs(Oe,{onClick:()=>{Te({updatedItem:{isFavorite:!1,itemId:e}})},children:[R("Remove Star",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Ox,{size:15,className:"fill-transparent"})})]}):a.jsxs(Oe,{onClick:()=>{Te({updatedItem:{isFavorite:!0,itemId:e}})},children:[R("Star",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Mu,{size:15,className:"fill-transparent"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{className:h?"font-semibold":"",onClick:Ce=>{Ce.preventDefault(),Te({updatedItem:{isMasked:!h,itemId:e}})},children:[R("Type:::Secret",{ns:"common"}),h&&a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Dt,{size:15,className:"fill-transparent"})})]}),a.jsxs(Oe,{className:m?"font-semibold":"",onClick:Ce=>{Ce.preventDefault(),Te({updatedItem:{isVideo:!m,itemId:e}})},children:[R("Type:::Video",{ns:"common"}),m&&a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Dt,{size:15,className:"fill-transparent"})})]}),a.jsxs(Oe,{className:p?"font-semibold":"",onClick:Ce=>{Ce.preventDefault(),Te({updatedItem:{hasEmoji:!p,itemId:e}})},children:[R("Type:::Emoji",{ns:"common"}),p&&a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Dt,{size:15,className:"fill-transparent"})})]}),a.jsx(Yt,{}),a.jsx(yve,{clipId:e,onComplete:z})]})]})]}),a.jsxs(fe,{className:"items-end ml-auto mt-1",children:[a.jsx(De,{text:R("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{z()},children:a.jsx(Rn,{size:18})})})}),a.jsxs(Qa,{defaultOpen:!1,open:ae.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsxs(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>{!Q&&(x||C||b)?Uc.value=!0:At()},children:[a.jsx(Dt,{size:18,className:"mr-1"}),R("Save",{ns:"common"}),(x||C||b)&&a.jsx(eh,{})]})})}),a.jsx(Da,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{ae.value=!1,ie.value=!1},onPointerDownOutside:()=>{ae.value=!1,ie.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:a.jsxs(fe,{className:"flex-col p-1.5 rounded-md",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:de.value?R("Errors:::Please verify your link for any errors, or confirm to save as is.",{ns:"dashboard"}):xe.value?R("Errors:::Please verify your path for any errors, or confirm to save as is.",{ns:"dashboard"}):je.value?R("Errors:::Your command runs with errors, confirm you want to save as is.",{ns:"dashboard"}):F.value.status&&!F.value.hasFiltersError&&F.value.status>=400?R("Errors:::Your request runs with errors, confirm you want to save as is.",{ns:"dashboard"}):F.value.status&&F.value.hasFiltersError&&F.value.status>=400?R("Errors:::Your request has filters error, confirm you want to save as is.",{ns:"dashboard"}):Ee.value?le.value.length===0?R("Errors:::No fields found in the template.",{ns:"dashboard"})+" "+R("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):re.value.length>0?R("{{count}} fields found in template but missing from fields definition.",{ns:"dashboard",count:re.value.length})+" "+R("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):R("Errors:::Your template has errors, confirm you want to save as is.",{ns:"dashboard"}):R("Please confirm to save as is.",{ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{className:"mb-1",children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{ae.value=!1,ie.value=!1},children:R("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200 whitespace-nowrap",onClick:()=>{At(!0)},children:R("Save It!",{ns:"common"})})]})]})})]})]})]})})]})})}const VS=["post","page","media","creditcard","tiktok","kanbanSquare","arrowRight","twitter","facebook","linkedin","twitch","youtube","instagram","slack","dribbble","trello","chrome","codePen","codesandbox","figma","send","check","check2","copy","help","pin","copyDone","star","list","list2","list3","list5","listmusic","listchecks","listCollapse","listOrdered","listTree","listToDo","scrollText","audioLines","audioWaveform","mic","mails","atSign","mail","inbox","archive","container","sendHorizontal","contact","contact2","userRound","circleUser","userSquare","squareUser","userRound2","user","baby","notebook","paperclip","bookUser","nfc","smartphoneNfc","smartphone","graduationCap","apple2","appWindows","alertTriangle","alertCircle","alarmClock","alertOctagon","voicemail","calendarClock","calendarDays","calendarHeart","angry","annoyed","frown","meh","smile","eye","fan","handMetal","heartHandshake","heart","leafyGreen","ribbon","ralad","crown","camera","fingerprint","flame","database","dog","cat","bird","rabbit","fish","fishSymbol","carrot","candy","cherry","dice","biohazard","satellite","satelliteDish","radioTower","radio","wifi","router","bitcoin","dollarSign","circleDollarSign","euro","drum","medal","beer","beef","bell","draftingCompass","trophy","gaugeCircle","gauge","bike","award","trafficCone","tramFront","truck","plane","car","dumbbell","parkingCircle","parkingSquare","msquare","partyPopper","conciergeBell","aperture","areaChart","armchair","arrowUpRightSquare","asteriskSquare","asterisk","keySquare","key","lockKeyhole","lock","shieldCheck","shield","compass","shieldHalf","presentation","folder","folderHeart","folderTree","folderDot","folderGit","folderGit2","folderKey","folderLock","folderKanban","file","fileCode","fileText","fileCode2","fileJson","fileJson2","fileTerminal","fileVideo","fileVideo2","fileVolume","fileHeart","fileImage","fileLock2","fileLock","fileSpreadsheet","fileCog","fileMusic","filePieChart","filePen","fileSearch","fileLineChart","fileSymlink","driveDownload","driveUpload","imageDown","import","music","sheet","pieChart","packageOpen","package","gamepad2","joystick","hammer","lampDesk","lamp","bookOpen","airplay","code2","code","codeSquare","functionSquare","arrowDownCircle","arrowUpCircle","arrowLeftCircle","arrowRightCircle","gem","ghost","rocket","skull","sparkles","puzzle","messageWarning","messageWarning2","dessert","pizza","venetianMask","wand","toyBrick","mountain","milestone","feather","flaskRound","goal","hourglass","axe","gitlab","github2","sprayCcan","gift","swords","fileAudio2","downloadCloud","uploadCloud","upload","download","globe","globe2","hash","highlighter","infinity","lifeBuoy","locateFixed","mapPin","map","magnet","martini","mountainSnow","mousePointer","move3d","network","newspaper","notebook2","notepadText","megaphone","ganttChartSquare","personStanding","plug2","play","plug","plugZap2","plugZap","radiation","quote","tag","speech","spade","shoppingCart","slidersHorizontal","discord","gitHub","npm","pnpm","node","react","tailwind","google","apple","paypal"],bo={logo:e=>a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:a.jsx("circle",{cx:"12",cy:"12",r:"10"})}),close:Rn,spinner:Are,chevronLeft:bte,chevronRight:Lp,trash:or,post:Ex,page:tL,media:_x,settings:Tu,ellipsis:bi,add:Ir,warning:Ho,arrowRight:Vee,help:Tte,twitter:Ose,check:Dt,check2:yte,copy:BC,pin:zl,pinoff:Iu,copyDone:ZM,sun:Cse,moon:nae,facebook:cne,linkedin:_re,twitch:Dse,youtube:Vse,instagram:yre,slack:rse,dribbble:rne,trello:Tse,star:Mu,chrome:jte,codePen:$te,codesandbox:Bte,figma:hne,image:_x,list:Ix,list2:Rre,list3:UM,list4:Dee,list5:Lee,listmusic:Mre,listchecks:QC,listCollapse:Ire,listOrdered:Lre,listTree:Pre,listToDo:Ore,scrollText:Uae,scroll:qae,audioLines:Yee,audioWaveform:Kee,mic:eae,mails:Wre,atSign:qee,mail:Bre,inbox:gre,archive:Hee,container:Yte,sendHorizontal:Yae,send:Kae,contact:qte,contact2:Ute,userRound:Dte,circleUser:Ote,userSquare:kse,squareUser:jse,userRound2:Rse,user:Ase,baby:Qee,notebook:hae,paperclip:wae,bookUser:ite,nfc:uae,smartphoneNfc:sse,smartphone:ose,graduationCap:nre,apple2:Fee,appWindows:zee,aLargeSmall:Iee,alertTriangle:Ho,alertCircle:GM,alarmClock:Mee,alertOctagon:fae,voicemail:Fse,calendarClock:cte,calendarDays:dte,calendarHeart:ute,angry:Pee,annoyed:Ree,frown:qne,meh:Zre,smile:ise,eye:Dp,fan:dne,handMetal:ore,heartHandshake:dre,heart:GC,leafyGreen:Ere,ribbon:Fae,ralad:Bae,crown:Gte,camera:pte,fingerprint:Mne,flame:One,database:Zte,dog:Xte,cat:vte,bird:rte,rabbit:Pae,fish:Dne,fishSymbol:Lne,carrot:gte,candy:mte,cherry:xte,dice:Jte,biohazard:nte,satellite:Vae,satelliteDish:Wae,radioTower:Aae,radio:zae,wifi:Bse,router:Hae,bitcoin:ate,dollarSign:ene,circleDollarSign:_te,euro:lne,drum:ane,medal:Kre,beer:Xee,beef:Jee,bell:ete,draftingCompass:nne,trophy:Mse,gaugeCircle:Ite,gauge:Kne,bike:tte,award:Gee,trafficCone:_se,tramFront:Ise,truck:Lse,plane:Eae,car:fte,dumbbell:sne,parkingCircle:Mte,parkingSquare:wse,msquare:yse,partyPopper:kae,conciergeBell:Vte,aperture:Aee,areaChart:$ee,armchair:Bee,arrowUpRightSquare:hse,asteriskSquare:dL,asterisk:Uee,keySquare:wre,key:kre,lockKeyhole:Fre,lock:Hre,shieldCheck:Zae,shield:Jae,compass:Wte,shieldHalf:Qae,presentation:Lae,folder:Op,folderHeart:Hne,folderTree:Une,folderDot:Ane,folderGit:Fne,folderGit2:zne,folderKey:Bne,folderLock:Wne,folderKanban:$ne,file:tL,fileCode:mne,fileText:Ex,fileCode2:VC,fileJson:yne,fileJson2:vne,fileTerminal:Nne,fileVideo:Ine,fileVideo2:_ne,fileVolume:Tne,fileHeart:fne,fileImage:gne,fileLock2:bne,fileLock:wne,fileSpreadsheet:Ene,fileCog:UC,fileMusic:kne,filePieChart:Cne,filePen:jne,fileSearch:Sne,fileLineChart:xne,fileSymlink:YC,driveDownload:ire,driveUpload:aL,imageDown:mre,import:fre,music:lae,sheet:Gae,pieChart:Cae,packageOpen:gae,package:vae,gamepad2:Yne,joystick:bre,hammer:sre,lampDesk:jre,lamp:Cre,bookOpen:ote,airplay:Tee,code2:Fte,code:Hte,codeSquare:pse,functionSquare:hL,arrowDownCircle:Cte,arrowUpCircle:Nte,arrowLeftCircle:Ste,arrowRightCircle:Ete,gem:Gne,ghost:Zne,rocket:cL,skull:nse,sparkles:cse,puzzle:Dae,messageWarning:Qre,messageWarning2:Xre,dessert:Qte,pizza:Sae,venetianMask:zse,wand:Hse,toyBrick:Nse,mountain:aae,milestone:tae,feather:une,flaskRound:Pne,goal:tre,hourglass:pre,axe:Zee,gitlab:Xne,github2:Jne,sprayCcan:use,gift:Qne,swords:Sse,fileAudio2:pne,downloadCloud:Ate,uploadCloud:zte,upload:Pse,download:tne,globe:ere,globe2:one,hash:lre,highlighter:ure,infinity:vre,lifeBuoy:Nre,locateFixed:zre,mapPin:Vre,map:Ure,magnet:$re,martini:qre,mountainSnow:rae,mousePointer:bse,move3d:sae,network:cae,newspaper:dae,notebook2:pae,notepadText:mae,megaphone:Gre,ganttChartSquare:fse,personStanding:jae,plug2:_ae,play:Nae,plug:Mae,plugZap2:Iae,plugZap:Tae,radiation:Rae,quote:Oae,tag:Ese,speech:dse,spade:lse,shoppingCart:Xae,slidersHorizontal:ase,kanbanSquare:gse,creditcard:e=>a.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e.size,height:e.size,...e,children:[a.jsx("path",{d:"M21.278 3.054H2.722c-.614.003-1.202.249-1.636.683-.434.434-.68 1.022-.683 1.636v13.254c.003.614.249 1.202.683 1.636.434.434 1.022.68 1.636.683h18.556a2.3306 2.3306 0 0 0 1.636-.683c.434-.434.68-1.022.683-1.636V5.373a2.3306 2.3306 0 0 0-.683-1.636 2.3306 2.3306 0 0 0-1.636-.683ZM2.722 5.042h18.556c.088 0 .172.035.234.097.062.062.097.146.097.234v2.982H2.391V5.373c0-.088.035-.172.097-.234a.3307.3307 0 0 1 .234-.097Zm18.556 13.916H2.722a.3307.3307 0 0 1-.234-.097.3307.3307 0 0 1-.097-.234v-8.284h19.218v8.284c0 .088-.035.172-.097.234a.3307.3307 0 0 1-.234.097Z"}),a.jsx("path",{d:"M8.055 14.438H6.204c-.245 0-.48.097-.654.271a.9266.9266 0 0 0-.271.654c0 .245.098.481.271.654.174.174.409.271.654.271h1.851c.246 0 .481-.097.655-.271.173-.173.27-.409.27-.654 0-.245-.097-.481-.27-.654a.9247.9247 0 0 0-.655-.271Zm4.6 0h-1.851c-.245 0-.48.097-.654.271a.9266.9266 0 0 0-.271.654c0 .245.098.481.271.654.174.174.409.271.654.271h1.851c.246 0 .481-.097.655-.271.173-.173.27-.409.27-.654 0-.245-.097-.481-.27-.654a.9247.9247 0 0 0-.655-.271Z"})]}),discord:e=>a.jsx("svg",{viewBox:"0 0 127.14 96.36",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})}),gitHub:e=>a.jsx("svg",{viewBox:"0 0 438.549 438.549",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),npm:e=>a.jsx("svg",{viewBox:"0 0 24 24",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"})}),tiktok:e=>a.jsxs("svg",{viewBox:"0 0 25 25",width:e.size,height:e.size,...e,fill:"none",stroke:"currentColor",children:[a.jsx("path",{stroke:"currentColor",strokeWidth:"1.8",d:"M23.078 7.077v9.846c0 3.399-2.756 6.155-6.155 6.155H7.077c-3.399 0-6.155-2.756-6.155-6.155V7.077C.922 3.678 3.678.922 7.077.922h9.846c3.399 0 6.155 2.756 6.155 6.155Z"}),a.jsx("path",{stroke:"currentColor",strokeWidth:"1.8",d:"M9.538 12c-2.039 0-3.692 1.653-3.692 3.693 0 2.039 1.653 3.692 3.692 3.692 2.04 0 3.693-1.653 3.693-3.692V4.615c.41 1.231 1.969 3.692 4.923 3.692"})]}),pnpm:e=>a.jsx("svg",{viewBox:"0 0 24 24",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z"})}),node:e=>a.jsx("svg",{viewBox:"0 0 16 16",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M 8 1.0234375 C 7.736875 1.0234375 7.4742344 1.0924687 7.2402344 1.2304688 L 2.7402344 3.8789062 C 2.2832344 4.1469063 2 4.642875 2 5.171875 L 2 11.005859 C 2 11.554859 2.29925 12.059266 2.78125 12.322266 L 4.2558594 13.126953 C 4.4828594 13.250953 4.7286094 13.310547 4.9746094 13.310547 C 5.2386094 13.310547 5.4992812 13.239609 5.7382812 13.099609 C 6.1982812 12.826609 6.4726562 12.344594 6.4726562 11.808594 L 6.4726562 5.4648438 L 5.4726562 5.4648438 L 5.4726562 11.808594 C 5.4726562 12.065594 5.3025156 12.195281 5.2285156 12.238281 C 5.1555156 12.281281 4.959375 12.371047 4.734375 12.248047 L 3.2617188 11.445312 C 3.1007187 11.357312 3 11.188859 3 11.005859 L 3 5.171875 C 3 4.995875 3.0940938 4.8302344 3.2460938 4.7402344 L 7.7460938 2.0917969 C 7.9020937 1.9997969 8.0979062 2.0007969 8.2539062 2.0917969 L 12.753906 4.7402344 C 12.904906 4.8302344 13 4.995875 13 5.171875 L 13 11.009766 C 13 11.189766 12.900234 11.359219 12.740234 11.449219 L 8.2402344 13.900391 C 8.0902344 13.980391 7.9097656 13.980391 7.7597656 13.900391 L 6.8808594 13.419922 C 6.7108594 13.629922 6.5 13.810937 6.25 13.960938 C 6.17 14.010938 6.0897656 14.050078 6.0097656 14.080078 L 7.2792969 14.779297 C 7.5092969 14.899297 7.75 14.960938 8 14.960938 C 8.25 14.960938 8.4907031 14.899297 8.7207031 14.779297 L 13.220703 12.320312 C 13.700703 12.060313 14 11.559766 14 11.009766 L 14 5.171875 C 14 4.642875 13.717719 4.1469062 13.261719 3.8789062 L 8.7617188 1.2304688 C 8.5272187 1.0924688 8.263125 1.0234375 8 1.0234375 z M 9.4511719 5.3183594 C 7.8711719 5.3183594 7.0703125 5.8690781 7.0703125 6.9550781 C 7.0703125 8.1850781 8.4869687 8.3680781 9.1679688 8.4550781 C 9.2659688 8.4680781 9.352875 8.4791875 9.421875 8.4921875 L 9.7207031 8.5449219 C 10.760703 8.7189219 11 8.836875 11 9.171875 C 11 9.333875 10.999172 9.8242188 9.4511719 9.8242188 C 8.1381719 9.8242188 7.8691406 9.4346094 7.8691406 8.8496094 L 6.8691406 8.8496094 C 6.8691406 9.7516094 7.3171719 10.824219 9.4511719 10.824219 C 11.557172 10.824219 12 9.925875 12 9.171875 C 12 7.913875 10.777719 7.7076406 9.8867188 7.5566406 L 9.5996094 7.5078125 C 9.5166094 7.4928125 9.4119219 7.4788438 9.2949219 7.4648438 C 8.6589219 7.3828438 8.0703125 7.2650312 8.0703125 6.9570312 C 8.0703125 6.7340313 8.0691719 6.3193594 9.4511719 6.3183594 C 10.370172 6.3183594 10.837891 6.6207969 10.837891 7.2167969 L 11.837891 7.2167969 C 11.837891 6.2997969 11.209172 5.3183594 9.4511719 5.3183594 z"})}),react:e=>a.jsx("svg",{viewBox:"0 0 24 24",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})}),tailwind:e=>a.jsx("svg",{viewBox:"0 0 24 24",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z"})}),google:e=>a.jsx("svg",{role:"img",viewBox:"0 0 24 24",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),apple:e=>a.jsx("svg",{role:"img",viewBox:"0 0 24 24",width:e.size,height:e.size,...e,children:a.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),paypal:e=>a.jsx("svg",{viewBox:"0 0 48 48",width:e.size,height:e.size,...e,children:a.jsx("path",{fill:"currentColor",d:"M 12.841797 3.9980469 C 11.545957 3.9980469 10.408459 4.9201856 10.140625 6.1875 A 1.50015 1.50015 0 0 0 10.140625 6.1894531 L 4.3105469 33.863281 A 1.50015 1.50015 0 0 0 4.3105469 33.865234 C 3.9778831 35.447651 5.2380138 37 6.8554688 37 L 13.125 37 L 12.310547 40.865234 C 11.976672 42.448822 13.234312 44 14.853516 44 L 22.5 44 A 1.50015 1.50015 0 0 0 23.96875 42.808594 L 26.140625 32.5 L 32.230469 32.5 C 37.754148 32.5 42.547425 28.631159 43.714844 23.232422 L 43.876953 22.478516 C 45.063149 16.990425 41.185502 11.734909 35.767578 11.072266 C 34.701026 7.0840748 31.068127 3.9980469 26.613281 3.9980469 L 21.273438 3.9980469 L 17.820312 3.9980469 L 12.841797 3.9980469 z M 13.035156 6.9980469 L 17.820312 6.9980469 L 21.273438 6.9980469 L 26.613281 6.9980469 C 29.385425 6.9980469 31.656541 8.678134 32.609375 11 L 19.820312 11 A 1.50015 1.50015 0 0 0 18.351562 12.191406 L 15.996094 23.371094 A 1.50015 1.50015 0 0 0 15.855469 24.035156 L 13.757812 34 L 7.3476562 34 L 13.035156 6.9980469 z M 21.037109 14 L 33.068359 14 C 33.044325 14.280128 33.006713 14.561571 32.945312 14.845703 L 32.78125 15.599609 C 31.908668 19.634872 28.35879 22.5 24.230469 22.5 L 19.246094 22.5 L 21.037109 14 z M 36.056641 14.160156 C 39.449348 14.913351 41.718962 18.266313 40.945312 21.845703 L 40.78125 22.599609 C 39.908668 26.634872 36.35879 29.5 32.230469 29.5 L 24.923828 29.5 A 1.50015 1.50015 0 0 0 23.455078 30.691406 L 21.283203 41 L 15.347656 41 L 16.443359 35.796875 L 16.449219 35.775391 A 1.50015 1.50015 0 0 0 16.451172 35.767578 L 18.613281 25.5 L 24.230469 25.5 C 29.754148 25.5 34.547425 21.631159 35.714844 16.232422 L 35.876953 15.478516 C 35.972548 15.036146 36.024967 14.597251 36.056641 14.160156 z"})}),sunmoon:e=>a.jsxs("svg",{viewBox:"10.9 10.9 78.2 78.2",...e,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{fill:"currentColor",d:"M50,89.1c21.56,0,39.1-17.54,39.1-39.1S71.56,10.9,50,10.9c-21.56,0-39.1,17.54-39.1,39.1S28.44,89.1,50,89.1z M50,15.26 c19.16,0,34.74,15.58,34.74,34.74S69.16,84.74,50,84.74S15.26,69.16,15.26,50S30.84,15.26,50,15.26z"}),a.jsx("path",{fill:"currentColor",d:"M80.39,50c0-16.76-13.63-30.39-30.38-30.39v60.77C66.76,80.39,80.39,66.76,80.39,50z"})]}),minimize:e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:a.jsx("path",{fill:"currentColor",d:"M480 480H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h448c17.7 0 32 14.3 32 32s-14.3 32-32 32z"})})},Nm=({name:e,size:t,className:n})=>{if(VS.indexOf(e)===-1)return a.jsx(lte,{size:t,className:n});const r=bo[e];return a.jsx(r,{size:t,className:n})},ec=({iconVisibility:e,isBoard:t=!1,className:n,description:r,color:s="text-slate-500 dark:text-slate-400",size:o=16,icon:i,pathType:c,children:u=null})=>e==="none"?null:r&&!u&&!i&&!t?e==="always"?a.jsx(De,{text:r,isCompact:!0,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:a.jsx(sL,{size:o,className:"stroke-[1.8] ".concat(s)})}):null:(e==="always"||!e)&&!t?a.jsx("span",{className:"".concat(s),children:a.jsx(De,{isCompact:!0,text:r||c,isDisabled:!c&&!r,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:i?a.jsx(Nm,{size:16,name:i,className:"".concat(s)}):u})}):e==="always"||t?a.jsx("span",{className:"".concat(s),children:a.jsx(De,{isCompact:!0,text:r||c,isDisabled:!c&&!r,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:i?a.jsx(Nm,{size:o,name:i,className:"".concat(s," ").concat(n)}):u})}):null;function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(this,arguments)}var $r;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($r||($r={}));const Rz="popstate";function Eve(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:c}=r.location;return Jg("",{pathname:o,search:i,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:nh(s)}return _ve(t,n,null,e)}function wn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function th(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nve(){return Math.random().toString(36).substr(2,8)}function Az(e,t){return{usr:e.state,key:e.key,idx:t}}function Jg(e,t,n,r){return n===void 0&&(n=null),Ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?tc(t):t,{state:n,key:t&&t.key||r||Nve()})}function nh(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function tc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _ve(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,c=$r.Pop,u=null,h=p();h==null&&(h=0,i.replaceState(Ar({},i.state,{idx:h}),""));function p(){return(i.state||{idx:null}).idx}function m(){c=$r.Pop;let k=p(),j=k==null?null:k-h;h=k,u&&u({action:c,location:g.location,delta:j})}function x(k,j){c=$r.Push;let S=Jg(g.location,k,j);n&&n(S,k),h=p()+1;let E=Az(S,h),N=g.createHref(S);try{i.pushState(E,"",N)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;s.location.assign(N)}o&&u&&u({action:c,location:g.location,delta:1})}function C(k,j){c=$r.Replace;let S=Jg(g.location,k,j);n&&n(S,k),h=p();let E=Az(S,h),N=g.createHref(S);i.replaceState(E,"",N),o&&u&&u({action:c,location:g.location,delta:0})}function b(k){let j=s.location.origin!=="null"?s.location.origin:s.location.href,S=typeof k=="string"?k:nh(k);return wn(j,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,j)}let g={get action(){return c},get location(){return e(s,i)},listen(k){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Rz,m),u=k,()=>{s.removeEventListener(Rz,m),u=null}},createHref(k){return t(s,k)},createURL:b,encodeLocation(k){let j=b(k);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:x,replace:C,go(k){return i.go(k)}};return g}var Br;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Br||(Br={}));const Ive=new Set(["lazy","caseSensitive","path","id","index","children"]);function Tve(e){return e.index===!0}function US(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((s,o)=>{let i=[...n,o],c=typeof s.id=="string"?s.id:i.join("-");if(wn(s.index!==!0||!s.children,"Cannot specify children on an index route"),wn(!r[c],'Found a route id collision on id "'+c+"\". Route id's must be globally unique within Data Router usages"),Tve(s)){let u=Ar({},s,t(s),{id:c});return r[c]=u,u}else{let u=Ar({},s,t(s),{id:c,children:void 0});return r[c]=u,s.children&&(u.children=US(s.children,t,i,r)),u}})}function _m(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?tc(t):t,s=yd(r.pathname||"/",n);if(s==null)return null;let o=zz(e);Lve(o);let i=null;for(let c=0;i==null&&c<o.length;++c)i=$ve(o[c],Wve(s));return i}function Mve(e,t){let{route:n,pathname:r,params:s}=e;return{id:n.id,pathname:r,params:s,data:t[n.id],handle:n.handle}}function zz(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,c)=>{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(wn(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let h=nc([r,u.relativePath]),p=n.concat(u);o.children&&o.children.length>0&&(wn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),zz(o.children,t,p,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:Fve(h,o.index),routesMeta:p})};return e.forEach((o,i)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))s(o,i);else for(let u of Fz(o.path))s(o,i,u)}),t}function Fz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=Fz(r.join("/")),c=[];return c.push(...i.map(u=>u===""?o:[o,u].join("/"))),s&&c.push(...i),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function Lve(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hve(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Dve=/^:\w+$/,Ove=3,Pve=2,Rve=1,Ave=10,zve=-2,Hz=e=>e==="*";function Fve(e,t){let n=e.split("/"),r=n.length;return n.some(Hz)&&(r+=zve),t&&(r+=Pve),n.filter(s=>!Hz(s)).reduce((s,o)=>s+(Dve.test(o)?Ove:o===""?Rve:Ave),r)}function Hve(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function $ve(e,t){let{routesMeta:n}=e,r={},s="/",o=[];for(let i=0;i<n.length;++i){let c=n[i],u=i===n.length-1,h=s==="/"?t:t.slice(s.length)||"/",p=qS({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h);if(!p)return null;Object.assign(r,p.params);let m=c.route;o.push({params:r,pathname:nc([s,p.pathname]),pathnameBase:Yve(nc([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=nc([s,p.pathnameBase]))}return o}function qS(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Bve(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:r.reduce((u,h,p)=>{let{paramName:m,isOptional:x}=h;if(m==="*"){let b=c[p]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const C=c[p];return x&&!C?u[m]=void 0:u[m]=Vve(C||"",m),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Bve(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),th(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,i,c)=>(r.push({paramName:i,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Wve(e){try{return decodeURI(e)}catch(t){return th(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vve(e,t){try{return decodeURIComponent(e)}catch(n){return th(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function yd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Uve(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?tc(e):e;return{pathname:n?n.startsWith("/")?n:qve(n,t):t,search:Kve(r),hash:Gve(s)}}function qve(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function YS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $z(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function E2(e){return $z(e).map((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)}function N2(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=tc(e):(s=Ar({},e),wn(!s.pathname||!s.pathname.includes("?"),YS("?","pathname","search",s)),wn(!s.pathname||!s.pathname.includes("#"),YS("#","pathname","hash",s)),wn(!s.search||!s.search.includes("#"),YS("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,c;if(i==null)c=n;else if(r){let m=t[t.length-1].replace(/^\//,"").split("/");if(i.startsWith("..")){let x=i.split("/");for(;x[0]==="..";)x.shift(),m.pop();s.pathname=x.join("/")}c="/"+m.join("/")}else{let m=t.length-1;if(i.startsWith("..")){let x=i.split("/");for(;x[0]==="..";)x.shift(),m-=1;s.pathname=x.join("/")}c=m>=0?t[m]:"/"}let u=Uve(s,c),h=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(h||p)&&(u.pathname+="/"),u}const nc=e=>e.join("/").replace(/\/\/+/g,"/"),Yve=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Kve=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gve=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class KS{constructor(t,n,r,s){s===void 0&&(s=!1),this.status=t,this.statusText=n||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Bz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Wz=["post","put","patch","delete"],Zve=new Set(Wz),Qve=["get",...Wz],Jve=new Set(Qve),Xve=new Set([301,302,303,307,308]),eye=new Set([307,308]),GS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tye={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xg={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Vz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nye=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Uz="remix-router-transitions";function rye(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;wn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let ge=e.detectErrorBoundary;s=ve=>({hasErrorBoundary:ge(ve)})}else s=nye;let o={},i=US(e.routes,s,void 0,o),c,u=e.basename||"/",h=Ar({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,m=new Set,x=null,C=null,b=null,g=e.hydrationData!=null,k=_m(i,e.history.location,u),j=null;if(k==null){let ge=Zo(404,{pathname:e.history.location.pathname}),{matches:ve,route:Ie}=eF(i);k=ve,j={[Ie.id]:ge}}let S=!k.some(ge=>ge.route.lazy)&&(!k.some(ge=>ge.route.loader)||e.hydrationData!=null),E,N={historyAction:e.history.action,location:e.history.location,matches:k,initialized:S,navigation:GS,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},T=$r.Pop,M=!1,L,D=!1,P=new Map,A=null,B=!1,z=!1,R=[],$=[],_=new Map,U=0,K=-1,W=new Map,G=new Set,Z=new Map,F=new Map,V=new Set,q=new Map,ne=new Map,Q=!1;function ae(){if(p=e.history.listen(ge=>{let{action:ve,location:Ie,delta:Ae}=ge;if(Q){Q=!1;return}th(ne.size===0||Ae!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ze=gn({currentLocation:N.location,nextLocation:Ie,historyAction:ve});if(Ze&&Ae!=null){Q=!0,e.history.go(Ae*-1),Jt(Ze,{state:"blocked",location:Ie,proceed(){Jt(Ze,{state:"proceeding",proceed:void 0,reset:void 0,location:Ie}),e.history.go(Ae)},reset(){let Je=new Map(N.blockers);Je.set(Ze,Xg),oe({blockers:Je})}});return}return je(ve,Ie)}),n){mye(t,P);let ge=()=>fye(t,P);t.addEventListener("pagehide",ge),A=()=>t.removeEventListener("pagehide",ge)}return N.initialized||je($r.Pop,N.location),E}function re(){p&&p(),A&&A(),m.clear(),L&&L.abort(),N.fetchers.forEach((ge,ve)=>Qt(ve)),N.blockers.forEach((ge,ve)=>Zt(ve))}function le(ge){return m.add(ge),()=>m.delete(ge)}function oe(ge,ve){ve===void 0&&(ve={}),N=Ar({},N,ge);let Ie=[],Ae=[];h.v7_fetcherPersist&&N.fetchers.forEach((Ze,Je)=>{Ze.state==="idle"&&(V.has(Je)?Ae.push(Je):Ie.push(Je))}),[...m].forEach(Ze=>Ze(N,{deletedFetchers:Ae,unstable_viewTransitionOpts:ve.viewTransitionOpts,unstable_flushSync:ve.flushSync===!0})),h.v7_fetcherPersist&&(Ie.forEach(Ze=>N.fetchers.delete(Ze)),Ae.forEach(Ze=>Qt(Ze)))}function ie(ge,ve,Ie){var Ae,Ze;let{flushSync:Je}=Ie===void 0?{}:Ie,ot=N.actionData!=null&&N.navigation.formMethod!=null&&Ti(N.navigation.formMethod)&&N.navigation.state==="loading"&&((Ae=ge.state)==null?void 0:Ae._isRedirect)!==!0,at;ve.actionData?Object.keys(ve.actionData).length>0?at=ve.actionData:at=null:ot?at=N.actionData:at=null;let Ge=ve.loaderData?Xz(N.loaderData,ve.loaderData,ve.matches||[],ve.errors):N.loaderData,yt=N.blockers;yt.size>0&&(yt=new Map(yt),yt.forEach(($t,St)=>yt.set(St,Xg)));let Nt=M===!0||N.navigation.formMethod!=null&&Ti(N.navigation.formMethod)&&((Ze=ge.state)==null?void 0:Ze._isRedirect)!==!0;c&&(i=c,c=void 0),B||T===$r.Pop||(T===$r.Push?e.history.push(ge,ge.state):T===$r.Replace&&e.history.replace(ge,ge.state));let bt;if(T===$r.Pop){let $t=P.get(N.location.pathname);$t&&$t.has(ge.pathname)?bt={currentLocation:N.location,nextLocation:ge}:P.has(ge.pathname)&&(bt={currentLocation:ge,nextLocation:N.location})}else if(D){let $t=P.get(N.location.pathname);$t?$t.add(ge.pathname):($t=new Set([ge.pathname]),P.set(N.location.pathname,$t)),bt={currentLocation:N.location,nextLocation:ge}}oe(Ar({},ve,{actionData:at,loaderData:Ge,historyAction:T,location:ge,initialized:!0,navigation:GS,revalidation:"idle",restoreScrollPosition:ke(ge,ve.matches||N.matches),preventScrollReset:Nt,blockers:yt}),{viewTransitionOpts:bt,flushSync:Je===!0}),T=$r.Pop,M=!1,D=!1,B=!1,z=!1,R=[],$=[]}async function de(ge,ve){if(typeof ge=="number"){e.history.go(ge);return}let Ie=ZS(N.location,N.matches,u,h.v7_prependBasename,ge,ve==null?void 0:ve.fromRouteId,ve==null?void 0:ve.relative),{path:Ae,submission:Ze,error:Je}=qz(h.v7_normalizeFormMethod,!1,Ie,ve),ot=N.location,at=Jg(N.location,Ae,ve&&ve.state);at=Ar({},at,e.history.encodeLocation(at));let Ge=ve&&ve.replace!=null?ve.replace:void 0,yt=$r.Push;Ge===!0?yt=$r.Replace:Ge===!1||Ze!=null&&Ti(Ze.formMethod)&&Ze.formAction===N.location.pathname+N.location.search&&(yt=$r.Replace);let Nt=ve&&"preventScrollReset"in ve?ve.preventScrollReset===!0:void 0,bt=(ve&&ve.unstable_flushSync)===!0,$t=gn({currentLocation:ot,nextLocation:at,historyAction:yt});if($t){Jt($t,{state:"blocked",location:at,proceed(){Jt($t,{state:"proceeding",proceed:void 0,reset:void 0,location:at}),de(ge,ve)},reset(){let St=new Map(N.blockers);St.set($t,Xg),oe({blockers:St})}});return}return await je(yt,at,{submission:Ze,pendingError:Je,preventScrollReset:Nt,replace:ve&&ve.replace,enableViewTransition:ve&&ve.unstable_viewTransition,flushSync:bt})}function xe(){if(Lt(),oe({revalidation:"loading"}),N.navigation.state!=="submitting"){if(N.navigation.state==="idle"){je(N.historyAction,N.location,{startUninterruptedRevalidation:!0});return}je(T||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation})}}async function je(ge,ve,Ie){L&&L.abort(),L=null,T=ge,B=(Ie&&Ie.startUninterruptedRevalidation)===!0,Be(N.location,N.matches),M=(Ie&&Ie.preventScrollReset)===!0,D=(Ie&&Ie.enableViewTransition)===!0;let Ae=c||i,Ze=Ie&&Ie.overrideNavigation,Je=_m(Ae,ve,u),ot=(Ie&&Ie.flushSync)===!0;if(!Je){let St=Zo(404,{pathname:ve.pathname}),{matches:Rt,route:hn}=eF(Ae);zt(),ie(ve,{matches:Rt,loaderData:{},errors:{[hn.id]:St}},{flushSync:ot});return}if(N.initialized&&!z&&lye(N.location,ve)&&!(Ie&&Ie.submission&&Ti(Ie.submission.formMethod))){ie(ve,{matches:Je},{flushSync:ot});return}L=new AbortController;let at=t1(e.history,ve,L.signal,Ie&&Ie.submission),Ge,yt;if(Ie&&Ie.pendingError)yt={[n1(Je).route.id]:Ie.pendingError};else if(Ie&&Ie.submission&&Ti(Ie.submission.formMethod)){let St=await Ee(at,ve,Ie.submission,Je,{replace:Ie.replace,flushSync:ot});if(St.shortCircuited)return;Ge=St.pendingActionData,yt=St.pendingActionError,Ze=eE(ve,Ie.submission),ot=!1,at=new Request(at.url,{signal:at.signal})}let{shortCircuited:Nt,loaderData:bt,errors:$t}=await Te(at,ve,Je,Ze,Ie&&Ie.submission,Ie&&Ie.fetcherSubmission,Ie&&Ie.replace,ot,Ge,yt);Nt||(L=null,ie(ve,Ar({matches:Je},Ge?{actionData:Ge}:{},{loaderData:bt,errors:$t})))}async function Ee(ge,ve,Ie,Ae,Ze){Ze===void 0&&(Ze={}),Lt();let Je=hye(ve,Ie);oe({navigation:Je},{flushSync:Ze.flushSync===!0});let ot,at=XS(Ae,ve);if(!at.route.action&&!at.route.lazy)ot={type:Br.error,error:Zo(405,{method:ge.method,pathname:ve.pathname,routeId:at.route.id})};else if(ot=await e1("action",ge,at,Ae,o,s,u),ge.signal.aborted)return{shortCircuited:!0};if(Im(ot)){let Ge;return Ze&&Ze.replace!=null?Ge=Ze.replace:Ge=ot.location===N.location.pathname+N.location.search,await Ye(N,ot,{submission:Ie,replace:Ge}),{shortCircuited:!0}}if(r1(ot)){let Ge=n1(Ae,at.route.id);return(Ze&&Ze.replace)!==!0&&(T=$r.Push),{pendingActionData:{},pendingActionError:{[Ge.route.id]:ot.error}}}if(rh(ot))throw Zo(400,{type:"defer-action"});return{pendingActionData:{[at.route.id]:ot.data}}}async function Te(ge,ve,Ie,Ae,Ze,Je,ot,at,Ge,yt){let Nt=Ae||eE(ve,Ze),bt=Ze||Je||sF(Nt),$t=c||i,[St,Rt]=Yz(e.history,N,Ie,bt,ve,z,R,$,V,Z,G,$t,u,Ge,yt);if(zt(ht=>!(Ie&&Ie.some(on=>on.route.id===ht))||St&&St.some(on=>on.route.id===ht)),K=++U,St.length===0&&Rt.length===0){let ht=Ht();return ie(ve,Ar({matches:Ie,loaderData:{},errors:yt||null},Ge?{actionData:Ge}:{},ht?{fetchers:new Map(N.fetchers)}:{}),{flushSync:at}),{shortCircuited:!0}}if(!B){Rt.forEach(on=>{let Bt=N.fetchers.get(on.key),In=a1(void 0,Bt?Bt.data:void 0);N.fetchers.set(on.key,In)});let ht=Ge||N.actionData;oe(Ar({navigation:Nt},ht?Object.keys(ht).length===0?{actionData:null}:{actionData:ht}:{},Rt.length>0?{fetchers:new Map(N.fetchers)}:{}),{flushSync:at})}Rt.forEach(ht=>{_.has(ht.key)&&_e(ht.key),ht.controller&&_.set(ht.key,ht.controller)});let hn=()=>Rt.forEach(ht=>_e(ht.key));L&&L.signal.addEventListener("abort",hn);let{results:Xt,loaderResults:Ln,fetcherResults:mt}=await Ve(N.matches,Ie,St,Rt,ge);if(ge.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",hn),Rt.forEach(ht=>_.delete(ht.key));let Et=tF(Xt);if(Et){if(Et.idx>=St.length){let ht=Rt[Et.idx-St.length].key;G.add(ht)}return await Ye(N,Et.result,{replace:ot}),{shortCircuited:!0}}let{loaderData:un,errors:en}=Jz(N,Ie,St,Ln,yt,Rt,mt,q);q.forEach((ht,on)=>{ht.subscribe(Bt=>{(Bt||ht.done)&&q.delete(on)})});let pe=Ht(),Xe=kt(K),We=pe||Xe||Rt.length>0;return Ar({loaderData:un,errors:en},We?{fetchers:new Map(N.fetchers)}:{})}function Me(ge,ve,Ie,Ae){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");_.has(ge)&&_e(ge);let Ze=(Ae&&Ae.unstable_flushSync)===!0,Je=c||i,ot=ZS(N.location,N.matches,u,h.v7_prependBasename,Ie,ve,Ae==null?void 0:Ae.relative),at=_m(Je,ot,u);if(!at){st(ge,ve,Zo(404,{pathname:ot}),{flushSync:Ze});return}let{path:Ge,submission:yt,error:Nt}=qz(h.v7_normalizeFormMethod,!0,ot,Ae);if(Nt){st(ge,ve,Nt,{flushSync:Ze});return}let bt=XS(at,Ge);if(M=(Ae&&Ae.preventScrollReset)===!0,yt&&Ti(yt.formMethod)){ze(ge,ve,Ge,bt,at,Ze,yt);return}Z.set(ge,{routeId:ve,path:Ge}),qe(ge,ve,Ge,bt,at,Ze,yt)}async function ze(ge,ve,Ie,Ae,Ze,Je,ot){if(Lt(),Z.delete(ge),!Ae.route.action&&!Ae.route.lazy){let Bt=Zo(405,{method:ot.formMethod,pathname:Ie,routeId:ve});st(ge,ve,Bt,{flushSync:Je});return}let at=N.fetchers.get(ge);$e(ge,pye(ot,at),{flushSync:Je});let Ge=new AbortController,yt=t1(e.history,Ie,Ge.signal,ot);_.set(ge,Ge);let Nt=U,bt=await e1("action",yt,Ae,Ze,o,s,u);if(yt.signal.aborted){_.get(ge)===Ge&&_.delete(ge);return}if(V.has(ge)){$e(ge,xd(void 0));return}if(Im(bt))if(_.delete(ge),K>Nt){$e(ge,xd(void 0));return}else return G.add(ge),$e(ge,a1(ot)),Ye(N,bt,{fetcherSubmission:ot});if(r1(bt)){st(ge,ve,bt.error);return}if(rh(bt))throw Zo(400,{type:"defer-action"});let $t=N.navigation.location||N.location,St=t1(e.history,$t,Ge.signal),Rt=c||i,hn=N.navigation.state!=="idle"?_m(Rt,N.navigation.location,u):N.matches;wn(hn,"Didn't find any matches after fetcher action");let Xt=++U;W.set(ge,Xt);let Ln=a1(ot,bt.data);N.fetchers.set(ge,Ln);let[mt,Et]=Yz(e.history,N,hn,ot,$t,z,R,$,V,Z,G,Rt,u,{[Ae.route.id]:bt.data},void 0);Et.filter(Bt=>Bt.key!==ge).forEach(Bt=>{let In=Bt.key,vr=N.fetchers.get(In),nr=a1(void 0,vr?vr.data:void 0);N.fetchers.set(In,nr),_.has(In)&&_e(In),Bt.controller&&_.set(In,Bt.controller)}),oe({fetchers:new Map(N.fetchers)});let un=()=>Et.forEach(Bt=>_e(Bt.key));Ge.signal.addEventListener("abort",un);let{results:en,loaderResults:pe,fetcherResults:Xe}=await Ve(N.matches,hn,mt,Et,St);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),W.delete(ge),_.delete(ge),Et.forEach(Bt=>_.delete(Bt.key));let We=tF(en);if(We){if(We.idx>=mt.length){let Bt=Et[We.idx-mt.length].key;G.add(Bt)}return Ye(N,We.result)}let{loaderData:ht,errors:on}=Jz(N,N.matches,mt,pe,void 0,Et,Xe,q);if(N.fetchers.has(ge)){let Bt=xd(bt.data);N.fetchers.set(ge,Bt)}kt(Xt),N.navigation.state==="loading"&&Xt>K?(wn(T,"Expected pending action"),L&&L.abort(),ie(N.navigation.location,{matches:hn,loaderData:ht,errors:on,fetchers:new Map(N.fetchers)})):(oe({errors:on,loaderData:Xz(N.loaderData,ht,hn,on),fetchers:new Map(N.fetchers)}),z=!1)}async function qe(ge,ve,Ie,Ae,Ze,Je,ot){let at=N.fetchers.get(ge);$e(ge,a1(ot,at?at.data:void 0),{flushSync:Je});let Ge=new AbortController,yt=t1(e.history,Ie,Ge.signal);_.set(ge,Ge);let Nt=U,bt=await e1("loader",yt,Ae,Ze,o,s,u);if(rh(bt)&&(bt=await aF(bt,yt.signal,!0)||bt),_.get(ge)===Ge&&_.delete(ge),!yt.signal.aborted){if(V.has(ge)){$e(ge,xd(void 0));return}if(Im(bt))if(K>Nt){$e(ge,xd(void 0));return}else{G.add(ge),await Ye(N,bt);return}if(r1(bt)){st(ge,ve,bt.error);return}wn(!rh(bt),"Unhandled fetcher deferred data"),$e(ge,xd(bt.data))}}async function Ye(ge,ve,Ie){let{submission:Ae,fetcherSubmission:Ze,replace:Je}=Ie===void 0?{}:Ie;ve.revalidate&&(z=!0);let ot=Jg(ge.location,ve.location,{_isRedirect:!0});if(wn(ot,"Expected a location on the redirect navigation"),n){let $t=!1;if(ve.reloadDocument)$t=!0;else if(Vz.test(ve.location)){const St=e.history.createURL(ve.location);$t=St.origin!==t.location.origin||yd(St.pathname,u)==null}if($t){Je?t.location.replace(ve.location):t.location.assign(ve.location);return}}L=null;let at=Je===!0?$r.Replace:$r.Push,{formMethod:Ge,formAction:yt,formEncType:Nt}=ge.navigation;!Ae&&!Ze&&Ge&&yt&&Nt&&(Ae=sF(ge.navigation));let bt=Ae||Ze;if(eye.has(ve.status)&&bt&&Ti(bt.formMethod))await je(at,ot,{submission:Ar({},bt,{formAction:ve.location}),preventScrollReset:M});else{let $t=eE(ot,Ae);await je(at,ot,{overrideNavigation:$t,fetcherSubmission:Ze,preventScrollReset:M})}}async function Ve(ge,ve,Ie,Ae,Ze){let Je=await Promise.all([...Ie.map(Ge=>e1("loader",Ze,Ge,ve,o,s,u)),...Ae.map(Ge=>Ge.matches&&Ge.match&&Ge.controller?e1("loader",t1(e.history,Ge.path,Ge.controller.signal),Ge.match,Ge.matches,o,s,u):{type:Br.error,error:Zo(404,{pathname:Ge.path})})]),ot=Je.slice(0,Ie.length),at=Je.slice(Ie.length);return await Promise.all([rF(ge,Ie,ot,ot.map(()=>Ze.signal),!1,N.loaderData),rF(ge,Ae.map(Ge=>Ge.match),at,Ae.map(Ge=>Ge.controller?Ge.controller.signal:null),!0)]),{results:Je,loaderResults:ot,fetcherResults:at}}function Lt(){z=!0,R.push(...zt()),Z.forEach((ge,ve)=>{_.has(ve)&&($.push(ve),_e(ve))})}function $e(ge,ve,Ie){Ie===void 0&&(Ie={}),N.fetchers.set(ge,ve),oe({fetchers:new Map(N.fetchers)},{flushSync:(Ie&&Ie.flushSync)===!0})}function st(ge,ve,Ie,Ae){Ae===void 0&&(Ae={});let Ze=n1(N.matches,ve);Qt(ge),oe({errors:{[Ze.route.id]:Ie},fetchers:new Map(N.fetchers)},{flushSync:(Ae&&Ae.flushSync)===!0})}function At(ge){return h.v7_fetcherPersist&&(F.set(ge,(F.get(ge)||0)+1),V.has(ge)&&V.delete(ge)),N.fetchers.get(ge)||tye}function Qt(ge){let ve=N.fetchers.get(ge);_.has(ge)&&!(ve&&ve.state==="loading"&&W.has(ge))&&_e(ge),Z.delete(ge),W.delete(ge),G.delete(ge),V.delete(ge),N.fetchers.delete(ge)}function Vt(ge){if(h.v7_fetcherPersist){let ve=(F.get(ge)||0)-1;ve<=0?(F.delete(ge),V.add(ge)):F.set(ge,ve)}else Qt(ge);oe({fetchers:new Map(N.fetchers)})}function _e(ge){let ve=_.get(ge);wn(ve,"Expected fetch controller: "+ge),ve.abort(),_.delete(ge)}function sn(ge){for(let ve of ge){let Ie=At(ve),Ae=xd(Ie.data);N.fetchers.set(ve,Ae)}}function Ht(){let ge=[],ve=!1;for(let Ie of G){let Ae=N.fetchers.get(Ie);wn(Ae,"Expected fetcher: "+Ie),Ae.state==="loading"&&(G.delete(Ie),ge.push(Ie),ve=!0)}return sn(ge),ve}function kt(ge){let ve=[];for(let[Ie,Ae]of W)if(Ae<ge){let Ze=N.fetchers.get(Ie);wn(Ze,"Expected fetcher: "+Ie),Ze.state==="loading"&&(_e(Ie),W.delete(Ie),ve.push(Ie))}return sn(ve),ve.length>0}function rn(ge,ve){let Ie=N.blockers.get(ge)||Xg;return ne.get(ge)!==ve&&ne.set(ge,ve),Ie}function Zt(ge){N.blockers.delete(ge),ne.delete(ge)}function Jt(ge,ve){let Ie=N.blockers.get(ge)||Xg;wn(Ie.state==="unblocked"&&ve.state==="blocked"||Ie.state==="blocked"&&ve.state==="blocked"||Ie.state==="blocked"&&ve.state==="proceeding"||Ie.state==="blocked"&&ve.state==="unblocked"||Ie.state==="proceeding"&&ve.state==="unblocked","Invalid blocker state transition: "+Ie.state+" -> "+ve.state);let Ae=new Map(N.blockers);Ae.set(ge,ve),oe({blockers:Ae})}function gn(ge){let{currentLocation:ve,nextLocation:Ie,historyAction:Ae}=ge;if(ne.size===0)return;ne.size>1&&th(!1,"A router only supports one blocker at a time");let Ze=Array.from(ne.entries()),[Je,ot]=Ze[Ze.length-1],at=N.blockers.get(Je);if(!(at&&at.state==="proceeding")&&ot({currentLocation:ve,nextLocation:Ie,historyAction:Ae}))return Je}function zt(ge){let ve=[];return q.forEach((Ie,Ae)=>{(!ge||ge(Ae))&&(Ie.cancel(),ve.push(Ae),q.delete(Ae))}),ve}function Mn(ge,ve,Ie){if(x=ge,b=ve,C=Ie||null,!g&&N.navigation===GS){g=!0;let Ae=ke(N.location,N.matches);Ae!=null&&oe({restoreScrollPosition:Ae})}return()=>{x=null,b=null,C=null}}function Ce(ge,ve){return C&&C(ge,ve.map(Ie=>Mve(Ie,N.loaderData)))||ge.key}function Be(ge,ve){if(x&&b){let Ie=Ce(ge,ve);x[Ie]=b()}}function ke(ge,ve){if(x){let Ie=Ce(ge,ve),Ae=x[Ie];if(typeof Ae=="number")return Ae}return null}function Qe(ge){o={},c=US(ge,s,void 0,o)}return E={get basename(){return u},get state(){return N},get routes(){return i},get window(){return t},initialize:ae,subscribe:le,enableScrollRestoration:Mn,navigate:de,fetch:Me,revalidate:xe,createHref:ge=>e.history.createHref(ge),encodeLocation:ge=>e.history.encodeLocation(ge),getFetcher:At,deleteFetcher:Vt,dispose:re,getBlocker:rn,deleteBlocker:Zt,_internalFetchControllers:_,_internalActiveDeferreds:q,_internalSetRoutes:Qe},E}function aye(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ZS(e,t,n,r,s,o,i){let c,u;if(o){c=[];for(let p of t)if(c.push(p),p.route.id===o){u=p;break}}else c=t,u=t[t.length-1];let h=N2(s||".",E2(c),yd(e.pathname,n)||e.pathname,i==="path");return s==null&&(h.search=e.search,h.hash=e.hash),(s==null||s===""||s===".")&&u&&u.route.index&&!JS(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(h.pathname=h.pathname==="/"?n:nc([n,h.pathname])),nh(h)}function qz(e,t,n,r){if(!r||!aye(r))return{path:n};if(r.formMethod&&!uye(r.formMethod))return{path:n,error:Zo(405,{method:r.formMethod})};let s=()=>({path:n,error:Zo(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),c=nF(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ti(i))return s();let x=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((C,b)=>{let[g,k]=b;return""+C+g+"="+k+"\n"},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:x}}}else if(r.formEncType==="application/json"){if(!Ti(i))return s();try{let x=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:c,formEncType:r.formEncType,formData:void 0,json:x,text:void 0}}}catch{return s()}}}wn(typeof FormData=="function","FormData is not available in this environment");let u,h;if(r.formData)u=QS(r.formData),h=r.formData;else if(r.body instanceof FormData)u=QS(r.body),h=r.body;else if(r.body instanceof URLSearchParams)u=r.body,h=Qz(u);else if(r.body==null)u=new URLSearchParams,h=new FormData;else try{u=new URLSearchParams(r.body),h=Qz(u)}catch{return s()}let p={formMethod:i,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(Ti(p.formMethod))return{path:n,submission:p};let m=tc(n);return t&&m.search&&JS(m.search)&&u.append("index",""),m.search="?"+u,{path:nh(m),submission:p}}function sye(e,t){let n=e;if(t){let r=e.findIndex(s=>s.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Yz(e,t,n,r,s,o,i,c,u,h,p,m,x,C,b){let g=b?Object.values(b)[0]:C?Object.values(C)[0]:void 0,k=e.createURL(t.location),j=e.createURL(s),S=b?Object.keys(b)[0]:void 0,E=sye(n,S).filter((T,M)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(oye(t.loaderData,t.matches[M],T)||i.some(P=>P===T.route.id))return!0;let L=t.matches[M],D=T;return Gz(T,Ar({currentUrl:k,currentParams:L.params,nextUrl:j,nextParams:D.params},r,{actionResult:g,defaultShouldRevalidate:o||k.pathname+k.search===j.pathname+j.search||k.search!==j.search||Kz(L,D)}))}),N=[];return h.forEach((T,M)=>{if(!n.some(B=>B.route.id===T.routeId)||u.has(M))return;let L=_m(m,T.path,x);if(!L){N.push({key:M,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(M),P=XS(L,T.path),A=!1;p.has(M)?A=!1:c.includes(M)?A=!0:D&&D.state!=="idle"&&D.data===void 0?A=o:A=Gz(P,Ar({currentUrl:k,currentParams:t.matches[t.matches.length-1].params,nextUrl:j,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:o})),A&&N.push({key:M,routeId:T.routeId,path:T.path,matches:L,match:P,controller:new AbortController})}),[E,N]}function oye(e,t,n){let r=!t||n.route.id!==t.route.id,s=e[n.route.id]===void 0;return r||s}function Kz(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Gz(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Zz(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let s=n[e.id];wn(s,"No route found in manifest");let o={};for(let i in r){let c=s[i]!==void 0&&i!=="hasErrorBoundary";th(!c,'Route "'+s.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Ive.has(i)&&(o[i]=r[i])}Object.assign(s,o),Object.assign(s,Ar({},t(s),{lazy:void 0}))}async function e1(e,t,n,r,s,o,i,c){c===void 0&&(c={});let u,h,p,m=b=>{let g,k=new Promise((j,S)=>g=S);return p=()=>g(),t.signal.addEventListener("abort",p),Promise.race([b({request:t,params:n.params,context:c.requestContext}),k])};try{let b=n.route[e];if(n.route.lazy)if(b){let g,k=await Promise.all([m(b).catch(j=>{g=j}),Zz(n.route,o,s)]);if(g)throw g;h=k[0]}else if(await Zz(n.route,o,s),b=n.route[e],b)h=await m(b);else if(e==="action"){let g=new URL(t.url),k=g.pathname+g.search;throw Zo(405,{method:t.method,pathname:k,routeId:n.route.id})}else return{type:Br.data,data:void 0};else if(b)h=await m(b);else{let g=new URL(t.url),k=g.pathname+g.search;throw Zo(404,{pathname:k})}wn(h!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=Br.error,h=b}finally{p&&t.signal.removeEventListener("abort",p)}if(dye(h)){let b=h.status;if(Xve.has(b)){let j=h.headers.get("Location");if(wn(j,"Redirects returned/thrown from loaders/actions must have a Location header"),!Vz.test(j))j=ZS(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,j);else if(!c.isStaticRequest){let S=new URL(t.url),E=j.startsWith("//")?new URL(S.protocol+j):new URL(j),N=yd(E.pathname,i)!=null;E.origin===S.origin&&N&&(j=E.pathname+E.search+E.hash)}if(c.isStaticRequest)throw h.headers.set("Location",j),h;return{type:Br.redirect,status:b,location:j,revalidate:h.headers.get("X-Remix-Revalidate")!==null,reloadDocument:h.headers.get("X-Remix-Reload-Document")!==null}}if(c.isRouteRequest)throw{type:u===Br.error?Br.error:Br.data,response:h};let g,k=h.headers.get("Content-Type");return k&&/\bapplication\/json\b/.test(k)?g=await h.json():g=await h.text(),u===Br.error?{type:u,error:new KS(b,h.statusText,g),headers:h.headers}:{type:Br.data,data:g,statusCode:h.status,headers:h.headers}}if(u===Br.error)return{type:u,error:h};if(cye(h)){var x,C;return{type:Br.deferred,deferredData:h,statusCode:(x=h.init)==null?void 0:x.status,headers:((C=h.init)==null?void 0:C.headers)&&new Headers(h.init.headers)}}return{type:Br.data,data:h}}function t1(e,t,n,r){let s=e.createURL(nF(t)).toString(),o={signal:n};if(r&&Ti(r.formMethod)){let{formMethod:i,formEncType:c}=r;o.method=i.toUpperCase(),c==="application/json"?(o.headers=new Headers({"Content-Type":c}),o.body=JSON.stringify(r.json)):c==="text/plain"?o.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?o.body=QS(r.formData):o.body=r.formData}return new Request(s,o)}function QS(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Qz(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function iye(e,t,n,r,s){let o={},i=null,c,u=!1,h={};return n.forEach((p,m)=>{let x=t[m].route.id;if(wn(!Im(p),"Cannot handle redirect results in processLoaderData"),r1(p)){let C=n1(e,x),b=p.error;r&&(b=Object.values(r)[0],r=void 0),i=i||{},i[C.route.id]==null&&(i[C.route.id]=b),o[x]=void 0,u||(u=!0,c=Bz(p.error)?p.error.status:500),p.headers&&(h[x]=p.headers)}else rh(p)?(s.set(x,p.deferredData),o[x]=p.deferredData.data):o[x]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(c=p.statusCode),p.headers&&(h[x]=p.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:c||200,loaderHeaders:h}}function Jz(e,t,n,r,s,o,i,c){let{loaderData:u,errors:h}=iye(t,n,r,s,c);for(let p=0;p<o.length;p++){let{key:m,match:x,controller:C}=o[p];wn(i!==void 0&&i[p]!==void 0,"Did not find corresponding fetcher result");let b=i[p];if(!(C&&C.signal.aborted))if(r1(b)){let g=n1(e.matches,x==null?void 0:x.route.id);h&&h[g.route.id]||(h=Ar({},h,{[g.route.id]:b.error})),e.fetchers.delete(m)}else if(Im(b))wn(!1,"Unhandled fetcher revalidation redirect");else if(rh(b))wn(!1,"Unhandled fetcher deferred data");else{let g=xd(b.data);e.fetchers.set(m,g)}}return{loaderData:u,errors:h}}function Xz(e,t,n,r){let s=Ar({},t);for(let o of n){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(s[i]=t[i]):e[i]!==void 0&&o.route.loader&&(s[i]=e[i]),r&&r.hasOwnProperty(i))break}return s}function n1(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function eF(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Zo(e,t){let{pathname:n,routeId:r,method:s,type:o}=t===void 0?{}:t,i="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(i="Bad Request",s&&n&&r?c="You made a "+s+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(i="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",c='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",s&&n&&r?c="You made a "+s.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":s&&(c='Invalid request method "'+s.toUpperCase()+'"')),new KS(e||500,i,new Error(c),!0)}function tF(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Im(n))return{result:n,idx:t}}}function nF(e){let t=typeof e=="string"?tc(e):e;return nh(Ar({},t,{hash:""}))}function lye(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function rh(e){return e.type===Br.deferred}function r1(e){return e.type===Br.error}function Im(e){return(e&&e.type)===Br.redirect}function cye(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function dye(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function uye(e){return Jve.has(e.toLowerCase())}function Ti(e){return Zve.has(e.toLowerCase())}async function rF(e,t,n,r,s,o){for(let i=0;i<n.length;i++){let c=n[i],u=t[i];if(!u)continue;let h=e.find(m=>m.route.id===u.route.id),p=h!=null&&!Kz(h,u)&&(o&&o[u.route.id])!==void 0;if(rh(c)&&(s||p)){let m=r[i];wn(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await aF(c,m,s).then(x=>{x&&(n[i]=x||n[i])})}}}async function aF(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Br.data,data:e.deferredData.unwrappedData}}catch(r){return{type:Br.error,error:r}}return{type:Br.data,data:e.deferredData.data}}}function JS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function XS(e,t){let n=typeof t=="string"?tc(t).search:t.search;if(e[e.length-1].route.index&&JS(n||""))return e[e.length-1];let r=$z(e);return r[r.length-1]}function sF(e){let{formMethod:t,formAction:n,formEncType:r,text:s,formData:o,json:i}=e;if(!(!t||!n||!r)){if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:s};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function eE(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hye(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function a1(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function pye(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xd(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function mye(e,t){try{let n=e.sessionStorage.getItem(Uz);if(n){let r=JSON.parse(n);for(let[s,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(s,new Set(o||[]))}}catch{}}function fye(e,t){if(t.size>0){let n={};for(let[r,s]of t)n[r]=[...s];try{e.sessionStorage.setItem(Uz,JSON.stringify(n))}catch(r){th(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_2.apply(this,arguments)}const s1=f.createContext(null),tE=f.createContext(null),ah=f.createContext(null),I2=f.createContext(null),rc=f.createContext({outlet:null,matches:[],isDataRoute:!1}),oF=f.createContext(null);function gye(e,t){let{relative:n}=t===void 0?{}:t;Tm()||wn(!1);let{basename:r,navigator:s}=f.useContext(ah),{hash:o,pathname:i,search:c}=T2(e,{relative:n}),u=i;return r!=="/"&&(u=i==="/"?r:nc([r,i])),s.createHref({pathname:u,search:c,hash:o})}function Tm(){return f.useContext(I2)!=null}function bd(){return Tm()||wn(!1),f.useContext(I2).location}function iF(e){f.useContext(ah).static||f.useLayoutEffect(e)}function ts(){let{isDataRoute:e}=f.useContext(rc);return e?Tye():vye()}function vye(){Tm()||wn(!1);let e=f.useContext(s1),{basename:t,navigator:n}=f.useContext(ah),{matches:r}=f.useContext(rc),{pathname:s}=bd(),o=JSON.stringify(E2(r)),i=f.useRef(!1);return iF(()=>{i.current=!0}),f.useCallback(function(c,u){if(u===void 0&&(u={}),!i.current)return;if(typeof c=="number"){n.go(c);return}let h=N2(c,JSON.parse(o),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:nc([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,o,s,e])}const yye=f.createContext(null);function xye(e){let t=f.useContext(rc).outlet;return t&&f.createElement(yye.Provider,{value:e},t)}function T2(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=f.useContext(rc),{pathname:s}=bd(),o=JSON.stringify(E2(r));return f.useMemo(()=>N2(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function bye(e,t,n){Tm()||wn(!1);let{navigator:r}=f.useContext(ah),{matches:s}=f.useContext(rc),o=s[s.length-1],i=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=bd(),h;if(t){var p;let g=typeof t=="string"?tc(t):t;c==="/"||(p=g.pathname)!=null&&p.startsWith(c)||wn(!1),h=g}else h=u;let m=h.pathname||"/",x=c==="/"?m:m.slice(c.length)||"/",C=_m(e,{pathname:x}),b=Sye(C&&C.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:nc([c,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:nc([c,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),s,n);return t&&b?f.createElement(I2.Provider,{value:{location:_2({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:$r.Pop}},b):b}function wye(){let e=Iye(),t=Bz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:r},n):null,null)}const kye=f.createElement(wye,null);class jye extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?f.createElement(rc.Provider,{value:this.props.routeContext},f.createElement(oF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cye(e){let{routeContext:t,match:n,children:r}=e,s=f.useContext(s1);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(rc.Provider,{value:t},r)}function Sye(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let c=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));c>=0||wn(!1),o=o.slice(0,Math.min(o.length,c+1))}return o.reduceRight((c,u,h)=>{let p=u.route.id?i==null?void 0:i[u.route.id]:null,m=null;n&&(m=u.route.errorElement||kye);let x=t.concat(o.slice(0,h+1)),C=()=>{let b;return p?b=m:u.route.Component?b=f.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=c,f.createElement(Cye,{match:u,routeContext:{outlet:c,matches:x,isDataRoute:n!=null},children:b})};return n&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?f.createElement(jye,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:C(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):C()},null)}var lF=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(lF||{}),M2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(M2||{});function Eye(e){let t=f.useContext(s1);return t||wn(!1),t}function Nye(e){let t=f.useContext(tE);return t||wn(!1),t}function _ye(e){let t=f.useContext(rc);return t||wn(!1),t}function cF(e){let t=_ye(),n=t.matches[t.matches.length-1];return n.route.id||wn(!1),n.route.id}function Iye(){var e;let t=f.useContext(oF),n=Nye(M2.UseRouteError),r=cF(M2.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Tye(){let{router:e}=Eye(lF.UseNavigateStable),t=cF(M2.UseNavigateStable),n=f.useRef(!1);return iF(()=>{n.current=!0}),f.useCallback(function(r,s){s===void 0&&(s={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,_2({fromRouteId:t},s)))},[e,t])}function Mye(e){let{to:t,replace:n,state:r,relative:s}=e;Tm()||wn(!1);let{matches:o}=f.useContext(rc),{pathname:i}=bd(),c=ts(),u=N2(t,E2(o),i,s==="path"),h=JSON.stringify(u);return f.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:s}),[c,h,s,n,r]),null}function nE(e){return xye(e.context)}function Lye(e){let{basename:t="/",children:n=null,location:r,navigationType:s=$r.Pop,navigator:o,static:i=!1}=e;Tm()&&wn(!1);let c=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:c,navigator:o,static:i}),[c,o,i]);typeof r=="string"&&(r=tc(r));let{pathname:h="/",search:p="",hash:m="",state:x=null,key:C="default"}=r,b=f.useMemo(()=>{let g=yd(h,c);return g==null?null:{location:{pathname:g,search:p,hash:m,state:x,key:C},navigationType:s}},[c,h,p,m,x,C,s]);return b==null?null:f.createElement(ah.Provider,{value:u},f.createElement(I2.Provider,{children:n,value:b}))}new Promise(()=>{});function Dye(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mm.apply(this,arguments)}function dF(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Oye(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pye(e,t){return e.button===0&&(!t||t==="_self")&&!Oye(e)}const Rye=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Aye=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function zye(e,t){return rye({basename:t==null?void 0:t.basename,future:Mm({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Eve({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Fye(),routes:e,mapRouteProperties:Dye,window:t==null?void 0:t.window}).initialize()}function Fye(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Mm({},t,{errors:Hye(t.errors)})),t}function Hye(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,s]of t)if(s&&s.__type==="RouteErrorResponse")n[r]=new KS(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let o=window[s.__subType];if(typeof o=="function")try{let i=new o(s.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(s.message);o.stack="",n[r]=o}}else n[r]=s;return n}const uF=f.createContext({isTransitioning:!1}),$ye=f.createContext(new Map),Bye="startTransition",hF=Mf[Bye],Wye="flushSync",pF=HY[Wye];function Vye(e){hF?hF(e):e()}function o1(e){pF?pF(e):e()}class Uye{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function qye(e){let{fallbackElement:t,router:n,future:r}=e,[s,o]=f.useState(n.state),[i,c]=f.useState(),[u,h]=f.useState({isTransitioning:!1}),[p,m]=f.useState(),[x,C]=f.useState(),[b,g]=f.useState(),k=f.useRef(new Map),{v7_startTransition:j}=r||{},S=f.useCallback(L=>{j?Vye(L):L()},[j]),E=f.useCallback((L,D)=>{let{deletedFetchers:P,unstable_flushSync:A,unstable_viewTransitionOpts:B}=D;P.forEach(R=>k.current.delete(R)),L.fetchers.forEach((R,$)=>{R.data!==void 0&&k.current.set($,R.data)});let z=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||z){A?o1(()=>o(L)):S(()=>o(L));return}if(A){o1(()=>{x&&(p&&p.resolve(),x.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let R=n.window.document.startViewTransition(()=>{o1(()=>o(L))});R.finished.finally(()=>{o1(()=>{m(void 0),C(void 0),c(void 0),h({isTransitioning:!1})})}),o1(()=>C(R));return}x?(p&&p.resolve(),x.skipTransition(),g({state:L,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(c(L),h({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,x,p,k,S]);f.useLayoutEffect(()=>n.subscribe(E),[n,E]),f.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new Uye)},[u]),f.useEffect(()=>{if(p&&i&&n.window){let L=i,D=p.promise,P=n.window.document.startViewTransition(async()=>{S(()=>o(L)),await D});P.finished.finally(()=>{m(void 0),C(void 0),c(void 0),h({isTransitioning:!1})}),C(P)}},[S,i,p,n.window]),f.useEffect(()=>{p&&i&&s.location.key===i.location.key&&p.resolve()},[p,x,s.location,i]),f.useEffect(()=>{!u.isTransitioning&&b&&(c(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),g(void 0))},[u.isTransitioning,b]);let N=f.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:L=>n.navigate(L),push:(L,D,P)=>n.navigate(L,{state:D,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(L,D,P)=>n.navigate(L,{replace:!0,state:D,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),T=n.basename||"/",M=f.useMemo(()=>({router:n,navigator:N,static:!1,basename:T}),[n,N,T]);return f.createElement(f.Fragment,null,f.createElement(s1.Provider,{value:M},f.createElement(tE.Provider,{value:s},f.createElement($ye.Provider,{value:k.current},f.createElement(uF.Provider,{value:u},f.createElement(Lye,{basename:T,location:s.location,navigationType:s.historyAction,navigator:N},s.initialized?f.createElement(Yye,{routes:n.routes,state:s}):t))))),null)}function Yye(e){let{routes:t,state:n}=e;return bye(t,void 0,n)}const Kye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ac=f.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:s,replace:o,state:i,target:c,to:u,preventScrollReset:h,unstable_viewTransition:p}=e,m=dF(e,Rye),{basename:x}=f.useContext(ah),C,b=!1;if(typeof u=="string"&&Gye.test(u)&&(C=u,Kye))try{let S=new URL(window.location.href),E=u.startsWith("//")?new URL(S.protocol+u):new URL(u),N=yd(E.pathname,x);E.origin===S.origin&&N!=null?u=N+E.search+E.hash:b=!0}catch{}let g=gye(u,{relative:r}),k=Qye(u,{replace:o,state:i,target:c,preventScrollReset:h,relative:r,unstable_viewTransition:p});function j(S){n&&n(S),S.defaultPrevented||k(S)}return f.createElement("a",Mm({},m,{href:C||g,onClick:b||s?n:j,ref:t,target:c}))}),Lm=f.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:s="",end:o=!1,style:i,to:c,unstable_viewTransition:u,children:h}=e,p=dF(e,Aye),m=T2(c,{relative:p.relative}),x=bd(),C=f.useContext(tE),{navigator:b}=f.useContext(ah),g=C!=null&&Jye(m)&&u===!0,k=b.encodeLocation?b.encodeLocation(m).pathname:m.pathname,j=x.pathname,S=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(j=j.toLowerCase(),S=S?S.toLowerCase():null,k=k.toLowerCase());const E=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let N=j===k||!o&&j.startsWith(k)&&j.charAt(E)==="/",T=S!=null&&(S===k||!o&&S.startsWith(k)&&S.charAt(k.length)==="/"),M={isActive:N,isPending:T,isTransitioning:g},L=N?n:void 0,D;typeof s=="function"?D=s(M):D=[s,N?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let P=typeof i=="function"?i(M):i;return f.createElement(ac,Mm({},p,{"aria-current":L,className:D,ref:t,style:P,to:c,unstable_viewTransition:u}),typeof h=="function"?h(M):h)});var rE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(rE||(rE={}));var mF;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mF||(mF={}));function Zye(e){let t=f.useContext(s1);return t||wn(!1),t}function Qye(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:c}=t===void 0?{}:t,u=ts(),h=bd(),p=T2(e,{relative:i});return f.useCallback(m=>{if(Pye(m,n)){m.preventDefault();let x=r!==void 0?r:nh(h)===nh(p);u(e,{replace:x,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:c})}},[h,u,p,r,s,n,e,o,i,c])}function Jye(e,t){t===void 0&&(t={});let n=f.useContext(uF);n==null&&wn(!1);let{basename:r}=Zye(rE.useViewTransitionState),s=T2(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=yd(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=yd(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qS(s.pathname,i)!=null||qS(s.pathname,o)!=null}function Xye({itemId:e,setShowDetails:t,isLargeView:n,isShowDetails:r,isSelected:s,isPinned:o,isMenu:i,icon:c,iconVisibility:u,isPinnedBoard:h,isFavorite:p,boardId:m,tabId:x,setSelectedItemId:C}){const{t:b}=wt(),{updateMovedClips:g}=Tb(),{duplicateItem:k}=mpe(),{deleteItemById:j}=Lb(),{updateItemById:S}=ji(),{updatePinnedClipsByIds:E}=nR(),{setIsShowPinned:N,isShowPinned:T}=ut(ra),{createNewItem:M}=Mb(),L=ts(),{clipItems:D,tabs:P,currentTab:A,setCurrentTab:B,currentCollectionId:z}=ut(hr),R=f.useMemo(()=>Os(D,A).filter(K=>K.id!==e),[D,A,e]),$=async function(K){var F,V;if(!z||!K||!m)return;const W=K.toString(),G=Os(D,W);let Z=(F=G.find(q=>q.name===G0))==null?void 0:F.id;if(!Z){const q=(V=P.find(re=>re.tabId===W))==null?void 0:V.tabColor,ne={name:G0,isBoard:!0,tabId:W,color:q,description:BM,parentId:null,collectionId:z,orderNumber:0},Q=await M({item:ne});G.sort((re,le)=>re.orderNumber-le.orderNumber).unshift({...ne,id:Q,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1});const ae=G.map((re,le)=>({itemId:re.id,parentId:null,tabId:re.tabId,collectionId:z,orderNumber:le}));g({updatedMoveClips:ae}),Z=Q}if(Z){const q=Z.toString(),ne=await k({itemId:e,boardId:q,tabId:W,collectionId:z});Yc.value=q;const Q=Os(D,W.toString(),q==null?void 0:q.toString());Q.sort((re,le)=>re.orderNumber-le.orderNumber).unshift({parentId:q,tabId:W,id:ne,type:"clip",orderNumber:0,createdAt:0,value:"",name:b("Copy Clip",{ns:"dashboard"})});const ae=Q.map((re,le)=>({itemId:re.id,parentId:re.parentId,tabId:re.tabId,collectionId:z,orderNumber:le}));B(W),setTimeout(async()=>{await g({updatedMoveClips:ae}),As.value=ne},600)}},_=async function(K){if(!z||!K)return;const W=K.toString(),G=A.toString(),Z=await k({itemId:e,boardId:W,tabId:G,collectionId:z});Yc.value=W;const F=Os(D,G.toString(),W==null?void 0:W.toString());F.sort((q,ne)=>q.orderNumber-ne.orderNumber).unshift({parentId:W,tabId:G,id:Z,type:"clip",orderNumber:0,createdAt:0,value:"",name:b("Copy Clip",{ns:"dashboard"})});const V=F.map((q,ne)=>({itemId:q.id,parentId:q.parentId,tabId:q.tabId,collectionId:z,orderNumber:ne}));B(G),setTimeout(async()=>{await g({updatedMoveClips:V}),As.value=Z},600)},U=f.memo(({board:K,itemId:W,level:G,onSelect:Z})=>{var F;return"isBoard"in K&&G<1&&((F=K.children)!=null&&F.some(V=>"isBoard"in V&&V.isBoard&&V.id!==W))?a.jsxs(Ga,{children:[a.jsx(Ma,{onClick:()=>{Z(K.id)},children:K.name}),a.jsx(La,{children:K.children.filter(V=>V.id!==W).filter(V=>V.type===ns).map(V=>a.jsx(U,{board:V,itemId:W,level:G+1,onSelect:Z},V.id))})]}):a.jsx(Tt,{onSelect:()=>{Z(K.id)},children:a.jsx(X,{children:K.name})},K.id)});return e==null?null:a.jsx(kg,{children:a.jsxs(am,{children:[n?a.jsxs(Tt,{onClick:()=>{Ia.value=null},children:[b("Close Large",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(J0,{size:14})})]}):a.jsxs(a.Fragment,{children:[r?a.jsxs(Tt,{onClick:()=>{t(null)},children:[b("Hide Details",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(yae,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{t(e)},children:[b("Show Details",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(xae,{size:15})})]}),Ia.value!==e?a.jsxs(Tt,{onClick:()=>{Ia.value=e},children:[b("Large View",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(WC,{size:14})})]}):a.jsxs(Tt,{onClick:()=>{Ia.value=null},children:[b("Close Large",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(J0,{size:14})})]}),s?a.jsxs(Tt,{onClick:()=>{C(e)},children:[b("Deselect",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Rte,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{C(e)},children:[b("Select",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(ZM,{size:15})})]}),a.jsx(Zn,{})]}),_a.value!==e?a.jsxs(Tt,{className:"gap-2",onClick:()=>{_a.value=e},children:[b("Edit Clip",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Sx,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{_a.value=e},children:[b("Close Edit",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Sx,{size:15})})]}),a.jsx(Zn,{}),!h&&a.jsx(a.Fragment,{children:o?a.jsxs(Tt,{onClick:()=>{E({itemIds:[e],isPinned:!1})},children:[b("UnPin Clip",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Iu,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{!o&&!T&&N(!0),E({itemIds:[e],isPinned:!0})},children:[b("Pin",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(zl,{size:15})})]})}),p?a.jsxs(Tt,{onClick:()=>{S({updatedItem:{isFavorite:!1,itemId:e}})},children:[b("Remove Star",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Ox,{size:15,className:"fill-transparent"})})]}):a.jsxs(Tt,{onClick:()=>{S({updatedItem:{isFavorite:!0,itemId:e}})},children:[b("Star",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Mu,{size:15,className:"fill-transparent"})})]}),a.jsx(Zn,{}),i?a.jsxs(Tt,{onClick:()=>{L("/menu",{replace:!0}),setTimeout(()=>{Gc.value=e.toString()},300)},children:[b("Locate Menu",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(Tx,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{L("/menu",{replace:!0}),setTimeout(()=>{Nu.value=e,Fs.value=!0},300)},children:[b("Add to Menu",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(JC,{size:15})})]}),a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[b("Manage",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[b("Clip Icon",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[a.jsx(Tt,{disabled:!0,className:"text-center items-center justify-center py-0.5",children:a.jsx(X,{children:b("Icon Visibility",{ns:"contextMenus"})})}),a.jsx(Zn,{}),a.jsx(ki,{checked:u==="none",onSelect:()=>{S({updatedItem:{iconVisibility:"none",itemId:e}})},className:u==="none"?"font-semibold":"",children:b("Hide",{ns:"contextMenus"})}),a.jsx(ki,{checked:u==="always",onSelect:()=>{S({updatedItem:{iconVisibility:"always",itemId:e}})},className:u==="always"?"font-semibold":"",children:b("Show",{ns:"contextMenus"})}),a.jsxs(Ga,{children:[a.jsxs(Ma,{className:"flex items-center justify-center",children:[c?a.jsx(Nm,{size:16,className:"ml-1 mr-2",name:c}):a.jsx(FC,{size:16,className:"ml-1 mr-2 opacity-30"}),b("Custom Icon",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{className:"w-64",children:[a.jsxs(Tt,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[a.jsx(J,{className:"w-6"}),a.jsx(X,{children:b("Select Icon",{ns:"contextMenus"})}),a.jsx(ye,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{S({updatedItem:{icon:"",iconVisibility:"",itemId:e}})},children:b("RESET",{ns:"contextMenus"})})]}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:a.jsx(fe,{className:"grid grid-cols-7 gap-0.5",children:VS.map(K=>a.jsx(Tt,{className:"flex items-center justify-center ".concat(c===K?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:W=>{W.preventDefault(),S({updatedItem:{icon:K,iconVisibility:"always",itemId:e}})},children:a.jsx(Nm,{name:K,size:16})},K))})})]})]})]})]}),a.jsx(Zn,{}),a.jsxs(Tt,{onClick:async()=>{if(!z||!x||!m)return;const K=await k({itemId:e,boardId:m,tabId:x,collectionId:z});Yc.value=m;const W=Os(D,x.toString(),m==null?void 0:m.toString());W.sort((Z,F)=>Z.orderNumber-F.orderNumber).unshift({parentId:m,tabId:x,id:K,type:"clip",orderNumber:0,createdAt:0,value:"",name:b("Copy Clip",{ns:"dashboard"})});const G=W.map((Z,F)=>({itemId:Z.id,parentId:Z.parentId,tabId:Z.tabId,collectionId:z,orderNumber:F}));setTimeout(async()=>{await g({updatedMoveClips:G}),As.value=K},600)},children:[b("Duplicate",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(BC,{size:15})})]}),a.jsxs(Tt,{onClick:()=>{Ll.value=m},children:[b("Organize",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Mx,{size:15,className:"fill-transparent"})})]}),a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[b("Copy To",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[b("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),a.jsx(La,{children:P.map(K=>a.jsx(Tt,{onSelect:()=>{$(K.tabId)},children:a.jsx(X,{className:"".concat(A===K.tabId?"font-semibold":""),children:K.tabName})},K.tabId))})]}),Os(D,A).filter(K=>K.id!==e).length>0&&a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[b("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),a.jsx(La,{children:R.map(K=>a.jsx(U,{board:K,level:0,itemId:e,onSelect:W=>{_(W)}},K.id))})]})]})]})]})]}),a.jsx(Zn,{}),h?a.jsxs(Tt,{onClick:()=>{E({itemIds:[e],isPinned:!1})},children:[a.jsx(X,{className:"!text-orange-600",children:b("UnPin Clip",{ns:"contextMenus"})}),a.jsx("div",{className:"ml-auto ",children:a.jsx(Iu,{size:15,className:"!text-orange-600"})})]}):a.jsxs(Tt,{className:Fo.value===e?"!bg-red-100 dark:!bg-red-900":"",onClick:K=>{Fo.value===e?(j({itemId:e,collectionId:z}),n&&setTimeout(()=>{Ia.value=null},300),Fo.value):(K.preventDefault(),Fo.value=e,setTimeout(()=>{Fo.value=null},3e3))},children:[a.jsx(fe,{children:a.jsx(X,{className:"!text-red-500",children:Fo.value!==e?b("Delete Clip",{ns:"contextMenus"}):b("Click to Confirm",{ns:"common"})})}),!Fo.value&&a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(or,{size:15,className:"text-red-500"})})]})]})})}const aE=["Tab","Enter","TabTab","TabTabTab","TabEnter","TabTabEnter"];function fF({clip:e,boardColor:t,globalSearchTerm:n,isGlobalSearchBoardsOnly:r,isDragPreview:s,isSelected:o,selectedOrder:i,isShowDetails:c,canReorangeItems:u,isClipDelete:h,isHistoryDragActive:p,isClipEdit:m,isPinnedBoard:x,isLargeView:C,isShowOrganizeLayoutValue:b,isDisabledPinnedMoveDown:g,isDisabledPinnedMoveUp:k,isDark:j,closeGlobalSearch:S,onMovePinnedUpDown:E=({})=>{},setShowDetailsItem:N=()=>{},setSelectedItemId:T=()=>{}}){var Vt,_e,sn,Ht,kt,rn,Zt,Jt,gn;const{t:M}=wt(),L=He(!1),D=He(!1),P=He(!1),A=He(""),{updateItemById:B}=ji(),z=p0e(),[R,$,_,U]=Bu({}),[K,W,G]=Vu({}),Z=Gs(A.value,300),F=f.useRef(null),V=f.useRef(null),q=(b||u)&&!x,{setNodeRef:ne,listeners:Q,isDragging:ae,setActivatorNodeRef:re,isOver:le}=nC({transition:null,disabled:!!(q&&m)||s||!1,id:x?"".concat(e.id,"::pinnedzone"):m?"".concat(e.id,"::dropzone"):e.id,animateLayoutChanges:()=>!1,data:{type:m?"clip::dropzone":"clip",clip:e}}),oe=n&&!r?rl(e.name,n):e.name,ie=h||Dl.value&&o,de=R===e.id,xe=K===e.id,je=U===e.id,Ee=K===e.id?W:void 0,Te=c&&!x&&vi.value===e.id,Me=e.createdAt>Math.floor(Date.now())-60*1e3&&!e.isPinned&&!e.isFavorite,ze=e.color?e.color:t||(x?"orange":"slate"),qe=e.borderWidth&&e.borderWidth>0,Ye=qe?e.borderWidth:1,Ve=qe?"border-l-".concat(ze,"-400 hover:!border-l-").concat(ze,"-500 dark:border-l-").concat(ze,"-600 dark:hover:!border-l-").concat(ze,"-500"):"",Lt=Ou("relative overflow-hidden p-[2px] px-0 hover:shadow-sm !rounded-lg duration-300 bg-".concat(ze,"-50 dark:bg-").concat(ze,"-950 dark:bg-opacity-80 border-").concat(ze,"-200 dark:border-").concat(ze,"-900 ").concat(Ve," hover:bg-white dark:hover:bg-").concat(ze,"-950 dark:hover:bg-opacity-60 ").concat(qe?"border border-l-[".concat(Ye,"px] "):"border-0"," ").concat(m?"bg-white":""," ").concat(o?"bg-yellow-50 dark:bg-amber-950/80 border-amber-300 hover:border-yellow-300/80 hover:bg-yellow-50/80 dark:hover:bg-yellow-950/80":""," h-full ").concat(ie?"border-red-300 bg-red-100 border hover:!bg-red-100 dark:!bg-red-900 border-l-[".concat(Ye,"px] "):"").concat(de||xe?"!border-green-600 !bg-green-50 dark:!bg-green-900 dark:!border-green-700":""," ").concat(x&&!b?"animate-in fade-in":""," ").concat(Te?"pulse-clip":""," "),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 min-w-[120px]",overlay:"opacity-80 ml-[-2px] mt-[1px] min-w-[120px]"}}});f.useEffect(()=>{var zt,Mn,Ce,Be,ke,Qe;!q&&wx.value?(wx.value=null,PC.value=null):ae&&(wx.value=(Ce=(Mn=(zt=V==null?void 0:V.current)==null?void 0:zt.firstElementChild)==null?void 0:Mn.getBoundingClientRect().height)!=null?Ce:null,PC.value=(Qe=(ke=(Be=V==null?void 0:V.current)==null?void 0:Be.firstElementChild)==null?void 0:ke.getBoundingClientRect().width)!=null?Qe:null)},[ae,q]);const $e=f.useMemo(()=>"".concat(e.id,":::").concat(x?"pinned":e.parentId),[e.id,x,e.parentId]),st=U0.value===$e||b||u||je,At=!m&&!D&&(Me||e.isPinned||e.isFavorite)?"".concat(Me?M("New",{ns:"common"}):""," ").concat(e.isPinned?M("Pinned",{ns:"common"}):""," ").concat(e.isFavorite?M("Starred",{ns:"common"}):""):void 0,Qt=f.useMemo(()=>{if(!e.links)return[];if(e.links)try{e.arrLinks=JSON.parse(e.links)}catch{e.arrLinks=[]}return e.arrLinks},[e.isLink,e.links]);return f.useEffect(()=>{D.value=!1,P.value=!1},[c]),f.useEffect(()=>{P.value||(A.value="")},[P.value]),f.useEffect(()=>{!c||!ju.value||(ju.value&&c&&!P.value?P.value=!0:ju.value&&A.value.trim()===""&&(P.value=!1))},[ju.value]),a.jsxs(nm,{onOpenChange:zt=>{L.value=zt},children:[a.jsx(rm,{disabled:!st&&!o||!!n,ref:V,children:a.jsxs(J,{className:"relative",children:[o&&!(de||xe)&&a.jsx(it,{variant:"outline",className:"bg-yellow-50 fade-in animate-in border-amber-300 dark:bg-amber-900 dark:border-amber-950/80 border cursor-pointer px-1.5 py-[1px] absolute top-[-10px] left-[-4px] z-100",children:a.jsx(X,{className:"font-mono !text-yellow-500 dark:!text-yellow-300 font-semibold",children:i})}),(de||xe)&&!Ee?a.jsx(J,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:e.isForm?a.jsxs(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[M("Running",{ns:"common"}),"..."]}):a.jsxs(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[a.jsx(Dt,{size:14,className:"mr-1"}),de?M("Copied",{ns:"common"}):xe?M("Pasted",{ns:"common"}):""]})}):Ee&&W>0&&a.jsx(J,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:e.isForm?a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:M("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:W})}):a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:M("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:W})})}),a.jsxs(bS,{ref:Ei(q||m?ne:null),style:s?{height:(Vt=wx.value)!=null?Vt:"auto",width:(_e=PC.value)!=null?_e:"auto"}:{},onMouseEnter:()=>{U0.value=$e},onMouseLeave:()=>{U0.value=null},onClick:()=>{U0.value=$e},className:Lt({dragging:s?"overlay":ae?"over":void 0}),children:[a.jsxs(ife,{title:At,...z(()=>{Ll.value=e.parentId}),onClickCapture:zt=>{zt.shiftKey&&(zt.preventDefault(),zt.stopPropagation(),c?Ia.value===e.id?Ia.value=null:N(null):N(e.id))},onDoubleClickCapture:zt=>{if(P.value||m||zt.shiftKey){zt.preventDefault();return}if(zt.altKey||zt.metaKey){if(e.isForm){G(e.id,void 0,!0);return}G(e.id)}else $(e.id)},className:"overflow-hidden px-2.5 pr-1 py-1 break-words whitespace-pre-wrap flex gap-2 items-center justify-start flex-row ".concat(q?"cursor-grab":"cursor-pointer"," ").concat(C?"min-h-[30px]":""),...q?Q:{},children:[m?a.jsx(J1e,{clipId:e.id,name:e.name,description:(sn=e.description)!=null?sn:null,color:ze,borderWidth:e.borderWidth?e.borderWidth:0}):P.value&&((Ht=e.value)!=null&&Ht.trim())?a.jsxs(fe,{className:"w-full text-sm",children:[a.jsx(rd,{placeholder:"".concat(M("Find in clip",{ns:"dashboard"})," ..."),autoFocus:!0,onKeyDown:zt=>{zt.key==="Escape"&&A.value.trim()===""&&(P.value=!1)},iconLeft:a.jsx(Ap,{className:"h-4 w-4"}),classNameInput:"w-full px-[6px] h-6",onChange:zt=>{A.value=zt.target.value},className:"text-md ring-offset-0 pl-[6px] pr-[6px] bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8",type:"search"}),a.jsx(Yn,{className:"hover:bg-transparent text-slate-500 ml-1.5",children:a.jsx(De,{text:M("Close Find",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Rn,{size:18,onClick:()=>{P.value=!1}})})})]}):a.jsx("div",{className:"text-slate-600 dark:text-slate-300 text-sm line-clamp-3 text-ellipsis ".concat(Me?"font-semibold":"font-normal"),children:a.jsx(De,{text:e.description,isDisabled:!e.description,isCompact:!0,side:"right",delayDuration:2e3,align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:Qt&&Qt.length===1&&e.isLink?a.jsx("span",{onClick:zt=>{if(zt.shiftKey){zt.preventDefault();return}Tl(mr(Qt[0]))},title:Qt[0],className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:oe}):e.isLink&&e.value?a.jsx("span",{onClick:zt=>{var Ce;if(zt.shiftKey){zt.preventDefault();return}const Mn=wr().match((Ce=e.value)!=null?Ce:"");Mn&&Mn.length===1?Tl(mr(Mn[0].raw)):Wi(M("Provided link {{clipValue}} might be invalid!",{ns:"common",clipValue:e.value}),"Warning")},title:e.value,className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:oe}):e.isPath&&e.value?a.jsx("span",{onClick:async()=>{try{await Sa("check_path",{path:e.value}),await Sa("open_path_or_app",{path:e.value})}catch{Wi(M("Provided path {{clipValue}} might be invalid!",{ns:"common",clipValue:e.value}),"Warning")}},title:e.value,className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:oe}):oe})}),!((st||L.value)&&!m&&!P.value)&&a.jsxs("div",{className:"text-secondary-foreground/50 flex flex-row ml-auto self-start items-center justify-end w-[40px] h-5 !mt-0 !p-0",children:[e.isFavorite&&a.jsx(Mu,{className:"absolute text-transparent ".concat(e.isPinned?" fill-orange-400":" fill-yellow-400 "," pointer-events-none right-[4px] top-[4px] animate-in fade-in duration-500"),size:11}),e.isPinned&&!e.isFavorite&&!x?a.jsx(Al,{className:"absolute text-orange-400 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28}):Me&&!e.isFavorite&&a.jsx(Al,{className:"absolute text-green-400 pointer-events-none top-[-5px] right-[-3px] animate-in fade-in duration-500",size:28}),m&&!Ip.value&&a.jsxs("div",{className:"mr-2 flex",children:[a.jsx(Yn,{className:" hover:bg-transparent mr-2",onClick:()=>{Ia.value=C?null:e.id},children:a.jsx(De,{text:C?M("Close Large View Edit",{ns:"common"}):M("Large View Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(WC,{size:13})})}),a.jsx(Yn,{className:" hover:bg-transparent",onClick:()=>{Cx()},children:a.jsx(De,{text:M("Close Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Rn,{size:18})})})]}),!m&&a.jsx("div",{className:e.isPinned&&!e.isFavorite?"mr-[11px]":Me?"mr-[14px]":e.isFavorite?"mr-[13px]":"mr-1.5",children:Qt&&Qt.length===1&&e.isLink||e.isLink&&e.value?a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::Link",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:a.jsx(Ufe,{className:"ml-1.5",width:15,height:15})}):e.isPath&&e.value?a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::".concat(e.pathType),{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:e.pathType==="Folder"?a.jsx(Zfe,{width:16,height:16}):e.pathType==="File"?a.jsx(Kfe,{width:16,height:16}):e.pathType==="App"?a.jsx(Yfe,{width:16,height:16}):(((kt=e.pathType)==null?void 0:kt.includes("Executable"))||((rn=e.pathType)==null?void 0:rn.includes("Script")))&&a.jsx(Gfe,{width:16,height:16})}):e.isCommand?a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::Shell Command",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:a.jsx(mL,{width:16,height:16})}):e.isForm?a.jsx(a.Fragment,{children:a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::Form Auto Fill",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:a.jsx(gL,{width:16,height:16})})}):e.isTemplate?a.jsx(a.Fragment,{children:a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::Template",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:a.jsx(qC,{width:16,height:16})})}):e.isWebRequest?a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::Web Request (HTTP)",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:a.jsx(SA,{width:16,height:16})}):e.isWebScraping?a.jsx(ec,{icon:e.icon,description:e.description,pathType:M("Type:::Web Scraper / Parser",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:st,children:a.jsx(EA,{width:16,height:16})}):e.icon&&a.jsx(ec,{icon:e.icon,description:e.description,iconVisibility:e.iconVisibility,isHover:st})})]}),(st||L.value)&&!m&&(!u&&!s&&!ae&&!P.value&&!b?a.jsx(a.Fragment,{children:a.jsxs("div",{className:"self-start justify-end text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 ".concat(c?"":"w-[40px]"," items-center justify-center fade-in-init ").concat(st||L.value?"fade-in-init-hover":""),children:[a.jsx("div",{}),c&&!P.value&&!e.isImage&&((Zt=e.value)==null?void 0:Zt.trim())&&a.jsx(Yn,{className:"hover:bg-transparent hover:text-yellow-600 pr-2",onClick:()=>{P.value=!0},children:a.jsx(De,{text:M("Find in Clip",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(qfe,{width:16,height:16,className:"cursor-pointer"})})}),c&&e.isImage&&C&&a.jsx(Yn,{className:"hover:bg-transparent pr-3",onClick:()=>{B({updatedItem:{itemId:e.id,imageScale:e.imageScale===1?2:1}})},children:a.jsx(De,{text:M("Image Scale {{ImageScale}}x",{ns:"common",ImageScale:e.imageScale}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsxs(fe,{children:[a.jsx(it,{variant:"outline",className:"bg-slate-100 border border-slate-100 cursor-pointer px-1.5 mr-1 py-[1px]",children:a.jsx(X,{className:"font-mono !text-slate-400 font-semibold",children:"".concat(e.imageScale,"x")})}),e.imageScale===1?a.jsx(qse,{width:16,height:16,className:"cursor-pointer"}):a.jsx(Use,{width:16,height:16,className:"cursor-pointer"})]})})}),a.jsx(Yn,{className:"hover:bg-transparent hover:text-green-600",onClick:()=>{nn.value?e.isForm?G(e.id,void 0,!0):G(e.id):$(e.id)},children:e.isForm?a.jsx(De,{text:M("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:je||xe&&!Ee?a.jsx(wm,{}):a.jsx(l2,{width:16,height:16})}):e.isWebRequest||e.isWebScraping||e.isCommand?a.jsx(De,{text:nn.value?M("Run and Paste Response",{ns:"common"}):M("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:16}):je?a.jsx(wm,{}):a.jsx(l2,{width:16,height:16})}):a.jsx(De,{text:nn.value?M("Copy and Paste",{ns:"common"}):M("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:16}):a.jsx(qa,{size:16})})}),n?a.jsx(ye,{variant:"ghost",size:"mini",className:"px-1 pr-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-blue-500",onClick:()=>{vi.value=e.id,S==null||S()},ref:F,children:a.jsx(De,{text:M("Locate Clip",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Tx,{size:18})})}):a.jsx(ye,{variant:"ghost",size:"mini",className:"px-1 pr-0 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent dark:hover:bg-transparent hover:text-slate-600 hover:dark:text-slate-300",onClick:()=>{var Ce,Be,ke;const zt=(Ce=F==null?void 0:F.current)==null?void 0:Ce.getBoundingClientRect().x,Mn=(Be=F==null?void 0:F.current)==null?void 0:Be.getBoundingClientRect().y;(ke=V==null?void 0:V.current)==null||ke.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:zt,clientY:Mn&&Mn+30}))},ref:F,children:a.jsx(De,{text:M("Clip Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(bi,{size:18})})})]})}):!P.value&&a.jsx("div",{className:"text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 pr-2 w-[40px] items-center justify-center",children:s?a.jsx(Mx,{size:16}):x?a.jsxs(fe,{children:[a.jsx(J,{className:"".concat(k?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," pr-1 flex items-center justify-center"),children:a.jsx(oae,{size:15,onClick:()=>{k||E({itemId:e.id,moveUp:!0})}})}),a.jsx(J,{className:"".concat(g?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," flex items-center justify-center"),children:a.jsx(iae,{size:15,onClick:()=>{g||E({itemId:e.id,moveDown:!0})}})})]}):a.jsx(ye,{variant:"ghost",size:"mini",...Q,"data-drag-handle":!0,ref:re,className:"px-1 text-secondary-foreground/50 ml-auto cursor-grab fade-in animate-in !mt-0 flex hover:bg-transparent",children:a.jsx(De,{text:M("Drag to Move",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Nx,{size:16})})})}))]}),c&&!m?a.jsx(fz,{isImage:e.isImage,isLink:e.isLink,isShowLinkedClip:Te,searchTerm:Z,isVideo:e.isVideo,isPath:e.isPath,isForm:e.isForm,isTemplate:e.isTemplate,isCode:e.isCode,isMenu:e.isMenu,clipName:e.name,isCommand:e.isCommand,isWebRequest:e.isWebRequest,isWebScraping:e.isWebScraping,isExpanded:D,isCopyOrPaste:de||xe,isDark:j,arrLinks:e.arrLinks,isMasked:e.isMasked,hasMaskedWords:e.hasMaskedWords,detectedLanguage:e.detectedLanguage,hasEmoji:e.hasEmoji,pathType:e.pathType,isImageData:e.isImageData,imageHash:e.imageHash,imageType:e.imageType,imageScale:e.imageScale,imagePathFullRes:e.imagePathFullRes,imageDataUrl:e.imageDataUrl,isLargeView:C,formTemplateOptions:e.formTemplateOptions,commandRequestOutput:(Jt=e.commandRequestOutput)==null?void 0:Jt.replace("[Err]",""),isCommandRequestRunError:!!((gn=e.commandRequestOutput)!=null&&gn.startsWith("[Err]")),commandRequestOutputLastRunAt:e.commandRequestLastRunAt,requestOptions:e.requestOptions,imageWidthHeight:e.imageWidth?"".concat(e.imageWidth,"x").concat(e.imageHeight):null,clipId:e.id,value:e.value}):m&&a.jsx(Sve,{value:e.value,isOver:le,isLargeView:C,isShowLinkedClip:Te,isNewlyCreated:Me,isPinned:e.isPinned,isFavorite:e.isFavorite,isDelete:ie,isCode:e.isCode,isImage:e.isImage,isCommand:e.isCommand,isLink:e.isLink,isWebRequest:e.isWebRequest,isWebScraping:e.isWebScraping,requestOptions:e.requestOptions,formTemplateOptions:e.formTemplateOptions,isPath:e.isPath,isVideo:e.isVideo,isMasked:e.isMasked,hasEmoji:e.hasEmoji,imageDataUrl:e.imageDataUrl,isText:e.isText,isTemplate:e.isTemplate,isForm:e.isForm,detectedLanguage:e.detectedLanguage,isDark:j,isHistoryDragActive:p,clipId:e.id,onCancel:()=>{Cx()}})]})]})}),a.jsx(Xye,{itemId:e.id,isSelected:o,isPinnedBoard:x,isShowDetails:c,setShowDetails:N,setSelectedItemId:T,icon:e.icon,iconVisibility:e.iconVisibility,isPinned:e.isPinned,isFavorite:e.isFavorite,isMenu:e.isMenu,isLargeView:C,tabId:e.tabId,boardId:e.parentId})]})}const sE=f.memo(fF),gF=f.memo(({board:e,itemId:t,level:n,onSelect:r})=>{var s;return"isBoard"in e&&n<1&&((s=e.children)!=null&&s.some(o=>"isBoard"in o&&o.isBoard&&o.id!==t))?a.jsxs(Ga,{children:[a.jsx(Ma,{onClick:()=>{r(e.id)},children:e.name}),a.jsx(La,{children:e.children.filter(o=>o.id!==t).filter(o=>o.type===ns).map(o=>a.jsx(gF,{board:o,itemId:t,level:n+1,onSelect:r},o.id))})]}):a.jsx(Tt,{onSelect:()=>{r(e.id)},children:a.jsx(X,{children:e.name})},e.id)});function exe({itemId:e,itemParentId:t,onShowDescriptionChange:n,hasDescription:r,isShowDescription:s,isEdit:o,iconVisibility:i,icon:c,setEditBoard:u}){const{clipItems:h,tabs:p,currentTab:m,setClipItems:x,currentCollectionId:C,isBoardHasChildren:b}=ut(hr),{t:g}=wt(),{deleteItemById:k}=Lb(),{updateItemById:j}=ji(),{updateMovedClips:S}=Tb(),E=f.useMemo(()=>Os(h,m).filter(T=>T.id!==e),[h,m,e]),N=f.useCallback((T,M)=>{const L=h.find(D=>D.itemId===e&&D.isBoard);if(L&&!T&&M){const D=Os(h,m,t==null?void 0:t.toString()).find(_=>_.id===e),P=D?zS(D):[],A=h.filter(_=>_.tabId===M&&_.isBoard&&_.parentId===null).sort((_,U)=>_.orderNumber-U.orderNumber);A.unshift(L);const B=new Map(A.map((_,U)=>[_.itemId,U])),z=new Map(P==null?void 0:P.map(_=>[_,!0])),R=h.map(_=>{const U=B.get(_.itemId);return U!==void 0?{..._,orderNumber:U,tabId:M,parentId:null}:z!=null&&z.has(_.itemId)?{..._,tabId:M}:_});x(R);const $=R.filter(_=>(_.parentId===null||_.parentId===e||z.has(_.parentId))&&_.tabId===M).map(_=>({itemId:_.itemId,parentId:_.parentId,tabId:_.tabId,collectionId:C,orderNumber:_.orderNumber}));S({updatedMoveClips:$})}else if(L&&T&&!M){const D=h.filter(z=>z.parentId===T&&z.tabId===m).sort((z,R)=>z.orderNumber-R.orderNumber);D.unshift(L);const P=new Map(D.map((z,R)=>[z.itemId,R])),A=h.map(z=>{const R=P.get(z.itemId);return R!==void 0?{...z,orderNumber:R,parentId:T.toString()}:z});x(A);const B=A.filter(z=>z.parentId===T).map(z=>({itemId:z.itemId,parentId:T,tabId:m,collectionId:C,orderNumber:z.orderNumber}));S({updatedMoveClips:B})}},[e,m]);return e==null?null:a.jsx(kg,{children:a.jsxs(am,{className:"min-w-[150px]",children:[a.jsxs(Tt,{onSelect:()=>{Gi.value=e},children:[g("Add Clip",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(KC,{size:16})})]}),a.jsxs(Tt,{onSelect:()=>{q0.value=e},children:[g("Add Board",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(ag,{size:16})})]}),a.jsx(Zn,{}),!o&&a.jsxs(Tt,{onClick:()=>{u(e)},children:[g("Edit Board",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(qC,{size:15})})]}),a.jsxs(Tt,{onClick:()=>{Ll.value=e},children:[g("Organize",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Mx,{size:15,className:"fill-transparent"})})]}),r&&a.jsx(a.Fragment,{children:s?a.jsxs(Tt,{onClick:()=>{n(e,!1)},children:[g("Hide Subtitle",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(eg,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{n(e,!0)},children:[g("Show Subtitle",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(Dp,{size:15})})]})}),a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[g("Board Icon",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[a.jsx(ki,{checked:i==="none",onSelect:()=>{j({updatedItem:{iconVisibility:"none",itemId:e}})},className:i==="none"?"font-semibold":"",children:g("Hide",{ns:"contextMenus"})}),a.jsx(ki,{checked:i==="always",onSelect:()=>{j({updatedItem:{iconVisibility:"always",itemId:e}})},className:i==="always"?"font-semibold":"",children:g("Show",{ns:"contextMenus"})}),a.jsxs(Ga,{children:[a.jsxs(Ma,{className:"flex items-center justify-center",children:[c?a.jsx(Nm,{size:16,className:"ml-1 mr-2",name:c}):a.jsx(FC,{size:16,className:"ml-1 mr-2 opacity-30"}),g("Custom Icon",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{className:"w-64",children:[a.jsxs(Tt,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[a.jsx(J,{className:"w-6"}),a.jsx(X,{children:g("Select Icon",{ns:"contextMenus"})}),a.jsx(ye,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{j({updatedItem:{icon:"",iconVisibility:"none",itemId:e}})},children:g("RESET",{ns:"contextMenus"})})]}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:a.jsx(fe,{className:"grid grid-cols-7 gap-0.5",children:VS.map(T=>a.jsx(Tt,{className:"flex items-center justify-center ".concat(c===T?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:M=>{M.preventDefault(),j({updatedItem:{iconVisibility:"always",icon:T,itemId:e}})},children:a.jsx(Nm,{name:T,size:16})},T))})})]})]})]})]}),a.jsx(Zn,{}),a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[g("Move Board To",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[g("MoveTo:::Tab",{ns:"contextMenus"})," ..."]}),a.jsx(La,{children:p.map(T=>a.jsx(Tt,{onSelect:()=>{N(null,T.tabId)},children:a.jsx(X,{className:"".concat(m===T.tabId?"font-semibold":""),children:T.tabName})},T.tabId))})]}),Os(h,m).filter(T=>T.id!==e).length>0&&a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[g("MoveTo:::Board",{ns:"contextMenus"})," ..."]}),a.jsx(La,{children:E.map(T=>a.jsx(gF,{board:T,level:0,itemId:e,onSelect:M=>{N(M)}},T.id))})]})]})]}),!b(e)&&a.jsxs(a.Fragment,{children:[a.jsx(Zn,{}),a.jsxs(Tt,{className:Kc.value===e?"!bg-red-100 dark:!bg-red-900":"",onClick:T=>{Kc.value===e?(k({itemId:e,collectionId:C}),Kc.value):(T.preventDefault(),Kc.value=e,setTimeout(()=>{Kc.value=null},3e3))},children:[a.jsx(fe,{children:a.jsx(X,{className:"!text-red-500",children:Kc.value!==e?g("Delete Board",{ns:"contextMenus"}):g("Click to Confirm",{ns:"common"})})}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(or,{size:15,className:"text-red-500"})})]})]})]})})}const txe="_TopRow_16h0h_1",nxe="_BottomRow_16h0h_5",rxe="_Panel_16h0h_9",axe="_PanelContent_16h0h_14",sxe="_ResizeHandleOuter_16h0h_24",oxe="_ResizeHandleInner_16h0h_35",ixe="_Button_16h0h_46",lxe="_Icon_16h0h_58",oE={TopRow:txe,BottomRow:nxe,Panel:rxe,PanelContent:axe,ResizeHandleOuter:sxe,ResizeHandleInner:oxe,Button:ixe,Icon:lxe};function vF({isVertical:e=!1,className:t="",id:n}){return a.jsx(RL,{className:"".concat(oE.ResizeHandleOuter," ").concat(t," opacity-0 hover:opacity-100 transition-opacity"),id:n,children:a.jsx("div",{className:oE.ResizeHandleInner,children:a.jsx(rL,{className:"".concat(oE.Icon," ").concat(e?"rotate-90":""," text-slate-300 dark:text-slate-500"),type:"resize-vertical"})})})}function cxe({children:e,isLastPanel:t=!1,hasPanel:n=!0,hasResizeHandle:r=!0,isVertical:s=!1,isCollapsible:o=!1,...i}){const[c,u]=f.useState(0);return n?a.jsxs(a.Fragment,{children:[a.jsx(Rx,{style:{width:"".concat(c,"%")},collapsible:o,onResize:h=>{u(h)},...i,children:e}),!t&&r&&a.jsx(vF,{isVertical:s})]}):e}const iE=["max-w-min","max-w-xs","max-w-sm","max-w-md","max-w-[50%]","max-w-prose","max-w-full","max-w-fit"];function yF({board:e,boardColor:t,isDragPreview:n,isSubBoard:r,isDark:s,globalSearchTerm:o,isGlobalSearchBoardsOnly:i,isHistoryDragActive:c,dragOverBoardId:u,panelHeight:h,currentTabLayout:p,selectedItemIds:m,showDetailsItem:x,closeGlobalSearch:C,setShowDetailsItem:b,setCurrentTab:g,setSelectedItemId:k}){var de,xe,je,Ee,Te,Me,ze;const{t:j}=wt(),S=f.useMemo(()=>{var qe,Ye;return(Ye=(qe=e.children)==null?void 0:qe.map(Ve=>Ve.id))!=null?Ye:[]},[e]),{updateItemById:E,updateItemByIdPending:N}=ji(),T=He(!1),M=f.useRef(null),L=f.useRef(null),D=He(!1),P=He(!1),{isBoardHasChildren:A}=ut(hr),B=f.useRef(null),z=Ua.value===wo,R=RC.value===e.id&&!o,{setNodeRef:$,listeners:_,isDragging:U}=nC({disabled:c||z||!!_a.value||!!As.value,id:e.id,data:{type:"board",isSubBoard:r,board:e}}),K=e.id===Su.value,W=e.name===G0,G=e.id===Y0.value,Z=Kc.value===e.id,F=K||G,V=e.color||t||"slate",q=e.borderWidth===0?r?"border":"border-none":e.borderWidth===1?"border":"border-[".concat(e.borderWidth,"px]"),ne=((de=e.layout)==null?void 0:de.startsWith("flex"))||!1,Q=e.layout==="flex-nowrap"||!1,ae=((xe=e.layout)==null?void 0:xe.startsWith("grid"))||!1,re=parseInt((Ee=(je=e.layout)==null?void 0:je.split("grid-cols-")[1])!=null?Ee:"",10)||2,le=Ll.value===e.id&&!o,oe=u===e.id,ie=Ou("".concat(oe?"bg-blue-200 dark:bg-blue-400 border-blue-300 dark:border-blue-300":"".concat(xu(V,"200")," ").concat(yx(V,"300","700"))," h-full flex flex-col ").concat(F?"border-2 min-h-[120px]":"border-0 min-h-[100px]"," px-0.5 py-1 bg-opacity-70 dark:bg-opacity-70 rounded-lg overflow-hidden ").concat(Z?"border-2 border-red-300 bg-red-100":""," ").concat(W?"border-2 ".concat(yx(V,"300","700")," border-opacity-70 dark:border-opacity-70"):""," ").concat(r?"border-opacity-50 dark:border-opacity-50":"border-opacity-60 dark:border-opacity-60"," ").concat(q," ").concat(z?"hover:bg-blue-100":""," ").concat(R?"pulse-clip":""),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 dark:border-blue-500",overlay:"".concat(yx(V,"300","700")," opacity-70 border-2")}}});return f.useEffect(()=>{var qe;R&&((qe=B==null?void 0:B.current)==null||qe.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>{RC.value=null},1e3))},[R,B==null?void 0:B.current]),a.jsxs(bS,{ref:Ei(B,_a.value||As.value?null:$),className:ie({dragging:n?"overlay":U?"over":void 0}),children:[a.jsxs(nm,{onOpenChange:qe=>{T.value=qe,Kc.value=null},children:[a.jsx(rm,{disabled:F,ref:P.value?L:null,children:a.jsxs(lfe,{onMouseEnter:()=>{P.value=!0},onMouseLeave:()=>{P.value=!1},onClick:()=>{P.value=!0},className:"p-1 px-4 pt-2 pb-0 pr-2 flex flex-row relative",...!lo.value&&!F?_:{},children:[F?a.jsx(Vfe,{boardName:e.name,boardSubtitle:e.description,scrollRef:B,isNewBoard:K,boardColor:e.color,boardBorderWidth:(Te=e.borderWidth)!=null?Te:0,boardId:e.id}):a.jsxs("div",{className:"overflow-hidden",children:[a.jsxs("div",{className:"cursor-default flex items-center",children:[a.jsx(ec,{icon:e.icon,size:17,isBoard:!0,className:"mr-1.5",description:e.showDescription?null:e.description,iconVisibility:e.iconVisibility,isHover:!0,children:W&&a.jsx(mse,{size:17,className:"mr-1.5"})}),o?a.jsx(X,{color:"black",className:"dark:hover:!text-blue-400 hover:!text-blue-500 cursor-pointer !font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap first-letter:uppercase",onClick:()=>{g==null||g(e.tabId),RC.value=e.id,C==null||C()},children:i?rl(e.name,o):e.name}):a.jsx(X,{color:"black",className:"!font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap first-letter:uppercase",children:e.name}),!e.showDescription&&(!e.icon||e.iconVisibility!=="always")&&a.jsx(De,{text:e.description,className:"!px-2 !py-1",delayDuration:300,isCompact:!0,isDisabled:n||!P.value,sideOffset:10,side:"bottom",children:a.jsx("div",{className:"ml-0.5 pl-1 text-primary/50 cursor-pointer hover:opacity-100 ".concat(P.value?"opacity-80":"opacity-0"),children:a.jsx(sA,{size:17})})})]}),e.description&&e.showDescription&&a.jsx("div",{onClick:()=>{D.value=!D.value},className:"!font-light text-xs cursor-default hover:opacity-100 opacity-70 hover:animate-in ".concat(D.value?"":"line-clamp-2"," mt-0.5"),children:e.description})]}),!F&&a.jsx("div",{className:"flex flex-row ml-auto opacity-0 animate-in fade-in ".concat(P.value||T.value||lo.value||le?"opacity-100":""," !mt-0"),children:n?a.jsx(Mx,{size:18}):a.jsx(fe,{className:"flex-row items-start relative",children:lo.value?a.jsx(Yn,{..._,className:"p-1 text-primary/50 h-auto cursor-grab absolute right-0 top-[-3px] hover:".concat(xu(e.color,"200")),children:a.jsx(Nx,{size:18})}):le?a.jsxs(ye,{variant:"light",size:"mini",className:"px-3 py-0.5 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{Ll.value=null},children:[a.jsx(X,{className:"whitespace-nowrap",children:j("Done",{ns:"common"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:14})})]}):!o&&a.jsx(ye,{title:j("Board Menu",{ns:"dashboard"}),variant:"ghost",size:"mini",className:"p-1 text-secondary-foreground/50 ".concat(xu(e.color,"200")," dark:hover:bg-").concat(e.color,"-800 hover:").concat(xu(e.color,"200")," bg-opacity-80 cursor-pointer rounded-md !mt-0 flex absolute right-0 top-[-3px]"),onClick:()=>{var Ve,Lt,$e;const qe=(Ve=M==null?void 0:M.current)==null?void 0:Ve.getBoundingClientRect().x,Ye=(Lt=M==null?void 0:M.current)==null?void 0:Lt.getBoundingClientRect().y;($e=L==null?void 0:L.current)==null||$e.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:qe&&qe+10,clientY:Ye&&Ye+30}))},ref:M,children:a.jsx(bi,{size:18})})})}),o&&e.tabName&&a.jsx(it,{onClick:()=>{g==null||g(e.tabId),C==null||C()},variant:"secondary",className:"absolute top-0 right-2 rounded-[4px] text-slate-400 hover:text-blue-400 hover:bg-slate-50 cursor-pointer dark:hover:bg-slate-800 dark:text-slate-500 dark:hover:text-blue-500 dark:bg-slate-800",children:e.tabName})]})}),a.jsx(exe,{itemId:e.id,itemParentId:e.parentId,icon:e.icon,iconVisibility:e.iconVisibility,isEdit:G,isShowDescription:e.showDescription,hasDescription:!!e.description,setEditBoard:qe=>{Y0.value=qe},onShowDescriptionChange:(qe,Ye)=>{E({updatedItem:{showDescription:Ye,itemId:qe}})}})]}),a.jsxs(Ku,{className:"m-0 p-0 pb-2 pr-3 pl-2 relative h-full",children:[a.jsxs(xm,{defer:!0,options:{overflow:{x:"hidden"},scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},style:{maxHeight:r||p==="auto"?400:e.showDescription&&e.description&&h?h-(F?156:90):h&&h-(F?126:60)},children:[(c||z)&&!_a.value&&!As.value&&a.jsx(ufe,{board:e,isNewClip:z,isCreatingClip:Yc.value===e.id}),a.jsx(tC,{items:S,strategy:()=>null,disabled:c||z,children:((Me=e.children)==null?void 0:Me.length)&&pxe(e.children,e.layoutSplit||1).map((qe,Ye)=>qe.length>0&&a.jsxs("div",{children:[Ye>0&&a.jsx(b4,{className:"mt-2 mb-1 ml-1",color:V}),a.jsx(xm,{defer:!0,style:{width:"100%"},options:{scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:a.jsx("div",{className:"".concat(ne?"flex":"grid"," ").concat(Q?"flex-nowrap":"flex-wrap"," justify-normal gap-2.5 items-start mt-2.5 mb-1 ml-1 ").concat(ae?e.layout:""),children:qe==null?void 0:qe.map(Ve=>{const Lt=_a.value===Ve.id;return a.jsx("div",{className:"".concat(Lt?"min-w-[265px] duration-100 ":"min-w-[140px] "," ").concat(e.layoutItemsMaxWidth?e.layoutItemsMaxWidth:Lt||As.value===Ve.id?"max-w-full":"max-w-fit"," hover:z-100 ").concat(ne?e.layout:""),children:Ve.type===ns?a.jsx(L2,{isHistoryDragActive:c,dragOverBoardId:u,isDark:s,board:Ve,boardColor:V,currentTabLayout:p,isSubBoard:!0,selectedItemIds:m,setSelectedItemId:k,showDetailsItem:x,setShowDetailsItem:b}):Ve.type===wo&&a.jsx(sE,{clip:Ve,boardColor:V,globalSearchTerm:o,isGlobalSearchBoardsOnly:i,closeGlobalSearch:C,isDark:s,isClipDelete:Fo.value===Ve.id,isClipEdit:Lt||As.value===Ve.id,canReorangeItems:F||le,isShowOrganizeLayoutValue:lo.value,isHistoryDragActive:c,isShowDetails:x===Ve.id,setShowDetailsItem:b,setSelectedItemId:k,isSelected:m.includes(Ve.id),selectedOrder:m.indexOf(Ve.id)+1})},Ve.id)})})})]},Ye))})]}),F&&a.jsxs(a.Fragment,{children:[a.jsx(mn,{h:11}),a.jsxs(fe,{className:"justify-between w-full pl-2 pr-2 mt-2 absolute bottom-1 left-0",children:[a.jsx(cfe,{boardName:e.name,isNewBoard:K,boardId:e.id}),a.jsx(fe,{className:"w-full scroll-h-tabs-wrap",children:A(e.id)&&a.jsx(An,{style:{minWidth:"100%"},children:a.jsx(Xi,{className:"min-w-[280px] flex flex-row mt-[2px]",title:j("Change Layout",{ns:"dashboard"}),activationMode:"manual",value:e.layout||"flex-auto",onValueChange:async qe=>{N||await E({updatedItem:{layout:qe,itemId:e.id}})},children:a.jsxs(fe,{className:"w-full",children:[a.jsxs(fe,{className:"mr-2",children:[e.layoutSplit>1&&a.jsx(it,{onClick:()=>{E({updatedItem:{layoutSplit:e.layoutSplit>4?1:e.layoutSplit+1,itemId:e.id}})},variant:"outline",className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-1.5 mr-1",children:a.jsx(X,{className:"font-mono text-slate-400 font-semibold",children:e.layoutSplit})}),a.jsx(ye,{variant:"light",title:j("Vertical Split",{ns:"dashboard"}),onClick:()=>{E({updatedItem:{layoutSplit:e.layoutSplit>4?1:e.layoutSplit+1,itemId:e.id}})},className:"px-1 py-2 bg-gray-50 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 h-8 w-8",children:a.jsx(Rne,{size:18,className:"opacity-70"})})]}),a.jsx(fe,{className:"mr-0.5",children:a.jsx(it,{variant:"outline",title:j("Layout Max Width",{ns:"dashboard"}),onClick:()=>{let qe=iE.findIndex(Ve=>Ve===e.layoutItemsMaxWidth);qe===-1?qe=0:qe=(qe+1)%iE.length;const Ye=iE[qe];E({updatedItem:{layoutItemsMaxWidth:Ye,itemId:e.id}})},className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-2 py-3 h-6 mr-1",children:a.jsx(X,{className:"text-slate-400 font-semibold text-md uppercase",children:e.layoutItemsMaxWidth?(ze=e.layoutItemsMaxWidth)==null?void 0:ze.replace("max-w-",""):"fit"})})}),a.jsxs(Vo,{className:"self-center text-primary/40",children:[a.jsx(br,{value:"flex-auto",className:"text-xs px-2 py-1",children:a.jsx(fL,{size:18,className:"opacity-70"})}),a.jsx(br,{value:"flex-1",className:"text-xs px-2 py-1",children:a.jsx(Sre,{size:18,className:"opacity-60 transform -scale-y-100"})}),a.jsx(br,{value:"flex-nowrap",className:"text-xs px-2 py-1",children:a.jsx(Oee,{size:18,className:"opacity-60"})}),a.jsx(br,{value:"grid-cols-".concat(re),className:"text-xs px-2 py-1",children:a.jsx(ZC,{size:18,className:"opacity-60",onClick:qe=>{qe.stopPropagation(),E({updatedItem:{layout:"grid-cols-".concat(re>3?1:re+1),itemId:e.id}})}})})]}),ae&&a.jsx(it,{title:j("Number of columns",{ns:"dashboard"}),onClick:()=>{E({updatedItem:{layout:"grid-cols-".concat(re>3?1:re+1),itemId:e.id}})},variant:"outline",className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-1.5 ml-1",children:a.jsx(X,{className:"font-mono text-slate-400 font-semibold",children:re})})]})})})}),a.jsx(ye,{variant:"light",title:"".concat(A(e.id)?j("Done",{ns:"common"}):""),onClick:()=>{if(Pl.value){Pr.value=!0;return}Cx()},className:"px-2 text-blue-500 animate-in fade-in bg-gray-50 hover:bg-grey-100 cursor-pointer opacity-90 hover:opacity-100 hover:text-blue-600",children:A(e.id)?a.jsx(Dt,{size:19}):a.jsxs(a.Fragment,{children:[a.jsx(Dt,{size:19,className:"mr-1"}),j("Done",{ns:"common"})]})})]})]})]})]})}const L2=f.memo(yF);function dxe({board:e,isDragPreview:t,isDark:n,isSubBoard:r,isHistoryDragActive:s,dragOverBoardId:o,panelHeight:i,currentTabLayout:c,selectedItemIds:u,showDetailsItem:h,setShowDetailsItem:p,order:m,isLastBoard:x,setSelectedItemId:C}){return a.jsx(cxe,{defaultSize:20,isCollapsible:!1,minSize:10,order:m,hasResizeHandle:!t,isLastPanel:x,children:a.jsx(L2,{board:e,boardColor:e.color,order:m,panelHeight:i,isHistoryDragActive:s,dragOverBoardId:o,currentTabLayout:c,isSubBoard:r,selectedItemIds:u,setSelectedItemId:C,showDetailsItem:h,setShowDetailsItem:p,isDark:n,isDragPreview:t},e.id)})}const uxe=f.memo(dxe);function hxe({children:e}){return e}function pxe(e,t){const n=e.length,r=Math.ceil(n/t),s=Array.from({length:t},()=>[]);return e.forEach((o,i)=>{const c=Math.min(Math.floor(i/r),t-1);s[c].push(o)}),s}var Qo=(e=>(e.FOLDER="folder",e.SEPARATOR="separator",e.ITEM="item",e.DISABLED="disabled",e))(Qo||{}),Mi=(e=>(e.TAB="tab",e.BOARD="board",e.CLIP="clip",e))(Mi||{});function mxe(e){return a.jsx("svg",{viewBox:"0 0 25 25",className:e.className,xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.2626 3.26045C7.38219 2.13044 8.33828 1.25 9.5 1.25H14.5C15.6617 1.25 16.6178 2.13044 16.7374 3.26045C17.5005 3.27599 18.1603 3.31546 18.7236 3.41895C19.4816 3.55818 20.1267 3.82342 20.6517 4.34835C21.2536 4.95027 21.5125 5.70814 21.6335 6.60825C21.75 7.47522 21.75 8.57754 21.75 9.94513V16.0549C21.75 17.4225 21.75 18.5248 21.6335 19.3918C21.5125 20.2919 21.2536 21.0497 20.6517 21.6517C20.0497 22.2536 19.2919 22.5125 18.3918 22.6335C17.5248 22.75 16.4225 22.75 15.0549 22.75H8.94513C7.57754 22.75 6.47522 22.75 5.60825 22.6335C4.70814 22.5125 3.95027 22.2536 3.34835 21.6517C2.74643 21.0497 2.48754 20.2919 2.36652 19.3918C2.24996 18.5248 2.24998 17.4225 2.25 16.0549V9.94513C2.24998 8.57754 2.24996 7.47522 2.36652 6.60825C2.48754 5.70814 2.74643 4.95027 3.34835 4.34835C3.87328 3.82342 4.51835 3.55818 5.27635 3.41895C5.83973 3.31546 6.49952 3.27599 7.2626 3.26045ZM7.26496 4.76087C6.54678 4.7762 5.99336 4.81234 5.54735 4.89426C4.98054 4.99838 4.65246 5.16556 4.40901 5.40901C4.13225 5.68577 3.9518 6.07435 3.85315 6.80812C3.75159 7.56347 3.75 8.56458 3.75 10V16C3.75 17.4354 3.75159 18.4365 3.85315 19.1919C3.9518 19.9257 4.13225 20.3142 4.40901 20.591C4.68577 20.8678 5.07435 21.0482 5.80812 21.1469C6.56347 21.2484 7.56458 21.25 9 21.25H15C16.4354 21.25 17.4365 21.2484 18.1919 21.1469C18.9257 21.0482 19.3142 20.8678 19.591 20.591C19.8678 20.3142 20.0482 19.9257 20.1469 19.1919C20.2484 18.4365 20.25 17.4354 20.25 16V10C20.25 8.56458 20.2484 7.56347 20.1469 6.80812C20.0482 6.07434 19.8678 5.68577 19.591 5.40901C19.3475 5.16556 19.0195 4.99838 18.4527 4.89426C18.0066 4.81234 17.4532 4.7762 16.735 4.76087C16.6058 5.88062 15.6544 6.75 14.5 6.75H9.5C8.34559 6.75 7.39424 5.88062 7.26496 4.76087ZM9.5 2.75C9.08579 2.75 8.75 3.08579 8.75 3.5V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H14.5C14.9142 5.25 15.25 4.91421 15.25 4.5V3.5C15.25 3.08579 14.9142 2.75 14.5 2.75H9.5ZM6.25 10.5C6.25 10.0858 6.58579 9.75 7 9.75H17C17.4142 9.75 17.75 10.0858 17.75 10.5C17.75 10.9142 17.4142 11.25 17 11.25H7C6.58579 11.25 6.25 10.9142 6.25 10.5ZM7.25 14C7.25 13.5858 7.58579 13.25 8 13.25H16C16.4142 13.25 16.75 13.5858 16.75 14C16.75 14.4142 16.4142 14.75 16 14.75H8C7.58579 14.75 7.25 14.4142 7.25 14ZM8.25 17.5C8.25 17.0858 8.58579 16.75 9 16.75H15C15.4142 16.75 15.75 17.0858 15.75 17.5C15.75 17.9142 15.4142 18.25 15 18.25H9C8.58579 18.25 8.25 17.9142 8.25 17.5Z",fill:"currentColor"})})}const fxe=({selectedItemIds:e,hasPinnedItemsInSelected:t,hasFavoriteItemsInSelected:n,setSelectedItemIds:r})=>{const{deleteItemsByIds:s}=ype(),{t:o}=wt(),[,,,i]=Vu({}),[,,c]=Bu({}),{updateItemByIds:u}=upe(),{copyPasteSequencePinnedDelay:h,setCopyPasteSequencePinnedDelay:p,copyPasteSequenceIsReversOrder:m,setCopyPasteSequenceIsReversOrder:x}=ut(Nr),{currentCollectionId:C}=ut(hr);return a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,className:"animate-in fade-in",children:a.jsxs(ye,{variant:"ghost",size:"mini",className:"ml-1 mr-0.5 px-1.5 py-1 w-[32px] h-[32px] bg-slate-100 dark:bg-slate-900/90 dark:hover:bg-slate-800 bg-opacity-80 text-secondary-foreground/50 cursor-pointer !mt-0 hover:bg-opacity-100 relative rounded-sm",children:[a.jsx(mxe,{className:"w-[24px]",lightingColor:"white"}),e.length>0&&a.jsx(it,{variant:"slate",className:"absolute left-[-12px] top-[-12px]",children:e.length})]})}),a.jsxs(Cn,{className:"w-52",sideOffset:10,align:"center",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:[a.jsxs(Oe,{disabled:e.length===0,onClick:()=>{r([])},children:[a.jsx($C,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:o("Deselect All",{ns:"common"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{disabled:e.length===0,onClick:async()=>{await c([...e]),r([])},children:[a.jsx(qa,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:o("Sequence Copy",{ns:"common"})})]}),a.jsxs(Oe,{disabled:e.length===0,onClick:async()=>{await i([...e]),r([])},children:[a.jsx(aa,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:o("Sequence Paste",{ns:"common"})})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsxs(fe,{className:"flex w-full",children:[a.jsx($se,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:o("Next Delay",{ns:"common"})}),a.jsxs(it,{variant:"slate",className:"ml-auto py-0 bg-slate-200 text-slate-500",children:[h,"s"]})]})}),a.jsxs(ya,{className:"w-48",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o("Sequence Next Delay",{ns:"common"})}),a.jsx(Kt,{checked:h===1,onSelect:b=>{b.preventDefault(),p(1)},children:a.jsxs(X,{children:["1 ",o("second",{ns:"common"})]})}),a.jsx(Kt,{checked:h===2,onSelect:b=>{b.preventDefault(),p(2)},children:a.jsxs(X,{children:["2 ",o("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:h===3,onSelect:b=>{b.preventDefault(),p(3)},children:a.jsxs(X,{children:["3 ",o("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:h===4,onSelect:b=>{b.preventDefault(),p(4)},children:a.jsxs(X,{children:["4 ",o("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:h===5,onSelect:b=>{b.preventDefault(),p(5)},children:a.jsxs(X,{children:["5 ",o("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:h===10,onSelect:b=>{b.preventDefault(),p(10)},children:a.jsxs(X,{children:["10 ",o("seconds",{ns:"common"})]})})]})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsxs(fe,{className:"flex w-full",children:[a.jsx(tse,{className:"mr-2 h-4 w-4"}),a.jsxs(X,{children:[o("Reverse Order",{ns:"common"}),"..."]}),a.jsx(it,{className:"ml-auto py-0 bg-slate-200 text-slate-500",variant:"slate",children:m?"Yes":"No"})]})}),a.jsxs(ya,{className:"w-48",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{children:o("Sequence Reverse Order",{ns:"common"})})}),a.jsx(Kt,{checked:!m,onSelect:b=>{b.preventDefault(),x(!1)},children:a.jsx(X,{children:o("No",{ns:"common"})})}),a.jsx(Kt,{checked:m,onSelect:b=>{b.preventDefault(),x(!0)},children:a.jsx(X,{children:o("Yes",{ns:"common"})})})]})]}),a.jsx(Yt,{}),a.jsxs(Oe,{onClick:()=>{u({updatedData:{isPinned:!0},itemIds:e}),r([])},children:[a.jsx(zl,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:o("Pin Selected",{ns:"common"})})]}),t&&a.jsxs(Oe,{onClick:()=>{u({updatedData:{isPinned:!1},itemIds:e}),r([])},children:[a.jsx(Iu,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:o("UnPin Selected",{ns:"common"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{onClick:()=>{u({updatedData:{isFavorite:!0},itemIds:e}),r([])},children:[a.jsx(Mu,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:o("Star Selected",{ns:"common"})})]}),n&&a.jsxs(Oe,{onClick:()=>{u({updatedData:{isFavorite:!1},itemIds:e}),r([])},children:[a.jsx(Ox,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:o("Remove Selected Star",{ns:"common"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{disabled:e.length===0,onClick:async b=>{Dl.value?(await s({itemIds:e,collectionId:C}),setTimeout(()=>{r([]),Dl.value=!1},400)):(b.preventDefault(),Dl.value=!0,setTimeout(()=>{Dl.value=!1},3e3))},children:[a.jsx(or,{className:"mr-2 h-4 w-4 ".concat(Dl.value?"text-red-500":"")}),a.jsxs(fe,{className:"text-red-400",children:[a.jsx(X,{className:"mr-1 ".concat(Dl.value?"!text-red-500":""),children:Dl.value?o("Click to Confirm",{ns:"common"}):o("Delete",{ns:"common"})}),e.length>0&&a.jsx(a.Fragment,{children:Dl.value?a.jsx(it,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:e.length}):a.jsx(it,{variant:"secondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:e.length})})]})]})]})]})};function gxe({tabId:e}){const{t}=wt();return e==null?null:a.jsx(kg,{children:a.jsxs(am,{children:[a.jsxs(Tt,{onClick:()=>{lo.value=!0},children:[t("Organize Layout",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(bae,{size:15})})]}),a.jsx(Zn,{}),a.jsxs(Tt,{onClick:()=>{_p.value=!0},children:[t("Edit Tabs",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(Vne,{size:15})})]})]})})}const{CLIP:vxe,TAB:xF,BOARD:yxe}=Mi;function bF({totalTabs:e,onCreateNewItemType:t,isFirstTab:n}){const{t:r}=wt(),s=Sm();return a.jsxs(Nn,{defaultOpen:n,modal:!1,children:[a.jsx(_n,{className:"mr-1.5 rounded-sm flex",asChild:!0,children:n?a.jsx(J,{className:"flex w-20 group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-800/50 text-slate-500 dark:border-slate-500 dark:text-slate-300 border-slate-300",children:a.jsx(Ir,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})}):a.jsx(ye,{variant:"ghost",size:"mini",className:"ml-1.5 mr-1 px-1 py-1 w-[30px] bg-slate-100 hover:bg-opacity-100 bg-opacity-80 dark:bg-gray-500/70 dark:hover:bg-slate-500 text-secondary-foreground/50 cursor-pointer !mt-0 flex",children:a.jsx(De,{text:"".concat(r("Add New",{ns:"contextMenus"})," ..."),isDisabled:n,delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Ir,{size:20})})})}),a.jsxs(Cn,{align:n?"center":"end",alignOffset:-28,sideOffset:n?12:8,children:[!n&&a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{t(vxe)},children:[a.jsx(KC,{size:16,className:"mr-2"}),a.jsx("span",{children:r("Add Clip",{ns:"contextMenus"})})]}),!n&&a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{t(yxe)},children:[a.jsx(ag,{size:16,className:"mr-2"}),a.jsx("span",{children:r("Add Board",{ns:"contextMenus"})})]}),n?a.jsxs(a.Fragment,{children:[a.jsx(Oe,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:r("Dashboard",{ns:"contextMenus"})}),a.jsx(Yt,{}),a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{t(xF)},children:[a.jsx(Op,{size:16,className:"mr-2"}),a.jsx("span",{children:r("Add First Tab",{ns:"contextMenus"})})]})]}):a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{!s&&e&&e>=2?Uc.value=!0:t(xF)},children:[a.jsx(Op,{size:16,className:"mr-2"}),a.jsx("span",{children:r("Add Tab",{ns:"contextMenus"})}),e&&e>=2&&a.jsx(eh,{})]})]})]})}const sh=1,i1=50;function xxe({tabs:e,selectedItemIds:t,setSelectedItemIds:n,pinnedItemIds:r,currentTab:s,setCurrentTab:o}){var M,L;const{clipboardHistory:i}=ut(Yi),{t:c}=wt(),{updateTabById:u}=rR(),h=f.useRef(null),p=f.useRef(null),m=He(!1),{updateMovedClips:x}=Tb();f.useEffect(()=>{Ua.value&&(Ua.value=null)},[]);const{createNewItem:C}=Mb(Gi.value===null),{currentCollectionId:b,clipItems:g}=ut(hr),k=(M=e.find(D=>D.tabId===s))==null?void 0:M.tabColor;async function j(D,P=null){if(Ua.value=D,D===Mi.BOARD){const A=Os(g,s,P?P==null?void 0:P.toString():null),B={name:c("New Board",{ns:"dashboard"}),isBoard:!0,tabId:s,showDescription:!0,color:k,borderWidth:0,parentId:P,collectionId:b,orderNumber:0},z=await C({item:B});A.sort(($,_)=>$.orderNumber-_.orderNumber).unshift({...B,id:z,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1,description:""});const R=A.map(($,_)=>({itemId:$.id,parentId:P,tabId:$.tabId,collectionId:b,orderNumber:_}));x({updatedMoveClips:R}),Su.value=z}else D===Mi.CLIP&&(Ua.value=D)}async function S(D,P=null){return new Promise(async(A,B)=>{var G,Z,F,V,q,ne,Q,ae,re,le,oe,ie,de,xe,je,Ee,Te,Me;P||B("No board id");const z=D?i.find(ze=>ze.historyId===D):null,R=z==null?void 0:z.isImage,$=(G=g.find(ze=>ze.itemId===P))==null?void 0:G.color,_={historyId:D,name:z!=null&&z.value?z.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():R?"".concat(c("Image size",{ns:"common"})," (").concat(z==null?void 0:z.imageWidth,"x").concat(z==null?void 0:z.imageHeight,")"):c("New Clip",{ns:"dashboard"}),isClip:!0,value:(Z=Cu.value)!=null?Z:"",description:null,detectedLanguage:(F=z==null?void 0:z.detectedLanguage)!=null?F:null,isImage:(V=z==null?void 0:z.isImage)!=null?V:!1,imageDataUrl:(q=z==null?void 0:z.imageDataUrl)!=null?q:null,imagePathFullRes:(ne=z==null?void 0:z.imagePathFullRes)!=null?ne:null,imageHeight:(Q=z==null?void 0:z.imageHeight)!=null?Q:null,imageWidth:(ae=z==null?void 0:z.imageWidth)!=null?ae:null,imagePreviewHeight:(re=z==null?void 0:z.imagePreviewHeight)!=null?re:null,isLink:(le=z==null?void 0:z.isLink)!=null?le:!1,links:(oe=z==null?void 0:z.links)!=null?oe:null,isImageData:(ie=z==null?void 0:z.isImageData)!=null?ie:!1,isMasked:(de=z==null?void 0:z.isMasked)!=null?de:!1,isVideo:(xe=z==null?void 0:z.isVideo)!=null?xe:!1,isCode:(je=z==null?void 0:z.isCode)!=null?je:!1,isText:(Ee=z==null?void 0:z.isText)!=null?Ee:!1,hasEmoji:(Te=z==null?void 0:z.hasEmoji)!=null?Te:!1,hasMaskedWords:(Me=z==null?void 0:z.hasMaskedWords)!=null?Me:!1,hasMultiLineCopy:!1,tabId:s,showDescription:!1,color:$,borderWidth:2,parentId:P,collectionId:b,createdAt:0,orderNumber:0},U=await C({item:_});Cu.value&&(Cu.value=null),Yc.value=P;const K=Os(g,s,P==null?void 0:P.toString());K.sort((ze,qe)=>ze.orderNumber-qe.orderNumber).unshift({..._,id:U,type:"clip"});const W=K.map((ze,qe)=>({itemId:ze.id,parentId:ze.parentId,tabId:ze.tabId,collectionId:b,orderNumber:qe}));setTimeout(async()=>{await x({updatedMoveClips:W}),A(U)},600)})}f.useEffect(()=>{async function D(){var A;let P=null;if(Gi.value&&!Yc.value){for(const B of(A=Tp.value)!=null?A:[null])P=await S(B,Gi.value);setTimeout(()=>{Yc.value=null,Gi.value=null,Tp.value=null,Cu.value=null,As.value=P},300)}}D()},[Gi.value]),f.useEffect(()=>{async function D(){await j(Mi.BOARD,q0.value),kx.value=!1,q0.value=null}(q0.value||kx.value)&&D()},[q0.value,kx.value]);const{tabLayoutSplit:E,tabLayout:N}=(L=e.find(D=>D.tabId===s))!=null?L:{},T=e.length===0&&!Ua.value&&!_p.value;return a.jsxs(a.Fragment,{children:[a.jsxs(Xi,{className:"flex ".concat(xu(k)," rounded-lg py-0 mx-1.5 ").concat(T?"flex-col items-center justify-center pb-2 mb-1":"mb-3 mr-3"),onValueChange:D=>{o(D)},value:s,children:[a.jsxs(nm,{onOpenChange:D=>{m.value=D},children:[a.jsxs(rm,{ref:p,className:"flex w-full",disabled:T,children:[!T&&a.jsx(fe,{className:"justify-start dashboard-tabs w-full",children:a.jsx(An,{style:{width:"97%"},children:_p.value?a.jsxs(Vo,{className:"bg-transparent pr-0.5",children:[e.map(({tabId:D,tabName:P,tabIsHidden:A,tabColor:B,tabOrderNumber:z})=>D&&!A&&a.jsx(bxe,{tabColor:B,tabId:D,tabName:P||"".concat(c("Tab",{ns:"dashboard"})," ").concat(z+1),currentTab:s},D)),Ua.value===Mi.TAB?a.jsx(wF,{newTabOrderNumber:e.length+1}):a.jsx(ye,{variant:"outline",size:"mini",title:c("Add a Tab",{ns:"dashboard"}),className:"px-1.5 ml-1 h-8 border-0 opacity-80 hover:opacity-100 hover:text-gray-500 dark:text-gray-200 bg-gray-100 dark:bg-gray-600",onClick:()=>{j(Mi.TAB)},children:a.jsx(Ir,{size:18})})]}):a.jsxs(Vo,{className:"bg-transparent pr-0.5",children:[e.map(({tabId:D,tabName:P,tabIsHidden:A,tabOrderNumber:B})=>D&&!A&&a.jsx(wxe,{tabId:D,currentTabColor:k!=null?k:"slate",tabOrderNumber:B,tabName:P||"Tab ".concat(B+1),currentTab:s},D)),Ua.value===Mi.TAB&&a.jsx(wF,{newTabOrderNumber:e.length+1})]})})}),a.jsx(J,{className:"flex flex-row p-1 !mt-0 mr-0.5",children:lo.value?a.jsxs(a.Fragment,{children:[E&&a.jsxs(fe,{className:"mr-2",children:[E>1&&a.jsx(it,{onClick:()=>{u({updatedTab:{tabLayoutSplit:E>3?1:E+1,tabId:s}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:a.jsx(X,{className:"font-mono text-slate-400 font-semibold",children:E})}),a.jsxs(ye,{variant:"light",title:c("Board Layout Split",{ns:"dashboard"}),onClick:()=>{u({updatedTab:{tabLayoutSplit:E>3?1:E+1,tabId:s}})},className:"px-1 py-2 bg-gray-50 dark:bg-slate-600/90 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 ".concat(E===4?"w-12":"w-8"," h-8"),children:[E===1&&a.jsx($ae,{size:18,className:"opacity-70"}),E===2&&a.jsx(rre,{size:18,className:"opacity-70"}),E===3&&a.jsx(are,{size:18,className:"opacity-70"}),E===4&&a.jsxs(a.Fragment,{children:[a.jsx(ZC,{size:18,className:"opacity-70"}),a.jsx(ZC,{size:18,className:"opacity-70 ml-[-2px]"})]})]})]}),a.jsxs(fe,{className:"mr-2",children:[a.jsx(it,{onClick:()=>{u({updatedTab:{tabLayoutSplit:E,tabLayout:N==="full"?"auto":N==="auto"||!N?"full":"auto",tabId:s}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:a.jsx(X,{className:"font-mono text-slate-400 font-semibold",children:N||"auto"})}),a.jsxs(ye,{variant:"light",title:c("Board Layout Height",{ns:"dashboard"}),onClick:()=>{u({updatedTab:{tabLayoutSplit:E,tabLayout:N==="full"||!N?"auto":N==="auto"?"full":"auto",tabId:s}})},className:"px-1 py-2 bg-gray-50 dark:bg-slate-600/90 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 w-8 h-8",children:[(N==="auto"||!N)&&a.jsx(fL,{size:18,className:"opacity-70"}),N==="full"&&a.jsx(Ya,{size:18,className:"opacity-70"})]})]}),a.jsxs(ye,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{lo.value=!1,Ll.value=null},children:[a.jsx(X,{className:"whitespace-nowrap",children:c("Done Organize",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:15})})]})]}):_p.value?a.jsxs(ye,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{_p.value=!1,Ll.value=null},children:[a.jsx(X,{className:"whitespace-nowrap",children:c("Done Edit Tabs",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:15})})]}):Ua.value===wo?a.jsxs(ye,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{Ua.value=null,Cu.value=null},children:[a.jsx(X,{className:"whitespace-nowrap",children:c("Done Create Clip",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:15})})]}):Y0.value!=null||_a.value!=null?a.jsxs(ye,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{Y0.value=null,_a.value=null},children:[a.jsx(X,{className:"whitespace-nowrap",children:c("Done Edit",{ns:"dashboard"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:15})})]}):a.jsxs(a.Fragment,{children:[t.length>0&&a.jsx(J,{className:"animate-in fade-in duration-300",children:a.jsx(fxe,{selectedItemIds:t,hasPinnedItemsInSelected:t.some(D=>r.includes(D)),hasFavoriteItemsInSelected:t.some(D=>{var P;return(P=g.find(A=>A.itemId===D))==null?void 0:P.isFavorite}),setSelectedItemIds:n})}),e.length>0&&a.jsxs(a.Fragment,{children:[a.jsx(bF,{totalTabs:e.length,onCreateNewItemType:j,isFirstTab:!1}),a.jsx(ye,{variant:"ghost",size:"mini",className:"px-1 py-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex w-[30px]",onClick:()=>{var A,B,z;const D=(A=h==null?void 0:h.current)==null?void 0:A.getBoundingClientRect().x,P=(B=h==null?void 0:h.current)==null?void 0:B.getBoundingClientRect().y;(z=p==null?void 0:p.current)==null||z.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:D&&D+20,clientY:P&&P+20}))},ref:h,children:a.jsx(De,{text:c("Tabs Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(bi,{size:20})})})]})]})})]}),a.jsx(gxe,{tabId:s})]}),T&&a.jsx(bF,{onCreateNewItemType:j,isFirstTab:!0})]}),T&&a.jsx(X,{className:"text-sm mt-2 !text-slate-500 items-center justify-center mx-1.5 mr-3",children:c("Create Tab",{ns:"dashboard"})})]})}function wF({newTabOrderNumber:e}){const{t}=wt(),{createNewTab:n}=kpe(),{currentCollectionId:r}=ut(hr),s=He(!1),o=He(""),i=He(null);return a.jsxs(fe,{className:"ml-1.5",children:[a.jsx(J,{className:"w-[22px] mr-1",children:a.jsx(i2,{color:i.value,type:il,itemId:null,onColorChange:c=>{i.value=c}})}),a.jsx(De,{open:s.value,text:o.value.length<=sh?t("Too short",{ns:"dashboard"}):t("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:a.jsx(Gt,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[140px]",placeholder:t("Enter tab name",{ns:"dashboard"}),onKeyDown:async c=>{c.stopPropagation(),c.key==="Enter"&&(o.value.length<=sh||o.value.length>i1)?s.value=!0:c.key==="Enter"&&await n({tab:{tabName:o.value,tabColor:i.value,collectionId:r,tabOrderNumber:e}})},value:o.value,onChange:c=>{(s.value&&c.target.value.length>sh&&c.target.value.length<=i1||s.value&&c.target.value.length===0)&&(s.value=!1),o.value=c.target.value}})}),a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:async()=>{s.value||await n({tab:{tabName:o.value,tabColor:i.value,collectionId:r,tabOrderNumber:e}})},children:a.jsx(De,{text:t("Create tab",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Dt,{size:18})})}),a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Ua.value=null},children:a.jsx(De,{text:t("Cancel",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Rn,{size:18})})})]})}function bxe({tabId:e,tabName:t,tabColor:n,currentTab:r}){const{t:s}=wt(),o=He(!1),i=He(""),c=He(!1);if(!t)return null;f.useEffect(()=>{c.value&&(c.value=!1)},[r]);const u=He(!1),h=He(!1),{tabHasBoards:p,setCurrentTab:m}=ut(hr),{deleteItemById:x}=jpe(),{updateTabById:C}=rR();return a.jsx(fe,{className:"inline-flex items-center whitespace-nowrap rounded-sm px-1.5 pr-2 ".concat(c.value?"":"py-1.5"," ").concat(r===e&&!c.value?"bg-white dark:bg-gray-900/60":""," ").concat(h.value?"bg-red-100/80 dark:bg-red-900/70":""," ").concat(u.value?"bg-yellow-100/80 dark:bg-yellow-900/70":""," text-sm font-medium ring-offset-background transition-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:pointer-events-none disabled:opacity-50 justify-start max-w-[260px]"),children:c.value?a.jsxs(a.Fragment,{children:[a.jsx(De,{open:o.value,asChild:!0,text:i.value.length<=sh?s("Too short",{ns:"dashboard"}):s("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:a.jsx(Gt,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[120px]",placeholder:s("Enter tab name",{ns:"dashboard"}),onKeyDown:async b=>{b.stopPropagation(),b.key==="Escape"?c.value=!1:b.key==="Enter"&&(i.value.length<=sh||i.value.length>i1)?o.value=!0:b.key==="Enter"&&(await C({updatedTab:{tabName:i.value,tabId:e}}),setTimeout(()=>{c.value=!1},200))},defaultValue:t,onChange:b=>{o.value&&b.target.value.length>sh&&b.target.value.length<=i1||o.value&&b.target.value.length===0?o.value=!1:(b.target.value.length<=sh||b.target.value.length>i1)&&(o.value=!0),i.value=b.target.value}})}),a.jsx(De,{text:s("Rename",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:async()=>{o.value||(await C({updatedTab:{tabName:i.value,tabId:e}}),setTimeout(()=>{c.value=!1},200))},children:a.jsx(Dt,{size:18})})})}),a.jsx(De,{text:s("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{c.value=!1},children:a.jsx(Rn,{size:18})})})})]}):a.jsxs(a.Fragment,{children:[a.jsx(i2,{color:n,itemId:e,onOpen:()=>{m(e)},updateById:C,type:il}),a.jsx(J,{className:"text-ellipsis overflow-hidden first-letter:uppercase border-dashed border-b border-gray-400",onClick:b=>{b.preventDefault(),b.stopPropagation,c.value=!0},title:t,children:t}),a.jsx(J,{onClick:()=>{c.value=!0},title:s("Edit tab name",{ns:"dashboard"}),className:"ml-0.5 pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-pointer relative opacity-80 hover:opacity-100",children:a.jsx(Pp,{size:14})}),a.jsxs(Qa,{defaultOpen:!1,open:h.value||u.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{className:"ml-0.5 pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-pointer opacity-70 hover:opacity-100 hover:text-red-500",title:s("Delete tab",{ns:"dashboard"}),onClick:()=>{p(e)?u.value=!0:h.value=!0},children:a.jsx(or,{size:14})})}),a.jsx(Da,{sideOffset:16,align:"center",className:"p-3 ".concat(u.value?"bg-amber-100 border-amber-200 dark:bg-yellow-800 dark:border-gray-900":"bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950"," w-60"),onEscapeKeyDown:()=>{h.value=!1,u.value=!1},onPointerDownOutside:()=>{h.value=!1,u.value=!1},children:u.value?a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{justify:"left",size:"md",weight:"bold",color:"waning",children:s("Tab is Not Empty",{ns:"dashboard"})}),a.jsx(mn,{h:1}),a.jsx(X,{color:"black",size:"sm",children:s("You'll need to clear this tab of all boards before it can be deleted.",{ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsx(ye,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{u.value=!1},children:s("Got it",{ns:"common"})})]}):h.value&&a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block",children:a.jsx(Ps,{i18nKey:"Are you sure you want to delete <strong>{{tabName}}</strong> tab?",values:{tabName:t},ns:"dashboard"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{h.value=!1},children:a.jsx("div",{children:s("Cancel",{ns:"common"})})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:async()=>{await x({tabId:e}),_p.value=!1,Ll.value=null},children:s("Delete Tab",{ns:"dashboard"})})]})]})})]})]})},e)}function wxe({tabId:e,tabName:t,currentTabColor:n}){const{setNodeRef:r,listeners:s,transform:o,transition:i,isDragging:c}=nC({id:e,animateLayoutChanges:()=>!1,data:{type:il,tabId:e}}),u={transition:i,transform:Ao.Translate.toString(o)},h=n!=="slate"?"dark:data-[state=active]:bg-".concat(n,"-700"):"dark:data-[state=active]:bg-slate-600";return a.jsx(br,{value:e,style:u,asChild:c,...lo.value?{}:s,ref:r,className:"".concat(h," data-[state=active]:bg-").concat(n,"-50 ").concat(c||Ol.value===e?"border-2 border-dashed border-blue-400 py-1":"transition-none"),children:a.jsxs(fe,{className:"justify-start max-w-[260px]",children:[a.jsx(J,{className:"text-ellipsis overflow-hidden first-letter:uppercase",title:t,children:t}),(lo.value||c)&&a.jsx(J,{...s,className:"pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-grab relative",children:c?a.jsx(YM,{size:14}):a.jsx(Nx,{size:14})})]})},e)}const ns="board",wo="clip",il="tab";function kxe({historyDragActive:e,isDark:t,dragOverBoardId:n}){var zt,Mn,Ce;P4();const{t:r}=wt(),{isShowPinned:s,setIsShowPinned:o}=ut(ra),[i,c]=f.useState(null),[u,h]=f.useState(null),[p,m]=f.useState(null),x=f.useRef(null),C=f.useRef(null),{updateTabs:b}=wpe(),{invalidateCollectionWithClips:g,isCollectionWithClipsLoadingFinished:k,isCollectionWithClipsLoading:j}=R4(),{updateMovedClips:S}=Tb(),{movePinnedClipUpDown:E}=bpe(),[,,,N]=Vu({}),[,,T]=Bu({}),[M,L]=f.useState([]),[D,P]=f.useState(!1),A=f.useRef(null),B=He(!1),z=He(!1),R=He(!1),$=f.useMemo(()=>{var Be;return C!=null&&C.current&&((Be=C==null?void 0:C.current)==null?void 0:Be.getSize())===0?!1:z.value||B.value},[B.value,z.value,C==null?void 0:C.current]),_=f.useMemo(()=>nn.value,[nn.value]),{createNewItem:U}=Mb(),{unPinAllClips:K}=xpe(),{updatePinnedClipsByIds:W}=nR(),{clipItems:G,pinnedClips:Z,tabs:F,tabsLoaded:V,setCurrentTab:q,setTabsByOrder:ne,currentTab:Q,setClipItemsDebounced:ae,setClipItems:re,currentCollectionId:le}=ut(hr),{copyPasteSequencePinnedDelay:oe,setCopyPasteSequencePinnedDelay:ie,copyPasteSequenceIsReversOrder:de,setCopyPasteSequenceIsReversOrder:xe}=ut(Nr),je=f.useMemo(()=>G.filter(({parentId:Be,isBoard:ke,tabId:Qe})=>Be===null&&ke&&Qe===Q).map(Be=>Be.itemId),[G]);f.useEffect(()=>{Z.length===0&&(B.value=!1,z.value=!1)},[Z]),f.useEffect(()=>{var Be,ke;Z.length>0?(Be=C==null?void 0:C.current)==null||Be.expand():(ke=C==null?void 0:C.current)==null||ke.collapse()},[Z,C]);const[Ee,Te]=f.useState(null),[Me,ze]=f.useState(null),qe=f.useCallback(gn,[Ee,Me,G]),Ye=f.useCallback(Be=>{L(ke=>ke.includes(Be)?ke.filter(Qe=>Qe!==Be):[...ke,Be])},[L]),Ve=zj(pp(I0,{activationConstraint:{tolerance:100,delay:600}}),pp(_0,{coordinateGetter:FS})),Lt=zj(pp(I0,{activationConstraint:{tolerance:10,delay:60}}),pp(_0,{coordinateGetter:FS})),$e=f.useMemo(()=>M.some(Be=>Z.some(ke=>ke.id===Be)),[M,Z]),st=f.useMemo(()=>G.length>0?Os(G,Q):[],[G,Q]),At={keyframes({transform:Be}){return D||Ol.value||u?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:Ao.Transform.toString(Be.initial)},{opacity:0,transform:Ao.Transform.toString({...Be.final})}]},easing:"ease-out",duration:D?0:300,sideEffects({active:Be,dragOverlay:ke}){Me||Ol.value||u?ke.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:hu.easing}):Be.node.animate([{opacity:0},{opacity:1}],{duration:hu.duration,easing:hu.easing})}},Qt=f.useMemo(()=>G.filter(({isClip:Be})=>Be).map(Be=>Be.itemId),[G,Me]),Vt=f.useCallback(Be=>{var ve;const ke=HK(Be),Qe=ke.length>0?ke:Wj(Be);let ge=Bj(Qe,"id");if(ge!=null){if(ge in Qt){const Ie=G.map(Ae=>Ae.parentId===ge&&Ae.itemId);Ie.length>0&&(ge=(ve=RK({...Be,droppableContainers:Be.droppableContainers.filter(Ae=>Ae.id!==ge&&Ie.includes(Ae.id))})[0])==null?void 0:ve.id)}return x.current=ge,[{id:ge}]}return x.current?[{id:x.current}]:[]},[Ee,Me,Qt,G]),_e=f.useMemo(()=>e?hxe:N9,[e]),{tabLayoutSplit:sn=1,tabLayout:Ht}=(zt=F.find(Be=>Be.tabId===Q))!=null?zt:{},kt=((Mn=A==null?void 0:A.current)==null?void 0:Mn.getSizePixels())||0,rn=((Ce=C==null?void 0:C.current)==null?void 0:Ce.getSizePixels())||0;return f.useEffect(()=>{if(vi.value||_a.value){const Be=_a.value||vi.value,ke=G.find(Qe=>Qe.itemId===Be);ke!=null&&ke.tabId&&q(ke.tabId),vi.value&&c(vi.value),setTimeout(()=>{vi.value=null},2e3)}},[vi.value,_a.value]),a.jsxs(_e,{sensors:lo.value?Lt:Ve,measuring:{droppable:{strategy:uu.Always}},collisionDetection:Vt,onDragStart:Zt,onDragCancel:()=>{P(!0),Te(null),ze(null),g(),setTimeout(()=>{P(!1)},300)},onDragEnd:Jt,onDragOver:qe,children:[a.jsx(tC,{items:je,strategy:()=>null,children:a.jsxs(g3,{autoSaveId:"ClipsDashboard",direction:"vertical",className:"flex pt-4",children:[s&&a.jsxs(a.Fragment,{children:[a.jsxs(Rx,{collapsible:!0,ref:C,defaultSize:6,id:"pinned-clips",order:1,minSize:6,maxSize:30,className:"flex flex-col ".concat(Me?u?"bg-orange-200/70 dark:bg-orange-600/70":"bg-orange-100 dark:bg-orange-500/70":"bg-orange-300/40 dark:bg-orange-700/40"," rounded-lg px-2 py-4 pt-3 mx-2 mr-3 relative"),children:[a.jsxs(O4,{id:"clips::pinnedzone",className:"w-full h-full",isActive:!!Me,children:[Me&&a.jsx(J,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1.5",children:a.jsx(J,{className:"border-2 ".concat(u?"border-orange-500 dark:border-orange-400":"border-slate-300/80 dark:border-slate-400/80"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:u?a.jsx(X,{className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 !font-medium animate-in fade-in duration-300 text-sm",children:r("Drop to Pin",{ns:"dashboard"})}):a.jsx(zl,{size:18,className:"text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 animate-in fade-in duration-300"})})}),a.jsx(sg,{disableWidth:!0,defaultHeight:rn-20,children:({height:Be})=>a.jsx(An,{style:{height:Be},onMouseEnter:()=>{B.value=!0},onMouseLeave:()=>{B.value=!1},onClick:()=>{B.value=!0},children:a.jsx(fe,{className:"flex flex-wrap justify-normal gap-2 items-start mt-3 mb-1 ml-1 relative ".concat(Me?"opacity-20":""),children:Z.map((ke,Qe)=>a.jsx(sE,{clip:ke,isDark:t,isDisabledPinnedMoveUp:Qe===0,isDisabledPinnedMoveDown:Qe===Z.length-1,onMovePinnedUpDown:ge=>{E(ge)},isShowDetails:p===ke.id,setShowDetailsItem:m,setSelectedItemId:Ye,isSelected:M.includes(ke.id),selectedOrder:M.indexOf(ke.id)+1,boardColor:"gray",isShowOrganizeLayoutValue:lo.value||R.value,isPinnedBoard:!0},ke.id))})})})]}),Z.length>0&&!Me&&a.jsxs(fe,{className:"justify-between absolute right-0 bottom-1 ".concat(R.value?"px-1":"px-2.5"," w-full"),onMouseEnter:()=>{B.value=!0},onMouseLeave:()=>{B.value=!1},onClick:()=>{B.value=!0},children:[s&&!R.value&&!lo.value&&a.jsxs(a.Fragment,{children:[a.jsxs(fe,{className:"animate-in fade-in duration-300 ".concat(e||u||!$?"opacity-0":""),children:[a.jsx(Yn,{className:"group text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 hover:bg-transparent dark:hover:bg-transparent pl-0.5 pr-1 pt-0 ",title:_?r("Sequence Paste",{ns:"common"}):r("Sequence Copy",{ns:"common"}),children:_?a.jsx(aa,{size:14,onClick:()=>{N(Z.map(Be=>Be.id))}}):a.jsx(qa,{size:14,onClick:()=>{T(Z.map(Be=>Be.id))}})}),a.jsxs(Nn,{onOpenChange:Be=>{z.value=Be},children:[a.jsx(_n,{asChild:!0,children:a.jsx(H3,{variant:"outline",title:r("Sequence Delay Next",{ns:"common"}),className:"bg-orange-300/20 border-orange-300/50 dark:bg-orange-900/70 dark:border-orange-800/50 border h-[18px] cursor-pointer px-1.5 ml-1",children:a.jsxs(X,{className:"font-mono !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent font-semibold",children:[oe,"s"]})})}),a.jsxs(Cn,{className:"w-44",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{size:"xs",children:r("Sequence Copy Paste",{ns:"common"})})}),a.jsx(Yt,{}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsxs(fe,{className:"flex w-full",children:[a.jsxs(X,{size:"xs",children:[r("Delay Next",{ns:"common"}),"..."]}),a.jsxs(it,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[oe,"s"]})]})}),a.jsxs(ya,{children:[a.jsx(Kt,{checked:oe===1,onSelect:()=>{ie(1)},children:a.jsxs(X,{size:"xs",children:["1 ",r("second",{ns:"common"})]})}),a.jsx(Kt,{checked:oe===2,onSelect:()=>{ie(2)},children:a.jsxs(X,{size:"xs",children:["2 ",r("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:oe===3,onSelect:()=>{ie(3)},children:a.jsxs(X,{size:"xs",children:["3 ",r("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:oe===4,onSelect:()=>{ie(4)},children:a.jsxs(X,{size:"xs",children:["4 ",r("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:oe===5,onSelect:()=>{ie(5)},children:a.jsxs(X,{size:"xs",children:["5 ",r("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:oe===10,onSelect:()=>{ie(10)},children:a.jsxs(X,{size:"xs",children:["10 ",r("seconds",{ns:"common"})]})})]})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsxs(fe,{className:"flex w-full",children:[a.jsxs(X,{size:"xs",children:[r("Reverse Order",{ns:"common"}),"..."]}),a.jsx(it,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:de?r("Yes",{ns:"common"}):r("No",{ns:"common"})})]})}),a.jsxs(ya,{children:[a.jsx(Kt,{checked:!de,onSelect:()=>{xe(!1)},children:a.jsx(X,{size:"xs",children:r("No",{ns:"common"})})}),a.jsx(Kt,{checked:de,onSelect:()=>{xe(!0)},children:a.jsx(X,{size:"xs",children:r("Yes",{ns:"common"})})})]})]})]})]})]}),a.jsxs(J,{className:"animate-in fade-in duration-300 ".concat(e||u||!$?"opacity-0":""),children:[a.jsx(Yn,{title:r("Reorder pinned",{ns:"common"}),onClick:()=>{R.value=!R.value},className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:a.jsx(YM,{size:15})}),a.jsx(Yn,{title:$e?r("Deselect pinned",{ns:"common"}):r("Select pinned",{ns:"common"}),onClick:()=>{const Be=M.filter(ke=>Z.some(Qe=>Qe.id===ke));L($e?M.filter(ke=>!Be.includes(ke)):M.concat(Z.map(ke=>ke.id)))},className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:a.jsx(fe,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:$e?a.jsx(Ix,{size:15}):a.jsx(QC,{size:17})})}),a.jsx(yP,{onOpen:Be=>{z.value=Be},onCancel:()=>{setTimeout(()=>{z.value=!1,B.value=!1},300)},onConfirm:()=>{K({})},buttonClassName:"group !text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]})]}),R.value&&a.jsxs(ye,{onClick:()=>{R.value=!1},className:"!text-orange-600 dark:!text-orange-300 bg-yellow-400 dark:bg-yellow-800 hover:bg-yellow-400/80 dark:hover:bg-yellow-700/80 px-2 pr-1 mr-0 rounded-sm py-0 h-5 flex items-center justify-center ml-auto",children:[a.jsx(X,{size:"xs",className:"!text-orange-600 dark:!text-orange-300 mr-1",children:r("Done Reorder",{ns:"common"})}),a.jsx(Dt,{size:15})]})]}),k&&!Me&&a.jsx(Yn,{title:r("Hide Pinned Board",{ns:"common"}),onClick:()=>{o(!1)},className:"hover:underline group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent absolute right-1 top-1.5 px-2 pr-1 rounded-sm",children:a.jsxs(fe,{className:"font-medium text-xs gap-1",children:[a.jsxs("span",{children:[Z.length>0?Z.length:r(" No",{ns:"common"})," ",r("Pinned",{ns:"common"})]}),a.jsx(Rn,{size:14})]})})]}),a.jsx(vF,{isVertical:!0})]}),!j&&V&&a.jsx(tC,{items:F.map(Be=>Be.tabId),disabled:e,strategy:ZG,children:a.jsx(xxe,{tabs:F,selectedItemIds:M,setSelectedItemIds:L,pinnedItemIds:Z.map(Be=>Be.id),currentTab:Q,setCurrentTab:q})}),a.jsx(Rx,{collapsible:!1,order:2,ref:A,id:"boards",children:kt>0&&a.jsx(sg,{disableWidth:!0,defaultHeight:kt-20,children:({height:Be})=>a.jsxs(An,{style:{height:Be},children:[st.reduce((ke,Qe,ge)=>{const ve=Math.floor(ge/sn);return ke[ve]||(ke[ve]=[]),ke[ve].push(Qe),ke},[]).map((ke,Qe)=>a.jsx(g3,{autoSaveId:"".concat(Q,"-panel-group-").concat(Qe),className:"mb-3",style:{height:Ht==="full"?Be-12:void 0},direction:"horizontal",children:ke.map((ge,ve)=>a.jsx(uxe,{board:ge,isDark:t,panelHeight:Be,isHistoryDragActive:e,dragOverBoardId:n,currentTabLayout:Ht==="full"?"full":"auto",order:ge.orderNumber,isLastBoard:ve===ke.length-1,showDetailsItem:i,setShowDetailsItem:c,selectedItemIds:M,setSelectedItemId:Ye},"".concat(Q,"-").concat(Qe,"-").concat(ve)))},"".concat(Q,"-").concat(Qe))),V&&!(st.length&&F.length)&&a.jsxs(a.Fragment,{children:[!st.length&&F.length>0&&a.jsx(fe,{className:"flex items-start justify-center w-full absolute top-4",style:{height:Be},children:a.jsxs(fe,{className:"flex-col items-center justify-center",children:[a.jsxs(Nn,{defaultOpen:!0,modal:!1,children:[a.jsx(_n,{className:"mr-1.5 rounded-sm",asChild:!0,children:a.jsx(J,{className:"flex w-20 group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-700 text-slate-500 dark:border-slate-500 dark:text-slate-300 border-slate-300",children:a.jsx(Ir,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),a.jsxs(Cn,{align:"center",sideOffset:8,children:[a.jsx(Oe,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:r("Dashboard",{ns:"dashboard"})}),a.jsx(Yt,{}),a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{kx.value=!0},children:[a.jsx(ag,{size:16,className:"mr-2"}),a.jsx("span",{children:r("Add First Board",{ns:"dashboard"})})]})]})]}),a.jsx(X,{className:"text-sm mt-4 !text-slate-500",children:r("Create Board",{ns:"dashboard"})})]})}),a.jsx(fe,{className:"flex items-center justify-center w-full h-full",style:{height:Be},children:a.jsx(X,{className:"animate-in fade-in duration-600 text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:F.length?r("No Boards",{ns:"dashboard"}):r("No Tabs or Boards",{ns:"dashboard"})})})]})]})})})]})}),a.jsx(Ac,{children:a.jsxs(L9,{dropAnimation:At,children:[Ee&&a.jsx(yF,{board:Ee,isDragPreview:!0,isDark:t,currentTabLayout:"auto",selectedItemIds:M,setSelectedItemId:Ye}),Me&&a.jsx(fF,{clip:Me,isDragPreview:!0,isDark:t})]})})]});function Zt(Be){if(!j2(Be.active))return;Ol.value&&(Ol.value=null);const ke=Be.active.data.current;(ke==null?void 0:ke.type)===ns?Te(ke.board):(ke==null?void 0:ke.type)===wo&&ze(ke.clip)}async function Jt(Be){var Ie,Ae,Ze,Je,ot;Te(null),ze(null),setTimeout(()=>{Ol.value=null},100);const{active:ke,over:Qe}=Be;if(!ke||!j2(ke))return;const ge=ke.id;if((ke==null?void 0:ke.id)===u&&setTimeout(async()=>{h(null),await W({itemIds:[ke.id],isPinned:!0})},300),((Ie=ke.data.current)==null?void 0:Ie.type)===il&&((Ae=Qe==null?void 0:Qe.data.current)==null?void 0:Ae.type)===il){const at=Qe==null?void 0:Qe.id,Ge=F.findIndex(({tabId:St})=>St===ge),yt=F.findIndex(({tabId:St})=>St===at),Nt=Kr(F,Ge,yt),bt=new Map(Nt.map((St,Rt)=>[St.tabId,Rt])),$t=F.map(St=>{const Rt=bt.get(St.tabId);return Rt!==void 0&&(St.tabOrderNumber=Rt),St});ne($t),await b({updatedTabs:$t});return}if(((Ze=Qe==null?void 0:Qe.data.current)==null?void 0:Ze.type)===il){const at=Qe.id,Ge=G.find(Nt=>Nt.itemId===ge&&Nt.isBoard),yt=G.find(Nt=>Nt.itemId===ge&&Nt.isClip);if((Ge==null?void 0:Ge.tabId)===at||(yt==null?void 0:yt.tabId)===at||!at)return;if(Ge){const Nt=Qe.id.toString(),bt=Os(G,Q).find(mt=>mt.id===ge),$t=bt?zS(bt):[],St=G.filter(mt=>mt.tabId===Nt&&mt.isBoard&&mt.parentId===null).sort((mt,Et)=>mt.orderNumber-Et.orderNumber);St.unshift(Ge);const Rt=new Map(St.map((mt,Et)=>[mt.itemId,Et])),hn=new Map($t==null?void 0:$t.map(mt=>[mt,!0])),Xt=G.map(mt=>{const Et=Rt.get(mt.itemId);return Et!==void 0?{...mt,orderNumber:Et,tabId:Nt,parentId:null}:hn!=null&&hn.has(mt.itemId)?{...mt,tabId:Nt}:mt});re(Xt);const Ln=Xt.filter(mt=>(mt.parentId===null||mt.parentId===ge||hn.has(mt.parentId))&&mt.tabId===Nt).map(mt=>({itemId:mt.itemId,parentId:mt.parentId,tabId:mt.tabId,collectionId:le,orderNumber:mt.orderNumber}));S({updatedMoveClips:Ln})}else if(yt){const Nt=Qe.id.toString(),bt=Os(G,Nt);let $t=(Je=bt.find(St=>St.name===G0))==null?void 0:Je.id;if(!$t){const St=(ot=F.find(Ln=>Ln.tabId===Nt))==null?void 0:ot.tabColor,Rt={name:G0,isBoard:!0,tabId:Nt,color:St,description:BM,parentId:null,collectionId:le,orderNumber:0},hn=await U({item:Rt});bt.sort((Ln,mt)=>Ln.orderNumber-mt.orderNumber).unshift({...Rt,id:hn,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1});const Xt=bt.map((Ln,mt)=>({itemId:Ln.id,parentId:null,tabId:Ln.tabId,collectionId:le,orderNumber:mt}));S({updatedMoveClips:Xt}),$t=hn}if($t){const St=$t.toString(),Rt=Nt.toString(),hn=G.filter(Et=>Et.parentId===St&&Et.tabId===Rt).sort((Et,un)=>Et.orderNumber-un.orderNumber);hn.unshift(yt);const Xt=new Map(hn.map((Et,un)=>[Et.itemId,un])),Ln=G.map(Et=>{const un=Xt.get(Et.itemId);return un!==void 0?{...Et,orderNumber:un,tabId:Rt,parentId:St}:Et});re(Ln);const mt=Ln.filter(Et=>Et.parentId===St).map(Et=>({itemId:Et.itemId,parentId:St,tabId:Rt,collectionId:le,orderNumber:Et.orderNumber}));S({updatedMoveClips:mt})}}return}let ve=null;for(let at=0;at<G.length;at++)if(G[at].itemId===ge){ve=G[at];break}if(ve){const at=G.filter(Ge=>Ge.parentId===(ve==null?void 0:ve.parentId)).map(Ge=>({itemId:Ge.itemId,parentId:Ge.parentId,tabId:Ge.tabId,collectionId:le,orderNumber:Ge.orderNumber}));S({updatedMoveClips:at})}}function gn(Be){var hn,Xt,Ln;const{active:ke,over:Qe}=Be;if(!Qe)return;const ge=(Qe==null?void 0:Qe.id)==="clips::pinnedzone";ke!=null&&ke.id&&ge?h(ke.id):ge||h(null),((hn=Qe.data.current)==null?void 0:hn.type)===il&&((Xt=ke==null?void 0:ke.data.current)==null?void 0:Xt.type)!==il?(((Ln=G.find(({itemId:mt})=>mt===ke.id))==null?void 0:Ln.tabId)!==Qe.id||Q!==Qe.id)&&(Ol.value=Qe.id.toString()):Ol.value&&(Ol.value=null);const ve=ke.id,Ie=Qe.id;if(ve===Ie||!j2(ke)||!j2(Qe))return;const Ae=ke.data.current,Ze=Qe.data.current,Je=(Ae==null?void 0:Ae.type)===wo,ot=(Ae==null?void 0:Ae.type)===ns,at=(Ze==null?void 0:Ze.type)===wo;if(!Je&&!ot)return;if(Je&&at){const mt=Ae.clip.parentId,Et=G.filter(({parentId:We,isClip:ht})=>mt==We&&ht).sort((We,ht)=>We.orderNumber-ht.orderNumber),un=Et.findIndex(({itemId:We})=>We===ve),en=Et.findIndex(({itemId:We})=>We===Ie),pe=Et[un],Xe=Et[en];if(pe&&Xe&&pe.parentId===Xe.parentId){const We=Kr(Et,un,en),ht=new Map(We.map((Bt,In)=>[Bt.itemId,In])),on=G.map(Bt=>{const In=ht.get(Bt.itemId);return In!==void 0&&(Bt.orderNumber=In),Bt});ae(on);return}}else if(ot&&at){const mt=Ze.clip.parentId,Et=G.filter(({parentId:We})=>mt==We).sort((We,ht)=>We.orderNumber-ht.orderNumber),un=Et.findIndex(({itemId:We})=>We===ve),en=Et.findIndex(({itemId:We})=>We===Ie),pe=Et[un],Xe=Et[en];if(pe&&Xe&&pe.parentId===Xe.parentId){const We=Kr(Et,un,en),ht=new Map(We.map((Bt,In)=>[Bt.itemId,In])),on=G.map(Bt=>{const In=ht.get(Bt.itemId);return In!==void 0&&(Bt.orderNumber=In),Bt});ae(on);return}}const Ge=G.find(({itemId:mt,isBoard:Et})=>mt===Ie&&Et),yt=G.find(({itemId:mt,isClip:Et})=>mt===Ie&&Et),Nt=Ge==null?void 0:Ge.itemId,bt=yt==null?void 0:yt.itemId,$t=G.findIndex(({itemId:mt})=>mt===ve),St=G[$t],Rt=ot?G[$t]:null;if(Nt&&St.parentId!==Nt&&!ot){const mt=G.filter(({parentId:en})=>Nt==en).sort((en,pe)=>en.orderNumber-pe.orderNumber);St.parentId=Nt,mt.unshift(St);const Et=new Map(mt.map((en,pe)=>[en.itemId,pe])),un=G.map(en=>{const pe=Et.get(en.itemId);return pe!==void 0?{...en,orderNumber:pe}:en});ae(un);return}if(bt&&(yt!=null&&yt.parentId)&&St.parentId!==yt.parentId&&!ot){St.parentId=yt.parentId,St.orderNumber=yt.orderNumber;const mt=G.filter(({parentId:pe})=>yt.parentId==pe).sort((pe,Xe)=>pe.orderNumber-Xe.orderNumber);mt.unshift(St);const Et=Kr(mt,0,yt.orderNumber),un=new Map(Et.map((pe,Xe)=>[pe.itemId,Xe])),en=G.map(pe=>{const Xe=un.get(pe.itemId);return Xe!==void 0?{...pe,orderNumber:Xe}:pe});ae(en);return}if(Nt&&ot&&Rt&&Rt.parentId!==Nt&&Ae.isSubBoard){Rt.parentId=Nt;const mt=G.filter(({parentId:pe})=>Ge.parentId==pe).sort((pe,Xe)=>pe.orderNumber-Xe.orderNumber);mt.unshift(Rt);const Et=Kr(mt,0,Ge.orderNumber),un=new Map(Et.map((pe,Xe)=>[pe.itemId,Xe])),en=G.map(pe=>{const Xe=un.get(pe.itemId);return Xe!==void 0?{...pe,orderNumber:Xe}:pe});ae(en)}else if(Nt&&ot&&!Ae.isSubBoard&&!(Ze!=null&&Ze.isSubBoard)){const mt=G.filter(({parentId:We,isBoard:ht,tabId:on})=>(Ge==null?void 0:Ge.parentId)==We&&ht&&on===Q).sort((We,ht)=>We.orderNumber-ht.orderNumber),Et=mt.findIndex(({itemId:We})=>We===(Rt==null?void 0:Rt.itemId)),un=mt.findIndex(({itemId:We})=>We===Nt),en=Kr(mt,Et,un),pe=new Map(en.map((We,ht)=>[We.itemId,ht])),Xe=G.map(We=>{const ht=pe.get(We.itemId);return ht!==void 0?{...We,orderNumber:ht}:We});ae(Xe)}}}const jxe=f.memo(kxe);function kF(e,t,n,r=!0,s=!1){const o=m=>n.filter(x=>x.tabId===m),i=m=>e.filter(x=>{var g;if(!(x.parentId===m&&x.isClip))return!1;const C=x.name.toLowerCase().includes(t.toLowerCase()),b=!r&&((g=x.value)==null?void 0:g.toLowerCase().includes(t.toLowerCase()));return C||b}).map(x=>({...x,type:wo,id:x.itemId.toString()})),c=m=>e.filter(x=>x.parentId===m&&x.isClip).map(x=>({...x,type:wo,id:x.itemId.toString()})).sort((x,C)=>x.orderNumber-C.orderNumber),u=e.filter(m=>m.isBoard);let h=0;const p=s?u.filter(m=>m.name.toLowerCase().includes(t.toLowerCase())).map(m=>{var C;const x=c(m.itemId.toString());return{...m,type:ns,showDescription:!1,tabName:(C=o(m.tabId)[0])==null?void 0:C.tabName,id:m.itemId.toString(),children:x}}):u.map(m=>{var C;const x=i(m.itemId.toString());return x.length>0?(h=h+x.length,{...m,type:ns,showDescription:!1,tabName:(C=o(m.tabId)[0])==null?void 0:C.tabName,id:m.itemId.toString(),children:x}):null}).filter(m=>m!==null);return{results:p,count:s?p.length:h}}function l1(e,t,n=!1){const r=s=>e.map(({itemId:o,name:i,parentId:c,orderNumber:u,isActive:h,isDisabled:p,isDeleted:m,isClip:x,isFolder:C,isSeparator:b})=>({id:o,name:i,parentId:c,orderNumber:u,isActive:h,isDisabled:p,isDeleted:m,isClip:x,isFolder:C,isSeparator:b,children:[]})).filter(o=>o.parentId===s).filter(o=>o.isActive||n&&!o.isActive).sort((o,i)=>o.orderNumber-i.orderNumber).map(o=>(o.children=r(o.id),o.children.length===0&&!o.isFolder&&delete o.children,o));return r(t||null)}function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lE.apply(this,arguments)}var jF=["shift","alt","meta","mod","ctrl"],Cxe={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function wd(e){return(Cxe[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Sxe(e){return jF.includes(e)}function cE(e,t){return t===void 0&&(t=","),e.split(t)}function dE(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(i){return wd(i)}),s={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},o=r.filter(function(i){return!jF.includes(i)});return lE({},s,{keys:o,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&CF([wd(e.key),wd(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&SF([wd(e.key),wd(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){kd.clear()})})();var kd=new Set;function uE(e){return Array.isArray(e)}function Exe(e,t){t===void 0&&(t=",");var n=uE(e)?e:e.split(t);return n.every(function(r){return kd.has(r.trim().toLowerCase())})}function CF(e){var t=Array.isArray(e)?e:[e];kd.has("meta")&&kd.forEach(function(n){return!Sxe(n)&&kd.delete(n.toLowerCase())}),t.forEach(function(n){return kd.add(n.toLowerCase())})}function SF(e){var t=Array.isArray(e)?e:[e];e==="meta"?kd.clear():t.forEach(function(n){return kd.delete(n.toLowerCase())})}function Nxe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function _xe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function Ixe(e){return EF(e,["input","textarea","select"])}function EF(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return uE(t)?!!(r&&t&&t.some(function(s){return s.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function Txe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var Mxe=function(e,t,n){n===void 0&&(n=!1);var r=t.alt,s=t.meta,o=t.mod,i=t.shift,c=t.ctrl,u=t.keys,h=e.key,p=e.code,m=e.ctrlKey,x=e.metaKey,C=e.shiftKey,b=e.altKey,g=wd(p),k=h.toLowerCase();if(!n){if(r===!b&&k!=="alt"||i===!C&&k!=="shift")return!1;if(o){if(!x&&!m)return!1}else if(s===!x&&k!=="meta"&&k!=="os"||c===!m&&k!=="ctrl"&&k!=="control")return!1}return u&&u.length===1&&(u.includes(k)||u.includes(g))?!0:u?Exe(u):!u},Lxe=f.createContext(void 0),Dxe=function(){return f.useContext(Lxe)};function NF(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&NF(e[r],t[r])},!0):e===t}var Oxe=f.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Pxe=function(){return f.useContext(Oxe)};function Rxe(e){var t=f.useRef(void 0);return NF(t.current,e)||(t.current=e),t.current}var _F=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Axe=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Oa(e,t,n,r){var s=f.useRef(null),o=f.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,c=uE(e)?e.join(i==null?void 0:i.splitKey):e,u=n instanceof Array?n:r instanceof Array?r:void 0,h=f.useCallback(t,u!=null?u:[]),p=f.useRef(h);u?p.current=h:p.current=t;var m=Rxe(i),x=Pxe(),C=x.enabledScopes,b=Dxe();return Axe(function(){if(!((m==null?void 0:m.enabled)===!1||!Txe(C,m==null?void 0:m.scopes))){var g=function(E,N){var T;if(N===void 0&&(N=!1),!(Ixe(E)&&!EF(E,m==null?void 0:m.enableOnFormTags))&&!(m!=null&&m.ignoreEventWhen!=null&&m.ignoreEventWhen(E))){if(s.current!==null&&document.activeElement!==s.current&&!s.current.contains(document.activeElement)){_F(E);return}(T=E.target)!=null&&T.isContentEditable&&!(m!=null&&m.enableOnContentEditable)||cE(c,m==null?void 0:m.splitKey).forEach(function(M){var L,D=dE(M,m==null?void 0:m.combinationKey);if(Mxe(E,D,m==null?void 0:m.ignoreModifiers)||(L=D.keys)!=null&&L.includes("*")){if(N&&o.current)return;if(Nxe(E,D,m==null?void 0:m.preventDefault),!_xe(E,D,m==null?void 0:m.enabled)){_F(E);return}p.current(E,D),N||(o.current=!0)}})}},k=function(E){E.key!==void 0&&(CF(wd(E.code)),((m==null?void 0:m.keydown)===void 0&&(m==null?void 0:m.keyup)!==!0||m!=null&&m.keydown)&&g(E))},j=function(E){E.key!==void 0&&(SF(wd(E.code)),o.current=!1,m!=null&&m.keyup&&g(E,!0))},S=s.current||(i==null?void 0:i.document)||document;return S.addEventListener("keyup",j),S.addEventListener("keydown",k),b&&cE(c,m==null?void 0:m.splitKey).forEach(function(E){return b.addHotkey(dE(E,m==null?void 0:m.combinationKey,m==null?void 0:m.description))}),function(){S.removeEventListener("keyup",j),S.removeEventListener("keydown",k),b&&cE(c,m==null?void 0:m.splitKey).forEach(function(E){return b.removeHotkey(dE(E,m==null?void 0:m.combinationKey,m==null?void 0:m.description))})}}},[c,m,C]),s}function zxe({id:e,isSelected:t,deletingMenuItemIds:n,itemParentId:r,isDisabled:s,isImage:o,isClip:i,isSeparator:c,isActive:u,isFolder:h,isOpen:p,setOpenItemId:m,itemOrderNumber:x,hasChildren:C,deselectItemById:b,setSelectedItemIds:g,selectItemById:k}){const{t:j}=wt(),{duplicateMenuItem:S}=fpe(),{deleteMenuItemById:E}=tR(),{updateMenuItemById:N}=Eg(),{updateMovedMenuItems:T}=A4(),M=ts(),{menuItems:L,currentCollectionId:D}=ut(hr);return a.jsx(kg,{children:a.jsxs(am,{className:"w-[150px]",children:[u?i?a.jsxs(a.Fragment,{children:[a.jsx(Tt,{disabled:!0,className:"flex justify-center py-0",children:j("Link To Clip",{ns:"contextMenus"})}),a.jsx(Zn,{})]}):h?a.jsxs(a.Fragment,{children:[a.jsx(Tt,{disabled:!0,className:"flex justify-center py-0",children:j("Submenu",{ns:"contextMenus"})}),a.jsx(Zn,{})]}):c?a.jsxs(a.Fragment,{children:[a.jsx(Tt,{disabled:!0,className:"flex justify-center py-0",children:j("Separator",{ns:"contextMenus"})}),a.jsx(Zn,{})]}):a.jsxs(a.Fragment,{children:[a.jsx(Tt,{disabled:!0,className:"flex justify-center py-0",children:j("Menu",{ns:"contextMenus"})}),a.jsx(Zn,{})]}):a.jsxs(a.Fragment,{children:[a.jsx(Tt,{disabled:!0,className:"flex justify-center py-0",children:j("Menu is Not Active",{ns:"contextMenus"})}),a.jsx(Zn,{}),a.jsxs(Tt,{onClick:()=>{N({updatedItem:{itemId:e,isActive:!0}})},children:[j("Activate",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Dp,{size:15,className:"ml-auto"})})]}),a.jsx(Zn,{})]}),t?a.jsxs(Tt,{onClick:()=>{b==null||b(e)},children:[j("Deselect",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(XC,{size:15})})]}):a.jsxs(Tt,{onClick:()=>{k==null||k(e)},children:[j("Select",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(hs,{size:15})})]}),a.jsx(Zn,{}),fa.value!==e&&!i&&a.jsxs(Tt,{disabled:!u||Fs.value,onClick:()=>{fa.value=e,xi.value=!0},children:[j("Edit Label",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Pp,{size:14})})]}),!i&&!h&&fa.value!==e&&a.jsxs(Tt,{disabled:!u||Fs.value,onClick:()=>{fa.value=e},children:[o?j("Edit Image",{ns:"contextMenus"}):j("Edit Value",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Sx,{size:15})})]}),i&&a.jsxs(a.Fragment,{children:[a.jsxs(Tt,{disabled:!u||Fs.value,onClick:()=>{_a.value=e,vi.value=e,M("/history",{replace:!0})},children:[j("Edit Clip",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Sx,{size:15})})]}),a.jsxs(Tt,{disabled:!u||Fs.value,onClick:()=>{vi.value=e,M("/history",{replace:!0})},children:[j("Locate Clip",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Tx,{size:15})})]})]}),a.jsx(Zn,{}),a.jsxs(Tt,{disabled:!u,onClick:async()=>{g&&g([e]),Fs.value=!0},children:[j("Add New Item",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(pL,{size:15})})]}),!i&&a.jsxs(Tt,{disabled:!u,onClick:async()=>{var z,R;if(!D)return;const P=await S({itemId:e,parentId:r!=null?r:null,orderNumber:x+2,collectionId:D}),A=l1(L);A.unshift({name:j("Copy of ",{ns:"common"})+((z=A.find($=>$.id===e))==null?void 0:z.name),parentId:r!=null?r:null,orderNumber:x+2,id:P});const B=(R=LC(A,r!=null?r:null,[P],x+2))==null?void 0:R.map(({id:$,parentId:_,orderNumber:U})=>({itemId:$,parentId:_,tabId:null,collectionId:D,orderNumber:U}));T({updatedMoveMenuItems:B})},children:[j("Duplicate",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(BC,{size:15})})]}),a.jsx(Zn,{}),s?a.jsxs(Tt,{disabled:!u,onClick:()=>{N({updatedItem:{itemId:e,isDisabled:!1}})},children:[j("Make Enabled",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(iL,{size:15,className:"ml-auto"})})]}):a.jsxs(Tt,{disabled:!u,onClick:()=>{N({updatedItem:{itemId:e,isDisabled:!0}}),p&&(m==null||m(null))},children:[j("Make Disabled",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(Rp,{size:15,className:"ml-auto"})})]}),a.jsx(Zn,{}),u&&a.jsxs(Tt,{onClick:()=>{N({updatedItem:{itemId:e,isActive:!1}}),p&&(m==null||m(null))},children:[j("Make Inactive",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(eg,{size:15,className:"ml-auto"})})]}),a.jsxs(J,{className:"group",children:[a.jsxs(Tt,{className:Zc.value===e?"!bg-red-100 dark:!bg-red-900":"",disabled:C,onClick:P=>{var A,B;Zc.value===e?(E({itemId:e,collectionId:D}),n.value=(B=(A=n.value)==null?void 0:A.filter(z=>z!==e))!=null?B:[],b==null||b(e),Zc.value):(P.preventDefault(),Zc.value=e,n.value=n.value?[...n.value,e]:[e],setTimeout(()=>{var z,R;Zc.value=null,n.value=(R=(z=n.value)==null?void 0:z.filter($=>$!==e))!=null?R:[]},3e3))},children:[a.jsx(X,{className:"".concat(C?"!text-gray-500":"!text-red-500"),children:Zc.value!==e?j("Delete",{ns:"common"}):j("Click to Confirm",{ns:"common"})}),!Zc.value&&a.jsx("div",{className:"ml-auto pl-3",children:a.jsx(or,{size:15,className:"".concat(C?"!text-gray-500":"!text-red-500")})})]}),C&&a.jsx(fe,{className:"p-0.5",children:a.jsx(X,{className:"!text-gray-400/80 text-[11px] group-hover:!text-amber-500",children:j("Remove Submenus First",{ns:"common"})})})]})]})})}function Fxe(){const{data:e=[]}=Vc("get_clipboard_history_pinned");return e.forEach(t=>{if(t.links)try{t.arrLinks=JSON.parse(t.links)}catch{t.arrLinks=[]}t.hasEmoji&&(t.hasEmoji=AM(t.value))}),{pinnedClipboardHistory:e}}function Hxe(){const e=cn(),{mutate:t}=On("update_clipboard_history_by_id",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",n)}});return{updateClipboardHistoryById:t}}function IF(){const e=cn(),{mutate:t}=On("update_pinned_clipboard_history_by_ids",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",n)}});return{pinnedClipboardHistoryByIds:t}}function $xe(){const e=cn(),{mutate:t}=On("unpin_all_clipboard_history_items",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",n)}});return{unPinAllClipboardHistory:t}}function Bxe(){const e=cn(),{mutate:t}=On("move_pinned_item_up_down",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}):console.log("update clipboard error",n)}});return{movePinnedClipboardHistoryUpDown:t}}function TF(){const e=cn(),{data:t,isLoading:n,isFetched:r,fetchNextPage:s,isFetchingNextPage:o,error:i}=DU({queryKey:["get_clipboard_history"],queryFn:({pageParam:u})=>{const{limit:h=zC,offset:p=0}=u!=null?u:{};return Sa("get_clipboard_history",{limit:h,offset:p})},initialPageParam:{limit:zC,offset:0},getNextPageParam:(u,h)=>{const p=h==null?void 0:h.reduce((m,x)=>{var C;return m+((C=x==null?void 0:x.length)!=null?C:0)},0);return p?{limit:zC,offset:p}:null}}),{setClipboardHistory:c}=ut(Yi);return f.useEffect(()=>{if(Array.isArray(t==null?void 0:t.pages)){const u=!(t!=null&&t.pages.flat().length);c(t==null?void 0:t.pages.flat(),u)}},[t]),{infiniteClipboardHistory:t,invalidateClipboardHistoryQuery:()=>{e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})},isClipboardInfiniteHistoryLoading:n,isClipboardInfiniteHistoryFetched:r,fetchNextClipboardHistoryPage:s,isClipboardHistoryFetchingNextPage:o,isClipboardInfiniteHistoryError:i}}function Wxe({query:e="",filters:t=[],codeFilters:n=[]}){const r=cn(),{data:s,refetch:o,isLoading:i,isFetched:c,error:u}=Vc("find_clipboard_histories_by_value_or_filters",{query:e,filters:t,codeFilters:n,useQueryOptions:{enabled:!1,refetchOnWindowFocus:!1}}),{setClipboardHistory:h}=ut(Yi);return f.useEffect(()=>{Array.isArray(s)&&h(s,!0,!0)},[s]),{foundClipboardHistory:s,invalidateFindClipboardHistoryQuery:()=>{r.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})},refetchFindClipboardHistory:o,isFoundClipboardHistoryLoading:i,isFlundClipboardHistoryFetched:c,isFoundClipboardHistoryError:u}}function hE(){const e=cn(),{mutate:t}=On("delete_clipboard_history_by_ids",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",n)}});return{deleteClipboardHistoryByIds:t}}function Vxe(){const e=cn(),{mutate:t}=On("clear_clipboard_history_older_than",{onSuccess:n=>{n==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("clear clipboard error",n)}});return{clearClipboardHistoryOlderThan:t}}const{FOLDER:Uxe,ITEM:Dm,SEPARATOR:qxe,DISABLED:Yxe}=Qo;function D2({isCreatingMenuItem:e,currentMenuItemId:t,parentId:n,orderNumber:r,showEditMenuItemId:s,isMainCreateMenu:o,isDark:i,isFistItemsCreateMenu:c}){const{t:u}=wt(),[h,p]=f.useState(""),[m,x]=f.useState(""),{clipboardHistory:C}=ut(Yi),{fetchNextClipboardHistoryPage:b}=TF(),{collectionWithClips:g,fetchCollectionWithClips:k}=eR(),j=(g==null?void 0:g.clips)||[],S=Gs(h,300),E=Gs(m,300),N=f.useMemo(()=>S.length<1?j.filter(L=>L.isClip).sort((L,D)=>L.updatedAt&&D.updatedAt?D.updatedAt-L.updatedAt:0).slice(0,50).map(({name:L,itemId:D})=>({name:L.length>50?"".concat(L.substring(0,50),"..."):L,id:D})):j.filter(L=>L.isClip&&L.name.toLowerCase().includes(S.toLowerCase())).sort((L,D)=>L.updatedAt&&D.updatedAt?D.updatedAt-L.updatedAt:0).slice(0,50).map(({name:L,itemId:D})=>({name:L.length>50?"".concat(L.substring(0,50),"..."):L,id:D})),[j,S]),T=f.useMemo(()=>E.length<1?C.sort((L,D)=>D.updatedAt-L.updatedAt).slice(0,50).map(({value:L,historyId:D,isImage:P,imageWidth:A,imageHeight:B,detectedLanguage:z,isLink:R})=>({isImage:P,isLink:R,detectedLanguage:z,name:L!=null&&L.length&&(L==null?void 0:L.length)>80?"".concat(L==null?void 0:L.substring(0,80),"..."):P?"".concat(u("Image",{ns:"common"})," (").concat(A,"x").concat(B,")"):L,id:D})):C.filter(L=>{var D;return L!=null&&L.value?(D=L==null?void 0:L.value)==null?void 0:D.toLowerCase().includes(E.toLowerCase()):"Image".toLocaleLowerCase().includes(E.toLowerCase())}).sort((L,D)=>D.updatedAt-L.updatedAt).slice(0,50).map(({value:L,historyId:D,isImage:P,imageWidth:A,imageHeight:B,detectedLanguage:z,isLink:R})=>({isImage:P,isLink:R,detectedLanguage:z,name:L!=null&&L.length&&(L==null?void 0:L.length)>80?"".concat(L==null?void 0:L.substring(0,80),"..."):P?"".concat(u("Image",{ns:"common"})," (").concat(A,"x").concat(B,")"):L,value:L,id:D})),[C,E]);f.useEffect(()=>{C.length||b(),k()},[]);function M(){_u(),e.value=!1,Qc.value=null,Nu.value=null}return a.jsxs(Nn,{modal:!1,defaultOpen:c,children:[a.jsx(_n,{asChild:!0,disabled:!!Qc.value||!!Nu.value||!!Eu.value,children:o?a.jsx(a.Fragment,{children:e.value?a.jsxs(ye,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80 py-1.5 absolute top-1 right-1 rounded-sm",onClick:()=>{M()},children:[a.jsx(X,{className:"whitespace-nowrap",children:u("Done Adding",{ns:"common"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:15})})]}):a.jsx(a.Fragment,{children:s.value?a.jsxs(Yn,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80 py-1.5 absolute top-1 right-1 rounded-sm",onClick:()=>{M()},children:[a.jsx(X,{className:"whitespace-nowrap",children:u("Done Edit",{ns:"common"})}),a.jsx("div",{className:"ml-auto pl-1.5",children:a.jsx(Dt,{size:15})})]}):a.jsx(Yn,{className:"bg-slate-200 dark:bg-slate-700 dark:hover:bg-slate-700/80 p-1.5 text-slate-500 dark:text-slate-300 rounded-sm flex items-center group absolute top-1 right-1",onClick:()=>{e.value=!0},children:a.jsx(De,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:u("Add item",{ns:"menus"}),children:a.jsx(Ir,{size:20,className:"transition-colors group-hover:text-slate-400"})})})})}):a.jsx(J,{className:"flex group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-700 text-slate-500 dark:border-slate-500 dark:text-slate-300",onClick:()=>{if(!Qc.value&&!Nu.value&&!Eu.value)return;if(Eu.value){zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Dm,text:Eu.value},Eu.value="";return}const L=C.find(({historyId:P})=>P===Qc.value),D=j.find(({itemId:P})=>P===Nu.value);Qc.value=null,Nu.value=null,L?zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Dm,clipboardHistoryItem:L,historyId:L.historyId.toString()}:D&&(zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Dm,clipId:D.itemId})},children:a.jsx(Ir,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),a.jsxs(Cn,{align:"center",sideOffset:c?12:0,children:[a.jsx(Oe,{disabled:!0,className:"py-0.5 pb-1 flex justify-center border-b border-gray-200 dark:border-gray-600 text-slate-500 dark:text-slate-400",children:c?u("Add First Item",{ns:"menus"}):u("Add Item",{ns:"menus"})}),a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Dm}},children:[a.jsx(Ix,{size:16,className:"mr-2"}),a.jsx("span",{children:u("Menu Item",{ns:"menus"})})]}),a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Uxe}},children:[a.jsx(Op,{size:16,className:"mr-2"}),a.jsx("span",{children:u("Submenu",{ns:"menus"})})]}),a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:qxe}},children:[a.jsx(oL,{size:16,className:"mr-2"}),a.jsx("span",{children:u("Separator",{ns:"menus"})})]}),a.jsxs(Oe,{className:"outline-none flex items-center",onClick:()=>{zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Yxe}},children:[a.jsx(Rp,{size:16,className:"mr-2"}),a.jsx("span",{children:u("Disabled Item",{ns:"menus"})})]}),(T.length>0||N.length>0)&&a.jsx(Yt,{}),T.length>0&&a.jsxs(Ta,{children:[a.jsxs(va,{children:[a.jsx(hre,{size:16,className:"mr-2"}),a.jsx("span",{children:u("Recent History",{ns:"common"})})]}),a.jsxs(ya,{className:"w-60",children:[a.jsx(fe,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:L=>L.stopPropagation(),children:a.jsx(rd,{placeholder:"".concat(u("Find History",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:L=>{x(L.target.value)},value:m,iconLeft:a.jsx(Ap,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md w-[260px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8"})}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:T.map(({name:L,id:D,isImage:P,detectedLanguage:A,isLink:B},z)=>a.jsx(Oe,{onKeyDown:R=>R.stopPropagation(),className:"".concat(z>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Dm,clipboardHistoryItem:C.find(({historyId:R})=>R===D),historyId:D}},children:A?a.jsxs(J,{className:"text-sm overflow-hidden text-ellipsis",children:[a.jsx(es,{isDark:i,searchTerm:"",isLargeView:!1,isShowMore:!1,isWrapped:!0,value:L!=null?L:"",language:A}),a.jsx(it,{variant:"secondary",className:"absolute right-1 bottom-1",children:A})]}):a.jsxs(J,{className:"relative overflow-hidden text-ellipsis",children:[a.jsx("code",{className:"text-sm line-clamp-2",children:L}),P&&a.jsx(it,{variant:"secondary",className:"absolute right-1 bottom-1",children:u("Type:::Image",{ns:"common"})}),B&&a.jsx(it,{variant:"secondary",className:"absolute right-1 bottom-1",children:u("Type:::Link",{ns:"common"})})]})},D))})]})]}),N.length>0&&a.jsxs(Ta,{children:[a.jsxs(va,{children:[a.jsx(Pte,{size:16,className:"mr-2"}),a.jsx("span",{children:u("Link to Clip",{ns:"menus"})})]}),a.jsxs(ya,{className:"w-52",children:[a.jsx(fe,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:L=>L.stopPropagation(),children:a.jsx(rd,{placeholder:"".concat(u("Find Clip",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:L=>{p(L.target.value)},value:h,iconLeft:a.jsx(Ap,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md w-[260px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8"})}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:N.map(({id:L,name:D},P)=>a.jsx(Oe,{onKeyDown:A=>A.stopPropagation(),className:"".concat(P>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{zs.value={orderNumber:r,currentMenuItemId:t,parentId:n,type:Dm,clipId:L}},children:a.jsx("span",{children:D})},L!=null?L:P))})]})]})]})]})}const c1={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isLink:!1,isPath:!1,detectedLanguage:""},Kxe=({itemId:e,isCode:t,isImage:n,isText:r,isLink:s,isPath:o,detectedLanguage:i,children:c})=>{const{t:u}=wt(),{CONST:{APP_DETECT_LANGUAGES_SUPPORTED:h}}=ut(Nr),{updateMenuItemById:p}=Eg();return a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:c}),a.jsxs(Cn,{className:"w-48",sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{children:u("Menu Type",{ns:"menus"})})}),a.jsx(Yt,{}),a.jsx(Kt,{checked:!!r,onClick:()=>{p({updatedItem:{...c1,isText:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(r?"font-semibold":""),children:u("TypeMenu:::Plain Text",{ns:"common"})})}),a.jsx(Kt,{checked:!!s,onClick:()=>{p({updatedItem:{...c1,isLink:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(s?"font-semibold":""),children:u("TypeMenu:::Link or Email",{ns:"common"})})}),a.jsx(Kt,{checked:!!n,onClick:()=>{p({updatedItem:{...c1,isImage:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(n?"font-semibold":""),children:u("TypeMenu:::Image",{ns:"common"})})}),a.jsx(Kt,{checked:!!o,onClick:()=>{p({updatedItem:{...c1,isPath:!0,itemId:e}})},children:a.jsx(X,{className:"".concat(o?"font-semibold":""),children:u("TypeMenu:::File, Path or App",{ns:"common"})})}),a.jsxs(Ta,{children:[a.jsxs(va,{children:[t?a.jsx(Dt,{className:"mr-2 h-4 w-4"}):a.jsx(J,{className:"mr-2 h-4 w-4"}),a.jsxs(X,{className:"".concat(t?"!font-semibold":""),children:[u("TypeMenu:::Code Snippet",{ns:"common"})," ..."]})]}),a.jsxs(ya,{className:"w-40",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:i?a.jsx(X,{children:MF(i)}):a.jsx(X,{children:u("Select Language",{ns:"common"})})}),a.jsx(Yt,{}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:h.map(m=>a.jsx(Kt,{checked:i===m,className:"".concat(i===m?"font-semibold ":""),onClick:()=>{p({updatedItem:{...c1,isCode:!0,detectedLanguage:m,itemId:e}})},children:MF(m)},m))})]})]})]})]})};function MF(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Gxe({itemId:e,deletingMenuItemIds:t,onComplete:n}){const{t:r}=wt(),s=He(!1),o=()=>{s.value=!1,t.value=null},{currentCollectionId:i}=ut(hr),{deleteMenuItemById:c}=tR();return a.jsxs(Qa,{defaultOpen:!1,open:s.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsxs(ye,{variant:"ghost",title:r("Delete Clip",{ns:"dashboard"}),onClick:()=>{s.value=!0,t.value=[e]},className:"px-2 h-7 w-full py-0 text-red-500 dark:!text-red-600 hover:text-red-500 bg-transparent hover:bg-red-100 opacity-80 hover:opacity-100",children:[a.jsx(or,{size:16}),a.jsx(X,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:r("Delete",{ns:"common"})})]})}),a.jsx(Da,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{o()},onPointerDownOutside:()=>{o()},children:s.value&&a.jsxs(fe,{className:"flex-col",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block",children:r("Are you sure you want to delete?",{ns:"common"})}),a.jsx(mn,{h:3}),a.jsxs(fe,{children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{o()},children:r("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200 whitespace-nowrap",onClick:async()=>{await c({itemId:e,collectionId:i}),n()},children:r("Delete Menu",{ns:"menus"})})]})]})})]})}function Zxe({itemId:e,value:t,isCode:n,detectedLanguage:r,isText:s,isClip:o,isMasked:i,isVideo:c,isImage:u,isDelete:h,hasEmoji:p,isPath:m,imageDataUrl:x,isDark:C,deletingMenuItemIds:b,isLink:g,onCancel:k}){const{t:j}=wt(),S=He(""),E=He(!1),N=He(Date.now()),T=He(!1),M=He(void 0),L=He(void 0),D=He(void 0),P=He(void 0),{updateMenuItemById:A}=Eg(),B=f.useRef(null),z=Gs(S.value,300),{metadataLinkByItemId:R,invalidateLinkMetadataByItemId:$}=Sg(g,e),_=(R==null?void 0:R.linkTitle)&&(R==null?void 0:R.linkDomain);f.useEffect(()=>{S.value=t!=null?t:""},[t]),f.useEffect(()=>{if(g){const G=wr().match(S.value);!G||G.length>1?M.value=!0:M.value=!1}},[g]);const U=f.useCallback(async G=>{const Z=t===S.value?t:G;m&&Z.length>5&&vn("check_path",{path:Z}).then(()=>{L.value=!1}).catch(()=>{L.value=!0})},[m]);f.useEffect(()=>{m&&z.length>5&&U(z)},[m,z]),f.useEffect(()=>{(M.value||L.value||P.value||D.value)&&T.value&&(E.value=!0)},[M.value,L.value,D.value,P.value,T.value]);const K=async(G=!1)=>{if(xi.value){Jc.value=!0;return}let Z=null;if(Jc.value=!1,E.value=!1,T.value=!0,M.value=void 0,L.value=void 0,G)Z=m?"Error":null;else{if(g){const F=wr().match(S.value);if(!F||F.length>1){M.value=!0;return}}if(m)try{Z=await vn("path_type_check",{path:S.value})}catch{Z="Error",L.value=!0;return}}await A({updatedItem:{value:S.value,...Z&&m?{pathType:Z}:{},itemId:e}}),setTimeout(()=>{T.value=!1,k()},200)},W=f.useMemo(()=>n?j("TypeMenu:::Code Snippet",{ns:"common"}):u?j("TypeMenu:::Image",{ns:"common"}):g?j("TypeMenu:::Link or Email",{ns:"common"}):m?j("TypeMenu:::Link or File, Path or App",{ns:"common"}):j("TypeMenu:::Plain Text",{ns:"common"}),[n,u,g,m]);return a.jsx(Ku,{className:dn("px-2 pr-1.5 pb-1.5 m-0.5 mt-0 pt-1 mx-1 text-left flex flex-row rounded-md select-auto",h&&"bg-red-50 dark:bg-red-900"),children:a.jsxs(J,{className:"w-full mt-0",children:[o?a.jsx(J,{className:"mt-2",children:a.jsx(fe,{className:"gap-1 w-full justify-start",children:a.jsx(X,{className:"font-semibold",size:"sm",children:j("Clip value can't edit",{ns:"menus"})})})}):a.jsx(a.Fragment,{children:u?a.jsxs(J,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[a.jsx("img",{src:x||Gu,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-400"}),a.jsx(J,{className:"absolute",children:x?a.jsx(Pz,{id:e,isMenu:!0}):a.jsx(Iz,{id:e})})]}):m?a.jsxs(fe,{className:"relative text-normal",children:[a.jsx(Gt,{defaultValue:S.value,placeholder:j("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(L.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(L.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:a.jsx(J,{className:"absolute top-3 right-4",children:L.value?a.jsx(De,{text:j("File, folder or app path might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):L.value===!1&&a.jsx(De,{text:j("File, folder or app path is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:G=>{S.value=G.target.value}},N.value),a.jsx(Tz,{onCallBack:G=>{N.value=Date.now(),S.value=G}})]}):g?a.jsxs(fe,{className:"relative text-normal mt-1 flex-col",children:[a.jsx(Gt,{defaultValue:S.value,placeholder:j("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(M.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(M.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:a.jsx(J,{className:"absolute top-3 right-2",children:M.value?a.jsx(De,{text:j("Web Link or Email might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 dark:text-slate-200 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Ho,{size:18,className:"text-yellow-500 cursor-pointer"})}):M.value===!1&&a.jsx(De,{text:j("Web or Email link is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 dark:text-slate-200 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:a.jsx(Dt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:G=>{if(M.value&&(M.value=void 0),G.target.value.length>5){const Z=wr().match(G.target.value);!Z||Z.length>1?M.value=!0:M.value=!1}S.value=G.target.value}}),_&&a.jsx(J,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:a.jsx(bm,{isDisabled:mr(S.value)!==(R==null?void 0:R.linkUrl),title:R==null?void 0:R.linkTitle,description:R==null?void 0:R.linkDescription,favicon:R==null?void 0:R.linkFavicon,link:R==null?void 0:R.linkUrl,image:R==null?void 0:R.linkImage,imageWidth:12,domain:R==null?void 0:R.linkDomain})}),a.jsxs(fe,{className:"w-full mt-1 justify-start select-none",children:[Jl(S.value)||M.value||S.value.length<3?!Jl(S.value)&&a.jsx(ye,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:_?a.jsxs(X,{className:"!text-grey-500",size:"xs",children:[a.jsx(Lx,{size:13,className:"mr-1"}),j("Update Link Card",{ns:"dashboard"})]}):a.jsxs(X,{className:"!text-grey-500",size:"xs",children:[a.jsx(X0,{size:13,className:"mr-1"}),j("Add Link Card",{ns:"dashboard"})]})}):a.jsx(ye,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:async()=>{await vn("fetch_link_metadata",{url:mr(S.value),itemId:e}),$()},children:_?a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[a.jsx(Lx,{size:13,className:"mr-1"}),j("Update Link Card",{ns:"dashboard"})]}):a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[a.jsx(X0,{size:13,className:"mr-1"}),j("Add Link Card",{ns:"dashboard"})]})}),_&&a.jsx(ye,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:async()=>{await vn("delete_link_metadata",{itemId:e}),$()},children:a.jsxs(X,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[j("Remove",{ns:"common"}),a.jsx(J0,{size:14,className:"ml-1"})]})})]})]}):n?a.jsx($S,{value:S.value,height:"200px",isDark:C,options:{mode:r!=null?r:"javascript"},onChange:G=>{S.value=G.getValue()}},"code-editor"):a.jsxs(a.Fragment,{children:[a.jsxs(J,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[a.jsx(De,{isCompact:!0,text:j("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:a.jsx(QM,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var G;(G=B==null?void 0:B.current)==null||G.handleAddBBcode("copy")}})}),a.jsx(De,{isCompact:!0,text:j("Toolbar:::Masked Text Formatting",{ns:"common"}),children:a.jsx(yz,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var G;(G=B==null?void 0:B.current)==null||G.handleAddBBcode("mask")}})}),a.jsx(De,{isCompact:!0,text:j("Toolbar:::Blank Text Formatting",{ns:"common"}),children:a.jsx(gz,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var G;(G=B==null?void 0:B.current)==null||G.handleAddBBcode("blank")}})}),a.jsx(De,{isCompact:!0,text:j("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:a.jsx(vz,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var G;(G=B==null?void 0:B.current)==null||G.handleAddBBcode("hl")}})}),a.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:a.jsx(De,{isCompact:!0,text:j("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:a.jsx(lL,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var G;(G=B==null?void 0:B.current)==null||G.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),a.jsx(go,{ref:B,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"Enter paste value",rows:2,autoFocus:!xi.value,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:6,value:S.value,onKeyDown:G=>{G.stopPropagation()},onChange:G=>{S.value=G.target.value}})]})}),a.jsxs(fe,{className:"w-full justify-start items-center select-none",children:[a.jsxs(fe,{className:"items-start mt-2",children:[a.jsx(Kxe,{isCode:n,isLink:g,isPath:m,isText:s,isImage:u,itemId:e,detectedLanguage:r,children:a.jsx(J,{children:a.jsx(De,{text:W,isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"px-2 h-8 text-slate-500 border-0 dark:hover:bg-slate-800/80 bg-slate-200 dark:bg-slate-800 text-sm group hover:text-blue-500 dark:hover:!text-blue-600",children:n?a.jsxs(a.Fragment,{children:[a.jsx(VC,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:j("Type:::Code",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):u?a.jsxs(a.Fragment,{children:[a.jsx(_x,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:j("Type:::Image",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):m?a.jsxs(a.Fragment,{children:[a.jsx(YC,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:j("Type:::Path",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):g?a.jsxs(a.Fragment,{children:[a.jsx(eL,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:j("Type:::Link",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ex,{size:16}),a.jsx(X,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:j("Type:::Text",{ns:"common"})}),a.jsx(jn,{size:12,className:"ml-1"})]})})})})})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(De,{text:j("Menu Options",{ns:"menus"}),isCompact:!0,side:"bottom",asChild:!0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500 dark:group-hover:!text-blue-400",children:a.jsx(Tu,{size:16})})})})}),a.jsxs(Cn,{className:"",sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{children:j("Menu Options",{ns:"menus"})})}),a.jsx(Yt,{}),a.jsxs(Oe,{className:i?"font-semibold":"",onClick:G=>{G.preventDefault(),A({updatedItem:{isMasked:!i,itemId:e}})},children:[j("Type:::Secret",{ns:"common"}),i&&a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Dt,{size:15,className:"fill-transparent"})})]}),a.jsxs(Oe,{className:c?"font-semibold":"",onClick:G=>{G.preventDefault(),A({updatedItem:{isVideo:!c,itemId:e}})},children:[j("Type:::Video",{ns:"common"}),c&&a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Dt,{size:15,className:"fill-transparent"})})]}),a.jsxs(Oe,{className:p?"font-semibold":"",onClick:G=>{G.preventDefault(),A({updatedItem:{hasEmoji:!p,itemId:e}})},children:[j("Type:::Emoji",{ns:"common"}),p&&a.jsx("div",{className:"ml-auto pl-2",children:a.jsx(Dt,{size:15,className:"fill-transparent"})})]}),a.jsx(Yt,{}),a.jsx(Gxe,{itemId:e,onComplete:k,deletingMenuItemIds:b})]})]})]}),a.jsxs(fe,{className:"items-end ml-auto mt-1",children:[a.jsx(De,{text:j("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{k()},children:a.jsx(Rn,{size:18})})})}),a.jsxs(Qa,{defaultOpen:!1,open:E.value,children:[a.jsx(Ja,{asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsxs(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>{K()},children:[a.jsx(Dt,{size:18,className:"mr-1"}),j("Save",{ns:"common"})]})})}),a.jsx(Da,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{E.value=!1,T.value=!1},onPointerDownOutside:()=>{E.value=!1,T.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:a.jsxs(fe,{className:"flex-col p-1.5 rounded-md",children:[a.jsx(X,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:M.value?"Please verify your link for any errors, or confirm to save as is.":L.value?"Please verify your path for any errors, or confirm to save as is.":D.value?"Please verify your command for any errors, or confirm to save as is.":P.value?"Please verify your command output template for any errors, or confirm to save as is.":"Are you sure you want to save this?"}),a.jsx(mn,{h:3}),a.jsxs(fe,{className:"mb-1",children:[a.jsx(ye,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{E.value=!1,T.value=!1},children:j("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200 whitespace-nowrap",onClick:()=>{K(!0)},children:j("Save It!",{ns:"common"})})]})]})})]})]})]})]})})}function Qxe({isClip:e,itemId:t,isOpen:n,label:r}){const{t:s}=wt(),o=He(!1),i=He(""),{updateMenuItemById:c}=Eg(),u=He(xi.value);return f.useEffect(()=>{o.value=!1,i.value=r!=null?r:"",xi.value=u.value,e&&(u.value=!1)},[u.value]),a.jsx(fe,{className:"justify-start w-full",children:u.value?a.jsxs(a.Fragment,{children:[a.jsx(De,{open:o.value||Jc.value,asChild:!0,text:Jc.value?s("Unsaved label",{ns:"common"}):i.value.length<=AC?s("Too short",{ns:"common"}):s("Too long",{ns:"common"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:a.jsx(Gt,{small:!0,autoFocus:xi.value,className:"bg-white rounded-md text-sm font-semibold w-full",placeholder:s("Enter menu label",{ns:"menus"}),onKeyDown:async h=>{h.stopPropagation(),h.key==="Escape"?u.value=!1:h.key==="Enter"&&(!i.value.length||i.value.length>K0)?o.value=!0:h.key==="Enter"&&(await c({updatedItem:{name:i.value,itemId:t}}),setTimeout(()=>{u.value=!1,n||_u()},200))},defaultValue:r,onFocus:h=>{r!=null&&r.startsWith("New ")&&h.target.select()},onChange:h=>{o.value&&h.target.value.length<=K0&&o.value&&h.target.value.length>0&&(o.value=!1),i.value=h.target.value}})}),a.jsxs(fe,{className:"ml-1",children:[a.jsx(De,{text:s("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:Jc.value,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:async()=>{if(Jc.value&&(Jc.value=!1),!i.value.length||i.value.length>K0){o.value=!0;return}o.value||(await c({updatedItem:{name:i.value,itemId:t}}),setTimeout(()=>{u.value=!1,n||_u()},200))},children:a.jsx(Dt,{size:18})})})}),a.jsx(De,{text:s("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(J,{tabIndex:0,children:a.jsx(ye,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{u.value=!1,n||_u()},children:a.jsx(Rn,{size:18})})})})]})]}):a.jsxs(a.Fragment,{children:[a.jsx(X,{className:"text-ellipsis !block overflow-hidden whitespace-nowrap ".concat(e?"":"border-dashed border-b border-slate-400 hover:border-gray-400"),onClick:()=>{u.value=!0},color:"black",children:r}),e?a.jsx(J,{className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:a.jsx(De,{text:s("Menu is a link to Clip. You can't edit the label directly",{ns:"menus"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(tg,{size:14})})}):a.jsx(J,{onClick:()=>{u.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:a.jsx(De,{text:s("Edit name",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:a.jsx(Pp,{size:14})})})]})})}function LF({triggerProps:e,contentProps:t,isSelected:n,hasMultipleSelectedItems:r,isCreatingMenuItem:s,isFirstItem:o,isLastItem:i,isForm:c,isWebRequest:u,isWebScraping:h,isCommand:p,isSeparator:m,indent:x=0,item:C,hasChildren:b,isOpen:g,isClip:k,showEditMenuItemId:j,onFolderClose:S,onFolderOpen:E,showMultiSelectItems:N,deletingMenuItemIds:T,isClosedFolder:M,setSelectedItemIds:L,deselectItemById:D,selectItemById:P,setOpenItemId:A,globalSearchTerm:B,isDark:z,closeGlobalSearch:R,id:$,label:_,children:U}){const{t:K}=wt(),{isFolder:W,isDisabled:G,isActive:Z}=C,F=f.useMemo(()=>{var $e,st;return(st=($e=T.value)==null?void 0:$e.includes($))!=null?st:!1},[T.value,$]),V=He(!1),q=s.value&&(o||n&&i),ne=s.value&&(i||n),[Q,ae,re,le]=Bu({}),[oe,ie,de]=Vu({}),xe=f.useRef(null),je=f.useRef(null),Ee=C.createdAt&&C.createdAt>Math.floor(Date.now())-60*1e3,Te=(jx.value===$||V.value)&&!N.value,Me=!G&&Z&&!W&&!m,ze=j.value===$,qe=Q===$,Ye=oe===$,Ve=le===$,Lt=oe===$?ie:void 0;return a.jsxs(a.Fragment,{children:[q&&a.jsxs(fe,{className:dn("flex flex-col justify-center items-center my-1.5 mb-0 animate-in fade-in duration-300 ease-in-out transition-opacity",x>0&&"ml-[".concat(x*30,"px]")),children:[a.jsx(D2,{isCreatingMenuItem:s,showEditMenuItemId:j,isDark:z,currentMenuItemId:$,parentId:null,orderNumber:i?C.orderNumber+1:0}),a.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"})]}),a.jsxs(nm,{onOpenChange:$e=>{V.value=$e},children:[a.jsx(rm,{ref:je,disabled:!Te&&!n||!!B,children:a.jsxs(J,{className:"relative",children:[(qe||Ye)&&!Lt?a.jsx(J,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(o?"top-[-6px]":"top-[-10px]"," ").concat(x>0?"ml-[".concat(x*10,"px]"):""),children:c?a.jsxs(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] mr-[-8px] text-[10px] uppercase font-semibold border-0",children:[K("Running",{ns:"common"}),"..."]}):a.jsxs(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[a.jsx(Dt,{size:14,className:"mr-1"}),qe?K("Copied",{ns:"common"}):Ye?K("Pasted",{ns:"common"}):""]})}):Lt&&ie>0&&a.jsx(J,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(o?"top-[-6px]":"top-[-10px]"," ").concat(x>0?"ml-[".concat(x*10,"px]"):""),children:c?a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:K("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ie})}):a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:K("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ie})})}),a.jsxs(J,{onMouseEnter:()=>{jx.value=$!=null?$:null},onMouseLeave:()=>{jx.value=null},onClick:$e=>{if(!N.value){if($e.stopPropagation(),jx.value=$!=null?$:null,$e.shiftKey){if(m)return;if(W){M?E($):S($);return}j.value||(A==null||A(g?null:$));return}if($e.metaKey||$e.ctrlKey){n?D==null||D($):P==null||P($);return}L==null||L([$])}},className:dn("rounded-lg border-2 bg-card text-card-foreground shadow-sm flex flex-col","duration-200 ease-in-out transition-none",x>0&&"ml-[".concat(x*30,"px]"),!ne&&!q?"my-1.5":"",n&&!o&&!i?"mt-1.5":"",o&&q&&!n?"mb-1.5":"",i&&ne&&!n?"mt-1.5":"",n?"border-slate-400/70 dark:border-slate-600":"dark:border-slate-700/80",F&&"!border-red-400 dark:!border-red-800",yi.value&&n&&!b&&"!border-red-400 dark:!border-red-800",g?"max-w-[340px] min-w-[270px]":"w-[270px]",ze&&"max-w-[340px] min-w-[340px]",(qe||Ye)&&"!border-green-600 dark:!border-green-700","transition-transform",Gc.value===$&&"pulse-clip"),children:[a.jsx(MP,{className:"flex",children:a.jsx(N4,{onDoubleClickCapture:$e=>{if(ze||$e.shiftKey||!Me||V.value){$e.preventDefault();return}if($e.altKey||$e.metaKey){if(c){de($,void 0,!0);return}de($)}else ae($)},...e,asChild:!0,className:dn("group bg-white text-slate-600 dark:text-slate-400 dark:bg-slate-900 flex w-full select-none items-center justify-between rounded-md pl-2 pr-1 py-[6px] text-left text-sm font-medium cursor-pointer","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75 items-center justify-between",(n||g)&&"bg-slate-100/90 dark:bg-slate-950/80 dark:text-slate-300",Te&&!(n||g)&&"!bg-slate-50/60 dark:!bg-slate-950/60",r&&n&&"bg-amber-50 dark:bg-amber-950/80",F&&"!bg-red-50 dark:!bg-red-950",!Z&&"not-active-background bg-slate-100 text-slate-400 line-through dark:bg-slate-900 dark:text-slate-600",yi.value&&n&&!b&&"!bg-red-50 dark:!bg-red-950/80",(qe||Ye)&&"!bg-green-50 dark:!bg-green-900",e==null?void 0:e.className),children:a.jsxs(fe,{className:"relative",children:[a.jsxs(fe,{className:dn("mx-1 mr-3 whitespace-nowrap overflow-hidden text-[15px] w-full",N.value&&"ml-0",n||Ee?"font-semibold":"font-normal",G?"text-gray-500/60":""),children:[N.value&&a.jsx(J,{className:"flex flex-row items-center pr-2.5 z-100",children:a.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{n?D==null||D($):P==null||P($)},checked:n},$)}),W&&a.jsx(fe,{className:"mr-1.5",children:M?a.jsx(Op,{size:17}):a.jsx(nL,{size:17})}),m?a.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-50 w-full"}):a.jsx(a.Fragment,{children:ze?a.jsx(Qxe,{label:_,itemId:$,isOpen:g,isClip:k}):a.jsxs(J,{className:"whitespace-nowrap overflow-hidden text-ellipsis w-full",children:[B?rl(_,B):_,k&&a.jsx(De,{text:K("Menu is a link to a clip",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(tg,{size:13,className:"ml-1.5 inline"})})]})})]}),(Te||n||g||ze)&&!N.value?a.jsxs(fe,{className:"h-[24px]",children:[m?a.jsx(a.Fragment,{children:a.jsx(J,{className:"h-[23px]"})}):a.jsx(fe,{className:"gap-1 animate-in fade-in duration-100",children:W?!ze&&a.jsxs(Yn,{onClick:()=>{M?E($):S($)},className:dn("relative w-[24px] h-[24px] mr-1 group-hover:opacity-100 rounded-md transition-opacity text-slate-400 cursor-pointer flex items-center justify-center",g?"opacity-100":"opacity-20"),children:[a.jsx(Lp,{size:"18px",className:dn("absolute transform duration-300 ease-in-out",M?"rotate-0 opacity-1":"rotate-0 opacity-0")}),a.jsx(jn,{size:"18px",className:dn("absolute transform duration-300 ease-in-out",M?"rotate-[-90deg] opacity-0":"rotate-0 opacity-1")})]}):!ze&&a.jsxs(a.Fragment,{children:[Me&&a.jsx(Yn,{className:"hover:bg-transparent hover:text-green-600 text-slate-400",onClick:()=>{nn.value?c?de($,void 0,!0):de($):ae($)},children:c?a.jsx(De,{text:K("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Ve||Ye&&!Lt?a.jsx(wm,{}):a.jsx(l2,{width:16,height:16})}):u||h||p?a.jsx(De,{text:nn.value?K("Run and Paste Response",{ns:"common"}):K("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:16}):Ve?a.jsx(wm,{}):a.jsx(l2,{width:16,height:16})}):a.jsx(De,{text:nn.value?K("Copy and Paste",{ns:"common"}):K("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:nn.value?a.jsx(aa,{size:16}):a.jsx(qa,{size:16})})}),G?a.jsx(De,{text:K("Disabled Menu",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Rp,{size:16,className:"opacity-50 mr-1.5"})}):a.jsx(a.Fragment,{children:!j.value&&!B&&a.jsxs(Yn,{onClick:$e=>{$e.stopPropagation(),A==null||A(g?null:$)},className:dn("relative hover:bg-transparent w-[25px] h-[24px] mr-0 hover:text-slate-500 rounded-md transition-opacity text-slate-400 cursor-pointer flex items-center justify-center"),children:[a.jsx(wte,{size:"18px",className:dn("absolute transform duration-300 ease-in-out",g?"rotate-180 opacity-1":"rotate-0 opacity-0")}),a.jsx(kte,{size:"18px",className:dn("absolute transform duration-300 ease-in-out",g?"rotate-180 opacity-0":"rotate-0 opacity-1")})]})})]})}),ze?a.jsx(a.Fragment,{children:!xi.value&&a.jsx(Yn,{className:"mr-1",onClick:()=>{_u()},children:a.jsx(De,{text:K("Close Edit",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Rn,{size:18})})})}):B?a.jsx(ye,{variant:"ghost",size:"mini",className:"pl-2 pr-1 text-slate-400 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-blue-500",onClick:()=>{Gc.value=$,R==null||R()},ref:xe,children:a.jsx(De,{text:K("Locate Menu",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(Tx,{size:18})})}):a.jsx(ye,{variant:"ghost",size:"mini",className:"pr-0.5 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-slate-600",onClick:$e=>{var Qt,Vt,_e;$e.stopPropagation();const st=(Qt=xe==null?void 0:xe.current)==null?void 0:Qt.getBoundingClientRect().x,At=(Vt=xe==null?void 0:xe.current)==null?void 0:Vt.getBoundingClientRect().y;(_e=je==null?void 0:je.current)==null||_e.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:st,clientY:At&&At+30}))},ref:xe,children:a.jsx(De,{text:K("Options",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(bi,{size:18})})})]}):a.jsx(J,{className:"h-[24px]"}),Ee&&a.jsx(Al,{className:"absolute text-green-400 dark:text-green-600 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28})]})})}),a.jsx(_4,{...t,className:dn("overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",F&&"bg-red-50 dark:bg-red-900"),children:U})]})]})}),(Te||n)&&a.jsx(zxe,{id:$,isSelected:n,isDisabled:G,setSelectedItemIds:L,isActive:Z,hasChildren:b,isClip:k,isImage:C.isImage,isFolder:W,itemParentId:C.parentId,isSeparator:m,setOpenItemId:A,isOpen:g,itemOrderNumber:C.orderNumber,deletingMenuItemIds:T,deselectItemById:D,selectItemById:P})]}),ne&&a.jsxs(fe,{className:dn("flex flex-col justify-center items-center mb-2 mt-0 animate-in fade-in duration-300 ease-in-out transition-opacity",x>0&&"ml-[".concat(x*30,"px]")),children:[a.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"}),a.jsx(D2,{isCreatingMenuItem:s,showEditMenuItemId:j,currentMenuItemId:$,isDark:z,parentId:W&&!M?$:C.parentId,orderNumber:W&&M||!W?C.orderNumber+2:0})]})]})}const ko={CLIPS:"clips",BOARDS:"boards",MENUS:"menus"};function Jxe({isDark:e}){var F,V;const{t}=wt(),[n,r]=f.useState(""),[s,o]=f.useState(ko.CLIPS),i=f.useRef(),c=ea(null),u=ea(null),h=ea(!1),p=ea(!1),{isWindows:m}=ut(ra),{setIsAutoCloseOnCopyPaste:x,isAutoCloseOnCopyPaste:C,setIsSearchNameOrLabelOnly:b,isSearchNameOrLabelOnly:g}=ut(Nr),[k]=Bu({}),[j]=Vu({}),{clipItems:S,tabs:E,setCurrentTab:N}=ut(hr),{collectionWithClips:T,fetchCollectionWithClips:M}=eR(),{collectionWithMenuItems:L,fetchCollectionWithMenuItems:D}=ape(),P=ts(),{menuItems:A}=ut(hr),B=Gs(n,300),[z,R]=f.useState(!1),$=q=>{var ne;q.preventDefault(),q.stopPropagation(),R(Q=>!Q),(ne=i.current)==null||ne.focus()},_=f.useMemo(()=>B.length>1,[B]),U=f.useMemo(()=>{if(B.length<=1||!z)return{results:[],count:0};const q=A.length>0?A:(L==null?void 0:L.items)||[],ne=q.length>0?l1(q,null,!1):[],Q=le=>{var oe,ie,de;return le.name.toLowerCase().includes(B.toLowerCase())||(oe=le.value)!=null&&oe.toLowerCase().includes(B.toLowerCase())&&!g?!0:(de=(ie=le.children)==null?void 0:ie.some(Q))!=null?de:!1},ae=(le,oe=0)=>{let ie=[];return le.forEach(de=>{var Ee;const xe=Q(de),je=q.find(Te=>Te.itemId===de.id);if(je&&xe){const Te={...je,indent:oe,id:de.id};if(ie.push(Te),de.children&&((Ee=de.children)==null?void 0:Ee.length)>0){const Me=ae(de.children,oe+1);ie=ie.concat(Me)}}}),ie},re=ae(ne);return{results:re,count:re.length}},[A,B,z,L==null?void 0:L.items,g]),K=f.useMemo(()=>{if(B.length<=1||!z)return{results:[],count:0};const q=S.length>0?S:(T==null?void 0:T.clips)||[];return kF(q,B,E,g)},[S,B,z,T,g]),W=f.useMemo(()=>{if(B.length<=1||!z)return{results:[],count:0};const q=S.length>0?S:(T==null?void 0:T.clips)||[];return kF(q,B,E,g,!0)},[S,B,z,T,g]),G=()=>{P("/history",{replace:!0}),R(!1)},Z=()=>{P("/menu",{replace:!0}),R(!1)};return f.useEffect(()=>{z||(HM.value=n,r(""))},[z]),f.useEffect(()=>{_&&S.length===0&&M(),_&&A.length===0&&D()},[_,M,D]),f.useEffect(()=>{z||(HM.value=n,r(""))},[z]),Oa(["meta+k","control+k"],$,{},[]),Oa("/",$,{},[]),f.useEffect(()=>{!_||K.count>0?o(ko.CLIPS):W.count>0?o(ko.BOARDS):U.count>0&&o(ko.MENUS)},[K.count,W.count,_]),f.useEffect(()=>{z&&(k||j)&&C&&setTimeout(()=>{R(!1)},1e3)},[k,j,z]),a.jsx(a.Fragment,{children:a.jsxs(Qa,{defaultOpen:!1,modal:!1,open:z,onOpenChange:()=>{R(!z)},children:[a.jsx(Ja,{asChild:!0,children:a.jsxs(J,{className:"flex flex-row bg-slate-100 dark:bg-slate-800 rounded-md p-0 items-center relative ml-2",children:[a.jsx(rd,{placeholder:"".concat(t("GlobalSearch:::Search",{ns:"navbar"})," ..."),type:"search",id:"global-search",value:n,onChange:q=>{r(q.target.value)},ref:Ei(i),onFocus:()=>{R(!0)},iconLeft:a.jsx(Ap,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md min-w-[120px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-800 border-r-0 border-t-0 border-b-0 h-8"}),!z&&a.jsx(fe,{className:"absolute right-2 text-slate-400/90 animate-in animate-out fade-in-out hover:text-slate-500 cursor-pointer",onClick:()=>{var q;R(!0),(q=i.current)==null||q.focus()},title:t("GlobalSearch:::Press / key to search",{ns:"navbar"}),children:a.jsx("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"rounded-md flex items-center justify-center bg-slate-50 dark:bg-slate-900/60 p-[2px]",children:a.jsx("line",{x1:"16",x2:"8",y1:"5",y2:"18"})})})]})}),a.jsx(Da,{className:"overflow-hidden bg-gray-50 p-4 py-2 pb-3 pt-2 flex items-center flex-col w-fit rounded-md shadow-lg relative dark:bg-slate-800",sideOffset:4,onOpenAutoFocus:q=>{q.preventDefault()},onInteractOutside:q=>{q.preventDefault()},onCloseAutoFocus:q=>{q.preventDefault(),r(""),document.activeElement.blur()},children:a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"esc-key flex opacity-90 hover:opacity-100 hover:bg-opacity-100 justify-end w-[38px] h-[24px] rounded-sm top-2 left-2 absolute z-50 bg-slate-100/90 dark:bg-slate-900/90 cursor-pointer",onClick:()=>{R(!1)},title:t("Press ESC key to close",{ns:"common"})}),a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsx(J,{className:"flex opacity-90 hover:opacity-100 hover:bg-opacity-100 top-2 right-2 absolute z-50 text-slate-400 bg-slate-100/90 dark:bg-slate-900/90 cursor-pointer",onClick:()=>{R(!1)},title:t("GlobalSearch:::Search Options",{ns:"navbar"}),children:a.jsx(Tu,{size:14})})}),a.jsxs(Cn,{children:[a.jsx(Oe,{disabled:!0,className:"p-0 justify-center text-[13px]",children:t("GlobalSearch:::Search Options",{ns:"navbar"})}),a.jsx(Yt,{}),a.jsxs(Oe,{onClick:q=>{q.preventDefault(),x(!C)},children:[a.jsx(fe,{className:"mr-2",children:a.jsx(X,{className:"!text-[13px] mr-1 !font-medium ".concat(C?"":"text-slate-900/50"),children:t("GlobalSearch:::Auto Close on Copy & Paste",{ns:"navbar"})})}),a.jsx(Hr,{checked:C,className:"ml-auto"})]}),a.jsxs(Oe,{onClick:q=>{q.preventDefault(),b(!g)},children:[a.jsx(fe,{className:"mr-2",children:a.jsxs(X,{className:"!text-[13px] mr-1 flex-col !items-start !font-medium ".concat(g?"":"text-slate-900/50"),children:[t("GlobalSearch:::Search Name or Label Only",{ns:"navbar"}),a.jsx("span",{className:"text-muted-foreground opacity-70 !text-[12px] block",children:t("GlobalSearch:::Excludes clip or menu values",{ns:"navbar"})})]})}),a.jsx(Hr,{checked:g,className:"ml-auto"})]})," "]})]}),_&&a.jsx(Xi,{className:"flex flex-row z-10 select-none pb-1.5 mb-1",value:s,onValueChange:q=>{o(q)},children:a.jsxs(Vo,{className:"self-center px-1 py-1 bg-slate-200 dark:bg-slate-900",children:[a.jsxs(br,{value:ko.CLIPS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[t("Clips:::Clips",{ns:"dashboard"}),a.jsx(it,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:K.count>99?"99+":K.count})]}),a.jsxs(br,{value:ko.BOARDS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[t("Boards",{ns:"dashboard"}),a.jsx(it,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:W.count>99?"99+":W.count})]}),a.jsxs(br,{value:ko.MENUS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[t("Menus",{ns:"menus"}),a.jsx(it,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:U.count>99?"99+":U.count})]})]})}),a.jsxs(An,{className:"flex-col",style:{height:"auto",maxHeight:"calc(100vh - 200px)",width:420},autoHide:!1,children:[s===ko.CLIPS&&((F=K.results)==null?void 0:F.reduce((q,ne,Q)=>{const ae=Math.floor(Q/1);return q[ae]||(q[ae]=[]),q[ae].push(ne),q},[]).map((q,ne)=>a.jsx(J,{className:"mt-1 mb-2",children:q.map((Q,ae)=>a.jsx(L2,{board:Q,isDark:e,closeGlobalSearch:G,setCurrentTab:N,globalSearchTerm:B,isHistoryDragActive:!1,currentTabLayout:"auto",order:Q.orderNumber,isLastBoard:ae===q.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(ne,"-").concat(ae)))},"".concat(ne)))),s===ko.BOARDS&&((V=W.results)==null?void 0:V.reduce((q,ne,Q)=>{const ae=Math.floor(Q/1);return q[ae]||(q[ae]=[]),q[ae].push(ne),q},[]).map((q,ne)=>a.jsx(J,{className:"mt-1 mb-2",children:q.map((Q,ae)=>a.jsx(L2,{board:Q,isDark:e,globalSearchTerm:B,setCurrentTab:N,closeGlobalSearch:G,isHistoryDragActive:!1,isGlobalSearchBoardsOnly:!0,currentTabLayout:"auto",order:Q.orderNumber,isLastBoard:ae===q.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(ne,"-").concat(ae)))},"".concat(ne)))),s===ko.MENUS&&a.jsx(LP,{type:"single",collapsible:!0,className:"flex items-center flex-col",children:U.results.map((q,ne)=>a.jsx(I4,{value:q.itemId,children:a.jsx(LF,{label:q.name,globalSearchTerm:B,closeGlobalSearch:Z,isLastItem:ne===U.results.length-1,deletingMenuItemIds:c,isFirstItem:ne===0,isDark:e,showEditMenuItemId:u,hasChildren:q.hasChildren,isSeparator:q.isSeparator,showMultiSelectItems:h,hasSelectedItems:!1,id:q.itemId,item:q,isClip:q.isClip,isForm:q.isForm&&q.isClip,isWebRequest:q.isWebRequest&&q.isClip,isWebScraping:q.isWebScraping&&q.isClip,isCommand:q.isCommand&&q.isClip,isCreatingMenuItem:p,indent:q.indent,onFolderClose:()=>{},onFolderOpen:()=>{},isClosedFolder:!1,isSelected:!1,hasMultipleSelectedItems:!1,isOpen:!1,children:a.jsx(a.Fragment,{})})},"".concat(q.itemId)))}),_?a.jsx(a.Fragment,{children:K.count===0&&W.count===0&&U.count===0?a.jsx(J,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in clips, boards or menus.",{ns:"navbar"})}):a.jsxs(a.Fragment,{children:[K.count===0&&s===ko.CLIPS&&a.jsx(J,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in clips.",{ns:"navbar"})}),W.count===0&&s===ko.BOARDS&&a.jsx(J,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in boards.",{ns:"navbar"})}),U.count===0&&s===ko.MENUS&&a.jsx(J,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in menus.",{ns:"navbar"})})]})}):a.jsxs(J,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-2 mt-2",children:[t("GlobalSearch:::Type what you looking for",{ns:"navbar"}),"..."]})]}),a.jsx(Ac,{children:a.jsx(J,{className:"body-overlay bg-black/30 dark:bg-black/70 rounded-lg ".concat(m?"mb-1 mx-1 !mt-[43px]":""),onClick:()=>{R(!1)}})})]})})]})})}function Xxe(){const{t:e}=wt(),{setTheme:t,theme:n}=o2(),{mode:r,setMode:s}=ut(pu);f.useEffect(()=>{n!==r&&s(n)},[n]);const o=n==="light"?a.jsx(bo.sun,{size:14,className:"ml-2"}):n==="dark"?a.jsx(bo.moon,{size:14,className:"ml-2"}):a.jsx(bo.sunmoon,{width:12,height:12,className:"ml-2"});return a.jsxs(sm,{children:[a.jsxs(Hu,{children:[e("Color Theme",{ns:"navbar"})," ",o]}),a.jsxs($u,{children:[a.jsxs(Za,{checked:n==="light",onClick:()=>t("light"),children:[a.jsx("span",{className:"flex tems-end",children:a.jsx(bo.sun,{className:"mr-2",size:17})}),a.jsx("span",{children:e("Theme:::Light",{ns:"navbar"})})]}),a.jsxs(Za,{checked:n==="dark",onClick:()=>t("dark"),children:[a.jsx("span",{className:"flex items-end",children:a.jsx(bo.moon,{className:"mr-2",size:15})}),a.jsx("span",{children:e("Theme:::Dark",{ns:"navbar"})})]}),a.jsxs(Za,{checked:n==="system",onClick:()=>t("system"),children:[a.jsx("span",{className:"flex w-[1.5rem] items-end",children:a.jsx(bo.sunmoon,{className:"mr-2",width:13,height:13})}),a.jsx("span",{children:e("Theme:::System",{ns:"navbar"})})]})]})]})}const O2=String.fromCharCode,P2={};function DF(e){var t,n;try{const r=ebe(e.trim()),s=tbe(r);return(n=JSON.parse((t=nbe(s))!=null?t:"{}"))!=null?n:{}}catch(r){throw console.error(r),new Error("Error parsing data.")}}(function(e,t){const n=oh,r=e();for(;;)try{if(-parseInt(n(230))/1*(parseInt(n(233))/2)+-parseInt(n(242))/3+parseInt(n(245))/4*(-parseInt(n(234))/5)+-parseInt(n(238))/6+-parseInt(n(229))/7*(parseInt(n(237))/8)+-parseInt(n(243))/9+-parseInt(n(240))/10*(-parseInt(n(246))/11)===t)break;r.push(r.shift())}catch{r.push(r.shift())}})(R2,744619);function ebe(e){return decodeURIComponent(escape(atob(e)))}function tbe(e){const t=oh,n=kee+"_1974";let r="";for(let s=0;s<e[t(228)];s++){const o=e[t(235)](s)^n[t(235)](s%n.length);r+=String[t(239)](o)}return r}function oh(e,t){const n=R2();return oh=function(r,s){return r=r-226,n[r]},oh(e,t)}function nbe(e){const t=oh;return e==null?"":e==""?null:(e=e.replace(/ /g,"+"),abe(e[t(228)],32,function(n){return rbe(OU,e[t(241)](n))}))}function R2(){const e=["length","98TWNwFh","1iciirl","val","join","917876ZooGii","3555905XSvIwh","charCodeAt","push","505992XLzYIF","6900096bSbiTE","fromCharCode","30PlOFzV","charAt","2242914FgbnKh","5648760AEyFcO","pow","8lVKJbg","22134563nICvAs","index","position"];return R2=function(){return e},R2()}function rbe(e,t){const n=oh;if(!P2[e]){P2[e]={};for(var r=0;r<e[n(228)];r++)P2[e][e[n(241)](r)]=r}return P2[e][t]}function abe(e,t,n){const r=oh;var s=[],o=4,i=4,c=3,u="",h=[],p,m,x,C,b,g,k,j={val:n(0),position:t,index:1};for(p=0;p<3;p+=1)s[p]=p;for(x=0,b=Math.pow(2,2),g=1;g!=b;)C=j[r(231)]&j[r(227)],j[r(227)]>>=1,j[r(227)]==0&&(j[r(227)]=t,j[r(231)]=n(j[r(226)]++)),x|=(C>0?1:0)*g,g<<=1;switch(x){case 0:for(x=0,b=Math[r(244)](2,8),g=1;g!=b;)C=j[r(231)]&j.position,j.position>>=1,j[r(227)]==0&&(j[r(227)]=t,j[r(231)]=n(j[r(226)]++)),x|=(C>0?1:0)*g,g<<=1;k=O2(x);break;case 1:for(x=0,b=Math[r(244)](2,16),g=1;g!=b;)C=j[r(231)]&j[r(227)],j[r(227)]>>=1,j[r(227)]==0&&(j[r(227)]=t,j[r(231)]=n(j.index++)),x|=(C>0?1:0)*g,g<<=1;k=O2(x);break;case 2:return""}for(s[3]=k,m=k,h[r(236)](k);;){if(j.index>e)return"";for(x=0,b=Math.pow(2,c),g=1;g!=b;)C=j.val&j[r(227)],j[r(227)]>>=1,j.position==0&&(j[r(227)]=t,j[r(231)]=n(j[r(226)]++)),x|=(C>0?1:0)*g,g<<=1;switch(k=x){case 0:for(x=0,b=Math[r(244)](2,8),g=1;g!=b;)C=j[r(231)]&j.position,j[r(227)]>>=1,j[r(227)]==0&&(j.position=t,j[r(231)]=n(j[r(226)]++)),x|=(C>0?1:0)*g,g<<=1;s[i++]=O2(x),k=i-1,o--;break;case 1:for(x=0,b=Math.pow(2,16),g=1;g!=b;)C=j[r(231)]&j.position,j[r(227)]>>=1,j[r(227)]==0&&(j.position=t,j[r(231)]=n(j[r(226)]++)),x|=(C>0?1:0)*g,g<<=1;s[i++]=O2(x),k=i-1,o--;break;case 2:return h[r(232)]("")}if(o==0&&(o=Math[r(244)](2,c),c++),s[k])u=s[k];else if(k===i)u=m+m.charAt(0);else return null;h[r(236)](u),s[i++]=m+u[r(241)](0),o--,m=u,o==0&&(o=Math[r(244)](2,c),c++)}}function sbe(e){return a.jsxs("svg",{color:"accent",height:"8",viewBox:"0 0 24 24",...e,children:[a.jsx("g",{fill:"none",stroke:"#888888",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"matrix(0.166612, 0, 0, 0.166612, 14.40597, 11.442867)"}),a.jsx("g",{transform:"matrix(0.764827, 0, 0, 0.764827, 2.823834, 2.82207)",children:a.jsx("path",{d:"M 12.886 0.233 C 14.248 0.233 15.368 1.262 15.514 2.587 L 17.588 2.587 C 18.98 2.587 20.133 3.663 20.229 5.053 L 20.235 5.234 C 20.234 5.673 19.91 6.047 19.474 6.106 L 19.351 6.116 C 18.911 6.116 18.538 5.791 18.479 5.354 L 18.47 5.234 C 18.47 4.794 18.145 4.42 17.707 4.358 L 17.588 4.35 L 15.08 4.35 C 14.588 5.083 13.765 5.52 12.886 5.519 L 8.761 5.519 C 7.881 5.52 7.058 5.083 6.567 4.351 L 4.059 4.35 C 3.617 4.35 3.245 4.677 3.185 5.114 L 3.176 5.234 L 3.176 21.121 C 3.176 21.569 3.508 21.936 3.939 21.995 L 4.059 22.004 L 7.587 22.004 C 8.027 22.004 8.402 22.329 8.463 22.765 L 8.471 22.885 C 8.471 23.372 8.075 23.767 7.587 23.767 L 4.059 23.767 C 2.666 23.768 1.512 22.691 1.418 21.303 L 1.412 21.121 L 1.412 5.234 C 1.412 3.841 2.488 2.687 3.878 2.592 L 4.059 2.587 L 6.133 2.587 C 6.281 1.247 7.412 0.233 8.761 0.233 L 12.886 0.233 Z M 12.886 1.998 L 8.761 1.998 C 8.084 2.023 7.689 2.771 8.048 3.344 C 8.203 3.59 8.47 3.744 8.761 3.754 L 12.886 3.754 C 13.562 3.779 14.011 3.064 13.693 2.465 C 13.535 2.167 13.223 1.986 12.886 1.998 Z",fill:"rgb(255, 193, 49)"})}),a.jsx("path",{d:"M 18.086 8.404 C 19.151 8.404 20.034 9.228 20.107 10.289 L 20.111 10.428 L 20.111 18.975 C 20.111 20.04 19.288 20.923 18.224 20.995 L 18.086 21 L 12.238 21 C 11.173 21 10.291 20.176 10.217 19.114 L 10.214 18.975 L 10.214 10.428 C 10.214 9.364 11.037 8.48 12.099 8.408 L 12.238 8.404 L 18.086 8.404 Z M 12.308 12.418 C 12.308 12.418 12.295 12.4 12.318 12.466 C 12.348 12.524 12.407 12.617 12.451 12.661 C 12.49 12.699 12.563 12.743 12.607 12.766 C 12.65 12.78 12.739 12.8 12.794 12.805 L 17.727 12.805 C 17.76 12.804 17.814 12.795 17.848 12.788 C 17.875 12.779 17.93 12.758 17.961 12.743 C 17.992 12.724 18.047 12.685 18.071 12.661 C 18.1 12.632 18.143 12.577 18.163 12.546 C 18.204 12.454 18.253 12.275 18.261 12.177 C 18.248 12.079 18.205 11.926 18.167 11.845 C 18.119 11.778 18.032 11.68 17.968 11.644 C 17.912 11.611 17.801 11.584 17.727 11.578 L 12.794 11.578 C 12.744 11.582 12.663 11.597 12.611 11.615 C 12.563 11.64 12.492 11.686 12.451 11.722 C 12.417 11.758 12.353 11.851 12.317 11.919 C 12.293 11.99 12.267 12.113 12.261 12.19 L 12.308 12.418 Z M 12.308 15.004 C 12.308 15.004 12.295 14.986 12.318 15.052 C 12.348 15.11 12.407 15.203 12.451 15.247 C 12.49 15.285 12.563 15.329 12.607 15.351 C 12.65 15.366 12.739 15.386 12.794 15.39 L 17.727 15.39 C 17.76 15.39 17.814 15.381 17.848 15.374 C 17.875 15.364 17.93 15.344 17.961 15.329 C 17.992 15.309 18.047 15.27 18.071 15.247 C 18.1 15.218 18.143 15.163 18.163 15.132 C 18.204 15.039 18.253 14.86 18.261 14.763 C 18.248 14.665 18.205 14.512 18.167 14.431 C 18.119 14.364 18.032 14.266 17.968 14.229 C 17.912 14.197 17.801 14.17 17.727 14.164 L 12.794 14.164 C 12.744 14.168 12.663 14.183 12.611 14.2 C 12.563 14.226 12.492 14.272 12.451 14.307 C 12.417 14.343 12.353 14.437 12.317 14.505 C 12.293 14.576 12.267 14.699 12.261 14.776 L 12.308 15.004 Z M 12.308 17.589 C 12.308 17.589 12.295 17.571 12.318 17.637 C 12.348 17.695 12.407 17.788 12.451 17.832 C 12.49 17.87 12.563 17.914 12.607 17.937 C 12.65 17.951 12.739 17.971 12.794 17.976 L 17.727 17.976 C 17.76 17.975 17.814 17.966 17.848 17.959 C 17.875 17.95 17.93 17.929 17.961 17.914 C 17.992 17.895 18.047 17.856 18.071 17.832 C 18.1 17.803 18.143 17.748 18.163 17.717 C 18.204 17.625 18.253 17.446 18.261 17.348 C 18.248 17.25 18.205 17.097 18.167 17.016 C 18.119 16.949 18.032 16.851 17.968 16.815 C 17.912 16.782 17.801 16.755 17.727 16.749 L 12.794 16.749 C 12.744 16.753 12.663 16.768 12.611 16.786 C 12.563 16.811 12.492 16.857 12.451 16.893 C 12.417 16.929 12.353 17.022 12.317 17.09 C 12.293 17.161 12.267 17.284 12.261 17.361 L 12.308 17.589 Z",fill:"rgb(36, 200, 219)"})]})}function obe(){var re,le;const{t:e,i18n:t}=wt(),[n,r]=f.useState(!1),s=ts(),{systemTheme:o}=o2(),{setSystemTheme:i,themeDark:c}=ut(pu),{currentCollectionId:u,collections:h}=ut(hr),{selectCollectionById:p}=z4(),m=c();f.useEffect(()=>{vn("is_autostart_enabled").then(oe=>{r(!!oe)})},[]),f.useEffect(()=>{o&&(vn("set_icon",{name:"main",isDark:o==="dark"}),i(o))},[o]);const x=()=>Va==null?void 0:Va.minimize(),C=async()=>{await(Va==null?void 0:Va.isMaximized())?Va==null||Va.unmaximize():Va==null||Va.maximize()},b=()=>Va.hide(),g=()=>Va.close(),{pinnedClips:k}=ut(hr),{isShowCollectionNameOnNavBar:j,isShowDisabledCollectionsOnNavBarMenu:S,setIsShowCollectionNameOnNavBar:E,copyPasteDelay:N,setCopyPasteDelay:T,setIsHistoryEnabled:M,isHistoryEnabled:L,setLicenseKey:D,licenseKey:P,setIsHistoryAutoUpdateOnCaputureEnabled:A,isHistoryAutoUpdateOnCaputureEnabled:B,setIsShowDisabledCollectionsOnNavBarMenu:z}=ut(Nr),{fontSize:R,decreaseFontSize:$,increaseFontSize:_,resetFontSize:U,setIsSwapPanels:K,isShowPinned:W,setIsShowPinned:G,isSwapPanels:Z}=ut(ra);Oa(["alt+b"],()=>{s("/history",{replace:!0})}),Oa(["alt+m"],()=>{s("/menu",{replace:!0})}),Oa(["alt+l"],()=>{fi.value=!0}),Oa(["alt+p"],()=>{K(!Z)}),f.useEffect(()=>{if(P)try{const oe=DF(P);oe&&typeof oe.id=="string"&&oe.id.length>0&&(ir.value=oe)}catch{ir.value=null,D(null)}else ir.value=null},[P]);const F=Em(BS),V=Em(WS),q=_z(),ne=Sm(),{licenseExpInDays:Q}=f.useMemo(()=>Nz(),[ir.value]),ae=Vi(1712858858198).format("MMMM, YYYY");return a.jsx("div",{"data-tauri-drag-region":!0,className:"h-[41px] absolute top-0 left-0 w-full",children:a.jsxs(fP,{className:"border-0 !h-full border-b border-slate-200/50 dark:border-slate-500/50 rounded-b-none bg-gray-50 pl-3 hover:bg-white dark:hover:bg-gray-950 active:cursor-move active:bg-white transform duration-300 dark:bg-gray-900 dark:text-slate-300",children:[a.jsx(kb,{children:a.jsx("div",{className:"inline-flex h-fit w-fit items-center text-cyan-500",children:a.jsx(sbe,{width:28,height:28,"data-tauri-drag-region":!0})})}),a.jsxs(kb,{children:[a.jsxs(jb,{className:"md m-0 px-2.5 text-sm font-semibold whitespace-nowrap",children:[a.jsx(X,{className:"font-semibold",children:e(F?"PasteBar Pro":"PasteBar",{ns:"common"})}),V&&a.jsx(X,{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-1.5 rounded-md !text-slate-600 text-xs ml-1.5 mb-0 py-0.5",children:"beta"})]}),a.jsxs(Cb,{className:"w-[200px]",children:[a.jsxs(Tr,{children:[e("About PasteBar",{ns:"common"}),a.jsx(gs,{children:a.jsxs(De,{text:e("Build on {{buildDate}}",{ns:"common",buildDate:ae}),isCompact:!0,side:"right",children:["v","0.0.4",V?"b":""]})})]}),!F&&a.jsxs(a.Fragment,{children:[a.jsx(Ws,{}),a.jsx(Tr,{onClick:()=>{s("/app-settings/license/register",{replace:!0})},children:e("Register License",{ns:"common"})})]}),F&&q&&a.jsxs(a.Fragment,{children:[a.jsx(Ws,{}),a.jsx(Tr,{onClick:()=>{s("/app-settings/license",{replace:!0})},className:"text-amber-700 dark:text-amber-600",children:e("License Expired",{ns:"common"})})]}),a.jsx(Tr,{onClick:()=>{s("/app-settings/license",{replace:!0})},children:e("Check for Updates",{ns:"common"})}),a.jsx(Ws,{}),a.jsxs(sm,{children:[a.jsxs(Hu,{children:[e("Settings",{ns:"settings"})," ..."]}),a.jsxs($u,{className:"w-[230px] dark:text-slate-300",children:[a.jsxs(Tr,{onClick:()=>{s("/app-settings/history",{replace:!0})},children:[e("Clipboard History Settings",{ns:"settings"}),a.jsx(gs,{children:a.jsx(Vs,{keys:"ALT+H"})})]}),a.jsxs(Tr,{onClick:()=>{s("/app-settings/collections",{replace:!0})},children:[e("Manage Collections",{ns:"settings"}),a.jsx(gs,{children:a.jsx(Vs,{keys:"ALT+\u0421"})})]}),a.jsx(Tr,{onClick:()=>{s("/app-settings/preferences",{replace:!0})},children:e("User Preferences",{ns:"settings"})}),a.jsx(Tr,{onClick:()=>{s("/app-settings/security",{replace:!0})},children:e("Security",{ns:"settings"})}),a.jsxs(Tr,{onClick:()=>{s("/app-settings/license",{replace:!0})},children:[e("License",{ns:"settings"}),F&&a.jsx(gs,{children:a.jsxs(De,{text:e("Expires on {{licenseExpInDays}}",{ns:"common",licenseExpInDays:Q}),isCompact:!0,side:"right",children:["Pro",V?" (beta)":""]})})]}),a.jsx(Ws,{}),a.jsxs(sm,{children:[a.jsxs(Hu,{children:[e("Capture History",{ns:"history"})," ..."]}),a.jsxs($u,{className:"dark:text-slate-300 text-slate-800",children:[a.jsxs(Za,{checked:L,onClick:oe=>{oe.preventDefault(),M(!L)},children:[a.jsx(X,{className:"mr-2 ".concat(L?"text-slate-800":"text-slate-900/50"),children:e("Enable Capture History",{ns:"history"})}),a.jsx(gs,{className:"ml-auto",children:a.jsx(Vs,{keys:"ALT+H"})})]}),a.jsxs(Za,{checked:B,onClick:oe=>{oe.preventDefault(),A(!B)},children:[a.jsx(X,{className:"mr-2 ".concat(B?"text-slate-800":"text-slate-900/50"),children:e("Auto Update on Capture",{ns:"history"})}),a.jsx(gs,{className:"ml-auto",children:a.jsx(Vs,{keys:"ALT+A"})})]}),a.jsx(Ws,{}),a.jsxs(Tr,{onClick:()=>{s("/app-settings/history",{replace:!0})},children:[a.jsx(UC,{className:"mr-2 h-4 w-4"}),e("All History Settings",{ns:"history"})," ..."]})]})]}),a.jsxs(sm,{children:[a.jsx(Hu,{children:a.jsxs(a.Fragment,{children:[e("Paste Delay",{ns:"contextMenus"}),"...",N&&a.jsxs(it,{className:"ml-2 py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[N,"s"]})]})}),a.jsxs($u,{className:"w-[235px] dark:text-slate-300",children:[a.jsx(Za,{checked:N===1,onSelect:()=>{T(1)},children:a.jsxs(X,{children:["1 ",e("second",{ns:"common"})]})}),a.jsx(Za,{checked:N===2,onSelect:()=>{T(2)},children:a.jsxs(X,{children:["2 ",e("seconds",{ns:"common"})]})}),a.jsx(Za,{checked:N===3,onSelect:()=>{T(3)},children:a.jsxs(X,{children:["3 ",e("seconds",{ns:"common"})]})}),a.jsx(Za,{checked:N===4,onSelect:()=>{T(4)},children:a.jsxs(X,{children:["4 ",e("seconds",{ns:"common"})]})}),a.jsx(Za,{checked:N===5,onSelect:()=>{T(5)},children:a.jsxs(X,{children:["5 ",e("seconds",{ns:"common"})]})})]})]}),a.jsx(Ws,{}),a.jsxs(Tr,{onClick:()=>{window.location.reload()},children:[e("Refresh Application UI",{ns:"settings"}),a.jsx(gs,{children:a.jsx(Vs,{keys:"ALT+R"})})]})]})]}),a.jsx(Ws,{}),a.jsxs(Tr,{onClick:()=>{fi.value=!0},children:[e("Lock App Screen",{ns:"navbar"}),a.jsx(gs,{children:"\u2318L"})]}),a.jsxs(Tr,{onClick:b,children:[e("Close Main Window",{ns:"navbar"}),a.jsx(gs,{children:"\u2318W"})]}),a.jsxs(Tr,{onClick:g,children:[e("Quit",{ns:"common"}),a.jsx(gs,{children:"\u2318Q"})]})]})]}),a.jsxs(kb,{children:[a.jsx(jb,{className:"font-normal px-2.5",children:e("View",{ns:"navbar"})}),a.jsxs(Cb,{children:[a.jsxs(Tr,{onClick:()=>{s("/history",{replace:!0})},children:[e("Clipboard History",{ns:"common"}),a.jsx(gs,{children:"\u2318B"})]}),a.jsxs(Tr,{onClick:()=>{s("/menu",{replace:!0})},children:[e("Paste Menu",{ns:"common"}),a.jsx(gs,{children:"\u2318M"})]}),a.jsx(gs,{}),a.jsx(Ws,{}),a.jsxs(sm,{children:[a.jsxs(Hu,{children:[e("Options",{ns:"navbar"})," ..."]}),a.jsxs($u,{className:"w-[235px] dark:text-slate-300",children:[a.jsxs(Za,{checked:Z,onClick:()=>{K(!Z)},children:[e("Swap Panels Layout",{ns:"navbar"}),a.jsx(gs,{children:"\u2318P"})]}),a.jsx(Za,{checked:j,onClick:()=>{E(!j)},children:e("Show Collections Name",{ns:"navbar"})}),a.jsx(Za,{checked:S,onClick:()=>{z(!S)},children:e("Show Disabled Collections",{ns:"settings"})}),a.jsx(Ws,{}),a.jsx(Za,{checked:n,onClick:async()=>{await vn("autostart",{enabled:!n}),r(!n)},children:e("Enable Auto Start",{ns:"settings"})})]})]}),a.jsx(Xxe,{}),a.jsx(Ws,{}),a.jsxs(Tr,{disabled:R==="125%",onClick:oe=>{oe.preventDefault(),_()},children:[e("Increase UI Font Size",{ns:"settings"})," ",a.jsx(Ir,{width:"1em",height:"18",className:"ml-auto"})]}),a.jsxs(Tr,{disabled:R==="85%",onClick:oe=>{oe.preventDefault(),$()},children:[e("Decrease UI Font Size",{ns:"settings"})," ",a.jsx(oL,{width:"1em",height:"18",className:"ml-auto"})]}),a.jsx(Tr,{disabled:R==="100%",onClick:oe=>{oe.preventDefault(),U()},children:e("Reset Font Size",{ns:"settings"})}),a.jsx(Ws,{}),a.jsxs(sm,{children:[a.jsxs(Hu,{children:[e("Language",{ns:"navbar"})," ..."]}),a.jsx($u,{children:Cj.map(({code:oe,name:ie,flag:de})=>a.jsxs(Za,{checked:t.language===oe,className:"pr-6 ".concat(t.language===oe?"font-semibold":""),onClick:()=>{t.changeLanguage(oe)},children:[a.jsx("span",{className:"flags mr-3",children:de})," ",ie]},oe))})]})]})]}),h.length>0&&a.jsxs(kb,{children:[a.jsx(jb,{className:"font-normal min-w-fit px-2.5",children:a.jsxs(fe,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[a.jsx(vse,{className:"mr-1.5 text-slate-500",size:18}),a.jsx(J,{className:"overflow-hidden text-ellipsis max-w-[16rem]",children:j?(le=(re=h.find(({collectionId:oe})=>oe===u))==null?void 0:re.title)!=null?le:e("Collections",{ns:"collections"}):e("Collections",{ns:"collections"})})]})}),a.jsxs(Cb,{forceMount:!0,children:[a.jsx(Tr,{inset:!0,disabled:!0,className:"py-0.5",children:e("Switch collections",{ns:"collections"})}),a.jsx(Ws,{}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},autoHide:!1,children:a.jsx($ue,{value:u!=null?u:"",children:h.filter(({isEnabled:oe})=>S||oe).sort((oe,ie)=>{if(S){if(oe.isEnabled&&!ie.isEnabled)return-1;if(!oe.isEnabled&&ie.isEnabled)return 1}return oe.createdAt-ie.createdAt}).map(({collectionId:oe,isEnabled:ie,isSelected:de,title:xe})=>a.jsx(gP,{value:oe,disabled:!ie,onClick:()=>{p({selectCollection:{collectionId:oe}})},children:a.jsx("span",{className:de?"font-semibold":"",children:xe})},oe))})}),a.jsx(Ws,{}),a.jsxs(Tr,{onClick:()=>{s("/app-settings/collections",{replace:!0})},children:[a.jsx(Tu,{className:"mr-2",size:14}),e("Manage Collections",{ns:"collections"})]}),a.jsxs(Tr,{onClick:()=>{ne?s("/app-settings/collections/new",{replace:!0}):Uc.value=!0},children:[a.jsx(Ir,{className:"mr-2",size:15}),e("Add Collection",{ns:"collections"}),a.jsx(eh,{})]})]})]}),a.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full w-full items-center justify-center",children:[a.jsx(Jxe,{isDark:m}),W?a.jsx(ye,{onClick:()=>{G(!1)},title:e("Hide Pinned",{ns:"pinned"}),variant:"ghost",className:"relative h-7 focus:outline-none px-2 mx-2 !bg-slate-50 text-slate-400 dark:!bg-slate-900 dark:hover:!bg-slate-800 hover:text-slate-600 dark:text-slate-400",children:a.jsx(bo.pinoff,{className:"h-4 w-4"})}):a.jsxs(ye,{onClick:()=>{G(!0)},title:e("Show Pinned",{ns:"pinned"}),variant:"ghost",className:"relative h-7 focus:outline-none px-2 mx-2 !bg-slate-50 text-slate-400 dark:!bg-slate-900 dark:hover:!bg-slate-800 hover:text-slate-600 dark:text-slate-400",children:[a.jsx(bo.pin,{className:"h-4 w-4"}),k.length>0&&a.jsx(it,{variant:"outline",className:"bg-orange-100 dark:bg-orange-900/80 dark:border-orange-950 border absolute border-orange-50 cursor-pointer px-1.5 left-[30px] top",children:a.jsx(X,{className:"font-mono !text-orange-400 font-semibold",children:k.length})})]})]}),a.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full justify-end",children:[a.jsx(ye,{onClick:x,title:e("Window:::Minimize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:a.jsx(bo.minimize,{className:"h-3 w-3"})}),a.jsx(ye,{onClick:C,title:e("Window:::Maximize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:a.jsx(Yre,{className:"h-4 w-4"})}),a.jsx(ye,{onClick:b,variant:"ghost",className:"h-8 focus:outline-none",title:e("Window:::Close Window",{ns:"navbar"}),children:a.jsx(Rn,{className:"h-4 w-4"})})]})]})})}function ibe({children:e,...t}){return a.jsx(Pfe,{...t,children:e})}const lbe="Escape",OF="keyup";function cbe(e){const t=f.useCallback(n=>{e(n.key===lbe)},[e]);f.useEffect(()=>(document.addEventListener(OF,t,!1),()=>{document.removeEventListener(OF,t,!1)}),[])}function dbe(){const e=["Alt","Meta"];function t(o){return e.includes(o.key)}function n(o){t(o)&&(nn.value=!0)}function r(o){t(o)&&(nn.value=!1)}function s(){nn.value=!1}return f.useEffect(()=>(window.addEventListener("keydown",n),window.addEventListener("keyup",r),window.addEventListener("focus",s),()=>{window.removeEventListener("keydown",n),window.removeEventListener("keyup",r),window.removeEventListener("focus",s)}),[]),nn}const jd=It(""),ube=({delay:e=800,onCopied:t=()=>{}})=>{const{copyPasteSequencePinnedDelay:n,copyPasteSequenceIsReversOrder:r}=ut(Nr),s=i=>{i&&!jd.value&&(jd.value=i,setTimeout(()=>{Sa("copy_history_item",{historyId:i}).then(c=>{c==="ok"?requestAnimationFrame(()=>{jd.value="",t()}):(jd.value="",console.error("Failed to copy history item",c))}).catch(c=>{jd.value="",console.error("Failed to copy history item",c)})},e))},o=async i=>{r&&(i=i.reverse());for(const c of i)s(c),await new Promise(u=>setTimeout(u,n*1e3))};return[jd.value,s,o]},Cd=It(""),d1=It(0),hbe=({delay:e=800,onPasted:t=()=>{}})=>{const{copyPasteDelay:n,copyPasteSequencePinnedDelay:r,copyPasteSequenceIsReversOrder:s}=ut(Nr),o=f.useRef(),i=(p,m=0)=>new Promise((x,C)=>{Sa("copy_paste_history_item",{historyId:p,delay:m}).then(b=>{b==="ok"?x():(Cd.value="",console.error("Failed to copy history item",b),C())}).catch(b=>{Cd.value="",console.error("Failed to copy history item",b),C()})}),c=f.useCallback((p,m=1e3)=>(clearInterval(o.current),new Promise(x=>{d1.value=p,o.current=setInterval(()=>{d1.value>0?(d1.value===1&&x(),d1.value-=1):clearInterval(o.current)},m)})),[Cd.value]),u=(p,m)=>new Promise(async x=>{m=m!=null?m:n,p?(Cd.value=p,m>0&&await c(m),await i(p),setTimeout(()=>{requestAnimationFrame(()=>{t(),x()})},e)):(Cd.value="",x())}),h=async p=>{s&&(p=p.reverse());for(const m of p)await u(m,r)};return[Cd.value,d1.value,u,h]},pbe=()=>window.__TAURI_INVOKE__;function mbe(){return pbe()("app_ready")}var PF={VITE_ENABLE_REACT_QUERY_DEVTOOLS:"",VITE_DISABLE_SAVE_TRANSLATIONS:"",VITE_DISABLE_LANGUAGE_FALLBACK:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const RF=["mousemove","keydown","scroll","keypress","mousedown"];function fbe(){dbe(),cbe(p=>{bee.value=p});const e=cn(),t=ts(),n=ut(ra),r=He(null),s=ut(Nr),o=ut(Yi),i=f.useRef(),{i18n:c}=wt(),u=f.useCallback(ML(()=>{r.value===null||fi.value||(fi.value=!1,i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{fi.value=!0},r.value))},1e3),[r]);f.useEffect(()=>{fi.value?s.setIsAppLocked(!0):s.setIsAppLocked(!1)},[fi.value]),f.useEffect(()=>{mbe().then(g=>{var k,j,S,E,N,T,M,L,D,P,A,B,z,R,$,_,U,K,W,G,Z,F,V,q,ne,Q,ae,re,le,oe,ie,de,xe,je,Ee,Te,Me,ze,qe,Ye,Ve,Lt,$e,st,At,Qt;if(g!==null)try{const{constants:Vt,settings:_e,permissionstrusted:sn}=JSON.parse(g),{app_dev_data_dir:Ht,app_data_dir:kt,app_detect_languages_supported:rn}=Vt;(k=_e.userSelectedLanguage)!=null&&k.valueText&&((j=_e.userSelectedLanguage)==null?void 0:j.valueText)!==""&&c.language!==((S=_e.userSelectedLanguage)==null?void 0:S.valueText)&&c.changeLanguage(_e.userSelectedLanguage.valueText),s.initSettings({appDataDir:PF.TAURI_DEBUG?Ht:kt,appVersion:(E=_e.appVersion)==null?void 0:E.valueText,isFirstRun:(N=_e.isFirstRun)==null?void 0:N.valueBool,isFirstRunAfterUpdate:(T=_e.isFirstRunAfterUpdate)==null?void 0:T.valueBool,isHistoryDetectLanguageEnabled:(M=_e.isHistoryDetectLanguageEnabled)==null?void 0:M.valueBool,historyDetectLanguageMinLines:(L=_e.historyDetectLanguageMinLines)==null?void 0:L.valueInt,historyExclusionList:(D=_e.historyExclusionList)==null?void 0:D.valueText,isExclusionListEnabled:(P=_e.isExclusionListEnabled)==null?void 0:P.valueBool,isAutoMaskWordsListEnabled:(A=_e.isAutoMaskWordsListEnabled)==null?void 0:A.valueBool,autoMaskWordsList:(B=_e.autoMaskWordsList)==null?void 0:B.valueText,historyDetectLanguagesEnabledList:(z=_e.historyDetectLanguagesEnabledList)==null?void 0:z.valueText.split(","),isHistoryAutoUpdateOnCaputureEnabled:(R=_e.isHistoryAutoUpdateOnCaputureEnabled)==null?void 0:R.valueBool,isHistoryEnabled:($=_e.isHistoryEnabled)==null?void 0:$.valueBool,isAutoClearSettingsEnabled:(_=_e.isAutoClearSettingsEnabled)==null?void 0:_.valueBool,autoClearSettingsDuration:(U=_e.autoClearSettingsDuration)==null?void 0:U.valueInt,autoClearSettingsDurationType:(K=_e.autoClearSettingsDurationType)==null?void 0:K.valueText,copyPasteDelay:(W=_e.copyPasteDelay)==null?void 0:W.valueInt,copyPasteSequencePinnedDelay:(Z=(G=_e.copyPasteSequencePinnedDelay)==null?void 0:G.valueInt)!=null?Z:3,copyPasteSequenceIsReversOrder:(F=_e.copyPasteSequenceIsReversOrder)==null?void 0:F.valueBool,pasteSequenceEachSeparator:(V=_e.pasteSequenceEachSeparator)==null?void 0:V.valueText,isAutoCloseOnCopyPaste:(q=_e.isAutoCloseOnCopyPaste)==null?void 0:q.valueBool,isAutoPreviewLinkCardsEnabled:(ne=_e.isAutoPreviewLinkCardsEnabled)==null?void 0:ne.valueBool,isAutoFavoriteOnDoubleCopyEnabled:(Q=_e.isAutoFavoriteOnDoubleCopyEnabled)==null?void 0:Q.valueBool,isIdleScreenAutoLockEnabled:(ae=_e.isIdleScreenAutoLockEnabled)==null?void 0:ae.valueBool,idleScreenAutoLockTimeInMinutes:(re=_e.idleScreenAutoLockTimeInMinutes)==null?void 0:re.valueInt,isShowHistoryCaptureOnLockedScreen:(le=_e.isShowHistoryCaptureOnLockedScreen)==null?void 0:le.valueBool,screenLockPassCode:(oe=_e.screenLockPassCode)==null?void 0:oe.valueText,screenLockPassCodeLength:(ie=_e.screenLockPassCodeLength)==null?void 0:ie.valueInt,screenLockRecoveryPasswordMasked:(de=_e.screenLockRecoveryPasswordMasked)==null?void 0:de.valueText,isAppLocked:(xe=_e.isAppLocked)==null?void 0:xe.valueBool,isScreenLockPassCodeRequireOnStart:(je=_e.isScreenLockPassCodeRequireOnStart)==null?void 0:je.valueBool,isSearchNameOrLabelOnly:(Ee=_e.isSearchNameOrLabelOnly)==null?void 0:Ee.valueBool,isSkipAutoStartPrompt:(Te=_e.isSkipAutoStartPrompt)==null?void 0:Te.valueBool,isShowCollectionNameOnNavBar:(Me=_e.isShowCollectionNameOnNavBar)==null?void 0:Me.valueBool,isShowDisabledCollectionsOnNavBarMenu:(ze=_e.isShowDisabledCollectionsOnNavBarMenu)==null?void 0:ze.valueBool,userSelectedLanguage:(qe=_e.userSelectedLanguage)==null?void 0:qe.valueText,licenseKey:(Ye=_e.licenseKey)==null?void 0:Ye.valueText,isAppReady:!0}),s.initConstants({APP_DETECT_LANGUAGES_SUPPORTED:rn}),EI().then(Zt=>{var Jt;Zt==="Windows_NT"&&((Jt=_e.copyPasteDelay)==null?void 0:Jt.valueInt)===0&&s.updateSetting("copyPasteDelay",2)}),(Ve=_e.isIdleScreenAutoLockEnabled)!=null&&Ve.valueBool&&((Lt=_e.idleScreenAutoLockTimeInMinutes)==null?void 0:Lt.valueInt)>0&&(RF.forEach(Zt=>window.addEventListener(Zt,u)),r.value=(($e=_e.idleScreenAutoLockTimeInMinutes)==null?void 0:$e.valueInt)*1e3*60),((st=_e.isAppLocked)!=null&&st.valueBool||(At=_e.isScreenLockPassCodeRequireOnStart)!=null&&At.valueBool)&&(fi.value=!0),(Qt=_e.isSkipAutoStartPrompt)!=null&&Qt.valueBool||Sa("is_autostart_enabled").then(async Zt=>{if(!Zt&&await vj("Start the app at system startup?",{title:"PasteBar auto start",okLabel:"Turn on",cancelLabel:"Later"}))try{await Sa("autostart",{enabled:!0})}catch(Jt){console.error(Jt)}}),sn===!1&&(bx.value=!0)}catch(Vt){console.error(Vt)}}),EI().then(g=>{n.setOSType(g)});const p=Il("clipboard://clipboard-monitor/update",async g=>{g.payload==="clipboard update"&&(jd.value&&(await new Promise(k=>setTimeout(k,600)),jd.value=""),Cd.value&&(await new Promise(k=>setTimeout(k,600)),Cd.value=""),await e.invalidateQueries({queryKey:["get_clipboard_history"]}),await e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}),setTimeout(()=>{o.scrollToTopHistoryList()},100),setTimeout(()=>{e.setQueryData(["get_clipboard_history"],k=>{if(k)return{...k,pages:k.pages.slice(0,1),pageParams:k.pageParams.slice(0,1)}})},1e3),Sa("build_system_menu"))}),m=Il("clips://clips-monitor/update",async g=>{g.payload==="update"&&await e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}),x=Il("macosx-permissions-modal",async g=>{g.payload==="show"&&(bx.value=!0)}),C=Il("setting:update",async g=>{const{name:k,value_bool:j}=g.payload;k==="isHistoryEnabled"&&s.updateSetting("isHistoryEnabled",!!j)}),b=Il("menu:add_first_menu_item",async()=>{t("/menu",{replace:!0})});return c.on("languageChanged",async function(){await e.invalidateQueries({queryKey:["get_clipboard_history"]})}),window.addEventListener("contextmenu",g=>{PF.TAURI_DEBUG||g.preventDefault()}),()=>{p.then(g=>{g()}),b.then(g=>{g()}),m.then(g=>{g()}),C.then(g=>{g()}),x.then(g=>{g()}),i.current&&clearTimeout(i.current),RF.forEach(g=>window.removeEventListener(g,u))}},[]);const h=ut(ra);return f.useEffect(()=>{document.documentElement.style.fontSize=h.fontSize},[h.fontSize]),a.jsx(a.Fragment,{children:a.jsx(ibe,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:a.jsx("div",{className:"bg-transparent ".concat(n.isMacOSX?"p-0":"p-1"," rounded-md"),children:a.jsxs("div",{className:"border rounded-lg shadow-window border-gray-100 dark:border-gray-800 relative bg-slate-100",children:[a.jsx(obe,{}),a.jsx(nE,{})]})})})})}function gbe(){const{direction:e,setDirection:t}=ut(pu),n=r=>{t(r)};return f.useEffect(()=>{window!==void 0&&window.document.documentElement.setAttribute("dir",e)},[e]),[e,n]}var AF=rb(),pE=function(){},A2=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:pE,onWheelCapture:pE,onTouchMoveCapture:pE}),s=r[0],o=r[1],i=e.forwardProps,c=e.children,u=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,x=e.sideCar,C=e.noIsolation,b=e.inert,g=e.allowPinchZoom,k=e.as,j=k===void 0?"div":k,S=gg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=x,N=nb([n,t]),T=er(er({},S),s);return f.createElement(f.Fragment,null,p&&f.createElement(E,{sideCar:AF,removeScrollBar:h,shards:m,noIsolation:C,inert:b,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),i?f.cloneElement(f.Children.only(c),er(er({},T),{ref:N})):f.createElement(j,er({},T,{className:u,ref:N}),c))});A2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},A2.classNames={fullWidth:Au,zeroRight:Ru};var mE=!1;if(typeof window<"u")try{var z2=Object.defineProperty({},"passive",{get:function(){return mE=!0,!0}});window.addEventListener("test",z2,z2),window.removeEventListener("test",z2,z2)}catch{mE=!1}var Om=mE?{passive:!1}:!1,vbe=function(e){return e.tagName==="TEXTAREA"},zF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vbe(e)&&n[t]==="visible")},ybe=function(e){return zF(e,"overflowY")},xbe=function(e){return zF(e,"overflowX")},FF=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=HF(e,n);if(r){var s=$F(e,n),o=s[1],i=s[2];if(o>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},bbe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wbe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},HF=function(e,t){return e==="v"?ybe(t):xbe(t)},$F=function(e,t){return e==="v"?bbe(t):wbe(t)},kbe=function(e,t){return e==="h"&&t==="rtl"?-1:1},jbe=function(e,t,n,r,s){var o=kbe(e,window.getComputedStyle(t).direction),i=o*r,c=n.target,u=t.contains(c),h=!1,p=i>0,m=0,x=0;do{var C=$F(e,c),b=C[0],g=C[1],k=C[2],j=g-k-o*b;(b||j)&&HF(e,c)&&(m+=j,x+=b),c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&(s&&m===0||!s&&i>m)||!p&&(s&&x===0||!s&&-i>x))&&(h=!0),h},F2=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BF=function(e){return[e.deltaX,e.deltaY]},WF=function(e){return e&&"current"in e?e.current:e},Cbe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sbe=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ebe=0,Pm=[];function Nbe(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),s=f.useState(Ebe++)[0],o=f.useState(function(){return vg()})[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=tb([e.lockRef.current],(e.shards||[]).map(WF),!0).filter(Boolean);return g.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,k){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var j=F2(g),S=n.current,E="deltaX"in g?g.deltaX:S[0]-j[0],N="deltaY"in g?g.deltaY:S[1]-j[1],T,M=g.target,L=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in g&&L==="h"&&M.type==="range")return!1;var D=FF(L,M);if(!D)return!0;if(D?T=L:(T=L==="v"?"h":"v",D=FF(L,M)),!D)return!1;if(!r.current&&"changedTouches"in g&&(E||N)&&(r.current=T),!T)return!0;var P=r.current||T;return jbe(P,k,g,P==="h"?E:N,!0)},[]),u=f.useCallback(function(g){var k=g;if(!(!Pm.length||Pm[Pm.length-1]!==o)){var j="deltaY"in k?BF(k):F2(k),S=t.current.filter(function(T){return T.name===k.type&&T.target===k.target&&Cbe(T.delta,j)})[0];if(S&&S.should){k.cancelable&&k.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(WF).filter(Boolean).filter(function(T){return T.contains(k.target)}),N=E.length>0?c(k,E[0]):!i.current.noIsolation;N&&k.cancelable&&k.preventDefault()}}},[]),h=f.useCallback(function(g,k,j,S){var E={name:g,delta:k,target:j,should:S};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),p=f.useCallback(function(g){n.current=F2(g),r.current=void 0},[]),m=f.useCallback(function(g){h(g.type,BF(g),g.target,c(g,e.lockRef.current))},[]),x=f.useCallback(function(g){h(g.type,F2(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return Pm.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:x}),document.addEventListener("wheel",u,Om),document.addEventListener("touchmove",u,Om),document.addEventListener("touchstart",p,Om),function(){Pm=Pm.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,Om),document.removeEventListener("touchmove",u,Om),document.removeEventListener("touchstart",p,Om)}},[]);var C=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(o,{styles:Sbe(s)}):null,C?f.createElement(ob,{gapMode:"margin"}):null)}const _be=ab(AF,Nbe);var VF=f.forwardRef(function(e,t){return f.createElement(A2,er({},e,{ref:t,sideCar:_be}))});VF.classNames=A2.classNames;const Ibe=VF,UF="Dialog",[qF,gEe]=ms(UF),[Tbe,Rm]=qF(UF),Mbe=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,c=f.useRef(null),u=f.useRef(null),[h=!1,p]=Ka({prop:r,defaultProp:s,onChange:o});return f.createElement(Tbe,{scope:t,triggerRef:c,contentRef:u,contentId:ga(),titleId:ga(),descriptionId:ga(),open:h,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(m=>!m),[p]),modal:i},n)},Lbe="DialogPortal",[vEe,YF]=qF(Lbe,{forceMount:void 0}),fE="DialogOverlay",Dbe=f.forwardRef((e,t)=>{const n=YF(fE,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=Rm(fE,e.__scopeDialog);return o.modal?f.createElement(mo,{present:r||o.open},f.createElement(Obe,Re({},s,{ref:t}))):null}),Obe=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Rm(fE,n);return f.createElement(Ibe,{as:Rc,allowPinchZoom:!0,shards:[s.contentRef]},f.createElement(yn.div,Re({"data-state":GF(s.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),u1="DialogContent",Pbe=f.forwardRef((e,t)=>{const n=YF(u1,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=Rm(u1,e.__scopeDialog);return f.createElement(mo,{present:r||o.open},o.modal?f.createElement(Rbe,Re({},s,{ref:t})):f.createElement(Abe,Re({},s,{ref:t})))}),Rbe=f.forwardRef((e,t)=>{const n=Rm(u1,e.__scopeDialog),r=f.useRef(null),s=Bn(t,n.contentRef,r);return f.useEffect(()=>{const o=r.current;if(o)return eb(o)},[]),f.createElement(KF,Re({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&o.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,o=>o.preventDefault())}))}),Abe=f.forwardRef((e,t)=>{const n=Rm(u1,e.__scopeDialog),r=f.useRef(!1),s=f.useRef(!1);return f.createElement(KF,Re({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),o.preventDefault()}r.current=!1,s.current=!1},onInteractOutside:o=>{var i,c;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=o.target;!((c=n.triggerRef.current)===null||c===void 0)&&c.contains(u)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}}))}),KF=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,c=Rm(u1,n),u=f.useRef(null),h=Bn(t,u);return Fx(),f.createElement(f.Fragment,null,f.createElement(Hx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o},f.createElement(hg,Re({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":GF(c.open)},i,{ref:h,onDismiss:()=>c.onOpenChange(!1)}))),!1)});function GF(e){return e?"open":"closed"}const zbe=Mbe,Fbe=Dbe,ZF=Pbe,QF=()=>{const[e,t]=f.useState({height:window.innerHeight,width:window.innerWidth});return f.useEffect(()=>{const n=()=>{t({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),e},h1=f.createContext({portalRef:void 0,onOutsideClick:()=>{},isLargeModal:!0}),Hbe=({children:e,isNavVisible:t=!0,outOutsideClick:n=()=>{}})=>a.jsx(Fbe,{onClick:()=>{n()},className:"bg-slate-900/80 fixed ".concat(t?"top-10":"top-0"," bottom-0 left-0 right-0 z-50 grid place-items-center overflow-y-auto"),children:e}),$be=({children:e,outOutsideClick:t,isLargeModal:n,canClose:r})=>{const{height:s}=QF(),o={maxHeight:s-64};return r?a.jsx(ZF,{style:o,className:"".concat(n?"-mt-5":"-mt-80"," min-w-modal rounded-lg outline-none bg-slate-100 dark:bg-slate-800 animate-in fade-in slide-in-from-top-10 duration-300 top-10"),children:e}):a.jsx(ZF,{style:o,onPointerDownOutside:i=>{t&&t(),i.preventDefault()},onInteractOutside:i=>{i.preventDefault()},onEscapeKeyDown:i=>{i.preventDefault()},className:"".concat(n?"-mt-5":"-mt-80"," min-w-modal rounded-lg outline-none bg-slate-100 dark:bg-slate-800 animate-in fade-in slide-in-from-top-10 duration-300 top-10"),children:e})},Wn=({open:e=!0,handleClose:t,canClose:n=!0,isNavVisible:r=!0,isLargeModal:s=!1,onOutsideClick:o=()=>{},children:i})=>{const c=f.useRef(null);return a.jsx(zbe,{open:e,onOpenChange:t,children:a.jsx(Ac,{ref:c,children:a.jsx(h1.Provider,{value:{portalRef:c,isLargeModal:s,onOutsideClick:o},children:a.jsx(Hbe,{isNavVisible:r,outOutsideClick:o,children:a.jsx($be,{canClose:n,outOutsideClick:o,isLargeModal:!0,children:i})})})})})};Wn.Body=({children:e,className:t,style:n})=>{const{isLargeModal:r,onOutsideClick:s}=f.useContext(h1);return a.jsx("div",{style:n,className:dn("h-[full]",t,{"max-w-2xl":r,"max-w-md":!r}),onClick:o=>{s&&s(),o.stopPropagation()},children:e})},Wn.Content=({children:e,className:t})=>{const{isLargeModal:n,onOutsideClick:r}=f.useContext(h1),{height:s}=QF(),o={maxHeight:s-90-141};return a.jsx("div",{"data-tauri-drag-region":!0,onClick:()=>{r&&r()},style:o,className:dn("overflow-y-auto px-8 pt-6",{"w-largeModal pb-7":n,"pb-5":!n},t),children:e})},Wn.Header=({handleClose:e=void 0,children:t,canClose:n=!0,isCenter:r=!1})=>{const{onOutsideClick:s}=f.useContext(h1);return a.jsxs("div",{"data-tauri-drag-region":!0,className:"flex w-full items-center border-0 px-8 py-6 pb-2",onClick:o=>{s&&s(),o.stopPropagation()},children:[a.jsx("div",{className:"flex flex-grow ".concat(r?"justify-center":""),children:t}),a.jsx("div",{className:"self-end",children:e&&n&&a.jsx(ye,{variant:"ghost",size:"sm",onClick:e,className:"cursor-pointer border-0 p-1.5",children:a.jsx(Rn,{size:20})})})]})},Wn.Footer=({children:e,className:t})=>{const{isLargeModal:n,onOutsideClick:r}=f.useContext(h1);return a.jsx("div",{"data-tauri-drag-region":!0,onClick:s=>{r&&r(),s.stopPropagation()},className:dn("flex w-full px-7 pb-6 pt-2",{"border-grey-20 border-0 pt-4":n},t),children:e})};function Bbe({open:e,selectedText:t,onClose:n,onConfirmMenu:r,onConfirmClip:s}){const{t:o}=wt(),{themeDark:i}=ut(pu),c=i();return a.jsx(Wn,{open:e,handleClose:n,children:a.jsxs(Wn.Body,{children:[a.jsx(Wn.Header,{handleClose:n,children:a.jsx("h1",{className:"m-0",children:o("Add to Clips or Menu",{ns:"common"})})}),a.jsxs(Wn.Content,{className:"!pt-2",children:[a.jsx(J,{className:"bg-slate-200/70 dark:bg-slate-900/60 rounded-md border border-slate-200 dark:border-slate-800/70 px-2 pt-1",children:a.jsx(es,{isDark:c,maxHeight:350,isLargeView:!0,isShowMore:!0,isWrapped:!0,language:"text",value:t})}),a.jsx(mn,{h:4}),a.jsx(X,{className:"font-light",children:o("You can add the selected text to your clips or menu. Please select the option below.",{ns:"collections"})})]}),a.jsxs(Wn.Footer,{className:"flex-col !pt-0 !pb-3",children:[a.jsxs("div",{className:"flex w-full justify-center gap-x-3",children:[a.jsx(ye,{variant:"light",type:"submit",onClick:()=>{s(t)},className:"w-full bg-blue-300 hover:bg-blue-500 hover:text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:o("Add Clip",{ns:"common"})}),a.jsx(ye,{variant:"light",type:"submit",onClick:()=>{r(t)},className:"w-full bg-blue-300 hover:bg-blue-500 hover:text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:o("Add Menu",{ns:"common"})})]}),a.jsx("div",{className:"flex w-full justify-center mt-3",children:a.jsx(ye,{variant:"ghost",type:"button",onClick:n,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:o("Cancel",{ns:"common"})})})]})]})})}function H2(e,t){var s;const[n,r]=f.useState(localStorage.getItem(e)?JSON.parse((s=localStorage.getItem(e))!=null?s:"{}"):t);return f.useEffect(()=>{n===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}function JF({open:e,title:t="Unlock Application Screen",isLockScreen:n=!1,showPasscode:r=!0,onConfirmSuccess:s,onClose:o=()=>{}}){const{t:i}=wt(),c=He(r),u=He(!1),h=He(!1),p=He(!1),m=He(!1),x=He(""),C=He(!1),b=He(!1),g=He(!1),k=ts(),[,j]=H2("resetPassCodeNextDelayInSeconds",null),[S,E]=H2("resetPassCodeGlobalUnsuccessfulTries",0),N=He(0),{isHistoryEnabled:T,setIsHistoryEnabled:M}=ut(Nr),{screenLockPassCode:L,screenLockPassCodeLength:D,screenLockRecoveryPasswordMasked:P,verifyPassword:A,setScreenLockPassCode:B,isShowHistoryCaptureOnLockedScreen:z,setScreenLockPassCodeLength:R,verifyStoredPassword:$}=ut(Nr),_=He(new Array(D).fill(void 0)),U=f.useMemo(()=>p.value,[p.value]),K=W=>{const G=document.querySelector("input[name=field-".concat(W,"]"));G!==null&&G.focus()};return f.useEffect(()=>{if(_r.value)_r.value<1?(g.value=!1,_.value=new Array(D).fill(void 0)):g.value=!0;else return},[_r.value]),f.useEffect(()=>{C.value&&setTimeout(()=>{s()},800)},[C.value]),f.useEffect(()=>{C.value=!1;async function W(G){var F;if(b.value)return;const Z=_.value.join("");if(await A(Z,G))C.value=!0,_r.value=0,Np.value=0,E(0),j(null),b.value=!1;else{if(Np.value=Np.value+1,Np.value===3){const V=(F=parseInt(S,10))!=null?F:0;E(V+1),_r.value=V>0?WM*V:WM}g.value=!0,C.value=!1,b.value=!1,_.value=new Array(D).fill(void 0),K(0)}}c.value&&L&&!b.value&&_.value.every(G=>G!==void 0)&&setTimeout(()=>{W(L)},100)},[c.value,_.value,L]),f.useEffect(()=>{K(N.value)},[N.value]),a.jsx(Wn,{open:e,onOutsideClick:()=>{_.value[0]||K(0)},handleClose:o,canClose:!n||!L,isNavVisible:!1,children:a.jsxs(Wn.Body,{className:"bg-emerald-100/20 dark:bg-emerald-800/30",children:[a.jsx(Wn.Header,{handleClose:o,canClose:!n||!L,isCenter:n,children:L?a.jsx("h1",{className:"m-1 opacity-90 ".concat(C.value?"!text-green-600 dark:!text-green-500":g.value?"!text-red-600 dark:!text-red-500":""),children:u.value?i("Forgot passcode ?",{ns:"settings"}):i(t,{ns:"common"})}):a.jsx("h1",{className:"opacity-90",children:i("Passcode is not set",{ns:"settings"})})}),a.jsx(Wn.Content,{className:"!pt-2 justify-center items-center flex flex-col !min-w-[390px]",children:c.value&&!u.value&&L?a.jsxs(a.Fragment,{children:[a.jsx(fe,{className:"gap-3 flex-wrap items-start justify-center my-2 flex-row animate-in fade-in duration-700",children:new Array(D).fill(0).map((W,G)=>a.jsx(J,{className:"text-lg px-2 py-2 rounded-md text-slate-600 dark:text-slate-400 bg-slate-300 dark:bg-slate-800 text-center",children:C.value?a.jsx(fe,{className:"h-[48px] !w-9 !px-0 !text-[34px] pb-[2px] !border-0 !bg-green-100 dark:!bg-green-900/80",children:a.jsx(Dt,{size:26,className:"text-green-600 dark:text-green-300"})}):a.jsx(Gt,{isPassword:!h.value,name:"field-".concat(G),className:"!w-9 !text-xl",ref:()=>{G===0&&!_.value[0]&&K(0)},disabled:_r.value>0,autoComplete:"off",numbersOnly:!0,onKeyDown:Z=>{(Z.metaKey||Z.altKey)&&Z.code==="KeyH"?M(!T):Z.key==="Backspace"&&Z.currentTarget.value===""?N.value=G>0?G-1:0:Z.key==="ArrowLeft"?(Z.preventDefault(),N.value=G>0?G-1:0):Z.key==="ArrowRight"&&(Z.preventDefault(),N.value=G<_.value.length+1?G+1:G)},onPaste:Z=>(Z.preventDefault(),!1),maxLength:2,value:_.value[G]||"",classNameInput:"h-[48px] text-center !px-0 !text-[34px] pb-[2px] !border-0\n ".concat(_.value[G]&&!g.value?"!bg-green-100 dark:!bg-green-900/80":g.value?"dark:!bg-red-900/90 !bg-red-300/90":"dark:!bg-slate-800"),onChange:Z=>{var V,q,ne,Q;g.value=!1,((q=(V=Z.target)==null?void 0:V.value)==null?void 0:q.length)>=1&&(Z.target.value=Z.target.value[((Q=(ne=Z.target)==null?void 0:ne.value)==null?void 0:Q.length)-1],N.value=G<_.value.length+1?G+1:G);const F=Z.target.value;_.value=_.value.map((ae,re)=>re===G?F?parseInt(F):void 0:ae)}})},G))}),a.jsx(mn,{h:4}),a.jsxs(fe,{className:"font-light ".concat(g.value?"!text-red-600 dark:!text-red-500/90":""),children:[g.value?_r.value>0?a.jsx(X,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:i("Passcode verification is locked.",{ns:"settings"})}):a.jsx(X,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:i("Passcode is not valid",{screenLockPassCodeLength:D,ns:"settings"})}):a.jsx(a.Fragment,{children:C.value?a.jsx(X,{className:"!text-green-600 dark:!text-green-500 font-semibold",children:i("Passcode successfully verified",{ns:"settings"})}):a.jsx(X,{children:a.jsx(Ps,{i18nKey:"Enter your\xA0<strong>{{screenLockPassCodeLength}} digits</strong>\xA0passcode",values:{screenLockPassCodeLength:D},ns:"settings"})})}),!C.value&&_r.value===0&&a.jsx(a.Fragment,{children:h.value?a.jsx(eg,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:W=>{W.preventDefault(),h.value=!1,K(N.value)}}):a.jsx(Dp,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:W=>{W.preventDefault(),h.value=!0,K(N.value)}})})]}),_r.value>0&&a.jsx(J,{className:"!text-amber-500 dark:!text-amber-600",children:a.jsx(Ps,{i18nKey:"Try after <strong>{{resetPassCodeNextDelay}}</strong> seconds",values:{resetPassCodeNextDelay:_r.value},ns:"settings"})})]}):u.value&&P?a.jsxs(a.Fragment,{children:[a.jsxs(fe,{className:"mb-3 mt-0 gap-2 items-start justify-start",children:[a.jsx(Gt,{className:"text-md !w-60",isPassword:!0,autoFocus:!0,showHidePassword:!0,onKeyDown:W=>{W.key==="Enter"&&!p.value&&x.value.length>=6&&(m.value=!1,p.value=!0,setTimeout(()=>{$("screenLockRecoveryPassword",x.value).then(G=>{G?(u.value=!1,B(null),R(0),x.value=""):m.value=!0,p.value=!1}).catch(G=>{console.error(G),m.value=!0,p.value=!1})},1e3))},errorElement:x.value.length>=6&&m.value?a.jsxs(a.Fragment,{children:[a.jsx(X,{className:"!text-red-400",children:i("Password is incorrect.",{ns:"settings"})}),a.jsx(X,{className:"mt-1 !text-red-400",children:i("Hint: {{screenLockRecoveryPasswordMasked}}",{ns:"settings",screenLockRecoveryPasswordMasked:P})})]}):"",autoComplete:"off",onPaste:W=>(W.preventDefault(),!1),classNameInput:"h-9",placeholder:i("Enter Password",{ns:"common"}),onChange:W=>{m.value=!1,x.value=W.target.value}}),a.jsx(ye,{variant:"secondary",size:"sm",disabled:x.value.length<6,onClick:()=>{!p.value&&x.value.length>=6&&(m.value=!1,p.value=!0,setTimeout(()=>{$("screenLockRecoveryPassword",x.value).then(W=>{W?(u.value=!1,B(null),R(0),_r.value=0,Np.value=0,E(0),j(null),gi.value&&(clearInterval(gi.value),gi.value=null),x.value=""):m.value=!0,p.value=!1}).catch(W=>{console.error(W),m.value=!0,p.value=!1})},600))},className:"min-w-[80px] mt-0.5 text-sm cursor-pointer whitespace-nowrap bg-blue-500 text-slate-50 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200",children:U?a.jsx(wm,{}):i("Reset",{ns:"common"})})]}),a.jsx(X,{className:"mt-1 text-center",children:i("Enter recovery password to reset passcode.",{ns:"settings"})})]}):a.jsx(X,{className:"mt-1 text-center",children:"Please set up a Passcode and recovery password in Security Settings to enable Screen Lock and ensure better security."})}),a.jsxs(Wn.Footer,{className:"flex-row !pt-0 !pb-5 justify-center items-center gap-3 relative",children:[!n&&L?a.jsx(ye,{variant:"ghost",size:"sm",onClick:o,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:i("Cancel",{ns:"common"})}):!L&&a.jsx(ye,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{k("/app-settings/security",{replace:!0}),o()},children:i("Open Security Settings",{ns:"settings"})}),(g.value||u.value)&&P&&L&&a.jsx(a.Fragment,{children:u.value?a.jsx(ye,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{u.value=!1,_.value=new Array(D).fill(void 0)},children:i("Back",{ns:"settings"})}):a.jsx(ye,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{u.value=!0,m.value=!1,p.value=!1,x.value=""},children:i("Forgot?",{ns:"settings"})})}),z&&a.jsx(a.Fragment,{children:a.jsxs(fe,{className:"dark:bg-slate-950/90 bg-gray-400/90 absolute bottom-[-100px] rounded-md px-2 py-1 cursor-pointer",onClick:W=>{W.preventDefault(),M(!T)},children:[a.jsxs(fe,{className:"mr-1",children:[a.jsx(X,{className:"mr-1 ".concat(T?"!text-slate-800 dark:!text-slate-400":"!text-gray-500 dark:!text-gray-700"),children:i("Capture History",{ns:"history"})}),a.jsx(Ji,{className:T?"opacity-60":"opacity-30",children:a.jsx(Vs,{keys:"ALT+H"})})]}),a.jsx(Hr,{checked:T,className:T?"opacity-100":"!bg-gray-300 dark:!bg-gray-600 opacity-70"})]})})]})]})})}var gE={};Object.defineProperty(gE,"__esModule",{value:!0});function Wbe(e,t){return Math.random()*(t-e)+e}var XF=gE.default=Wbe,eH={},vE={},yE={},xE={};(function e(t,n,r,s){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),i=typeof Path2D=="function"&&typeof DOMMatrix=="function",c=function(){if(!t.OffscreenCanvas)return!1;var Z=new OffscreenCanvas(1,1),F=Z.getContext("2d");F.fillRect(0,0,1,1);var V=Z.transferToImageBitmap();try{F.createPattern(V,"no-repeat")}catch{return!1}return!0}();function u(){}function h(Z){var F=n.exports.Promise,V=F!==void 0?F:t.Promise;return typeof V=="function"?new V(Z):(Z(u,u),null)}var p=function(Z,F){return{transform:function(V){if(Z)return V;if(F.has(V))return F.get(V);var q=new OffscreenCanvas(V.width,V.height),ne=q.getContext("2d");return ne.drawImage(V,0,0),F.set(V,q),q},clear:function(){F.clear()}}}(c,new Map),m=function(){var Z=Math.floor(16.666666666666668),F,V,q={},ne=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(F=function(Q){var ae=Math.random();return q[ae]=requestAnimationFrame(function re(le){ne===le||ne+Z-1<le?(ne=le,delete q[ae],Q()):q[ae]=requestAnimationFrame(re)}),ae},V=function(Q){q[Q]&&cancelAnimationFrame(q[Q])}):(F=function(Q){return setTimeout(Q,Z)},V=function(Q){return clearTimeout(Q)}),{frame:F,cancel:V}}(),x=function(){var Z,F,V={};function q(ne){function Q(ae,re){ne.postMessage({options:ae||{},callback:re})}ne.init=function(ae){var re=ae.transferControlToOffscreen();ne.postMessage({canvas:re},[re])},ne.fire=function(ae,re,le){if(F)return Q(ae,null),F;var oe=Math.random().toString(36).slice(2);return F=h(function(ie){function de(xe){xe.data.callback===oe&&(delete V[oe],ne.removeEventListener("message",de),F=null,p.clear(),le(),ie())}ne.addEventListener("message",de),Q(ae,oe),V[oe]=de.bind(null,{data:{callback:oe}})}),F},ne.reset=function(){ne.postMessage({reset:!0});for(var ae in V)V[ae](),delete V[ae]}}return function(){if(Z)return Z;if(!r&&o){var ne=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{Z=new Worker(URL.createObjectURL(new Blob([ne])))}catch(Q){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",Q),null}q(Z)}return Z}}(),C={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(Z,F){return F?F(Z):Z}function g(Z){return Z!=null}function k(Z,F,V){return b(Z&&g(Z[F])?Z[F]:C[F],V)}function j(Z){return Z<0?0:Math.floor(Z)}function S(Z,F){return Math.floor(Math.random()*(F-Z))+Z}function E(Z){return parseInt(Z,16)}function N(Z){return Z.map(T)}function T(Z){var F=String(Z).replace(/[^0-9a-f]/gi,"");return F.length<6&&(F=F[0]+F[0]+F[1]+F[1]+F[2]+F[2]),{r:E(F.substring(0,2)),g:E(F.substring(2,4)),b:E(F.substring(4,6))}}function M(Z){var F=k(Z,"origin",Object);return F.x=k(F,"x",Number),F.y=k(F,"y",Number),F}function L(Z){Z.width=document.documentElement.clientWidth,Z.height=document.documentElement.clientHeight}function D(Z){var F=Z.getBoundingClientRect();Z.width=F.width,Z.height=F.height}function P(Z){var F=document.createElement("canvas");return F.style.position="fixed",F.style.top="0px",F.style.left="0px",F.style.pointerEvents="none",F.style.zIndex=Z,F}function A(Z,F,V,q,ne,Q,ae,re,le){Z.save(),Z.translate(F,V),Z.rotate(Q),Z.scale(q,ne),Z.arc(0,0,1,ae,re,le),Z.restore()}function B(Z){var F=Z.angle*(Math.PI/180),V=Z.spread*(Math.PI/180);return{x:Z.x,y:Z.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Z.startVelocity*.5+Math.random()*Z.startVelocity,angle2D:-F+(.5*V-Math.random()*V),tiltAngle:(Math.random()*.5+.25)*Math.PI,color:Z.color,shape:Z.shape,tick:0,totalTicks:Z.ticks,decay:Z.decay,drift:Z.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Z.gravity*3,ovalScalar:.6,scalar:Z.scalar,flat:Z.flat}}function z(Z,F){F.x+=Math.cos(F.angle2D)*F.velocity+F.drift,F.y+=Math.sin(F.angle2D)*F.velocity+F.gravity,F.velocity*=F.decay,F.flat?(F.wobble=0,F.wobbleX=F.x+10*F.scalar,F.wobbleY=F.y+10*F.scalar,F.tiltSin=0,F.tiltCos=0,F.random=1):(F.wobble+=F.wobbleSpeed,F.wobbleX=F.x+10*F.scalar*Math.cos(F.wobble),F.wobbleY=F.y+10*F.scalar*Math.sin(F.wobble),F.tiltAngle+=.1,F.tiltSin=Math.sin(F.tiltAngle),F.tiltCos=Math.cos(F.tiltAngle),F.random=Math.random()+2);var V=F.tick++/F.totalTicks,q=F.x+F.random*F.tiltCos,ne=F.y+F.random*F.tiltSin,Q=F.wobbleX+F.random*F.tiltCos,ae=F.wobbleY+F.random*F.tiltSin;if(Z.fillStyle="rgba("+F.color.r+", "+F.color.g+", "+F.color.b+", "+(1-V)+")",Z.beginPath(),i&&F.shape.type==="path"&&typeof F.shape.path=="string"&&Array.isArray(F.shape.matrix))Z.fill(K(F.shape.path,F.shape.matrix,F.x,F.y,Math.abs(Q-q)*.1,Math.abs(ae-ne)*.1,Math.PI/10*F.wobble));else if(F.shape.type==="bitmap"){var re=Math.PI/10*F.wobble,le=Math.abs(Q-q)*.1,oe=Math.abs(ae-ne)*.1,ie=F.shape.bitmap.width*F.scalar,de=F.shape.bitmap.height*F.scalar,xe=new DOMMatrix([Math.cos(re)*le,Math.sin(re)*le,-Math.sin(re)*oe,Math.cos(re)*oe,F.x,F.y]);xe.multiplySelf(new DOMMatrix(F.shape.matrix));var je=Z.createPattern(p.transform(F.shape.bitmap),"no-repeat");je.setTransform(xe),Z.globalAlpha=1-V,Z.fillStyle=je,Z.fillRect(F.x-ie/2,F.y-de/2,ie,de),Z.globalAlpha=1}else if(F.shape==="circle")Z.ellipse?Z.ellipse(F.x,F.y,Math.abs(Q-q)*F.ovalScalar,Math.abs(ae-ne)*F.ovalScalar,Math.PI/10*F.wobble,0,2*Math.PI):A(Z,F.x,F.y,Math.abs(Q-q)*F.ovalScalar,Math.abs(ae-ne)*F.ovalScalar,Math.PI/10*F.wobble,0,2*Math.PI);else if(F.shape==="star")for(var Ee=Math.PI/2*3,Te=4*F.scalar,Me=8*F.scalar,ze=F.x,qe=F.y,Ye=5,Ve=Math.PI/Ye;Ye--;)ze=F.x+Math.cos(Ee)*Me,qe=F.y+Math.sin(Ee)*Me,Z.lineTo(ze,qe),Ee+=Ve,ze=F.x+Math.cos(Ee)*Te,qe=F.y+Math.sin(Ee)*Te,Z.lineTo(ze,qe),Ee+=Ve;else Z.moveTo(Math.floor(F.x),Math.floor(F.y)),Z.lineTo(Math.floor(F.wobbleX),Math.floor(ne)),Z.lineTo(Math.floor(Q),Math.floor(ae)),Z.lineTo(Math.floor(q),Math.floor(F.wobbleY));return Z.closePath(),Z.fill(),F.tick<F.totalTicks}function R(Z,F,V,q,ne){var Q=F.slice(),ae=Z.getContext("2d"),re,le,oe=h(function(ie){function de(){re=le=null,ae.clearRect(0,0,q.width,q.height),p.clear(),ne(),ie()}function xe(){r&&!(q.width===s.width&&q.height===s.height)&&(q.width=Z.width=s.width,q.height=Z.height=s.height),!q.width&&!q.height&&(V(Z),q.width=Z.width,q.height=Z.height),ae.clearRect(0,0,q.width,q.height),Q=Q.filter(function(je){return z(ae,je)}),Q.length?re=m.frame(xe):de()}re=m.frame(xe),le=de});return{addFettis:function(ie){return Q=Q.concat(ie),oe},canvas:Z,promise:oe,reset:function(){re&&m.cancel(re),le&&le()}}}function $(Z,F){var V=!Z,q=!!k(F||{},"resize"),ne=!1,Q=k(F,"disableForReducedMotion",Boolean),ae=o&&!!k(F||{},"useWorker"),re=ae?x():null,le=V?L:D,oe=Z&&re?!!Z.__confetti_initialized:!1,ie=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,de;function xe(Ee,Te,Me){for(var ze=k(Ee,"particleCount",j),qe=k(Ee,"angle",Number),Ye=k(Ee,"spread",Number),Ve=k(Ee,"startVelocity",Number),Lt=k(Ee,"decay",Number),$e=k(Ee,"gravity",Number),st=k(Ee,"drift",Number),At=k(Ee,"colors",N),Qt=k(Ee,"ticks",Number),Vt=k(Ee,"shapes"),_e=k(Ee,"scalar"),sn=!!k(Ee,"flat"),Ht=M(Ee),kt=ze,rn=[],Zt=Z.width*Ht.x,Jt=Z.height*Ht.y;kt--;)rn.push(B({x:Zt,y:Jt,angle:qe,spread:Ye,startVelocity:Ve,color:At[kt%At.length],shape:Vt[S(0,Vt.length)],ticks:Qt,decay:Lt,gravity:$e,drift:st,scalar:_e,flat:sn}));return de?de.addFettis(rn):(de=R(Z,rn,le,Te,Me),de.promise)}function je(Ee){var Te=Q||k(Ee,"disableForReducedMotion",Boolean),Me=k(Ee,"zIndex",Number);if(Te&&ie)return h(function(Ve){Ve()});V&&de?Z=de.canvas:V&&!Z&&(Z=P(Me),document.body.appendChild(Z)),q&&!oe&&le(Z);var ze={width:Z.width,height:Z.height};re&&!oe&&re.init(Z),oe=!0,re&&(Z.__confetti_initialized=!0);function qe(){if(re){var Ve={getBoundingClientRect:function(){if(!V)return Z.getBoundingClientRect()}};le(Ve),re.postMessage({resize:{width:Ve.width,height:Ve.height}});return}ze.width=ze.height=null}function Ye(){de=null,q&&(ne=!1,t.removeEventListener("resize",qe)),V&&Z&&(document.body.removeChild(Z),Z=null,oe=!1)}return q&&!ne&&(ne=!0,t.addEventListener("resize",qe,!1)),re?re.fire(Ee,ze,Ye):xe(Ee,ze,Ye)}return je.reset=function(){re&&re.reset(),de&&de.reset()},je}var _;function U(){return _||(_=$(null,{useWorker:!0,resize:!0})),_}function K(Z,F,V,q,ne,Q,ae){var re=new Path2D(Z),le=new Path2D;le.addPath(re,new DOMMatrix(F));var oe=new Path2D;return oe.addPath(le,new DOMMatrix([Math.cos(ae)*ne,Math.sin(ae)*ne,-Math.sin(ae)*Q,Math.cos(ae)*Q,V,q])),oe}function W(Z){if(!i)throw new Error("path confetti are not supported in this browser");var F,V;typeof Z=="string"?F=Z:(F=Z.path,V=Z.matrix);var q=new Path2D(F),ne=document.createElement("canvas"),Q=ne.getContext("2d");if(!V){for(var ae=1e3,re=ae,le=ae,oe=0,ie=0,de,xe,je=0;je<ae;je+=2)for(var Ee=0;Ee<ae;Ee+=2)Q.isPointInPath(q,je,Ee,"nonzero")&&(re=Math.min(re,je),le=Math.min(le,Ee),oe=Math.max(oe,je),ie=Math.max(ie,Ee));de=oe-re,xe=ie-le;var Te=10,Me=Math.min(Te/de,Te/xe);V=[Me,0,0,Me,-Math.round(de/2+re)*Me,-Math.round(xe/2+le)*Me]}return{type:"path",path:F,matrix:V}}function G(Z){var F,V=1,q="#000000",ne='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Z=="string"?F=Z:(F=Z.text,V="scalar"in Z?Z.scalar:V,ne="fontFamily"in Z?Z.fontFamily:ne,q="color"in Z?Z.color:q);var Q=10*V,ae=""+Q+"px "+ne,re=new OffscreenCanvas(Q,Q),le=re.getContext("2d");le.font=ae;var oe=le.measureText(F),ie=Math.ceil(oe.actualBoundingBoxRight+oe.actualBoundingBoxLeft),de=Math.ceil(oe.actualBoundingBoxAscent+oe.actualBoundingBoxDescent),xe=2,je=oe.actualBoundingBoxLeft+xe,Ee=oe.actualBoundingBoxAscent+xe;ie+=xe+xe,de+=xe+xe,re=new OffscreenCanvas(ie,de),le=re.getContext("2d"),le.font=ae,le.fillStyle=q,le.fillText(F,je,Ee);var Te=1/V;return{type:"bitmap",bitmap:re.transferToImageBitmap(),matrix:[Te,0,0,Te,-ie*Te/2,-de*Te/2]}}n.exports=function(){return U().apply(this,arguments)},n.exports.reset=function(){U().reset()},n.exports.create=$,n.exports.shapeFromPath=W,n.exports.shapeFromText=G})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),xE,!1);const Vbe=xE.exports;var Ube=xE.exports.create;const qbe=Object.freeze(Object.defineProperty({__proto__:null,create:Ube,default:Vbe},Symbol.toStringTag,{value:"Module"})),Ybe=TV(qbe);var $2=kn&&kn.__assign||function(){return $2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},$2.apply(this,arguments)},Kbe=kn&&kn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Gbe=kn&&kn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zbe=kn&&kn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Kbe(t,e,n);return Gbe(t,e),t},Qbe=kn&&kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yE,"__esModule",{value:!0});var B2=Zbe(f),Jbe=Qbe(Ybe),Xbe={resize:!0,useWorker:!1},e2e={position:"fixed",pointerEvents:"none",width:"100%",height:"100%",top:0,left:0};function t2e(e,t){return!e&&!t?e2e:e}function n2e(e){var t=e.style,n=e.className,r=e.width,s=e.height,o=e.globalOptions,i=e.onInit,c=(0,B2.useRef)(null),u=(0,B2.useRef)(null);return(0,B2.useEffect)(function(){if(c.current)return u.current=Jbe.default.create(c.current,$2($2({},Xbe),o)),i==null||i({confetti:u.current}),function(){var h;(h=u.current)===null||h===void 0||h.reset()}},[]),B2.default.createElement("canvas",{ref:c,style:t2e(t,n),className:n,width:r,height:s})}yE.default=n2e;var bE=kn&&kn.__assign||function(){return bE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},bE.apply(this,arguments)},r2e=kn&&kn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),a2e=kn&&kn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s2e=kn&&kn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&r2e(t,e,n);return a2e(t,e),t},o2e=kn&&kn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n},i2e=kn&&kn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),s,o=[],i;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(c){i={error:c}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o},l2e=kn&&kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vE,"__esModule",{value:!0});var W2=s2e(f),c2e=l2e(yE),d2e=function(e){return e};function u2e(e){var t=e.decorateOptions,n=t===void 0?d2e:t,r=e.Conductor,s=e.autorun,o=e.onInit,i=o2e(e,["decorateOptions","Conductor","autorun","onInit"]),c=i2e((0,W2.useState)(),2),u=c[0],h=c[1],p=(0,W2.useCallback)(function(m){var x=m.confetti;h(function(){return x})},[]);return(0,W2.useEffect)(function(){if(u){var m=new r({confetti:u,decorateOptions:n});return s&&m.run(s),o==null||o({confetti:u,conductor:m}),m.stop}},[u]),W2.default.createElement(c2e.default,bE({onInit:p},i))}vE.default=u2e;var wE={},kE={};Object.defineProperty(kE,"__esModule",{value:!0});var h2e=function(){function e(t){var n=t.confetti,r=t.decorateOptions,s=this;this.interval=null,this.shoot=function(){return s.tickAnimation()},this.run=function(o){var i=o.speed,c=o.delay,u=c===void 0?0:c,h=o.duration;s.interval||setTimeout(function(){s.shoot(),s.interval=setInterval(s.shoot,1e3/Math.min(i,1e3)),h&&setTimeout(s.pause,h)},u)},this.pause=function(){clearInterval(s.interval),s.interval=null},this.stop=function(){s.pause(),s.confetti.reset()},this.confetti=n,this.decorateOptions=r}return e}();kE.default=h2e;var p2e=kn&&kn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),m2e=kn&&kn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),s,o=[],i;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(c){i={error:c}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o},f2e=kn&&kn.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},tH=kn&&kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wE,"__esModule",{value:!0});var g2e=tH(kE),nH=tH(gE),v2e=function(e){p2e(t,e);function t(){var n=e.apply(this,f2e([],m2e(arguments),!1))||this;return n.tickAnimation=function(){n.confetti(n.decorateOptions({startVelocity:30,spread:360,ticks:60,zIndex:0,particleCount:150,origin:{x:(0,nH.default)(.1,.3),y:Math.random()-.2}})),n.confetti(n.decorateOptions({startVelocity:30,spread:360,ticks:60,zIndex:0,particleCount:150,origin:{x:(0,nH.default)(.7,.9),y:Math.random()-.2}}))},n}return t}(g2e.default);wE.default=v2e;var jE=kn&&kn.__assign||function(){return jE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},jE.apply(this,arguments)},CE=kn&&kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eH,"__esModule",{value:!0});var y2e=CE(f),x2e=CE(vE),b2e=CE(wE);function w2e(e){return y2e.default.createElement(x2e.default,jE({Conductor:b2e.default},e))}var k2e=eH.default=w2e;let Jo;typeof window<"u"?Jo=window:typeof self<"u"?Jo=self:Jo=global;let SE=null,EE=null;const rH=20,NE=Jo.clearTimeout,aH=Jo.setTimeout,_E=Jo.cancelAnimationFrame||Jo.mozCancelAnimationFrame||Jo.webkitCancelAnimationFrame,sH=Jo.requestAnimationFrame||Jo.mozRequestAnimationFrame||Jo.webkitRequestAnimationFrame;_E==null||sH==null?(SE=NE,EE=function(e){return aH(e,rH)}):(SE=function([e,t]){_E(e),NE(t)},EE=function(e){const t=sH(function(){NE(n),e()}),n=aH(function(){_E(t),e()},rH);return[t,n]});function j2e(e){let t,n,r,s,o,i,c;const u=typeof document<"u"&&document.attachEvent;if(!u){i=function(g){const k=g.__resizeTriggers__,j=k.firstElementChild,S=k.lastElementChild,E=j.firstElementChild;S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight,E.style.width=j.offsetWidth+1+"px",E.style.height=j.offsetHeight+1+"px",j.scrollLeft=j.scrollWidth,j.scrollTop=j.scrollHeight},o=function(g){return g.offsetWidth!==g.__resizeLast__.width||g.offsetHeight!==g.__resizeLast__.height},c=function(g){if(g.target.className&&typeof g.target.className.indexOf=="function"&&g.target.className.indexOf("contract-trigger")<0&&g.target.className.indexOf("expand-trigger")<0)return;const k=this;i(this),this.__resizeRAF__&&SE(this.__resizeRAF__),this.__resizeRAF__=EE(function(){o(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(j){j.call(k,g)}))})};let p=!1,m="";r="animationstart";const x="Webkit Moz O ms".split(" ");let C="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),b="";{const g=document.createElement("fakeelement");if(g.style.animationName!==void 0&&(p=!0),p===!1){for(let k=0;k<x.length;k++)if(g.style[x[k]+"AnimationName"]!==void 0){b=x[k],m="-"+b.toLowerCase()+"-",r=C[k],p=!0;break}}}n="resizeanim",t="@"+m+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",s=m+"animation: 1ms "+n+"; "}const h=function(p){if(!p.getElementById("detectElementResize")){const m=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',x=p.head||p.getElementsByTagName("head")[0],C=p.createElement("style");C.id="detectElementResize",C.type="text/css",e!=null&&C.setAttribute("nonce",e),C.styleSheet?C.styleSheet.cssText=m:C.appendChild(p.createTextNode(m)),x.appendChild(C)}};return{addResizeListener:function(p,m){if(u)p.attachEvent("onresize",m);else{if(!p.__resizeTriggers__){const x=p.ownerDocument,C=Jo.getComputedStyle(p);C&&C.position==="static"&&(p.style.position="relative"),h(x),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=x.createElement("div")).className="resize-triggers";const b=x.createElement("div");b.className="expand-trigger",b.appendChild(x.createElement("div"));const g=x.createElement("div");g.className="contract-trigger",p.__resizeTriggers__.appendChild(b),p.__resizeTriggers__.appendChild(g),p.appendChild(p.__resizeTriggers__),i(p),p.addEventListener("scroll",c,!0),r&&(p.__resizeTriggers__.__animationListener__=function(k){k.animationName===n&&i(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(m)}},removeResizeListener:function(p,m){if(u)p.detachEvent("onresize",m);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(m),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",c,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class ih extends f.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:s}=this.props;if(this._parentNode){var o,i,c,u;const h=window.getComputedStyle(this._parentNode)||{},p=parseFloat((o=h.paddingLeft)!==null&&o!==void 0?o:"0"),m=parseFloat((i=h.paddingRight)!==null&&i!==void 0?i:"0"),x=parseFloat((c=h.paddingTop)!==null&&c!==void 0?c:"0"),C=parseFloat((u=h.paddingBottom)!==null&&u!==void 0?u:"0"),b=this._parentNode.getBoundingClientRect(),g=b.height-x-C,k=b.width-p-m,j=this._parentNode.offsetHeight-x-C,S=this._parentNode.offsetWidth-p-m;(!n&&(this.state.height!==j||this.state.scaledHeight!==g)||!r&&(this.state.width!==S||this.state.scaledWidth!==k))&&(this.setState({height:j,width:S,scaledHeight:g,scaledWidth:k}),typeof s=="function"&&s({height:j,scaledHeight:g,scaledWidth:k,width:S}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=j2e(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:s=!1,disableWidth:o=!1,nonce:i,onResize:c,style:u={},tagName:h="div",...p}=this.props,{height:m,scaledHeight:x,scaledWidth:C,width:b}=this.state,g={overflow:"visible"},k={};let j=!1;return s||(m===0&&(j=!0),g.height=0,k.height=m,k.scaledHeight=x),o||(b===0&&(j=!0),g.width=0,k.width=b,k.scaledWidth=C),f.createElement(h,{ref:this._setRef,style:{...g,...u},...p},!j&&t(k))}}function oH({registerLicense:e}){const t=f.useRef(null),{t:n}=wt(),{licenseKey:r,setLicenseKey:s,screenLockPassCode:o}=ut(Nr),i=Em(BS),c=Em(WS),u=f.useRef(),{returnRoute:h}=ut(ra),p=ea(r!=null?r:""),m=ea(!1),x=ea(!1),C=ea(null),b=ir.value,g=({conductor:P})=>{u.current={...P}},k=()=>{var P;(P=u==null?void 0:u.current)==null||P.shoot()},j=P=>({...P,drift:XF(.4,.8),startVelocity:XF(15,40),ticks:230}),S=f.useMemo(()=>p.value,[p.value]);f.useMemo(()=>!0,[C.value,ir.value]);const E=f.useCallback(P=>{if(P.length<20){C.value=n("License key is too short.",{ns:"settings"});return}try{const A=DF(P);if(!A)return!1;typeof A.id=="string"&&A.id.length>0&&(C.value=null,ir.value=A,p.value!==r&&setTimeout(()=>{k(),setTimeout(()=>{k()},600)},600),s(p.value))}catch(A){return C.value=n("License key is not valid or malformed.",{ns:"settings"}),ir.value=null,console.error("error",A),!1}return!0},[p.value]);f.useEffect(()=>{r&&(p.value=r,E(r))},[r]);const{licenseExpInDays:N,licenseExpiresDate:T}=f.useMemo(()=>Nz(),[ir.value]),{licenseIssuedDate:M,licenseIssuedDaysAgo:L}=f.useMemo(()=>mve(),[ir.value]),D=f.useMemo(()=>({name:b==null?void 0:b.name,email:b==null?void 0:b.email,devices:b==null?void 0:b.maxDevices,id:b==null?void 0:b.id}),[b]);return f.useEffect(()=>{(io.value===Rl.removeLicense&&Ki.value===Rl.removeLicense||m.value)&&(s(null),x.value=!1,m.value=!1,p.value="",ir.value=null)},[Ki.value,io.value,m.value]),f.useMemo(()=>!0,[m.value,x.value]),a.jsx(ih,{disableWidth:!0,children:({height:P})=>{var A,B;return P&&a.jsxs(J,{className:"p-4 py-6 select-none min-w-[320px]",children:[a.jsxs(J,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[a.jsx(X,{className:"light",children:n("License Settings",{ns:"settings"})}),i?a.jsxs(ye,{size:"sm",onClick:()=>{k(),setTimeout(()=>{k()},600)},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[n("Thank you for using Pro",{ns:"common"}),a.jsx(GC,{size:18,className:"text-red-400 dark:text-red-600 ml-1 fill-red-500 group-hover:animate-pulse group-hover:fill-red-500 group-hover:scale-125 transition-all duration-300"})]}):a.jsx(ye,{size:"sm",className:"dark:text-green-950 mt-1 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-9",children:n("Upgrade to Pro",{ns:"common"})})]}),a.jsx(mn,{h:3}),a.jsxs(An,{style:{maxHeight:P-85},autoHide:!0,children:[!i&&a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:a.jsx(J,{children:n("Free License",{ns:"settings"})})}),a.jsx(iH,{})]}),a.jsxs(cr,{children:[a.jsxs(X,{className:"text-sm text-muted-foreground mt-1 mb-3",children:[n("Thank you again for using PasteBar.",{ns:"settings"}),a.jsx(GC,{size:18,className:"text-red-400 dark:text-red-600 ml-1 fill-red-500 hover:animate-pulse hover:fill-red-500 hover:scale-125 transition-all duration-300"})]}),a.jsx(ye,{size:"sm",className:"dark:text-green-950 mt-1 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-9",children:n("Upgrade to Pro",{ns:"common"})})]})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{children:[i?a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[a.jsx(J,{children:n("Pro license is activated",{ns:"settings"})}),c&&a.jsx(X,{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-1.5 rounded-md !text-slate-600 text-xs ml-1.5 mb-0 py-0.5",children:"beta"})]}),a.jsx(X,{className:"text-sm !block",children:a.jsx(Ps,{i18nKey:"Thank you\xA0<strong>{{name}}</strong>\xA0for using Pro license. Your license grants you access to all available features, priority support, and free updates until the license expires. Please find the complete details below.",values:{name:b==null?void 0:b.name},ns:"settings"})}),c?a.jsxs(X,{className:"bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md !text-slate-600 text-xs mb-0 py-1.5 !my-2",children:[n("You have a Beta License. Usually, this is a temporary license that grants access to all current and new beta features. After this license expires, you will not have access to Pro features, and you will need to use a regular Pro license or renew your Beta license.",{ns:"settings"}),a.jsx("br",{}),n("Thank you for testing! \u{1F680}",{ns:"settings"})]}):a.jsx(mn,{h:2}),D.name&&a.jsxs(X,{className:"text-sm !mt-2",children:[n("Name:",{ns:"settings"}),a.jsx("strong",{className:"ml-1",children:D.name})]}),D.email&&a.jsxs(X,{className:"text-sm !mt-2",children:[n("Email:",{ns:"settings"}),a.jsx("strong",{className:"ml-1",children:gee(D.email)})]}),D.email&&a.jsxs(X,{className:"text-sm !mt-2",children:[n("Maximum devices:",{ns:"settings"}),a.jsx("strong",{className:"ml-1",children:D.devices})]}),D.email&&a.jsxs(X,{className:"text-sm !mt-2 gap-1",children:[n("License Id:",{ns:"settings"}),a.jsx(qA,{id:1,text:FM(D.id,3),copyText:(A=D.id)!=null?A:""})]}),M&&a.jsxs(X,{className:"text-sm !mt-2",children:[n("Issued:",{ns:"settings"}),a.jsx("strong",{className:"ml-1",children:M}),L&&a.jsx(it,{className:"ml-1.5",variant:"secondary",children:n("{{licenseIssuedDaysAgo}} days ago",{ns:"settings",licenseIssuedDaysAgo:L})})]}),T&&a.jsxs(X,{className:"text-sm !mt-4",children:[n("License expires:",{ns:"settings"}),a.jsx("strong",{className:"ml-1 text-green-600",children:T}),a.jsx(it,{className:"ml-1.5 whitespace-nowrap",variant:"pro",children:n("in {{licenseExpInDays}} days",{ns:"settings",licenseExpInDays:N})})]})]}):a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:a.jsx(J,{children:n("Register a License",{ns:"settings"})})}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:n('If you have a license key, you can add it here to unlock the Pro version with all available features. Please paste your license below and click "Add License" to upgrade.',{ns:"settings"})})]}),a.jsx(cr,{children:a.jsxs(fe,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col w-full",children:[a.jsx(go,{className:"text-sm w-full",autoFocus:e,ref:t,label:i?n("License key",{ns:"settings"}):n("Paste your license key below",{ns:"settings"}),isDisabled:i,classNameArea:i?"!border-green-500 dark:!border-green-600 !bg-green-50 dark:!bg-green-950 opacity-80":"",error:(B=C.value)!=null?B:"",rows:3,onChange:z=>{C.value=null,p.value=z.target.value},value:i?FM(S,10,10,100):S,maxRows:3,onPaste:z=>{z.preventDefault(),C.value=null,p.value=z.clipboardData.getData("text"),E(p.value)},enableEmoji:!1}),i?a.jsx(ye,{variant:"secondary",size:"sm",disabled:S.length<10,onClick:()=>{o&&(bu.value=!0,io.value=Rl.removeLicense,wu.value=n("license remove",{ns:"settings"})),x.value?m.value=!0:(x.value=!0,setTimeout(()=>{x.value=!1},3e3))},className:"".concat(x.value?"bg-red-500 text-red-100 hover:bg-red-500/80 dark:bg-red-400 hover:dark:bg-red-400/80 dark:text-slate-800":"bg-red-200 text-red-600 hover:bg-red-300/80 dark:bg-red-900 hover:dark:bg-red-900/80 dark:text-slate-200"," h-9"),children:x.value?n("Confirm Remove",{ns:"common"}):n("Remove License",{ns:"common"})}):a.jsx(ye,{variant:"secondary",size:"sm",disabled:S.length<10,onClick:()=>{E(p.value)},className:"bg-blue-400 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 h-9",children:n("Add License",{ns:"common"})})]})})]})}),a.jsx(mn,{h:6}),a.jsx(ac,{to:h,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:n("Back",{ns:"common"})})}),a.jsx(mn,{h:4})]}),b&&Wa.createPortal(a.jsx(k2e,{onInit:g,decorateOptions:j,style:{position:"fixed",zIndex:9999,pointerEvents:"none",top:40,width:"100%",height:"100%"}}),document.body)]})}})}function iH(){const{t:e}=wt();return a.jsxs(a.Fragment,{children:[a.jsx(X,{className:"text-sm text-muted-foreground mt-1 mb-3",children:e("Thank you for using PasteBar! We hope you're enjoying the free version. If you'd like to unlock all features and support our development, please consider upgrading to Pro version.",{ns:"settings"})}),a.jsxs(fe,{className:"flex flex-col items-start justify-start",children:[a.jsx(X,{className:"text-sm text-muted-foreground my-2 mb-1 !block",children:a.jsx(Ps,{i18nKey:"By upgrading to\xA0<strong>PasteBar Pro</strong>, you'll gain access to:",ns:"settings"})}),a.jsxs(J,{className:"list-image-none",children:[a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Unlimited Collections",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Create an unlimited number of collections to organize your clips and menus.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Unlimited Tabs per Collection",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Add an unlimited number of tabs within each collection for better organization and easy access.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Auto Lock the Screen on User Inactivity",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Enhance security by automatically locking the application screen after a set period of user inactivity.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Require Screen Unlock at Application Start",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Protect your data by requiring screen unlock authentication whenever the application starts.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Run Terminal or Shell Commands",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Execute terminal or shell commands directly from PasteBar clip and copy the results to the clipboard.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Execute Web Requests",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Send HTTP requests to web APIs or services and copy the response data to the clipboard.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Web Scraping and Parsing",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard.",{ns:"settings"})})]}),a.jsxs(J,{children:[a.jsxs(fe,{className:"justify-start items-center",children:[a.jsx(Dt,{size:18,className:"text-green-600 dark:text-green-500"}),a.jsx(X,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Priority support",{ns:"settings"})})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Get priority email support from us to resolve any issues or questions you may have about PasteBar.",{ns:"settings"})})]})]})]})]})}function C2e({open:e,onClose:t}){const{t:n}=wt(),r=ts();return a.jsx(Wn,{open:e,handleClose:t,isLargeModal:!0,children:a.jsxs(Wn.Body,{className:"dark:bg-green-950/30 bg-green-50/30",children:[a.jsxs(Wn.Header,{handleClose:t,children:[a.jsx("h1",{className:"mt-0.5",children:n("Unlock Pro features",{ns:"common"})}),a.jsx(ye,{variant:"ghost",size:"sm",onClick:()=>{t(),r("/app-settings/license/register",{replace:!0})},className:"hover:bg-green-300 dark:hover:bg-green-900 h-6 py-4 ml-auto",children:n("Register License",{ns:"common"})})]}),a.jsx(Wn.Content,{className:"!pt-2 w-full !pb-2",children:a.jsx(An,{style:{height:"auto",width:600,maxHeight:"500px"},autoHide:!1,children:a.jsx(iH,{})})}),a.jsx(Wn.Footer,{className:"flex-col !pt-0 !pb-4",children:a.jsxs("div",{className:"flex w-full justify-center mt-3 gap-3",children:[a.jsx(ye,{variant:"ghost",type:"button",onClick:t,className:"hover:bg-slate-200 dark:hover:bg-slate-900 h-10",children:n("Ok, but later",{ns:"common"})}),a.jsxs(ye,{size:"sm",className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-10",children:[n("Upgrade to Pro",{ns:"common"}),a.jsx(cL,{size:16,className:"ml-1"})]})]})})]})})}const lH="/assets/pastebar-accessibility-settings-monterey-CdsSxQWR.gif",cH="/assets/pastebar-accessibility-settings-ventura-B5xWaNbv.gif";function S2e({open:e,onClose:t}){const{t:n}=wt(),r=He(!1),s=He(!1),o=He(null),i=He(14);return f.useEffect(()=>{VY().then(c=>{c==="darwin"&&UY().then(u=>{i.value=parseInt(u)})})},[]),f.useEffect(()=>{o.value!==null&&o.value&&setTimeout(()=>{t()},1200)},[o.value]),a.jsx(Wn,{open:e,handleClose:t,isLargeModal:!0,children:a.jsxs(Wn.Body,{className:"dark:bg-green-950/30 bg-green-50/30",children:[a.jsxs(Wn.Header,{handleClose:t,children:[a.jsx("h1",{className:"mt-0.5",children:n("Enable PasteBar in Accessibility Settings",{ns:"common"})}),a.jsx(ye,{variant:"ghost",size:"sm",onClick:()=>{t()},className:"hover:bg-slate-300 text-slate-700 dark:text-slate-400 dark:hover:bg-slate-900 h-6 py-4 mr-1 ml-auto",children:n("Later",{ns:"common"})})]}),o.value!==!0?a.jsxs(Wn.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[a.jsx(X,{children:n("Please add PasteBar to the list of apps in",{ns:"common"})}),a.jsx(it,{className:"!flex w-fit text-md px-3 cursor-pointer ".concat(o.value===!1?"hover:bg-red-600 dark:hover:bg-red-700 bg-red-600 dark:bg-red-700":"hover:bg-green-600 dark:hover:bg-green-700"),variant:"slate",onClick:()=>{r.value=!0,o.value=null,vn("open_osx_accessibility_preferences")},children:i.value>=13?n("System Settings -> Privacy & Security -> Accessibility",{ns:"common"}):n("System Preferences -> Security & Privacy -> Accessibility",{ns:"common"})}),i.value?a.jsx("img",{src:i.value>=13?cH:lH,draggable:!1,decoding:"async",className:"animate-in fade-in max-w-full max-h-[380px] rounded-xl shadow-sm border border-slate-100 dark:border-slate-700"}):a.jsx(J,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),o.value===!1?a.jsx(X,{className:"text-sm w-[90%]",color:"danger",children:n("Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.",{ns:"common"})}):a.jsx(X,{className:"text-sm w-[90%]",children:n("This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}):a.jsxs(Wn.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[a.jsx(X,{children:n("PasteBar was successfuly added to Accessibility settings",{ns:"common"})}),a.jsx(it,{className:"!flex w-fit text-md px-10",variant:"pro",children:n("Success!",{ns:"common"})}),i.value?a.jsxs(fe,{className:"relative",children:[a.jsx(Dt,{size:"152",className:"text-green-500 absolute animate-in fade-in duration-1000 dark:text-green-600"}),a.jsx("img",{src:i.value>=13?cH:lH,draggable:!1,decoding:"async",className:"opacity-30 max-w-full max-h-[380px] rounded-xl shadow-sm border border-slate-100 dark:border-slate-700"})]}):a.jsx(J,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),a.jsx(X,{className:"text-sm w-[80%]",children:n("PasteBar application now can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}),a.jsx(Wn.Footer,{className:"flex-col !pt-0 !pb-5",children:o.value?a.jsx("div",{className:"flex w-full justify-center mt-3 gap-3",children:a.jsx(ye,{variant:"ghost",type:"button",onClick:async()=>{t()},className:"h-10 ".concat(r.value?"dark:text-green-950 text-white bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700":"hover:bg-slate-200 dark:hover:bg-slate-900"),children:n("Close",{ns:"common"})})}):a.jsxs("div",{className:"flex w-full justify-center mt-3 gap-3",children:[a.jsx(ye,{size:"sm",autoFocus:!0,onClick:()=>{r.value=!0,o.value=null,vn("open_osx_accessibility_preferences")},className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-10",children:n("Open Accessibility",{ns:"common"})}),a.jsx(ye,{variant:"ghost",type:"button",onClick:async()=>{s.value=await vn("check_osx_accessibility_preferences"),o.value=null,s.value?o.value=!0:o.value=!1,r.value=!1},className:"h-10 ".concat(r.value?"dark:text-green-950 text-white bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700":"hover:bg-slate-200 dark:hover:bg-slate-900"),children:n("Done",{ns:"common"})})]})})]})})}const E2e="_visible_1g3i7_1",N2e="_arrow_1g3i7_7",IE={visible:E2e,arrow:N2e,"empty-data":"_empty-data_1g3i7_20","shared-container":"_shared-container_1g3i7_28"},_2e=(e,t)=>{var B;const{t:n}=wt(),r=f.useRef(null),s=f.useRef(null),{isScrolling:o,isSwapPanels:i}=ut(ra),{historyListSimpleBar:c,clipboardHistory:u}=ut(Yi),[h,p]=H2("resetPassCodeNextDelayInSeconds",null),[,m]=H2("resetPassCodeGlobalUnsuccessfulTries",0),[x,C]=_S({}),[b,g,k]=IS({}),j=He(!1),S=He(!1),[E,N]=f.useState({top:0,left:0}),T=f.useRef(b),M=f.useRef(x),L=ts(),D=(z,R=0)=>{T.current||M.current||requestAnimationFrame(()=>{const $=r.current?r.current.getBoundingClientRect():new DOMRect(0),_=z.top-$.top,U=R>0&&z.left+z.width/2-$.left>R?R/2:z.left+z.width/2-$.left;N({top:_,left:U}),j.value=!0})};f.useEffect(()=>{var z;return h&&(_r.value=(z=parseInt(h,10))!=null?z:0),()=>{gi.value&&(clearInterval(gi.value),gi.value=null),_r.value>0?(p(_r.value),_r.value=0):p(null)}},[]),f.useEffect(()=>{_r.value>0&&gi.value==null&&(gi.value=setInterval(()=>{_r.value>0?(p(_r.value),_r.value-=1):(gi.value&&clearInterval(gi.value),m(0),p(null),_r.value=0,Np.value=0,gi.value=null)},1e3))},[_r.value]),f.useEffect(()=>{var z;x||b||(j.value=!1,(z=window.getSelection())==null||z.removeAllRanges())},[i,u,x,b]),f.useEffect(()=>{T.current=b,M.current=x},[b,x]),f.useEffect(()=>{j.value&&(Cu.value=null,Eu.value=null)},[j.value]),Oa("esc",()=>{var z;j.value=!1,(z=window.getSelection())==null||z.removeAllRanges()}),Oa(["meta+a","control+a"],z=>{z.preventDefault()}),Oa(["meta+f","control+f"],z=>{ju.value=z.type==="keydown",setTimeout(()=>{ju.value&&(ju.value=!1)},300)},{enableOnFormTags:!0});const P=mu(z=>{var $,_;const R=Wc();if(R.text.trim().length&&(($=R.selection)!=null&&$.containsNode(r.current,!0)))try{const U=R.selection.getRangeAt(0).getBoundingClientRect();let K=0;(_=c==null?void 0:c.current)!=null&&_.contains(z.target)&&c.current.getBoundingClientRect().width>0&&(K=V9.getState().isSwapPanels?0:c.current.getBoundingClientRect().width),D(U,K)}catch{j.value=!1}else j.value=!1},600,{leading:!1}),A=Z9(z=>{var R;if(z.target===(s==null?void 0:s.current)||(R=s.current)!=null&&R.contains(z.target))return!1;j.value&&(j.value=!1)},30,{leading:!0});return f.useEffect(()=>{o&&j.value&&(j.value=!1)},[o]),f.useEffect(()=>{var z,R;return(z=r==null?void 0:r.current)==null||z.addEventListener("mouseup",P),(R=r==null?void 0:r.current)==null||R.addEventListener("click",A),()=>{var $,_;($=r==null?void 0:r.current)==null||$.removeEventListener("mouseup",P),(_=r==null?void 0:r.current)==null||_.removeEventListener("click",A)}},[r.current]),a.jsxs("div",{ref:Ei(t,r),className:"flex flex-col items-center relative",children:[e.children,Wa.createPortal(a.jsx(J,{className:dn(IE["shared-container"],!j.value&&IE.visible),style:{zIndex:9999,...E},children:j.value&&a.jsxs("button",{ref:s,onClick:z=>{z.stopPropagation()},children:[a.jsx(J,{className:"h-8 text-slate-50 flex items-center justify-center gap-1 px-1.5",children:!x&&!b?a.jsxs(a.Fragment,{children:[nn.value?a.jsx(aa,{size:18,onClick:()=>{k(Wc().text)}}):a.jsx(qa,{size:18,onClick:z=>{!z.altKey&&!z.metaKey?C(Wc().text):k(Wc().text)}}),a.jsx(De,{isCompact:!0,side:"right",delayDuration:2e3,sideOffset:10,text:n("Add to clip or menu",{ns:"common"}),children:a.jsx(Ir,{size:18,onClick:()=>{S.value=!0,j.value=!1}})})]}):x?a.jsxs(a.Fragment,{children:[a.jsx(Dt,{size:16}),a.jsx(X,{className:"text-white text-sm pr-1",children:n("Copied",{ns:"common"})})]}):b&&g===null?a.jsxs(a.Fragment,{children:[a.jsx(Dt,{size:16}),a.jsx(X,{className:"text-white text-sm pr-1",children:n("Pasted",{ns:"common"})})]}):g!==null&&g>0&&a.jsx(a.Fragment,{children:a.jsx(X,{className:"text-white text-sm px-1",children:n("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:g})})})}),a.jsx(J,{className:IE.arrow})]})}),document.body),S.value&&a.jsx(Bbe,{open:((B=Wc().text)==null?void 0:B.length)>0,selectedText:Wc().text,onClose:()=>{S.value=!1,Wc().text?j.value=!0:j.value=!1},onConfirmClip:z=>{L("/history",{replace:!0}),S.value=!1,Rs.value&&(Rs.value=null),setTimeout(()=>{Cu.value=z,Ua.value=Mi.CLIP},300)},onConfirmMenu:z=>{L("/menu",{replace:!0}),S.value=!1,setTimeout(()=>{Eu.value=z,Fs.value=!0},300)}}),bu.value&&a.jsx(JF,{title:n("Confirm {{action}}",{ns:"common",action:wu.value}),open:!0,onClose:()=>{bu.value=!1,wu.value=null,Ki.value=null,io.value=null},showPasscode:!0,onConfirmSuccess:()=>{bu.value=!1,wu.value=null,Ki.value=io.value},onConfirmFailed:()=>{bu.value=!1,wu.value=null,Ki.value=null,io.value=null}}),Uc.value&&a.jsx(C2e,{open:!0,onClose:()=>{Uc.value=!1}}),bx.value&&a.jsx(S2e,{open:!0,onClose:()=>{bx.value=!1}}),fi.value&&a.jsx(JF,{open:!0,showPasscode:!0,isLockScreen:!0,onClose:()=>{fi.value=!1},onConfirmSuccess:()=>{fi.value=!1}})]})},I2e=()=>{const{isMacOSX:e,isWindows:t}=ut(ra);return gbe(),a.jsx("div",{className:"flex flex-col bg-slate-100 dark:bg-slate-700 overflow-hidden rounded-b-md mt-[40px]",children:a.jsx("div",{"data-tauri-drag-region":!0,className:"".concat(e?"h-calc(100vh-40px) p-[14px]":""," ").concat(t?"h-[calc(100vh-50px)] px-[12px] pt-[10px]":""," "),children:a.jsx(rfe,{children:a.jsx(nE,{})})})})},V2=f.forwardRef(_2e),T2e=Object.freeze(Object.defineProperty({__proto__:null,Component:I2e,MainContainer:V2},Symbol.toStringTag,{value:"Module"}));function dH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TE(e,t){return TE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},TE(e,t)}function M2e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TE(e,t)}var uH=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function L2e(e,t){return!!(e===t||uH(e)&&uH(t))}function D2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!L2e(e[n],t[n]))return!1;return!0}function ME(e,t){t===void 0&&(t=D2e);var n,r=[],s,o=!1;function i(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return o&&n===this&&t(c,r)||(s=e.apply(this,c),o=!0,n=this,r=c),s}return i}var O2e=typeof performance=="object"&&typeof performance.now=="function",hH=O2e?function(){return performance.now()}:function(){return Date.now()};function pH(e){cancelAnimationFrame(e.id)}function P2e(e,t){var n=hH();function r(){hH()-n>=t?e.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var LE=-1;function mH(e){if(e===void 0&&(e=!1),LE===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),LE=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return LE}var Am=null;function fH(e){if(e===void 0&&(e=!1),Am===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),s=r.style;return s.width="100px",s.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Am="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Am="negative":Am="positive-ascending"),document.body.removeChild(t),Am}return Am}var R2e=150,A2e=function(e,t){return e};function gH(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,s=e.getItemSize,o=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(m){M2e(x,m);function x(b){var g;return g=m.call(this,b)||this,g._instanceProps=u(g.props,dH(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:dH(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=ME(function(k,j,S,E){return g.props.onItemsRendered({overscanStartIndex:k,overscanStopIndex:j,visibleStartIndex:S,visibleStopIndex:E})}),g._callOnScroll=void 0,g._callOnScroll=ME(function(k,j,S){return g.props.onScroll({scrollDirection:k,scrollOffset:j,scrollUpdateWasRequested:S})}),g._getItemStyle=void 0,g._getItemStyle=function(k){var j=g.props,S=j.direction,E=j.itemSize,N=j.layout,T=g._getItemStyleCache(h&&E,h&&N,h&&S),M;if(T.hasOwnProperty(k))M=T[k];else{var L=n(g.props,k,g._instanceProps),D=s(g.props,k,g._instanceProps),P=S==="horizontal"||N==="horizontal",A=S==="rtl",B=P?L:0;T[k]=M={position:"absolute",left:A?void 0:B,right:A?B:void 0,top:P?0:L,height:P?"100%":D,width:P?D:"100%"}}return M},g._getItemStyleCache=void 0,g._getItemStyleCache=ME(function(k,j,S){return{}}),g._onScrollHorizontal=function(k){var j=k.currentTarget,S=j.clientWidth,E=j.scrollLeft,N=j.scrollWidth;g.setState(function(T){if(T.scrollOffset===E)return null;var M=g.props.direction,L=E;if(M==="rtl")switch(fH()){case"negative":L=-E;break;case"positive-descending":L=N-S-E;break}return L=Math.max(0,Math.min(L,N-S)),{isScrolling:!0,scrollDirection:T.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(k){var j=k.currentTarget,S=j.clientHeight,E=j.scrollHeight,N=j.scrollTop;g.setState(function(T){if(T.scrollOffset===N)return null;var M=Math.max(0,Math.min(N,E-S));return{isScrolling:!0,scrollDirection:T.scrollOffset<M?"forward":"backward",scrollOffset:M,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(k){var j=g.props.outerRef;g._outerRef=k,typeof j=="function"?j(k):j!=null&&typeof j=="object"&&j.hasOwnProperty("current")&&(j.current=k)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&pH(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=P2e(g._resetIsScrolling,R2e)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}x.getDerivedStateFromProps=function(b,g){return z2e(b,g),p(b),null};var C=x.prototype;return C.scrollTo=function(b){b=Math.max(0,b),this.setState(function(g){return g.scrollOffset===b?null:{scrollDirection:g.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},C.scrollToItem=function(b,g){g===void 0&&(g="auto");var k=this.props,j=k.itemCount,S=k.layout,E=this.state.scrollOffset;b=Math.max(0,Math.min(b,j-1));var N=0;if(this._outerRef){var T=this._outerRef;S==="vertical"?N=T.scrollWidth>T.clientWidth?mH():0:N=T.scrollHeight>T.clientHeight?mH():0}this.scrollTo(o(this.props,b,g,E,this._instanceProps,N))},C.componentDidMount=function(){var b=this.props,g=b.direction,k=b.initialScrollOffset,j=b.layout;if(typeof k=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||j==="horizontal"?S.scrollLeft=k:S.scrollTop=k}this._callPropsCallbacks()},C.componentDidUpdate=function(){var b=this.props,g=b.direction,k=b.layout,j=this.state,S=j.scrollOffset,E=j.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var N=this._outerRef;if(g==="horizontal"||k==="horizontal")if(g==="rtl")switch(fH()){case"negative":N.scrollLeft=-S;break;case"positive-ascending":N.scrollLeft=S;break;default:var T=N.clientWidth,M=N.scrollWidth;N.scrollLeft=M-T-S;break}else N.scrollLeft=S;else N.scrollTop=S}this._callPropsCallbacks()},C.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&pH(this._resetIsScrollingTimeoutId)},C.render=function(){var b=this.props,g=b.children,k=b.className,j=b.direction,S=b.height,E=b.innerRef,N=b.innerElementType,T=b.innerTagName,M=b.itemCount,L=b.itemData,D=b.itemKey,P=D===void 0?A2e:D,A=b.layout,B=b.outerElementType,z=b.outerTagName,R=b.style,$=b.useIsScrolling,_=b.width,U=this.state.isScrolling,K=j==="horizontal"||A==="horizontal",W=K?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),Z=G[0],F=G[1],V=[];if(M>0)for(var q=Z;q<=F;q++)V.push(f.createElement(g,{data:L,key:P(q,L),index:q,isScrolling:$?U:void 0,style:this._getItemStyle(q)}));var ne=r(this.props,this._instanceProps);return f.createElement(B||z||"div",{className:k,onScroll:W,ref:this._outerRefSetter,style:Re({position:"relative",height:S,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:j},R)},f.createElement(N||T||"div",{children:V,ref:E,style:{height:K?"100%":ne,pointerEvents:U?"none":void 0,width:K?ne:"100%"}}))},C._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var g=this._getRangeToRender(),k=g[0],j=g[1],S=g[2],E=g[3];this._callOnItemsRendered(k,j,S,E)}}if(typeof this.props.onScroll=="function"){var N=this.state,T=N.scrollDirection,M=N.scrollOffset,L=N.scrollUpdateWasRequested;this._callOnScroll(T,M,L)}},C._getRangeToRender=function(){var b=this.props,g=b.itemCount,k=b.overscanCount,j=this.state,S=j.isScrolling,E=j.scrollDirection,N=j.scrollOffset;if(g===0)return[0,0,0,0];var T=i(this.props,N,this._instanceProps),M=c(this.props,T,N,this._instanceProps),L=!S||E==="backward"?Math.max(1,k):1,D=!S||E==="forward"?Math.max(1,k):1;return[Math.max(0,T-L),Math.max(0,Math.min(g-1,M+D)),T,M]},x}(f.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var z2e=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},F2e=50,zm=function(e,t,n){var r=e,s=r.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var c=0;if(i>=0){var u=o[i];c=u.offset+u.size}for(var h=i+1;h<=t;h++){var p=s(h);o[h]={offset:c,size:p},c+=p}n.lastMeasuredIndex=t}return o[t]},H2e=function(e,t,n){var r=t.itemMetadataMap,s=t.lastMeasuredIndex,o=s>0?r[s].offset:0;return o>=n?vH(e,t,s,0,n):$2e(e,t,Math.max(0,s),n)},vH=function(e,t,n,r,s){for(;r<=n;){var o=r+Math.floor((n-r)/2),i=zm(e,o,t).offset;if(i===s)return o;i<s?r=o+1:i>s&&(n=o-1)}return r>0?r-1:0},$2e=function(e,t,n,r){for(var s=e.itemCount,o=1;n<s&&zm(e,n,t).offset<r;)n+=o,o*=2;return vH(e,t,Math.min(n,s-1),Math.floor(n/2),r)},yH=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,s=t.estimatedItemSize,o=t.lastMeasuredIndex,i=0;if(o>=n&&(o=n-1),o>=0){var c=r[o];i=c.offset+c.size}var u=n-o-1,h=u*s;return i+h},B2e=gH({getItemOffset:function(e,t,n){return zm(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:yH,getOffsetForIndexAndAlignment:function(e,t,n,r,s,o){var i=e.direction,c=e.height,u=e.layout,h=e.width,p=i==="horizontal"||u==="horizontal",m=p?h:c,x=zm(e,t,s),C=yH(e,s),b=Math.max(0,Math.min(C-m,x.offset)),g=Math.max(0,x.offset-m+x.size+o);switch(n==="smart"&&(r>=g-m&&r<=b+m?n="auto":n="center"),n){case"start":return b;case"end":return g;case"center":return Math.round(g+(b-g)/2);case"auto":default:return r>=g&&r<=b?r:r<g?g:b}},getStartIndexForOffset:function(e,t,n){return H2e(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var s=e.direction,o=e.height,i=e.itemCount,c=e.layout,u=e.width,h=s==="horizontal"||c==="horizontal",p=h?u:o,m=zm(e,t,r),x=n+p,C=m.offset+m.size,b=t;b<i-1&&C<x;)b++,C+=zm(e,b,r).size;return b},initInstanceProps:function(e,t){var n=e,r=n.estimatedItemSize,s={itemMetadataMap:{},estimatedItemSize:r||F2e,lastMeasuredIndex:-1};return t.resetAfterIndex=function(o,i){i===void 0&&(i=!0),s.lastMeasuredIndex=Math.min(s.lastMeasuredIndex,o-1),t._getItemStyleCache(-1),i&&t.forceUpdate()},s},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),xH=gH({getItemOffset:function(e,t){var n=e.itemSize;return t*n},getItemSize:function(e,t){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var t=e.itemCount,n=e.itemSize;return n*t},getOffsetForIndexAndAlignment:function(e,t,n,r,s,o){var i=e.direction,c=e.height,u=e.itemCount,h=e.itemSize,p=e.layout,m=e.width,x=i==="horizontal"||p==="horizontal",C=x?m:c,b=Math.max(0,u*h-C),g=Math.min(b,t*h),k=Math.max(0,t*h-C+h+o);switch(n==="smart"&&(r>=k-C&&r<=g+C?n="auto":n="center"),n){case"start":return g;case"end":return k;case"center":{var j=Math.round(k+(g-k)/2);return j<Math.ceil(C/2)?0:j>b+Math.floor(C/2)?b:j}case"auto":default:return r>=k&&r<=g?r:r<k?k:g}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,s=e.height,o=e.itemCount,i=e.itemSize,c=e.layout,u=e.width,h=r==="horizontal"||c==="horizontal",p=t*i,m=h?u:s,x=Math.ceil((m+n-p)/i);return Math.max(0,Math.min(o-1,t+x-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});function W2e(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,s=e.stopIndex;return!(r>n||s<t)}function V2e(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,s=e.startIndex,o=e.stopIndex,i=[],c=null,u=null,h=s;h<=o;h++){var p=t(h);p?u!==null&&(i.push(c,u),c=u=null):(u=h,c===null&&(c=h))}if(u!==null){for(var m=Math.min(Math.max(u,c+r-1),n-1),x=u+1;x<=m&&!t(x);x++)u=x;i.push(c,u)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var C=i[0]-1;if(!t(C))i[0]=C;else break}return i}var U2e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},q2e=function(){function e(t,n){for(var r=0;r<n.length;r++){var s=n[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Y2e=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},bH=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},K2e=function(e){Y2e(t,e);function t(){var n,r,s,o;U2e(this,t);for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];return o=(r=(s=bH(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(c))),s),s._lastRenderedStartIndex=-1,s._lastRenderedStopIndex=-1,s._memoizedUnloadedRanges=[],s._onItemsRendered=function(h){var p=h.visibleStartIndex,m=h.visibleStopIndex;s._lastRenderedStartIndex=p,s._lastRenderedStopIndex=m,s._ensureRowsLoaded(p,m)},s._setRef=function(h){s._listRef=h},r),bH(s,o)}return q2e(t,[{key:"resetloadMoreItemsCache",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],n&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var n=this.props.children;return n({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(n,r){var s=this.props,o=s.isItemLoaded,i=s.itemCount,c=s.minimumBatchSize,u=c===void 0?10:c,h=s.threshold,p=h===void 0?15:h,m=V2e({isItemLoaded:o,itemCount:i,minimumBatchSize:u,startIndex:Math.max(0,n-p),stopIndex:Math.min(i-1,r+p)});(this._memoizedUnloadedRanges.length!==m.length||this._memoizedUnloadedRanges.some(function(x,C){return m[C]!==x}))&&(this._memoizedUnloadedRanges=m,this._loadUnloadedRanges(m))}},{key:"_loadUnloadedRanges",value:function(n){for(var r=this,s=this.props.loadMoreItems||this.props.loadMoreRows,o=function(c){var u=n[c],h=n[c+1],p=s(u,h);p==null||p.then(function(){if(W2e({lastRenderedStartIndex:r._lastRenderedStartIndex,lastRenderedStopIndex:r._lastRenderedStopIndex,startIndex:u,stopIndex:h})){if(r._listRef==null)return;typeof r._listRef.resetAfterIndex=="function"?r._listRef.resetAfterIndex(u,!0):(typeof r._listRef._getItemStyleCache=="function"&&r._listRef._getItemStyleCache(-1),r._listRef.forceUpdate())}})},i=0;i<n.length;i+=2)o(i)}}]),t}(f.PureComponent);function G2e(e,t){var n=f.useRef(null),r=f.useRef(null);r.current=t;var s=f.useRef(null);f.useEffect(function(){o()});var o=f.useCallback(function(){var i=s.current,c=r.current,u=i||(c?c instanceof Element?c:c.current:null);n.current&&n.current.element===u&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:u,subscriber:e,cleanup:u?e(u):void 0})},[e]);return f.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),f.useCallback(function(i){s.current=i,o()},[o])}function wH(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Z2e(e){e===void 0&&(e={});var t=e.onResize,n=f.useRef(void 0);n.current=t;var r=e.round||Math.round,s=f.useRef(),o=f.useState({width:void 0,height:void 0}),i=o[0],c=o[1],u=f.useRef(!1);f.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);var h=f.useRef({width:void 0,height:void 0}),p=G2e(f.useCallback(function(m){return(!s.current||s.current.box!==e.box||s.current.round!==r)&&(s.current={box:e.box,round:r,instance:new ResizeObserver(function(x){var C=x[0],b=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=wH(C,b,"inlineSize"),k=wH(C,b,"blockSize"),j=g?r(g):void 0,S=k?r(k):void 0;if(h.current.width!==j||h.current.height!==S){var E={width:j,height:S};h.current.width=j,h.current.height=S,n.current?n.current(E):u.current||c(E)}})}),s.current.instance.observe(m,{box:e.box}),function(){s.current&&s.current.instance.unobserve(m)}},[e.box,r]),e.ref);return f.useMemo(function(){return{ref:p,width:i.width,height:i.height}},[p,i.width,i.height])}function Q2e(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const DE={prefix:String(Math.round(Math.random()*1e10)),current:0},kH=dt.createContext(DE),J2e=dt.createContext(!1);let X2e=!!(typeof window<"u"&&window.document&&window.document.createElement),OE=new WeakMap;function ewe(e=!1){let t=f.useContext(kH),n=f.useRef(null);if(n.current===null&&!e){var r,s;let o=(s=dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(r=s.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let i=OE.get(o);i==null?OE.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==i.state&&(t.current=i.id,OE.delete(o))}n.current=++t.current}return n.current}function twe(e){let t=f.useContext(kH);t===DE&&!X2e&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=ewe(!!e),r="react-aria".concat(t.prefix);return e||"".concat(r,"-").concat(n)}function nwe(e){let t=dt.useId(),[n]=f.useState(iwe()),r=n?"react-aria":"react-aria".concat(DE.prefix);return e||"".concat(r,"-").concat(t)}const rwe=typeof dt.useId=="function"?nwe:twe;function awe(){return!1}function swe(){return!0}function owe(e){return()=>{}}function iwe(){return typeof dt.useSyncExternalStore=="function"?dt.useSyncExternalStore(owe,awe,swe):f.useContext(J2e)}const lwe=typeof document<"u"?dt.useLayoutEffect:()=>{};let cwe=!!(typeof window<"u"&&window.document&&window.document.createElement),jH=new Map;function dwe(e){let[t,n]=f.useState(e),r=f.useRef(null),s=rwe(t),o=f.useCallback(i=>{r.current=i},[]);return cwe&&jH.set(s,o),lwe(()=>{let i=s;return()=>{jH.delete(i)}},[s]),f.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),s}const uwe=new Set(["id"]),hwe=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),pwe=new Set(["href","target","rel","download","ping","referrerPolicy"]),mwe=/^(data-.*)$/;function PE(e,t={}){let{labelable:n,isLink:r,propNames:s}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(uwe.has(i)||n&&hwe.has(i)||r&&pwe.has(i)||s!=null&&s.has(i)||mwe.test(i))&&(o[i]=e[i]);return o}let p1=new Map,CH=new Set;function SH(){if(typeof window>"u")return;let e=n=>{let r=p1.get(n.target);r||(r=new Set,p1.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=p1.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),p1.delete(n.target)),p1.size===0)){for(let s of CH)s();CH.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?SH():document.addEventListener("DOMContentLoaded",SH));function fwe(e,t){const n=f.useRef(!0),r=f.useRef(null);f.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),f.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((s,o)=>!Object.is(s,r[o])))&&e(),r.current=t},t)}const EH=f.createContext({activity:void 0,id:"",isCollapsed:void 0}),gwe=EH.Provider;function RE(){return f.useContext(EH)}let AE=null,lh=null;function vwe(e,t){switch(e){case"horizontal":return"ew-resize";case"horizontal-max":return t?"e-resize":"w-resize";case"horizontal-min":return t?"w-resize":"e-resize"}}function ywe(){lh!==null&&(document.head.removeChild(lh),AE=null,lh=null)}function xwe(e,t){if(AE===e)return;AE=e;const n=vwe(e,t);lh===null&&(lh=document.createElement("style"),document.head.appendChild(lh)),lh.innerHTML="*{cursor: ".concat(n,"!important;}")}const bwe="_PanelGroupWrapper_13ky4_1",wwe="_PanelGroup_13ky4_1",kwe="_Panel_13ky4_1",jwe="_PanelColumn_13ky4_15",Cwe="_PanelRow_13ky4_16",Swe="_Centered_13ky4_26",Ewe="_ResizeHandle_13ky4_39",Nwe="_Overflow_13ky4_42",_we="_Button_13ky4_53",Iwe="_ButtonDisabled_13ky4_54",Twe="_Buttons_13ky4_68",Mwe="_Capitalize_13ky4_76",Lwe="_WarningBlock_13ky4_80",Dwe="_InlineCode_13ky4_87",Owe="_ResizeHandleOuter_13ky4_91",Pwe="_ResizeHandleInner_13ky4_104",Rwe="_HorizontalIcon_13ky4_135",Awe="_VerticalIcon_13ky4_136",zwe={PanelGroupWrapper:bwe,PanelGroup:wwe,Panel:kwe,PanelColumn:jwe,PanelRow:Cwe,Centered:Swe,ResizeHandle:Ewe,Overflow:Nwe,Button:_we,ButtonDisabled:Iwe,Buttons:Twe,Capitalize:Mwe,WarningBlock:Lwe,InlineCode:Dwe,ResizeHandleOuter:Owe,ResizeHandleInner:Pwe,HorizontalIcon:Rwe,VerticalIcon:Awe};function NH(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}const m1={getItem:e=>(NH(m1),m1.getItem(e)),setItem:(e,t)=>{NH(m1),m1.setItem(e,t)}};function Fwe(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Hwe(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var $we=function(){function e(n){var r=this;this._insertTag=function(s){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,o),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Hwe(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Fwe(r);try{s.insertRule(n,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),rs="-ms-",U2="-moz-",Hn="-webkit-",_H="comm",zE="rule",FE="decl",Bwe="@import",IH="@keyframes",Wwe="@layer",Vwe=Math.abs,q2=String.fromCharCode,Uwe=Object.assign;function qwe(e,t){return Pa(e,0)^45?(((t<<2^Pa(e,0))<<2^Pa(e,1))<<2^Pa(e,2))<<2^Pa(e,3):0}function TH(e){return e.trim()}function Ywe(e,t){return(e=t.exec(e))?e[0]:e}function $n(e,t,n){return e.replace(t,n)}function HE(e,t){return e.indexOf(t)}function Pa(e,t){return e.charCodeAt(t)|0}function f1(e,t,n){return e.slice(t,n)}function ll(e){return e.length}function $E(e){return e.length}function Y2(e,t){return t.push(e),e}function Kwe(e,t){return e.map(t).join("")}var K2=1,Fm=1,MH=0,Zs=0,Gr=0,Hm="";function G2(e,t,n,r,s,o,i){return{value:e,root:t,parent:n,type:r,props:s,children:o,line:K2,column:Fm,length:i,return:""}}function g1(e,t){return Uwe(G2("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gwe(){return Gr}function Zwe(){return Gr=Zs>0?Pa(Hm,--Zs):0,Fm--,Gr===10&&(Fm=1,K2--),Gr}function jo(){return Gr=Zs<MH?Pa(Hm,Zs++):0,Fm++,Gr===10&&(Fm=1,K2++),Gr}function cl(){return Pa(Hm,Zs)}function Z2(){return Zs}function v1(e,t){return f1(Hm,e,t)}function y1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LH(e){return K2=Fm=1,MH=ll(Hm=e),Zs=0,[]}function DH(e){return Hm="",e}function Q2(e){return TH(v1(Zs-1,BE(e===91?e+2:e===40?e+1:e)))}function Qwe(e){for(;(Gr=cl())&&Gr<33;)jo();return y1(e)>2||y1(Gr)>3?"":" "}function Jwe(e,t){for(;--t&&jo()&&!(Gr<48||Gr>102||Gr>57&&Gr<65||Gr>70&&Gr<97););return v1(e,Z2()+(t<6&&cl()==32&&jo()==32))}function BE(e){for(;jo();)switch(Gr){case e:return Zs;case 34:case 39:e!==34&&e!==39&&BE(Gr);break;case 40:e===41&&BE(e);break;case 92:jo();break}return Zs}function Xwe(e,t){for(;jo()&&e+Gr!==57&&!(e+Gr===84&&cl()===47););return"/*"+v1(t,Zs-1)+"*"+q2(e===47?e:jo())}function eke(e){for(;!y1(cl());)jo();return v1(e,Zs)}function tke(e){return DH(J2("",null,null,null,[""],e=LH(e),0,[0],e))}function J2(e,t,n,r,s,o,i,c,u){for(var h=0,p=0,m=i,x=0,C=0,b=0,g=1,k=1,j=1,S=0,E="",N=s,T=o,M=r,L=E;k;)switch(b=S,S=jo()){case 40:if(b!=108&&Pa(L,m-1)==58){HE(L+=$n(Q2(S),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:L+=Q2(S);break;case 9:case 10:case 13:case 32:L+=Qwe(b);break;case 92:L+=Jwe(Z2()-1,7);continue;case 47:switch(cl()){case 42:case 47:Y2(nke(Xwe(jo(),Z2()),t,n),u);break;default:L+="/"}break;case 123*g:c[h++]=ll(L)*j;case 125*g:case 59:case 0:switch(S){case 0:case 125:k=0;case 59+p:j==-1&&(L=$n(L,/\f/g,"")),C>0&&ll(L)-m&&Y2(C>32?PH(L+";",r,n,m-1):PH($n(L," ","")+";",r,n,m-2),u);break;case 59:L+=";";default:if(Y2(M=OH(L,t,n,h,p,s,c,E,N=[],T=[],m),o),S===123)if(p===0)J2(L,t,M,M,N,o,m,c,T);else switch(x===99&&Pa(L,3)===110?100:x){case 100:case 108:case 109:case 115:J2(e,M,M,r&&Y2(OH(e,M,M,0,0,s,c,E,s,N=[],m),T),s,T,m,c,r?N:T);break;default:J2(L,M,M,M,[""],T,0,c,T)}}h=p=C=0,g=j=1,E=L="",m=i;break;case 58:m=1+ll(L),C=b;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&Zwe()==125)continue}switch(L+=q2(S),S*g){case 38:j=p>0?1:(L+="\f",-1);break;case 44:c[h++]=(ll(L)-1)*j,j=1;break;case 64:cl()===45&&(L+=Q2(jo())),x=cl(),p=m=ll(E=L+=eke(Z2())),S++;break;case 45:b===45&&ll(L)==2&&(g=0)}}return o}function OH(e,t,n,r,s,o,i,c,u,h,p){for(var m=s-1,x=s===0?o:[""],C=$E(x),b=0,g=0,k=0;b<r;++b)for(var j=0,S=f1(e,m+1,m=Vwe(g=i[b])),E=e;j<C;++j)(E=TH(g>0?x[j]+" "+S:$n(S,/&\f/g,x[j])))&&(u[k++]=E);return G2(e,t,n,s===0?zE:c,u,h,p)}function nke(e,t,n){return G2(e,t,n,_H,q2(Gwe()),f1(e,2,-2),0)}function PH(e,t,n,r){return G2(e,t,n,FE,f1(e,0,r),f1(e,r+1,-1),r)}function $m(e,t){for(var n="",r=$E(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function rke(e,t,n,r){switch(e.type){case Wwe:if(e.children.length)break;case Bwe:case FE:return e.return=e.return||e.value;case _H:return"";case IH:return e.return=e.value+"{"+$m(e.children,r)+"}";case zE:e.value=e.props.join(",")}return ll(n=$m(e.children,r))?e.return=e.value+"{"+n+"}":""}function ake(e){var t=$E(e);return function(n,r,s,o){for(var i="",c=0;c<t;c++)i+=e[c](n,r,s,o)||"";return i}}function ske(e){return function(t){t.root||(t=t.return)&&e(t)}}function oke(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ike=function(e,t,n){for(var r=0,s=0;r=s,s=cl(),r===38&&s===12&&(t[n]=1),!y1(s);)jo();return v1(e,Zs)},lke=function(e,t){var n=-1,r=44;do switch(y1(r)){case 0:r===38&&cl()===12&&(t[n]=1),e[n]+=ike(Zs-1,t,n);break;case 2:e[n]+=Q2(r);break;case 4:if(r===44){e[++n]=cl()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q2(r)}while(r=jo());return e},cke=function(e,t){return DH(lke(LH(e),t))},RH=new WeakMap,dke=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!RH.get(n))&&!r){RH.set(e,!0);for(var s=[],o=cke(t,s),i=n.props,c=0,u=0;c<o.length;c++)for(var h=0;h<i.length;h++,u++)e.props[u]=s[c]?o[c].replace(/&\f/g,i[h]):i[h]+" "+o[c]}}},uke=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function AH(e,t){switch(qwe(e,t)){case 5103:return Hn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hn+e+U2+e+rs+e+e;case 6828:case 4268:return Hn+e+rs+e+e;case 6165:return Hn+e+rs+"flex-"+e+e;case 5187:return Hn+e+$n(e,/(\w+).+(:[^]+)/,Hn+"box-$1$2"+rs+"flex-$1$2")+e;case 5443:return Hn+e+rs+"flex-item-"+$n(e,/flex-|-self/,"")+e;case 4675:return Hn+e+rs+"flex-line-pack"+$n(e,/align-content|flex-|-self/,"")+e;case 5548:return Hn+e+rs+$n(e,"shrink","negative")+e;case 5292:return Hn+e+rs+$n(e,"basis","preferred-size")+e;case 6060:return Hn+"box-"+$n(e,"-grow","")+Hn+e+rs+$n(e,"grow","positive")+e;case 4554:return Hn+$n(e,/([^-])(transform)/g,"$1"+Hn+"$2")+e;case 6187:return $n($n($n(e,/(zoom-|grab)/,Hn+"$1"),/(image-set)/,Hn+"$1"),e,"")+e;case 5495:case 3959:return $n(e,/(image-set\([^]*)/,Hn+"$1$`$1");case 4968:return $n($n(e,/(.+:)(flex-)?(.*)/,Hn+"box-pack:$3"+rs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hn+e+e;case 4095:case 3583:case 4068:case 2532:return $n(e,/(.+)-inline(.+)/,Hn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ll(e)-1-t>6)switch(Pa(e,t+1)){case 109:if(Pa(e,t+4)!==45)break;case 102:return $n(e,/(.+:)(.+)-([^]+)/,"$1"+Hn+"$2-$3$1"+U2+(Pa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~HE(e,"stretch")?AH($n(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pa(e,t+1)!==115)break;case 6444:switch(Pa(e,ll(e)-3-(~HE(e,"!important")&&10))){case 107:return $n(e,":",":"+Hn)+e;case 101:return $n(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Hn+(Pa(e,14)===45?"inline-":"")+"box$3$1"+Hn+"$2$3$1"+rs+"$2box$3")+e}break;case 5936:switch(Pa(e,t+11)){case 114:return Hn+e+rs+$n(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hn+e+rs+$n(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hn+e+rs+$n(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Hn+e+rs+e+e}return e}var hke=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case FE:e.return=AH(e.value,e.length);break;case IH:return $m([g1(e,{value:$n(e.value,"@","@"+Hn)})],r);case zE:if(e.length)return Kwe(e.props,function(s){switch(Ywe(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $m([g1(e,{props:[$n(s,/:(read-\w+)/,":"+U2+"$1")]})],r);case"::placeholder":return $m([g1(e,{props:[$n(s,/:(plac\w+)/,":"+Hn+"input-$1")]}),g1(e,{props:[$n(s,/:(plac\w+)/,":"+U2+"$1")]}),g1(e,{props:[$n(s,/:(plac\w+)/,rs+"input-$1")]})],r)}return""})}},pke=[hke],mke=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var g=b.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var r=e.stylisPlugins||pke,s={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var g=b.getAttribute("data-emotion").split(" "),k=1;k<g.length;k++)s[g[k]]=!0;i.push(b)});var c,u=[dke,uke];{var h,p=[rke,ske(function(b){h.insert(b)})],m=ake(u.concat(r,p)),x=function(b){return $m(tke(b),m)};c=function(b,g,k,j){h=k,x(b?b+"{"+g.styles+"}":g.styles),j&&(C.inserted[g.name]=!0)}}var C={key:t,sheet:new $we({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return C.sheet.hydrate(i),C};function fke(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gke={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vke=/[A-Z]|^ms/g,yke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zH=function(e){return e.charCodeAt(1)===45},FH=function(e){return e!=null&&typeof e!="boolean"},WE=oke(function(e){return zH(e)?e:e.replace(vke,"-$&").toLowerCase()}),HH=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(yke,function(n,r,s){return dl={name:r,styles:s,next:dl},r})}return gke[e]!==1&&!zH(e)&&typeof t=="number"&&t!==0?t+"px":t};function x1(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return dl={name:n.name,styles:n.styles,next:dl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)dl={name:r.name,styles:r.styles,next:dl},r=r.next;var s=n.styles+";";return s}return xke(e,t,n)}case"function":{if(e!==void 0){var o=dl,i=n(e);return dl=o,x1(e,t,i)}break}}if(t==null)return n;var c=t[n];return c!==void 0?c:n}function xke(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=x1(e,t,n[s])+";";else for(var o in n){var i=n[o];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=o+"{"+t[i]+"}":FH(i)&&(r+=WE(o)+":"+HH(o,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var c=0;c<i.length;c++)FH(i[c])&&(r+=WE(o)+":"+HH(o,i[c])+";");else{var u=x1(e,t,i);switch(o){case"animation":case"animationName":{r+=WE(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var $H=/label:\s*([^\s;\n{]+)\s*(;|$)/g,dl,VE=function(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,s="";dl=void 0;var o=e[0];o==null||o.raw===void 0?(r=!1,s+=x1(n,t,o)):s+=o[0];for(var i=1;i<e.length;i++)s+=x1(n,t,e[i]),r&&(s+=o[i]);$H.lastIndex=0;for(var c="",u;(u=$H.exec(s))!==null;)c+="-"+u[1];var h=fke(s)+c;return{name:h,styles:s,next:dl}},bke=!0;function BH(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):r+=s+" "}),r}var wke=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||bke===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},kke=function(e,t,n){wke(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var s=t;do e.insert(t===s?"."+r:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function WH(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function VH(e,t,n){var r=[],s=BH(e,r,n);return r.length<2?n:s+t(r)}var jke=function(e){var t=mke(e);t.sheet.speedy=function(i){this.isSpeedy=i},t.compat=!0;var n=function(){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];var h=VE(c,t.registered,void 0);return kke(t,h,!1),t.key+"-"+h.name},r=function(){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];var h=VE(c,t.registered),p="animation-"+h.name;return WH(t,{name:h.name,styles:"@keyframes "+p+"{"+h.styles+"}"}),p},s=function(){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];var h=VE(c,t.registered);WH(t,h)},o=function(){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];return VH(t.registered,n,Cke(c))};return{css:n,cx:o,injectGlobal:s,keyframes:r,hydrate:function(i){i.forEach(function(c){t.inserted[c]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:BH.bind(null,t.registered),merge:VH.bind(null,t.registered,n)}},Cke=function e(t){for(var n="",r=0;r<t.length;r++){var s=t[r];if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=e(s);else{o="";for(var i in s)s[i]&&i&&(o&&(o+=" "),o+=i)}break}default:o=s}o&&(n&&(n+=" "),n+=o)}}return n},UH=jke({key:"css"}),qH=UH.cx,Bm=UH.css;function YH(e){throw new Error("Expected never to be called, but received: "+JSON.stringify(e))}function Ske(e){return typeof e=="number"&&!isNaN(e)}function Eke(e){return Object.entries(e)}function Nke(e){return Object.keys(e)}var _ke=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.literal,r=t.overlap,s=n?e:["&"].concat(e);function o(i){if(typeof i!="object"||i==null)return[];if(Array.isArray(i))return i.map(o);var c={},u={},h={};return Object.keys(i).forEach(function(p){var m=i[p];if(!Array.isArray(m)&&n&&(m=[m]),(n||Array.isArray(m))&&p.charCodeAt(0)!==38){var x=void 0;m.forEach(function(C,b){if(!(r&&x===C)&&C!=null)if(x=C,b===0&&!n)h[p]=C;else if(c[s[b]]===void 0){var g;c[s[b]]=(g={},g[p]=C,g)}else c[s[b]][p]=C})}else typeof m=="object"?u[p]=o(m):h[p]=m}),s.forEach(function(p){c[p]&&(h[p]=c[p])}),Object.assign(h,u),h}return function(){for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];return c.map(o)}};const Qs={animation:{duration:{short:"var(--ksv-animation-duration-short)",regular:"var(--ksv-animation-duration-regular)",long:"var(--ksv-animation-duration-long)",xlong:"var(--ksv-animation-duration-xlong)"},easing:{easeInOut:"var(--ksv-animation-easing-ease-in-out)",easeIn:"var(--ksv-animation-easing-ease-in)",easeOut:"var(--ksv-animation-easing-ease-out)"}},size:{alias:{focusRing:"var(--ksv-size-alias-focus-ring)",focusRingGap:"var(--ksv-size-alias-focus-ring-gap)",singleLineHeight:"var(--ksv-size-alias-single-line-height)",singleLineWidth:"var(--ksv-size-alias-single-line-width)"},element:{xsmall:"var(--ksv-size-element-xsmall)",small:"var(--ksv-size-element-small)",regular:"var(--ksv-size-element-regular)",medium:"var(--ksv-size-element-medium)",large:"var(--ksv-size-element-large)",xlarge:"var(--ksv-size-element-xlarge)"},icon:{small:"var(--ksv-size-icon-small)",regular:"var(--ksv-size-icon-regular)",medium:"var(--ksv-size-icon-medium)",large:"var(--ksv-size-icon-large)"},container:{xsmall:"var(--ksv-size-container-xsmall)",small:"var(--ksv-size-container-small)",medium:"var(--ksv-size-container-medium)",large:"var(--ksv-size-container-large)",xlarge:"var(--ksv-size-container-xlarge)"},dialog:{xsmall:"var(--ksv-size-dialog-xsmall)",small:"var(--ksv-size-dialog-small)",medium:"var(--ksv-size-dialog-medium)",large:"var(--ksv-size-dialog-large)"},border:{regular:"var(--ksv-size-border-regular)",medium:"var(--ksv-size-border-medium)",large:"var(--ksv-size-border-large)"},radius:{full:"var(--ksv-size-radius-full)",xsmall:"var(--ksv-size-radius-xsmall)",small:"var(--ksv-size-radius-small)",regular:"var(--ksv-size-radius-regular)",medium:"var(--ksv-size-radius-medium)",large:"var(--ksv-size-radius-large)",xlarge:"var(--ksv-size-radius-xlarge)"},shadow:{small:"var(--ksv-size-shadow-small)",medium:"var(--ksv-size-shadow-medium)",large:"var(--ksv-size-shadow-large)"},space:{xsmall:"var(--ksv-size-space-xsmall)",small:"var(--ksv-size-space-small)",regular:"var(--ksv-size-space-regular)",medium:"var(--ksv-size-space-medium)",large:"var(--ksv-size-space-large)",xlarge:"var(--ksv-size-space-xlarge)",xxlarge:"var(--ksv-size-space-xxlarge)"},scale:{0:"var(--ksv-size-scale-0)",10:"var(--ksv-size-scale-10)",25:"var(--ksv-size-scale-25)",40:"var(--ksv-size-scale-40)",50:"var(--ksv-size-scale-50)",65:"var(--ksv-size-scale-65)",75:"var(--ksv-size-scale-75)",85:"var(--ksv-size-scale-85)",100:"var(--ksv-size-scale-100)",115:"var(--ksv-size-scale-115)",125:"var(--ksv-size-scale-125)",130:"var(--ksv-size-scale-130)",150:"var(--ksv-size-scale-150)",160:"var(--ksv-size-scale-160)",175:"var(--ksv-size-scale-175)",200:"var(--ksv-size-scale-200)",225:"var(--ksv-size-scale-225)",250:"var(--ksv-size-scale-250)",275:"var(--ksv-size-scale-275)",300:"var(--ksv-size-scale-300)",325:"var(--ksv-size-scale-325)",350:"var(--ksv-size-scale-350)",400:"var(--ksv-size-scale-400)",450:"var(--ksv-size-scale-450)",500:"var(--ksv-size-scale-500)",550:"var(--ksv-size-scale-550)",600:"var(--ksv-size-scale-600)",675:"var(--ksv-size-scale-675)",700:"var(--ksv-size-scale-700)",800:"var(--ksv-size-scale-800)",900:"var(--ksv-size-scale-900)",1e3:"var(--ksv-size-scale-1000)",1200:"var(--ksv-size-scale-1200)",1250:"var(--ksv-size-scale-1250)",1600:"var(--ksv-size-scale-1600)",1700:"var(--ksv-size-scale-1700)",2e3:"var(--ksv-size-scale-2000)",2400:"var(--ksv-size-scale-2400)",3e3:"var(--ksv-size-scale-3000)",3400:"var(--ksv-size-scale-3400)",3600:"var(--ksv-size-scale-3600)",4600:"var(--ksv-size-scale-4600)",5e3:"var(--ksv-size-scale-5000)",6e3:"var(--ksv-size-scale-6000)"}},typography:{fontFamily:{base:"var(--ksv-typography-font-family-base)",code:"var(--ksv-typography-font-family-code)"},fontWeight:{regular:"var(--ksv-typography-font-weight-regular)",medium:"var(--ksv-typography-font-weight-medium)",semibold:"var(--ksv-typography-font-weight-semibold)",bold:"var(--ksv-typography-font-weight-bold)"},lineheight:{large:"var(--ksv-typography-lineheight-large)",medium:"var(--ksv-typography-lineheight-medium)",small:"var(--ksv-typography-lineheight-small)"},text:{small:{size:"var(--ksv-typography-text-small-size)",lineheight:"var(--ksv-typography-text-small-lineheight)",baselineTrim:"var(--ksv-typography-text-small-baseline-trim)",capheightTrim:"var(--ksv-typography-text-small-capheight-trim)",capheight:"var(--ksv-typography-text-small-capheight)"},regular:{size:"var(--ksv-typography-text-regular-size)",lineheight:"var(--ksv-typography-text-regular-lineheight)",baselineTrim:"var(--ksv-typography-text-regular-baseline-trim)",capheightTrim:"var(--ksv-typography-text-regular-capheight-trim)",capheight:"var(--ksv-typography-text-regular-capheight)"},medium:{size:"var(--ksv-typography-text-medium-size)",lineheight:"var(--ksv-typography-text-medium-lineheight)",baselineTrim:"var(--ksv-typography-text-medium-baseline-trim)",capheightTrim:"var(--ksv-typography-text-medium-capheight-trim)",capheight:"var(--ksv-typography-text-medium-capheight)"},large:{size:"var(--ksv-typography-text-large-size)",lineheight:"var(--ksv-typography-text-large-lineheight)",baselineTrim:"var(--ksv-typography-text-large-baseline-trim)",capheightTrim:"var(--ksv-typography-text-large-capheight-trim)",capheight:"var(--ksv-typography-text-large-capheight)"}},heading:{small:{size:"var(--ksv-typography-heading-small-size)",lineheight:"var(--ksv-typography-heading-small-lineheight)",baselineTrim:"var(--ksv-typography-heading-small-baseline-trim)",capheightTrim:"var(--ksv-typography-heading-small-capheight-trim)",capheight:"var(--ksv-typography-heading-small-capheight)"},regular:{size:"var(--ksv-typography-heading-regular-size)",lineheight:"var(--ksv-typography-heading-regular-lineheight)",baselineTrim:"var(--ksv-typography-heading-regular-baseline-trim)",capheightTrim:"var(--ksv-typography-heading-regular-capheight-trim)",capheight:"var(--ksv-typography-heading-regular-capheight)"},medium:{size:"var(--ksv-typography-heading-medium-size)",lineheight:"var(--ksv-typography-heading-medium-lineheight)",baselineTrim:"var(--ksv-typography-heading-medium-baseline-trim)",capheightTrim:"var(--ksv-typography-heading-medium-capheight-trim)",capheight:"var(--ksv-typography-heading-medium-capheight)"},large:{size:"var(--ksv-typography-heading-large-size)",lineheight:"var(--ksv-typography-heading-large-lineheight)",baselineTrim:"var(--ksv-typography-heading-large-baseline-trim)",capheightTrim:"var(--ksv-typography-heading-large-capheight-trim)",capheight:"var(--ksv-typography-heading-large-capheight)"}}},color:{alias:{blanket:"var(--ksv-color-alias-blanket)",backgroundIdle:"var(--ksv-color-alias-background-idle)",backgroundDisabled:"var(--ksv-color-alias-background-disabled)",backgroundHovered:"var(--ksv-color-alias-background-hovered)",backgroundFocused:"var(--ksv-color-alias-background-focused)",backgroundPressed:"var(--ksv-color-alias-background-pressed)",backgroundSelected:"var(--ksv-color-alias-background-selected)",backgroundSelectedHovered:"var(--ksv-color-alias-background-selected-hovered)",focusRing:"var(--ksv-color-alias-focus-ring)",borderIdle:"var(--ksv-color-alias-border-idle)",borderHovered:"var(--ksv-color-alias-border-hovered)",borderPressed:"var(--ksv-color-alias-border-pressed)",borderFocused:"var(--ksv-color-alias-border-focused)",borderDisabled:"var(--ksv-color-alias-border-disabled)",borderSelected:"var(--ksv-color-alias-border-selected)",borderInvalid:"var(--ksv-color-alias-border-invalid)",foregroundIdle:"var(--ksv-color-alias-foreground-idle)",foregroundHovered:"var(--ksv-color-alias-foreground-hovered)",foregroundPressed:"var(--ksv-color-alias-foreground-pressed)",foregroundFocused:"var(--ksv-color-alias-foreground-focused)",foregroundDisabled:"var(--ksv-color-alias-foreground-disabled)",foregroundSelected:"var(--ksv-color-alias-foreground-selected)"},background:{canvas:"var(--ksv-color-background-canvas)",surface:"var(--ksv-color-background-surface)",surfaceSecondary:"var(--ksv-color-background-surface-secondary)",surfaceTertiary:"var(--ksv-color-background-surface-tertiary)",inverse:"var(--ksv-color-background-inverse)",accent:"var(--ksv-color-background-accent)",accentEmphasis:"var(--ksv-color-background-accent-emphasis)",positive:"var(--ksv-color-background-positive)",positiveEmphasis:"var(--ksv-color-background-positive-emphasis)",caution:"var(--ksv-color-background-caution)",cautionEmphasis:"var(--ksv-color-background-caution-emphasis)",critical:"var(--ksv-color-background-critical)",criticalEmphasis:"var(--ksv-color-background-critical-emphasis)",pending:"var(--ksv-color-background-pending)",pendingEmphasis:"var(--ksv-color-background-pending-emphasis)",highlight:"var(--ksv-color-background-highlight)",highlightEmphasis:"var(--ksv-color-background-highlight-emphasis)"},border:{muted:"var(--ksv-color-border-muted)",neutral:"var(--ksv-color-border-neutral)",emphasis:"var(--ksv-color-border-emphasis)",accent:"var(--ksv-color-border-accent)",positive:"var(--ksv-color-border-positive)",caution:"var(--ksv-color-border-caution)",critical:"var(--ksv-color-border-critical)",pending:"var(--ksv-color-border-pending)",highlight:"var(--ksv-color-border-highlight)"},foreground:{neutral:"var(--ksv-color-foreground-neutral)",neutralEmphasis:"var(--ksv-color-foreground-neutral-emphasis)",neutralSecondary:"var(--ksv-color-foreground-neutral-secondary)",neutralTertiary:"var(--ksv-color-foreground-neutral-tertiary)",onEmphasis:"var(--ksv-color-foreground-on-emphasis)",inverse:"var(--ksv-color-foreground-inverse)",inverseSecondary:"var(--ksv-color-foreground-inverse-secondary)",accent:"var(--ksv-color-foreground-accent)",positive:"var(--ksv-color-foreground-positive)",caution:"var(--ksv-color-foreground-caution)",critical:"var(--ksv-color-foreground-critical)",pending:"var(--ksv-color-foreground-pending)",highlight:"var(--ksv-color-foreground-highlight)"},shadow:{muted:"var(--ksv-color-shadow-muted)",regular:"var(--ksv-color-shadow-regular)",emphasis:"var(--ksv-color-shadow-emphasis)"},scale:{black:"var(--ksv-color-scale-black)",white:"var(--ksv-color-scale-white)",amber1:"var(--ksv-color-scale-amber1)",amber2:"var(--ksv-color-scale-amber2)",amber3:"var(--ksv-color-scale-amber3)",amber4:"var(--ksv-color-scale-amber4)",amber5:"var(--ksv-color-scale-amber5)",amber6:"var(--ksv-color-scale-amber6)",amber7:"var(--ksv-color-scale-amber7)",amber8:"var(--ksv-color-scale-amber8)",amber9:"var(--ksv-color-scale-amber9)",amber10:"var(--ksv-color-scale-amber10)",amber11:"var(--ksv-color-scale-amber11)",green1:"var(--ksv-color-scale-green1)",green2:"var(--ksv-color-scale-green2)",green3:"var(--ksv-color-scale-green3)",green4:"var(--ksv-color-scale-green4)",green5:"var(--ksv-color-scale-green5)",green6:"var(--ksv-color-scale-green6)",green7:"var(--ksv-color-scale-green7)",green8:"var(--ksv-color-scale-green8)",green9:"var(--ksv-color-scale-green9)",green10:"var(--ksv-color-scale-green10)",green11:"var(--ksv-color-scale-green11)",indigo1:"var(--ksv-color-scale-indigo1)",indigo2:"var(--ksv-color-scale-indigo2)",indigo3:"var(--ksv-color-scale-indigo3)",indigo4:"var(--ksv-color-scale-indigo4)",indigo5:"var(--ksv-color-scale-indigo5)",indigo6:"var(--ksv-color-scale-indigo6)",indigo7:"var(--ksv-color-scale-indigo7)",indigo8:"var(--ksv-color-scale-indigo8)",indigo9:"var(--ksv-color-scale-indigo9)",indigo10:"var(--ksv-color-scale-indigo10)",indigo11:"var(--ksv-color-scale-indigo11)",pink1:"var(--ksv-color-scale-pink1)",pink2:"var(--ksv-color-scale-pink2)",pink3:"var(--ksv-color-scale-pink3)",pink4:"var(--ksv-color-scale-pink4)",pink5:"var(--ksv-color-scale-pink5)",pink6:"var(--ksv-color-scale-pink6)",pink7:"var(--ksv-color-scale-pink7)",pink8:"var(--ksv-color-scale-pink8)",pink9:"var(--ksv-color-scale-pink9)",pink10:"var(--ksv-color-scale-pink10)",pink11:"var(--ksv-color-scale-pink11)",purple1:"var(--ksv-color-scale-purple1)",purple2:"var(--ksv-color-scale-purple2)",purple3:"var(--ksv-color-scale-purple3)",purple4:"var(--ksv-color-scale-purple4)",purple5:"var(--ksv-color-scale-purple5)",purple6:"var(--ksv-color-scale-purple6)",purple7:"var(--ksv-color-scale-purple7)",purple8:"var(--ksv-color-scale-purple8)",purple9:"var(--ksv-color-scale-purple9)",purple10:"var(--ksv-color-scale-purple10)",purple11:"var(--ksv-color-scale-purple11)",red1:"var(--ksv-color-scale-red1)",red2:"var(--ksv-color-scale-red2)",red3:"var(--ksv-color-scale-red3)",red4:"var(--ksv-color-scale-red4)",red5:"var(--ksv-color-scale-red5)",red6:"var(--ksv-color-scale-red6)",red7:"var(--ksv-color-scale-red7)",red8:"var(--ksv-color-scale-red8)",red9:"var(--ksv-color-scale-red9)",red10:"var(--ksv-color-scale-red10)",red11:"var(--ksv-color-scale-red11)",slate1:"var(--ksv-color-scale-slate1)",slate2:"var(--ksv-color-scale-slate2)",slate3:"var(--ksv-color-scale-slate3)",slate4:"var(--ksv-color-scale-slate4)",slate5:"var(--ksv-color-scale-slate5)",slate6:"var(--ksv-color-scale-slate6)",slate7:"var(--ksv-color-scale-slate7)",slate8:"var(--ksv-color-scale-slate8)",slate9:"var(--ksv-color-scale-slate9)",slate10:"var(--ksv-color-scale-slate10)",slate11:"var(--ksv-color-scale-slate11)"}}};function X2(e,t={}){let{delay:n=0,duration:r="short",easing:s="easeInOut"}=t,o=s==="linear"?"linear":Qs.animation.easing[s],i=KH(r);return Array.isArray(e)?e.map(c=>X2(c,t)).join(", "):"".concat(e," ").concat(i," ").concat(o)+(n?" ".concat(KH(n)):"")}function KH(e){return Ske(e)?"".concat(e,"ms"):Qs.animation.duration[e]}const Ike="ksv",GH=Tke("reset");function Tke(e){return"".concat(Ike,":").concat(e)}function ew(...e){let t=qH(e);return t.includes(GH)?t:qH(GH,t)}const sc={mobile:0,tablet:740,desktop:992,wide:1200},tw=e=>"@media (min-width: ".concat(e,"px)"),UE=e=>"@media (max-width: ".concat(e-1,"px)"),ZH={above:{mobile:tw(sc.tablet),tablet:tw(sc.desktop),desktop:tw(sc.wide)},below:{tablet:UE(sc.tablet),desktop:UE(sc.desktop),wide:UE(sc.wide)}},QH=Nke(sc),{mobile:yEe,...Mke}=sc,Lke=Object.values(Mke).map(tw),Dke=_ke(Lke);function Oke(e,t){return t==null?null:typeof t=="object"&&!Array.isArray(t)?Pke(e,t):e(t)}function Pke(e,t){const n=[];for(let r=0;r<QH.length;r++){const s=QH[r];n.push(t[s]!=null?e(t[s]):null)}return n}const{mobile:xEe,...Rke}=sc;Eke(Rke).sort(([,e],[,t])=>t-e).map(([,e])=>"(min-width: ".concat(e,"px)"));function Ake(e,t){for(const n of t.split(".")){if(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n))return;e=e[n]}return e}function nw(e,t){var n;return typeof t!="string"?t:(e=t.includes(".")?t:"".concat(e,".").concat(t),(n=Ake(Qs,e))!==null&&n!==void 0?n:t)}function Co(e,t){return[e,n=>nw(t,n)]}const zke=e=>e;function fr(e,t=zke){return[e,t]}function b1(e){return[e,t=>{const n=nw("color.border",t);return"".concat(Qs.size.border.regular," solid ").concat(n)}]}function Fke(e){let[t,n]=e.split(".");return!t||!n?!1:!!Qs.size[t][n]}function Hke(e){if(typeof e=="number"){if(e===0)return"".concat(e,"px");YH(e)}if(Fke(e)){let[t,n]=e.split(".");return Qs.size[t][n]}if(e==="auto"||e==="inherit"||e==="100%"||e==="100vh"||e==="100vw")return e;YH(e)}function ch(e){return[e,Hke]}function Wr(e){return Co(e,"size.space")}function oc(e){return Co(e,"size.radius")}const $ke={backgroundColor:Co("backgroundColor","color.background"),boxShadow:["boxShadow",Bke],height:ch("height"),maxHeight:ch("maxHeight"),minHeight:ch("minHeight"),maxWidth:ch("maxWidth"),minWidth:ch("minWidth"),width:ch("width"),margin:Wr("margin"),marginStart:Wr("marginInlineStart"),marginEnd:Wr("marginInlineEnd"),marginTop:Wr("marginBlockStart"),marginBottom:Wr("marginBlockEnd"),marginX:Wr("marginInline"),marginY:Wr("marginBlock"),padding:Wr("padding"),paddingStart:Wr("paddingInlineStart"),paddingEnd:Wr("paddingInlineEnd"),paddingTop:Wr("paddingBlockStart"),paddingBottom:Wr("paddingBlockEnd"),paddingX:Wr("paddingInline"),paddingY:Wr("paddingBlock"),border:b1("border"),borderStart:b1("borderInlineStart"),borderEnd:b1("borderInlineEnd"),borderTop:b1("borderTop"),borderBottom:b1("borderBottom"),borderColor:Co("borderColor","color.border"),borderStartColor:Co("borderInlineStartColor","color.border"),borderEndColor:Co("borderInlineEndColor","color.border"),borderTopColor:Co("borderTopColor","color.border"),borderBottomColor:Co("borderBottomColor","color.border"),borderStyle:fr("borderStyle"),borderStartStyle:fr("borderInlineStartStyle"),borderEndStyle:fr("borderInlineEndStyle"),borderTopStyle:fr("borderTopStyle"),borderBottomStyle:fr("borderBottomStyle"),borderWidth:Co("borderWidth","size.border"),borderStartWidth:Co("borderInlineStartWidth","size.border"),borderEndWidth:Co("borderInlineEndWidth","size.border"),borderTopWidth:Co("borderTopWidth","size.border"),borderBottomWidth:Co("borderBottomWidth","size.border"),borderRadius:oc("borderRadius"),borderTopStartRadius:oc("borderStartStartRadius"),borderTopEndRadius:oc("borderStartEndRadius"),borderBottomStartRadius:oc("borderEndStartRadius"),borderBottomEndRadius:oc("borderEndEndRadius"),borderTopRadius:oc(["borderStartStartRadius","borderStartEndRadius"]),borderBottomRadius:oc(["borderEndStartRadius","borderEndEndRadius"]),borderStartRadius:oc(["borderStartStartRadius","borderEndStartRadius"]),borderEndRadius:oc(["borderEndEndRadius","borderStartEndRadius"]),inset:Wr("inset"),insetBottom:Wr("insetBlockEnd"),insetEnd:Wr("insetInlineEnd"),insetStart:Wr("insetInlineStart"),insetTop:Wr("insetBlockStart"),insetX:Wr("insetInline"),insetY:Wr("insetBlock"),position:fr("position"),zIndex:fr("zIndex"),order:fr("order"),alignSelf:fr("alignSelf"),flex:fr("flex",qE),flexBasis:ch("flexBasis"),flexGrow:fr("flexGrow",qE),flexShrink:fr("flexShrink",qE),justifySelf:fr("justifySelf"),gridArea:fr("gridArea"),gridColumn:fr("gridColumn"),gridColumnEnd:fr("gridColumnEnd"),gridColumnStart:fr("gridColumnStart"),gridRow:fr("gridRow"),gridRowEnd:fr("gridRowEnd"),gridRowStart:fr("gridRowStart"),cursor:fr("cursor"),opacity:fr("opacity"),pointerEvents:fr("pointerEvents"),overflow:fr("overflow"),userSelect:fr("userSelect")};function qE(e){return typeof e=="boolean"?e?"1":void 0:""+e}function Bke(e){const t={small:"muted",medium:"regular",large:"emphasis"},[n,r]=e.split(" "),s=nw("color.shadow",r!=null?r:t[n]);return"".concat(nw("size.shadow",n)," ").concat(s)}function Wke(e,t){let n={};for(let r in e){let s=t[r];if(!s||e[r]==null)continue;let[o,i]=s,c=Oke(i,e[r]);if(Array.isArray(o))for(let u of o)n[u]=c;else n[o]=c}return n}function YE(e,t={}){let n={...$ke,...t},{isHidden:r,UNSAFE_className:s,UNSAFE_style:o,...i}=e,c=Wke(e,n),u=Dke(c);i.className,i.style;let h=[];if(r)if(r===!0)h.push({display:"none"});else{const p={};"above"in r&&(p[ZH.above[r.above]]={display:"none"}),"below"in r&&(p[ZH.below[r.below]]={display:"none"}),h.push(p)}return{className:ew(Bm(u),s,Bm(h)),style:o}}function JH(e){return qke(e)?e.clientX:Yke(e)?e.touches[0].clientX:0}function Vke(e,t,n){return Math.round((e-t)/(n-t)*100)}function KE(e){return"primary-pane-".concat(e)}function XH(e){return"secondary-pane-".concat(e)}function e$(e){return"resize-handle-".concat(e)}function t$(e){return document.getElementById(KE(e))}function Uke(e){return document.getElementById(XH(e))}function n$(e){return document.getElementById(e$(e))}function Wm(e){return"".concat(e,"px")}function qke(e){return e.type.startsWith("mouse")}function Yke(e){return e.type.startsWith("touch")}const r$="--primary-pane-max-width",Kke="var(".concat(r$,")"),a$="--primary-pane-min-width",Gke="var(".concat(a$,")"),rw="--primary-pane-width",Zke="var(".concat(rw,")"),Qke=32,Jke=10,Xke={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},e5e=f.forwardRef(function(e,t){const{activity:n,id:r,isCollapsed:s}=RE();return a.jsx("div",{...e,ref:t,"aria-controls":KE(r),"aria-label":"Resize","aria-orientation":"vertical",id:e$(r),role:"separator",tabIndex:0,"data-split-view-resize-handle":!0,"data-split-view-activity":n,"data-split-view-collapsed":s||void 0,className:"animate-in ".concat(Bm({backgroundColor:'var("--tw-red-500")',boxSizing:"border-box",cursor:"ew-resize",flexShrink:0,opacity:0,outline:0,position:"relative",touchAction:"none",animationDuration:"0.3s",transition:X2("opacity"),userSelect:"none",width:18,zIndex:1,"&[data-split-view-collapsed]:not([data-split-view-activity])":Xke,"&::before":{content:'""',position:"absolute",inset:"calc(".concat(Qs.size.space.small," * -1)")},"&::after":{backgroundColor:Qs.color.alias.backgroundHovered,content:'""',insetBlock:0,insetInline:"calc(".concat(Qs.size.border.medium," * -1)"),opacity:0,position:"absolute",transition:X2("opacity")},"&:hover":{opacity:1,backgroundColor:Qs.color.border.neutral,transitionDelay:Qs.animation.duration.regular,"&::after":{opacity:1,transitionDelay:Qs.animation.duration.regular}},"&[data-split-view-activity]::after":{backgroundColor:Qs.color.background.accentEmphasis,insetInline:"calc(".concat(Qs.size.border.regular," * -1)"),opacity:1}})),children:a.jsx(rL,{className:"".concat(zwe.HorizontalIcon," text-slate-300 dark:text-slate-500"),type:"resize-horizontal",width:"16px"})})});function GE(e){const{autoSaveId:t,children:n,defaultSize:r,isCollapsed:s,minSize:o,maxSize:i,onCollapseChange:c,onResize:u,swapPanes:h,reversed:p,storage:m=m1}=e,[x,C]=h?[n[1],n[0]]:n,b=dwe(e.id),g=YE(e),[k,j]=f.useState(p),[S,E]=f.useState(!1),[N,T]=f.useState(!1),[M,L]=f.useState(()=>{let B=r;if(t){const z=m.getItem(t);z&&(B=Number.parseInt(z))}return B}),D=f.useRef(null),P=f.useRef(0),A=f.useRef(0);return f.useEffect(()=>{const B=n$(b),z=t$(b),R=Uke(b);j(p?(B==null?void 0:B.previousElementSibling)===z:(B==null?void 0:B.previousElementSibling)===R)},[p,b]),fwe(()=>u==null?void 0:u(M),[M]),f.useEffect(()=>{var B;(B=D.current)==null||B.style.setProperty(rw,Wm(M)),A.current=M,t&&m.setItem(t,Wm(M))},[t,u,M,m]),f.useEffect(()=>{const B=D.current,z=n$(b),R=t$(b);if(!B||!z||!R)return;let $=!1;const _=typeof s=="boolean",U=V=>{V.preventDefault();let q=JH(V)-P.current;k&&(q=q*-1);let ne=M+q;Math.abs(ne-r)<Qke/2&&(ne=r),_&&($=ne<=o/2),$?(R.style.setProperty("width","0px"),A.current=M):(A.current=ne,R.style.removeProperty("width")),B.style.setProperty(rw,Wm(A.current));let Q="horizontal";A.current<o&&(Q="horizontal-min"),A.current>i&&(Q="horizontal-max"),xwe(Q,!!k)},K=()=>{z.blur(),E(!1),ywe(),$?(c==null||c(!s),R.style.removeProperty("width")):L(Q2e(A.current,o,i)),$=!1,document.body.removeEventListener("mousemove",U),document.body.removeEventListener("touchmove",U),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K)},W=V=>{"button"in V&&V.button!==0||"touches"in V&&V.touches.length!==1||(E(!0),P.current=JH(V),document.body.addEventListener("mousemove",U),document.body.addEventListener("touchmove",U),window.addEventListener("mouseup",K),window.addEventListener("touchend",K))},G=V=>{if(V.defaultPrevented)return;const q=Math.round((i-o)/Jke),ne=()=>L(ae=>Math.min(ae+q,i)),Q=()=>L(ae=>Math.max(ae-q,o));switch(V.key){case"Enter":_&&(V.preventDefault(),c==null||c(!s));break;case"Home":V.preventDefault(),L(o);break;case"End":V.preventDefault(),L(i);break;case"ArrowLeft":V.preventDefault(),k?ne():Q();break;case"ArrowRight":V.preventDefault(),k?Q():ne()}},Z={passive:!0},F=V=>{V.clientX===P.current&&L(r)};return z.addEventListener("contextmenu",K),z.addEventListener("dblclick",F),z.addEventListener("keydown",G),z.addEventListener("mousedown",W,Z),z.addEventListener("touchstart",W,Z),()=>{z.removeEventListener("contextmenu",K),z.removeEventListener("dblclick",F),z.removeEventListener("keydown",G),z.removeEventListener("mousedown",W),z.removeEventListener("touchstart",W)}},[i,o,r,b,k,M,c,s,h]),a.jsx(gwe,{value:{id:b,isCollapsed:s,activity:S?"pointer":N?"keyboard":void 0},children:a.jsxs("div",{...g,...PE(e),ref:D,className:ew(Bm({display:"flex",height:"100%",width:"100%",overflow:"hidden",[a$]:Wm(o),[r$]:Wm(i),[rw]:Wm(r)}),g.className),children:[x,a.jsx(e5e,{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Vke(M,o,i),onBlur:()=>T(!1),onFocus:()=>T(!0)}),C]})})}const ZE=f.forwardRef(function(e,t){const{activity:n,id:r,isCollapsed:s}=RE(),o=YE(e);return a.jsx("div",{...o,...PE(e),ref:t,id:KE(r),"data-split-pane":"primary","data-split-view-activity":n,"data-split-view-collapsed":s||void 0,className:ew(Bm({containerType:"inline-size",overflow:"hidden",width:"clamp(".concat(Gke,",").concat(Zke,",").concat(Kke,")"),maxWidth:"calc(100% - 100px)","&[data-split-view-collapsed]":{visibility:"hidden",width:0},"&:not([data-split-view-activity])":{transition:X2("width")},"&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),o.className),children:e.children})}),QE=f.forwardRef(function(e,t){const{id:n,activity:r}=RE(),s=YE(e);return a.jsx("div",{...s,...PE(e),ref:t,id:XH(n),"data-split-pane":"secondary","data-split-view-activity":r,className:ew(Bm({containerType:"inline-size",flex:"1 1 0",minWidth:"100px",overflow:"hidden","&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),s.className),children:e.children})});function t5e({id:e}){const{setNodeRef:t,isOver:n}=Ky({id:e});return a.jsxs("div",{ref:t,className:"flex flex-row items-center justify-center py-1.5 px-3 border-2 border-dashed rounded-md w-[260px] ".concat(n?"border-red-600":"border-slate-300 dark:border-slate-600"),children:[a.jsx(X,{children:"\xA0"}),a.jsx(or,{size:15,className:"text-red-400 dark:text-red-700"}),a.jsx(X,{children:"\xA0"})]})}function s$({historyId:e,value:t,arrLinks:n,isImage:r,isText:s,isImageData:o,isLargeView:i,isMasked:c,isPinned:u,isFavorite:h,detectedLanguage:p,invalidateClipboardHistoryQuery:m=()=>{},generateLinkMetaData:x=()=>Promise.resolve(),removeLinkMetaData:C=()=>Promise.resolve(),isSelected:b,hasLinkCard:g,setSavingItem:k,setLargeViewItemId:j,setSelectHistoryItem:S,onCopyPaste:E}){const{t:N}=wt(),T=cn(),{copyPasteDelay:M,setCopyPasteDelay:L,historyDetectLanguagesEnabledList:D}=ut(Nr),{updateClipboardHistoryById:P}=Hxe(),{deleteClipboardHistoryByIds:A}=hE(),{pinnedClipboardHistoryByIds:B}=IF(),z=ts(),R=$=>{Wi(N("Errors:::Something went wrong! {{err}} Please try again.",{ns:"common",err:$}),"Error")};return e==null?null:a.jsx(kg,{children:a.jsxs(am,{className:"w-[190px]",children:[a.jsx(Tt,{onClick:()=>{S(e)},children:b?a.jsxs(a.Fragment,{children:[N("Deselect",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(xse,{size:15})})]}):a.jsxs(a.Fragment,{children:[N("Select",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(uL,{size:15})})]})}),a.jsxs(Tt,{onClick:()=>{E(e)},children:[N("Copy & Paste",{ns:"contextMenus"}),a.jsxs(fe,{className:"ml-auto",children:[a.jsx(fe,{className:"text-gray-800 relative",children:a.jsx(J,{className:"py-0 px-2 font-normal pr-2",children:a.jsx(X,{className:"text-xs text-gray-400/80",children:M>0?"delay ".concat(M,"s"):"no delay"})})}),a.jsx(aa,{size:15})]})]}),a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[N("Paste Delay",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[a.jsx(ki,{checked:M===1,onSelect:()=>{L(1),E(e,1)},children:a.jsxs(X,{children:["1 ",N("second",{ns:"common"})]})}),a.jsx(ki,{checked:M===2,onSelect:()=>{L(2),E(e,2)},children:a.jsxs(X,{children:["2 ",N("seconds",{ns:"common"})]})}),a.jsx(ki,{checked:M===3,onSelect:()=>{L(3),E(e,3)},children:a.jsxs(X,{children:["3 ",N("seconds",{ns:"common"})]})}),a.jsx(ki,{checked:M===4,onSelect:()=>{L(4),E(e,4)},children:a.jsxs(X,{children:["4 ",N("seconds",{ns:"common"})]})}),a.jsx(ki,{checked:M===5,onSelect:()=>{L(5),E(e,5)},children:a.jsxs(X,{children:["5 ",N("seconds",{ns:"common"})]})})]})]}),a.jsx(Zn,{}),a.jsxs(Tt,{onClick:()=>{j(i?null:e)},children:[i?N("Close Large View",{ns:"contextMenus"}):N("Show Large View",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:i?a.jsx(ese,{size:15}):a.jsx(WC,{size:15})})]}),a.jsx(Zn,{}),(n==null?void 0:n.length)>0&&a.jsxs(a.Fragment,{children:[n[0]===t&&!r&&!g&&a.jsxs(Tt,{onClick:async()=>{await x(e,mr(n[0])),m()},children:[N("Add Link Card",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(ag,{size:15})})]}),g&&a.jsxs(Tt,{onClick:async()=>{await C(e),m()},children:[N("Remove Link Card",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(ag,{size:15})})]})]}),a.jsxs(Tt,{onClick:async()=>{await B({historyIds:[e],isPinned:!u}),await T.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})},children:[u?N("UnPin",{ns:"contextMenus"}):N("Pin",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:u?a.jsx(Iu,{size:15}):a.jsx(zl,{size:15})})]}),a.jsxs(Tt,{onClick:async()=>{await P({historyId:e,updatedData:{isFavorite:!h,historyId:e}}),await T.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})},children:[h?N("Remove Star",{ns:"contextMenus"}):N("Star",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:h?a.jsx(Ox,{size:15}):a.jsx(Mu,{size:15})})]}),a.jsx(Zn,{}),a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[N("Add to",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{className:"w-28",children:[a.jsxs(Tt,{onClick:()=>{Ua.value=Mi.CLIP,Tp.value=[e]},children:[N("AddTo:::Clip on Board",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(KC,{size:15})})]}),a.jsxs(Tt,{onClick:()=>{z("/menu",{replace:!0}),setTimeout(()=>{Qc.value=e.toString(),Fs.value=!0},300)},children:[N("AddTo:::Paste Menu",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(JC,{size:15})})]})]})]}),a.jsx(Zn,{}),(n==null?void 0:n.length)>0&&!p||s&&a.jsxs(a.Fragment,{children:[a.jsxs(Tt,{onClick:()=>{P({historyId:e,updatedData:{isMasked:!c,historyId:e}})},children:[c?N("Unmask Secret",{ns:"contextMenus"}):N("Mask Secret",{ns:"contextMenus"}),a.jsx("div",{className:"ml-auto",children:a.jsx(dL,{size:15})})]}),a.jsx(Zn,{})]}),p&&a.jsxs(a.Fragment,{children:[a.jsxs(Ga,{children:[a.jsxs(Ma,{children:[N("Detected Language",{ns:"contextMenus"})," ..."]}),a.jsxs(La,{children:[D.map($=>a.jsx(ki,{checked:p===$,onSelect:()=>{P({historyId:e,updatedData:{detectedLanguage:$,isCode:!0,historyId:e}})},children:a.jsx(X,{children:$})},$)),a.jsx(Zn,{}),a.jsxs(Tt,{onSelect:()=>{P({historyId:e,updatedData:{isCode:!1,isText:!0,historyId:e}})},children:[a.jsx(ine,{size:16,className:"mr-2"}),a.jsx(X,{children:N("not a code",{ns:"contextMenus"})})]})]})]}),a.jsx(Zn,{})]}),(r||o)&&a.jsxs(Tt,{onClick:()=>{vn("save_to_file_history_item",{historyId:e,asImage:!0}).then($=>{$==="saved"?(k(e),setTimeout(()=>{k(null)},1600)):$!=="cancel"&&(R(N("Errors:::Cant save image file",{ns:"common"})),console.error(N("Errors:::Failed to save image file",{ns:"common"}),$))}).catch(()=>{R(N("Errors:::Cant save image file",{ns:"common"}))})},children:[N("Save as Image File",{ns:"contextMenus"})," ...",a.jsx("div",{className:"ml-auto",children:a.jsx(Z0,{size:15})})]}),!(r&&!(n!=null&&n.length))&&a.jsxs(Tt,{onClick:()=>{vn("save_to_file_history_item",{historyId:e}).then($=>{$==="saved"?(k(e),setTimeout(()=>{k(null)},1600)):$!=="cancel"&&R(N("Errors:::Cant save to file",{ns:"common"}))}).catch(()=>{R(N("Errors:::Cant save to file",{ns:"common"}))})},children:[N("Save as Text File",{ns:"contextMenus"}),"...",a.jsx("div",{className:"ml-auto",children:a.jsx(Z0,{size:15})})]}),a.jsx(Zn,{}),a.jsxs(Tt,{className:qc.value===e?"!bg-red-100 dark:!bg-red-950":"",onClick:async $=>{$.preventDefault(),qc.value===e?(await A({historyIds:[e]}),qc.value=null):($.preventDefault(),qc.value=e,setTimeout(()=>{qc.value=null},3e3))},children:[a.jsx(fe,{children:a.jsx(X,{className:"!text-red-500 dark:!text-red-600",children:qc.value!==e?N("Delete",{ns:"common"}):N("Click to Confirm",{ns:"common"})})}),a.jsx("div",{className:"ml-auto",children:a.jsx(or,{className:"h-4 w-4 text-red-500 dark:!text-red-600"})})]})]})})}function n5e({index:e,style:t,clipboard:n,isDark:r,searchTerm:s,isPinnedTop:o=!1,isPinnedTopFirst:i=!1,isDisabledPinnedMoveUp:c=!1,isDisabledPinnedMoveDown:u=!1,isExpanded:h=!1,isSelected:p=!1,isWrapText:m=!1,isDeleting:x=!1,isOverPinned:C=!1,isLinkCardPreviewEnabled:b=!0,selectedItemsCount:g=0,timeAgo:k=null,showTimeAgo:j=!1,showSelectHistoryItems:S,isCopied:E,isPasted:N,isSaved:T,isLargeView:M=!1,largeViewItemId:L,setSavingItem:D=()=>{},setLargeViewItemId:P=()=>{},pastingCountDown:A,onCopyPaste:B=()=>{},onCopy:z=()=>{},invalidateClipboardHistoryQuery:R=()=>{},generateLinkMetaData:$,removeLinkMetaData:_=()=>Promise.resolve(),isBrokenImage:U=!1,setExpanded:K=()=>{},onMovePinnedUpDown:W=({})=>{},setWrapText:G=()=>{},setBrokenImageItem:Z=()=>{},setSelectHistoryItem:F=()=>{},isDragPreview:V=!1,setRowHeight:q=()=>{}}){var Lt,$e,st,At,Qt,Vt,_e,sn,Ht,kt,rn,Zt,Jt,gn,zt,Mn;const{t:ne}=wt(),Q=f.useRef(null),ae=f.useRef(null),re=f.useRef(null),le=E||N||T,oe=He(!1),ie=He(!1),de=o?ku.value==="".concat(n==null?void 0:n.historyId,"::pinned")&&!V&&!le||ie.value:ku.value===(n==null?void 0:n.historyId)&&!le&&!V||ie.value,{setNodeRef:xe,listeners:je,isDragging:Ee}=I9({disabled:V&&!(de||p),data:{isPinned:o},id:o?"".concat(n==null?void 0:n.historyId,"::pinned"):(Lt=n==null?void 0:n.historyId)!=null?Lt:"id"});if(f.useLayoutEffect(()=>{var Ce;(Ce=Q.current)!=null&&Ce.clientHeight&&oe.value&&e!==void 0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{Q!=null&&Q.current&&q(e,(Q==null?void 0:Q.current.clientHeight)+4)})})},[oe.value,($e=Q.current)==null?void 0:$e.clientHeight,q,k,j,e]),f.useEffect(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e!==void 0&&(Q!=null&&Q.current)&&q(e,(Q==null?void 0:Q.current.clientHeight)+4)})})},[h,m]),!n)return null;const Te=f.useMemo(()=>{var Ce,Be,ke;return!n.isFavorite&&!n.isPinned?"":(Ce=Q==null?void 0:Q.current)!=null&&Ce.clientHeight&&(((Be=Q==null?void 0:Q.current)==null?void 0:Be.clientHeight)<=42&&!j||((ke=Q==null?void 0:Q.current)==null?void 0:ke.clientHeight)<=72&&j)?o&&!n.isFavorite?"":"mr-4":""},[(st=Q==null?void 0:Q.current)==null?void 0:st.clientHeight,j,o,n.isFavorite,n.isPinned]),Me=(Qt=(At=n==null?void 0:n.value)==null?void 0:At.trim())!=null?Qt:"",ze=(n==null?void 0:n.isLink)&&((Vt=n==null?void 0:n.linkMetadata)==null?void 0:Vt.linkTitle)&&((_e=n==null?void 0:n.linkMetadata)==null?void 0:_e.linkDomain),qe=e===0&&n.updatedAt>Date.now()-h8,Ye=i?"top-[5px]":"top-[-10px]",Ve="".concat(!o&&C&&!qe?"bg-orange-50 dark:!bg-transparent":x?"bg-red-50 dark:bg-red-950/80":ie.value?"bg-slate-100 dark:bg-slate-900 ".concat(qe?"bg-teal-50/80 dark:bg-sky-900/80":""):le?"dark:bg-green-950/80":T?"dark:bg-sky-950/80":p?"bg-yellow-50 dark:bg-amber-950/80":qe?"bg-teal-50/90 dark:bg-sky-950":"bg-white dark:bg-slate-950/80");return a.jsx(J,{style:{...t,opacity:(x||C)&&!V?1:Ee||V?.7:void 0},ref:V&&!(de||p)?null:xe,...p||de?je:{},children:a.jsxs(J,{ref:Q,children:[j&&a.jsx(J,{className:"flex justify-center text-gray-400 text-xs ".concat(e===0?"pt-0":"pt-2"),children:k}),a.jsxs(nm,{onOpenChange:Ce=>{ie.value=Ce,qc.value=null},children:[a.jsx(rm,{ref:de||p?re:null,children:a.jsxs(J,{className:"relative select-none",children:[a.jsx(J,{className:"rounded-md justify-start duration-300 relative px-3 py-1 hover:shadow-sm shadow-none border-2 flex flex-col ".concat(e===0&&n.updatedAt>Date.now()-h8&&!le&&!x&&!p?"bg-teal-50 hover:border-slate-300 dark:bg-sky-900/40 dark:hover:border-slate-700 hover:bg-teal-50/90 hover:dark:bg-sky-950":x&&!V?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":ie.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":T&&!V?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 dark:hover:border-sky-800":le&&!V?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":p?"bg-amber-50 border-amber-300 dark:bg-amber-950/80 dark:border-amber-900/80 hover:border-amber-300/80 dark:hover:border-amber-800 hover:bg-amber-50/80 ".concat(o?"!border dark:!bg-amber-950":""):"hover:bg-white dark:hover:bg-slate-950/80 ".concat(M?"border-slate-500 bg-white dark:bg-slate-950 hover:dark:border-slate-500":"".concat(!o&&C?"border-orange-300 dark:border-orange-400/80 dark:bg-orange-900/80 bg-orange-50":o?"bg-slate-50 dark:!bg-slate-900 dark:hover:!bg-slate-950 hover:!border-orange-300/90 border-orange-300/50 dark:!border-orange-800/60 dark:hover:!border-orange-900":"bg-slate-50 hover:border-slate-300 dark:border-slate-800")," dark:hover:border-slate-700 dark:bg-slate-900 ").concat(V?"dark:border-slate-700":"")),onClickCapture:Ce=>{var Be,ke;Ce.shiftKey?(Ce.preventDefault(),Ce.stopPropagation(),(Be=window.getSelection())==null||Be.removeAllRanges(),P(M?null:n.historyId)):L&&!M?((ke=window.getSelection())==null||ke.removeAllRanges(),P(n.historyId)):ku.value=o?"".concat(n.historyId,"::pinned"):n.historyId},onMouseEnter:()=>{ku.value=o?"".concat(n.historyId,"::pinned"):n.historyId},onMouseLeave:()=>{ku.value=null},onDoubleClickCapture:Ce=>{Wc().text.trim()||(Ce.altKey||Ce.metaKey?B(n.historyId):z(n.historyId))},children:a.jsxs(J,{className:"".concat(S?"flex flex-row -ml-1":""),children:[S&&!V&&a.jsx(J,{className:"flex flex-row items-center pr-2 z-100",children:a.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{F(n.historyId)},checked:p})}),n.isImageData?a.jsxs(J,{className:"text-ellipsis self-start text-xs w-full _select-text overflow-hidden cursor-pointer",children:[a.jsx(J,{className:"flex px-0 py-1 items-center justify-center w-full",children:a.jsx(_i,{src:Me,hasError:U,onErrorCallback:()=>{Z(n.historyId)},draggable:!1,decoding:"async",onLoad:()=>{oe.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),a.jsx("code",{className:"pb-0.5",children:s?xS(n.value,s):a.jsx("span",{children:n.valuePreview})})]}):n.isLink&&n.isImage?a.jsxs(J,{className:"text-ellipsis self-start text-xs w-full _select-text cursor-pointer overflow-hidden",children:[a.jsx(J,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center w-full",children:a.jsx(_i,{src:mr(Me),hasError:U,height:n.imageHeight,onErrorCallback:()=>{Z(n.historyId)},draggable:!1,decoding:"async",onLoad:()=>{oe.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),a.jsx("code",{className:"pb-0.5",children:s?xS(Me,s):Yu(Me,n.arrLinks)})]}):n.isImage&&n.imageDataUrl?a.jsx(J,{className:"px-0 py-1.5 flex items-center justify-center w-full",children:a.jsx("img",{src:n.imageDataUrl,draggable:!1,decoding:"async",height:n.imageHeight,onLoad:()=>{oe.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}):n.detectedLanguage&&n.valuePreview?a.jsxs(J,{ref:Ce=>{Ce&&(oe.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[a.jsx(Vg,{theme:r?Ni.vsDark:Ni.github,code:h?Me:n.valuePreview.trim(),language:n.detectedLanguage,children:({className:Ce,style:Be,tokens:ke,getLineProps:Qe,getTokenProps:ge})=>a.jsx("code",{className:"".concat(Ce),style:Be,children:ke.map((ve,Ie)=>{const Ae=Ie===ke.length-1&&n.valueMorePreviewLines&&!h;return a.jsxs("div",{...Qe({line:ve}),className:"".concat(m?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:[ve.map((Ze,Je)=>a.jsx("span",{...ge({token:Ze}),className:"_select-text cursor-pointer",children:s?rl(Ze.content,s):Ze.content},Je)),Ae&&a.jsx("span",{className:"select-none",children:"..."})]},Ie)})})}),n.valueMorePreviewLines&&a.jsxs(J,{className:"select-none",children:[" ","\xA0"," "]})]}):a.jsxs(J,{ref:Ce=>{Ce&&(oe.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[ze&&a.jsx(J,{className:"self-start mt-1.5 mb-1 text-xs w-full overflow-hidden",children:a.jsx(bm,{title:(sn=n.linkMetadata)==null?void 0:sn.linkTitle,description:(Ht=n.linkMetadata)==null?void 0:Ht.linkDescription,favicon:(kt=n.linkMetadata)==null?void 0:kt.linkFavicon,link:(Zt=(rn=n==null?void 0:n.linkMetadata)==null?void 0:rn.linkUrl)!=null?Zt:null,image:(Jt=n.linkMetadata)==null?void 0:Jt.linkImage,historyId:n.historyId,domain:(gn=n.linkMetadata)==null?void 0:gn.linkDomain})}),h?a.jsxs("code",{className:"justify-start cursor-pointer",children:[s?rl(Me,s):Yu(Me,n.arrLinks),n.valueMorePreviewChars&&a.jsxs(J,{className:"select-none",children:[" ","\xA0"," "]})]}):a.jsxs("code",{className:"justify-start cursor-pointer",children:[s?xS(Me!=null?Me:"",s):ofe({previewLinkCard:!ze&&b,value:(Mn=(zt=n.valuePreview)==null?void 0:zt.trim())!=null?Mn:"",links:n.arrLinks,itemId:null,historyId:n.historyId}),n.valueMorePreviewChars&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"select-none",children:"..."}),a.jsxs(J,{className:"select-none",children:[" ","\xA0"," "]})]})]})]}),(n.valueMorePreviewLines||n.valueMorePreviewChars)&&a.jsxs(J,{className:"absolute left-1 bottom-1 flex flex-row items-center rounded mb-[2px] pl-0.5 ".concat(Ve),children:[a.jsx(J,{className:"text-xs text-muted-foreground px-1 cursor-pointer",onClick:()=>{K(n.historyId,!h)},children:a.jsx(De,{text:h?"":ne("Show all",{ns:"common"}),isCompact:!0,isDisabled:h||V,delayDuration:2e3,side:"bottom",sideOffset:10,children:h?a.jsxs(a.Fragment,{children:["- ",ne("show less",{ns:"common"})]}):n!=null&&n.valueMorePreviewChars?a.jsxs(a.Fragment,{children:["+",n.valueMorePreviewChars," ",ne("chars",{ns:"common"})]}):a.jsxs(a.Fragment,{children:["+",n.valueMorePreviewLines," ",ne("lines",{ns:"common"})]})})}),h&&a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 cursor-pointer",onClick:()=>G(n.historyId,!m),children:a.jsx(De,{text:m?ne("No Wrap",{ns:"common"}):ne("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:m?a.jsx(km,{width:20,height:20}):a.jsx(jm,{width:20,height:20})})})]}),n.isImage&&!n.isLink&&a.jsx(J,{className:"absolute left-1 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5 z-100",children:a.jsxs(J,{className:"text-xs text-muted-foreground px-1.5 rounded ".concat(Ve),title:ne("Image size in pixels",{ns:"common"}),children:[n.imageWidth,"x",n.imageHeight]})}),a.jsxs(a.Fragment,{children:[n.isFavorite&&a.jsx(Mu,{className:"absolute text-transparent z-100 ".concat(n.isPinned?"fill-orange-400 dark:fill-orange-500/60":"fill-yellow-400 dark:fill-yellow-500/70"," pointer-events-none right-[4px] top-[3px]"),size:12}),n.isPinned&&!n.isFavorite&&!o&&a.jsx(Al,{className:"absolute text-orange-400 dark:text-orange-500/60 pointer-events-none top-[-5px] right-[-5px] z-auto",size:28})]}),a.jsx(J,{className:"absolute right-1 bottom-1 flex flex-row gap-1 items-center pb-0 pl-0.5 mb-[2px] rounded",children:de||p?a.jsxs("div",{className:"flex ".concat(Ve),children:[o?a.jsxs(fe,{className:"text-xs text-muted-foreground rounded px-1",children:[a.jsx(De,{text:ne("Move Up",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:V||c,side:"bottom",sideOffset:10,children:a.jsx(J,{className:"".concat(c?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:a.jsx(rg,{size:14,onClick:()=>{c||W({historyId:n.historyId,moveUp:!0})}})})}),a.jsx(De,{text:ne("Move Down",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:V||u,side:"bottom",sideOffset:10,children:a.jsx(J,{className:"".concat(u?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:a.jsx(ng,{size:14,onClick:()=>{u||W({historyId:n.historyId,moveDown:!0})}})})})]}):n.timeAgoShort&&a.jsx(J,{className:"text-xs text-muted-foreground rounded px-1",children:a.jsx(De,{text:Ju(n.updatedAt,"PPpp"),delayDuration:2e3,isCompact:!0,isDisabled:V,side:"bottom",sideOffset:10,children:n.timeAgoShort})}),a.jsx(De,{text:nn.value?ne("Copy and Paste",{ns:"common"}):ne("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:V,side:"bottom",sideOffset:10,children:a.jsx(J,{className:"text-xs cursor-pointer text-slate-500 hover:text-green-700 px-1 border-0 flex items-center justify-center",children:nn.value?a.jsx(aa,{size:14,onClick:()=>{B(n.historyId)}}):a.jsx(qa,{size:14,onClick:()=>{z(n.historyId)}})})}),a.jsx(De,{text:ne("Drag",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:V,side:"bottom",sideOffset:10,children:a.jsx(J,{className:"text-xs cursor-move text-slate-500 px-1 border-0 flex items-center justify-center",...je,children:a.jsx(Nx,{size:16})})}),a.jsx(De,{text:ne("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:V,side:"bottom",sideOffset:10,children:a.jsx(J,{ref:ae,className:"text-xs px-1 cursor-pointer text-slate-500 pl-0 pr-0 flex items-center justify-center",children:a.jsx(bi,{size:16,onClick:()=>{var Ce,Be,ke;(ke=re==null?void 0:re.current)==null||ke.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(Ce=ae==null?void 0:ae.current)==null?void 0:Ce.getBoundingClientRect().x,clientY:(Be=ae==null?void 0:ae.current)==null?void 0:Be.getBoundingClientRect().y}))}})})})]},"hover-panel"):a.jsxs("div",{className:"".concat(Te),children:[n.hasMaskedWords&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-0.5",children:a.jsx(Al,{size:16})}),n.isMasked&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:ne("Type:::Secret",{ns:"common"})}),n.detectedLanguage&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n.detectedLanguage}),n.isLink&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n.isVideo?ne("Type:::Video",{ns:"common"}):Jl(Me)?ne("Type:::Email",{ns:"common"}):ne("Type:::Link",{ns:"common"})}),n.hasEmoji&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:ne("Type:::Emoji",{ns:"common"})}),n.isImageData&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:ne("Type:::Image Base64",{ns:"common"})})]},"labels-panel")}),g>1&&a.jsx(J,{className:"absolute left-[-12px] top-[-12px] flex",children:a.jsx(it,{variant:x?"destructive":"default",children:g})})]})}),T?a.jsx(J,{className:"absolute z-50 w-full ".concat(Ye," flex justify-center fade-in-animation"),children:a.jsxs(it,{variant:"default",className:"bg-sky-700 dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold",children:[a.jsx(Z0,{size:14,className:"mr-1"}),ne("Saved",{ns:"common"})]})}):le&&!A?a.jsx(J,{className:"absolute z-50 w-full ".concat(Ye," flex justify-center fade-in-animation"),children:a.jsxs(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 _mr-[-6px] text-[10px] uppercase font-semibold",children:[a.jsx(Dt,{size:14,className:"mr-1"}),E?ne("Copied",{ns:"common"}):N?ne("Pasted",{ns:"common"}):""]})}):M?a.jsx(J,{className:"absolute z-50 w-full ".concat(Ye," flex justify-center"),children:a.jsxs(it,{variant:"default",className:"px-3 dark:bg-slate-600 hover:bg-slate-500/100 pr-2.5",children:[a.jsx(X,{className:"mr-1 bg-slate-500 dark:bg-slate-600 pointer-events-none dark:!text-slate-300",color:"muted",children:ne("In Large View",{ns:"common"})}),a.jsx(Rn,{size:14,className:"cursor-pointer dark:text-slate-300",onClick:()=>{P(null)}})]})}):A&&A>0&&a.jsx(J,{className:"absolute z-50 w-full ".concat(Ye," flex justify-center"),children:a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold",children:ne("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:A})})})]})}),a.jsx(s$,{historyId:n.historyId,isMasked:n.isMasked,setSavingItem:D,value:n.value,isImage:n.isImage,isText:n.isText,isPinned:n.isPinned,isFavorite:n.isFavorite,isImageData:n.isImageData,detectedLanguage:n.detectedLanguage,setLargeViewItemId:P,isLargeView:M,arrLinks:n.arrLinks,hasLinkCard:ze,isSelected:p,invalidateClipboardHistoryQuery:R,generateLinkMetaData:$,removeLinkMetaData:_,setSelectHistoryItem:F,onCopyPaste:B})]})]})})}const JE=f.memo(n5e);function r5e({clipboard:e,isDark:t,searchTerm:n,isSelected:r=!1,isDeleting:s=!1,timeAgo:o=null,isCopied:i,isPasted:c,isSaved:u,setSavingItem:h=()=>{},setLargeViewItemId:p=()=>{},pastingCountDown:m=null,onCopyPaste:x=()=>{},onCopy:C=()=>{},invalidateClipboardHistoryQuery:b=()=>{},generateLinkMetaData:g=()=>Promise.resolve(),removeLinkMetaData:k=()=>Promise.resolve(),isBrokenImage:j=!1,setBrokenImageItem:S=()=>{},setSelectHistoryItem:E=()=>{}}){var R,$,_,U,K,W,G,Z,F;const{t:N}=wt(),T=He(!1),[M,L]=f.useState(!1),D=f.useRef(null),P=f.useRef(null),A=($=(R=e==null?void 0:e.value)==null?void 0:R.trim())!=null?$:"",B=(e==null?void 0:e.isLink)&&((_=e==null?void 0:e.linkMetadata)==null?void 0:_.linkTitle)&&((U=e==null?void 0:e.linkMetadata)==null?void 0:U.linkDomain),z=i||c||u;return e?a.jsxs(J,{className:"max-w-full max-h-full select-none",children:[a.jsx(J,{className:"flex justify-center text-gray-400 text-xs my-2",children:o}),a.jsxs(nm,{onOpenChange:V=>{T.value=V},children:[a.jsx(rm,{ref:P,children:a.jsxs(J,{className:"select-none relative",children:[a.jsx(J,{className:"rounded-md min-w-[300px] dark:border-slate-700 justify-start duration-300 px-2.5 py-1.5 hover:shadow-sm shadow-none border-2 flex flex-col ".concat(s?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":T.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":u?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 hover:border-sky-300/80 dark:hover:border-sky-800":z?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":r?"bg-amber-50 border-amber-300 dark:bg-amber-950/80 dark:border-amber-900/80 dark:hover:border-amber-800 hover:border-amber-300/80 hover:bg-amber-50/80":"bg-white border-slate-300 dark:hover:border-slate-700 dark:bg-slate-900"),children:a.jsxs(J,{children:[e.isImageData?a.jsxs(J,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[a.jsx(J,{className:"flex px-0 py-1 items-center justify-center",children:a.jsx(_i,{src:A,hasError:j,decoding:"async",onErrorCallback:()=>{S(e.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},e.historyId)}),a.jsx("code",{className:"pb-0.5",children:n?rl(e.valuePreview,n):a.jsx("span",{children:e.valuePreview})})]}):e.isLink&&e.isImage?a.jsxs(J,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[a.jsx(J,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:a.jsx(_i,{src:mr(A),hasError:j,height:e.imageHeight,decoding:"async",onErrorCallback:()=>{S(e.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},e.historyId)}),a.jsx("code",{className:"pb-0.5",children:n?rl(A,n):Yu(A,e.arrLinks)})]}):e.isImage&&e.imagePathFullRes?a.jsx(J,{className:"px-0 py-1.5 flex items-center justify-center",children:a.jsx("img",{decoding:"async",srcSet:"".concat(iu(e.imagePathFullRes)," 2x"),src:iu(e.imagePathFullRes),className:"min-h-20 rounded-md shadow-sm border border-slate-100 dark:border-slate-700 object-scale-down animate-in fade-in duration-300"},e.historyId)}):e.detectedLanguage&&e.valuePreview?a.jsx(J,{className:"text-ellipsis self-start text-sm w-full p-1.5 animate-in fade-in",children:a.jsx(Vg,{theme:t?Ni.vsDark:Ni.github,code:A,language:e.detectedLanguage,children:({className:V,style:q,tokens:ne,getLineProps:Q,getTokenProps:ae})=>a.jsx(xm,{options:{overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:t?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxWidth:"100%"},children:a.jsx("code",{className:"".concat(V),style:q,children:ne.map((re,le)=>a.jsx("div",{...Q({line:re}),className:"".concat(M?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:re.map((oe,ie)=>a.jsx("span",{...ae({token:oe}),className:"select-text",children:n?rl(oe.content,n):oe.content},ie))},le))})})})},e.historyId):a.jsxs(J,{className:"text-ellipsis self-start text-sm w-full overflow-hidden animate-in fade-in",children:[B&&a.jsx(J,{className:"self-start mt-1.5 mb-1 text-xs w-full select-text overflow-hidden",children:a.jsx(bm,{title:(K=e.linkMetadata)==null?void 0:K.linkTitle,description:(W=e.linkMetadata)==null?void 0:W.linkDescription,favicon:(G=e.linkMetadata)==null?void 0:G.linkFavicon,link:e==null?void 0:e.arrLinks[0],image:(Z=e.linkMetadata)==null?void 0:Z.linkImage,domain:(F=e.linkMetadata)==null?void 0:F.linkDomain})}),a.jsxs("code",{className:"justify-start select-text ".concat(M?"whitespace-break-spaces":"whitespace-normal"),children:[n?rl(A,n):Yu(A,e.arrLinks),e.valueMorePreviewChars&&a.jsxs(J,{className:"select-none",children:[" ","\xA0"," "]})]})]},e.historyId),a.jsx(J,{className:"flex flex-row gap-1 items-center mt-1",children:a.jsx(J,{className:"flex flex-row gap-1 items-center pb-1 ml-auto",children:a.jsxs(a.Fragment,{children:[!e.isImage&&a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 ml-1.5 cursor-pointer",onClick:()=>L(!M),children:a.jsx(De,{text:M?N("No Wrap",{ns:"common"}):N("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:M?a.jsx(UM,{width:20,height:20,strokeWidth:1.5}):a.jsx(Wse,{width:20,height:20,strokeWidth:1.5})})}),e.isImage&&!e.isLink&&a.jsxs(J,{className:"flex flex-row gap-1 rounded items-center",children:[a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:N("Type:::Image",{ns:"common"})}),a.jsxs(J,{className:"text-[11px] text-muted-foreground px-1 pt-0.5",children:[e.imageWidth,"x",e.imageHeight]})]}),(e.isMasked||e.hasMaskedWords)&&a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(e.hasMaskedWords?"px-1":"px-1.5"),children:e.isMasked?N("Type:::Secret",{ns:"common"}):a.jsx(De,{text:N("Found Masked Words",{ns:"common"}),delayDuration:600,isCompact:!0,side:"bottom",sideOffset:6,children:a.jsx(Al,{size:18})})}),e.detectedLanguage&&a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:e.detectedLanguage}),e.isLink&&a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:e.isVideo?N("Type:::Video",{ns:"common"}):N("Type:::Link",{ns:"common"})}),e.hasEmoji&&a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:N("Type:::Emoji",{ns:"common"})}),e.isImageData&&a.jsx(J,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:N("Type:::Image Base64",{ns:"common"})}),a.jsx(De,{text:N("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(J,{className:"text-xs cursor-pointer hover:text-green-700 text-slate-500 px-0 ml-1.5 border-0 flex items-center justify-center",children:nn.value?a.jsx(aa,{size:18,onClick:()=>{x(e.historyId)}}):a.jsx(qa,{size:18,onClick:()=>{C(e.historyId)}})})}),a.jsx(De,{text:N("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:a.jsx(J,{ref:D,className:"text-xs cursor-pointer text-slate-500 pl-2 pr-0 flex items-center justify-center",children:a.jsx(bi,{size:18,onClick:()=>{var V,q,ne;(ne=P==null?void 0:P.current)==null||ne.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(V=D==null?void 0:D.current)==null?void 0:V.getBoundingClientRect().x,clientY:(q=D==null?void 0:D.current)==null?void 0:q.getBoundingClientRect().y}))}})})})]})})})]})}),u?a.jsx(J,{className:"absolute z-50 w-full top-[-13px] flex justify-center animate-in fade-in-500 duration-500",children:a.jsxs(it,{variant:"default",className:"dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2",children:[a.jsx(Z0,{size:14,className:"mr-1"}),N("Saved",{ns:"common"})]})}):z&&m===null?a.jsx(J,{className:"absolute z-50 w-full top-[-13px] animate-in fade-in-500 duration-500 slide-in-from-bottom-1 flex justify-center",children:a.jsxs(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pr-4",children:[a.jsx(Dt,{size:14,className:"mr-1"}),i?N("Copied",{ns:"common"}):c?N("Pasted",{ns:"common"}):""]})}):m!==null&&m>0&&a.jsx(J,{className:"absolute z-50 w-full top-[-13px] slide-in-from-bottom-1 flex justify-center",children:a.jsx(it,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pl-3",children:m&&m>0&&N("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:m})})})]})}),a.jsx(s$,{historyId:e.historyId,isPinned:e.isPinned,isFavorite:e.isFavorite,isMasked:e.isMasked,detectedLanguage:e.detectedLanguage,setSavingItem:h,value:e.value,isImage:e.isImage,isText:e.isText,isImageData:e.isImageData,setLargeViewItemId:p,isLargeView:!0,arrLinks:e.arrLinks,hasLinkCard:B,isSelected:r,invalidateClipboardHistoryQuery:b,generateLinkMetaData:g,removeLinkMetaData:k,setSelectHistoryItem:E,onCopyPaste:x})]}),a.jsx(J,{className:"flex justify-center text-gray-400 text-xs my-2",children:a.jsxs(it,{variant:"outline",className:"bg-slate-100 text-slate-400 cursor-pointer hover:bg-slate-300 dark:bg-slate-500 dark:text-slate-800 hover:dark:bg-slate-400",onClick:()=>{p(null),Ia.value=null},children:[N("Close",{ns:"common"}),a.jsx(Rn,{size:14,className:"ml-1"})]})})]}):null}const a5e=f.memo(r5e);function s5e(e){return a.jsxs("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0.294 3.317 24.273 26.397",children:[a.jsx("path",{fill:"currentColor",d:"M19.14 29.714H8.502a4.27 4.27 0 0 1-4.271-4.271V14.934C.821 13.47.273 8.863 3.247 6.641a4.822 4.822 0 0 1 6.685.892h9.207a4.27 4.27 0 0 1 4.271 4.271v13.639a4.27 4.27 0 0 1-4.27 4.271ZM6.162 6.904c-2.778 0-4.515 3.007-3.125 5.414 1.388 2.405 4.862 2.405 6.251 0a3.622 3.622 0 0 0 .484-1.805 3.614 3.614 0 0 0-3.61-3.609Zm16.029 4.9a3.052 3.052 0 0 0-3.051-3.052h-8.492c1.264 3.166-1.078 6.606-4.486 6.59a4.963 4.963 0 0 1-.71-.07v10.171a3.05 3.05 0 0 0 3.05 3.05H19.14a3.05 3.05 0 0 0 3.051-3.05V11.804ZM18.788 23.24a.609.609 0 0 0-.61-.609H9.465a.61.61 0 0 0 0 1.219h8.713a.61.61 0 0 0 .61-.61Zm0-4.616a.61.61 0 0 0-.61-.61H9.465a.61.61 0 0 0 0 1.219h8.713a.61.61 0 0 0 .61-.609Zm0-4.616a.609.609 0 0 0-.61-.609h-5.806a.609.609 0 1 0 0 1.219h5.806a.61.61 0 0 0 .61-.61Zm-12.017-1.7v-1.795a.61.61 0 0 0-.609-.611h-1.32a.611.611 0 0 0 0 1.22h.71v1.186a.61.61 0 0 0 1.219 0Z",transform:"rotate(180 12.364 17.455)"}),a.jsx("path",{stroke:"currentColor",fill:"".concat(e.lightingColor||"white"),d:"M7.992 4.719h5.81c.399 0 .723.323.723.724v1.678a.724.724 0 0 1-.723.724h-5.81a.724.724 0 0 1-.724-.724V5.443c0-.401.323-.724.724-.724Z",transform:"translate(.006 -.486)"})]})}const o5e=({selectedHistoryItems:e,setShowSelectHistoryItems:t,isDeleting:n,onDelete:r,setIsDeleting:s,isDark:o,setSelectHistoryItem:i,setSelectedHistoryItems:c,showSelectHistoryItems:u})=>{const{t:h}=wt(),{deleteClipboardHistoryByIds:p}=hE(),{clearClipboardHistoryOlderThan:m}=Vxe(),x=ts(),{isHistoryEnabled:C,setIsHistoryEnabled:b,isHistoryAutoUpdateOnCaputureEnabled:g,setIsHistoryAutoUpdateOnCaputureEnabled:k}=ut(Nr);Oa(["alt+s"],()=>{t(!u)}),Oa(["control+s"],()=>{ku.value&&i(ku.value)}),Oa(["alt+h"],()=>{b(!C)}),Oa(["alt+a"],()=>{k(!g)}),Oa(["alt+u"],()=>{DC.getState().updateClipboardHistory()}),Oa(["alt+d"],()=>{c([])});const j=async(S,E)=>{const N={days:E==="1"?h("Day",{ns:"calendar"}):h("Days",{ns:"calendar"}),weeks:E==="1"?h("Week",{ns:"calendar"}):h("Weeks",{ns:"calendar"}),months:E==="1"?h("Month",{ns:"calendar"}):h("Months",{ns:"calendar"}),year:E==="1"?h("Year",{ns:"calendar"}):h("Years",{ns:"calendar"})},T=E==="0"&&S==="days",M=T?h("Do you really want to remove ALL clipboard history items?",{ns:"history"}):h("Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}",{ns:"history",olderThen:E,durationType:N[S]});if(await vj(M,{title:h("{{isAll}} Clipboard History",{ns:"history",isAll:T?h("Clear All",{ns:"history"}):h("Clear",{ns:"history"})}).trim(),okLabel:h("{{isAll}} Clipboard History",{ns:"history",isAll:T?h("Clear All",{ns:"history"}):h("Clear",{ns:"history"})}).trim(),cancelLabel:h("Cancel",{ns:"common"})}))try{if(T&&!await vj(h("Please confirm your action!",{ns:"common"}),{title:h("Confirm Clear All History",{ns:"history"}),okLabel:h("Confirm",{ns:"common"}),cancelLabel:h("Cancel",{ns:"common"})}))return;await m({durationType:S,olderThen:E}),setTimeout(()=>{c([]),t(!1),s(!1),r(T)},400),await Wi(h("All done! History's been cleared.",{ns:"history"}),"Success")}catch(L){console.error(L),await Wi(h("Something goes wrong! Please try again.",{ns:"common"}),"Error")}};return a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:a.jsxs(ye,{variant:"light",className:"w-10 text-slate-400 hover:text-slate-500 hover:dark:text-slate-400 dark:text-slate-500 bg-slate-100 p-1 relative hover:bg-slate-100/70 dark:bg-slate-900 dark:hover:bg-slate-700/70",children:[a.jsx(s5e,{className:"w-5 max-w-[22px] min-w-[16px] stroke-[1.3px]",lightingColor:o?"#0f182a":"#f1f5f9"}),e.length>0&&a.jsx(it,{variant:"slate",className:"absolute left-[-10px] top-[-10px]",children:e.length})]})}),a.jsx(Cn,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:a.jsxs(zO,{children:[u?a.jsxs(Oe,{onClick:()=>{t(!1)},children:[a.jsx(XM,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-2",children:h("Hide Muli Select",{ns:"common"})}),a.jsx(Ji,{children:a.jsx(Vs,{keys:"ALT+S"})})]}):a.jsxs(Oe,{onClick:()=>{t(!0)},children:[a.jsx(JM,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-2",children:h("Multi Select",{ns:"common"})}),a.jsx(Ji,{children:a.jsx(Vs,{keys:"ALT+S"})})]}),a.jsxs(Oe,{disabled:e.length===0,onClick:()=>{c([])},children:[a.jsx($C,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:h("Deselect All",{ns:"common"})}),a.jsx(Ji,{children:a.jsx(Vs,{keys:"ALT+D"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{disabled:e.length===0,onClick:()=>{Ua.value=Mi.CLIP,Tp.value=Array.from(new Set([...e])),setTimeout(()=>{c([])},400)},children:[a.jsx(Kte,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:h("Add to Board",{ns:"dashboard"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{disabled:e.length===0,onClick:async S=>{n?(await p({historyIds:e}),setTimeout(()=>{r(),c([]),t(!1),s(!1)},400)):(S.preventDefault(),s(!0),setTimeout(()=>{s(!1)},3e3))},children:[a.jsx(or,{className:"mr-2 h-4 w-4 ".concat(n?"text-red-500":"")}),a.jsxs(fe,{children:[a.jsx(X,{className:"mr-1 ".concat(n?"!text-red-500":""),children:n?h("Click to Confirm",{ns:"common"}):h("Delete",{ns:"common"})}),e.length>0&&a.jsx(a.Fragment,{children:n?a.jsx(it,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:e.length}):a.jsx(it,{variant:"slateSecondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:e.length})})]})]}),a.jsxs(Ta,{children:[a.jsxs(va,{children:[a.jsx(hte,{className:"mr-2 h-4 w-4"}),a.jsxs(X,{children:[h("Clear History",{ns:"history"})," ..."]})]}),a.jsxs(ya,{children:[a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsx(X,{children:h("Days",{ns:"calendar"})})}),a.jsxs(ya,{children:[a.jsxs(Oe,{onClick:()=>{j("days","1")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["1 ",h("Day",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("days","3")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["3 ",h("Days",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("days","5")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["5 ",h("Days",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("days","7")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["7 ",h("Days",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]})]})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsx(X,{children:h("Weeks",{ns:"calendar"})})}),a.jsxs(ya,{children:[a.jsxs(Oe,{onClick:()=>{j("weeks","1")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["1 ",h("Week",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("weeks","2")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["2 ",h("Weeks",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("weeks","3")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["3 ",h("Weeks",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("weeks","4")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["4 ",h("Weeks",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]})]})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsx(X,{children:h("Months",{ns:"calendar"})})}),a.jsxs(ya,{children:[a.jsxs(Oe,{onClick:()=>{j("months","1")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["1 ",h("Month",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("months","2")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["2 ",h("Months",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("months","3")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["3 ",h("Months",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("months","6")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["6 ",h("Months",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]})]})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsx(X,{children:h("Years",{ns:"calendar"})})}),a.jsxs(ya,{children:[a.jsxs(Oe,{onClick:()=>{j("year","1")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["1 ",h("Year",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("year","2")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["2 ",h("Years",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]}),a.jsxs(Oe,{onClick:()=>{j("year","3")},children:[a.jsxs(X,{className:"font-semibold mr-1",children:["3 ",h("Years",{ns:"calendar"})]}),h("and older",{ns:"calendar"})]})]})]}),a.jsx(Yt,{}),a.jsx(Oe,{onClick:()=>{j("days","0")},children:a.jsx(X,{className:"font-semibold",children:h("Clear All History",{ns:"history"})})}),a.jsx(Yt,{}),a.jsxs(Oe,{onClick:()=>{x("/app-settings/history",{replace:!0})},children:[a.jsx(UC,{className:"mr-2 h-4 w-4"}),a.jsxs(X,{children:[h("Auto-Clear Settings",{ns:"history"})," ..."]})]})]})]})]})})]})},XE={STARRED:"starred",PINNED:"pinned",TEXT:"text",LINK:"link",IMAGE:"image",VIDEO:"video",EMOJI:"emoji",SECRET:"secret",CODE:"code"},i5e=({historyFilters:e,setHistoryFilters:t,codeFilters:n,avaliableCodeLanguages:r,setCodeFilters:s,children:o})=>{const{t:i}=wt(),c=(p,m)=>{if(m){t([p]);return}e.includes(p)?t(e.filter(x=>x!==p)):t([...e,p])},u=(p,m)=>{if(m){s([p]);return}n.includes(p)?s(n.filter(x=>x!==p)):s([...n,p])};f.useEffect(()=>{e.includes(XE.CODE)||s([])},[e]);const{isSwapPanels:h}=ut(ra);return a.jsxs(Nn,{children:[a.jsx(_n,{asChild:!0,children:o}),a.jsxs(Cn,{className:"w-52",sideOffset:12,align:"center",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!e.length,onClick:p=>{p.preventDefault(),p.stopPropagation(),t([])},children:e.length?a.jsxs(fe,{className:"justify-between items-center w-full",children:[a.jsx(J,{className:"w-6 h-4"}),a.jsx(X,{children:i("Filters:::Clear Filters",{ns:"history"})}),a.jsx(Rn,{className:"w-6 h-4"})]}):a.jsx(X,{children:i("Filters:::Select Filters",{ns:"history"})})}),a.jsx(Yt,{}),Object.values(XE).map((p,m)=>a.jsxs(J,{children:[m===2&&a.jsx(Yt,{},"separator"),a.jsxs(Oe,{onClick:x=>{x.preventDefault(),c(p)},children:[a.jsx(y4,{label:i("Filters:::".concat(l5e(p)),{ns:"history"}),checked:e.includes(p)}),a.jsx(Ji,{children:a.jsx(J,{onClick:x=>{x.preventDefault(),x.stopPropagation(),c(p,!0)},className:"cursor-pointer hover:underline",children:a.jsx(Vs,{keys:"only"})})})]})]},p)),e.includes(XE.CODE)&&a.jsxs(Ta,{children:[a.jsxs(va,{noRightIcon:h,disabled:!1,children:[a.jsx(hL,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:i("Filters:::Language Filters",{ns:"history"})}),n.length>0&&a.jsx(it,{className:"ml-auto py-0",children:n.length})]}),a.jsxs(ya,{className:"w-48",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!n.length,onClick:p=>{p.preventDefault(),p.stopPropagation(),s([])},children:n.length?a.jsxs(fe,{className:"justify-between items-center w-full",children:[a.jsx(J,{className:"w-6 h-4"}),a.jsx(X,{children:i("Filters:::Clear Filters",{ns:"history"})}),a.jsx(Rn,{className:"w-6 h-4"})]}):a.jsx(X,{children:i("Filters:::Language Filters",{ns:"history"})})}),a.jsx(Yt,{}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"190px"},autoHide:!1,children:r.map(p=>a.jsxs(Oe,{onClick:m=>{m.preventDefault(),u(p)},children:[a.jsx(y4,{label:p,checked:n.includes(p)}),a.jsx(Ji,{children:a.jsx(J,{onClick:m=>{m.preventDefault(),m.stopPropagation(),u(p,!0)},className:"cursor-pointer hover:underline",children:a.jsx(Vs,{keys:"only"})})})]},p))})]})]})]})]})};function l5e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o$({clipId:e,isDark:t,isHistoryDragActive:n}){var u,h,p,m;R4();const{t:r}=wt(),{clipItems:s}=ut(hr),o=f.useMemo(()=>{if(Ia.value){const x=s.find(({itemId:C})=>C===e);if(x)return x;Ia.value=null}},[e,s]),[i,c]=f.useMemo(()=>{var x,C;return[(o==null?void 0:o.createdAt)&&Hc().format((x=o.createdAt)!=null?x:0,{round:"floor"}),(o==null?void 0:o.updatedAt)&&Hc().format((C=o.updatedAt)!=null?C:0,{round:"floor"})]},[o]);return o==null?null:a.jsxs(J,{className:"max-w-full max-h-full ".concat(_a.value===e&&!o.isCode&&!o.isImage?"min-w-[80%]":""),children:[a.jsxs(J,{className:"flex justify-center text-gray-400 text-xs my-2 gap-1",children:[a.jsx(De,{text:"".concat(r("Created",{ns:"common"}),": ").concat(Ju((u=o.createdAt)!=null?u:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:i}),c!==i&&a.jsxs(De,{text:"".concat(r("Updated",{ns:"common"}),": ").concat(Ju((h=o.updatedAt)!=null?h:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:["(",c,")"]})]}),a.jsx(J,{className:"text-gray-400 text-xs mb-1 mt-2",children:a.jsx(sE,{clip:{...o,type:"clip",id:e,createdAt:(p=o.createdAt)!=null?p:0,tabId:(m=o.tabId)!=null?m:null},boardColor:o.color,isDark:t,isClipDelete:Fo.value===e,isClipEdit:_a.value===e,isShowOrganizeLayoutValue:!1,isHistoryDragActive:n,isShowDetails:!0,isLargeView:!0,isSelected:!1})}),a.jsx(J,{className:"flex justify-center text-gray-400 text-xs my-2",children:a.jsxs(it,{variant:"outline",className:"bg-slate-100 text-slate-400 cursor-pointer hover:bg-slate-300 dark:bg-slate-500 dark:text-slate-800 hover:dark:bg-slate-400",onClick:()=>{Ia.value=null},children:[r("Close",{ns:"common"}),a.jsx(Rn,{size:14,className:"ml-1"})]})})]})}f.memo(o$);const i$="trash",c5e=async()=>{window.Prism=Ke,await Promise.all([he(()=>import("./prism-json-xwnKirkR.js"),[]),he(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),he(()=>import("./prism-java-Bz0cy7o8.js"),[]),he(()=>import("./prism-c-BI05wwL9.js"),[]),he(()=>import("./prism-css-Bpx-unsJ.js"),[]),he(()=>import("./prism-csharp-aZJd74Dz.js"),[]),he(()=>import("./prism-php-Y_bwvUTe.js"),[]),he(()=>import("./prism-regex-DCddBNSB.js"),[]),he(()=>import("./prism-ruby-pgU1Zfy6.js"),[]),he(()=>import("./prism-shell-session-C8ifCaAv.js"),[]),he(()=>import("./prism-sql-AgAyy5H_.js"),[]),he(()=>import("./prism-uri-BQNPRq5q.js"),[]),he(()=>import("./prism-yaml-Chm5ZdEN.js"),[]),he(()=>import("./prism-markdown-4MKFcK2x.js"),[]),he(()=>import("./prism-path-CC2I6U-X.js"),[])]),Ke.languages.shell=Ke.languages["shell-session"]};function d5e(){const[e,t,n]=ube({}),[r,s,o,i]=hbe({}),[c,u]=f.useState(null),{updateItemValueByHistoryId:h}=dpe(),{pinnedClipboardHistoryByIds:p}=IF(),{unPinAllClipboardHistory:m}=$xe(),{movePinnedClipboardHistoryUpDown:x}=Bxe(),[C,b]=f.useState([]),[g,k]=f.useState([]),j=f.useRef(null),[S,E]=f.useState(!1),N=f.useRef(null),[T,M]=f.useState(null),[L,D]=f.useState([]),[P,A]=f.useState(null),[B,z]=f.useState(null),[R,$]=f.useState(null),[_,U]=f.useState(null),[K,W]=f.useState([]),[G,Z]=f.useState([]),[F,V]=f.useState([]),[q,ne]=f.useState(!1),[Q,ae]=f.useState(!1),{setIsScrolling:re,isShowHistoryPinned:le,setIsShowHistoryPinned:oe,isSwapPanels:ie,setReturnRoute:de}=ut(ra),{isHistoryEnabled:xe,setIsHistoryEnabled:je,isHistoryAutoUpdateOnCaputureEnabled:Ee,isAutoPreviewLinkCardsEnabled:Te,historyDetectLanguagesEnabledList:Me,copyPasteSequencePinnedDelay:ze,setCopyPasteSequencePinnedDelay:qe,copyPasteSequenceIsReversOrder:Ye,setCopyPasteSequenceIsReversOrder:Ve,setIsHistoryAutoUpdateOnCaputureEnabled:Lt}=ut(Nr),{t:$e}=wt(),{themeDark:st}=ut(pu),{ref:At,height:Qt}=Z2e(),Vt=He(!1),_e=He(!1),sn=f.useMemo(()=>_e.value||Vt.value,[Vt.value,_e.value]),{pinnedClipboardHistory:Ht}=Fxe(),kt=st(),{setHistoryListSimpleBar:rn,scrollToTopHistoryList:Zt,updateClipboardHistory:Jt,generateLinkMetaData:gn,removeLinkMetaData:zt}=ut(Yi),[Mn,Ce]=f.useState(!1),Be=bd(),ke=ts(),{isClipboardInfiniteHistoryLoading:Qe,isClipboardHistoryFetchingNextPage:ge,infiniteClipboardHistory:ve,invalidateClipboardHistoryQuery:Ie,fetchNextClipboardHistoryPage:Ae}=TF(),{deleteClipboardHistoryByIds:Ze}=hE(),{clipboardHistory:Je,newClipboardHistoryCount:ot,foundClipboardHistory:at}=ut(Yi),[Ge,yt]=f.useState(""),[Nt,bt]=f.useState(""),$t=f.useRef(null),St=f.useRef({}),Rt=f.useRef(null),hn=Gs(Ge,300),Xt=f.useMemo(()=>hn.length>1||C.length>0,[hn,C]),Ln=f.useMemo(()=>nn.value,[nn.value]),mt=f.useMemo(()=>F.some(tt=>Ht.some(Mt=>Mt.historyId===tt)),[F,Ht]),Et=f.useMemo(()=>r,[r]),un=f.useMemo(()=>e,[e]),en=Xt?at:Je,{refetchFindClipboardHistory:pe}=Wxe({query:hn,filters:C,codeFilters:g}),Xe=f.useCallback(()=>{Xt&&Ee&&pe()},[Xt,Ee]);f.useEffect(()=>{const tt=Il("clipboard://clipboard-monitor/update",Mt=>{Mt.payload==="clipboard update"&&Xe()});return()=>{tt.then(Mt=>{Mt()})}},[Xe]),f.useEffect(()=>{Qc.value=null,Ll.value=null;const tt=async()=>{await c5e()};de(Be.pathname),lo.value=!1,tt(),Ce(!0)},[]),f.useEffect(()=>{e&&F.includes(e)&&V(tt=>tt.filter(Mt=>Mt!==e)),r&&F.includes(r)&&V(tt=>tt.filter(Mt=>Mt!==r))},[e,r]),f.useEffect(()=>{j&&rn(j)},[j]),f.useEffect(()=>{Ht.length===0&&(Vt.value=!1,_e.value=!1)},[Ht]),f.useEffect(()=>{(hn.length>1||C.length>0||g.length>0)&&pe()},[hn,C,g]),f.useEffect(()=>{var tt;!((tt=N.current)!=null&&tt.setDisableScroll)||!j.current||(T?(N.current.setDisableScroll(!0),j.current.style.overflow="hidden"):(N.current.setDisableScroll(!1),j.current.style.overflow="visible"))},[T]);const We=async()=>{ge||await Ae({cancelRefetch:!1})};function ht(tt){return St.current[tt]||60}function on(tt,Mt){var jt,te;(jt=$t.current)!=null&&jt.resetAfterIndex&&((te=$t.current)==null||te.resetAfterIndex(0)),St.current={...St.current,[tt]:Mt}}const Bt=zj(pp(I0,{activationConstraint:{tolerance:10,delay:300}}),pp(_0,{coordinateGetter:FS})),In={keyframes({transform:tt}){return T&&(P===T||R||_||B)?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:Ao.Transform.toString(tt.initial)},{opacity:0,transform:Ao.Transform.toString({...tt.final,x:tt.final.x+5,y:tt.final.y+5})}]},easing:"ease-out",duration:300,sideEffects({active:tt,dragOverlay:Mt}){T&&(P===T||R===T||B===T)?Mt.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:hu.easing}):tt.node.animate([{opacity:0},{opacity:1}],{duration:hu.duration,easing:hu.easing})}},vr=f.useCallback(tt=>{V(Mt=>Mt.includes(tt)?Mt.filter(jt=>jt!==tt):[...Mt,tt])},[V]),nr=f.useCallback(tt=>{D(Mt=>Mt.includes(tt)?Mt.filter(jt=>jt!==tt):[...Mt,tt])},[D]),kr=f.useCallback((tt,Mt)=>{W(jt=>Mt?[...jt,tt]:jt.filter(te=>te!==tt))},[W]),si=f.useCallback((tt,Mt)=>{Z(jt=>Mt?[...jt,tt]:jt.filter(te=>te!==tt))},[Z]),Sn=f.useMemo(()=>{if(Rs.value){const tt=en.find(Mt=>Mt.historyId===Rs.value);if(tt)return Ia.value&&(Ia.value=null),tt;Rs.value=null}},[Rs.value,en]),Ot=tt=>tt===qc.value||tt===P||!!P&&!!T&&F.includes(tt)||S&&F.includes(tt);return a.jsx(V2,{children:a.jsx(N9,{sensors:Bt,collisionDetection:Wj,autoScroll:{layoutShiftCompensation:!1,acceleration:1},measuring:{droppable:{strategy:uu.Always}},onDragStart:({active:tt})=>{var Mt;M(tt.id),ae(tt.id&&((Mt=tt.data.current)==null?void 0:Mt.isPinned))},onDragOver:({active:tt,over:Mt})=>{const jt=Mt==null?void 0:Mt.data.current,te=(jt==null?void 0:jt.type)===ns,ue=(jt==null?void 0:jt.type)==="clip::dropzone",Pe=(Mt==null?void 0:Mt.id)==="history::pinnedzone";tt!=null&&tt.id&&Pe&&!Q?z(tt.id):Pe||z(null),(Mt==null?void 0:Mt.id)===i$?A(tt.id):te&&(Mt!=null&&Mt.id)?$(Mt==null?void 0:Mt.id):ue&&(Mt!=null&&Mt.id)?U(Mt==null?void 0:Mt.id):(A(null),$(null),U(null))},onDragCancel:()=>(M(null),A(null),$(null),U(null),!0),onDragEnd:async({active:tt})=>{var jt;const Mt=(jt=tt==null?void 0:tt.data.current)==null?void 0:jt.isPinned;if((tt==null?void 0:tt.id)===B)setTimeout(async()=>{z(null),V([]),M(null),!Mt&&await p({historyIds:F.length>0?Array.from(new Set([...F,tt.id])):[tt.id],isPinned:!0})},300);else if((tt==null?void 0:tt.id)===P){const te=Mt?AS(tt.id):tt.id;await Ze({historyIds:F.length>0?Array.from(new Set([...F,te])):[te]}),setTimeout(()=>{Xe(),z(null),A(null),$(null),U(null),V([]),M(null)},600)}else if(tt!=null&&tt.id&&R){const te=Mt?AS(tt.id):tt.id;Gi.value=R,Tp.value=F.length>0?Array.from(new Set([...F,te])):[te],setTimeout(()=>{$(null),M(null),V([])},400)}else if(tt!=null&&tt.id&&_){const te=Mt?AS(tt.id):tt.id,ue=_.toString().replace("::dropzone",""),Pe=te?en.find(et=>et.historyId===te):null;ue&&(Pe!=null&&Pe.historyId)&&await h({historyId:Pe.historyId,itemId:ue}),setTimeout(()=>{U(null),M(null)},400)}else Gi.value=null,setTimeout(()=>{z(null),$(null),A(null),M(null)},300)},children:a.jsxs(GE,{minSize:300,maxSize:700,defaultSize:300,swapPanes:ie,autoSaveId:"app-main-panel",children:[a.jsx(ZE,{children:a.jsx(J,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] pb-6 pt-4 px-3 pr-3",children:a.jsx(sg,{disableWidth:!0,children:({height:tt})=>{var Mt;return Mn&&tt&&tt>0&&a.jsxs(J,{className:"flex flex-col h-[calc(100vh-95px)] relative",children:[a.jsx(J,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-3",children:T&&Ht.length===0?a.jsx(O4,{id:"history::pinnedzone",className:"w-full h-full",isActive:!!T,children:a.jsx(J,{ref:B?null:At,className:"".concat(B?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(T?"":"animate-in fade-in"," py-1 bg-orange-50 dark:bg-orange-800/40 mt-0 my-2 rounded-md relative w-full h-full"),children:T&&a.jsx(J,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1",children:a.jsx(J,{className:"border-2 ".concat(B?"border-orange-400 dark:border-orange-500":"border-slate-200 dark:border-slate-500"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:B?a.jsx(X,{className:"!text-orange-400 dark:text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:$e("Drop to Pin",{ns:"dashboard"})}):a.jsx(zl,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})})})}):a.jsxs(a.Fragment,{children:[a.jsx(rd,{placeholder:"".concat($e("Find in history",{ns:"dashboard"}),"..."),autoFocus:Ge.length>0,type:"search",onChange:jt=>{yt(jt.target.value)},value:Ge,ref:Rt,iconLeft:a.jsx(Ap,{className:"h-4 w-4"}),classNameInput:"w-full pr-0",className:"text-md ring-offset-0 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0"},"search-history"),a.jsx(i5e,{setHistoryFilters:b,historyFilters:C,avaliableCodeLanguages:Me,codeFilters:g,setCodeFilters:k,children:a.jsxs(ye,{variant:"ghost",className:"relative cursor-pointer px-1 mr-2",children:[a.jsx(Tre,{size:20,className:"".concat(C.length?"text-blue-500 hover:text-blue-500/70":"text-slate-400 hover:text-slate-400/70"," ")}),C.length>0&&a.jsx(it,{className:"absolute right-[-10px] top-[-10px] bg-blue-500 hover:bg-blue-500",children:C.length})]})})]})}),Xt?a.jsx(J,{className:"cursor-pointer absolute top-[49px] animate-in fade-in fade-out flex justify-center w-full pointer-events-none",children:a.jsx(De,{text:$e("Clear found results and filters",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{var jt;yt(""),b([]),k([]),Rt!=null&&Rt.current&&Rt.current.value&&(Rt.current.value="",(jt=Rt==null?void 0:Rt.current)==null||jt.focus())},sideOffset:10,children:a.jsx(X,{className:"text-xs text-center dark:text-slate-800 bg-blue-200 dark:bg-blue-400 rounded-full px-3 cursor-pointer pointer-events-auto",children:en.length?a.jsxs(a.Fragment,{children:[en.length<100?en.length:"100+"," ",$e("found",{ns:"common"})]}):a.jsx(a.Fragment,{children:$e("Nothing found",{ns:"common"})})})})}):Ht.length>0&&a.jsx(O4,{id:"history::pinnedzone",isActive:!!T&&!Q,children:a.jsxs(J,{onMouseEnter:()=>{Vt.value=!0},onMouseLeave:()=>{Vt.value=!1},onClick:()=>{Vt.value=!0},ref:B?null:At,className:"".concat(B?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(T?le?"":"min-h-[32px]":"animate-in fade-in"," ").concat(le?"py-2":"py-1"," px-2 pb-0 bg-orange-200/70 dark:bg-orange-900/60 mt-0 my-2 rounded-md relative"),children:[T&&!Q&&a.jsx(J,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1",children:a.jsx(J,{className:"border-2 ".concat(B?"border-orange-400 dark:border-orange-500":"border-slate-200 dark:border-slate-500"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:B?a.jsx(X,{className:"!text-orange-400 dark:!text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:$e("Drop to Pin",{ns:"dashboard"})}):a.jsx(zl,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})}),a.jsx(xm,{defer:!0,style:{maxHeight:200},options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:kt?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:a.jsx(J,{className:"flex flex-col gap-1 relative ".concat(T&&!Q?"opacity-20":""),children:le&&Ht.sort((jt,te)=>jt.pinnedOrderNumber-te.pinnedOrderNumber).map((jt,te)=>{const ue=jt.historyId;return a.jsx(J,{children:a.jsx(JE,{isPinnedTop:!0,isPinnedTopFirst:te===0,isDisabledPinnedMoveUp:te===0,isDisabledPinnedMoveDown:te===Ht.length-1,onMovePinnedUpDown:Pe=>{x(Pe)},isLinkCardPreviewEnabled:Te,isLargeView:ue===Rs.value,largeViewItemId:Rs.value,setLargeViewItemId:Pe=>{Rs.value=Pe},setSelectHistoryItem:vr,onCopy:t,onCopyPaste:o,pastingCountDown:ue===Et?s:void 0,isPasted:ue===Et,isCopied:ue===un,isSaved:ue===c,setSavingItem:u,isDeleting:Ot(ue),isSelected:F.includes(ue),setBrokenImageItem:nr,isBrokenImage:L.includes(ue),showTimeAgo:!1,isExpanded:K.includes(ue),isWrapText:G.includes(ue),searchTerm:Xt?hn:"",showSelectHistoryItems:q,invalidateClipboardHistoryQuery:()=>{Ie(),Xe()},setExpanded:kr,setWrapText:si,isDark:kt,setRowHeight:on,clipboard:jt,removeLinkMetaData:zt,generateLinkMetaData:gn})},ue)})})}),a.jsxs(fe,{className:"justify-between",children:[le?a.jsxs(fe,{className:"animate-in fade-in duration-300 ".concat(T&&!Q||!sn?"opacity-0":""),children:[a.jsx(Yn,{className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent pl-0.5 pr-1 pt-0 ",title:Ln?$e("Sequence Paste",{ns:"common"}):$e("Sequence Copy",{ns:"common"}),children:Ln?a.jsx(aa,{size:14,onClick:()=>{i(Ht.map(({historyId:jt})=>jt))}}):a.jsx(qa,{size:14,onClick:()=>{n(Ht.map(({historyId:jt})=>jt))}})}),a.jsxs(Nn,{onOpenChange:jt=>{_e.value=jt},children:[a.jsx(_n,{asChild:!0,children:a.jsx(H3,{variant:"outline",title:$e("Sequence Delay Next",{ns:"common"}),className:"bg-orange-300/20 border-orange-300/50 dark:bg-orange-900/70 dark:border-orange-800/50 border h-[18px] cursor-pointer px-1.5 ml-1",children:a.jsxs(X,{className:"font-mono !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent font-semibold",children:[ze,"s"]})})}),a.jsxs(Cn,{className:"w-44",children:[a.jsx(Oe,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:a.jsx(X,{size:"xs",children:$e("Sequence Copy Paste",{ns:"common"})})}),a.jsx(Yt,{}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsxs(fe,{className:"flex w-full",children:[a.jsxs(X,{size:"xs",children:[$e("Delay Next",{ns:"common"}),"..."]}),a.jsxs(it,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[ze,"s"]})]})}),a.jsxs(ya,{children:[a.jsx(Kt,{checked:ze===1,onSelect:()=>{qe(1)},children:a.jsxs(X,{size:"xs",children:["1 ",$e("second",{ns:"common"})]})}),a.jsx(Kt,{checked:ze===2,onSelect:()=>{qe(2)},children:a.jsxs(X,{size:"xs",children:["2 ",$e("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:ze===3,onSelect:()=>{qe(3)},children:a.jsxs(X,{size:"xs",children:["3 ",$e("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:ze===4,onSelect:()=>{qe(4)},children:a.jsxs(X,{size:"xs",children:["4 ",$e("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:ze===5,onSelect:()=>{qe(5)},children:a.jsxs(X,{size:"xs",children:["5 ",$e("seconds",{ns:"common"})]})}),a.jsx(Kt,{checked:ze===10,onSelect:()=>{qe(10)},children:a.jsxs(X,{size:"xs",children:["10 ",$e("seconds",{ns:"common"})]})})]})]}),a.jsxs(Ta,{children:[a.jsx(va,{children:a.jsxs(fe,{className:"flex w-full",children:[a.jsxs(X,{size:"xs",children:[$e("Reverse Order",{ns:"common"}),"..."]}),a.jsx(it,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:Ye?$e("Yes",{ns:"common"}):$e("No",{ns:"common"})})]})}),a.jsxs(ya,{children:[a.jsx(Kt,{checked:!Ye,onSelect:()=>{Ve(!1)},children:a.jsx(X,{size:"xs",children:$e("No",{ns:"common"})})}),a.jsx(Kt,{checked:Ye,onSelect:()=>{Ve(!0)},children:a.jsx(X,{size:"xs",children:$e("Yes",{ns:"common"})})})]})]})]})]})]}):a.jsx(J,{}),!T&&a.jsxs(Yn,{className:"hover:underline ".concat(le?"h-[30px]":"h-[26px]"," group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent ").concat(le?"":"pb-1"),title:le?$e("Hide pinned history",{ns:"history"}):$e("View pinned history",{ns:"history"}),onClick:()=>{oe(!le)},children:[a.jsxs(X,{className:"!font-medium text-xs !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 mr-1",children:[Ht.length," ",$e("Pinned",{ns:"common"})]}),le?a.jsx(KM,{size:13,className:"group-hover:opacity-100 opacity-0"}):a.jsx(Wee,{size:13,className:"group-hover:opacity-100 opacity-0"})]}),le?a.jsxs(J,{className:"animate-in fade-in duration-300 ".concat(T&&!Q||!sn?"opacity-0":""),children:[a.jsx(Yn,{title:mt?$e("Deselect pinned",{ns:"common"}):$e("Select pinned",{ns:"common"}),className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:a.jsx(fe,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:mt?a.jsx(Ix,{size:15,onClick:()=>{const jt=F.filter(te=>Ht.some(ue=>ue.historyId===te));V(F.filter(te=>!jt.includes(te)))}}):a.jsx(QC,{size:17,onClick:()=>{V(F.concat(Ht.map(jt=>jt.historyId)))}})})}),a.jsx(yP,{onOpen:jt=>{_e.value=jt},onCancel:()=>{setTimeout(()=>{_e.value=!1,Vt.value=!1},300)},onConfirm:async()=>{await m({})},buttonClassName:"group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]}):a.jsx(J,{})]})]})}),en.length>0||Xt?a.jsx(An,{style:{height:tt-(Xt?115:Ht.length===0?85:Qt?Qt+103:85)},ref:jt=>{N.current=jt},onScroll:(jt,te)=>{re(te)},className:"animate-in fade-in mr-[-10px] ".concat(Xt?"mt-[20px]":""),children:({scrollableNodeRef:jt,contentNodeRef:te})=>a.jsxs("div",{className:"pr-[10px] relative h-full",children:[Nt&&a.jsx(J,{className:"".concat(ot>0?"top-9":"top-1"," absolute z-100 animate-in fade-in fade-out duration-300 flex justify-center w-full ml-[-5px] pointer-events-none"),children:a.jsx(De,{text:$e("Scroll to Top",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"bottom",asChild:!0,sideOffset:10,children:a.jsx(Yn,{className:"pointer-events-auto rounded-full bg-slate-300 dark:bg-slate-600 hover:bg-slate-300/90",onClick:()=>{Zt(!0)},children:a.jsx(X,{className:"text-mute text-xs text-center px-3",children:Nt})})})}),ot>0&&!Xt&&a.jsx(J,{className:"absolute top-2 z-100 ml-[-5px] cursor-pointer animate-in fade-in fade-out duration-300 flex justify-center w-full pointer-events-none",children:a.jsx(De,{text:$e("Update history list",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:3,children:a.jsx(Yn,{className:"pointer-events-auto",onClick:()=>{Jt()},children:a.jsxs(X,{className:"text-xs text-center dark:text-slate-800 bg-blue-200 dark:bg-blue-400 rounded-full px-3 cursor-pointer pointer-events-auto",children:["+ ",ot," ",$e("new clips",{ns:"dashboard"})]})})})}),!xe&&!Xt&&a.jsxs(J,{className:"absolute bottom-2 z-100 ml-[-5px] animate-in fade-in fade-out duration-300 flex flex-col justify-center items-center w-full pointer-events-none",children:[a.jsx(De,{text:$e("Turn on history capture",{ns:"dashboard"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:6,children:a.jsx(Yn,{className:"pointer-events-auto",onClick:()=>{je(!0)},children:a.jsx(X,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:$e("History capture is off",{ns:"dashboard"})})})}),en.length>0&&a.jsxs(X,{className:"text-xs text-center bg-slate-100 dark:bg-slate-700 rounded-full px-3 mt-2",children:[$e("Last update",{ns:"dashboard"}),":"," ",en[0].timeAgo]})]}),xe&&!Xt&&!Ee&&a.jsx(J,{className:"absolute bottom-2 z-100 ml-[-5px] animate-in fade-in fade-out duration-300 flex flex-col justify-center items-center w-full pointer-events-none",children:a.jsx(De,{text:$e("Turn On auto update",{ns:"dashboard"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:10,children:a.jsx(Yn,{className:"pointer-events-auto",onClick:()=>{Lt(!0)},children:a.jsx(X,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:$e("Auto update is Off",{ns:"dashboard"})})})})}),a.jsx(K2e,{isItemLoaded:ue=>ue<en.length&&!!en[ue],threshold:10,itemCount:en.length+1,loadMoreItems:We,children:({onItemsRendered:ue,ref:Pe})=>a.jsx(B2e,{overscanCount:10,height:tt-(Xt?60:85),itemCount:en.length,width:"100%",itemSize:ht,itemKey:et=>{var Le;return(Le=en[et].historyId)!=null?Le:"id-${index}"},onItemsRendered:et=>{if(et.visibleStartIndex>10){const Le=en[et.visibleStartIndex];Le!=null&&Le.timeAgo?Nt!==Le.timeAgo&&bt(Le.timeAgo):bt("")}else Nt&&bt("");!hn&&ue(et)},ref:Ei($t,Pe),outerRef:Ei(j,jt),innerRef:te,children:({index:et,style:Le})=>{const pt=en[et],{historyId:ln,showTimeAgo:Vr,timeAgo:Ra}=pt;return a.jsx(JE,{isLargeView:ln===Rs.value,largeViewItemId:Rs.value,isLinkCardPreviewEnabled:Te,setLargeViewItemId:Od=>{Rs.value=Od},setSelectHistoryItem:vr,onCopy:t,onCopyPaste:o,pastingCountDown:ln===Et?s:void 0,isPasted:ln===Et,isCopied:ln===un,isSaved:ln===c,setSavingItem:u,isDeleting:Ot(ln),isOverPinned:ln===B||!!B&&!!T&&F.includes(ln),isSelected:F.includes(ln),setBrokenImageItem:nr,isBrokenImage:L.includes(ln),showTimeAgo:Vr,timeAgo:Ra,isExpanded:K.includes(ln),isWrapText:G.includes(ln),searchTerm:Xt?hn:"",showSelectHistoryItems:q,invalidateClipboardHistoryQuery:()=>{Ie(),Xe()},setExpanded:kr,setWrapText:si,isDark:kt,setRowHeight:on,clipboard:pt,removeLinkMetaData:zt,generateLinkMetaData:gn,index:et,style:Le},ln)}})})]})}):!Qe&&((Mt=ve==null?void 0:ve.pages)==null?void 0:Mt.flat().length)===0&&a.jsx(fe,{style:{height:tt-85},className:"flex items-center flex-col gap-3 justify-center",children:a.jsx(X,{className:"animate-in fade-in duration-600 text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:$e("No Clipboard History",{ns:"dashboard"})})}),a.jsx(Ac,{children:a.jsx(L9,{dropAnimation:In,children:T?a.jsx(JE,{index:1,isWrapText:G.includes(T),isExpanded:K.includes(T),style:{zIndex:999},showSelectHistoryItems:q,setSelectHistoryItem:vr,isDark:kt,isBrokenImage:L.includes(T),setBrokenImageItem:nr,isDragPreview:!0,isDeleting:T===P||!!P&&F.includes(T),selectedItemsCount:F.length&&F.includes(T)?F.length:F.length+1,clipboard:en.find(jt=>Q?jt.historyId===T.toString().split("::pinned")[0]:jt.historyId===T)}):null})}),a.jsx(J,{className:"flex-1 mt-2"}),a.jsxs(Xi,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:Be.pathname,onValueChange:jt=>{ke(jt,{replace:!0})},children:[!T&&a.jsx(o5e,{isDeleting:S,isDark:kt,setIsDeleting:E,setSelectHistoryItem:vr,onDelete:(jt=!1)=>{var te;jt&&(yt(""),b([]),k([]),Rt!=null&&Rt.current&&Rt.current.value&&(Rt.current.value="",(te=Rt==null?void 0:Rt.current)==null||te.focus())),Xe()},showSelectHistoryItems:q,setSelectedHistoryItems:V,setShowSelectHistoryItems:ne,selectedHistoryItems:F}),a.jsx(Vo,{className:"self-center",children:T?a.jsx(br,{value:"",className:"p-0.5",children:a.jsx(t5e,{id:i$})}):a.jsxs(a.Fragment,{children:[a.jsx(br,{value:"/history",children:$e("Clipboard History",{ns:"common"})}),a.jsx(br,{value:"/menu",children:$e("Paste Menu",{ns:"common"})})]})}),a.jsx(J,{className:"w-1"})]})]})}})})}),a.jsx(QE,{children:!Rs.value&&!Ia.value?a.jsx(J,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-50 border border-slate-200 shadow-sm rounded-xl dark:bg-gray-900/60 dark:border-gray-800 dark:shadow-slate-700/[.7]",children:a.jsx(sg,{disableWidth:!0,children:({height:tt})=>tt&&tt>0&&a.jsx(J,{className:"p-2 pt-0 py-4 pr-0 pb-0 m-0 select-none",children:a.jsx(An,{style:{height:tt-20},onScroll:(Mt,jt)=>{re(jt)},children:a.jsx(fe,{style:{height:tt-20},className:"flex items-start flex-col justify-start p-0",children:a.jsx(jxe,{historyDragActive:!!T,isDark:kt,dragOverBoardId:R})})})})})}):a.jsx(J,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:a.jsx(sg,{disableWidth:!0,children:({height:tt})=>tt&&tt>0&&a.jsxs(J,{className:"p-4 py-3 select-auto relative",children:[a.jsx(J,{className:"flex justify-center mb-2",children:a.jsx(X,{className:"font-thin select-none !text-slate-400",size:"sm",children:$e("Large View",{ns:"common"})})}),a.jsx(An,{style:{height:tt-85},autoHide:!1,onScroll:(Mt,jt)=>{re(jt)},children:a.jsxs(fe,{style:{height:tt-105},children:[Ia.value&&a.jsx(o$,{clipId:Ia.value,isHistoryDragActive:!!T,isDark:kt}),Sn&&a.jsx(a5e,{setLargeViewItemId:Mt=>{Rs.value=Mt},setSelectHistoryItem:vr,onCopy:t,onCopyPaste:o,pastingCountDown:Sn.historyId===Et?s:null,isPasted:Sn.historyId===Et,isCopied:Sn.historyId===un,isSaved:Sn.historyId===c,setSavingItem:u,isDeleting:Sn.historyId===P||!!P&&!!T&&F.includes(Sn.historyId)||S&&F.includes(Sn.historyId),isSelected:F.includes(Sn.historyId),setBrokenImageItem:nr,isBrokenImage:L.includes(Sn.historyId),showTimeAgo:Sn.showTimeAgo,timeAgo:Sn.timeAgo,searchTerm:Xt?hn:"",invalidateClipboardHistoryQuery:()=>{Ie(),Xe()},setExpanded:kr,isDark:kt,clipboard:Sn,removeLinkMetaData:zt,generateLinkMetaData:gn})]})})]})})})})]},ie?"swap":"no-swap")})})}class l${constructor(t){gt(this,"root");this.root=u5e(t)}get data(){var t,n;return(n=(t=this.root.children)==null?void 0:t.map(r=>r.data))!=null?n:[]}create(t){const n=t.parentId?this.find(t.parentId):this.root;if(!n)return null;n.addChild(t.data,t.index)}move(t){const n=this.find(t.id),r=t.parentId?this.find(t.parentId):this.root;!n||!r||(r.addChild(n.data,t.index),n.drop())}update(t){const n=this.find(t.id);n&&n.update(t.changes)}drop(t){const n=this.find(t.id);n&&n.drop()}find(t,n=this.root){if(!n)return null;if(n.id===t)return n;if(n.children){for(let r of n.children){const s=this.find(t,r);if(s)return s}return null}return null}}function u5e(e){const t=new c$({id:"ROOT"},null);return t.children=e.map(n=>eN(n,t)),t}function eN(e,t){const n=new c$(e,t);return e.children&&(n.children=e.children.map(r=>eN(r,n))),n}class c${constructor(t,n){gt(this,"id");gt(this,"children");this.data=t,this.parent=n,this.id=t.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(t,n){var s,o;const r=eN(t,this);this.children=(s=this.children)!=null?s:[],this.children.splice(n,0,r),this.data.children=(o=this.data.children)!=null?o:[],this.data.children.splice(n,0,t)}removeChild(t){var n,r;(n=this.children)==null||n.splice(t,1),(r=this.data.children)==null||r.splice(t,1)}update(t){if(this.hasParent()){const n=this.childIndex;this.parent.addChild({...this.data,...t},n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let h5e=0;function p5e(e){const[t,n]=f.useState(e),r=f.useMemo(()=>new l$(t),[t]);return[t,{onMove:s=>{for(const o of s.dragIds)r.move({id:o,parentId:s.parentId,index:s.index});n(r.data)},onRename:({name:s,id:o})=>{r.update({id:o,changes:{name:s}}),n(r.data)},onCreate:({parentId:s,index:o,type:i})=>{const c={id:"simple-tree-id-".concat(h5e++),name:""};return i==="internal"&&(c.children=[]),r.create({parentId:s,index:o,data:c}),n(r.data),c},onDelete:s=>{s.ids.forEach(o=>r.drop({id:o})),n(r.data)}}]}function m5e(e){if(e.initialData&&e.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(e.initialData&&(e.onCreate||e.onDelete||e.onMove||e.onRename))throw new Error("React Arborist Tree => You passed the initialData prop along with a data handler.\nUse the data prop if you want to provide your own handlers.");if(e.initialData){const[t,n]=p5e(e.initialData);return{...e,...n,data:t}}else return e}const d$=f.createContext({dragDropManager:void 0});function ws(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var u$=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),tN=function(){return Math.random().toString(36).substring(7).split("").join(".")},aw={INIT:"@@redux/INIT"+tN(),REPLACE:"@@redux/REPLACE"+tN(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tN()}};function f5e(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function nN(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ws(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ws(1));return n(nN)(e,t)}if(typeof e!="function")throw new Error(ws(2));var s=e,o=t,i=[],c=i,u=!1;function h(){c===i&&(c=i.slice())}function p(){if(u)throw new Error(ws(3));return o}function m(g){if(typeof g!="function")throw new Error(ws(4));if(u)throw new Error(ws(5));var k=!0;return h(),c.push(g),function(){if(k){if(u)throw new Error(ws(6));k=!1,h();var j=c.indexOf(g);c.splice(j,1),i=null}}}function x(g){if(!f5e(g))throw new Error(ws(7));if(typeof g.type>"u")throw new Error(ws(8));if(u)throw new Error(ws(9));try{u=!0,o=s(o,g)}finally{u=!1}for(var k=i=c,j=0;j<k.length;j++){var S=k[j];S()}return g}function C(g){if(typeof g!="function")throw new Error(ws(10));s=g,x({type:aw.REPLACE})}function b(){var g,k=m;return g={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(ws(11));function S(){j.next&&j.next(p())}S();var E=k(S);return{unsubscribe:E}}},g[u$]=function(){return this},g}return x({type:aw.INIT}),r={dispatch:x,subscribe:m,getState:p,replaceReducer:C},r[u$]=b,r}function g5e(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:aw.INIT});if(typeof r>"u")throw new Error(ws(12));if(typeof n(void 0,{type:aw.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ws(13))})}function h$(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var s=t[r];typeof e[s]=="function"&&(n[s]=e[s])}var o=Object.keys(n),i;try{g5e(n)}catch(c){i=c}return function(c,u){if(c===void 0&&(c={}),i)throw i;for(var h=!1,p={},m=0;m<o.length;m++){var x=o[m],C=n[x],b=c[x],g=C(b,u);if(typeof g>"u")throw u&&u.type,new Error(ws(14));p[x]=g,h=h||g!==b}return h=h||o.length!==Object.keys(c).length,h?p:c}}function fn(e,t,...n){if(v5e()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let s=0;r=new Error(t.replace(/%s/g,function(){return n[s++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function v5e(){return typeof process<"u"&&!0}function y5e(e,t,n){return t.split(".").reduce((r,s)=>r&&r[s]?r[s]:n||null,e)}function x5e(e,t){return e.filter(n=>n!==t)}function p$(e){return typeof e=="object"}function b5e(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const s=[];return n.forEach((o,i)=>{o===1&&s.push(i)}),s}function w5e(e,t){return e.filter(n=>t.indexOf(n)>-1)}const rN="dnd-core/INIT_COORDS",sw="dnd-core/BEGIN_DRAG",aN="dnd-core/PUBLISH_DRAG_SOURCE",ow="dnd-core/HOVER",iw="dnd-core/DROP",lw="dnd-core/END_DRAG";function m$(e,t){return{type:rN,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const k5e={type:rN,payload:{clientOffset:null,sourceClientOffset:null}};function j5e(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:s,getSourceClientOffset:o}=n,i=e.getMonitor(),c=e.getRegistry();e.dispatch(m$(s)),C5e(t,i,c);const u=N5e(t,i);if(u==null){e.dispatch(k5e);return}let h=null;if(s){if(!o)throw new Error("getSourceClientOffset must be defined");S5e(o),h=o(u)}e.dispatch(m$(s,h));const p=c.getSource(u).beginDrag(i,u);if(p==null)return;E5e(p),c.pinSource(u);const m=c.getSourceType(u);return{type:sw,payload:{itemType:m,item:p,sourceId:u,clientOffset:s||null,sourceClientOffset:h||null,isSourcePublic:!!r}}}}function C5e(e,t,n){fn(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){fn(n.getSource(r),"Expected sourceIds to be registered.")})}function S5e(e){fn(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function E5e(e){fn(p$(e),"Item must be an object.")}function N5e(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function _5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){_5e(e,s,n[s])})}return e}function T5e(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();M5e(n),O5e(n).forEach((s,o)=>{const i=L5e(s,o,r,n),c={type:iw,payload:{dropResult:I5e({},t,i)}};e.dispatch(c)})}}function M5e(e){fn(e.isDragging(),"Cannot call drop while not dragging."),fn(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function L5e(e,t,n,r){const s=n.getTarget(e);let o=s?s.drop(r,e):void 0;return D5e(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function D5e(e){fn(typeof e>"u"||p$(e),"Drop result must either be an object or undefined.")}function O5e(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function P5e(e){return function(){const t=e.getMonitor(),n=e.getRegistry();R5e(t);const r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:lw}}}function R5e(e){fn(e.isDragging(),"Cannot call endDrag while not dragging.")}function sN(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function A5e(e){return function(t,{clientOffset:n}={}){z5e(t);const r=t.slice(0),s=e.getMonitor(),o=e.getRegistry(),i=s.getItemType();return H5e(r,o,i),F5e(r,s,o),$5e(r,s,o),{type:ow,payload:{targetIds:r,clientOffset:n||null}}}}function z5e(e){fn(Array.isArray(e),"Expected targetIds to be an array.")}function F5e(e,t,n){fn(t.isDragging(),"Cannot call hover while not dragging."),fn(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const s=e[r];fn(e.lastIndexOf(s)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(s);fn(o,"Expected targetIds to be registered.")}}function H5e(e,t,n){for(let r=e.length-1;r>=0;r--){const s=e[r],o=t.getTargetType(s);sN(o,n)||e.splice(r,1)}}function $5e(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function B5e(e){return function(){if(e.getMonitor().isDragging())return{type:aN}}}function W5e(e){return{beginDrag:j5e(e),publishDragSource:B5e(e),hover:A5e(e),drop:T5e(e),endDrag:P5e(e)}}class V5e{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...i)=>{const c=o.apply(t,i);typeof c<"u"&&n(c)}}const s=W5e(this);return Object.keys(s).reduce((o,i)=>{const c=s[i];return o[i]=r(c),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function U5e(e,t){return{x:e.x+t.x,y:e.y+t.y}}function f$(e,t){return{x:e.x-t.x,y:e.y-t.y}}function q5e(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:f$(U5e(t,r),n)}function Y5e(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:f$(t,n)}const w1=[],oN=[];w1.__IS_NONE__=!0,oN.__IS_ALL__=!0;function K5e(e,t){return e===w1?!1:e===oN||typeof t>"u"?!0:w5e(t,e).length>0}class G5e{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;fn(typeof t=="function","listener must be a function."),fn(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let s=this.store.getState().stateId;const o=()=>{const i=this.store.getState(),c=i.stateId;try{c===s||c===s+1&&!K5e(i.dirtyHandlerIds,r)||t()}finally{s=c}};return this.store.subscribe(o)}subscribeToOffsetChange(t){fn(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const s=this.store.getState().dragOffset;s!==n&&(n=s,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return fn(n,"Expected to find a valid source. sourceId=".concat(t)),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(fn(n,"Expected to find a valid target. targetId=".concat(t)),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),s=this.getItemType();return sN(r,s)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(fn(n,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),s=this.getItemType();return r!==s?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const s=this.registry.getTargetType(t),o=this.getItemType();if(o&&!sN(s,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const c=i.indexOf(t);return r?c===i.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return q5e(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Y5e(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const g$=typeof global<"u"?global:self,v$=g$.MutationObserver||g$.WebKitMutationObserver;function y$(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function Z5e(e){let t=1;const n=new v$(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Q5e=typeof v$=="function"?Z5e:y$;class J5e{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,s=t.length-this.index;r<s;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Q5e(this.flush),this.requestErrorThrow=y$(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class X5e{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class eje{create(t){const n=this.freeTasks,r=n.length?n.pop():new X5e(this.onError,s=>n[n.length]=s);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const x$=new J5e,tje=new eje(x$.registerPendingError);function nje(e){x$.enqueueTask(tje.create(e))}const iN="dnd-core/ADD_SOURCE",lN="dnd-core/ADD_TARGET",cN="dnd-core/REMOVE_SOURCE",cw="dnd-core/REMOVE_TARGET";function rje(e){return{type:iN,payload:{sourceId:e}}}function aje(e){return{type:lN,payload:{targetId:e}}}function sje(e){return{type:cN,payload:{sourceId:e}}}function oje(e){return{type:cw,payload:{targetId:e}}}function ije(e){fn(typeof e.canDrag=="function","Expected canDrag to be a function."),fn(typeof e.beginDrag=="function","Expected beginDrag to be a function."),fn(typeof e.endDrag=="function","Expected endDrag to be a function.")}function lje(e){fn(typeof e.canDrop=="function","Expected canDrop to be a function."),fn(typeof e.hover=="function","Expected hover to be a function."),fn(typeof e.drop=="function","Expected beginDrag to be a function.")}function dN(e,t){if(t&&Array.isArray(e)){e.forEach(n=>dN(n,!1));return}fn(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Xo;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Xo||(Xo={}));let cje=0;function dje(){return cje++}function uje(e){const t=dje().toString();switch(e){case Xo.SOURCE:return"S".concat(t);case Xo.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function b$(e){switch(e[0]){case"S":return Xo.SOURCE;case"T":return Xo.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function w$(e,t){const n=e.entries();let r=!1;do{const{done:s,value:[,o]}=n.next();if(o===t)return!0;r=!!s}while(!r);return!1}class hje{addSource(t,n){dN(t),ije(n);const r=this.addHandler(Xo.SOURCE,t,n);return this.store.dispatch(rje(r)),r}addTarget(t,n){dN(t,!0),lje(n);const r=this.addHandler(Xo.TARGET,t,n);return this.store.dispatch(aje(r)),r}containsHandler(t){return w$(this.dragSources,t)||w$(this.dropTargets,t)}getSource(t,n=!1){return fn(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return fn(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return fn(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return fn(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return b$(t)===Xo.SOURCE}isTargetId(t){return b$(t)===Xo.TARGET}removeSource(t){fn(this.getSource(t),"Expected an existing source."),this.store.dispatch(sje(t)),nje(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){fn(this.getTarget(t),"Expected an existing target."),this.store.dispatch(oje(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);fn(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){fn(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const s=uje(t);return this.types.set(s,n),t===Xo.SOURCE?this.dragSources.set(s,r):t===Xo.TARGET&&this.dropTargets.set(s,r),s}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const pje=(e,t)=>e===t;function mje(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function fje(e,t,n=pje){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function gje(e=w1,t){switch(t.type){case ow:break;case iN:case lN:case cw:case cN:return w1;case sw:case aN:case lw:case iw:default:return oN}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,s=b5e(n,r);if(!(s.length>0||!fje(n,r)))return w1;const o=r[r.length-1],i=n[n.length-1];return o!==i&&(o&&s.push(o),i&&s.push(i)),s}function vje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yje(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){vje(e,s,n[s])})}return e}const k$={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function xje(e=k$,t){const{payload:n}=t;switch(t.type){case rN:case sw:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case ow:return mje(e.clientOffset,n.clientOffset)?e:yje({},e,{clientOffset:n.clientOffset});case lw:case iw:return k$;default:return e}}function bje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){bje(e,s,n[s])})}return e}const wje={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function kje(e=wje,t){const{payload:n}=t;switch(t.type){case sw:return Vm({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case aN:return Vm({},e,{isSourcePublic:!0});case ow:return Vm({},e,{targetIds:n.targetIds});case cw:return e.targetIds.indexOf(n.targetId)===-1?e:Vm({},e,{targetIds:x5e(e.targetIds,n.targetId)});case iw:return Vm({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case lw:return Vm({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function jje(e=0,t){switch(t.type){case iN:case lN:return e+1;case cN:case cw:return e-1;default:return e}}function Cje(e=0){return e+1}function Sje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eje(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){Sje(e,s,n[s])})}return e}function Nje(e={},t){return{dirtyHandlerIds:gje(e.dirtyHandlerIds,{type:t.type,payload:Eje({},t.payload,{prevTargetIds:y5e(e,"dragOperation.targetIds",[])})}),dragOffset:xje(e.dragOffset,t),refCount:jje(e.refCount,t),dragOperation:kje(e.dragOperation,t),stateId:Cje(e.stateId)}}function _je(e,t=void 0,n={},r=!1){const s=Ije(r),o=new G5e(s,new hje(s)),i=new V5e(s,o),c=e(i,t,n);return i.receiveBackend(c),i}function Ije(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return nN(Nje,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Tje(e,t){if(e==null)return{};var n=Mje(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mje(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}let j$=0;const dw=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Lje=f.memo(function(e){var{children:t}=e,n=Tje(e,["children"]);const[r,s]=Dje(n);return f.useEffect(()=>{if(s){const o=C$();return++j$,()=>{--j$===0&&(o[dw]=null)}}},[]),a.jsx(d$.Provider,{value:r,children:t})});function Dje(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=Oje(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function Oje(e,t=C$(),n,r){const s=t;return s[dw]||(s[dw]={dragDropManager:_je(e,t,n,r)}),s[dw]}function C$(){return typeof global<"u"?global:window}var Pje=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,s,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(s=r;s--!==0;)if(!e(t[s],n[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[s]))return!1;for(s=r;s--!==0;){var i=o[s];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const Rje=_o(Pje),dh=typeof window<"u"?f.useLayoutEffect:f.useEffect;function S$(e,t,n){const[r,s]=f.useState(()=>t(e)),o=f.useCallback(()=>{const i=t(e);Rje(r,i)||(s(i),n&&n())},[r,e,n]);return dh(o),[r,o]}function Aje(e,t,n){const[r,s]=S$(e,t,n);return dh(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(s,{handlerIds:[o]})},[e,s]),r}function E$(e,t,n){return Aje(t,e||(()=>({})),()=>n.reconnect())}function N$(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),f.useMemo(()=>typeof e=="function"?e():e,n)}function zje(e){return f.useMemo(()=>e.hooks.dragSource(),[e])}function Fje(e){return f.useMemo(()=>e.hooks.dragPreview(),[e])}let uN=!1,hN=!1;class Hje{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){fn(!uN,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return uN=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{uN=!1}}isDragging(){if(!this.sourceId)return!1;fn(!hN,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return hN=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{hN=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let pN=!1;class $je{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;fn(!pN,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return pN=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{pN=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Bje(e,t,n){const r=n.getRegistry(),s=r.addTarget(e,t);return[s,()=>r.removeTarget(s)]}function Wje(e,t,n){const r=n.getRegistry(),s=r.addSource(e,t);return[s,()=>r.removeSource(s)]}function mN(e,t,n,r){let s=n?n.call(r,e,t):void 0;if(s!==void 0)return!!s;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;const c=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const h=o[u];if(!c(h))return!1;const p=e[h],m=t[h];if(s=n?n.call(r,p,m,h):void 0,s===!1||s===void 0&&p!==m)return!1}return!0}function fN(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vje(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap ".concat(t," into a <div>, or turn it into a drag source or a drop target itself."))}function Uje(e){return(t=null,n=null)=>{if(!f.isValidElement(t)){const s=t;return e(s,n),s}const r=t;return Vje(r),qje(r,n?s=>e(s,n):e)}}function _$(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const s=Uje(r);t[n]=()=>s}}),t}function I$(e,t){typeof e=="function"?e(t):e.current=t}function qje(e,t){const n=e.ref;return fn(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?f.cloneElement(e,{ref:r=>{I$(n,r),I$(t,r)}}):f.cloneElement(e,{ref:t})}class Yje{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!mN(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!mN(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=_$({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,fN(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,fN(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Kje{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!mN(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=_$({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,fN(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function uh(){const{dragDropManager:e}=f.useContext(d$);return fn(e!=null,"Expected drag drop context"),e}function Gje(e,t){const n=uh(),r=f.useMemo(()=>new Yje(n.getBackend()),[n]);return dh(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),dh(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Zje(){const e=uh();return f.useMemo(()=>new Hje(e),[e])}class Qje{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r!=null?r:null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,s=this.monitor,{isDragging:o}=r;return o?o(s):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:s}=t;s&&s(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function Jje(e,t,n){const r=f.useMemo(()=>new Qje(e,t,n),[t,n]);return f.useEffect(()=>{r.spec=e},[e]),r}function Xje(e){return f.useMemo(()=>{const t=e.type;return fn(t!=null,"spec.type must be defined"),t},[e])}function eCe(e,t,n){const r=uh(),s=Jje(e,t,n),o=Xje(e);dh(function(){if(o!=null){const[i,c]=Wje(o,s,r);return t.receiveHandlerId(i),n.receiveHandlerId(i),c}},[r,t,n,s,o])}function tCe(e,t){const n=N$(e,t);fn(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=Zje(),s=Gje(n.options,n.previewOptions);return eCe(n,r,s),[E$(n.collect,r,s),zje(s),Fje(s)]}function nCe(e){const t=uh().getMonitor(),[n,r]=S$(t,e);return f.useEffect(()=>t.subscribeToOffsetChange(r)),f.useEffect(()=>t.subscribeToStateChange(r)),n}function rCe(e){return f.useMemo(()=>e.hooks.dropTarget(),[e])}function aCe(e){const t=uh(),n=f.useMemo(()=>new Kje(t.getBackend()),[t]);return dh(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function sCe(){const e=uh();return f.useMemo(()=>new $je(e),[e])}function oCe(e){const{accept:t}=e;return f.useMemo(()=>(fn(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class iCe{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function lCe(e,t){const n=f.useMemo(()=>new iCe(e,t),[t]);return f.useEffect(()=>{n.spec=e},[e]),n}function cCe(e,t,n){const r=uh(),s=lCe(e,t),o=oCe(e);dh(function(){const[i,c]=Bje(o,s,r);return t.receiveHandlerId(i),n.receiveHandlerId(i),c},[r,t,s,n,o.map(i=>i.toString()).join("|")])}function T$(e,t){const n=N$(e,t),r=sCe(),s=aCe(n.options);return cCe(n,r,s),[E$(n.collect,r,s),rCe(s)]}const M$=f.createContext(null);function ks(){const e=f.useContext(M$);if(e===null)throw new Error("No Tree Api Provided");return e}const L$=f.createContext(null);function dCe(){const e=f.useContext(L$);if(e===null)throw new Error("Provide a NodesContext");return e}const D$=f.createContext(null);function uCe(){const e=f.useContext(D$);if(e===null)throw new Error("Provide a DnDContext");return e}const O$=f.createContext(0);function gN(){f.useContext(O$)}const hCe={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},pCe=e=>{if(!e)return{display:"none"};const{x:t,y:n}=e;return{transform:"translate(".concat(t,"px, ").concat(n,"px)")}},mCe=e=>{if(!e)return{display:"none"};const{x:t,y:n}=e;return{transform:"translate(".concat(t+10,"px, ").concat(n+10,"px)")}};function P$({offset:e,mouse:t,id:n,dragIds:r,isDragging:s}){return a.jsxs(fCe,{isDragging:s,children:[a.jsx(gCe,{offset:e,children:a.jsx(yCe,{id:n,dragIds:r})}),a.jsx(vCe,{mouse:t,count:r.length})]})}const fCe=f.memo(function(e){return e.isDragging?a.jsx("div",{style:hCe,children:e.children}):null});function gCe(e){return a.jsx("div",{className:"row preview",style:pCe(e.offset),children:e.children})}function vCe(e){const{count:t,mouse:n}=e;return t>1?a.jsx("div",{className:"selected-count",style:mCe(n),children:t}):null}const yCe=f.memo(function(e){const t=ks(),n=t.get(e.id);return n?a.jsx(t.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*t.indent,opacity:.5,background:"transparent"},tree:t}):null});function xCe(){const e=ks(),{offset:t,mouse:n,item:r,isDragging:s}=nCe(i=>({offset:i.getSourceClientOffset(),mouse:i.getClientOffset(),item:i.getItem(),isDragging:i.isDragging()})),o=e.props.renderDragPreview||P$;return a.jsx(o,{offset:t,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:s})}const k1=e=>{var t;return{nodes:{open:{filtered:{},unfiltered:(t=e==null?void 0:e.initialOpenState)!=null?t:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,idWillReceiveDrop:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Um={cursor(e){return{type:"DND_CURSOR",cursor:e}},dragStart(e,t){return{type:"DND_DRAG_START",id:e,dragIds:t}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(e,t){return{type:"DND_HOVERING",parentId:e,index:t}}};function bCe(e=k1().dnd,t){switch(t.type){case"DND_CURSOR":return{...e,cursor:t.cursor};case"DND_DRAG_START":return{...e,dragId:t.id,dragIds:t.dragIds};case"DND_DRAG_END":return k1().dnd;case"DND_HOVERING":return{...e,parentId:t.parentId,index:t.index};default:return e}}function R$(e,t,n){return Math.max(Math.min(e,n),t)}function A$(e){return e&&e.isLeaf}function z$(e){return e&&e.isInternal&&!e.isOpen}const F$=(e,t)=>{let n=e;for(;n;){if(n.id===t.id)return!0;n=n.parent}return!1},H$=e=>{if(!e.parent)throw Error("Node does not have a parent");return e.parent.children.findIndex(t=>t.id===e.id)};function wCe(){}function vN(e,t){if(!e)return null;if(e.id===t)return e;if(e.children)for(let n of e.children){const r=vN(n,t);if(r)return r}return null}function uw(e,t){if(t(e),e.children)for(let n of e.children)uw(n,t)}function $$(e){const t=W$(e);let n;for(let r=0;r<t.length;++r)if(t[r]===e){n=kCe(t,r);break}n==null||n.focus()}function B$(e){const t=W$(e);let n;for(let r=0;r<t.length;++r)if(t[r]===e){n=jCe(t,r);break}n==null||n.focus()}function kCe(e,t){return t+1<e.length?e[t+1]:e[0]}function jCe(e,t){return t-1>=0?e[t-1]:e[e.length-1]}function W$(e){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(t=>t===e||!e.contains(t))}function j1(e,t){return typeof t=="boolean"?t:typeof t=="string"?e[t]:t(e)}function V$(e){return e===null?null:hh(e)}function hh(e){return typeof e=="string"?e:e.id}function CCe(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function U$(e,...t){if(e)return e(...t)}function q$(e){return new Promise((t,n)=>{let r=0;function s(){r+=1,r===100&&n(),e()?t():setTimeout(s,10)}s()})}function Y$(e){var n,r;const t=e.focusedNode;return t?t.isOpen?0:t.parent?t.childIndex+1:0:(r=(n=e.root.children)==null?void 0:n.length)!=null?r:0}function K$(e){const t=e.focusedNode;return t?t.isOpen?t.id:t.parent&&!t.parent.isRoot?t.parent.id:null:null}const SCe=Object.freeze(Object.defineProperty({__proto__:null,access:j1,bound:R$,dfs:vN,focusNextElement:$$,focusPrevElement:B$,getInsertIndex:Y$,getInsertParentId:K$,identify:hh,identifyNull:V$,indexOf:H$,isClosed:z$,isDecendent:F$,isItem:A$,mergeRefs:CCe,noop:wCe,safeRun:U$,waitFor:q$,walk:uw},Symbol.toStringTag,{value:"Module"}));function ECe(e,t){const n=e.getBoundingClientRect(),r=t.x-Math.round(n.x),s=t.y-Math.round(n.y),o=n.height,i=s<o/2,c=!i,u=o/4,h=s>u&&s<o-u;return{x:r,inTopHalf:i,inBottomHalf:c,inMiddle:h,atTop:!h&&i,atBottom:!h&&c}}function NCe(e,t,n,r){return e?e.isInternal?r.atTop?[t,e]:r.inMiddle?[e,e]:[e,n]:r.inTopHalf?[t,e]:[e,n]:[t,null]}function _Ce(e,t,n,r){const s=Math.round(Math.max(0,e.x-r)/r);let o,i;return t?n?(i=t.level,o=n.level):(i=t.level,o=0):(i=0,o=0),R$(s,o,i)}function yN(e,t){return{parentId:e||null,index:t}}function xN(e,t){return{type:"line",index:e,level:t}}function ICe(e){return{type:"highlight",id:e}}function TCe(e,t){var o;let n=e;for(;n.parent&&n.level>t;)n=n.parent;const r=((o=n.parent)==null?void 0:o.id)||null,s=H$(n)+1;return{parentId:r,index:s}}function G$(e){var c;const t=ECe(e.element,e.offset),{node:n,nextNode:r,prevNode:s}=e,[o,i]=NCe(n,s,r,t);if(n&&n.isInternal&&t.inMiddle)return{drop:yN(n.id,0),cursor:ICe(n.id)};if(!o)return{drop:yN((c=i==null?void 0:i.parent)==null?void 0:c.id,0),cursor:xN(0,0)};if(A$(o)||z$(o)){const u=_Ce(t,o,i,e.indent);return{drop:TCe(o,u),cursor:xN(o.rowIndex+1,u)}}return{drop:yN(o==null?void 0:o.id,0),cursor:xN(o.rowIndex+1,o.level+1)}}function MCe(){const e=ks(),[,t]=T$(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?e.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const s=r.getClientOffset();if(!e.listEl.current||!s)return;const{cursor:o,drop:i}=G$({element:e.listEl.current,offset:s,indent:e.indent,node:null,prevNode:e.visibleNodes[e.visibleNodes.length-1],nextNode:null});i&&e.dispatch(Um.hovering(i.parentId,i.index)),r.canDrop()?o&&e.showCursor(o):e.hideCursor()}}),[e]);t(e.listEl)}function LCe(e){return MCe(),e.children}function Z$(e){let t=null;return()=>(t==null&&(t=e()),t)}function DCe(e,t){return e.filter(n=>n!==t)}function OCe(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const s=[];return n.forEach(o=>s.push(o)),s}class PCe{enter(t){const n=this.entered.length,r=s=>this.isNodeInDocument(s)&&(!s.contains||s.contains(t));return this.entered=OCe(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=DCe(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class RCe{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const s=this.config.exposeProperties[r];s!=null&&(n[r]={value:s(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Q$="__NATIVE_FILE__",J$="__NATIVE_URL__",X$="__NATIVE_TEXT__",eB="__NATIVE_HTML__",tB=Object.freeze(Object.defineProperty({__proto__:null,FILE:Q$,HTML:eB,TEXT:X$,URL:J$},Symbol.toStringTag,{value:"Module"}));function bN(e,t,n){const r=t.reduce((s,o)=>s||e.getData(o),"");return r!=null?r:n}const wN={[Q$]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[eB]:{exposeProperties:{html:(e,t)=>bN(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[J$]:{exposeProperties:{urls:(e,t)=>bN(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[X$]:{exposeProperties:{text:(e,t)=>bN(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function ACe(e,t){const n=wN[e];if(!n)throw new Error("native type ".concat(e," has no configuration"));const r=new RCe(n);return r.loadDataTransfer(t),r}function kN(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(wN).filter(n=>{const r=wN[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(s=>t.indexOf(s)>-1):!1})[0]||null}const zCe=Z$(()=>/firefox/i.test(navigator.userAgent)),nB=Z$(()=>!!window.safari);class rB{interpolate(t){const{xs:n,ys:r,c1s:s,c2s:o,c3s:i}=this;let c=n.length-1;if(t===n[c])return r[c];let u=0,h=i.length-1,p;for(;u<=h;){p=Math.floor(.5*(u+h));const C=n[p];if(C<t)u=p+1;else if(C>t)h=p-1;else return r[p]}c=Math.max(0,h);const m=t-n[c],x=m*m;return r[c]+s[c]*m+o[c]*x+i[c]*m*x}constructor(t,n){const{length:r}=t,s=[];for(let C=0;C<r;C++)s.push(C);s.sort((C,b)=>t[C]<t[b]?-1:1);const o=[],i=[];let c,u;for(let C=0;C<r-1;C++)c=t[C+1]-t[C],u=n[C+1]-n[C],o.push(c),i.push(u/c);const h=[i[0]];for(let C=0;C<o.length-1;C++){const b=i[C],g=i[C+1];if(b*g<=0)h.push(0);else{c=o[C];const k=o[C+1],j=c+k;h.push(3*j/((j+k)/b+(j+c)/g))}}h.push(i[i.length-1]);const p=[],m=[];let x;for(let C=0;C<h.length-1;C++){x=i[C];const b=h[C],g=1/o[C],k=b+h[C+1]-x-x;p.push((x-b-k)*g),m.push(k*g*g)}this.xs=t,this.ys=n,this.c1s=h,this.c2s=p,this.c3s=m}}const FCe=1;function aB(e){const t=e.nodeType===FCe?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function hw(e){return{x:e.clientX,y:e.clientY}}function HCe(e){var t;return e.nodeName==="IMG"&&(zCe()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function $Ce(e,t,n,r){let s=e?t.width:n,o=e?t.height:r;return nB()&&e&&(o/=window.devicePixelRatio,s/=window.devicePixelRatio),{dragPreviewWidth:s,dragPreviewHeight:o}}function BCe(e,t,n,r,s){const o=HCe(t),i=aB(o?e:t),c={x:n.x-i.x,y:n.y-i.y},{offsetWidth:u,offsetHeight:h}=e,{anchorX:p,anchorY:m}=r,{dragPreviewWidth:x,dragPreviewHeight:C}=$Ce(o,t,u,h),b=()=>{let N=new rB([0,.5,1],[c.y,c.y/h*C,c.y+C-h]).interpolate(m);return nB()&&o&&(N+=(window.devicePixelRatio-1)*C),N},g=()=>new rB([0,.5,1],[c.x,c.x/u*x,c.x+x-u]).interpolate(p),{offsetX:k,offsetY:j}=s,S=k===0||k,E=j===0||j;return{x:S?k:g(),y:E?j:b()}}class WCe{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}}function VCe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){VCe(e,s,n[s])})}return e}class UCe{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const s=i=>this.handleDragStart(i,t),o=i=>this.handleSelectStart(i);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",s),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",s),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=i=>this.handleDragEnter(i,t),s=i=>this.handleDragOver(i,t),o=i=>this.handleDrop(i,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",s),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",s),n.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return sB({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return sB({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(tB).some(n=>tB[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=ACe(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=s=>{const o=this.sourceNodes.get(s);return o&&aB(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=s=>!!(s&&this.document&&this.document.body&&this.document.body.contains(s)),this.endDragIfSourceWasRemovedFromDOM=()=>{const s=this.currentDragSourceNode;s==null||this.isNodeInDocument(s)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=s=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(s||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=s=>{if(s.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const i=hw(s);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});const{dataTransfer:c}=s,u=kN(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const p=this.monitor.getSourceId(),m=this.sourceNodes.get(p),x=this.sourcePreviewNodes.get(p)||m;if(x){const{anchorX:C,anchorY:b,offsetX:g,offsetY:k}=this.getCurrentSourcePreviewNodeOptions(),j=BCe(m,x,i,{anchorX:C,anchorY:b},{offsetX:g,offsetY:k});c.setDragImage(x,j.x,j.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(s.target);const{captureDraggingState:h}=this.getCurrentSourcePreviewNodeOptions();h?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(c&&!c.types&&(s.target&&!s.target.hasAttribute||!s.target.hasAttribute("draggable")))return;s.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=s=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(s.dataTransfer)}if(!this.enterLeaveCounter.enter(s.target)||this.monitor.isDragging())return;const{dataTransfer:i}=s,c=kN(i);c&&this.beginDragNativeItem(c,i)},this.handleTopDragEnter=s=>{const{dragEnterTargetIds:o}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=s.altKey,o.length>0&&this.actions.hover(o,{clientOffset:hw(s)}),o.some(i=>this.monitor.canDropOnTarget(i))&&(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=s=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(s.dataTransfer)}},this.handleTopDragOver=s=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none");return}this.altKeyPressed=s.altKey,this.lastClientOffset=hw(s),this.scheduleHover(o),(o||[]).some(i=>this.monitor.canDropOnTarget(i))?(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?s.preventDefault():(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=s=>{this.isDraggingNativeItem()&&s.preventDefault(),this.enterLeaveCounter.leave(s.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=s=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;s.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(s.dataTransfer)}else kN(s.dataTransfer)&&s.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=s=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:hw(s)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=s=>{const o=s.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(s.preventDefault(),o.dragDrop()))},this.options=new WCe(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new PCe(this.isNodeInDocument)}}let pw;function qCe(){return pw||(pw=new Image,pw.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),pw}const YCe=function(e,t,n){return new UCe(e,t,n)},oB=f.forwardRef(function({style:e,...t},n){var i,c,u,h;const r=ks(),s=(c=(i=r.props.padding)!=null?i:r.props.paddingTop)!=null?c:0,o=(h=(u=r.props.padding)!=null?u:r.props.paddingBottom)!=null?h:0;return a.jsx("div",{ref:n,style:{...e,height:"".concat(parseFloat(e.height)+s+o,"px")},...t})});function KCe(){var i,c;const e=ks(),t=uCe().cursor;if(!t||t.type!=="line")return null;const n=e.indent,r=e.rowHeight*t.index+((c=(i=e.props.padding)!=null?i:e.props.paddingTop)!=null?c:0),s=n*t.level,o=e.renderCursor;return a.jsx(o,{top:r,left:s,indent:n})}const iB=f.forwardRef(function(e,t){const{children:n,...r}=e,s=ks();return a.jsxs("div",{ref:t,...r,onClick:o=>{o.currentTarget===o.target&&s.deselectAll()},children:[a.jsx(GCe,{}),n]})}),GCe=()=>{const e=ks();return a.jsx("div",{style:{height:e.visibleNodes.length*e.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:a.jsx(KCe,{})})};class mw{constructor(t){gt(this,"tree");gt(this,"id");gt(this,"data");gt(this,"level");gt(this,"children");gt(this,"parent");gt(this,"isDraggable");gt(this,"rowIndex");gt(this,"handleClick",t=>{t.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():t.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())});this.tree=t.tree,this.id=t.id,this.data=t.data,this.level=t.level,this.children=t.children,this.parent=t.parent,this.isDraggable=t.isDraggable,this.rowIndex=t.rowIndex}get isRoot(){return this.id===C1}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.tree.closedFolderIds.length>0?!this.tree.closedFolderIds.includes(this.id):this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.tree.closedFolderIds.length>0?this.tree.closedFolderIds.includes(this.id):this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var t;return this.isSelected&&!((t=this.prev)!=null&&t.isSelected)}get isSelectedEnd(){var t;return this.isSelected&&!((t=this.next)!=null&&t.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(t=>t.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var n,r;const t=this.childIndex;return(r=(n=this.parent)==null?void 0:n.children[t+1])!=null?r:null}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(t){this.tree.submit(this,t)}reset(){this.tree.reset()}clone(){return new mw({...this})}edit(){return this.tree.edit(this)}}const C1="ROOT";function lB(e){var s;function t(o,i,c){const u=e.accessId(o),h=new mw({tree:e,data:o,level:i,parent:c,id:u,children:null,isDraggable:e.isDraggable(o),rowIndex:null}),p=e.accessChildren(o);return p&&(h.children=p.map(m=>t(m,i+1,h))),h}const n=new mw({tree:e,id:C1,data:{id:C1},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),r=(s=e.props.data)!=null?s:[];return n.children=r.map(o=>t(o,0,n)),n}function ZCe(e){const t=ks(),n=t.selectedIds,[r,s,o]=tCe(()=>({canDrag:()=>e.isDraggable,type:"NODE",item:()=>{const i=t.isSelected(e.id)?Array.from(n):[e.id];return t.dispatch(Um.dragStart(e.id,i)),{id:e.id}},end:()=>{t.hideCursor();let{parentId:i,index:c,dragIds:u}=t.state.dnd;t.canDrop()&&(U$(t.props.onMove,{dragIds:u,parentId:i===C1?null:i,index:c,dragNodes:t.dragNodes,parentNode:t.get(i)}),t.open(i)),t.dispatch(Um.dragEnd())}}),[n,e]);return f.useEffect(()=>{o(qCe())},[o]),s}function QCe(e,t){const n=ks(),[r,s]=T$(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,i)=>{const c=i.getClientOffset();if(!e.current||!c)return;const{cursor:u,drop:h}=G$({element:e.current,offset:c,indent:n.indent,node:t,prevNode:t.prev,nextNode:t.next});h&&n.dispatch(Um.hovering(h.parentId,h.index)),i.canDrop()?u&&n.showCursor(u):n.hideCursor()},drop:(o,i)=>{if(!i.canDrop())return null}}),[t,e.current,n.props]);return s}function JCe(e){const t=ks(),n=t.at(e);if(!n)throw new Error("Could not find node for index: ".concat(e));return f.useMemo(()=>{const r=n.clone();return t.visibleNodes[e]=r,r},[...Object.values(n.state),n])}const cB=f.memo(function({index:e,style:t}){gN(),dCe();const n=ks(),r=JCe(e),s=f.useRef(null),o=ZCe(r),i=QCe(s,r),c=f.useCallback(b=>{s.current=b,i(b)},[i]),u=n.indent*r.level,h=f.useMemo(()=>({paddingLeft:u}),[u]),p=f.useMemo(()=>{var b,g;return{...t,top:parseFloat(t.top)+((g=(b=n.props.padding)!=null?b:n.props.paddingTop)!=null?g:0)}},[t,n.props.padding,n.props.paddingTop]),m={role:"treeitem","aria-level":r.level,"aria-selected":r.isSelected,style:p,tabIndex:-1,className:n.props.rowClassName};f.useEffect(()=>{var b;!r.isEditing&&r.isFocused&&((b=s.current)==null||b.focus({preventScroll:!0}))},[r.isEditing,r.isFocused,s.current]);const x=n.renderNode,C=n.renderRow;return a.jsx(C,{node:r,innerRef:c,attrs:m,children:a.jsx(x,{node:r,tree:n,style:h,dragHandle:o})},r.id)});let jN="",dB=null;function uB(){gN();const e=ks();return a.jsx("div",{style:{width:e.width,minHeight:0,minWidth:0},onContextMenu:e.props.onContextMenu,onClick:e.props.onClick,tabIndex:0,onFocus:t=>{t.currentTarget.contains(t.relatedTarget)||e.onFocus()},onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||e.onBlur()},onKeyDown:t=>{var r;if(e.isEditing)return;if(t.key==="Backspace"){if(!e.props.onDelete)return;const s=Array.from(e.selectedIds);if(s.length>1){let o=e.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=e.lastNode),e.focus(o,{scroll:!1}),e.delete(Array.from(s))}else{const o=e.focusedNode;if(o){const i=o.nextSibling,c=o.parent;e.focus(i||c,{scroll:!1}),e.delete(o)}}return}if(t.key==="Tab"&&!t.shiftKey){t.preventDefault(),$$(t.currentTarget);return}if(t.key==="Tab"&&t.shiftKey){t.preventDefault(),B$(t.currentTarget);return}if(t.key==="ArrowDown"){t.preventDefault();const s=e.nextNode;if(t.metaKey){e.select(e.focusedNode),e.activate(e.focusedNode);return}else if(!t.shiftKey||e.props.disableMultiSelection){e.focus(s);return}else{if(!s)return;const o=e.focusedNode;o?o.isSelected?e.selectContiguous(s):e.selectMulti(s):e.focus(e.firstNode);return}}if(t.key==="ArrowUp"){t.preventDefault();const s=e.prevNode;if(!t.shiftKey||e.props.disableMultiSelection){e.focus(s);return}else{if(!s)return;const o=e.focusedNode;o?o.isSelected?e.selectContiguous(s):e.selectMulti(s):e.focus(e.lastNode);return}}if(t.key==="ArrowRight"){const s=e.focusedNode;if(!s)return;s.isInternal&&s.isOpen?e.focus(e.nextNode):s.isInternal&&e.open(s.id);return}if(t.key==="ArrowLeft"){const s=e.focusedNode;if(!s||s.isRoot)return;s.isInternal&&s.isOpen?e.close(s.id):(r=s.parent)!=null&&r.isRoot||e.focus(s.parent);return}if(t.key==="a"&&t.metaKey&&!e.props.disableMultiSelection){t.preventDefault(),e.selectAll();return}if(t.key==="a"&&!t.metaKey&&e.props.onCreate){e.createLeaf();return}if(t.key==="A"&&!t.metaKey){if(!e.props.onCreate)return;e.createInternal();return}if(t.key==="Home"){t.preventDefault(),e.focus(e.firstNode);return}if(t.key==="End"){t.preventDefault(),e.focus(e.lastNode);return}if(t.key==="Enter"){const s=e.focusedNode;if(!s||!s.isEditable||!e.props.onRename)return;setTimeout(()=>{s&&e.edit(s)});return}if(t.key===" "){t.preventDefault();const s=e.focusedNode;if(!s)return;s.isLeaf?(s.select(),s.activate()):s.toggle();return}if(t.key==="*"){const s=e.focusedNode;if(!s)return;e.openSiblings(s);return}if(t.key==="PageUp"){t.preventDefault(),e.pageUp();return}t.key==="PageDown"&&(t.preventDefault(),e.pageDown()),clearTimeout(dB),jN+=t.key,dB=setTimeout(()=>{jN=""},300);const n=e.visibleNodes.find(s=>{const o=s.data.name;return typeof o=="string"?o.toLowerCase().includes(jN.toLowerCase()):!1});n&&e.focus(n.id)},children:a.jsx(xH,{className:e.props.className,outerRef:e.listEl,itemCount:e.visibleNodes.length,height:e.visibleNodes.length*e.rowHeight,width:e.width,itemSize:e.rowHeight,overscanCount:e.overscanCount,itemKey:t=>{var n;return((n=e.visibleNodes[t])==null?void 0:n.id)||t},outerElementType:iB,innerElementType:oB,onScroll:e.props.onScroll,onItemsRendered:e.onItemsRendered.bind(e),ref:e.list,children:cB})})}const XCe={display:"flex",alignItems:"center",zIndex:1},e3e={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},t3e={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},n3e=dt.memo(function({top:e,left:t,indent:n}){const r={position:"absolute",pointerEvents:"none",top:e-2+"px",left:t+"px",right:n+"px"};return a.jsxs("div",{style:{...XCe,...r},children:[a.jsx("div",{style:{...t3e}}),a.jsx("div",{style:{...e3e}})]})});function r3e(e){return a.jsxs("div",{ref:e.dragHandle,style:e.style,children:[a.jsx("span",{onClick:t=>{t.stopPropagation(),e.node.toggle()},children:e.node.isLeaf?"\u{1F333}":e.node.isOpen?"\u{1F5C1}":"\u{1F5C0}"})," ",e.node.isEditing?a.jsx(s3e,{...e}):a.jsx(a3e,{...e})]})}function a3e(e){return a.jsx(a.Fragment,{children:a.jsx("span",{children:e.node.data.name})})}function s3e({node:e}){const t=f.useRef();return f.useEffect(()=>{var n,r;(n=t.current)==null||n.focus(),(r=t.current)==null||r.select()},[]),a.jsx("input",{ref:t,defaultValue:e.data.name,onBlur:()=>e.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&e.reset(),n.key==="Enter"&&e.submit(((r=t.current)==null?void 0:r.value)||"")}})}function o3e({node:e,attrs:t,innerRef:n,children:r}){return a.jsx("div",{...t,ref:n,onFocus:s=>s.stopPropagation(),onClick:e.handleClick,children:r})}const hB=e=>e.reduce((t,n,r)=>(t[n.id]=r,t),{});function pB(e){return e.isFiltered?l3e(e.root,e.isMatch.bind(e)):i3e(e.root)}function i3e(e){const t=[];function n(r){var s;r.level>=0&&t.push(r),r.isOpen&&((s=r.children)==null||s.forEach(n))}return n(e),t.forEach(mB),t}function l3e(e,t){const n={},r=[];function s(i){if(!i.isRoot&&t(i)){n[i.id]=!0;let c=i.parent;for(;c;)n[c.id]=!0,c=c.parent}if(i.children)for(let c of i.children)s(c)}function o(i){var c;i.level>=0&&n[i.id]&&r.push(i),i.isOpen&&((c=i.children)==null||c.forEach(o))}return s(e),o(e),r.forEach(mB),r}function mB(e,t){e.rowIndex=t}function CN(e){return{type:"EDIT",id:e}}function c3e(e={id:null},t){return t.type==="EDIT"?{...e,id:t.id}:e}function qm(e){return{type:"FOCUS",id:e}}function d3e(){return{type:"TREE_BLUR"}}function u3e(e={id:null,treeFocused:!1},t){return t.type==="FOCUS"?{...e,id:t.id,treeFocused:!0}:t.type==="TREE_BLUR"?{...e,treeFocused:!1}:e}const SN={open(e,t){return{type:"VISIBILITY_OPEN",id:e,filtered:t}},close(e,t){return{type:"VISIBILITY_CLOSE",id:e,filtered:t}},toggle(e,t){return{type:"VISIBILITY_TOGGLE",id:e,filtered:t}},clear(e){return{type:"VISIBILITY_CLEAR",filtered:e}}};function fB(e={},t){if(t.type==="VISIBILITY_OPEN")return{...e,[t.id]:!0};if(t.type==="VISIBILITY_CLOSE")return{...e,[t.id]:!1};if(t.type==="VISIBILITY_TOGGLE"){const n=e[t.id];return{...e,[t.id]:!n}}else return t.type==="VISIBILITY_CLEAR"?{}:e}function h3e(e={filtered:{},unfiltered:{}},t){return t.type.startsWith("VISIBILITY")?t.filtered?{...e,filtered:fB(e.filtered,t)}:{...e,unfiltered:fB(e.unfiltered,t)}:e}const ei={clear:()=>({type:"SELECTION_CLEAR"}),only:e=>({type:"SELECTION_ONLY",id:hh(e)}),add:e=>({type:"SELECTION_ADD",ids:(Array.isArray(e)?e:[e]).map(hh)}),remove:e=>({type:"SELECTION_REMOVE",ids:(Array.isArray(e)?e:[e]).map(hh)}),set:e=>({type:"SELECTION_SET",...e}),mostRecent:e=>({type:"SELECTION_MOST_RECENT",id:e===null?null:hh(e)}),anchor:e=>({type:"SELECTION_ANCHOR",id:e===null?null:hh(e)})};function p3e(e=k1().nodes.selection,t){const n=e.ids;switch(t.type){case"SELECTION_CLEAR":return{...e,ids:new Set};case"SELECTION_ONLY":return{...e,ids:new Set([t.id])};case"SELECTION_ADD":return t.ids.length===0?e:(t.ids.forEach(r=>n.add(r)),{...e,ids:new Set(n)});case"SELECTION_REMOVE":return t.ids.length===0?e:(t.ids.forEach(r=>n.delete(r)),{...e,ids:new Set(n)});case"SELECTION_SET":return{...e,ids:t.ids,mostRecent:t.mostRecent,anchor:t.anchor};case"SELECTION_MOST_RECENT":return{...e,mostRecent:t.id};case"SELECTION_ANCHOR":return{...e,anchor:t.id};default:return e}}const{safeRun:xa,identify:ic,identifyNull:ti}=SCe,df=class df{constructor(t,n,r,s){gt(this,"root");gt(this,"visibleNodes");gt(this,"visibleStartIndex",0);gt(this,"visibleStopIndex",0);gt(this,"idToIndex");this.store=t,this.props=n,this.list=r,this.listEl=s,this.root=lB(this),this.visibleNodes=pB(this),this.idToIndex=hB(this.visibleNodes)}update(t){this.props=t,this.root=lB(this),this.visibleNodes=pB(this),this.idToIndex=hB(this.visibleNodes)}dispatch(t){return this.store.dispatch(t)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var t;return(t=this.props.width)!=null?t:"100%"}get closedFolderIds(){var t;return(t=this.props.closedFolderItemIds)!=null?t:[]}get height(){var t;return(t=this.props.height)!=null?t:1500}get indent(){var t;return(t=this.props.indent)!=null?t:24}get rowHeight(){var t;return(t=this.props.rowHeight)!=null?t:26}get overscanCount(){var t;return(t=this.props.overscanCount)!=null?t:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var n;const t=(n=this.props.searchMatch)!=null?n:(r,s)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(s.toLocaleLowerCase());return r=>t(r,this.searchTerm)}accessChildren(t){var r;const n=this.props.childrenAccessor||"children";return(r=j1(t,n))!=null?r:null}accessId(t){const n=this.props.idAccessor||"id",r=j1(t,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var t;return(t=this.visibleNodes[0])!=null?t:null}get lastNode(){var t;return(t=this.visibleNodes[this.visibleNodes.length-1])!=null?t:null}get focusedNode(){var t;return(t=this.get(this.state.nodes.focus.id))!=null?t:null}get mostRecentNode(){var t;return(t=this.get(this.state.nodes.selection.mostRecent))!=null?t:null}get nextNode(){const t=this.indexOf(this.focusedNode);return t===null?null:this.at(t+1)}get prevNode(){const t=this.indexOf(this.focusedNode);return t===null?null:this.at(t-1)}get(t){return t&&t in this.idToIndex&&this.visibleNodes[this.idToIndex[t]]||null}at(t){return this.visibleNodes[t]||null}nodesBetween(t,n){var c;if(t===null||n===null)return[];const r=(c=this.indexOf(t))!=null?c:0,s=this.indexOf(n);if(s===null)return[];const o=Math.min(r,s),i=Math.max(r,s);return this.visibleNodes.slice(o,i+1)}indexOf(t){const n=V$(t);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}async create(t={}){var i,c;const n=t.parentId===void 0?K$(this):t.parentId,r=(i=t.index)!=null?i:Y$(this),s=(c=t.type)!=null?c:"leaf",o=await xa(this.props.onCreate,{type:s,parentId:n,index:r,parentNode:this.get(n)});o&&(this.focus(o),setTimeout(()=>{this.edit(o).then(()=>{this.select(o),this.activate(o)})}))}async delete(t){if(!t)return;const n=(Array.isArray(t)?t:[t]).map(ic),r=n.map(s=>this.get(s)).filter(s=>!!s);await xa(this.props.onDelete,{nodes:r,ids:n})}edit(t){const n=ic(t);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(CN(n)),new Promise(r=>{df.editPromise=r})}async submit(t,n){if(!t)return;const r=ic(t);await xa(this.props.onRename,{id:r,name:n,node:this.get(r)}),setTimeout(()=>{this.focus(this.get(r)),this.dispatch(CN(null)),this.resolveEdit({cancelled:!1,value:n}),this.onFocus()},300)}reset(){this.dispatch(CN(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(t){const n=this.get(ti(t));n&&xa(this.props.onActivate,n)}resolveEdit(t){const n=df.editPromise;n&&n(t),df.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let t=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&t.push(r)}return t}focus(t,n={}){t&&(this.props.selectionFollowsFocus?this.select(t):(this.dispatch(qm(ic(t))),n.scroll!==!1&&this.scrollTo(t),this.focusedNode&&xa(this.props.onFocus,this.focusedNode)))}pageUp(){var s,o;const t=this.visibleStartIndex,n=this.visibleStopIndex-t;let r=(o=(s=this.focusedNode)==null?void 0:s.rowIndex)!=null?o:0;r>t?r=t:r=Math.max(t-n,0),this.focus(this.at(r))}pageDown(){var o,i;const t=this.visibleStartIndex,n=this.visibleStopIndex,r=n-t;let s=(i=(o=this.focusedNode)==null?void 0:o.rowIndex)!=null?i:0;s<n?s=n:s=Math.min(s+r,this.visibleNodes.length-1),this.focus(this.at(s))}select(t,n={}){if(!t)return;const r=n.focus!==!1,s=ic(t);r&&this.dispatch(qm(s)),this.dispatch(ei.only(s)),this.dispatch(ei.anchor(s)),this.dispatch(ei.mostRecent(s)),this.scrollTo(s,n.align),this.focusedNode&&r&&xa(this.props.onFocus,this.focusedNode),xa(this.props.onSelect,this.selectedNodes)}deselect(t){if(!t)return;const n=ic(t);this.dispatch(ei.remove(n)),xa(this.props.onSelect,this.selectedNodes)}selectMulti(t){const n=this.get(ti(t));n&&(this.dispatch(qm(n.id)),this.dispatch(ei.add(n.id)),this.dispatch(ei.anchor(n.id)),this.dispatch(ei.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&xa(this.props.onFocus,this.focusedNode),xa(this.props.onSelect,this.selectedNodes))}selectMultiId(t){const n=this.get(ti(t));n&&this.dispatch(ei.add(n.id))}selectContiguous(t){if(!t)return;const n=ic(t),{anchor:r,mostRecent:s}=this.state.nodes.selection;this.dispatch(qm(n)),this.dispatch(ei.remove(this.nodesBetween(r,s))),this.dispatch(ei.add(this.nodesBetween(r,ti(n)))),this.dispatch(ei.mostRecent(n)),this.scrollTo(n),this.focusedNode&&xa(this.props.onFocus,this.focusedNode),xa(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),xa(this.props.onSelect,this.selectedNodes)}setSelectIds(t){this.setSelection({ids:t,anchor:null,mostRecent:null})}selectAll(){var t;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(qm((t=this.lastNode)==null?void 0:t.id)),this.focusedNode&&xa(this.props.onFocus,this.focusedNode),xa(this.props.onSelect,this.selectedNodes)}setSelection(t){var o;const n=new Set((o=t.ids)==null?void 0:o.map(ic)),r=ti(t.anchor),s=ti(t.mostRecent);this.dispatch(ei.set({ids:n,anchor:r,mostRecent:s})),xa(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:t}=this.state.dnd;switch(t.type){case"highlight":return t.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(t=>this.get(t)).filter(t=>!!t)}canDrop(){var s;const t=(s=this.get(this.state.dnd.parentId))!=null?s:this.root,n=this.dragNodes,r=this.props.disableDrop;for(const o of n)if(!o||!t||o.isInternal&&F$(t,o))return!1;return typeof r=="function"?!r({parentNode:t,dragNodes:this.dragNodes,index:this.state.dnd.index}):typeof r=="string"?!t.data[r]:typeof r=="boolean"?!r:!0}hideCursor(){this.dispatch(Um.cursor({type:"none"}))}showCursor(t){this.dispatch(Um.cursor(t))}open(t){const n=ti(t);n&&(this.isOpen(n)||(this.dispatch(SN.open(n,this.isFiltered)),xa(this.props.onFolderOpen,n)))}close(t){const n=ti(t);n&&this.isOpen(n)&&(this.dispatch(SN.close(n,this.isFiltered)),xa(this.props.onFolderClose,n))}toggle(t){const n=ti(t);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(t){var s;const n=ti(t);if(!n)return;let r=(s=vN(this.root,n))==null?void 0:s.parent;for(;r;)this.open(r.id),r=r.parent}openSiblings(t){const n=t.parent;if(!n)this.toggle(t.id);else if(n.children){const r=t.isOpen;for(let s of n.children)s.isInternal&&(r?this.close(s.id):this.open(s.id));this.scrollTo(this.focusedNode)}}openAll(){uw(this.root,t=>{t.isInternal&&t.open()})}closeAll(){uw(this.root,t=>{t.isInternal&&t.close()})}scrollTo(t,n="smart"){if(!t)return;const r=ic(t);return this.openParents(r),q$(()=>r in this.idToIndex).then(()=>{var o;const s=this.idToIndex[r];s!==void 0&&((o=this.list.current)==null||o.scrollToItem(s,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var t;return!!((t=this.props.searchTerm)!=null&&t.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(t){return t?this.state.nodes.selection.ids.has(t):!1}isOpen(t){var r,s,o;if(!t)return!1;if(t===C1)return!0;const n=(r=this.props.openByDefault)!=null?r:!0;return this.isFiltered?(s=this.state.nodes.open.filtered[t])!=null?s:!0:(o=this.state.nodes.open.unfiltered[t])!=null?o:n}isEditable(t){const n=this.props.disableEdit||(()=>!1);return!j1(t,n)}isDraggable(t){const n=this.props.disableDrag||(()=>!1);return!j1(t,n)}isDragging(t){const n=ti(t);return n?this.state.nodes.drag.id===n:!1}isFocused(t){return this.hasFocus&&this.state.nodes.focus.id===t}isMatch(t){return this.matchFn(t)}willReceiveDrop(t){const n=ti(t);return n?n===this.state.nodes.drag.idWillReceiveDrop:!1}onSearchClear(){var t,n;(n=(t=this.props).onSearchClear)==null||n.call(t)}onFocus(){const t=this.focusedNode||this.firstNode;t&&this.dispatch(qm(t.id))}onBlur(){this.dispatch(d3e())}onItemsRendered(t){this.visibleStartIndex=t.visibleStartIndex,this.visibleStopIndex=t.visibleStopIndex}get renderContainer(){return this.props.renderContainer||uB}get renderRow(){return this.props.renderRow||o3e}get renderNode(){return this.props.children||r3e}get renderDragPreview(){return this.props.renderDragPreview||P$}get renderCursor(){return this.props.renderCursor||n3e}};gt(df,"editPromise");let EN=df;function m3e(e={id:null,idWillReceiveDrop:null},t){switch(t.type){case"DND_DRAG_START":return{...e,id:t.id};case"DND_DRAG_END":return{...e,id:null};case"DND_CURSOR":const n=t.cursor;return n.type==="highlight"&&n.id!==e.idWillReceiveDrop?{...e,idWillReceiveDrop:n.id}:n.type!=="highlight"&&e.idWillReceiveDrop!==null?{...e,idWillReceiveDrop:null}:e;default:return e}}const f3e=h$({nodes:h$({focus:u3e,edit:c3e,open:h3e,selection:p3e,drag:m3e}),dnd:bCe}),g3e=k1();function v3e({treeProps:e,imperativeHandle:t,children:n}){const r=f.useRef(null),s=f.useRef(null),o=f.useRef(nN(f3e,k1(e))),i=$I.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>g3e),c=f.useMemo(()=>new EN(o.current,e,r,s),[]),u=f.useRef(0);return f.useMemo(()=>{u.current+=1,c.update(e)},[...Object.values(e),i.nodes.open]),f.useImperativeHandle(t,()=>c),f.useEffect(()=>{c.props.selection?c.select(c.props.selection,{focus:!1}):c.deselectAll()},[c.props.selection]),f.useEffect(()=>{c.props.selectedIds&&c.props.selectedIds.length>0?c.setSelectIds(c.props.selectedIds):c.deselectAll()},[c.props.selectedIds]),f.useEffect(()=>{c.props.searchTerm||o.current.dispatch(SN.clear(!0))},[c.props.searchTerm]),a.jsx(M$.Provider,{value:c,children:a.jsx(O$.Provider,{value:u.current,children:a.jsx(L$.Provider,{value:i.nodes,children:a.jsx(D$.Provider,{value:i.dnd,children:a.jsx(Lje,{backend:YCe,options:{rootElement:c.props.dndRootElement||void 0},...e.dndManager&&{manager:e.dndManager},children:n})})})})})}function y3e(){const e=ks().props.renderContainer||uB;return a.jsx(a.Fragment,{children:a.jsx(e,{})})}function x3e(e,t){const n=m5e(e);return a.jsxs(v3e,{treeProps:n,imperativeHandle:t,children:[a.jsx(LCe,{children:a.jsx(y3e,{})}),a.jsx(xCe,{})]})}const b3e=f.forwardRef(x3e);function gB(){const[e,t]=f.useState([]);return f.useMemo(()=>new l$(e),[e]),{data:e,setData:t}}function vB({children:e}){const{currentCollectionId:t,collections:n}=ut(hr),{selectCollectionById:r}=z4(),s=ts(),{t:o}=wt(),{isShowDisabledCollectionsOnNavBarMenu:i}=ut(Nr);return a.jsxs(Nn,{children:[a.jsx(_n,{className:"flex m-0 p-0",asChild:!0,children:e}),a.jsxs(Cn,{forceMount:!0,sideOffset:8,align:"center",children:[a.jsx(Oe,{disabled:!0,className:"flex justify-center py-0.5",children:o("Switch collections",{ns:"collections"})}),a.jsx(Yt,{}),a.jsx(An,{className:"code-filter",style:{height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},autoHide:!1,children:a.jsx(Yde,{value:t!=null?t:"",children:n.filter(({isEnabled:c})=>i||c).sort((c,u)=>{if(i){if(c.isEnabled&&!u.isEnabled)return-1;if(!c.isEnabled&&u.isEnabled)return 1}return c.createdAt-u.createdAt}).map(({collectionId:c,isEnabled:u,title:h,isSelected:p})=>a.jsx(FO,{value:c,disabled:!u,onClick:()=>{r({selectCollection:{collectionId:c}})},children:a.jsx("span",{className:p?"font-semibold":"",children:h})},c))})}),a.jsx(Yt,{}),a.jsxs(Oe,{onClick:()=>{s("/app-settings/collections",{replace:!0})},children:[a.jsx(Tu,{className:"mr-2",size:14}),o("Manage Collections",{ns:"collections"})]})]})]})}const w3e="_node_1usvv_1",k3e="_dropCursor_1usvv_55",j3e="_mainContent_1usvv_61",C3e="_mobileWarning_1usvv_68",S3e="_content_1usvv_83",E3e="_sidebar_1usvv_89",yB={node:w3e,dropCursor:k3e,mainContent:j3e,mobileWarning:C3e,content:S3e,sidebar:E3e};function N3e({top:e,left:t}){return a.jsx("div",{className:dn(yB.dropCursor,"border-slate-400 border-dashed border-t-2"),style:{top:e-1,left:t}})}const _3e={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},I3e=e=>{if(!e)return{display:"none"};const{x:t,y:n}=e;return{transform:"translate(".concat(t,"px, ").concat(n,"px)")}},T3e=e=>{if(!e)return{display:"none"};const{x:t,y:n}=e;return{transform:"translate(".concat(t+10,"px, ").concat(n+10,"px)")}},M3e=f.memo(function(e){return e.isDragging?a.jsx("div",{style:_3e,children:e.children}):null});function L3e(e){return a.jsx("div",{className:"row preview",style:I3e(e.offset),children:e.children})}function D3e(e){const{count:t,mouse:n}=e;return t>1?a.jsx("div",{className:"selected-count",style:T3e(n),children:t}):null}const O3e=f.memo(function(e){const t=ks(),n=t.get(e.id);return n?a.jsx(t.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*t.indent,opacity:.5,background:"transparent"},tree:t}):null});function P3e({offset:e,mouse:t,id:n,dragIds:r,isDragging:s}){return a.jsxs(M3e,{isDragging:s,children:[a.jsx(L3e,{offset:e,children:a.jsx(O3e,{id:n,dragIds:r})}),a.jsx(D3e,{mouse:t,count:r.length})]})}function R3e({node:e}){return a.jsx(rd,{autoFocus:!0,type:"text",classNameInput:"border-0 text-[15px] w-full bg-transparent p-0",className:"!justify-start pl-1 border-0",defaultValue:e.data.name,onFocus:t=>t.currentTarget.select(),onBlur:()=>e.reset(),onKeyDown:t=>{t.key==="Escape"&&e.reset(),t.key==="Enter"&&e.submit(t.currentTarget.value)}})}function A3e({node:e,style:t,dragHandle:n}){const{t:r}=wt();return a.jsxs("div",{ref:n,style:t,className:dn(yB.node,e.state,"flex items-center w-full transition-all duration-100 ease-in"),onClick:()=>e.isInternal&&e.toggle(),children:[e.level>0&&a.jsx("div",{}),a.jsxs("div",{children:[!e.isLeaf&&!e.isOpen&&a.jsx(Op,{width:17,height:17,className:"mr-2"}),!e.isLeaf&&e.isOpen&&a.jsx(nL,{width:17,height:17,className:"mr-2"})]}),a.jsx("div",{className:"flex items-center justify-start w-full overflow-hidden mr-4",children:e.data.isSeparator?a.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-70 w-full"}):a.jsx(a.Fragment,{children:e.isEditing?a.jsx(R3e,{node:e}):a.jsxs("div",{className:"overflow-hidden overflow-ellipsis text-[15px] ".concat(e.data.isDisabled?"text-gray-500/60":""," "),children:[e.data.name,e.data.isClip&&a.jsx("div",{title:r("Menu is a link to a clip",{ns:"menus"}),className:"inline-block",children:a.jsx(tg,{size:13,className:"inline ml-2 mt-[-3px] dark:text-slate-500 text-slate-400"})})]})})}),a.jsx(z3e,{node:e})]})}function z3e({node:e}){return e.isLeaf?a.jsx("div",{}):e.isOpen?a.jsx(jn,{width:22,className:"mr-3"}):a.jsx(Lp,{width:22,className:"mr-3"})}function F3e({node:e,attrs:t,innerRef:n,children:r}){const s=NN.value===e.id,{t:o}=wt();return f.createElement("div",{...t,key:e.id,onMouseEnter:()=>{NN.value=e.id},onMouseLeave:()=>{NN.value=null},ref:n,className:"".concat(s?"bg-slate-100/90 dark:bg-gray-900/90":""," ").concat(e.isEditing?"border border-blue-400 dark:!bg-slate-900":""," ").concat(e.data.isActive?"":"not-active-background ".concat(e.isEditing?"dark:text-slate-800 bg-slate-800":"line-through dark:text-slate-600 text-slate-400"," dark:bg-slate-900 bg-slate-200")," ").concat(e.isSelected&&!e.isEditing?"dark:!bg-slate-600 dark:!text-slate-50":""," transition-all overflow-hidden"),onFocus:i=>i.stopPropagation(),onClick:e.handleClick,onDoubleClickCapture:()=>{if(!e.isEditing){if(e.data.isClip){Wi(o("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}e.edit()}},onKeyDown:i=>{if(e.data.isClip){i.stopPropagation(),Wi(o("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}i.key==="Enter"&&e.edit()}},r)}function H3e(){const{t:e}=wt();gN();const t=ks();return a.jsxs("div",{style:{width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,children:[t.isFiltered&&a.jsx("div",{className:"text-slate-400 text-sm rounded-sm mb-1 mt-1 flex items-center justify-center",children:a.jsx(De,{text:e("Clear found results",{ns:"common"}),className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{t.onSearchClear()},sideOffset:5,children:a.jsx(X,{className:"text-xs text-center bg-blue-200 rounded-full px-3 cursor-pointer pointer-events-auto",children:t.visibleNodes.length?a.jsxs(a.Fragment,{children:[t.visibleNodes.length<100?t.visibleNodes.length:"100+"," ",e("found",{ns:"common"})]}):a.jsx(a.Fragment,{children:e("Nothing found",{ns:"common"})})})})}),a.jsx(xH,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.visibleNodes.length*t.rowHeight,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:n=>{var r;return((r=t.visibleNodes[n])==null?void 0:r.id)||n},outerElementType:iB,innerElementType:oB,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:cB})]})}const NN=It(null);function $3e({itemId:e,isExpanded:t,isActive:n,isDisabled:r,isSeparator:s,isCode:o,isImage:i,isImageData:c,isLink:u,isMasked:h,isPath:p,hasMaskedWords:m,hasEmoji:x,isFolder:C,isVideo:b,isDelete:g,detectedLanguage:k,imagePathFullRes:j,imageDataUrl:S,imageHash:E,imageWidthHeight:N,imageType:T,arrLinks:M,isCopyOrPaste:L,pathType:D,menuName:P,isDark:A,value:B=""}){const{t:z}=wt(),R=ea(!1),{valuePreview:$,morePreviewLines:_,morePreviewChars:U}=HS(B),K=B==null?void 0:B.trim(),W=ea(!1),G=ea(""),{metadataLinkByItemId:Z}=Sg(u,e),F=u&&!!(Z!=null&&Z.linkTitle&&(Z!=null&&Z.linkDomain));f.useEffect(()=>{t.value&&(R.value=!1)},[t.value]),f.useEffect(()=>{p&&vn("check_path",{path:K}).then(()=>{G.value=D}).catch(()=>{G.value="Error"})},[p]);const V=K.length===0;return a.jsxs(Ku,{className:dn(L?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900",g&&"!bg-red-50 dark:!bg-red-900","px-3 pr-2 py-1.5 text-left flex flex-col select-auto relative rounded-md"),children:[a.jsx(J,{className:"mb-0.5 ".concat(n?"":"opacity-40"),children:p?a.jsx(Vg,{theme:A?Ni.vsDark:Ni.github,code:K,language:"path",children:({className:q,style:ne,tokens:Q,getLineProps:ae,getTokenProps:re})=>a.jsx("code",{className:"".concat(q," ").concat(G.value==="Error"?" line-through decoration-gray-300":""),style:ne,children:Q.map((le,oe)=>a.jsx("div",{...ae({line:le}),className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:le.map((ie,de)=>a.jsx("span",{...re({token:ie}),className:"".concat(G.value==="Error"?"opacity-60":""," select-text"),children:ie.content},de))},oe))})}):c?a.jsxs(J,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[a.jsx(J,{className:"flex px-0 py-1 items-center justify-center",children:a.jsx(_i,{src:K,hasError:W.value,onErrorCallback:()=>{W.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),a.jsx("code",{className:"pb-0.5 select-none",children:$})]}):u&&i?a.jsxs(J,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[a.jsx(J,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:a.jsx(_i,{src:mr(K),hasError:W.value,onErrorCallback:()=>{W.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),a.jsx("code",{className:"pb-0.5",children:Yu(K,M!=null?M:"")})]}):i?a.jsxs(J,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[a.jsx("img",{src:j&&(T==="webp"||T==="gif")?"".concat(iu(j),"?").concat(E):S&&j?S:!S&&!j?Gu:$g,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),a.jsx(J,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:a.jsxs(J,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:z("Image size in pixels",{ns:"common"}),children:[N," ",T]})})]}):k&&o&&$?a.jsx(J,{className:"text-ellipsis self-start text-sm w-full select-text",children:a.jsx(es,{isDark:A,isLargeView:!1,isShowMore:t.value||_==null,isWrapped:R.value,value:t.value?K:$,language:k})}):V?a.jsx(J,{className:"mb-0.5",children:a.jsx(jg,{className:"self-start text-sm font-normal select-text !text-gray-400",children:P})}):a.jsx(v2,{isExpanded:t.value,isWrapped:R.value,isImageData:c,isLargeView:!1,isCode:o,isMasked:h,isImage:i,isDark:A,trimmedValue:K,valuePreview:$,hasLinkCard:F,metadataLinkByItemId:Z,metadataLinkImageWidth:12,morePreviewLines:_,searchTerm:""})}),a.jsxs(fe,{className:"justify-between select-none",children:[(_||U)&&n&&!r?a.jsxs(J,{className:"flex flex-row items-center rounded",children:[a.jsx(J,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{t.value=!t.value},children:a.jsx(De,{text:t.value?"":z("Show all",{ns:"common"}),isCompact:!0,isDisabled:t.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:t.value?a.jsxs(a.Fragment,{children:["- ",z("show less",{ns:"common"})]}):U?a.jsxs(a.Fragment,{children:["+",U," ",z("chars",{ns:"common"})]}):_&&a.jsxs(a.Fragment,{children:["+",_," ",z("lines",{ns:"common"})]})})}),a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{R.value=!R.value},children:a.jsx(De,{text:R.value?z("No Wrap",{ns:"common"}):z("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:R.value?a.jsx(km,{width:20,height:20}):a.jsx(jm,{width:20,height:20})})})]}):n?r?a.jsx(J,{className:"bg-gray-200 text-gray-700 dark:bg-gray-600 dark:text-gray-300 text-xs rounded-sm px-1.5",children:z("Disabled",{ns:"common"})}):a.jsx(J,{}):a.jsx(J,{className:"bg-gray-200 text-gray-700 dark:bg-gray-600 dark:text-gray-300 text-xs rounded-sm px-1.5",children:z("Inactive",{ns:"common"})}),a.jsxs(J,{className:"flex flex-row gap-1 items-center justify-end ",children:[V&&!s&&!C&&!i?a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:z("Type:::Empty",{ns:"common"})}),a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:z("Type:::Label",{ns:"common"})})]}):s?a.jsx(J,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400v text-xs rounded-sm px-1.5",children:z("Type:::Separator",{ns:"common"})}):C?a.jsx(J,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:z("Type:::Submenu",{ns:"common"})}):i?a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:z("Type:::Image",{ns:"common"})}):k?a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:k}):h||m?a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(m?"px-0.5":"px-1.5"),children:h?z("Type:::Secret",{ns:"common"}):a.jsx(Al,{size:16})}):c?a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:z("Type:::Image Base64",{ns:"common"})}):!u&&!p&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:z("Type:::Text",{ns:"common"})}),u?a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:b?z("Type:::Video",{ns:"common"}):Jl(K)?z("Type:::Email",{ns:"common"}):z("Type:::Link",{ns:"common"})}):p&&G.value?a.jsx(J,{className:"".concat(G.value==="Error"?"bg-red-300 dark:bg-red-800":" text-slate-700 dark:bg-slate-600"," dark:text-slate-300 bg-slate-200 text-xs rounded-sm px-1.5"),children:G.value==="Error"?a.jsx(De,{text:z("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-slate-300 bg-red-50 dark:!bg-red-800 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:G.value}):G.value}):x&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:z("Emoji",{ns:"common"})})]})]})]})}function xB({arrLinks:e=[],clipId:t,detectedLanguage:n,hasEmoji:r,hasMaskedWords:s,imageDataUrl:o,imageHash:i,imagePathFullRes:c,imageType:u,imageWidthHeight:h,isCode:p,isCommand:m,isWebRequest:x,isWebScraping:C,isExpanded:b,isImage:g,isImageData:k,isLargeView:j,isLink:S,isForm:E,isTemplate:N,isMasked:T,isPath:M,isVideo:L,isCopyOrPaste:D,isDark:P,isDelete:A,clipName:B,formTemplateOptions:z,commandRequestOutput:R,isCommandRequestRunError:$,commandRequestOutputLastRunAt:_,requestOptions:U,pathType:K,value:W=""}){var xe,je,Ee;const{t:G}=wt(),Z=ea(!1),F=ea(!1),V=ea(""),{metadataLinkByItemId:q}=Sg(S,t),ne=S&&!!(q!=null&&q.linkTitle&&(q!=null&&q.linkDomain)),Q=ea({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:ae,morePreviewLines:re,morePreviewChars:le}=HS(W,g||k,j||S||M||m||x||C);f.useEffect(()=>{if(U)try{const Te=JSON.parse(U);Q.value={...Q.value,...Te}}catch{}},[U]);const oe=W==null?void 0:W.trim();f.useEffect(()=>{b.value&&(F.value=!1)},[b.value]),f.useEffect(()=>{M&&Sa("check_path",{path:oe}).then(()=>{V.value=K}).catch(()=>{V.value="Error"})},[M]);const ie=j?"max-h-[600px]":"max-h-[300px]",de=oe.length===0;return a.jsxs(Ku,{className:dn(D?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900","px-3 pr-2 py-1.5 mx-1 text-left flex flex-col select-auto relative rounded-md",A&&"!bg-red-50 dark:!bg-red-900"),children:[a.jsx(J,{className:"mb-0.5",children:M?a.jsx(Vg,{theme:P?Ni.vsDark:Ni.github,code:oe,language:"path",children:({className:Te,style:Me,tokens:ze,getLineProps:qe,getTokenProps:Ye})=>a.jsx("code",{className:"".concat(Te," ").concat(V.value==="Error"?" line-through decoration-gray-300":""),style:Me,children:ze.map((Ve,Lt)=>a.jsx("div",{...qe({line:Ve}),className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:Ve.map(($e,st)=>a.jsx("span",{...Ye({token:$e}),className:"".concat(V.value==="Error"?"opacity-60":""," select-text"),children:$e.content},st))},Lt))})}):k?a.jsxs(J,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[a.jsx(J,{className:"flex px-0 py-1 items-center justify-center",children:a.jsx(_i,{src:oe,hasError:Z.value,onErrorCallback:()=>{Z.value=!0},draggable:!1,decoding:"async",className:"".concat(ie," min-h-10")})}),a.jsx("code",{className:"pb-0.5 select-none",children:ae})]}):S&&g?a.jsxs(J,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[a.jsx(J,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:a.jsx(_i,{src:mr(oe),hasError:Z.value,onErrorCallback:()=>{Z.value=!0},draggable:!1,decoding:"async",className:"".concat(ie," min-h-10")})}),a.jsx("code",{className:"pb-0.5",children:Yu(oe,e)})]}):g?a.jsxs(J,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[a.jsx("img",{src:c&&(u==="webp"||u==="gif")?"".concat(iu(c),"?").concat(i):o&&c?o:!o&&!c?Gu:$g,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),a.jsx(J,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:a.jsxs(J,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:G("Image size in pixels",{ns:"common"}),children:[h," ",u]})})]}):n&&p&&ae?a.jsx(J,{className:"text-ellipsis self-start text-sm w-full select-text",children:a.jsx(es,{isDark:P,isLargeView:j,isShowMore:b.value||re==null,isWrapped:F.value,value:b.value?oe:ae,language:n})}):m&&ae?a.jsxs(J,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[a.jsx(es,{isDark:P,isLargeView:j,isCommand:!0,isShowMore:!0,isWrapped:F.value,autoHideScrollbar:!0,value:oe,language:"shell"}),R&&a.jsxs(J,{className:"".concat($?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-1 rounded-md px-3 mb-1 relative border"),children:[a.jsx(es,{isDark:P,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:F.value,value:R,language:"shell"}),_&&a.jsx(J,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:a.jsx(De,{text:"".concat(G("Last run",{ns:"dashboard"}),": ").concat(Ju(_,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Hc().format(_,"mini-minute-now",{round:"floor"})})})]})]}):(x||C)&&ae?a.jsxs(J,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[a.jsx(es,{isDark:P,isLargeView:j,isShowMore:!0,isWrapped:F.value,value:oe,autoHideScrollbar:!0,webRequestMethod:x?Q.value.method:"URL",language:"shell"}),R&&a.jsxs(J,{className:"".concat($?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-0 rounded-md px-3 relative mb-1 border"),children:[a.jsx(es,{isDark:P,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:F.value,value:R,language:$?"text":"json"}),_&&a.jsx(J,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:a.jsx(De,{text:"".concat(G("Last run",{ns:"dashboard"}),": ").concat(Ju(_,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Hc().format(_,"mini-minute-now",{round:"floor"})})})]})]}):E?a.jsx(J,{className:"self-start text-sm w-full select-text",children:a.jsx(XA,{formTemplateOptions:z,clipId:t})}):N?a.jsx(J,{className:"self-start text-sm w-full select-text",children:a.jsx(mz,{formTemplateOptions:z,clipId:t,value:W})}):de?a.jsx("code",{className:"text-gray-300",children:B}):a.jsx(v2,{isExpanded:b.value,isWrapped:F.value,isImageData:k,isLargeView:j,isCode:p,isMasked:T,isImage:g,trimmedValue:oe,valuePreview:ae,isDark:P,hasLinkCard:ne,metadataLinkByItemId:q,metadataLinkImageWidth:12,morePreviewLines:re,searchTerm:""})}),a.jsxs(fe,{className:"justify-between select-none",children:[(x||m||C)&&R?a.jsx(J,{className:"flex flex-row items-center rounded",children:a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{F.value=!F.value},children:a.jsx(De,{text:F.value?"No Wrap":"Lines Wrap",delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:F.value?a.jsx(km,{width:20,height:20}):a.jsx(jm,{width:20,height:20})})})}):re||le?a.jsxs(J,{className:"flex flex-row items-center rounded",children:[a.jsx(J,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{b.value=!b.value},children:a.jsx(De,{text:b.value?"":G("Show all",{ns:"common"}),isCompact:!0,isDisabled:b.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:b.value?a.jsxs(a.Fragment,{children:["- ",G("show less",{ns:"common"})]}):le?a.jsxs(a.Fragment,{children:["+",le," ",G("chars",{ns:"common"})]}):re&&a.jsxs(a.Fragment,{children:["+",re," ",G("lines",{ns:"common"})]})})}),a.jsx(J,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{F.value=!F.value},children:a.jsx(De,{text:F.value?G("No Wrap",{ns:"common"}):G("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:F.value?a.jsx(km,{width:20,height:20}):a.jsx(jm,{width:20,height:20})})})]}):a.jsx(J,{}),a.jsxs(J,{className:"flex flex-row gap-1 items-center justify-end ",children:[m&&a.jsx(J,{className:"".concat($?"bg-red-500 dark:bg-red-800 text-slate-200 dark:text-red-200":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:$?G("Command error",{ns:"dashboard"}):G("Type:::Command",{ns:"dashboard"})}),(x||C)&&a.jsxs(fe,{className:"gap-1",children:[a.jsxs(J,{className:"".concat($?"bg-red-500 dark:bg-red-800 text-slate-200 dark:text-red-200":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:[x&&a.jsx("span",{children:$?G("Request error",{ns:"dashboard"}):G("Type:::Request",{ns:"dashboard"})}),C&&a.jsx("span",{children:$?G("Error",{ns:"dashboard"}):G("Type:::Scraper",{ns:"dashboard"})})]}),C&&Q.value.scrapingRules&&((xe=Q.value.scrapingRules)==null?void 0:xe.filter(Te=>Te.isEnable).length)>0&&a.jsxs(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[G("Headers",{ns:"dashboard"}),a.jsx("span",{className:"ml-1 font-mono",children:Q.value.headers.filter(Te=>Te.isEnable).length})]}),x&&Q.value.headers.filter(Te=>Te.isEnable).length>0&&a.jsxs(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[G("Headers",{ns:"dashboard"}),a.jsx("span",{className:"ml-1 font-mono",children:Q.value.headers.filter(Te=>Te.isEnable).length})]}),x&&((je=Q.value.auth)==null?void 0:je.isEnable)&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(Ee=Q.value.auth)==null?void 0:Ee.type}),x&&Q.value.filters.filter(Te=>Te.isEnable).length>0&&a.jsxs(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[G("Filters",{ns:"dashboard"}),a.jsx("span",{className:"ml-1 font-mono",children:Q.value.filters.filter(Te=>Te.isEnable).length})]})]}),(T||s)&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(s?"px-0.5":"px-1.5"),children:T?G("Type:::Secret",{ns:"common"}):a.jsx(Al,{size:16})}),n&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n}),S&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:L?G("Type:::Video",{ns:"common"}):Jl(oe)?G("Type:::Email",{ns:"common"}):G("Type:::Link",{ns:"common"})}),M&&V.value&&a.jsx(J,{className:"".concat(V.value==="Error"?"bg-red-300":"bg-slate-200"," text-xs rounded-sm px-1.5"),children:V.value==="Error"?a.jsx(De,{text:G("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-red-500 bg-red-50 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:V.value}):V.value}),r&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:G("Type:::Emoji",{ns:"common"})}),de&&!E&&!g&&a.jsx(J,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:G("Type:::Empty",{ns:"common"})}),k&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:G("Type:::Image Base64",{ns:"common"})}),E&&a.jsx(J,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:G("Type:::Auto Fill",{ns:"common"})}),a.jsxs(fe,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[G("Type:::Clip",{ns:"common"}),a.jsx(tg,{size:11,className:"ml-1"})]})]})]})]})}f.memo(xB);function B3e({isDisabled:e,isActive:t,isMenuEdit:n,isSeparator:r,isMenu:s,isFolder:o,item:i,menuName:c,isDark:u,deletingMenuItemIds:h,isClip:p}){var F,V,q;const{clipItems:m}=ut(hr),x=He(!1),[C]=Bu({}),[b]=Vu({}),{itemId:g,isImage:k,isImageData:j,isPath:S,isLink:E,isCode:N,isText:T,detectedLanguage:M,imagePathFullRes:L,imageDataUrl:D,imageHash:P,isMasked:A,isVideo:B,hasMaskedWords:z,hasEmoji:R,imageWidth:$,imageHeight:_,imageType:U,value:K}=i,W=f.useMemo(()=>p?m.find(ne=>ne.itemId===g):null,[p,m,g]),G=f.useMemo(()=>{var ne,Q;return(Q=(ne=h.value)==null?void 0:ne.includes(g))!=null?Q:!1},[h.value,g]),Z=f.useMemo(()=>{if(!W||!W.links)return[];let ne=[];if(W.links)try{ne=JSON.parse(W.links)}catch{ne=[]}return ne},[W]);return n?a.jsx(Zxe,{isClip:p,itemId:g,value:K,isCode:N,detectedLanguage:M,isText:T,isMenu:s,isImage:k,isMasked:A,isVideo:B,isDelete:G,hasEmoji:R,imageDataUrl:D,isDark:u,isPath:S,isLink:E,deletingMenuItemIds:h,onCancel:()=>{_u()}}):p&&(W==null?void 0:W.itemId)===g?a.jsx(xB,{isImage:W.isImage,isLink:W.isLink,isVideo:W.isVideo,isPath:W.isPath,isForm:W.isForm,isTemplate:W.isTemplate,isCopyOrPaste:C===g||b===g,isCode:W.isCode,clipName:W.name,isCommand:W.isCommand,isWebRequest:W.isWebRequest,isWebScraping:W.isWebScraping,isExpanded:x,isDark:u,arrLinks:Z,isMasked:W.isMasked,hasMaskedWords:W.hasMaskedWords,detectedLanguage:W.detectedLanguage,hasEmoji:W.hasEmoji,pathType:W.pathType,isImageData:W.isImageData,imageHash:W.imageHash,imageType:W.imageType,imageScale:W.imageScale,imagePathFullRes:W.imagePathFullRes,imageDataUrl:W.imageDataUrl,isLargeView:!1,isDelete:G,formTemplateOptions:W.formTemplateOptions,commandRequestOutput:(F=W.commandRequestOutput)==null?void 0:F.replace("[Err]",""),isCommandRequestRunError:!!((V=W.commandRequestOutput)!=null&&V.startsWith("[Err]")),commandRequestOutputLastRunAt:W.commandRequestLastRunAt,requestOptions:W.requestOptions,imageWidthHeight:W.imageWidth?"".concat(W.imageWidth,"x").concat(W.imageHeight):null,clipId:g,value:W.value}):a.jsx($3e,{itemId:g,isDark:u,isDisabled:e,isActive:t,isCopyOrPaste:C===g||b===g,isFolder:o,isImageData:j,isCode:N,isSeparator:r,menuName:c,isExpanded:x,isImage:k,isPath:S,isLink:E,isVideo:B,isDelete:G,isMasked:A,hasMaskedWords:z,hasEmoji:R,pathType:i.pathType,detectedLanguage:M,imagePathFullRes:L,imageDataUrl:D,imageHash:P,imageWidthHeight:$?"".concat($,"x").concat(_):null,imageType:U,arrLinks:i.links?(q=JSON.parse(i.links))!=null?q:[]:[],value:K})}const W3e=({menuItems:e,selectedItemIds:t,onDelete:n,showMultiSelectItems:r,collectionId:s,setSelectedItemIds:o})=>{const{t:i}=wt(),{deleteMenuItemsByIds:c}=gpe(),{updateMenuItemsByIds:u}=hpe();Oa(["alt+s"],()=>{r.value=!r.value}),Oa(["alt+d"],()=>{o([])});const h=f.useMemo(()=>t.filter(b=>{const g=e.find(({itemId:k})=>k===b);return g&&e.filter(({parentId:k})=>k===g.itemId).length===0}),[t,e]),p=f.useMemo(()=>t.filter(b=>{const g=e.find(({itemId:k})=>k===b);return g&&g.isActive===!1}),[t,e]),m=f.useMemo(()=>t.filter(b=>{const g=e.find(({itemId:k})=>k===b);return g&&g.isActive===!0}),[t,e]),x=f.useMemo(()=>t.filter(b=>{const g=e.find(({itemId:k})=>k===b);return g&&g.isDisabled===!1}),[t,e]),C=f.useMemo(()=>t.filter(b=>{const g=e.find(({itemId:k})=>k===b);return g&&g.isDisabled===!0}),[t,e]);return a.jsxs(Nn,{onOpenChange:()=>{},children:[a.jsx(_n,{asChild:!0,children:a.jsxs(ye,{variant:"light",className:"w-10 text-slate-400 hover:text-slate-500 hover:dark:text-slate-400 dark:text-slate-500 bg-slate-100 p-1 relative hover:bg-slate-100/70 dark:bg-slate-900 dark:hover:bg-slate-700/70",children:[a.jsx(JC,{className:"stroke-[1.3px]",size:22}),t.length>1&&a.jsx(it,{variant:"slate",className:"absolute right-[-10px] top-[-10px]",children:t.length})]})}),a.jsx(Cn,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:a.jsxs(zO,{children:[r.value?a.jsxs(Oe,{onClick:()=>{r.value=!1},children:[a.jsx(XM,{className:"mr-2 h-4 w-4"}),a.jsx(X,{children:i("Hide Muli Select",{ns:"common"})}),a.jsx(Ji,{children:a.jsx(Vs,{keys:"ALT+S"})})]}):a.jsxs(Oe,{onClick:()=>{r.value=!0},children:[a.jsx(JM,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-2",children:i("Multi Select",{ns:"common"})}),a.jsx(Ji,{children:a.jsx(Vs,{keys:"ALT+S"})})]}),a.jsxs(Oe,{disabled:t.length===0,onClick:()=>{o([])},children:[a.jsx($C,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:i("Deselect All",{ns:"common"})}),a.jsx(Ji,{children:a.jsx(Vs,{keys:"ALT+D"})})]}),a.jsx(Yt,{}),a.jsxs(Oe,{onClick:()=>{vn("build_system_menu")},children:[a.jsx(Dre,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:i("Rebuild Menu",{ns:"common"})})]}),a.jsx(Yt,{}),C.length>0&&a.jsxs(Oe,{onClick:async()=>{await u({updatedData:{isDisabled:!1},itemIds:t}),o([]),r.value=!1},children:[a.jsx(iL,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:i("Make Enabled",{ns:"common"})}),a.jsx(it,{variant:"slate",className:"ml-1 py-0 font-semibold",children:C.length})]}),x.length>0&&a.jsxs(Oe,{onClick:async()=>{await u({updatedData:{isActive:!1},itemIds:t}),o([]),r.value=!1},children:[a.jsx(Rp,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:i("Make Disabled",{ns:"common"})}),a.jsx(it,{variant:"slate",className:"ml-1 py-0 font-semibold",children:x.length})]}),(x.length>0||C.length>0)&&a.jsx(Yt,{}),m.length>0&&a.jsxs(Oe,{onClick:async()=>{await u({updatedData:{isActive:!1},itemIds:t}),o([]),r.value=!1},children:[a.jsx(eg,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:i("Make Inactive",{ns:"common"})}),a.jsx(it,{variant:"slate",className:"ml-1 py-0 font-semibold",children:m.length})]}),p.length>0&&a.jsxs(Oe,{onClick:async()=>{await u({updatedData:{isActive:!0},itemIds:t}),o([]),r.value=!1},children:[a.jsx(Dp,{className:"mr-2 h-4 w-4"}),a.jsx(X,{className:"mr-1",children:i("Make Active",{ns:"common"})}),a.jsx(it,{variant:"slate",className:"ml-1 py-0 font-semibold",children:p.length})]}),(p.length>0||m.length>0)&&a.jsx(Yt,{}),a.jsxs(Oe,{disabled:h.length===0,onClick:async b=>{yi.value?(await c({itemIds:h,collectionId:s}),setTimeout(()=>{n(),o([]),r.value=!1,yi.value=!1},400)):(b.preventDefault(),yi.value=!0,setTimeout(()=>{yi.value=!1},3e3))},children:[a.jsx(or,{className:"mr-2 h-4 w-4 ".concat(yi.value?"text-red-500 dark:text-red-600":"")}),a.jsxs(fe,{children:[a.jsx(X,{className:"mr-1 ".concat(yi.value?"!text-red-50 dark:!text-red-600":""),children:yi.value?i("Click to Confirm",{ns:"common"}):i("Delete",{ns:"common"})}),h.length>0&&a.jsx(a.Fragment,{children:yi.value?a.jsx(it,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:h.length}):a.jsx(it,{variant:"slate",className:"ml-1 py-0 font-semibold",children:h.length})})]})]})]})})]})};function V3e(){P4(),R4();const{t:e}=wt(),t=bd(),n=ts(),{updateMenuItemById:r}=Eg(),{isSwapPanels:s,setReturnRoute:o}=ut(ra),{updateMovedMenuItems:i}=A4(),{isCollectionWithItemLoading:c,isCollectionWithItemSuccess:u}=XP(),{currentCollectionId:h,menuItems:p,isMenuLoaded:m,getCurrentCollectionTitle:x}=ut(hr),{data:C,setData:b}=gB(),{themeDark:g}=ut(pu),[k,j]=f.useState(""),[S,E]=f.useState(null),[N,T]=f.useState([""]),[M,L]=f.useState([""]),{createNewItem:D}=Mb(!1),{linkClipIdToMenuItem:P}=ppe(!1),A=Gs(k,300),B=He(null),z=He(!1),R=He(!1),$=f.useRef(null),_=f.useRef(null),U=g(),K=f.useMemo(()=>m&&!c&&u,[m,c,u]),W=f.useMemo(()=>R.value,[R.value]),G=f.useMemo(()=>p.filter(V=>V.isActive),[p]);f.useEffect(()=>{o(t.pathname),_u()},[]),f.useEffect(()=>{var V;fa!=null&&fa.value&&!((V=p==null?void 0:p.find(({itemId:q})=>q===fa.value))!=null&&V.isFolder)&&!xi.value&&E(fa.value)},[fa==null?void 0:fa.value,xi.value]),f.useEffect(()=>{b(p.length>0?l1(p,null,W):[])},[p,W]);const Z=f.useMemo(()=>p.filter(V=>!V.isActive),[p]),F=f.useMemo(()=>{const V=ne=>{var Q,ae;return ne.name.toLowerCase().includes(A.toLowerCase())?!0:(ae=(Q=ne.children)==null?void 0:Q.some(V))!=null?ae:!1},q=(ne,Q=0)=>{let ae=[];return ne.forEach(re=>{var ie,de;const le=V(re),oe=p.find(xe=>xe.itemId===re.id);if(oe&&le){const xe={...oe,indent:Q,id:re.id};if(ae.push(xe),re.children&&((ie=re.children)==null?void 0:ie.length)>0&&!M.includes((de=re.id)!=null?de:"")){const je=q(re.children,Q+1);ae=ae.concat(je)}}}),ae};return q(C)},[C,p,M,W,A]);return f.useEffect(()=>{async function V(){var q,ne,Q,ae,re,le,oe,ie,de,xe,je,Ee,Te,Me,ze,qe,Ye,Ve,Lt;if(zs.value){const{type:$e,parentId:st,clipId:At,historyId:Qt,text:Vt="",clipboardHistoryItem:_e,orderNumber:sn=0}=zs.value,Ht=$e===Qo.FOLDER?e("New Submenu",{ns:"menus"}):$e===Qo.ITEM?e("New Menu",{ns:"menus"}):$e===Qo.DISABLED?e("New Disabled Menu",{ns:"menus"}):"",kt=!!At,rn=(q=F.filter(({name:Ce})=>Ce.startsWith(Ht)).length)!=null?q:0,Zt=_e==null?void 0:_e.isImage,Jt=Qt&&(_e!=null&&_e.historyId)?{historyId:Qt,name:_e!=null&&_e.value?_e.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():Zt?"".concat(e("Image size",{ns:"common"})," (").concat(_e==null?void 0:_e.imageWidth,"x").concat(_e==null?void 0:_e.imageHeight,")"):rn>0?"".concat(Ht," (").concat(rn,")"):Ht,isClip:!1,isMenu:!0,value:"",isActive:!0,description:null,detectedLanguage:(ne=_e==null?void 0:_e.detectedLanguage)!=null?ne:null,isImage:(Q=_e==null?void 0:_e.isImage)!=null?Q:!1,imageDataUrl:(ae=_e==null?void 0:_e.imageDataUrl)!=null?ae:null,imagePathFullRes:(re=_e==null?void 0:_e.imagePathFullRes)!=null?re:null,imageHeight:(le=_e==null?void 0:_e.imageHeight)!=null?le:null,imageWidth:(oe=_e==null?void 0:_e.imageWidth)!=null?oe:null,imagePreviewHeight:(ie=_e==null?void 0:_e.imagePreviewHeight)!=null?ie:null,isLink:(de=_e==null?void 0:_e.isLink)!=null?de:!1,links:(xe=_e==null?void 0:_e.links)!=null?xe:null,isImageData:(je=_e==null?void 0:_e.isImageData)!=null?je:!1,isMasked:(Ee=_e==null?void 0:_e.isMasked)!=null?Ee:!1,isVideo:(Te=_e==null?void 0:_e.isVideo)!=null?Te:!1,isCode:(Me=_e==null?void 0:_e.isCode)!=null?Me:!1,isText:(ze=_e==null?void 0:_e.isText)!=null?ze:!1,hasEmoji:(qe=_e==null?void 0:_e.hasEmoji)!=null?qe:!1,hasMaskedWords:(Ye=_e==null?void 0:_e.hasMaskedWords)!=null?Ye:!1,hasMultiLineCopy:!1,showDescription:!1,isDeleted:!1,indent:0,parentId:st!=null?st:null,tabId:null,collectionId:h,createdAt:0,orderNumber:sn+1}:{name:rn>0?"".concat(Ht," (").concat(rn,")"):Ht,isClip:kt,isMenu:!0,value:Vt,description:null,isActive:!0,isFolder:$e===Qo.FOLDER,isSeparator:$e===Qo.SEPARATOR,isDisabled:$e===Qo.DISABLED,isText:!0,isDeleted:!1,indent:0,parentId:st!=null?st:null,tabId:null,collectionId:h,createdAt:0,orderNumber:sn+1},gn=kt?await P({clipId:At,item:Jt}):await D({item:Jt});(Ve=_e==null?void 0:_e.linkMetadata)!=null&&Ve.metadataId&&!kt&&await vn("copy_link_metadata_to_new_item_id",{metadataId:_e.linkMetadata.metadataId,itemId:gn});const zt=l1(p,null,!0);zt.unshift({...Jt,id:gn});const Mn=(Lt=LC(zt,st!=null?st:null,[gn],st&&sn>0?sn-1:sn))==null?void 0:Lt.map(({id:Ce,parentId:Be,orderNumber:ke})=>({itemId:Ce,parentId:Be,tabId:null,collectionId:h,orderNumber:ke}));i({updatedMoveMenuItems:Mn}),Fs.value=!1,zs.value=null,T([]),Qo.FOLDER!==$e&&Qo.DISABLED!==$e&&Qo.SEPARATOR!==$e&&E(gn),Qo.SEPARATOR!==$e&&!kt&&(fa.value=gn,xi.value=!0)}}V()},[zs.value]),f.useEffect(()=>{Gc.value&&(E(Gc.value),setTimeout(()=>{Gc.value=null},2e3))},[Gc.value,_==null?void 0:_.current]),f.useEffect(()=>{var V;_!=null&&_.current&&((V=_==null?void 0:_.current)==null||V.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[_==null?void 0:_.current]),a.jsx(V2,{children:a.jsxs(GE,{minSize:300,maxSize:600,swapPanes:s,defaultSize:300,autoSaveId:"app-main-panel",children:[a.jsx(ZE,{children:a.jsx(J,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] pb-4 pt-4 px-3 pr-3",children:a.jsx(ih,{disableWidth:!0,children:({height:V})=>V&&V>0&&!c&&h&&a.jsxs(J,{className:"flex flex-col h-[calc(100vh-95px)] relative",children:[C.length>0?a.jsx(J,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-2",children:a.jsx(rd,{placeholder:"".concat(e("Find in menu",{ns:"menus"}),"..."),type:"search",ref:$,onChange:q=>{j(q.target.value)},iconLeft:a.jsx(Ap,{className:"h-4 w-4"}),classNameInput:"w-full pr-0",className:"text-md ring-offset-0 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0"})}):K&&p.length===0&&a.jsx(fe,{style:{height:V-85},className:"flex items-center flex-col gap-3 justify-center",children:a.jsx(X,{className:"animate-in fill-mode-forwards fade-in text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:e("No Menu Items",{ns:"menus"})})}),a.jsxs(An,{style:{maxHeight:V-93},autoHide:!0,children:[a.jsx(b3e,{data:C,rowHeight:33,selectedIds:N,closedFolderItemIds:M,renderCursor:N3e,renderContainer:H3e,renderDragPreview:P3e,onMove:({dragIds:q,index:ne,parentId:Q})=>{var re;const ae=(re=LC(C,Q,q,ne))==null?void 0:re.map(({id:le,parentId:oe,orderNumber:ie})=>({itemId:le,parentId:oe,tabId:null,collectionId:h,orderNumber:ie}));i({updatedMoveMenuItems:ae})},onSelect:q=>{const ne=q.map(Q=>Q.id);ne.length===N.length&&ne.every(Q=>N.includes(Q))||T(ne)},onFolderClose:q=>{L(ne=>[...ne,q])},onFolderOpen:q=>{L(ne=>ne.filter(Q=>Q!==q))},onRename:async({id:q,name:ne})=>{var Q;if(ne.length<1){await Wi(e("Menu label cannot be empty.",{ns:"menus"}),"PasteBar");return}if(ne.length>K0){await Wi("".concat(e("Menu label is too long. Max length is",{ns:"menus"})," ").concat(K0,"."),"PasteBar");return}if((Q=p.find(ae=>ae.itemId===q))!=null&&Q.isClip){await Wi(e("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}await r({updatedItem:{itemId:q,name:ne}})},onSearchClear:()=>{var q;j(""),$!=null&&$.current&&($.current.value="",(q=$==null?void 0:$.current)==null||q.focus())},searchMatch:(q,ne)=>{const Q=q.data.name;return typeof Q=="string"?Q.toLowerCase().includes(ne.toLowerCase()):!1},renderRow:F3e,searchTerm:A,disableDrop:()=>!1,children:A3e}),!A&&G.length>1&&C.length>0&&a.jsx(X,{className:"!text-gray-400/80 border-t border-gray-300/70 dark:border-gray-600/70 !block text-center !text-[12px] mt-2 pt-1 whitespace-nowrap overflow-hidden text-ellipsis",children:e("Drag items to reorder, double click to rename",{ns:"menus"})})]}),a.jsx(J,{className:"flex-1 mt-3"}),a.jsxs(Xi,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:t.pathname,onValueChange:q=>{n(q,{replace:!0})},children:[a.jsxs(Vo,{className:"self-center",children:[a.jsx(br,{value:"/history",children:e("Clipboard History",{ns:"common"})}),a.jsx(br,{value:"/menu",children:e("Paste Menu",{ns:"common"})})]}),a.jsx(W3e,{deletingMenuItemIds:B,menuItems:p,collectionId:h,onDelete:()=>{var q;j(""),$!=null&&$.current&&$.current.value&&($.current.value="",(q=$==null?void 0:$.current)==null||q.focus())},showMultiSelectItems:z,setSelectedItemIds:T,selectedItemIds:N})]})]})})})}),a.jsx(QE,{children:K&&a.jsx(J,{className:"h-[calc(100vh-70px)] select-none flex flex-col bg-slate-50 border shadow-sm rounded-xl dark:bg-gray-900/60 dark:border-gray-800 dark:shadow-slate-700/[.7]",children:a.jsx(ih,{disableWidth:!0,children:({height:V})=>V&&a.jsxs(J,{className:"p-4 py-4 pb-2 select-auto",children:[a.jsxs(fe,{className:"justify-center relative h-8 pt-2 select-none",children:[Z.length>0&&a.jsx(ye,{variant:"ghost",className:"bg-slate-200 p-1.5 text-slate-500 dark:bg-slate-700 dark:hover:bg-slate-700/80 dark:text-slate-300 rounded-sm flex items-center group absolute top-1 left-1",onClick:()=>{R.value=!W},children:a.jsx(De,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:e("Toggle inactive menu items",{ns:"menus"}),children:a.jsxs(J,{className:"relative",children:[W?a.jsx(eg,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-300/80 dark:text-slate-500"}):a.jsx(Dp,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-500 dark:text-slate-300/80"}),a.jsx(it,{className:"absolute right-[-16px] top-[-17px] ".concat(W?"bg-slate-400/80 dark:bg-slate-600 text-slate-100 dark:text-slate-400/80":"bg-slate-300/80 dark:bg-slate-700 dark:text-slate-200/80 text-slate-500"),variant:"".concat(W?"default":"outline"),children:Z.length})]})})}),!Fs.value||G.length===0?a.jsx(J,{className:"text-[13px] select-none",children:G.length>0?a.jsxs(X,{className:"gap-1",children:[a.jsx("span",{className:"font-semibold",children:G.length}),a.jsxs("span",{children:[Z.length>0?e("active",{ns:"menus"}):""," ",e("menu items in",{ns:"menus"})]}),a.jsx(vB,{children:a.jsx("span",{className:"font-semibold underline cursor-pointer select-none",children:x()})})]}):a.jsxs(X,{className:"gap-1",children:[a.jsx("span",{children:e("No {{hasActive}} menu items in",{ns:"menus",hasActive:Z.length>0?e("active",{ns:"menus"}):""})}),a.jsx(vB,{children:a.jsx("span",{className:"font-semibold underline cursor-pointer",children:x()})})]})}):a.jsx(J,{className:"text-[13px]",children:a.jsx(X,{className:"text-center",children:e("Select item to add a menu after",{ns:"menus"})})}),G.length>0&&a.jsx(D2,{isMainCreateMenu:!0,isDark:U,showEditMenuItemId:fa,isCreatingMenuItem:Fs})]}),G.length===0&&a.jsx(fe,{className:"mt-6 flex-col select-none",children:a.jsxs(J,{children:[a.jsx(D2,{isFistItemsCreateMenu:!0,isDark:U,showEditMenuItemId:fa,isCreatingMenuItem:Fs}),a.jsx(X,{className:"text-sm mt-4 !text-slate-500",children:e("Create Menu",{ns:"menus"})})]})}),a.jsx(mn,{h:2}),a.jsxs(An,{style:{height:V-75},autoHide:!0,className:"select-none",children:[a.jsx(LP,{type:"single",collapsible:!0,value:S!=null?S:"",className:"flex items-center flex-col select-none",children:F.map((q,ne)=>q.itemId&&a.jsx(I4,{ref:Gc.value===q.itemId?_:null,value:q.itemId,children:a.jsx(LF,{label:q.name,setOpenItemId:E,setSelectedItemIds:T,isLastItem:ne===F.length-1,deletingMenuItemIds:B,isFirstItem:ne===0,showEditMenuItemId:fa,hasChildren:q.hasChildren,isSeparator:q.isSeparator,showMultiSelectItems:z,hasSelectedItems:N.length>0,isDark:U,deselectItemById:Q=>{T(N.filter(ae=>ae!==Q))},selectItemById:Q=>{T(ae=>[...ae,Q])},id:q.itemId,item:q,isClip:q.isClip,isForm:q.isForm&&q.isClip,isWebRequest:q.isWebRequest&&q.isClip,isWebScraping:q.isWebScraping&&q.isClip,isCommand:q.isCommand&&q.isClip,isCreatingMenuItem:Fs,indent:q.indent,onFolderClose:Q=>{L(ae=>[...ae,Q])},onFolderOpen:Q=>{L(ae=>ae.filter(re=>re!==Q))},isClosedFolder:M.includes(q.itemId),isSelected:N.includes(q.itemId),hasMultipleSelectedItems:N.length>1,isOpen:S===q.itemId,children:a.jsx(B3e,{menuName:q.name,isDisabled:q.isDisabled,isMenuEdit:fa.value===q.itemId,isActive:q.isActive,isDark:U,isMenu:q.isMenu,isCode:q.isCode,isSeparator:q.isSeparator,isFolder:q.isFolder,isText:q.isText,isClip:q.isClip,deletingMenuItemIds:B,item:q})})},"".concat(q.itemId)))}),a.jsx(mn,{h:3})]})]})})})})]},s?"swap":"no-swap")})}function U3e(){const{returnRoute:e}=ut(ra),{t}=wt();return a.jsx(V2,{children:a.jsx(J,{className:"w-full",children:a.jsxs(GE,{minSize:250,maxSize:360,defaultSize:290,autoSaveId:"app-main-panel",children:[a.jsx(ZE,{children:a.jsx(J,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] py-6 px-3 pr-3",children:a.jsxs(J,{className:"animate-in fade-in",children:[a.jsx(J,{className:"flex flex-rowrounded-md p-0 items-center justify-end pr-5 h-[40px]",children:a.jsxs(X,{className:"text-lg font-semibold text-center flex items-center",children:[a.jsx(Tu,{className:"mr-2"}),t("PasteBar Settings",{ns:"settings"})]})}),a.jsx(mn,{h:3}),a.jsx(Lm,{to:"/app-settings/history",replace:!0,children:({isActive:n})=>a.jsx(X,{className:"pr-5 py-3 text-lg justify-end text-right items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(n&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("Clipboard History Settings",{ns:"settings"})})}),a.jsx(Lm,{to:"/app-settings/collections",replace:!0,children:({isActive:n})=>a.jsx(X,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(n&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("Manage Collections",{ns:"settings"})})}),a.jsx(Lm,{to:"/app-settings/preferences",replace:!0,children:({isActive:n})=>a.jsx(X,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(n&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("User Preferences",{ns:"settings"})})}),a.jsx(Lm,{to:"/app-settings/security",replace:!0,children:({isActive:n})=>a.jsx(X,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(n&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("Security",{ns:"settings"})})}),a.jsx(Lm,{to:"/app-settings/license",replace:!0,children:({isActive:n})=>a.jsx(X,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(n&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("License",{ns:"settings"})})}),a.jsx(mn,{h:6}),a.jsx(fe,{className:"mr-5 justify-end",children:a.jsx(b4,{decorative:!0,className:"bg-gray-300 dark:bg-gray-600"})}),a.jsx(mn,{h:6}),a.jsx(Lm,{to:e,replace:!0,children:a.jsx(J,{className:"pr-5 font-right text-right py-3 text-md animate fade-in transition-fonts duration-100",children:a.jsx(ye,{variant:"secondary",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",children:t("Back",{ns:"common"})})})})]})})}),a.jsx(QE,{children:a.jsx(J,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-50 border-0 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:a.jsx(nE,{})})})]})})})}function q3e(){const{isHistoryEnabled:e,setIsHistoryEnabled:t,isHistoryAutoUpdateOnCaputureEnabled:n,setIsHistoryAutoUpdateOnCaputureEnabled:r,setIsExclusionListEnabled:s,historyExclusionList:o,autoMaskWordsList:i,isExclusionListEnabled:c,setHistoryExclusionList:u,setAutoMaskWordsList:h,isAutoMaskWordsListEnabled:p,isAutoPreviewLinkCardsEnabled:m,setIsAutoPreviewLinkCardsEnabled:x,isAutoFavoriteOnDoubleCopyEnabled:C,setIsAutoFavoriteOnDoubleCopyEnabled:b,setIsAutoMaskWordsListEnabled:g,setHistoryDetectLanguagesEnabledList:k,setIsHistoryDetectLanguageEnabled:j,isHistoryDetectLanguageEnabled:S,historyDetectLanguagesEnabledList:E,historyDetectLanguageMinLines:N,setHistoryDetectLanguageMinLines:T,isAutoClearSettingsEnabled:M,setIsAutoClearSettingsEnabled:L,autoClearSettingsDuration:D,setAutoClearSettingsDuration:P,autoClearSettingsDurationType:A,setAutoClearSettingsDurationType:B,isAppReady:z,CONST:{APP_DETECT_LANGUAGES_SUPPORTED:R}}=ut(Nr),{returnRoute:$}=ut(ra),{t:_}=wt(),[U,K]=f.useState(""),[W,G]=f.useState(""),[Z,F]=f.useState(!1),V=Gs(U,300),q=Gs(W,300);f.useEffect(()=>{z&&u(vx(V))},[V,z]),f.useEffect(()=>{z&&h(vx(q))},[q,z]),f.useEffect(()=>{z&&(K(o),G(i))},[z]);const ne={days:[1,2,3,4,5,6],weeks:[1,2,3],months:[1,3,6,8],year:[1,2]};function Q(ae,re){const le={days:ae===1?_("Day",{ns:"calendar"}):_("Days",{ns:"calendar"}),weeks:ae===1?_("Week",{ns:"calendar"}):_("Weeks",{ns:"calendar"}),months:ae===1?_("Month",{ns:"calendar"}):_("Months",{ns:"calendar"}),year:ae===1?_("Year",{ns:"calendar"}):_("Years",{ns:"calendar"})}[re];return"".concat(ae," ").concat(le)}return a.jsx(ih,{disableWidth:!0,children:({height:ae})=>ae&&a.jsxs(J,{className:"p-4 py-6 select-none min-w-[320px]",children:[a.jsxs(J,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[a.jsx(X,{className:"light",children:_("Clipboard History Settings",{ns:"settings"})}),a.jsx(ac,{to:$,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:_("Back",{ns:"common"})})})]}),a.jsx(mn,{h:3}),a.jsxs(An,{style:{maxHeight:ae-85},autoHide:!0,children:[a.jsx(J,{className:"animate-in fade-in max-w-xl",children:a.jsxs(tr,{className:"".concat(!e&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Capture History",{ns:"settings"})}),a.jsx(Hr,{checked:e,className:"ml-auto",onCheckedChange:()=>{t(!e)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Enable history capture",{ns:"settings"})})})]})}),e&&a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"max-w-xl animate-in fade-in mt-4",children:a.jsxs(tr,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Update on Capture",{ns:"settings"})}),a.jsx(Hr,{checked:n,className:"ml-auto",onCheckedChange:()=>{r(!n)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Enable auto update on capture",{ns:"settings"})})})]})}),a.jsx(J,{className:"mt-4 max-w-xl animate-in fade-in",children:a.jsxs(tr,{className:"".concat(!C&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Star on Double Copy",{ns:"settings"})}),a.jsx(Hr,{checked:C,className:"ml-auto",onCheckedChange:()=>{b(!C)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Add a star to the copied text when you copy it twice within 1 second. This allows you to quickly add copied text or links to your favorites and easily find it in the clipboard history.",{ns:"settings"})})})]})}),a.jsx(J,{className:"mt-4 max-w-xl animate-in fade-in",children:a.jsxs(tr,{className:"".concat(!m&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Preview Link on Hover",{ns:"settings"})}),a.jsx(Hr,{checked:m,className:"ml-auto",onCheckedChange:()=>{x(!m)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Create a preview card on link hover in the clipboard history. This allows you to preview the link before opening or pasting it.",{ns:"settings"})})})]})}),a.jsx(J,{className:"max-w-xl animate-in fade-in mt-4",children:a.jsxs(tr,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Stop Words List",{ns:"settings"})}),a.jsx(Hr,{checked:c,className:"ml-auto",onCheckedChange:()=>{s(!c)}})]}),a.jsxs(cr,{children:[a.jsx(X,{className:"text-sm text-muted-foreground mb-2",children:_("Words or sentences listed below will not be captured in clipboard history if found in the copied text. Case insensitive.",{ns:"settings"})}),a.jsx(go,{className:"text-sm",isDisabled:!c,label:_("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,rows:5,maxRows:15,enableEmoji:!1,onBlur:()=>{u(vx(U))},onChange:re=>{K(re.target.value)},value:U})]})]})}),a.jsx(J,{className:"max-w-xl animate-in fade-in mt-4",children:a.jsxs(tr,{className:"".concat(!p&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto Masking Words List",{ns:"settings"})}),a.jsx(Hr,{checked:p,className:"ml-auto",onCheckedChange:()=>{g(!p)}})]}),a.jsxs(cr,{children:[a.jsx(X,{className:"text-sm text-muted-foreground mb-2",children:_("Sensitive words or sentences listed below will automatically be masked if found in the copied text. Case insensitive.",{ns:"settings"})}),a.jsx(go,{className:"text-sm",label:_("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,isDisabled:!p,rows:5,maxRows:15,enableEmoji:!1,onFocus:()=>{F(!0)},onBlur:()=>{h(vx(W)),F(!1)},onChange:re=>{G(re.target.value)},value:Z?W:Ep(W)})]})]})}),a.jsx(J,{className:"max-w-xl animate-in fade-in mt-4",children:a.jsxs(tr,{className:"".concat(!S&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Programming Language Detection",{ns:"settings"})}),a.jsx(Hr,{checked:S,className:"ml-auto",onCheckedChange:()=>{j(!S)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Enable programming language detection",{ns:"settings"})})})]})})]}),e&&S&&a.jsxs(a.Fragment,{children:[a.jsx(J,{className:"max-w-xl mt-4 animate-in fade-in",children:a.jsxs(tr,{children:[a.jsx(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Minimum number of lines to trigger detection",{ns:"settings"})})}),a.jsx(cr,{children:a.jsx(Gt,{className:"text-md !w-36",error:void 0,small:!0,label:_("Number of lines",{ns:"common"}),value:N,onChange:re=>{const le=re.target.value;if(le==="")T(0);else{const oe=parseInt(le);oe&&T(oe)}}})})]})}),a.jsx(J,{className:"mt-4 max-w-2xl animate-in fade-in",children:a.jsxs(tr,{children:[a.jsx(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:[_("Programming language selection",{ns:"settings"}),a.jsx(X,{className:"mt-2 text-sm text-muted-foreground",children:_("To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.",{ns:"settings"})})]})}),a.jsx(cr,{children:a.jsx(J,{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 py-2",children:R.map((re,le)=>a.jsx("button",{className:"flex",onClick:()=>{E.length>=7&&!E.includes(re)||k(E.includes(re)?E.filter(oe=>oe!==re):E.concat([re]))},children:a.jsx(y4,{label:re,checked:E.includes(re)})},le))})})]})})]}),a.jsx(J,{className:"mt-4 max-w-xl animate-in fade-in",children:a.jsxs(tr,{className:"".concat(!M&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Clear Settings",{ns:"settings"})}),a.jsx(Hr,{checked:M,className:"ml-auto",onCheckedChange:()=>{L(!M)}})]}),a.jsxs(cr,{children:[a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Configure settings to automatically delete clipboard history items after a specified duration.",{ns:"settings"})}),M&&a.jsxs(fe,{className:"mt-6 row justify-start",children:[a.jsx(X,{className:"text-sm text-muted-foreground",children:_("Auto-delete clipboard history after",{ns:"settings"})}),a.jsx(fe,{className:"mx-2",children:a.jsxs(KD,{value:A,onValueChange:re=>{B(re),P(1)},children:[a.jsx(z3,{children:a.jsx(GD,{placeholder:"Select"})}),a.jsxs(F3,{children:[a.jsx(Jp,{value:"days",children:a.jsx("span",{className:"font-medium",children:_("Days",{ns:"calendar"})})}),a.jsx(Jp,{value:"weeks",children:a.jsx("span",{className:"font-medium",children:_("Weeks",{ns:"calendar"})})}),a.jsx(Jp,{value:"months",children:a.jsx("span",{className:"font-medium",children:_("Months",{ns:"calendar"})})}),a.jsx(Jp,{value:"year",children:a.jsx("span",{className:"font-medium",children:_("Years",{ns:"calendar"})})})]})]})}),a.jsx(fe,{children:a.jsxs(KD,{value:D.toString(),onValueChange:re=>{P(Number(re))},children:[a.jsx(z3,{children:a.jsx(GD,{placeholder:"Select"})}),a.jsx(F3,{children:ne[A].map(re=>a.jsx(Jp,{value:re.toString(),children:a.jsx("span",{className:"font-medium whitespace-nowrap",children:Q(re,A)})},re))})]})})]})]})]})}),a.jsx(mn,{h:6}),a.jsx(ac,{to:$,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:_("Back",{ns:"common"})})}),a.jsx(mn,{h:4})]})]})})}function Y3e({open:e,onClose:t,setIsDeleteAllItemsInCollection:n,onConfirm:r}){const{t:s}=wt();return a.jsx(Wn,{open:e,handleClose:t,children:a.jsxs(Wn.Body,{children:[a.jsx(Wn.Header,{handleClose:t,children:a.jsx("h1",{className:"m-0",children:s("Confirm Delete",{ns:"common"})})}),a.jsxs(Wn.Content,{children:[a.jsx(X,{className:"font-semibold",children:s("Are you sure you want to delete this collection?",{ns:"collections"})}),a.jsx(mn,{h:3}),a.jsx(X,{className:"font-light",children:s("Deleting the collection will remove it permanently. You can also choose to delete all menu and clips items within the collection by checking the box below.",{ns:"collections"})}),a.jsx(mn,{h:3}),a.jsx(y3,{color:"danger",onChange:o=>{n(o)},children:s("Delete all menu items within this collection",{ns:"collections"})})]}),a.jsx(Wn.Footer,{children:a.jsxs("div",{className:"flex w-full justify-end gap-x-2",children:[a.jsx(ye,{variant:"ghost",type:"button",onClick:t,children:s("Cancel",{ns:"common"})}),a.jsx(ye,{variant:"danger",type:"submit",onClick:r,children:s("Delete Collection",{ns:"collections"})})]})})]})})}function K3e({showAddNewCollection:e}){const{t}=wt(),{createNewCollection:n,createNewCollectionSuccess:r}=ope(),[s,o]=f.useState(""),[i,c]=f.useState(!0),[u,h]=f.useState(""),p=ts(),m=Sm(),[x,C]=f.useState(e),[b,g]=f.useState(!1);return f.useEffect(()=>{r&&(o(""),h(""),C(!1),p("/history",{replace:!0}))},[r]),f.useEffect(()=>{o(""),h(""),c(!0)},[x]),a.jsx(tr,{className:"".concat(x?"border-blue-300 border-2":"opacity-80 justify-center items-center bg-transparent border-2 border-dashed border-gray-300 dark:border-gray-700 min-h-[130px]"),children:x?a.jsxs(a.Fragment,{children:[a.jsx(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:a.jsx(Gn,{className:"animate-in fade-in text-md w-full",children:a.jsx(Gt,{small:!0,autoFocus:!0,error:b?t("Title too short",{ns:"collections"}):void 0,name:"title",maxLength:50,onKeyDown:k=>{if(k.stopPropagation(),k.key==="Enter"){if(s.length<3){g(!0);return}n({createCollection:{title:s,isSelected:!1,description:u}})}},placeholder:t("Enter collection title",{ns:"collections"}),label:t("Collection Title",{ns:"collections"}),value:s,onChange:k=>{b&&k.target.value.length>3&&g(!1),o(k.target.value)}})})}),a.jsxs(cr,{children:[a.jsx(go,{enableEmojiInside:!0,enableEmoji:!1,placeholder:t("Add a description for your collection",{ns:"collections"}),rows:2,maxRows:4,maxLength:200,label:t("Description",{ns:"collections"}),value:u,onChange:k=>{h(k.target.value)}}),a.jsx(fe,{className:"items-center justify-start mt-2 ml-[-8px]",children:a.jsx(y3,{color:"default",checked:i,classNameLabel:"py-1",onChange:k=>{c(k)},children:a.jsx(jg,{size:"sm",children:t("Add default menu, tab and board",{ns:"collections"})})})})]}),a.jsxs($3,{className:"flex flex-row items-center justify-between space-y-0",children:[a.jsx(J,{}),a.jsxs(fe,{className:"min-h-[30px]",children:[a.jsx(ye,{size:"xs",variant:"link",onClick:()=>{C(!1)},children:t("Cancel",{ns:"common"})}),a.jsx(ye,{size:"xs",className:"bg-blue-100 text-blue-600 hover:bg-blue-100/50 dark:bg-blue-800 dark:text-blue-200 dark:hover:bg-blue-800/50",onClick:async()=>{if(s.length<3){g(!0);return}await n({addDefaultMenuTabBoard:i,createCollection:{title:s,isSelected:!1,description:u}})},children:t("Create",{ns:"common"})})]})]})]}):a.jsx(fe,{className:"flex-row gap-3",children:a.jsxs(ye,{variant:"ghost",className:"rounded-md hover:dark:bg-blue-700/80 hover:bg-blue-200/80",onClick:()=>{m?C(!0):Uc.value=!0},children:[a.jsx(Ir,{width:20,className:"mr-1"}),a.jsx(jg,{className:"text-[15px] !font-semibold",children:t("Add Collection",{ns:"collections"})}),a.jsx(eh,{})]})})},"new-collection")}function _N({showAddNewCollection:e}){const{t}=wt(),{isShowCollectionNameOnNavBar:n,setIsShowCollectionNameOnNavBar:r}=ut(Nr);P4(),A4(),XP();const{updateCollectionById:s}=spe(),{selectCollectionById:o}=z4(),{deleteCollectionById:i}=ipe(),{currentCollectionId:c,menuItems:u,collections:h}=ut(hr),{returnRoute:p}=ut(ra),[m,x]=fA({timeout:10,sensitivity:10,interval:20}),{setData:C}=gB(),[b,g]=f.useState(),[k,j]=f.useState(""),[S,E]=f.useState(!1),[N,T]=f.useState(""),M=He(!1),[L,D]=f.useState(null),[P,A]=f.useState(null);return f.useEffect(()=>{var B;if(L){const z=h.find(({collectionId:R})=>R===L);z&&(j(z.title),T((B=z.description)!=null?B:""))}else j(""),A(null),T("")},[L]),f.useEffect(()=>{C(u.length>0?l1(u):[])},[u,u.length]),a.jsx(ih,{disableWidth:!0,children:({height:B})=>B&&a.jsxs(J,{className:"p-4 py-6 select-auto",children:[a.jsxs(J,{className:"text-xl my-2 flex items-center justify-between px-2",children:[a.jsx(X,{className:"light",children:t("Manage Collections",{ns:"collections"})}),a.jsx(ac,{to:p,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:t("Back",{ns:"common"})})})]}),a.jsx(mn,{h:3}),a.jsxs(An,{style:{maxHeight:B-85},autoHide:!0,children:[a.jsxs(J,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in",children:[a.jsx(K3e,{showAddNewCollection:e}),h.map(({collectionId:z,title:R,description:$,isEnabled:_})=>{const U=L===z,K=c===z;return a.jsxs(tr,{className:"".concat(K&&"border-teal-500 border-2"," ").concat(!_&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium",children:U?a.jsx(Gt,{className:"text-md",error:b?t("Title too short",{ns:"collections"}):void 0,maxLength:50,small:!0,onKeyDown:W=>{if(W.stopPropagation(),W.key==="Enter"){if(k.length<3){g(!0);return}s({updatedCollection:{collectionId:z,title:k,isEnabled:_,description:N}}),setTimeout(()=>{D(null)},100)}},label:t("Collection Title",{ns:"collections"}),placeholder:t("Enter collection title",{ns:"collections"}),value:k,onChange:W=>{b&&W.target.value.length>3&&g(!1),j(W.target.value)}}):a.jsx(X,{className:"".concat(K?_?"text-teal-600 dark:text-teal-600":"text-slate-500 dark:text-slate-300":"hover:text-slate-500"," !font-medium ").concat(_?"cursor-pointer":"text-muted-foreground"),onClick:()=>{_&&!K&&o({selectCollection:{collectionId:z}})},children:R})}),!U&&_&&a.jsx(a.Fragment,{children:K?a.jsx(De,{text:t("Current Collection",{ns:"collections"}),isCompact:!0,children:a.jsx(uL,{className:"text-teal-600 h-6",size:20})}):a.jsx(ye,{className:"text-sm box",size:"xs",variant:"outline",onClick:()=>{o({selectCollection:{collectionId:z}})},children:t("Select",{ns:"common"})})})]}),a.jsx(cr,{children:U?a.jsx(go,{className:"text-md",enableEmoji:!1,enableEmojiInside:!0,maxLength:200,rows:2,maxRows:4,label:t("Description",{ns:"collections"}),value:N,onChange:W=>{T(W.target.value)}}):a.jsx(X,{className:"text-sm text-muted-foreground",children:$})}),a.jsxs($3,{className:"flex flex-row items-center justify-between space-y-0",children:[a.jsx(J,{children:U?K?a.jsx(De,{isCompact:!0,className:"bg-warning-100 dark:bg-warning-800",text:a.jsx(X,{justify:"center",color:"danger",children:t("You need to select a different collection before deleting the current one.",{ns:"collections"})}),delayDuration:300,maxWidth:190,open:m,sideOffset:16,children:a.jsx(ye,{size:"xs",ref:Ei(x),variant:"ghost",className:"bg-slate-50 dark:bg-slate-800",children:a.jsx(e3,{size:"16",className:"opacity-20"})})}):a.jsx(ye,{size:"xs",variant:"ghost",onClick:()=>{A(z),M.value=!0},className:"".concat(P?"bg-red-100 dark:bg-red-800 hover:bg-red-100 text-red-600 hover:text-color-dark dark:text-red-200":"bg-red-50/50 dark:bg-red-800 text-red-500 hover:bg-red-100 hover:text-color-dark dark:text-red-200"),children:a.jsx(or,{size:"16"})}):!K&&a.jsxs(pA,{children:[a.jsx(mA,{asChild:!0,children:a.jsx(J,{children:a.jsx(Hr,{checked:_,disabled:K,onCheckedChange:W=>{s({updatedCollection:{collectionId:z,isEnabled:W}})}})})}),a.jsx(yS,{children:a.jsx(X,{className:"text-sm",children:_?t("Enabled",{ns:"common"}):t("Disabled",{ns:"common"})})})]})}),a.jsxs(fe,{className:"min-h-[30px]",children:[U&&a.jsx(ye,{size:"xs",variant:"link",className:"text-slate-500",onClick:()=>{D(null)},disabled:!_,children:t("Cancel",{ns:"common"})}),_&&a.jsx(ye,{size:"xs",variant:U?"default":"light",className:U?"bg-blue-100 text-blue-600 hover:bg-blue-100/50 dark:bg-blue-800 dark:text-blue-200 dark:hover:bg-blue-800/50":"",onClick:()=>{if(!U)D(z);else{if(k.length<3){g(!0);return}s({updatedCollection:{collectionId:z,title:k,isEnabled:_,description:N}}),setTimeout(()=>{D(null)},100)}},disabled:!_,children:U?t("Save",{ns:"common"}):t("Edit",{ns:"common"})})]})]})]},z)})]}),a.jsx(mn,{h:5}),a.jsx(X,{className:"light",children:t("Collection Options",{ns:"collections"})}),a.jsx(J,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in mt-4",children:a.jsxs(tr,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:t("Show collection name on the navbar",{ns:"collections"})}),a.jsx(Hr,{checked:n,className:"ml-auto",onCheckedChange:()=>{r(!n)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:t("Display full name of selected collection on the navigation bar",{ns:"collections"})})})]})}),a.jsx(mn,{h:6})]}),a.jsx(Y3e,{open:M.value,setIsDeleteAllItemsInCollection:E,onClose:()=>{M.value=!1,E(!1),A(null)},onConfirm:()=>{P&&(i({deleteCollection:{deleteAllItemsInCollection:S,collectionId:P}}),M.value=!1,E(!1),A(null))}})]})})}function G3e(){const{t:e}=wt(),{isIdleScreenAutoLockEnabled:t,setIsIdleScreenAutoLockEnabled:n,idleScreenAutoLockTimeInMinutes:r,setIdleScreenAutoLockTimeInMinutes:s,isShowHistoryCaptureOnLockedScreen:o,setIsShowHistoryCaptureOnLockedScreen:i,isScreenLockPassCodeRequireOnStart:c,setIsScreenLockPassCodeRequireOnStart:u,screenLockPassCode:h,setScreenLockPassCode:p,screenLockPassCodeLength:m,setScreenLockPassCodeLength:x,screenLockRecoveryPasswordMasked:C,hashPassword:b,setScreenLockRecoveryPasswordMasked:g,storePassword:k,verifyStoredPassword:j,deleteStoredPassword:S}=ut(Nr),{returnRoute:E}=ut(ra),N=Sm(),T=He(""),M=He(""),L=He(""),D=He(""),P=He(""),A=He(!1),B=He(!1),z=He(!1),R=He(!1),$=He(!1),_=He(!1),U=He(!1),K=He(!1);f.useEffect(()=>{io.value===Rl.resetPassword&&Ki.value===Rl.resetPassword?(g(null),S("screenLockRecoveryPassword"),io.value=null,Ki.value=null):io.value===Rl.resetPasscode&&Ki.value===Rl.resetPasscode&&(p(null),x(0),io.value=null,Ki.value=null)},[Ki.value,io.value]),f.useEffect(()=>{T.value.length!==0&&!h&&T.value===M.value&&b(T.value).then(V=>{p(V),x(T.value.length),A.value=!1,M.value="",T.value=""})},[T.value,M.value]);const W=f.useMemo(()=>z.value,[z.value]),G=f.useMemo(()=>_r.value,[_r.value]);f.useMemo(()=>!0,[M.value,A.value,B.value,R.value,P.value,$.value,_.value,K.value,U.value]);const Z=f.useMemo(()=>L.value.length>=6&&L.value.length<=50&&L.value===D.value,[L.value,D.value]),F=f.useMemo(()=>D.value.length>=L.value.length&&L.value!==D.value,[L.value,D.value]);return a.jsx(ih,{disableWidth:!0,children:({height:V})=>V&&a.jsxs(J,{className:"p-4 py-6 select-none min-w-[320px]",children:[a.jsxs(J,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[a.jsx(X,{className:"light",children:e("Security Settings",{ns:"settings"})}),a.jsx(ac,{to:E,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),a.jsx(mn,{h:3}),a.jsxs(An,{style:{maxHeight:V-85},autoHide:!0,children:[a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:a.jsx(J,{children:e("Lock Screen Passcode",{ns:"settings"})})}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Set a passcode to unlock the locked screen and protect your data from unauthorized access.",{ns:"settings"})})]}),a.jsxs(cr,{children:[h?a.jsxs(a.Fragment,{children:[a.jsx(fe,{className:"gap-5 justify-start flex-wrap",children:new Array(m).fill(0).map((q,ne)=>a.jsx(J,{className:"text-lg px-4 py-4 rounded-md text-slate-600 dark:text-slate-400 bg-slate-100 dark:bg-slate-800 text-center",children:"\u25CF"},ne))}),a.jsx(J,{className:"mt-2 text-green-700 dark:text-green-600",children:a.jsx(Ps,{i18nKey:"<strong>{{screenLockPassCodeLength}}</strong> digits passcode is set.",values:{screenLockPassCodeLength:m},ns:"settings"})})]}):a.jsxs(a.Fragment,{children:[A.value?a.jsxs(fe,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[a.jsx(Gt,{className:"text-md !w-40",numbersOnly:!0,isPassword:!0,autoComplete:"off",onPaste:q=>(q.preventDefault(),!1),autoFocus:!0,placeholder:e("Confirm",{ns:"common"}),label:e("Confirm Passcode",{ns:"common"}),onChange:q=>{const ne=q.target.value;M.value=ne}},"confirm-passcode"),a.jsx(ye,{variant:"secondary",size:"sm",onClick:()=>{A.value=!1,M.value="",T.value=""},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200 mt-4 h-9",children:e("Cancel",{ns:"common"})})]}):a.jsxs(fe,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[a.jsx(Gt,{className:"text-md !w-40",numbersOnly:!0,autoComplete:"off",onPaste:q=>(q.preventDefault(),!1),placeholder:e("Enter Passcode",{ns:"common"}),label:e("Digits Only Passcode",{ns:"common"}),onKeyDown:q=>{q.key==="Enter"&&(T.value.length>3||T.value.length<11)&&(A.value=!0)},onChange:q=>{const ne=q.target.value;T.value=ne}}),a.jsx(ye,{variant:"secondary",size:"sm",disabled:T.value.length<4||T.value.length>10,onClick:()=>{A.value=!0},className:"text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 mt-4 h-9",children:e("Set",{ns:"common"})})]}),A.value?M.value&&T.value&&a.jsx(a.Fragment,{children:M.value&&T.value.length-M.value.length>0?a.jsxs(X,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode digits remaining",{ns:"settings"}),":",a.jsx("b",{className:"ml-1",children:T.value.length-M.value.length})]}):T.value!==M.value&&a.jsx(X,{size:"sm",className:"!text-red-500 dark:!text-red-400",children:e("Passcode mismatch",{ns:"settings"})})}):a.jsx(a.Fragment,{children:T.value.length>=4&&T.value.length<=10?a.jsxs(X,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode length",{ns:"settings"}),":",a.jsx("b",{className:"ml-1",children:T.value.length})]}):T.value.length>10?a.jsx(X,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Maximum 10 digits",{ns:"settings"})}):T.value.length>0&&T.value.length<4&&a.jsx(X,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Minimal 4 digits",{ns:"settings"})})})]}),h&&a.jsx(a.Fragment,{children:a.jsx(ye,{variant:"secondary",size:"sm",onClick:()=>{bu.value=!0,io.value=Rl.resetPasscode,wu.value=e("passcode reset",{ns:"settings"})},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset Passcode",{ns:"common"})})})]})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:a.jsx(J,{children:e("Recovery Password for Lock Screen Passcode",{ns:"settings"})})}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Set a recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.",{ns:"settings"})})]}),a.jsx(cr,{children:C?a.jsxs(J,{children:[a.jsxs(fe,{className:"gap-2 justify-start items-start flex-wrap flex-col my-1",children:[a.jsx(J,{className:"text-lg px-4 py-2 rounded-md text-slate-600 dark:text-slate-400 bg-slate-100 dark:bg-slate-800 text-center",children:a.jsx(X,{className:"text-lg",children:C})}),a.jsx(J,{className:"mt-1 text-green-700 dark:text-green-600",children:e("Recovery password is set.",{ns:"settings"})})]}),W?a.jsxs(J,{className:"mt-2",children:[a.jsx(Gt,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:q=>{q.key==="Enter"&&!_.value&&P.value.length>=6&&($.value=!1,_.value=!0,j("screenLockRecoveryPassword",P.value).then(ne=>{ne?(z.value=!1,g(null),S("screenLockRecoveryPassword"),P.value=""):$.value=!0,_.value=!1}).catch(()=>{$.value=!0,_.value=!1}))},error:P.value.length>=6&&$.value?e("Password is incorrect",{ns:"settings"}):"",autoComplete:"off",onPaste:q=>(q.preventDefault(),!1),classNameInput:"h-9",autoFocus:!0,placeholder:e("Enter Password",{ns:"common"}),label:e("Verify Current Password",{ns:"common"}),onChange:q=>{$.value=!1,P.value=q.target.value}},"recovery-reset-password"),a.jsxs(fe,{className:"justify-start items-center gap-2 mt-2",children:[a.jsx(ye,{variant:"secondary",size:"sm",disabled:P.value.length<6,onClick:()=>{$.value=!1,_.value=!0,j("screenLockRecoveryPassword",P.value).then(q=>{q?(z.value=!1,g(null),S("screenLockRecoveryPassword"),P.value=""):$.value=!0,_.value=!1}).catch(()=>{$.value=!0,_.value=!1})},className:"w-20 text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200",children:_.value?a.jsx(wm,{}):e("Reset",{ns:"common"})}),h&&a.jsx(ye,{variant:"light",size:"sm",onClick:()=>{z.value=!1,bu.value=!0,io.value=Rl.resetPassword,wu.value=e("password reset",{ns:"settings"})},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200",children:e("Use Passcode",{ns:"common"})}),a.jsx(ye,{variant:"secondary",size:"sm",disabled:G>0,onClick:()=>{z.value=!1,$.value=!1,P.value=""},className:"text-sm bg-transparent dark:bg-transparent dark:text-slate-200 hover:dark:bg-slate-800",children:e("Cancel",{ns:"common"})})]})]}):a.jsx(ye,{variant:"secondary",size:"sm",onClick:()=>{z.value=!0},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset Password",{ns:"common"})})]}):a.jsxs(fe,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col",children:[a.jsx(Gt,{className:"text-md !w-60",isPassword:!0,autoComplete:"off",onPaste:q=>(q.preventDefault(),!1),showHidePassword:!0,placeholder:e("Recovery Password",{ns:"common"}),label:e("Enter Recovery Password",{ns:"common"}),classNameInput:L.value.length>=6&&L.value.length<=50?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",onChange:q=>{L.value=q.target.value}},"recovery-password"),a.jsx(Gt,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:q=>{q.key==="Enter"&&L.value===D.value&&L.value.length>=6&&L.value.length<=50&&k("screenLockRecoveryPassword",L.value).then(()=>{g(Ep(L.value)),L.value="",D.value=""})},error:F?e("Passwords do not match",{ns:"settings"}):"",autoComplete:"off",onPaste:q=>(q.preventDefault(),!1),classNameInput:!F&&Z?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",placeholder:e("Confirm Password",{ns:"common"}),label:e("Confirm Password",{ns:"common"}),onChange:q=>{D.value=q.target.value}},"recovery-password-confirmation"),a.jsx(ye,{variant:"secondary",size:"sm",disabled:!Z,onClick:()=>{L.value===D.value&&k("screenLockRecoveryPassword",L.value).then(()=>{g(Ep(L.value)),L.value="",D.value=""})},className:"text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 mt-1 h-9",children:e("Set Password",{ns:"common"})})]})})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{className:"".concat(!o&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[a.jsx(J,{children:e("Show Clipboard History Capture Control on Lock Screen",{ns:"settings"})}),a.jsx(Hr,{checked:o,className:"ml-auto",onCheckedChange:()=>{i(!o)}})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Display clipboard history capture toggle on the locked application screen. This allows you to control history capture settings directly from the lock screen.",{ns:"settings"})})]}),a.jsx(cr,{})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{className:"".concat(!t&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[a.jsxs(J,{children:[e("Auto Lock the Screen on User Inactivity",{ns:"settings"}),a.jsx(eh,{})]}),a.jsx(Hr,{checked:t,className:"ml-auto",onCheckedChange:()=>{!t&&!N?Uc.value=!0:n(!t)}})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.",{ns:"settings"})})]}),a.jsxs(cr,{children:[a.jsx(fe,{className:"gap-3 flex-wrap items-start justify-start my-2",children:wee.map((q,ne)=>a.jsxs(ye,{variant:"ghost",disabled:!t,onClick:()=>{s(q)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(r===q?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 hover:dark:bg-slate-800 px-2 !py-0.5"),children:[q," ",e("minutes",{ns:"common"})]},ne))}),a.jsx(ye,{variant:"secondary",size:"sm",disabled:r===15,onClick:()=>{s(15)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset",{ns:"common"})})]})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[a.jsxs(J,{children:[e("Require Screen Unlock at Application Start",{ns:"settings"}),a.jsx(eh,{})]}),a.jsx(Hr,{checked:c,className:"ml-auto",onCheckedChange:()=>{!c&&!N?Uc.value=!0:u(!c)}})]}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.",{ns:"settings"})})]}),a.jsx(cr,{})]})}),a.jsx(mn,{h:6}),a.jsx(ac,{to:E,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),a.jsx(mn,{h:4})]})]})})}function Z3e(){const{t:e}=wt(),{isSkipAutoStartPrompt:t,setIsSkipAutoStartPrompt:n,isShowCollectionNameOnNavBar:r,setIsShowCollectionNameOnNavBar:s,isShowDisabledCollectionsOnNavBarMenu:o,setIsShowDisabledCollectionsOnNavBarMenu:i}=ut(Nr),{setFontSize:c,fontSize:u,setIsSwapPanels:h,isSwapPanels:p}=ut(ra),[m,x]=f.useState(!1),{setTheme:C,theme:b}=o2(),{mode:g,setMode:k}=ut(pu);f.useEffect(()=>{b!==g&&k(b)},[b]),f.useEffect(()=>{vn("is_autostart_enabled").then(S=>{x(!!S)})},[]);const{returnRoute:j}=ut(ra);return a.jsx(ih,{disableWidth:!0,children:({height:S})=>S&&a.jsxs(J,{className:"p-4 py-6 select-none min-w-[320px]",children:[a.jsxs(J,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[a.jsx(X,{className:"light",children:e("User Preferences",{ns:"settings"})}),a.jsx(ac,{to:j,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),a.jsx(mn,{h:3}),a.jsxs(An,{style:{maxHeight:S-85},autoHide:!0,children:[a.jsx(J,{className:"animate-in fade-in max-w-xl",children:a.jsxs(tr,{className:"".concat(!m&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Application Auto Start",{ns:"settings"})}),a.jsx(Hr,{checked:m,className:"ml-auto",onCheckedChange:async()=>{await vn("autostart",{enabled:!m}),x(!m)}})]}),a.jsxs(cr,{children:[a.jsx(X,{className:"text-sm text-muted-foreground",children:e("Enable application auto start on system boot",{ns:"settings"})}),!m&&a.jsx(fe,{className:"items-center justify-start mt-2 ml-[-12px]",children:a.jsx(y3,{color:"default",checked:t,classNameLabel:"py-1",onChange:()=>{n(!t)},children:a.jsx(jg,{size:"sm",children:e("Skip auto start prompt on app launch",{ns:"settings"})})})})]})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{children:[a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Fonts Scale",{ns:"settings"}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface font size scale",{ns:"settings"})})]}),a.jsx(fe,{className:"gap-3 flex-wrap items-start justify-start",children:xp.map((E,N)=>a.jsx(ye,{variant:"ghost",onClick:()=>{c(E)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(u===E?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-2 !py-0.5"),children:E},N))})]}),a.jsx(cr,{children:a.jsx(ye,{variant:"secondary",size:"sm",disabled:u==="100%",onClick:()=>{c("100%")},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsx(tr,{children:a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Color Theme",{ns:"settings"}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface color theme",{ns:"settings"})})]}),a.jsxs(fe,{className:"gap-3 flex-wrap items-start justify-start",children:[a.jsxs(ye,{variant:"ghost",onClick:()=>{C("light")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(b==="light"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[a.jsx("span",{className:"flex tems-end",children:a.jsx(bo.sun,{className:"mr-2",size:18})}),a.jsx("span",{children:e("Theme:::Light",{ns:"navbar"})})]}),a.jsxs(ye,{variant:"ghost",onClick:()=>{C("dark")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(b==="dark"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[a.jsx("span",{className:"flex tems-end",children:a.jsx(bo.moon,{className:"mr-2",size:17})}),a.jsx("span",{children:e("Theme:::Dark",{ns:"navbar"})})]}),a.jsxs(ye,{variant:"ghost",onClick:()=>{C("system")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(b==="system"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[a.jsx("span",{className:"tems-end flex w-[1.5rem] ",children:a.jsx(bo.sunmoon,{className:"mr-2",width:14,height:14})}),a.jsx("span",{children:e("Theme:::System",{ns:"navbar"})})]})]})]})})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsx(tr,{children:a.jsxs(Kn,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[a.jsxs(Gn,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Language",{ns:"settings"}),a.jsx(X,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface language",{ns:"settings"})})]}),a.jsx(fe,{className:"gap-3 flex-wrap items-start justify-start",children:Cj.map(({code:E,name:N,flag:T})=>a.jsxs(ye,{variant:"ghost",onClick:()=>{sr.changeLanguage(E)},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(sr.language===E?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[a.jsx("span",{className:"flags mr-3",children:T})," ",N]},E))})]})})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{className:"".concat(!p&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Swap Panels Layout",{ns:"common"})}),a.jsx(Hr,{checked:p,className:"ml-auto",onCheckedChange:async()=>{h(!p)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:e("Switch the layout position of panels in Clipboard History and Paste Menu views",{ns:"settings"})})})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{className:"".concat(!r&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Show collection name on the navbar",{ns:"settings"})}),a.jsx(Hr,{checked:r,className:"ml-auto",onCheckedChange:()=>{s(!r)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:e("Display full name of selected collection on the navigation bar",{ns:"settings"})})})]})}),a.jsx(J,{className:"animate-in fade-in max-w-xl mt-4",children:a.jsxs(tr,{className:"".concat(!o&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[a.jsxs(Kn,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[a.jsx(Gn,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Show disabled collections on the navbar list",{ns:"settings"})}),a.jsx(Hr,{checked:o,className:"ml-auto",onCheckedChange:()=>{i(!o)}})]}),a.jsx(cr,{children:a.jsx(X,{className:"text-sm text-muted-foreground",children:e("Display disabled collections name on the navigation bar under collections menu",{ns:"settings"})})})]})}),a.jsx(mn,{h:6}),a.jsx(ac,{to:j,replace:!0,children:a.jsx(ye,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),a.jsx(mn,{h:4})]})]})})}const Q3e=[{index:!0,element:a.jsx(Mye,{to:"history",replace:!0})},{path:"menu",element:a.jsx(V3e,{}),index:!0},{path:"history",element:a.jsx(d5e,{})},{path:"app-settings",element:a.jsx(U3e,{}),children:[{path:"collections",element:a.jsx(_N,{})},{path:"collections/new",element:a.jsx(_N,{showAddNewCollection:!0})},{path:"items",element:a.jsx(_N,{})},{path:"history",element:a.jsx(q3e,{})},{path:"preferences",element:a.jsx(Z3e,{})},{path:"security",element:a.jsx(G3e,{})},{path:"license",element:a.jsx(oH,{})},{path:"license/register",element:a.jsx(oH,{registerLicense:!0})}]}],J3e=zye([{element:a.jsx(fbe,{}),children:[{path:"/",lazy:()=>he(()=>Promise.resolve().then(()=>T2e),void 0),children:Q3e}]}]),X3e=new mU({defaultOptions:{mutations:{networkMode:"always"},queries:{networkMode:"always",gcTime:1e3*60*60*1,retry:RU,retryDelay:e=>Math.min(2e3*2**e,3e4)}}});jI(document.getElementById("root")).render(a.jsx(f.StrictMode,{children:a.jsxs(xU,{client:X3e,children:[a.jsx(qye,{router:J3e}),PU]})}))})();export{dt as R,tEe as __tla,j6 as a,C6 as b,Ai as c,S6 as d,f as e,_o as g,E6 as r};